From 5e38d5e48aea3b589b87b180f7932306be562f05 Mon Sep 17 00:00:00 2001
From: fanluyan <754122931@qq.com>
Date: Fri, 9 Jun 2023 18:17:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/Home.vue | 6 +--
src/utils/api/index.js | 20 ++++++++
.../alarmHandling/components/historyimg.vue | 50 ++++++++++++------
src/views/alarmHandling/index.vue | 51 +++++++++++--------
src/views/components/carouselChart.vue | 33 ++++++++++--
.../userEquipment/towerInformation/index.vue | 6 ++-
src/views/system/globalTools/index.vue | 30 ++++++++++-
vue.config.js | 2 +-
8 files changed, 148 insertions(+), 50 deletions(-)
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 @@
{});
},
//获取数据
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 {
},
};
-