From a66b1eb9ad424b1d1fdaa6d0e6e71cb97675817a Mon Sep 17 00:00:00 2001 From: wangqiujuan0808 <578331299@qq.com> Date: Wed, 13 Dec 2023 12:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Flow.vue | 16 ++++++------- src/components/Index.vue | 48 +++++++++++++++++++------------------- src/components/Liquid.vue | 36 +++++----------------------- src/components/Quality.vue | 16 ++++++------- src/store/index.js | 44 +++++++++++++++++----------------- src/views/Home.vue | 4 ++-- 6 files changed, 70 insertions(+), 94 deletions(-) diff --git a/src/components/Flow.vue b/src/components/Flow.vue index 8851b45..4260557 100644 --- a/src/components/Flow.vue +++ b/src/components/Flow.vue @@ -76,7 +76,7 @@ export default { color: "#6fdbce", label: "Q1", value: "20", - key: 'vd2700' + key: 'VD2700' }, ], }, @@ -88,7 +88,7 @@ export default { color: "#00baff", label: "Q2", value: "80", - key: 'vd2716' + key: 'VD2716' }, ], }, @@ -100,7 +100,7 @@ export default { color: "#308286", label: "Q3", value: "80", - key: 'vd2800' + key: 'VD2800' }, ], }, @@ -112,7 +112,7 @@ export default { color: "#00baff", label: "Q4", value: "80", - key: 'vd2816' + key: 'VD2816' }, ], }, @@ -124,7 +124,7 @@ export default { color: "#00baff", label: "Q5", value: "80", - key: 'vd2850' + key: 'VD2850' }, ], }, @@ -136,7 +136,7 @@ export default { color: "#00baff", label: "Q6", value: "80", - key: 'vd2866' + key: 'VD2866' }, ], }, @@ -148,7 +148,7 @@ export default { color: "#00baff", label: "Q7", value: "10", - key: 'vd2750' + key: 'VD2750' }, ], }, @@ -160,7 +160,7 @@ export default { color: "#00baff", label: "Q8", value: "40", - key: 'vd2766' + key: 'VD2766' }, ], } diff --git a/src/components/Index.vue b/src/components/Index.vue index 4b3c491..671a6c0 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -9,55 +9,55 @@

节水量

- {{ baseData && baseData.vd2716.toFixed(2) }} + {{ baseData && baseData.VD2716.toFixed(2) }}

节碳量

- {{ baseData && (baseData.vd2716 * 0.168).toFixed(2) }}kg + {{ baseData && (baseData.VD2716 * 0.168).toFixed(2) }}kg
-

原水箱液位:{{ baseData && baseData.vd500.toFixed(2) }}m

-

历史最高:{{ baseData && baseData.vd500Max.toFixed(2) }}m

-

历史最低:{{ baseData && baseData.vd500Min.toFixed(2) }}m

+

原水箱液位:{{ baseData && baseData.VD500.toFixed(2) }}m

+

历史最高:{{ baseData && baseData.VD500Max.toFixed(2) }}m

+

历史最低:{{ baseData && baseData.VD500Min.toFixed(2) }}m

-

净水箱液位:{{ baseData && baseData.vd504.toFixed(2) }}m

-

历史最高:{{ baseData && baseData.vd504Max.toFixed(2) }}m

-

历史最低:{{ baseData && baseData.vd504Min.toFixed(2) }}m

+

净水箱液位:{{ baseData && baseData.VD504.toFixed(2) }}m

+

历史最高:{{ baseData && baseData.VD504Max.toFixed(2) }}m

+

历史最低:{{ baseData && baseData.VD504Min.toFixed(2) }}m

UF产水

-

瞬时流量:{{ baseData && baseData.vd2700.toFixed(2) }} m³/H

-

累计流量:{{ baseData && baseData.vd2716.toFixed(2) }}

+

瞬时流量:{{ baseData && baseData.VD2700.toFixed(2) }} m³/H

