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