Commit 57933499 authored by zhangderong's avatar zhangderong

上传简历是去掉重复简历

parent c2c60e68
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment