|
@@ -68,14 +68,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- pause() {
|
|
|
|
- this.$modal.confirm('是否确认暂停当前任务?').then(() => {
|
|
|
|
- return taskAction(this.siteId, 1);
|
|
|
|
- }).then(() => {
|
|
|
|
- this.$emit('refresh');
|
|
|
|
- this.$modal.msgSuccess("暂停成功");
|
|
|
|
- }).catch(() => {});
|
|
|
|
- },
|
|
|
|
play() {
|
|
play() {
|
|
this.$modal.confirm('是否确认重启当前任务?').then(() => {
|
|
this.$modal.confirm('是否确认重启当前任务?').then(() => {
|
|
return taskAction(this.siteId, 2);
|
|
return taskAction(this.siteId, 2);
|
|
@@ -347,7 +339,11 @@ export default {
|
|
return { sections, bar1X, bar2X };
|
|
return { sections, bar1X, bar2X };
|
|
},
|
|
},
|
|
handleManualMeasure() {
|
|
handleManualMeasure() {
|
|
- this.$refs.manual.open({ siteId: this.siteId });
|
|
|
|
|
|
+ if(this.siteRealTime.deviceStatus === 0) {
|
|
|
|
+ this.$message.error('设备已离线');
|
|
|
|
+ } else {
|
|
|
|
+ this.$refs.manual.open({ siteId: this.siteId });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|