From 917ad2433fed008ad57d0cc03e607104ac4cf478 Mon Sep 17 00:00:00 2001 From: hzz Date: Mon, 3 Mar 2025 17:07:19 +0800 Subject: [PATCH] update --- src/http/config/index.ts | 6 + src/store/module/offsite.ts | 28 +- src/views/Temp/GetonAgain/chart/humidity.vue | 274 ++++++++++--------- src/views/Temp/GetonAgain/chart/pm.vue | 20 +- src/views/Temp/GetonAgain/index.vue | 28 ++ src/views/Temp/GetonAgain/right.vue | 1 - 6 files changed, 216 insertions(+), 141 deletions(-) create mode 100644 src/http/config/index.ts diff --git a/src/http/config/index.ts b/src/http/config/index.ts new file mode 100644 index 0000000..58ba368 --- /dev/null +++ b/src/http/config/index.ts @@ -0,0 +1,6 @@ +import {get,post} from "@/utils/http" + +// 根据参数键名查询参数值 +export function getConfigKey(configKey) { + return get('/system/config/configKey/' + configKey) + } \ No newline at end of file diff --git a/src/store/module/offsite.ts b/src/store/module/offsite.ts index 28da23f..e832307 100644 --- a/src/store/module/offsite.ts +++ b/src/store/module/offsite.ts @@ -41,19 +41,27 @@ export const Offsite = defineStore(Names.offsite, { title: "在线产品", type: "在线产品", num: 0, - status:null + status: null }, { title: "离线产品", type: "离线产品", num: 13, - status:null + status: null }, ], - offsitegatewayStatus:[], + offsitegatewayStatus: [], devtype: [], devlist: [], - EquipmentStatusDiagram:[] + EquipmentStatusDiagram: [], + limit: { + temp_bottom: -11, + temp_top: 45, + humidity_bottom: 15, + humidity_top: 75, + dust10: 150, + dust25: 75, + } }; }, //computed 修改一些值 @@ -70,7 +78,7 @@ export const Offsite = defineStore(Names.offsite, { setcity(val: string[]) { this.city = val; }, - setdevitem(val: any) { + setdevitem(val: any) { this.itemDevNum.forEach((ele) => { val.forEach((res) => { if (res.name == ele.type) { @@ -101,14 +109,14 @@ export const Offsite = defineStore(Names.offsite, { }); }); }, - setoffsitegatewayStatus(val:any){ - this.offsitegatewayStatus=val + setoffsitegatewayStatus(val: any) { + this.offsitegatewayStatus = val }, - changeoffsitegatewayStatus(val:any){ + changeoffsitegatewayStatus(val: any) { }, - changeEquipmentStatusDiagram(val:any){ - this.EquipmentStatusDiagram=val + changeEquipmentStatusDiagram(val: any) { + this.EquipmentStatusDiagram = val }, //重置store数据 resetAllData() { diff --git a/src/views/Temp/GetonAgain/chart/humidity.vue b/src/views/Temp/GetonAgain/chart/humidity.vue index 5713d01..3502033 100644 --- a/src/views/Temp/GetonAgain/chart/humidity.vue +++ b/src/views/Temp/GetonAgain/chart/humidity.vue @@ -15,7 +15,10 @@ diff --git a/src/views/Temp/GetonAgain/chart/pm.vue b/src/views/Temp/GetonAgain/chart/pm.vue index aadeabc..ed896d3 100644 --- a/src/views/Temp/GetonAgain/chart/pm.vue +++ b/src/views/Temp/GetonAgain/chart/pm.vue @@ -14,13 +14,28 @@