+

累计流量:{{ baseData && baseData.VD2716.toFixed(2) }}

自来水前端

-

瞬时流量:{{ baseData && baseData.vd2800.toFixed(2) }} m³/H

-

累计流量:{{ baseData && baseData.vd2816.toFixed(2) }}

+

瞬时流量:{{ baseData && baseData.VD2800.toFixed(2) }} m³/H

+

累计流量:{{ baseData && baseData.VD2816.toFixed(2) }}

供水

-

瞬时流量:{{ baseData && baseData.vd2850.toFixed(2) }} m³/H

-

累计流量:{{ baseData && baseData.vd2866.toFixed(2) }}

+

瞬时流量:{{ baseData && baseData.VD2850.toFixed(2) }} m³/H

+

累计流量:{{ baseData && baseData.VD2866.toFixed(2) }}

自来水后端

-

瞬时流量:{{ baseData && baseData.vd2750.toFixed(2) }} m³/H

-

累计流量:{{ baseData && baseData.vd2766.toFixed(2) }}

+

瞬时流量:{{ baseData && baseData.VD2750.toFixed(2) }} m³/H

+

累计流量:{{ baseData && baseData.VD2766.toFixed(2) }}

原水水质

-

余氯:{{ baseData && baseData.vd2600.toFixed(2) }} mg/L

-

浊度:{{ baseData && baseData.vd2610.toFixed(2) }} mg/L

-

氨氮:{{ baseData && baseData.vd2620.toFixed(2) }} mg/L

-

COD:{{ baseData && baseData.vd2630.toFixed(2) }} mg/L

+

余氯:{{ baseData && baseData.VD2600.toFixed(2) }} mg/L

+

浊度:{{ baseData && baseData.VD2610.toFixed(2) }} mg/L

+

氨氮:{{ baseData && baseData.VD2620.toFixed(2) }} mg/L

+

COD:{{ baseData && baseData.VD2630.toFixed(2) }} mg/L

净水水质

-

余氯:{{ baseData && baseData.vd2500.toFixed(2) }} mg/L

-

浊度:{{ baseData && baseData.vd2510.toFixed(2) }} mg/L

-

氨氮:{{ baseData && baseData.vd2520.toFixed(2) }} mg/L

-

COD:{{ baseData && baseData.vd2530.toFixed(2) }} mg/L

+

余氯:{{ baseData && baseData.VD2500.toFixed(2) }} mg/L

+

浊度:{{ baseData && baseData.VD2510.toFixed(2) }} mg/L

+

氨氮:{{ baseData && baseData.VD2520.toFixed(2) }} mg/L

+

COD:{{ baseData && baseData.VD2530.toFixed(2) }} mg/L

