Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
recruiting-management
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
recruiting-management
Commits
a00650f4
Commit
a00650f4
authored
Nov 21, 2019
by
zhangderong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传时重复赋值问题
parent
af8b914a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
upload.vue
src/page/upload/upload.vue
+3
-11
No files found.
src/page/upload/upload.vue
View file @
a00650f4
...
@@ -362,16 +362,11 @@ import {uploadFile} from '../../service/ajax'
...
@@ -362,16 +362,11 @@ import {uploadFile} from '../../service/ajax'
})
})
},
},
selectfile
(
data
,
name
)
{
selectfile
(
data
,
name
)
{
this
.
change
=
true
this
.
isReplace
=
data
this
.
replaceName
=
name
this
.
replaceName
=
name
if
(
data
==
false
)
{
if
(
data
==
false
)
{
this
.
newArr
=
this
.
replaceArr
.
filter
(
item
=>
item
!==
this
.
replaceName
)
this
.
replaceArr
=
this
.
replaceArr
.
filter
(
item
=>
item
!==
this
.
replaceName
)
// if (this.newArr.length==0) {
// this.replaceArr = []
// }
}
else
{
}
else
{
this
.
new
Arr
.
push
(
this
.
replaceName
)
this
.
replace
Arr
.
push
(
this
.
replaceName
)
}
}
},
},
handleSuccess
(
res
,
files
)
{
handleSuccess
(
res
,
files
)
{
...
@@ -446,15 +441,12 @@ import {uploadFile} from '../../service/ajax'
...
@@ -446,15 +441,12 @@ import {uploadFile} from '../../service/ajax'
page
=
typeof
(
page
)
==
'
number
'
?
page
:
1
page
=
typeof
(
page
)
==
'
number
'
?
page
:
1
this
.
searchInfo
.
pageIndex
=
page
this
.
searchInfo
.
pageIndex
=
page
this
.
pageIndex
=
page
this
.
pageIndex
=
page
if
(
this
.
change
==
false
){
this
.
newArr
=
this
.
replaceArr
}
let
parmars
=
{
let
parmars
=
{
pageSize
:
this
.
searchInfo
.
pageSize
,
pageSize
:
this
.
searchInfo
.
pageSize
,
pageIndex
:
this
.
searchInfo
.
pageIndex
,
pageIndex
:
this
.
searchInfo
.
pageIndex
,
parameter
:
{
parameter
:
{
batchNum
:
this
.
batchNum
,
batchNum
:
this
.
batchNum
,
replaceFileNameList
:
this
.
new
Arr
replaceFileNameList
:
this
.
replace
Arr
}
}
}
}
serchList
(
parmars
).
then
(
res
=>
{
serchList
(
parmars
).
then
(
res
=>
{
...
...
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