From 7088e1f3ec5b677139c85ef38cfb0f825aaafd76 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Fri, 18 Aug 2023 10:56:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9A=82=E6=97=A0=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/views/components/carouselChart.vue | 14 ++++++++++++-- .../components/parameterSetDialog.vue | 5 +++++ src/views/pictureRotation/index.vue | 7 +++++-- src/views/realTimeMonitor/index.vue | 2 ++ src/views/realTimeMonitor/previewContain.vue | 6 +++++- src/views/realTimeSearch/index.vue | 5 +++++ 6 files changed, 34 insertions(+), 5 deletions(-) diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue index aeb294c..3ea0cb2 100644 --- a/src/views/components/carouselChart.vue +++ b/src/views/components/carouselChart.vue @@ -27,7 +27,12 @@ :style="'backgroundImage:url(' + bigPicPath + ')'" >
- +
@@ -74,7 +79,7 @@ item.path.indexOf('videos') == -1 " > - +

import { getCoordinate, updateMarkEnableStatus } from "@/utils/api/index"; +import defaultImage from "../../assets/img/nodatapic2.jpg"; export default { components: {}, props: { @@ -282,6 +288,10 @@ export default { }, created() {}, methods: { + setDefaultImage(e) { + e.target.src = defaultImage; + this.bigPicPath = defaultImage; + }, downLoadPic(url, name) { const image = new Image(); image.setAttribute("crossOrigin", "anonymous"); diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/parameterSetDialog.vue b/src/views/management/monitoringEquipment/photographicDevice/components/parameterSetDialog.vue index 634f6bb..6378f60 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/parameterSetDialog.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/parameterSetDialog.vue @@ -815,6 +815,11 @@ export default { }); this.sampLoading = false; this.sampSetLoading = false; + this.upperLoading = false; + this.upperSetLoading = false; + this.idLoading = false; + this.idSetLoading = false; + this.statusLoading = false; } else if (this.i > 9) { window.clearInterval(this.timer); this.timer = null; diff --git a/src/views/pictureRotation/index.vue b/src/views/pictureRotation/index.vue index d133072..021112a 100644 --- a/src/views/pictureRotation/index.vue +++ b/src/views/pictureRotation/index.vue @@ -56,7 +56,7 @@ : '' " > - +

import { getPictureList, getTerminalPhotoListJoggle } from "@/utils/api/index"; import carouselChart from "../components/carouselChart.vue"; - +import defaultImage from "../../assets/img/nodatapic2.jpg"; export default { components: { carouselChart, @@ -257,6 +257,9 @@ export default { }; }, methods: { + setDefaultImage(e) { + e.target.src = defaultImage; + }, //点击图片弹出历史图 handleShowHistory(item) { console.log(item); diff --git a/src/views/realTimeMonitor/index.vue b/src/views/realTimeMonitor/index.vue index cc86fd1..1ffac4c 100644 --- a/src/views/realTimeMonitor/index.vue +++ b/src/views/realTimeMonitor/index.vue @@ -478,6 +478,8 @@ export default { .then((res) => { console.log(res); this.lineTreeData = res.data.list; + this.onlineNum = res.data.onlineNum; + this.totalNum = res.data.totalNum; this.$nextTick(() => { this.$refs.tree.setCurrentKey(this.selectData.id); //一定要加这个选中了否则样式没有出来 diff --git a/src/views/realTimeMonitor/previewContain.vue b/src/views/realTimeMonitor/previewContain.vue index 6a91c75..2f0d3bf 100644 --- a/src/views/realTimeMonitor/previewContain.vue +++ b/src/views/realTimeMonitor/previewContain.vue @@ -19,6 +19,7 @@