|
|
@@ -5,8 +5,8 @@ |
|
|
|
<van-tabs v-model="active" color="#007b76" title-active-color="#007b76" @change="tabChange"> |
|
|
|
<van-tab title="供应项目"> |
|
|
|
<van-dropdown-menu> |
|
|
|
<van-dropdown-item v-model="value1" :options="projectTypeOption" @change="getList"/> |
|
|
|
<van-dropdown-item :value="value2" :title="value2" ref="item"> |
|
|
|
<van-dropdown-item v-model="value1" :options="projectTypeOption" @change="getList('search')"/> |
|
|
|
<van-dropdown-item v-model="value2" :title="value2" ref="item"> |
|
|
|
<van-tree-select |
|
|
|
:active-id.sync="activeId" |
|
|
|
:items="deptListOption" |
|
|
@@ -16,7 +16,7 @@ |
|
|
|
@click-nav="clickNav" |
|
|
|
/> |
|
|
|
</van-dropdown-item> |
|
|
|
<van-dropdown-item v-model="value3" :options="option3" @change="getList"/> |
|
|
|
<van-dropdown-item v-model="value3" :options="option3" @change="getList('search')"/> |
|
|
|
</van-dropdown-menu> |
|
|
|
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="getList"> |
|
|
|
<router-link :to="{path:'project/projectDetail',query:{id:item.id}}" v-for="(item,index) in infoList" :key="index"> |
|
|
@@ -184,9 +184,19 @@ export default { |
|
|
|
} |
|
|
|
this.loading = false; |
|
|
|
}, |
|
|
|
getList(){ |
|
|
|
getList(type){ |
|
|
|
console.log(this.queryDatas) |
|
|
|
console.log(this.value1) |
|
|
|
console.log(this.value3) |
|
|
|
if (type == 'search'){ |
|
|
|
this.queryDatas.pageNum = 1; |
|
|
|
this.infoList=[]; |
|
|
|
this.finished = false; |
|
|
|
} |
|
|
|
this.loading = true; |
|
|
|
this.queryDatas.deptId = this.activeId; |
|
|
|
this.queryDatas.projectNumber = this.value1; |
|
|
|
this.queryDatas.projectShowStatus = this.value3; |
|
|
|
getOutProjectList(this.queryDatas).then(response =>{ |
|
|
|
// console.log(response) |
|
|
|
// this.infoList = response.rows |
|
|
@@ -252,7 +262,7 @@ export default { |
|
|
|
}else{ |
|
|
|
this.value2=data.text |
|
|
|
} |
|
|
|
this.getList() |
|
|
|
this.getList('search') |
|
|
|
this.$refs.item.toggle(); |
|
|
|
}, |
|
|
|
}, |
|
|
|