|
@@ -210,6 +210,7 @@ const handleClickDevice = () => {
|
|
|
content: state.device?.state === 'idle' ? '确定启动设备开始洗车吗?' : '确定停止设备终止本次服务吗?',
|
|
content: state.device?.state === 'idle' ? '确定启动设备开始洗车吗?' : '确定停止设备终止本次服务吗?',
|
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
|
+ getApp<any>().globalData.refresh =true;
|
|
|
if (state.device?.state === 'idle') {
|
|
if (state.device?.state === 'idle') {
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: "启动中",
|
|
title: "启动中",
|
|
@@ -233,6 +234,7 @@ const handleClickDevice = () => {
|
|
|
title: '设备停机成功'
|
|
title: '设备停机成功'
|
|
|
})
|
|
})
|
|
|
state.device.state = 'idle'
|
|
state.device.state = 'idle'
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|