From b06b7fddfa6fc16c42852fc2b6473ed57201296f Mon Sep 17 00:00:00 2001 From: 13703816893 Date: Wed, 14 Jun 2023 16:33:56 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8B=8D=E7=85=A7=E8=A3=85=E7=BD=AE--?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E3=80=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../photographicDevice/index.vue | 118 ++++++++++++++++-- vue.config.js | 6 +- 2 files changed, 114 insertions(+), 10 deletions(-) diff --git a/src/views/management/monitoringEquipment/photographicDevice/index.vue b/src/views/management/monitoringEquipment/photographicDevice/index.vue index 9b1ac39..461e164 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/index.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/index.vue @@ -3,9 +3,51 @@

拍照装置管理

- 新增 + 新增 +
+
{ + this.dyOptions = this.dyOptions.concat(res.data.list); + this.formdata.dyId = this.dyOptions[0].id; + this.getSearchxl(); + }) + .catch((err) => {}); + }, + //获取线路数据 + getSearchxl() { + getSearchInfo({ type: 2, id: this.formdata.dyId }) + .then((res) => { + this.xlOptions = [{ id: 0, name: "全部" }]; + this.xlOptions = this.xlOptions.concat(res.data.list); + this.formdata.lineId = this.xlOptions[0].id; + this.getSearchgt(); + }) + .catch((err) => {}); + }, + //获取杆塔数据 + getSearchgt() { + getSearchInfo({ type: 3, id: this.formdata.lineId }) + .then((res) => { + this.gtOptions = [{ id: 0, name: "全部" }]; + this.gtOptions = this.gtOptions.concat(res.data.list); + this.formdata.towerId = this.gtOptions[0].id; + }) + .catch((err) => {}); + }, + //查询 + onSubmit() { + this.terminalList(); + }, ////获取拍照装置列表数据 terminalList() { this.loading = true; @@ -528,7 +615,7 @@ export default { }, }; -