From 0daac085e308ab5dd5557048bbcb28473ae1b7df Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期三, 27 七月 2022 17:13:32 +0800 Subject: [PATCH] gb18186 --- src/views/GB28181/components/FormArea.vue | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/GB28181/components/FormArea.vue b/src/views/GB28181/components/FormArea.vue index 9184634..42bfb6f 100644 --- a/src/views/GB28181/components/FormArea.vue +++ b/src/views/GB28181/components/FormArea.vue @@ -116,6 +116,9 @@ import { isPort, isIPv4 } from "@/scripts/validate"; export default { + props: { + id: {}, + }, created() { this.initGB28181Conf(); }, @@ -168,7 +171,7 @@ }, methods: { initGB28181Conf() { - getGB28181Config().then((rsp) => { + getGB28181Config(this.id).then((rsp) => { if (rsp && rsp.success) { this.gb28181 = rsp.data; //this.gb28181.idType = 0; @@ -179,7 +182,7 @@ }); getGb28181AreaList().then((rsp) => { if (rsp && rsp.success) { - this.locationCity.provinceOptions = rsp.data; + this.locationCity.provinceOptions = rsp.data.list; } }); }, @@ -205,7 +208,7 @@ let pid = this.locationCity.province; getGb28181AreaList({ parentId: pid }).then((rsp) => { if (rsp && rsp.success) { - this.locationCity.cityOptions = rsp.data; + this.locationCity.cityOptions = rsp.data.list; this.locationCity.city = this.locationCity.cityOptions[0].id; this.changeCity(); } @@ -215,7 +218,7 @@ let pid = this.locationCity.city; getGb28181AreaList({ parentId: pid }).then((rsp) => { if (rsp && rsp.success) { - this.locationCity.countyOptions = rsp.data; + this.locationCity.countyOptions = rsp.data.list; this.locationCity.county = this.locationCity.countyOptions[0].id; } }); @@ -224,7 +227,7 @@ let cCode = this.locationCity.county + ""; newGb28181ID({ code: cCode }).then((rsp) => { if (rsp && rsp.success) { - this.gb28181.PublicId = rsp.data; + this.gb28181.PublicId = rsp.data.code; } }); }, -- Gitblit v1.8.0