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
b9c8c879
Commit
b9c8c879
authored
Dec 08, 2021
by
米嘉伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员,案件导入文件类型校验
parent
7374a216
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
src/views/drFPTX/Index.vue
+16
-3
No files found.
src/views/drFPTX/Index.vue
View file @
b9c8c879
...
...
@@ -612,7 +612,7 @@ export default {
// }, 200)
重复文件过滤
//
重复文件过滤
let
existFile
=
fileList
.
slice
(
0
,
fileList
.
length
-
1
).
find
(
f
=>
f
.
name
===
file
.
name
)
if
(
existFile
)
{
this
.
$message
.
error
(
'当前文件已经存在!'
);
...
...
@@ -636,6 +636,11 @@ export default {
reader
.
onload
=
function
()
{
const
reg
=
/\<ysxt_asjxgrybh
\>(
.*
?)
\<
\/
ysxt_asjxgrybh
\>
/g
let
barcode
=
this
.
result
.
match
(
reg
)
if
(
barcode
==
null
)
{
newlist
=
[]
fileList
.
pop
()
that
.
$message
.
error
(
'请检查所选类型和文件类型是否一致'
)
}
else
{
console
.
log
(
barcode
,
'多人文件'
)
let
sonBarcode
=
[];
for
(
let
i
=
0
;
i
<
barcode
.
length
;
i
++
)
{
...
...
@@ -658,11 +663,17 @@ export default {
that
.
$set
(
newlist
[
i
],
'sonBarcode'
,
sonBarcode
)
console
.
log
(
newlist
[
i
],
'ajdhsajgguifhh 内序'
)
}
}
}
else
if
(
this
.
drlx
==
6
)
{
// 案件
that
.
action
=
'/api/upload/case'
reader
.
onload
=
function
()
{
const
reg
=
/\<ysxt_asjbh
\>(
.*
?)
\<
\/
ysxt_asjbh
\>
/g
let
barcode
=
this
.
result
.
match
(
reg
)
if
(
barcode
==
null
)
{
newlist
=
[]
fileList
.
pop
()
that
.
$message
.
error
(
'请检查所选类型和文件类型是否一致'
)
}
else
{
let
sonBarcode
=
[]
for
(
let
i
=
0
;
i
<
barcode
.
length
;
i
++
)
{
let
newBarcode
=
null
...
...
@@ -676,9 +687,9 @@ export default {
sonBarcodeOlny
.
barcode
=
newBarcode
[
1
]
sonBarcode
.
push
(
sonBarcodeOlny
)
}
that
.
$set
(
newlist
[
i
],
'wjxh'
,
i
+
1
)
that
.
$set
(
newlist
[
i
],
'sonBarcode'
,
sonBarcode
)
}
// that.$set(newlist[i], 'barcode', barcode[1])
}
}
else
if
(
this
.
drlx
==
9
)
{
// 比中关系
...
...
@@ -772,9 +783,11 @@ export default {
}
}
}
console
.
log
(
'newlist'
,
newlist
)
setTimeout
(()
=>
{
this
.
datas
=
newlist
;
console
.
log
(
'newlist'
,
newlist
)
console
.
log
(
'datas'
,
this
.
datas
)
},
100
)
},
// 提交前钩子函数
beforeUpload
()
{
...
...
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