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.
|
|
import { defineStore } from 'pinia'
export const useSystemStore = defineStore('system', { state: () => ({ systemStatus: { spraying: false, // 设备是否正在进行的喷涂任务
paused: false, // 喷涂任务暂停状态
suspendable: false, // 当前状态是否可以暂停
cleaningSyringePipeline: false, // 是否正在清洗注射器管路
cleaningNozzlePipeline: false, // 是否正在清洗喷嘴管路
prefilling: false, // 是否正在预充
dehumidifierRunning: false, // 是否正在除湿
selfTestCompleted: false, // 是否完成自检
stopPressed: false, // 是否按下急停
}, systemSensor: { humidity: 0, }, isDebug: true, streamVisible: false, systemList: [{ cmdCode: '' }], }), actions: { updateSystemStatus(status: any) { this.systemStatus = status }, updateSystemSensor(info: any) { this.systemSensor = info }, updateDebug() { this.isDebug = !this.isDebug }, updateStreamVisible(bool: boolean) { this.streamVisible = bool }, pushSystemList(text: any) { this.systemList.push(text) }, }, })
|