You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
import { defineStore } from 'pinia'
|
|
export const useOperatorStore = defineStore({
|
|
id: 'operator', // id必填,且需要唯一
|
|
// state
|
|
state: () => {
|
|
return {
|
|
// 是否开始消毒
|
|
disinfectStatus: 0,
|
|
estimatedRemainingTimeS: 0,
|
|
disinfection_id: '',
|
|
drainingWorkState: 0,
|
|
replenishingFluidsWorkState: 0,
|
|
// 是否预热
|
|
preHeat: false,
|
|
preHeatRaminTimeS: 0,
|
|
// 准备消毒loading
|
|
showStartReady: false,
|
|
// 结束消毒loading
|
|
showStopReady: false,
|
|
}
|
|
},
|
|
// actions
|
|
actions: {
|
|
updateStopReady(showStopReady) {
|
|
this.showStopReady = showStopReady
|
|
},
|
|
updateShowStartReady(showStartReady) {
|
|
this.showStartReady = showStartReady
|
|
},
|
|
updatePreHeatRaminTimeS(preHeatRaminTimeS) {
|
|
this.preHeatRaminTimeS = preHeatRaminTimeS
|
|
},
|
|
updatePreHeat(preHeat) {
|
|
this.preHeat = preHeat
|
|
},
|
|
updateDrainingWorkState(drainingWorkState) {
|
|
this.drainingWorkState = drainingWorkState
|
|
},
|
|
updateReplenishingFluidsWorkState(replenishingFluidsWorkState) {
|
|
this.replenishingFluidsWorkState = replenishingFluidsWorkState
|
|
},
|
|
updateDisinfectionId(disinfection_id) {
|
|
this.disinfection_id = disinfection_id
|
|
},
|
|
updateDisinfectStatus(val) {
|
|
this.disinfectStatus = val
|
|
},
|
|
updateEstimatedRemainingTimeS(estimatedRemainingTimeS) {
|
|
this.estimatedRemainingTimeS = estimatedRemainingTimeS
|
|
},
|
|
},
|
|
})
|