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
57933499
Commit
57933499
authored
Nov 20, 2019
by
zhangderong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传简历是去掉重复简历
parent
c2c60e68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
10 deletions
+38
-10
upload.vue
src/page/upload/upload.vue
+38
-10
No files found.
src/page/upload/upload.vue
View file @
57933499
...
...
@@ -28,12 +28,16 @@
<div
v-for=
'(item,index) in dataList'
class=
'process'
:key=
'index'
>
<p
style=
'padding-top:5px;'
>
{{
item
.
name
}}
</p>
<span
class=
'title'
style=
"float:right;"
v-show=
"item.Code==0"
>
{{
item
.
title
}}
</span>
<span
class=
'title'
style=
"float:right;color:red"
v-show=
"item.Code==1||item.Code==2"
>
{{
item
.
title
}}
</span>
<span
class=
'title'
style=
"float:right;color:red"
v-show=
"item.Code==1"
>
{{
item
.
title
}}
<Checkbox
v-model=
"item.sStatus"
@
on-change=
'selectfile(item.sStatus,item.name)'
>
是
</Checkbox>
</span>
<span
class=
'title'
style=
"float:right;color:red"
v-show=
"item.Code==2"
>
{{
item
.
title
}}
</span>
<Progress
:percent=
"item.percentage"
hide-info
:status=
'item.status'
></Progress>
</div>
</div>
<div
slot=
'footer'
>
<Button
@
click=
'closeModal'
v-show=
"activeT==true"
>
完成
</Button>
<p
v-show=
"activeT==true"
style=
"text-align:left"
>
简历替换仅替换简历内容,不会影响简历状态。
</p>
<Button
@
click=
'closeModal'
v-show=
"activeT==true"
>
完成
</Button>
</div>
</Modal>
<Modal
...
...
@@ -216,14 +220,20 @@ import {uploadFile} from '../../service/ajax'
fileName
:
''
,
ajaxData
:[],
delateARRALL
:[],
replaceArr
:
[],
downloadId
:
''
,
pageIndex
:
1
,
pageSize
:
30
,
isReplace
:
true
,
newArr
:
[],
replaceName
:
''
,
searchInfo
:{
pageSize
:
30
,
pageIndex
:
1
,
},
Sid
:
''
,
single
:
true
,
checkboxList
:
[],
filetile
:
'
上传中请稍后...
'
,
totalSize
:
null
,
uploadModal
:
false
,
...
...
@@ -350,6 +360,15 @@ import {uploadFile} from '../../service/ajax'
item
.
percentage
=
e
.
percent
-
5
})
},
selectfile
(
data
,
name
)
{
this
.
isReplace
=
data
this
.
replaceName
=
name
if
(
data
==
false
)
{
this
.
newArr
=
this
.
replaceArr
.
filter
(
item
=>
item
!==
this
.
replaceName
)
}
else
{
this
.
newArr
.
push
(
this
.
replaceName
)
}
},
handleSuccess
(
res
,
files
)
{
let
data
=
res
.
body
this
.
filetile
=
'
上传完成
'
...
...
@@ -357,7 +376,11 @@ import {uploadFile} from '../../service/ajax'
let
code
=
data
[
key
].
code
this
.
Code
=
data
[
key
].
code
this
.
Massage
=
data
[
key
].
message
if
(
data
[
key
].
code
==
1
){
this
.
replaceArr
.
push
(
key
)
}
this
.
dataList
.
map
(
item
=>
{
item
.
sStatus
=
true
if
(
key
==
item
.
name
)
{
item
.
title
=
this
.
Massage
if
(
item
.
Code
==
2
){
progressStatus
=
{
'
2
'
:
'
wrong
'
}}
...
...
@@ -385,13 +408,14 @@ import {uploadFile} from '../../service/ajax'
this
.
$refs
.
input
.
click
()
},
closeModal
(){
this
.
uploadModal
=
false
this
.
$refs
.
input
.
value
=
''
this
.
dataList
=
[]
this
.
fileName
=
''
this
.
activeT
=
false
this
.
filetile
=
'
上传中请稍后...
'
this
.
serchlist
()
this
.
uploadModal
=
false
this
.
$refs
.
input
.
value
=
''
this
.
dataList
=
[]
// this.replaceArr = []
this
.
fileName
=
''
this
.
activeT
=
false
this
.
filetile
=
'
上传中请稍后...
'
this
.
serchlist
()
},
//下载单条简历
downloadONE
(
downID
){
...
...
@@ -420,10 +444,14 @@ import {uploadFile} from '../../service/ajax'
let
parmars
=
{
pageSize
:
this
.
searchInfo
.
pageSize
,
pageIndex
:
this
.
searchInfo
.
pageIndex
,
parameter
:
this
.
batchNum
parameter
:
{
batchNum
:
this
.
batchNum
,
replaceFileNameList
:
this
.
newArr
.
length
==
0
?
this
.
replaceArr
:
this
.
newArr
}
}
serchList
(
parmars
).
then
(
res
=>
{
if
(
res
.
data
.
success
==
true
){
this
.
replaceArr
=
[]
this
.
totalSize
=
res
.
data
.
body
.
totalNumber
this
.
ajaxData
=
res
.
data
.
body
.
items
.
map
((
item
,
index
)
=>
{
item
.
resumeId
=
item
.
resumeId
...
...
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