|
|
@@ -192,7 +192,11 @@ export default { |
|
|
|
value:"", |
|
|
|
info:[], |
|
|
|
//标的物所在地 |
|
|
|
deptListOption: [], |
|
|
|
deptListOption: [ |
|
|
|
{ |
|
|
|
text: '标的物位置',children: [],id:'' |
|
|
|
} |
|
|
|
], |
|
|
|
option3: [ |
|
|
|
{ text: '竞价状态', value: '' }, |
|
|
|
{ text: '正在报名', value: '正在报名' }, |
|
|
@@ -223,19 +227,19 @@ export default { |
|
|
|
|
|
|
|
console.log(this.deptListOption) |
|
|
|
|
|
|
|
if(response.data.length > 0){ |
|
|
|
getDeptList(response.data[0].deptId).then(res => { |
|
|
|
let list = [] |
|
|
|
res.data.map(i =>{ |
|
|
|
list.push({text:i.deptName,children:[],id:i.deptId}) |
|
|
|
}) |
|
|
|
if(list.length==0){ |
|
|
|
list.push({text:response.data[0].deptName,id:response.data[0].deptId}) |
|
|
|
}else{ |
|
|
|
this.$set(this.deptListOption[0], "children", list); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
// if(response.data.length > 0){ |
|
|
|
// getDeptList(response.data[0].deptId).then(res => { |
|
|
|
// let list = [] |
|
|
|
// res.data.map(i =>{ |
|
|
|
// list.push({text:i.deptName,children:[],id:i.deptId}) |
|
|
|
// }) |
|
|
|
// if(list.length==0){ |
|
|
|
// list.push({text:response.data[0].deptName,id:response.data[0].deptId}) |
|
|
|
// }else{ |
|
|
|
// this.$set(this.deptListOption[0], "children", list); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// } |
|
|
|
}); |
|
|
|
}, |
|
|
|
methods:{ |
|
|
@@ -312,6 +316,8 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
console.log(this.infoList.length) |
|
|
|
console.log(response.total) |
|
|
|
if(this.infoList.length >= response.total){ |
|
|
|
this.finished = true; |
|
|
|
return; |
|
|
@@ -323,6 +329,14 @@ export default { |
|
|
|
}, |
|
|
|
clickNav(index){ |
|
|
|
console.log(index) |
|
|
|
if (index == 0){ |
|
|
|
this.infoList = []; |
|
|
|
this.value2='标的物位置' |
|
|
|
this.queryParams.pageNum = 1; |
|
|
|
this.activeId=null; |
|
|
|
this.getList() |
|
|
|
return; |
|
|
|
} |
|
|
|
getDeptList(this.deptListOption[index].id).then(res => { |
|
|
|
let list = [] |
|
|
|
res.data.map(i =>{ |
|
|
@@ -351,12 +365,15 @@ export default { |
|
|
|
this.infoList = []; |
|
|
|
this.queryParams.pageNum = 1; |
|
|
|
this.finished = false; |
|
|
|
this.loading =true; |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
onSearch(val) { |
|
|
|
this.infoList = [] |
|
|
|
this.queryParams.pageNum = '1' |
|
|
|
this.queryParams.projectName = val |
|
|
|
this.finished = false; |
|
|
|
this.loading =true; |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
onL() { |
|
|
|