lilei 4 tahun lalu
induk
melakukan
155e8465fe
1 mengubah file dengan 6 tambahan dan 3 penghapusan
  1. 6 3
      pages/work/index/index.vue

+ 6 - 3
pages/work/index/index.vue

@@ -212,9 +212,7 @@ export default {
 			console.log(od,'od')
 			if(od!=0){
 				let d = new Date().getTime() - od
-				let druTime = 300
-				console.log(druTime)
-				this.timestamp = druTime - d/1000
+				this.timestamp = 300 - d/1000
 				if(this.timestamp<=0){
 					this.endDtime()
 				}
@@ -267,6 +265,10 @@ export default {
 						// 更新当前倒计时
 						this.devError(e.data.msgCodeInfo)
 					}
+					// 洗车完成
+					if(e.data.msgCode=="FINISHED"){
+						this.washCarSuccess()
+					}
 				}
 				// 进度消息
 				if(e.data.level == 'C'&&this.status!="rest"){
@@ -350,6 +352,7 @@ export default {
 		// 操作按钮
 		startWork() {
 			let _this = this
+			console.log(this.status)
 			// 启动
 			if (this.status == 'start') {
 				this.sendCmdRabt("start")