diff --git a/src/store/index.js b/src/store/index.js
index 43bce86..1a17066 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -17,7 +17,14 @@ export default new Vuex.Store({
xiCao1: {},
xiCao2: {},
kilnWaterIn: {},
- kilnWaterOut: {}
+ kilnWaterOut: {},
+ fan: {},
+ fireDirection: "南火",
+ kilnPressure: '99',
+ fireChangeTime: '13:30:11',
+ lastFireChangeTime: '33',
+ waterInTemp: '099',
+ waterOutTemp: '056'
},
getters: {
},
@@ -26,64 +33,108 @@ export default new Vuex.Store({
switch (payload.target) {
case 'oil-1': {
state.oilTable1 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'oil-2': {
state.oilTable2 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'gas-1': {
state.gasTable1 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'gas-2': {
state.gasTable2 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'kiln-top-1': {
state.kilnTop1 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'kiln-top-2': {
state.kilnTop2 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'kiln-btm-1': {
state.kilnBtm1 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'kiln-btm-2': {
state.kilnBtm2 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'kiln-water-in': {
state.kilnWaterIn = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'kiln-water-out': {
state.kilnWaterOut = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'water-in-temp': {
+ state.waterInTemp = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'water-out-temp': {
+ state.waterOutTemp = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'xicao-1': {
state.xiCao1 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
}
case 'xicao-2': {
state.xiCao2 = payload.data
- console.log('更换' + payload.target + '的数据')
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'fan': {
+ state.fan = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'fire-direction': {
+ state.fireDirection = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'last-fire-change-time': {
+ state.lastFireChangeTime = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'kiln-pressure': {
+ state.kilnPressure = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'fire-change-time': {
+ state.fireChangeTime = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'water-in-temp': {
+ state.waterInTemp = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
+ break
+ }
+ case 'water-out-temp': {
+ state.waterOutTemp = payload.data
+ console.log('更换' + payload.target + '的数据' + payload.data)
break
-
}
}
}
diff --git a/src/utils/wsClass.js b/src/utils/wsClass.js
index 19eca7f..09c474f 100644
--- a/src/utils/wsClass.js
+++ b/src/utils/wsClass.js
@@ -34,7 +34,8 @@ function handleClose() {
export default class WsClient {
- static wsServer = 'ws://192.168.1.12:8080/dz-screen/websocket/1'
+ // static wsServer = 'ws://192.168.1.12:8080/dz-screen/websocket/1'
+ static wsServer = 'ws://m306416y13.yicp.fun:48978/dz-screen/websocket/1'
static tableMap = {
// 窑顶温度
'kilnTempTopT1': 'kiln-top-1',
@@ -49,6 +50,13 @@ export default class WsClient {
'kilnGasT2': 'gas-2',
'kilnOilT1': 'oil-1',
'kilnOilT2': 'oil-2',
+ 'fan': 'fan',
+ 'fireDirection': 'fire-direction',
+ 'lastFireChangeTime': 'last-fire-change-time',
+ 'kilnPressure': 'kiln-pressure',
+ 'fireChangeTime': 'fire-change-time',
+ 'waterInTemp': 'water-in-temp',
+ 'waterOutTemp': 'water-out-temp'
}
static socket = null