From 6dc22f50ae7f18ed7c30cdb92aa67089bf9e4a21 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Mon, 4 Sep 2023 23:51:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E6=B5=8B=E4=BB=A5=E5=89=8D?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Operator.vue | 3 ++- src/store/modules/preinstall.js | 14 ++++++++++++-- src/store/modules/user.js | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/Operator.vue b/src/components/Operator.vue index aecd436..0536057 100644 --- a/src/components/Operator.vue +++ b/src/components/Operator.vue @@ -519,7 +519,8 @@ const changePreVal = val => { const startDisinfect = () => { // 改变开始消毒状态 如果已经开始则不可点击 // 选择预设 而后开始消毒 - preVisible.value = true + // preVisible.value = true + this.realStart() } const realStart = () => { diff --git a/src/store/modules/preinstall.js b/src/store/modules/preinstall.js index fcdb19f..a839de1 100644 --- a/src/store/modules/preinstall.js +++ b/src/store/modules/preinstall.js @@ -3,8 +3,18 @@ export const usePreStore = defineStore({ id: 'preinstall', // id必填,且需要唯一 // state state: () => { - return {} + return { + currentPreId: '', + currentPreConfig: {}, + } }, // actions - actions: {}, + actions: { + updateCurrentPreId(currentPreId) { + this.currentPreId = currentPreId + }, + updateCurrentPreConfig(currentPreConfig) { + this.currentPreConfig = currentPreConfig + }, + }, }) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 0e2f444..d8c3244 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -7,7 +7,7 @@ export const useUserStore = defineStore({ allUserList: [], operUser: '', loginUser: '', - loginUserPermission: 2, + loginUserPermission: 3, } }, // actions