diff --git a/src/views/modules/cabaseinfo/caloudong.vue b/src/views/modules/cabaseinfo/caloudong.vue index 4f7118bc..3a261a3a 100644 --- a/src/views/modules/cabaseinfo/caloudong.vue +++ b/src/views/modules/cabaseinfo/caloudong.vue @@ -3,13 +3,15 @@ - - - + + + + + { - if(resp.data.code === 0){ - this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) - } - }).catch(error => { - this.$message.error(error) - }) - }, - removeEmptySubOrgList (orgArray) { - orgArray.forEach((orgInfo) => { - if (orgInfo && orgInfo.children) { - if (orgInfo.children.length === 0) { - orgInfo.children = undefined - } else { - this.removeEmptySubOrgList(orgInfo.children) - } - } - }) - return orgArray; - }, + // getloudongOptions(){ + // this.$http.post(`/opendata/bmGrid/getCascadeMenu`).then(resp => { + // if(resp.data.code === 0){ + // this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) + // } + // }).catch(error => { + // this.$message.error(error) + // }) + // }, + // removeEmptySubOrgList (orgArray) { + // orgArray.forEach((orgInfo) => { + // if (orgInfo && orgInfo.children) { + // if (orgInfo.children.length === 0) { + // orgInfo.children = undefined + // } else { + // this.removeEmptySubOrgList(orgInfo.children) + // } + // } + // }) + // return orgArray; + // }, handlePartyChange(val) { console.log('val------pp', val) this.dataForm.gridId = val[val.length - 1] }, + async getGridList(type, agencyId) { + const { user } = await this.$store.state + console.log('user---ppp', user) + // addorupdate query + await this.$http + .post('/gov/org/customergrid/gridoption', { agencyId: agencyId || user.agencyId, purpose: type }) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取查询详情成功', res.data) + this.optionsG = res.data + if (type === 'query') this.optionsG = res.data + else this.optionsEditG = res.data + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, }, created(){ - this.getloudongOptions() + // this.getloudongOptions() + this.getGridList('query') }, components: { AddOrUpdate, diff --git a/src/views/modules/cabaseinfo/capingfang.vue b/src/views/modules/cabaseinfo/capingfang.vue index e6f3a1b5..b461b473 100644 --- a/src/views/modules/cabaseinfo/capingfang.vue +++ b/src/views/modules/cabaseinfo/capingfang.vue @@ -3,13 +3,15 @@ - - - + + + + + { - if(resp.data.code === 0){ - this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) - } - }).catch(error => { - this.$message.error(error) - }) - }, - removeEmptySubOrgList (orgArray) { - orgArray.forEach((orgInfo) => { - if (orgInfo && orgInfo.children) { - if (orgInfo.children.length === 0) { - orgInfo.children = undefined - } else { - this.removeEmptySubOrgList(orgInfo.children) - } - } - }) - return orgArray; - }, + // getloudongOptions(){ + // this.$http.post(`/opendata/cabmGrid/getCascadeMenu`).then(resp => { + // if(resp.data.code === 0){ + // this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) + // } + // }).catch(error => { + // this.$message.error(error) + // }) + // }, + // removeEmptySubOrgList (orgArray) { + // orgArray.forEach((orgInfo) => { + // if (orgInfo && orgInfo.children) { + // if (orgInfo.children.length === 0) { + // orgInfo.children = undefined + // } else { + // this.removeEmptySubOrgList(orgInfo.children) + // } + // } + // }) + // return orgArray; + // }, + handlePartyChange(val) { console.log('val------pp', val) this.dataForm.gridId = val[val.length - 1] }, + async getGridList(type, agencyId) { + const { user } = await this.$store.state + console.log('user---ppp', user) + // addorupdate query + await this.$http + .post('/gov/org/customergrid/gridoption', { agencyId: agencyId || user.agencyId, purpose: type }) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取查询详情成功', res.data) + this.optionsG = res.data + if (type === 'query') this.optionsG = res.data + else this.optionsEditG = res.data + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, }, created(){ - this.getloudongOptions() + // this.getloudongOptions() + this.getGridList() }, components: { AddOrUpdate, diff --git a/src/views/modules/cabaseinfo/carental.vue b/src/views/modules/cabaseinfo/carental.vue index 9392fa23..bb8ed3c3 100644 --- a/src/views/modules/cabaseinfo/carental.vue +++ b/src/views/modules/cabaseinfo/carental.vue @@ -3,13 +3,15 @@ - - - + + + + + { - if(resp.data.code === 0){ - this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) - } - }).catch(error => { - this.$message.error(error) - }) - }, - removeEmptySubOrgList (orgArray) { - orgArray.forEach((orgInfo) => { - if (orgInfo && orgInfo.children) { - if (orgInfo.children.length === 0) { - orgInfo.children = undefined - } else { - this.removeEmptySubOrgList(orgInfo.children) - } - } - }) - return orgArray; - }, + // getloudongOptions(){ + // this.$http.post(`/opendata/bmGrid/getCascadeMenu`).then(resp => { + // if(resp.data.code === 0){ + // this.caLouDongOptions = this.removeEmptySubOrgList(resp.data.data) + // } + // }).catch(error => { + // this.$message.error(error) + // }) + // }, + // removeEmptySubOrgList (orgArray) { + // orgArray.forEach((orgInfo) => { + // if (orgInfo && orgInfo.children) { + // if (orgInfo.children.length === 0) { + // orgInfo.children = undefined + // } else { + // this.removeEmptySubOrgList(orgInfo.children) + // } + // } + // }) + // return orgArray; + // }, handlePartyChange(val) { console.log('val------pp', val) this.dataForm.gridId = val[val.length - 1] }, + async getGridList(type, agencyId) { + const { user } = await this.$store.state + console.log('user---ppp', user) + // addorupdate query + await this.$http + .post('/gov/org/customergrid/gridoption', { agencyId: agencyId || user.agencyId, purpose: type }) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取查询详情成功', res.data) + this.optionsG = res.data + if (type === 'query') this.optionsG = res.data + else this.optionsEditG = res.data + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, }, created(){ - this.getloudongOptions() + // this.getloudongOptions() + this.getGridList() }, components: { AddOrUpdate, diff --git a/src/views/modules/cabaseinfo/caresident.vue b/src/views/modules/cabaseinfo/caresident.vue index 8b91e76a..5b199952 100644 --- a/src/views/modules/cabaseinfo/caresident.vue +++ b/src/views/modules/cabaseinfo/caresident.vue @@ -3,13 +3,15 @@ - - - + + + + + @@ -117,8 +119,15 @@ align="center" :show-overflow-tooltip="true" > - + @@ -152,10 +169,15 @@ diff --git a/src/views/modules/cabaseinfo/carotators-binding-house.vue b/src/views/modules/cabaseinfo/carotators-binding-house.vue new file mode 100644 index 00000000..cdeaf968 --- /dev/null +++ b/src/views/modules/cabaseinfo/carotators-binding-house.vue @@ -0,0 +1,649 @@ + + + + + + diff --git a/src/views/modules/cabaseinfo/carotators.vue b/src/views/modules/cabaseinfo/carotators.vue index f6068f2b..8111a77b 100644 --- a/src/views/modules/cabaseinfo/carotators.vue +++ b/src/views/modules/cabaseinfo/carotators.vue @@ -3,13 +3,15 @@ - - - + + + + + @@ -113,6 +115,7 @@ >