|
@@ -176,7 +176,6 @@ export default {
|
|
|
cmd.operateType = 'stop' //操作命令
|
|
|
_this.$store.commit("$sendWebsocket",JSON.stringify(cmd))
|
|
|
_this.showStop = true;
|
|
|
- _this.status = 'stop';
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -185,6 +184,7 @@ export default {
|
|
|
// 启动成功
|
|
|
startWashCarSuccess(){
|
|
|
this.status = 'working';
|
|
|
+ this.$store.state.vuex_workStatus = 'working'
|
|
|
this.curWorkStutesText='设备已启动';
|
|
|
this.showStart = false;
|
|
|
// 进度条,服务时间根据不同的服务类型而不同
|
|
@@ -202,12 +202,15 @@ export default {
|
|
|
// 紧急停止成功
|
|
|
stopWashCarSuccess(){
|
|
|
// 显示急停提示弹框
|
|
|
+ this.status = 'stop';
|
|
|
+ this.$store.state.vuex_workStatus = 'stop'
|
|
|
this.curWorkStutesText='设备已紧急停止';
|
|
|
this.resetLoadingStatus();
|
|
|
},
|
|
|
// 洗车完成
|
|
|
washCarSuccess(){
|
|
|
this.status = "success";
|
|
|
+ this.$store.state.vuex_workStatus = 'stop'
|
|
|
this.curWorkStutesText='洗车已结束';
|
|
|
this.resetLoadingStatus();
|
|
|
// 关闭socket
|
|
@@ -251,13 +254,14 @@ export default {
|
|
|
washType: this.washCarType,// 洗车模式
|
|
|
}
|
|
|
this.$store.commit("$sendWebsocket",JSON.stringify(cmd))
|
|
|
- this.status = 'reseting';
|
|
|
this.showStart = true;
|
|
|
this.showStop = false;
|
|
|
},
|
|
|
// 归位结束后
|
|
|
resetRabtSuccess(){
|
|
|
this.curWorkStutesText='设备已归位';
|
|
|
+ this.status = 'reseting';
|
|
|
+ this.$store.state.vuex_workStatus = 'stop';
|
|
|
// 关闭socket
|
|
|
this.$store.commit("$closeWebsocket");
|
|
|
uni.redirectTo({
|