From ec252405a7ee8c3cae8bfdb8b5d0a5b6697d5417 Mon Sep 17 00:00:00 2001 From: 13703816893 Date: Thu, 8 Jun 2023 17:07:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6--=E5=8E=86=E5=8F=B2=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api/index.js | 9 ++- .../alarmHandling/components/historyimg.vue | 61 +++++++++++++++++++ src/views/alarmHandling/index.vue | 12 +++- 3 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 src/views/alarmHandling/components/historyimg.vue diff --git a/src/utils/api/index.js b/src/utils/api/index.js index fc8bd13..cd5d3b2 100644 --- a/src/utils/api/index.js +++ b/src/utils/api/index.js @@ -91,7 +91,6 @@ export function getAlarmList(data) { }); } //获取告警label - export function getAlarmTypeList(data) { return request({ url: "/api/getAlarmTypeList", @@ -107,6 +106,14 @@ export function readAlarm(data) { data, }); } +//获取历史图片 +export function getHistoryList(data) { + return request({ + url: "/api/getHistoryList", + method: "post", + data, + }); +} //历史图片 //获取电压-线路-杆塔等信息 diff --git a/src/views/alarmHandling/components/historyimg.vue b/src/views/alarmHandling/components/historyimg.vue new file mode 100644 index 0000000..c78fae8 --- /dev/null +++ b/src/views/alarmHandling/components/historyimg.vue @@ -0,0 +1,61 @@ + + + diff --git a/src/views/alarmHandling/index.vue b/src/views/alarmHandling/index.vue index fe6e554..9b79c51 100644 --- a/src/views/alarmHandling/index.vue +++ b/src/views/alarmHandling/index.vue @@ -166,7 +166,7 @@
主动拍照 - 历史图片 + 历史图片
@@ -179,6 +179,7 @@ + @@ -191,8 +192,12 @@ import { getReturnedPhotoJoggle, readAlarm, } from "@/utils/api/index"; +import historyimg from './components/historyimg.vue' import moment from "moment"; export default { + components: { + historyimg + }, data() { return { dyOptions: [{ id: 0, name: "全部" }], //电压数据 @@ -435,6 +440,11 @@ export default { } }); }, + //历史图片 + handleHistory(){ + this.$refs.historyimg_ref.display(); + this.$refs.historyimg_ref.getdataform(this.selectRow); + }, dateFormat(row, column) { var date = row[column.property]; if (date == undefined) {