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