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 @@
+ 新建