From 7ecd74d03e519f8f888c13be8ba2d8fb973186b9 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Mon, 4 Sep 2023 23:13:02 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A2=84=E8=AE=BE=E6=B4=81?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Setting/components/ExportExcel.vue | 34 ++
src/components/Setting/components/PreSetting.vue | 702 ++++++++++++++++++++++
src/components/Setting/components/PreTable.vue | 162 +++++
src/components/Setting/index.vue | 19 +-
src/components/dialogs/AddPreModal.vue | 117 ++++
src/components/dialogs/DelPreModal.vue | 114 ++++
src/store/index.js | 2 +
src/store/modules/preinstall.js | 10 +
8 files changed, 1157 insertions(+), 3 deletions(-)
create mode 100644 src/components/Setting/components/ExportExcel.vue
create mode 100644 src/components/Setting/components/PreSetting.vue
create mode 100644 src/components/Setting/components/PreTable.vue
create mode 100644 src/components/dialogs/AddPreModal.vue
create mode 100644 src/components/dialogs/DelPreModal.vue
create mode 100644 src/store/modules/preinstall.js
diff --git a/src/components/Setting/components/ExportExcel.vue b/src/components/Setting/components/ExportExcel.vue
new file mode 100644
index 0000000..c396f27
--- /dev/null
+++ b/src/components/Setting/components/ExportExcel.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
diff --git a/src/components/Setting/components/PreSetting.vue b/src/components/Setting/components/PreSetting.vue
new file mode 100644
index 0000000..48f235e
--- /dev/null
+++ b/src/components/Setting/components/PreSetting.vue
@@ -0,0 +1,702 @@
+
+
+
+
+
消毒停止过氧化氢浓度(ppm)
+
+
+
+
+
+
消毒继续过氧化氢浓度(ppm)
+
+
+
+
+
+
+
+
消毒停止过氧化氢相对饱和度(%RS)
+
+
+
+
+
+
消毒继续过氧化氢相对饱和度(%RS)
+
+
+
+
+
+
+
handleInput(val, 1)"
+ theme="custom"
+ close-button-text="配置"
+ @close="setAddliquidVal"
+ @blur="addLiquidConfigValShow = false"
+ />
+ handleInput(val, 2)"
+ :title="sprayLiquidConfigVal"
+ :show="sprayLiquidConfigValShow"
+ theme="custom"
+ @close="setSprayLiquidVal"
+ close-button-text="配置"
+ @blur="sprayLiquidConfigValShow = false"
+ />
+ handleInput(val, 3)"
+ :title="stoped_gs"
+ :show="stoped_gsShow"
+ theme="custom"
+ @close="setStopedGsVal"
+ close-button-text="配置"
+ @blur="stoped_gsShow = false"
+ />
+ handleInput(val, 4)"
+ :title="continued_gs"
+ @close="setcontinuedGsVal"
+ :show="continued_gsShow"
+ theme="custom"
+ close-button-text="配置"
+ @blur="continued_gsShow = false"
+ />
+ handleInput(val, 5)"
+ :title="stoped_satur"
+ @close="setstopedSaturVal"
+ :show="stoped_saturShow"
+ theme="custom"
+ close-button-text="配置"
+ @blur="stoped_saturShow = false"
+ />
+ handleInput(val, 6)"
+ :title="continued_satur"
+ @close="setContinuedSaturVal"
+ :show="continued_saturShow"
+ theme="custom"
+ close-button-text="配置"
+ @blur="continued_saturShow = false"
+ />
+ handleInput(val, 7)"
+ :title="max_humidity"
+ @close="setMaxHumidityVal"
+ :show="max_humidityShow"
+ theme="custom"
+ close-button-text="配置"
+ @blur="max_humidityShow = false"
+ />
+ handleInput(val, 8)"
+ @close="setHeat_timeVal"
+ v-model="pre_heat_time_s"
+ :title="pre_heat_time_s"
+ :show="pre_heat_time_sShow"
+ @blur="pre_heat_time_sShow = false"
+ />
+ handleInput(val, 9)"
+ theme="custom"
+ close-button-text="配置"
+ @close="setstoped_humiVal"
+ v-model="stoped_humi"
+ :title="stoped_humi"
+ :show="stoped_humiShow"
+ @blur="stoped_humiShow = false"
+ />
+ handleInput(val, 10)"
+ close-button-text="配置"
+ @close="setcontinued_humiVal"
+ v-model="continued_humi"
+ :title="continued_humi"
+ :show="continued_humiShow"
+ @blur="continued_humiShow = false"
+ />
+
+
+
+
+
+
diff --git a/src/components/Setting/components/PreTable.vue b/src/components/Setting/components/PreTable.vue
new file mode 100644
index 0000000..9b138a6
--- /dev/null
+++ b/src/components/Setting/components/PreTable.vue
@@ -0,0 +1,162 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/Setting/index.vue b/src/components/Setting/index.vue
index f216d68..6099d3e 100644
--- a/src/components/Setting/index.vue
+++ b/src/components/Setting/index.vue
@@ -21,12 +21,24 @@
日期/时间设置
配置
+
+
@@ -37,6 +49,8 @@ import Admin from './components/Admin.vue'
import Date from './components/Date.vue'
import Device from './components/Device.vue'
import User from './components/User.vue'
+import ExportExcel from './components/ExportExcel.vue'
+import PreTable from './components/PreTable.vue'
import { getAllUserJSON } from '@/mock/command'
import { useWebSocketStore } from '@/store'
@@ -67,14 +81,13 @@ const changeActiveTab = index => {
border-radius: 16px;
background: #ffffff;
padding: 20px;
- padding-bottom: 180px;
display: grid;
grid-template-columns: repeat(1, 1fr);
- grid-template-rows: repeat(4, 1fr);
+ grid-template-rows: repeat(6, 1fr);
row-gap: 20px;
.tab_wrap {
width: 384px;
- height: 80px;
+ height: 73.3px;
border-radius: 14px;
background: #f6f6f6;
box-sizing: border-box;
diff --git a/src/components/dialogs/AddPreModal.vue b/src/components/dialogs/AddPreModal.vue
new file mode 100644
index 0000000..107dfe9
--- /dev/null
+++ b/src/components/dialogs/AddPreModal.vue
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
diff --git a/src/components/dialogs/DelPreModal.vue b/src/components/dialogs/DelPreModal.vue
new file mode 100644
index 0000000..329babc
--- /dev/null
+++ b/src/components/dialogs/DelPreModal.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+ 确定要删除当前预设吗?
+
+
+
+
+
+
+
+
+
diff --git a/src/store/index.js b/src/store/index.js
index 80fc4cc..824b988 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -6,6 +6,7 @@ import { useWebSocketStore } from './modules/websocket'
import { useDeviceStore } from './modules/device'
import { useUserStore } from './modules/user'
import { useEchartsStore } from './modules/echarts'
+import { usePreStore } from './modules/preinstall'
const store = createPinia()
export default store
@@ -17,4 +18,5 @@ export {
useDeviceStore,
useEchartsStore,
useUserStore,
+ usePreStore,
}
diff --git a/src/store/modules/preinstall.js b/src/store/modules/preinstall.js
new file mode 100644
index 0000000..fcdb19f
--- /dev/null
+++ b/src/store/modules/preinstall.js
@@ -0,0 +1,10 @@
+import { defineStore } from 'pinia'
+export const usePreStore = defineStore({
+ id: 'preinstall', // id必填,且需要唯一
+ // state
+ state: () => {
+ return {}
+ },
+ // actions
+ actions: {},
+})