Commit 933bf956 authored by FE-安焕焕's avatar FE-安焕焕 👣

上传文件展示问题,菜单高亮问题

parent 69811868
......@@ -51,6 +51,7 @@ export default {
.pc {
height: 100%;
overflow: hidden;
min-width: 860px;
}
.mobile {
......
......@@ -172,7 +172,7 @@ import {mapState} from 'vuex'
})
})
},
selectMenu(name, refesh) {
async selectMenu(name, refesh) {
// // refesh是否为刷新页面
this.levelOneName = name
const menus = this.menuList.filter(v => name === v.name)
......@@ -184,7 +184,7 @@ import {mapState} from 'vuex'
this.levelThreeName = initName.levelThreeName
}
if (menus[0].loadMenu) { // 简历管理模块需要加载渠道简历
this.getChannelMenu()
await this.getChannelMenu()
}
if (refesh&&this.$route.path.indexOf('channel') > -1) {
this.levelThreeName = this.$route.path.split('/')[2]
......@@ -213,7 +213,7 @@ import {mapState} from 'vuex'
},
getChannelMenu(){
this.menuList[0].child[1].child = []
getChannelMassage().then(res=>{
return getChannelMassage().then(res=>{
if (res.data.status == false || !res.data.success) {
return
}
......@@ -322,7 +322,7 @@ import {mapState} from 'vuex'
line-height: 55px;
border-bottom: 1px solid rgb(220, 222, 226);
font-size: 14px;
overflow:auto;
overflow:hidden;
.sign-out{
line-height: 6%
}
......
......@@ -1828,7 +1828,7 @@ import {mapState} from 'vuex'
})
})
},
remoteMethod: _debounce(function(query){
remoteMethod: function(query){
this.options = []
if (query !== '') {
this.loading1 = true;
......@@ -1840,11 +1840,11 @@ import {mapState} from 'vuex'
list = res
this.options = list.data.body
})
}, 500);
}, 200);
} else {
this.options = [];
}
}),
},
changenotice(a){
},
receiveEmail(){
......
......@@ -1799,10 +1799,9 @@ export default {
})
})
},
remoteMethod: _debounce(function(query){
remoteMethod: function(query){
this.options = []
if (query !== '') {
this.loading1 = true;
setTimeout(() => {
this.loading1 = false;
......@@ -1816,7 +1815,7 @@ export default {
} else {
this.options = [];
}
}, 500),
},
removeInterviewee (value) {
this.interviewee.map((item, index) => {
if (value&&item.id == value.id) {
......
......@@ -320,6 +320,7 @@ import {uploadFile} from '../../service/ajax'
return
}
this.uploadModal = true
this.filetile='上传中请稍后...'
uploadFile({
headers: this.headers,
data: this.dataList,
......@@ -334,9 +335,10 @@ import {uploadFile} from '../../service/ajax'
}, 200)
},
onSuccess: res => {
this.handleSuccess(res, this.files);
this.activeT=true
this.filetile='上传完成'
setTimeout(() => {
this.handleSuccess(res, this.files);
this.activeT=true
}, 1000)
},
onError: (err, response) => {
this.handleError(err, response, this.files);
......@@ -345,11 +347,12 @@ import {uploadFile} from '../../service/ajax'
},
handleProgress(e) {
this.dataList.map(item => {
item.percentage = e.percent
item.percentage = e.percent-5
})
},
handleSuccess (res, files) {
let data = res.body
this.filetile='上传完成'
for(let key in data){
let code = data[key].code
this.Code=data[key].code
......@@ -360,7 +363,7 @@ import {uploadFile} from '../../service/ajax'
if(item.Code==2){progressStatus={'2':'wrong'}}
item.status = this.progressStatus[code]
item.Code=this.Code
console.log(this.progressStatus[code])
item.percentage=100
}
})
}
......@@ -387,6 +390,7 @@ import {uploadFile} from '../../service/ajax'
this.dataList = []
this.fileName = ''
this.activeT=false
this.filetile='上传中请稍后...'
this.serchlist()
},
//下载单条简历
......
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