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

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

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