From 1bf987e954db2cdbc25bbb168fb1b64a5dcf56aa Mon Sep 17 00:00:00 2001 From: sige Date: Tue, 21 May 2024 19:23:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=BC=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E6=BF=80=E6=B4=BB=E6=97=B6=E5=85=A8=E9=80=89=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AddPreSetting.vue | 86 +++++++++----------------- src/components/LiquidHandle.vue | 15 ++--- src/components/MyInput.vue | 89 +++++++++++++++++++++++++++ src/components/Setting/components/Device.vue | 92 +++++++++------------------- src/components/Test.vue | 12 +--- src/components/UpdatePreSetting.vue | 88 +++++++++----------------- src/main.js | 3 + 7 files changed, 187 insertions(+), 198 deletions(-) create mode 100644 src/components/MyInput.vue diff --git a/src/components/AddPreSetting.vue b/src/components/AddPreSetting.vue index db56ca5..e5ef66d 100644 --- a/src/components/AddPreSetting.vue +++ b/src/components/AddPreSetting.vue @@ -3,99 +3,71 @@

注射蠕动泵速率(g/min)

- + @done="setSprayLiquidVal" + >

消毒停止过氧化氢浓度(ppm)

- + @done="setStopedGsVal" + >

消毒继续过氧化氢浓度(ppm)

- + @done="setcontinuedGsVal" + >

消毒停止相对湿度(%RH)

- + @done="setstoped_humiVal" + >

消毒继续相对湿度(%RH)

- + @done="setcontinued_humiVal" + >

消毒停止过氧化氢相对饱和度(%RS)

- + @done="setstopedSaturVal" + >

消毒继续过氧化氢相对饱和度(%RS)

- + @done="setContinuedSaturVal" + >

@@ -813,7 +785,7 @@ onMounted(() => { align-items: center; justify-content: center; } - .field_font { + :deep(.field_font) { font-size: 26px; width: 180px; } diff --git a/src/components/LiquidHandle.vue b/src/components/LiquidHandle.vue index 8b2d6c0..1f2219a 100644 --- a/src/components/LiquidHandle.vue +++ b/src/components/LiquidHandle.vue @@ -76,14 +76,10 @@
- + >

@@ -177,6 +173,7 @@ import { stopDrainingJSON, } from '@/mock/command' + const numberKeyboardShow = ref(false) const operatorStore = useOperatorStore() @@ -355,9 +352,9 @@ const handleClickInput = () => { background-size: 100% 100%; margin-bottom: 41px; background: url(../assets/img/liquid/form.png); - .add_liquid_input { + :deep(.add_liquid_input) { position: absolute; - left: -9px; + left: 5px; bottom: 8px; width: 150px; height: 69px; diff --git a/src/components/MyInput.vue b/src/components/MyInput.vue new file mode 100644 index 0000000..c018056 --- /dev/null +++ b/src/components/MyInput.vue @@ -0,0 +1,89 @@ + + \ No newline at end of file diff --git a/src/components/Setting/components/Device.vue b/src/components/Setting/components/Device.vue index 9f5f59f..bd09eaf 100644 --- a/src/components/Setting/components/Device.vue +++ b/src/components/Setting/components/Device.vue @@ -10,126 +10,90 @@

注射蠕动泵速率(g/min)

-

消毒停止过氧化氢浓度(ppm)

-

消毒继续过氧化氢浓度(ppm)

-

消毒停止相对湿度(%RH)

-

消毒继续相对湿度(%RH)

-

消毒停止过氧化氢相对饱和度(%RS)

-

消毒继续过氧化氢相对饱和度(%RS)

-

允许消毒最大湿度(%RH)

-

预热时间(s)

-

@@ -812,7 +776,7 @@ const setSprayLiquidVal = () => { color: #000000; display: flex; align-items: center; - .field_font { + :deep(.field_font) { font-size: 26px; width: 180px; } diff --git a/src/components/Test.vue b/src/components/Test.vue index 2f07d8f..7f21c8f 100644 --- a/src/components/Test.vue +++ b/src/components/Test.vue @@ -62,15 +62,7 @@

注射蠕动泵

- +

g/min

@@ -555,7 +547,7 @@ const changeDraughtStatus = flag => { display: flex; align-items: center; margin-right: 4px; - .add_liquid_input { + :deep(.add_liquid_input) { width: 40px; margin-right: 2px; text-align: right; diff --git a/src/components/UpdatePreSetting.vue b/src/components/UpdatePreSetting.vue index 1671870..90469a3 100644 --- a/src/components/UpdatePreSetting.vue +++ b/src/components/UpdatePreSetting.vue @@ -3,99 +3,71 @@

消毒停止过氧化氢浓度(ppm)

- + @done="setStopedGsVal" + >

消毒继续过氧化氢浓度(ppm)

- + @done="setcontinuedGsVal" + >

消毒停止相对湿度(%RH)

- + @done="setstoped_humiVal" + >

消毒继续相对湿度(%RH)

- +

消毒停止过氧化氢相对饱和度(%RS)

- + @done="setstopedSaturVal" + >

消毒继续过氧化氢相对饱和度(%RS)

- + @done="setContinuedSaturVal" + >

注射蠕动泵速率(g/min)

- + @done="setSprayLiquidVal" + >

@@ -874,7 +846,7 @@ onMounted(() => { align-items: center; justify-content: center; } - .field_font { + :deep(.field_font) { font-size: 26px; width: 180px; } diff --git a/src/main.js b/src/main.js index 80c1db2..7505e03 100644 --- a/src/main.js +++ b/src/main.js @@ -22,6 +22,8 @@ import '@vant/touch-emulator' import 'vant/lib/index.css' import '@/assets/css/reset.css' import './style.scss' +import MyInput from 'cpns/MyInput.vue' + createApp(App) .use(router) @@ -39,4 +41,5 @@ createApp(App) .use(ElementPlus) .use(Toast) .use(store) + .component('my-input', MyInput) .mount('#app')