|
|
@@ -188,10 +188,10 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
- console.log(res, 'resresresres 12222222222222222222');
|
|
|
const data = res || {};
|
|
|
if (data.status === undefined || data.status / 1 !== 1) {
|
|
|
clearInterval(this.timer);
|
|
|
+ clearInterval(this.labelTimer);
|
|
|
clearInterval(this.taskTimer);
|
|
|
uni.showLoading({
|
|
|
title: '灌溉任务已结束',
|
|
|
@@ -208,7 +208,6 @@ export default {
|
|
|
|
|
|
this.list = data?.sensorList || [];
|
|
|
|
|
|
- console.log(this.list, '-------------------- run status ----------');
|
|
|
this.tktype = data?.tktype;
|
|
|
this.lgjg = data?.lgjg || 0;
|
|
|
this.lgcs = data?.lgcs || 0;
|
|
|
@@ -283,11 +282,21 @@ export default {
|
|
|
},
|
|
|
onUnload() {
|
|
|
clearInterval(this.timer);
|
|
|
+ clearInterval(this.labelTimer);
|
|
|
+ clearInterval(this.taskTimer);
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
if (this.timer) {
|
|
|
clearInterval(this.timer);
|
|
|
}
|
|
|
+
|
|
|
+ if (this.taskTimer) {
|
|
|
+ clearInterval(this.taskTimer);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (this.labelTimer) {
|
|
|
+ clearInterval(this.labelTimer);
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|