update arrows

This commit is contained in:
lb
2023-05-16 15:26:02 +08:00
parent 1e95973ccd
commit 9d11e84d37
8 changed files with 119 additions and 10 deletions

View File

@@ -5,6 +5,10 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
topLeftArrowRolling: false,
topRightArrowRolling: false,
bottomLeftArrowRolling: false,
bottomRightArrowRolling: false,
kilnPressure: 999,
oilTable1: {},
oilTable2: {},
@@ -31,6 +35,18 @@ export default new Vuex.Store({
mutations: {
update(state, payload) {
switch (payload.target) {
case 'top-right-arrow': {
state.topRightArrowRolling = payload.data
}
case 'top-left-arrow': {
state.topLeftArrowRolling = payload.data
}
case 'bottom-right-arrow': {
state.bottomRightArrowRolling = payload.data
}
case 'bottom-left-arrow': {
state.bottomLeftArrowRolling = payload.data
}
case 'oil-1': {
state.oilTable1 = payload.data
//console.log('更换' + payload.target + '的数据' + payload.data)
@@ -72,7 +88,7 @@ export default new Vuex.Store({
break
}
case 'kiln-water-in': {
state.kilnWaterIn = payload.data
state.kilnWaterIn = payload.data
//console.log('更换' + payload.target + '的数据' + payload.data)
break
}