|
@@ -171,7 +171,7 @@
|
|
|
<div class="fold-wrapper" @click="foldShow = !foldShow"> <img src="@/assets/images/bjybz/choose.png" alt="" style="vertical-align: middle"> {{ foldShow ? '折叠' : '展开' }} </div>
|
|
|
</th>
|
|
|
<td>
|
|
|
- <el-button size="medium" type="primary" @click="queryData()" icon="el-icon-search" style="float: right">查 询</el-button>
|
|
|
+ <el-button size="medium" type="primary" @click="searchData()" icon="el-icon-search" style="float: right">查 询</el-button>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -267,11 +267,13 @@ export default {
|
|
|
nf: '2021',
|
|
|
ydlx: [],
|
|
|
crjhs: [ '2023年', '2024年', '2025年','2026年','远期' ],
|
|
|
- foldShow: false
|
|
|
+ foldShow: false,
|
|
|
+ isAllSelected: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.queryData()
|
|
|
+ this.initHZ()
|
|
|
+ this.getTsxzListData();
|
|
|
// this.initTdyts()
|
|
|
},
|
|
|
methods: {
|
|
@@ -283,14 +285,15 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getTsxzListData() {
|
|
|
- const ydlxArr = this.ydlx.map(arr => arr[1])
|
|
|
const urlApi = `/api/ybz-bj/wlydList`;
|
|
|
let p = {
|
|
|
...this.query,
|
|
|
- dlbms: ydlxArr,
|
|
|
pageIndex: this.config.page.index,
|
|
|
pageSize: this.config.page.count
|
|
|
}
|
|
|
+ if (this.ydlx.length > 0) {
|
|
|
+ p['dlbms'] = this.isAllSelected ? [this.ydlx[0][0]] : this.ydlx.map(arr => arr[1])
|
|
|
+ }
|
|
|
this.$ajax.get(urlApi, p, this, false).then((result) => {
|
|
|
const data = result["data"] || {};
|
|
|
this.xzList = data['list'];
|
|
@@ -320,7 +323,17 @@ export default {
|
|
|
});
|
|
|
window.open(routeUrl.href, '_blank');
|
|
|
},
|
|
|
- queryData() {
|
|
|
+ searchData() {
|
|
|
+ this.isAllSelected = false;
|
|
|
+ if (this.ydlx.length > 0) {
|
|
|
+ const pBm = this.ydlx[0][0]
|
|
|
+ const selected = ydlxDicts.filter(item => item.value === pBm);
|
|
|
+ if (selected && selected.length > 0) {
|
|
|
+ if (selected[0]['children'].length === this.ydlx.length) {
|
|
|
+ this.isAllSelected = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
this.initHZ()
|
|
|
this.getTsxzListData();
|
|
|
return;
|
|
@@ -368,10 +381,11 @@ export default {
|
|
|
}, 200)
|
|
|
},
|
|
|
initHZ () {
|
|
|
- const ydlxArr = this.ydlx.map(arr => arr[1])
|
|
|
const p = {
|
|
|
- ...this.query,
|
|
|
- dlbms: ydlxArr
|
|
|
+ ...this.query
|
|
|
+ }
|
|
|
+ if (this.ydlx.length > 0) {
|
|
|
+ p['dlbms'] = this.isAllSelected ? [this.ydlx[0][0]] : this.ydlx.map(arr => arr[1])
|
|
|
}
|
|
|
const urlApi = `/api/ybz-bj/wlydTJ`;
|
|
|
this.$ajax.get(urlApi, p, this, false).then(result=>{
|