Browse Source

主机监测详情-放开操作接口注释

dev
selia-zx 2 weeks ago
parent
commit
f5d9461622
  1. 50
      src/views/centerairC/sysMonitor/hostDetails.vue

50
src/views/centerairC/sysMonitor/hostDetails.vue

@ -683,31 +683,31 @@ export default {
param: param,
};
console.log("操作参数", data);
// operationConrol([data])
// .then((res) => {
// if (res.code == 200) {
// this.$modal.msgSuccess("!");
// // loading
// this.loading = true;
// // ;
// setTimeout(() => {
// this.getPolicyList().finally(() => {
// // loading
// this.loading = false;
// });
// }, 5000);
// } else {
// // this.$modal.msgError("");
// console.log("");
// // ;
// this.getPolicyList();
// }
// })
// .catch((error) => {
// console.log("", error);
// // ;
// this.getPolicyList();
// });
operationConrol([data])
.then((res) => {
if (res.code == 200) {
this.$modal.msgSuccess("指令下发成功!");
// loading
this.loading = true;
// ;
setTimeout(() => {
this.getPolicyList().finally(() => {
// loading
this.loading = false;
});
}, 5000);
} else {
// this.$modal.msgError("");
console.log("应该更新状态的");
// ;
this.getPolicyList();
}
})
.catch((error) => {
console.log("请求发生错误,更新设备状态", error);
// ;
this.getPolicyList();
});
},
},
};

Loading…
Cancel
Save