From 37d8049dcf339407a31eb450d195648f7db092a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Fri, 8 Dec 2023 19:36:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E4=BB=B7=E5=A4=A7=E5=8E=85=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/biddingHall/index.vue | 45 +++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/src/views/biddingHall/index.vue b/src/views/biddingHall/index.vue index 13cc3060..1aa15864 100644 --- a/src/views/biddingHall/index.vue +++ b/src/views/biddingHall/index.vue @@ -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() {