From aed6d48870fff07ebb1fe1b6d3226fce01315b59 Mon Sep 17 00:00:00 2001 From: HAHA Date: Thu, 16 Jun 2022 09:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E4=B8=8B=E6=8B=89=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/cabaseinfo/caloudong.vue | 29 +++++++++++++++++++++ src/views/modules/cabaseinfo/capingfang.vue | 29 +++++++++++++++++++++ src/views/modules/cabaseinfo/carental.vue | 29 +++++++++++++++++++++ src/views/modules/cabaseinfo/caresident.vue | 29 +++++++++++++++++++++ src/views/modules/cabaseinfo/carotators.vue | 29 +++++++++++++++++++++ 5 files changed, 145 insertions(+) diff --git a/src/views/modules/cabaseinfo/caloudong.vue b/src/views/modules/cabaseinfo/caloudong.vue index 5a07d25f..4f32e593 100644 --- a/src/views/modules/cabaseinfo/caloudong.vue +++ b/src/views/modules/cabaseinfo/caloudong.vue @@ -16,6 +16,14 @@ clearable > + + + + {{ $t("query") }} @@ -145,9 +153,30 @@ export default { dataForm: { buildingName: "", communityName: "", + gridId:"" }, + caLouDongOptions:[] }; }, + methods:{ + getloudongOptions(){ + this.$http.post(`/opendata/caLoudong/getLouDongCascade`).then(resp => { + if(resp.data.code === 0){ + this.caLouDongOptions = resp.data.data + } + }).catch(error => { + this.$message.error(error) + }) + + }, + handlePartyChange(val) { + console.log('val------pp', val) + this.dataForm.gridId = val[val.length - 1] + }, + }, +created(){ + this.getloudongOptions() + }, components: { AddOrUpdate, }, diff --git a/src/views/modules/cabaseinfo/capingfang.vue b/src/views/modules/cabaseinfo/capingfang.vue index 69404307..13043d32 100644 --- a/src/views/modules/cabaseinfo/capingfang.vue +++ b/src/views/modules/cabaseinfo/capingfang.vue @@ -16,6 +16,14 @@ clearable > + + + + {{ $t("query") }} @@ -145,9 +153,30 @@ export default { dataForm: { buildingName: "", communityName: "", + gridId:"" }, + caLouDongOptions:[] }; }, + methods:{ + getloudongOptions(){ + this.$http.post(`/opendata/caLoudong/getLouDongCascade`).then(resp => { + if(resp.data.code === 0){ + this.caLouDongOptions = resp.data.data + } + }).catch(error => { + this.$message.error(error) + }) + + }, + handlePartyChange(val) { + console.log('val------pp', val) + this.dataForm.gridId = val[val.length - 1] + }, + }, +created(){ + this.getloudongOptions() + }, components: { AddOrUpdate, }, diff --git a/src/views/modules/cabaseinfo/carental.vue b/src/views/modules/cabaseinfo/carental.vue index 0980e803..317e299c 100644 --- a/src/views/modules/cabaseinfo/carental.vue +++ b/src/views/modules/cabaseinfo/carental.vue @@ -22,6 +22,14 @@ placeholder="承租人姓名" clearable > + + + + {{ $t("query") }} @@ -146,9 +154,30 @@ export default { houseName: "", residentName: "", renterName: "", + gridId:"" }, + caLouDongOptions:[] }; }, + methods:{ + getloudongOptions(){ + this.$http.post(`/opendata/caLoudong/getLouDongCascade`).then(resp => { + if(resp.data.code === 0){ + this.caLouDongOptions = resp.data.data + } + }).catch(error => { + this.$message.error(error) + }) + + }, + handlePartyChange(val) { + console.log('val------pp', val) + this.dataForm.gridId = val[val.length - 1] + }, + }, +created(){ + this.getloudongOptions() + }, components: { AddOrUpdate, }, diff --git a/src/views/modules/cabaseinfo/caresident.vue b/src/views/modules/cabaseinfo/caresident.vue index 0cba7cd8..68010a88 100644 --- a/src/views/modules/cabaseinfo/caresident.vue +++ b/src/views/modules/cabaseinfo/caresident.vue @@ -19,6 +19,14 @@ clearable > + + + + {{ $t("query") }} @@ -137,9 +145,30 @@ export default { idCard: "", residentName: "", telephone: "", + gridId:"" }, + caLouDongOptions:[] }; }, + methods:{ + getloudongOptions(){ + this.$http.post(`/opendata/caLoudong/getLouDongCascade`).then(resp => { + if(resp.data.code === 0){ + this.caLouDongOptions = resp.data.data + } + }).catch(error => { + this.$message.error(error) + }) + + }, + handlePartyChange(val) { + console.log('val------pp', val) + this.dataForm.gridId = val[val.length - 1] + }, + }, +created(){ + this.getloudongOptions() + }, components: { AddOrUpdate, }, diff --git a/src/views/modules/cabaseinfo/carotators.vue b/src/views/modules/cabaseinfo/carotators.vue index c171dad8..6f7ba14e 100644 --- a/src/views/modules/cabaseinfo/carotators.vue +++ b/src/views/modules/cabaseinfo/carotators.vue @@ -18,6 +18,14 @@ placeholder="联系方式" clearable > + + + + {{ $t("query") }} @@ -131,9 +139,30 @@ export default { idCard: "", residentName: "", telephone: "", + gridId:"" }, + caLouDongOptions:[] }; }, + methods:{ + getloudongOptions(){ + this.$http.post(`/opendata/caLoudong/getLouDongCascade`).then(resp => { + if(resp.data.code === 0){ + this.caLouDongOptions = resp.data.data + } + }).catch(error => { + this.$message.error(error) + }) + + }, + handlePartyChange(val) { + console.log('val------pp', val) + this.dataForm.gridId = val[val.length - 1] + }, + }, +created(){ + this.getloudongOptions() + }, components: { AddOrUpdate, },