Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
founder_vue
Commits
66ce2014
Commit
66ce2014
authored
Nov 10, 2021
by
米嘉伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文件上传一次请求
parent
58bc35df
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
109 additions
and
15 deletions
+109
-15
src/views/AllPersonnelBase/modules/dcfptxAj.vue
+0
-1
src/views/AllPersonnelBase/modules/dcftpx.vue
+0
-1
src/views/AllPersonnelBase/modules/gz.vue
+10
-2
src/views/AllPersonnelBase/modules/xzaj.vue
+11
-3
src/views/AllPersonnelBase/modules/xzry.vue
+13
-4
src/views/drFPTX/Index.vue
+75
-4
No files found.
src/views/AllPersonnelBase/modules/dcfptxAj.vue
View file @
66ce2014
<
template
>
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogVisible"
width=
"36.375rem"
append-to-body
...
...
src/views/AllPersonnelBase/modules/dcftpx.vue
View file @
66ce2014
<
template
>
<el-dialog
:title=
"title"
:visible
.
sync=
"dialogVisible"
width=
"54.6875rem"
append-to-body
...
...
src/views/AllPersonnelBase/modules/gz.vue
View file @
66ce2014
...
...
@@ -166,10 +166,16 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
rowData
.
length
;
i
++
)
{
let
personDo
=
{
ysxtAsjxgrybh
:
''
,
id
:
''
id
:
''
,
xbdm
:
''
,
zjhm
:
''
,
xm
:
''
,
}
personDo
.
ysxtAsjxgrybh
=
this
.
rowData
[
i
].
ysxtAsjxgrybh
personDo
.
id
=
this
.
rowData
[
i
].
id
personDo
.
xbdm
=
this
.
rowData
[
i
].
xbdm
personDo
.
zjhm
=
this
.
rowData
[
i
].
zjhm
personDo
.
xm
=
this
.
rowData
[
i
].
xm
newReqParams
.
personDoList
.
push
(
personDo
)
}
console
.
log
(
'关注人员ID'
,
newReqParams
);
...
...
@@ -184,10 +190,12 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
rowData
.
length
;
i
++
)
{
let
caseBase
=
{
ysxtAsjbh
:
''
,
id
:
''
id
:
''
,
ajlbdm
:
''
}
caseBase
.
ysxtAsjbh
=
this
.
rowData
[
i
].
ysxtAsjbh
caseBase
.
id
=
this
.
rowData
[
i
].
id
caseBase
.
ajlbdm
=
this
.
rowData
[
i
].
ajlbdm
newReqParams
.
caseBaseList
.
push
(
caseBase
)
}
console
.
log
(
'关注案件ID'
,
newReqParams
);
...
...
src/views/AllPersonnelBase/modules/xzaj.vue
View file @
66ce2014
...
...
@@ -33,6 +33,7 @@
placeholder=
"请输入案事件编号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -46,6 +47,7 @@
placeholder=
"请输入现场勘验编号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -79,6 +81,7 @@
placeholder=
"请输入现场物掌指纹卡编号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -90,6 +93,7 @@
<el-input
v-model=
"ruleForm.ssjzrmby"
placeholder=
"请输入损失价值"
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -115,11 +119,11 @@
>
<el-option
label=
"区域一"
value=
"
shanghai
"
value=
"
1
"
></el-option>
<el-option
label=
"区域二"
value=
"
beijing
"
value=
"
2
"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -181,8 +185,9 @@
<el-input
v-model=
"ruleForm.tqdwGajgjgdm"
placeholder=
"请输入提取单位代码"
maxlength=
"
23
"
maxlength=
"
12
"
show-word-limit
clearable
>
</el-input>
</el-form-item>
...
...
@@ -195,6 +200,7 @@
<el-input
v-model=
"ruleForm.tqryXm"
placeholder=
"请输入现场物证编号"
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -224,6 +230,7 @@
placeholder=
"请输入提取人身份证号"
maxlength=
"18"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -243,6 +250,7 @@
<el-input
v-model=
"ruleForm.tqryLxdh"
placeholder=
"请输入提取人联系电话"
clearable
></el-input>
</el-form-item>
</el-col>
...
...
src/views/AllPersonnelBase/modules/xzry.vue
View file @
66ce2014
...
...
@@ -33,6 +33,7 @@
placeholder=
"请输入人员编号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -46,6 +47,7 @@
placeholder=
"请输入警综人员编号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -62,6 +64,7 @@
placeholder=
"请输入案事件相关人员编号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -75,6 +78,7 @@
placeholder=
"请输入指掌纹卡编号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -120,8 +124,7 @@
<el-input
v-model=
"ruleForm.xm"
placeholder=
"请输入姓名"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -130,8 +133,7 @@
<el-input
v-model=
"ruleForm.bmch"
placeholder=
"请输入别名/绰号"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -247,6 +249,7 @@
placeholder=
"请输入证件号码"
maxlength=
"23"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -280,6 +283,7 @@
<el-input
v-model=
"ruleForm.hjdzDzmc"
placeholder=
"请输入户籍地址"
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -313,6 +317,7 @@
<el-input
v-model=
"ruleForm.xzzDzmc"
placeholder=
"请输入现住址"
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -371,6 +376,7 @@
<el-input
v-model=
"ruleForm.nydwGajgmc"
placeholder=
"请输入捺印单位名称"
clearable
>
</el-input>
</el-form-item>
...
...
@@ -383,6 +389,7 @@
<el-input
v-model=
"ruleForm.nyryXm"
placeholder=
"请输入现场物证编号"
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -412,6 +419,7 @@
placeholder=
"请输入捺印人身份证号"
maxlength=
"18"
show-word-limit
clearable
></el-input>
</el-form-item>
</el-col>
...
...
@@ -431,6 +439,7 @@
<el-input
v-model=
"ruleForm.nyryLxdh"
placeholder=
"请输入捺印人联系电话"
clearable
></el-input>
</el-form-item>
</el-col>
...
...
src/views/drFPTX/Index.vue
View file @
66ce2014
...
...
@@ -393,10 +393,10 @@
:modal-append-to-body=
"false"
>
<div
v-if=
"showProgress"
>
<el-progress
<
!-- <
el-progress
type="circle"
:percentage="UploadPercent"
></el-progress>
></el-progress>
-->
<div
style=
"margin-top:.9375rem; margin-bottom:.9375rem;font-size: .875rem;font-family: MicrosoftYaHei;color: #909090;"
>
正在解析指纹文件,点击“取消”可终止处理
</div>
<el-button
@
click=
"abort"
>
取 消
</el-button>
</div>
...
...
@@ -563,6 +563,16 @@ export default {
onChange
(
file
,
fileList
)
{
// console.log(file.raw, 2222233333)
console
.
log
(
fileList
[
0
],
1111
)
// 重复文件过滤
let
existFile
=
fileList
.
slice
(
0
,
fileList
.
length
-
1
).
find
(
f
=>
f
.
name
===
file
.
name
)
if
(
existFile
)
{
this
.
$message
.
error
(
'当前文件已经存在!'
);
fileList
.
pop
()
}
// 获取文件夹
// var folder = fileList[0].raw.webkitRelativePath.split("/");
// console.log('fffff', folder[0])
...
...
@@ -657,10 +667,71 @@ export default {
},
// 上传
submitUpload
()
{
// 创建一个空的FormData对象:
const
formData
=
new
FormData
()
// 可以使用FormData.append来添加键/值对到表单里面;
this
.
nowSelectRightData
.
forEach
((
file
)
=>
{
formData
.
append
(
'file'
,
file
.
raw
)
})
// 添加自定义参数,不传可删除
// formData.append('parentId', '49')
// formData.append('uploadType', '备料单')
// formData.append('versions', 'v4.0')
console
.
log
(
'formData'
,
formData
)
// console.log('this.selectArr', this.selectArr)
// console.log('this.nowSelectRightData', this.nowSelectRightData)
this
.
$refs
.
upload
.
uploadFiles
=
this
.
nowSelectRightData
this
.
$refs
.
upload
.
submit
();
// this.$refs.upload.uploadFiles = formData
// console.log('this.$refs.upload.uploadFiles', this.$refs.upload.uploadFiles)
// this.$refs.upload.submit();
// 自定义上传
// axios
// .post(this.upload.url, formData, { headers: { 'Content-Type': 'multipart/form-data', Authorization: getToken() } })
// .then(response => {
// if (response.code == 200) {
// this.upload.open = false;
// this.upload.isUploading = false;
// this.$refs.upload.clearFiles();
// this.msgSuccess('上传成功!');
// } else {
// this.$message.error(response.msg);
// }
// })
// .catch(error => {
// this.$message.error('上传失败!');
// });
// this.$axios
// .post(this.action, formData, { headers: { 'Content-Type': 'multipart/form-data' }, loading: false })
this
.
dialogVisible
=
true
;
this
.
$axios
({
method
:
'post'
,
url
:
this
.
action
,
data
:
formData
,
loading
:
false
}).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
// this.tableDate = response.data.ret.list;
// this.reqParam.page.total = response.data.ret.total;
if
(
this
.
drlx
==
3
||
this
.
drlx
==
6
)
{
this
.
successCount
=
res
.
data
.
ret
.
successCount
this
.
failCount
=
res
.
data
.
ret
.
failCount
this
.
showProgress
=
false
;
}
else
if
(
this
.
drlx
==
9
)
{
this
.
successCount
=
res
.
data
.
ret
.
successCount
this
.
failCount
=
res
.
data
.
ret
.
failCount
this
.
showProgress
=
false
;
}
// this.$refs.upload.clearFiles()
this
.
showProgress
=
false
;
console
.
info
(
"查询结果===>"
,
res
);
// this.userInfo = this.getUserInfo(this.tableDate);
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
});
},
// 删除文件
handleRemove
(
file
,
fileList
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment