Commit 57933499 authored by zhangderong's avatar zhangderong

上传简历是去掉重复简历

parent c2c60e68
...@@ -28,12 +28,16 @@ ...@@ -28,12 +28,16 @@
<div v-for='(item,index) in dataList' class='process' :key='index'> <div v-for='(item,index) in dataList' class='process' :key='index'>
<p style='padding-top:5px;'>{{item.name}}</p> <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;" 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> <Progress :percent="item.percentage" hide-info :status='item.status'></Progress>
</div> </div>
</div> </div>
<div slot='footer' > <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> </div>
</Modal> </Modal>
<Modal <Modal
...@@ -216,14 +220,20 @@ import {uploadFile} from '../../service/ajax' ...@@ -216,14 +220,20 @@ import {uploadFile} from '../../service/ajax'
fileName: '', fileName: '',
ajaxData:[], ajaxData:[],
delateARRALL:[], delateARRALL:[],
replaceArr: [],
downloadId:'', downloadId:'',
pageIndex:1, pageIndex:1,
pageSize:30, pageSize:30,
isReplace: true,
newArr: [],
replaceName:'',
searchInfo:{ searchInfo:{
pageSize:30, pageSize:30,
pageIndex:1, pageIndex:1,
}, },
Sid:'', Sid:'',
single: true,
checkboxList: [],
filetile:'上传中请稍后...', filetile:'上传中请稍后...',
totalSize:null, totalSize:null,
uploadModal: false, uploadModal: false,
...@@ -350,6 +360,15 @@ import {uploadFile} from '../../service/ajax' ...@@ -350,6 +360,15 @@ import {uploadFile} from '../../service/ajax'
item.percentage = e.percent-5 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) { handleSuccess (res, files) {
let data = res.body let data = res.body
this.filetile='上传完成' this.filetile='上传完成'
...@@ -357,7 +376,11 @@ import {uploadFile} from '../../service/ajax' ...@@ -357,7 +376,11 @@ import {uploadFile} from '../../service/ajax'
let code = data[key].code let code = data[key].code
this.Code=data[key].code this.Code=data[key].code
this.Massage=data[key].message this.Massage=data[key].message
if (data[key].code==1 ){
this.replaceArr.push(key)
}
this.dataList.map(item => { this.dataList.map(item => {
item.sStatus=true
if (key == item.name) { if (key == item.name) {
item.title = this.Massage item.title = this.Massage
if(item.Code==2){progressStatus={'2':'wrong'}} if(item.Code==2){progressStatus={'2':'wrong'}}
...@@ -385,13 +408,14 @@ import {uploadFile} from '../../service/ajax' ...@@ -385,13 +408,14 @@ import {uploadFile} from '../../service/ajax'
this.$refs.input.click() this.$refs.input.click()
}, },
closeModal(){ closeModal(){
this.uploadModal = false this.uploadModal = false
this.$refs.input.value = '' this.$refs.input.value = ''
this.dataList = [] this.dataList = []
this.fileName = '' // this.replaceArr = []
this.activeT=false this.fileName = ''
this.filetile='上传中请稍后...' this.activeT=false
this.serchlist() this.filetile='上传中请稍后...'
this.serchlist()
}, },
//下载单条简历 //下载单条简历
downloadONE(downID){ downloadONE(downID){
...@@ -420,10 +444,14 @@ import {uploadFile} from '../../service/ajax' ...@@ -420,10 +444,14 @@ import {uploadFile} from '../../service/ajax'
let parmars={ let parmars={
pageSize:this.searchInfo.pageSize, pageSize:this.searchInfo.pageSize,
pageIndex:this.searchInfo.pageIndex, pageIndex:this.searchInfo.pageIndex,
parameter:this.batchNum parameter: {
batchNum:this.batchNum,
replaceFileNameList: this.newArr.length==0 ? this.replaceArr : this.newArr
}
} }
serchList(parmars).then(res=>{ serchList(parmars).then(res=>{
if(res.data.success==true){ if(res.data.success==true){
this.replaceArr = []
this.totalSize=res.data.body.totalNumber this.totalSize=res.data.body.totalNumber
this.ajaxData=res.data.body.items.map((item,index)=>{ this.ajaxData=res.data.body.items.map((item,index)=>{
item.resumeId=item.resumeId 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