|
@@ -252,8 +252,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.$vm.$emit('setGdDetailType', 24);
|
|
|
- this.initHZ();
|
|
|
- this.getTsxzListData();
|
|
|
+ this.queryData();
|
|
|
},
|
|
|
methods: {
|
|
|
tagBoxInit(state) {
|
|
@@ -287,21 +286,21 @@ export default {
|
|
|
refreshP += ` and dkbh like '%${this.query.name}%'`;
|
|
|
}
|
|
|
if (this.query.gddw) {
|
|
|
- const gddws = await this.queryGddwGroupByGddw(this.query.gddw)
|
|
|
- if (gddws.length > 0) {
|
|
|
+ const dksyhs = await this.getXcryDksyhListByAll(this.query.gddw)
|
|
|
+ if (dksyhs.length > 0) {
|
|
|
let pstr_n = '';
|
|
|
- gddws.forEach((it,index) => {
|
|
|
+ dksyhs.forEach((it,index) => {
|
|
|
pstr_n += "'"
|
|
|
- pstr_n += it['gddw']
|
|
|
- if (index === gddws.length - 1) {
|
|
|
+ pstr_n += it
|
|
|
+ if (index === dksyhs.length - 1) {
|
|
|
pstr_n += "'";
|
|
|
} else {
|
|
|
pstr_n += "',"
|
|
|
}
|
|
|
})
|
|
|
- refreshP += ` and gddw in (${pstr_n})`;
|
|
|
+ refreshP += ` and dksyh in (${pstr_n})`;
|
|
|
} else {
|
|
|
- refreshP += ` and gddw in ('${this.query.gddw}')`;
|
|
|
+ refreshP += ` and dksyh in ('${this.query.gddw}')`;
|
|
|
}
|
|
|
}
|
|
|
if (this.query.small) {
|
|
@@ -357,6 +356,17 @@ export default {
|
|
|
this.config.total = data['total'];
|
|
|
});
|
|
|
},
|
|
|
+ async getXcryDksyhListByAll() {
|
|
|
+ const urlApi = `/app/xc/getXcryDksyhListByAll`;
|
|
|
+ let p = {
|
|
|
+ ...this.query
|
|
|
+ };
|
|
|
+ if (this.userInfo && this.userInfo['nickName'] == '滨江地块监督') {
|
|
|
+ p['gddw'] = ''
|
|
|
+ }
|
|
|
+ const result = await this.$ajax.get(urlApi, p, this, false);
|
|
|
+ return result['data']
|
|
|
+ },
|
|
|
// 点击上一页、下一页以及指定页
|
|
|
pageToMe(index) {
|
|
|
this.config.page.index = index;
|