diff --git a/src/components/common/Home.vue b/src/components/common/Home.vue index 0c1d3ea..87173be 100644 --- a/src/components/common/Home.vue +++ b/src/components/common/Home.vue @@ -5,9 +5,9 @@
- - - + + +
diff --git a/src/utils/api/index.js b/src/utils/api/index.js index e4e6ded..d816fa9 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -664,3 +664,23 @@ export function issueApk(data) { data, }); } + +//全局设置线缆绘制 +export function getMarkEnableStatus(data) { + return request({ + url: "/api/getMarkEnableStatus", + method: "post", + data, + }); +} +//全局更新设置线缆绘制 +export function updateMarkEnableStatus(data) { + return request({ + url: "/api/updateMarkEnableStatus", + method: "post", + data, + headers: { + "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", + }, + }); +} diff --git a/src/views/alarmHandling/components/historyimg.vue b/src/views/alarmHandling/components/historyimg.vue index c0b9839..38deb96 100644 --- a/src/views/alarmHandling/components/historyimg.vue +++ b/src/views/alarmHandling/components/historyimg.vue @@ -2,19 +2,22 @@ - - - - - +
+ + + + + +
- diff --git a/src/views/alarmHandling/index.vue b/src/views/alarmHandling/index.vue index e11fab1..b9393ca 100644 --- a/src/views/alarmHandling/index.vue +++ b/src/views/alarmHandling/index.vue @@ -165,13 +165,18 @@
+
+ + +
- -
{}); }, //获取数据 getTableList() { this.loading = true; - // this.$set(this.formdata, "dyId", this.page); - // this.$set(this.formdata, "label", this.page); - // this.$set(this.formdata, "lineId", this.page); - // this.$set(this.formdata, "towerId", this.page); this.$set(this.formdata, "pageindex", this.page); this.$set(this.formdata, "pagesize", this.pageSize); this.$set(this.formdata, "starttime", this.formdata.timeVal[0]); @@ -334,12 +335,10 @@ export default { this.photoPic = res.data.list[0].path; this.selectRow = res.data.list[0]; console.log(this.selectRow); - this.drawline(this.selectRow); - this.$nextTick(() => { - // 别忘了标签上定义ref 这里的 myTable就说获取的标签上的ref命的名 - this.$refs.multipleTable.setCurrentRow(this.selectRow); - this.handleRowClick(this.selectRow); - }); + + // 别忘了标签上定义ref 这里的 myTable就说获取的标签上的ref命的名 + this.$refs.multipleTable.setCurrentRow(this.selectRow); + this.handleRowClick(this.selectRow); }) .catch((err) => { console.log(err); @@ -416,7 +415,9 @@ export default { }); }, 300); } - this.drawline(row); + this.$nextTick(() => { + this.drawline(row); + }); }, //手动拍照 handleCommandpic() { @@ -484,7 +485,7 @@ export default { }, }; -