From f5d9461622abe087f99325056d7af4722cd1fc23 Mon Sep 17 00:00:00 2001 From: selia-zx <1771203023@qq.com> Date: Thu, 6 Nov 2025 11:41:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E7=9B=91=E6=B5=8B=E8=AF=A6?= =?UTF-8?q?=E6=83=85-=E6=94=BE=E5=BC=80=E6=93=8D=E4=BD=9C=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../centerairC/sysMonitor/hostDetails.vue | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/views/centerairC/sysMonitor/hostDetails.vue b/src/views/centerairC/sysMonitor/hostDetails.vue index a083e66..26eff59 100644 --- a/src/views/centerairC/sysMonitor/hostDetails.vue +++ b/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(); + }); }, }, };