| @@ -242,19 +242,24 @@ export default { | |||||
| }); | }); | ||||
| getDeptList().then(response => { | getDeptList().then(response => { | ||||
| response.data.map(item => { | response.data.map(item => { | ||||
| getDeptList(item.deptId).then(res => { | |||||
| this.deptListOption.push({text: item.deptName,children: [],id:item.deptId}) | |||||
| }); | |||||
| console.log(this.deptListOption) | |||||
| if(response.data.length > 0){ | |||||
| getDeptList(response.data[0].deptId).then(res => { | |||||
| let list = [] | let list = [] | ||||
| res.data.map(i =>{ | res.data.map(i =>{ | ||||
| list.push({text:i.deptName,children:[],id:i.deptId}) | list.push({text:i.deptName,children:[],id:i.deptId}) | ||||
| }) | }) | ||||
| if(list.length==0){ | if(list.length==0){ | ||||
| list.push({text:item.deptName,id:item.deptId}) | |||||
| list.push({text:response.data[0].deptName,id:response.data[0].deptId}) | |||||
| }else{ | }else{ | ||||
| this.deptListOption.push({ text: item.deptName,children: list}); | |||||
| this.$set(this.deptListOption[0], "children", list); | |||||
| } | } | ||||
| }); | }); | ||||
| }); | |||||
| } | |||||
| }); | }); | ||||
| }, | }, | ||||
| methods:{ | methods:{ | ||||
| @@ -317,7 +322,18 @@ export default { | |||||
| }); | }); | ||||
| }, | }, | ||||
| clickNav(index){ | clickNav(index){ | ||||
| console.log(index) | |||||
| getDeptList(this.deptListOption[index].id).then(res => { | |||||
| let list = [] | |||||
| res.data.map(i =>{ | |||||
| list.push({text:i.deptName,children:[],id:i.deptId}) | |||||
| }) | |||||
| if(list.length==0){ | |||||
| list.push({text:this.deptListOption[index].deptName,id:this.deptListOption[index].id}) | |||||
| }else{ | |||||
| this.$set(this.deptListOption[index], "children", list); | |||||
| } | |||||
| }); | |||||
| }, | }, | ||||
| clickItem(data){ | clickItem(data){ | ||||
| console.log(data) | console.log(data) | ||||
| @@ -19,7 +19,7 @@ | |||||
| > | > | ||||
| <van-cell v-for="(item,index) in noticeList" icon="play" :key="index" :title="item.projectName" :to="{name:'noticeDetail', query: {id:item.id}}"> | <van-cell v-for="(item,index) in noticeList" icon="play" :key="index" :title="item.projectName" :to="{name:'noticeDetail', query: {id:item.id}}"> | ||||
| <template #label> | <template #label> | ||||
| 项目编号:{{item.projectCode}} <p style="float: right;">{{item.contractDate}}</p> | |||||
| 项目编号:{{item.projectCode}} <p style="float: right;">{{item.dealTime.substr(0,10)}}</p> | |||||
| </template> | </template> | ||||
| </van-cell> | </van-cell> | ||||
| </van-list> | </van-list> | ||||
| @@ -136,18 +136,25 @@ export default { | |||||
| }); | }); | ||||
| getDeptList().then(response => { | getDeptList().then(response => { | ||||
| response.data.map(item => { | response.data.map(item => { | ||||
| getDeptList(item.deptId).then(res => { | |||||
| this.deptListOption.push({text: item.deptName,children: [],id:item.deptId}) | |||||
| }); | |||||
| console.log(this.deptListOption) | |||||
| if(response.data.length > 0){ | |||||
| getDeptList(response.data[0].deptId).then(res => { | |||||
| let list = [] | let list = [] | ||||
| res.data.map(i =>{ | res.data.map(i =>{ | ||||
| list.push({text:i.deptName,children:[],id:i.deptId}) | list.push({text:i.deptName,children:[],id:i.deptId}) | ||||
| }) | }) | ||||
| if(list.length==0){ | if(list.length==0){ | ||||
| list.push({text:item.deptName,id:item.deptId}) | |||||
| list.push({text:response.data[0].deptName,id:response.data[0].deptId}) | |||||
| }else{ | }else{ | ||||
| this.deptListOption.push({ text: item.deptName,children: list}); | |||||
| this.$set(this.deptListOption[0], "children", list); | |||||
| } | } | ||||
| }); | }); | ||||
| }); | |||||
| } | |||||
| }); | }); | ||||
| this.getList(); | this.getList(); | ||||
| }, | }, | ||||
| @@ -224,9 +231,21 @@ export default { | |||||
| }); | }); | ||||
| }, | }, | ||||
| clickNav(index){ | clickNav(index){ | ||||
| console.log(index) | |||||
| getDeptList(this.deptListOption[index].id).then(res => { | |||||
| let list = [] | |||||
| res.data.map(i =>{ | |||||
| list.push({text:i.deptName,children:[],id:i.deptId}) | |||||
| }) | |||||
| if(list.length==0){ | |||||
| list.push({text:this.deptListOption[index].deptName,id:this.deptListOption[index].id}) | |||||
| }else{ | |||||
| this.$set(this.deptListOption[index], "children", list); | |||||
| } | |||||
| }); | |||||
| }, | }, | ||||
| clickItem(data){ | clickItem(data){ | ||||
| console.log('clickItem') | |||||
| if(data.text==this.value2){ | if(data.text==this.value2){ | ||||
| this.activeId=1 | this.activeId=1 | ||||
| this.value2='标的物位置' | this.value2='标的物位置' | ||||
| @@ -9,17 +9,17 @@ | |||||
| /> | /> | ||||
| <van-tabs scrollspy sticky color="#007b76" > | <van-tabs scrollspy sticky color="#007b76" > | ||||
| <van-tab title="竞拍信息" title-style="font-size:12px;"> | <van-tab title="竞拍信息" title-style="font-size:12px;"> | ||||
| <van-swipe class="my-swipe" height="235" indicator-color="white" @change="onChange"> | |||||
| <template v-if="detail.fileUrlList !== undefined &&detail.fileUrlList.length>0"> | |||||
| <van-swipe-item v-for="(item,index) in detail.fileUrlList" :key="index"><van-image :src="item.fileUrl?'/api'+item.fileUrl:'../../static/images/zwtp.jpg'" height="235" /></van-swipe-item> | |||||
| </template> | |||||
| <template v-else> | |||||
| <van-swipe-item><van-image src="../../static/images/zwtp.jpg" height="235" /></van-swipe-item> | |||||
| </template> | |||||
| <template #indicator> | |||||
| <div class="custom-indicator">{{ current + 1 }}/{{ detail.fileUrlList !== undefined &&detail.fileUrlList.length>0 ? detail.fileUrlList.length:1 }}</div> | |||||
| </template> | |||||
| </van-swipe> | |||||
| <!-- <van-swipe class="my-swipe" height="235" indicator-color="white" @change="onChange">--> | |||||
| <!-- <template v-if="detail.fileUrlList !== undefined &&detail.fileUrlList.length>0">--> | |||||
| <!-- <van-swipe-item v-for="(item,index) in detail.fileUrlList" :key="index"><van-image :src="item.fileUrl?'/api'+item.fileUrl:'../../static/images/zwtp.jpg'" height="235" /></van-swipe-item>--> | |||||
| <!-- </template>--> | |||||
| <!-- <template v-else>--> | |||||
| <!-- <van-swipe-item><van-image src="../../static/images/zwtp.jpg" height="235" /></van-swipe-item>--> | |||||
| <!-- </template>--> | |||||
| <!-- <template #indicator>--> | |||||
| <!-- <div class="custom-indicator">{{ current + 1 }}/{{ detail.fileUrlList !== undefined &&detail.fileUrlList.length>0 ? detail.fileUrlList.length:1 }}</div>--> | |||||
| <!-- </template>--> | |||||
| <!-- </van-swipe>--> | |||||
| <van-notice-bar color="#fff" background="#007E72" left-icon="clock-o"> | <van-notice-bar color="#fff" background="#007E72" left-icon="clock-o"> | ||||
| {{ process }}    {{tip}} | {{ process }}    {{tip}} | ||||
| </van-notice-bar> | </van-notice-bar> | ||||