From b2a22d7cff4d3fb0aad8b19e770778bd8b032fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 13 Apr 2023 11:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/index.vue | 25 ++-- .../alarmSendingSettings/index.vue | 5 +- .../electronicFence/index.vue | 113 +++++++++++++----- 3 files changed, 93 insertions(+), 50 deletions(-) diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index 2500c17..a13ec01 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -118,20 +118,7 @@
- - -
{{ i?.ispresslower === 1 ? '低压' : '' }} @@ -204,7 +191,7 @@ export default { ispresshigh: 0, ispresslower: 0, istemperaturehigh: 0, - total:0 + total: 0 }, chartData: [...(chinaMap.features.map(e => { return { @@ -275,6 +262,12 @@ export default { this.chart = null }, methods: { + imgUrl(e) { + if (e.ispowerinvalue === 1) return new URL(`../assets/icons/ispowerinvalue.png`, import.meta.url).href; + if (e.ispresshigh === 1) return new URL(`../assets/icons/ispresshigh.png`, import.meta.url).href; + if (e.ispresslower === 1) return new URL(`../assets/icons/ispresslower.png`, import.meta.url).href; + if (e.istemperaturehigh === 1) return new URL(`../assets/icons/highTemperature.png`, import.meta.url).href; + }, async setInfo() { await getIndexdata().then(response => { this.warningInfo = { @@ -282,7 +275,7 @@ export default { ispresshigh: response.data.ispresshigh, ispresslower: response.data.ispresslower, istemperaturehigh: response.data.istemperaturehigh, - total:response.data.ispowerinvalue+response.data.ispresshigh+response.data.ispresslower+response.data.istemperaturehigh + total: response.data.ispowerinvalue + response.data.ispresshigh + response.data.ispresslower + response.data.istemperaturehigh }, this.warringWaitList = [...response.data.warringList], this.carData = { diff --git a/ruoyi-ui/src/views/realTimeMonitoring/alarmSendingSettings/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/alarmSendingSettings/index.vue index 567a7f1..37153b8 100644 --- a/ruoyi-ui/src/views/realTimeMonitoring/alarmSendingSettings/index.vue +++ b/ruoyi-ui/src/views/realTimeMonitoring/alarmSendingSettings/index.vue @@ -10,7 +10,7 @@ @@ -95,10 +95,11 @@ const cascaderChange = (e) => { let nowIds = e.map(val => val.at(-1)) let nowClick = nowIds.filter(val => !(lastIds.includes(val)))?.[0] ids.value = e.map(val => val.at(-1)) + console.log(nowClick) if (!nowClick) return getInfoById(nowClick) .then(val => { - form.value = val.data + form.value = {...form.value, ...val.data} form.value.time = parseTime(new Date()) }) } diff --git a/ruoyi-ui/src/views/realTimeMonitoring/electronicFence/index.vue b/ruoyi-ui/src/views/realTimeMonitoring/electronicFence/index.vue index fa15c4c..ba39650 100644 --- a/ruoyi-ui/src/views/realTimeMonitoring/electronicFence/index.vue +++ b/ruoyi-ui/src/views/realTimeMonitoring/electronicFence/index.vue @@ -29,6 +29,7 @@
+ 新建