diff --git a/src/components/Liquid.vue b/src/components/Liquid.vue index 1e7b2c9..d2183db 100644 --- a/src/components/Liquid.vue +++ b/src/components/Liquid.vue @@ -46,30 +46,6 @@ export default { setup() { const store = useStore(); const state = reactive({ - // baseData: { - // vd500: 2, - // vd500Max: 12, - // vd500Min: 0.8, - // vd504: 3, - // vd504Max: 11, - // vd504Min: 0.4, - // vd2700: 13.4, - // vd2716: 12.99, - // vd2800: 12.3, - // vd2816: 4.56, - // vd2850: 12.3, - // vd2866: 34.5, - // vd2750: 15.4, - // vd2766: 7.89, - // vd2600: 12, - // vd2610: 3.23, - // vd2620: 23.4, - // vd2630: 12.3, - // vd2500: 12, - // vd2510: 3.23, - // vd2520: 23.4, - // vd2530: 12.3 - // }, listData: [ { id: "echart0", @@ -95,7 +71,7 @@ export default { color: "#6fdbce", label: "Q1", value: "20", - key: 'vd500' + key: 'VD500' }, ], }, @@ -107,7 +83,7 @@ export default { color: "#00baff", label: "Max", value: "80", - key: 'vd500Max' + key: 'VD500Max' }, ], }, @@ -119,7 +95,7 @@ export default { color: "#308286", label: "Min", value: "80", - key: 'vd500Min' + key: 'VD500Min' }, ], } @@ -133,7 +109,7 @@ export default { color: "#6fdbce", label: "Q2", value: "20", - key: 'vd504' + key: 'VD504' }, ], }, @@ -145,7 +121,7 @@ export default { color: "#00baff", label: "Max", value: "80", - key: 'vd504Max' + key: 'VD504Max' }, ], }, @@ -157,7 +133,7 @@ export default { color: "#308286", label: "Min", value: "9", - key: 'vd504Min' + key: 'VD504Min' }, ] } diff --git a/src/components/Quality.vue b/src/components/Quality.vue index fe4aae1..acf118d 100644 --- a/src/components/Quality.vue +++ b/src/components/Quality.vue @@ -81,8 +81,8 @@ export default { color: "#6fdbce", label: "余氯: ", value: "20", - key: 'vd2600', - key1: 'vd2500' + key: 'VD2600', + key1: 'VD2500' }, ], }, @@ -94,8 +94,8 @@ export default { color: "#b7e707", label: "浊度:", value: "80", - key: 'vd2610', - key1: 'vd2510' + key: 'VD2610', + key1: 'VD2510' } ], }, @@ -107,8 +107,8 @@ export default { color: "#f58383", label: "氨氮: ", value: "80", - key: 'vd2620', - key1: 'vd2520' + key: 'VD2620', + key1: 'VD2520' }, ], }, @@ -120,8 +120,8 @@ export default { color: "#00ffff", label: "COD: ", value: "80", - key: 'vd2630', - key1: 'vd2530' + key: 'VD2630', + key1: 'VD2530' } ], } diff --git a/src/store/index.js b/src/store/index.js index 1588426..7b7c1e1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -12,28 +12,28 @@ const store = createStore({ selectTab: 'old', modelName: '', pclData: { - vd500: 2, - vd500Max: 12, - vd500Min: 0.8, - vd504: 3, - vd504Max: 11, - vd504Min: 0.4, - vd2700: 13.4, - vd2716: 12.99, - vd2800: 12.3, - vd2816: 4.56, - vd2850: 12.3, - vd2866: 34.5, - vd2750: 15.4, - vd2766: 7.89, - vd2600: 12, - vd2610: 3.23, - vd2620: 23.4, - vd2630: 12.3, - vd2500: 12, - vd2510: 3.23, - vd2520: 23.4, - vd2530: 12.3 + VD500: 2, + VD500Max: 12, + VD500Min: 0.8, + VD504: 3, + VD504Max: 11, + VD504Min: 0.4, + VD2700: 13.4, + VD2716: 12.99, + VD2800: 12.3, + VD2816: 4.56, + VD2850: 12.3, + VD2866: 34.5, + VD2750: 15.4, + VD2766: 7.89, + VD2600: 12, + VD2610: 3.23, + VD2620: 23.4, + VD2630: 12.3, + VD2500: 12, + VD2510: 3.23, + VD2520: 23.4, + VD2530: 12.3 } }, mutations: { diff --git a/src/views/Home.vue b/src/views/Home.vue index ae3ee89..1098196 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -109,8 +109,8 @@ export default { watch(() => store.state.pclData, val => { if (val) { console.log('主页', val); - state.menus[0].parms[0].value = val.vd2716.toFixed(2); - state.menus[0].parms[1].value = (val.vd2716 * 0.168).toFixed(2); + state.menus[0].parms[0].value = val.VD2716.toFixed(2); + state.menus[0].parms[1].value = (val.VD2716 * 0.168).toFixed(2); } }, { deep: true, immediate: true }); onMounted(() => {