diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..55ed073 Binary files /dev/null and b/dist.zip differ diff --git a/src/components/Flow.vue b/src/components/Flow.vue index f7519e7..654bbfc 100644 --- a/src/components/Flow.vue +++ b/src/components/Flow.vue @@ -9,11 +9,11 @@
-
+
{{ item.title }}
- {{ it.label }} + {{ it.value }}
@@ -215,6 +215,18 @@ export default { .right-div { width: 22%; height: 100%; + display: flex; + flex-direction: column; + justify-content: space-between; + .div-box { + height: 12%; + // border: 1px solid #b9ddeb; + border-radius: 5px; + display: flex; + flex-direction: column; + justify-content: space-around; + padding: 0 15px; + } } .date { diff --git a/src/components/Index.vue b/src/components/Index.vue index 4b3c491..97109d9 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -48,14 +48,14 @@

原水水质

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

-

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

+

浊度:{{ baseData && baseData.vd2610.toFixed(2) }} NTU

氨氮:{{ 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.vd2510.toFixed(2) }} NTU

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

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

diff --git a/src/components/Process.vue b/src/components/Process.vue index 8270ff7..390a6a1 100644 --- a/src/components/Process.vue +++ b/src/components/Process.vue @@ -3,8 +3,8 @@ {{ itemData.label }}
- +
@@ -27,7 +27,7 @@ export default { // 只显示数字 const format = (percentage) => { - return percentage; + return percentage/50; } // watch(() => props.itemData, val => { // if (val) { diff --git a/src/components/Quality.vue b/src/components/Quality.vue index ba3ddc6..d6c212f 100644 --- a/src/components/Quality.vue +++ b/src/components/Quality.vue @@ -16,7 +16,7 @@
{{ it.label }} - {{ item.value}} + {{ it.value}}
diff --git a/vite.config.js b/vite.config.js index 14c4ea7..536842d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -25,10 +25,10 @@ export default ({ mode }) => defineConfig({ proxy: { '/api': { // target: 'http://whh.shikicc.com:52189', - target: '192.168.2.6:6688', + target: 'http://192.168.2.6:6688', changeOrigin: true, - // rewrite: path => path.replace(/^\/api/, '') - rewrite: path => path.replace(/^\//, '') + rewrite: path => path.replace(/^\/api/, '') + // rewrite: path => path.replace(/^\//, '') } } }