diff --git a/src/views/management/monitoringEquipment/photographicDevice/index.vue b/src/views/management/monitoringEquipment/photographicDevice/index.vue index bc1b187..3f291bf 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/index.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/index.vue @@ -3,10 +3,52 @@

拍照装置管理

- 新增 + 新增
+
{ + 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; @@ -572,15 +665,10 @@ export default { this.pageSize = val; this.terminalList(); }, - }, - created() { - this.terminalList(); - this.roleUser = localStorage.getItem("role"); - console.log(this.roleUser); - }, + } }; -