From 0d3db253cad1fb49c4fae9b9a537c8c318c7172f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 29 十一月 2023 10:23:59 +0800 Subject: [PATCH] 优化应用中心卸载 --- src/pages/systemSettings/components/ClusterManagement.vue | 32 +++++++++++--------------------- 1 files changed, 11 insertions(+), 21 deletions(-) diff --git a/src/pages/systemSettings/components/ClusterManagement.vue b/src/pages/systemSettings/components/ClusterManagement.vue index f4bfa1a..b6f12e2 100644 --- a/src/pages/systemSettings/components/ClusterManagement.vue +++ b/src/pages/systemSettings/components/ClusterManagement.vue @@ -273,7 +273,6 @@ updateClusterName, joinCluster, leave, - getVrrp, setVrrp, createESNode, addESNode, @@ -293,7 +292,6 @@ }, data() { const checkPwd = (rule, value, callback) => { - debugger if (!value) { return callback(new Error("瀵嗙爜涓嶈兘涓虹┖")); } @@ -512,7 +510,6 @@ async search(json) { let res = await search(json); if (res && res.success) { - console.log(res, "鎼滅储闆嗙兢"); this.searchNum = res.data; } this.searchDis = true; @@ -615,16 +612,6 @@ } } }, - // getVrrpInfo() { - // getVrrp().then(res => { - // if (res.success) { - // this.vrIpForm.virtual_ip = res.data.virtual_ip; - // this.vrIpForm.enable = res.data.enable; - // } - // }).catch(e => { - // console.log(e) - // }) - // }, async updateCluster() { if (this.ruleForm.clustername === "") { this.$message({ @@ -664,11 +651,7 @@ }) .then(async () => { let res = await leave(); - this.$notify({ - title: res.success ? "鎴愬姛" : "澶辫触", - message: res.msg, - type: res.success ? "success" : "error", - }); + if (res && res.success) { this.ruleForm.clustername = ""; this.ruleForm.clusterpwd = ""; @@ -677,6 +660,11 @@ this.activeName = "1"; this.members = []; this.innerNodes = []; + this.$notify({ + title: "鎴愬姛", + message: "閫�鍑烘垚鍔�", + type: "success", + }); } }) .catch(() => { @@ -687,6 +675,11 @@ this.activeName = "1"; this.members = []; this.innerNodes = []; + this.$notify({ + title: "澶辫触", + message: "閫�鍑哄け璐�", + type: "error", + }); }); }, joinNode(event, node) { @@ -944,9 +937,6 @@ #h-alaycluster { .el-form-item__content { text-align: left; - // input { - // max-width: 360px; - // } } } } -- Gitblit v1.8.0