From 0e9392ec89207247a3fb73fac5eec7ff45b42689 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期三, 26 一月 2022 18:18:52 +0800 Subject: [PATCH] 算力轮询周期 --- src/pages/settings/views/clusterManagement.vue | 60 ++++++++++++++++++++++++++++++------------------------------ 1 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/pages/settings/views/clusterManagement.vue b/src/pages/settings/views/clusterManagement.vue index 3f706a5..d13ad38 100644 --- a/src/pages/settings/views/clusterManagement.vue +++ b/src/pages/settings/views/clusterManagement.vue @@ -164,7 +164,7 @@ class="join-form" v-loading="joinLoading" > - <!-- <el-form-item prop="clusterid"> + <el-form-item prop="clusterid"> <div class="p-title">闆嗙兢ID</div> <el-input v-model="joinForm.clusterid" size="small"></el-input> </el-form-item> @@ -177,7 +177,7 @@ size="small" autocomplete="new-password" ></el-input> - </el-form-item> --> + </el-form-item> <el-form-item prop="clusterpwd"> <div class="p-title">闆嗙兢瀵嗙爜</div> <el-input @@ -217,9 +217,9 @@ {{ item.Address }} </div> </div> - <!-- <div class="btns"> + <div class="btns"> <div class="ok" @click="join('joinForm')">鍔犲叆闆嗙兢</div> - </div> --> + </div> </div> </div> </div> @@ -562,33 +562,33 @@ cancelButtonText: "鍙栨秷", customClass: "del-account-message-box", }).then( - () => { - this.showCurCluster = false; - } - // async () => { - // let res = await leave(); - // this.$notify({ - // title: res.success ? "鎴愬姛" : "澶辫触", - // message: res.msg, - // type: res.success ? "success" : "error", - // }); - // if (res && res.success) { - // clearInterval(this.intervalTimer); - // this.showCurCluster = false; - // this.ruleForm.virtualIp = ""; - // this.ruleForm.clustername = ""; - // this.ruleForm.clusterpwd = ""; - // this.clusterid = ""; - // } - // }, - // (err) => { - // clearInterval(this.intervalTimer); + // () => { // this.showCurCluster = false; - // this.ruleForm.virtualIp = ""; - // this.ruleForm.clustername = ""; - // this.ruleForm.clusterpwd = ""; - // this.clusterid = ""; // } + async () => { + let res = await leave(); + this.$notify({ + title: res.success ? "鎴愬姛" : "澶辫触", + message: res.msg, + type: res.success ? "success" : "error", + }); + if (res && res.success) { + clearInterval(this.intervalTimer); + this.showCurCluster = false; + this.ruleForm.virtualIp = ""; + this.ruleForm.clustername = ""; + this.ruleForm.clusterpwd = ""; + this.clusterid = ""; + } + }, + (err) => { + clearInterval(this.intervalTimer); + this.showCurCluster = false; + this.ruleForm.virtualIp = ""; + this.ruleForm.clustername = ""; + this.ruleForm.clusterpwd = ""; + this.clusterid = ""; + } ); }, clearInput(typ) { @@ -903,7 +903,7 @@ left: 20px; } .el-form-item { - margin-bottom: 10px; + margin-bottom: 16px; .el-input__inner { background-color: #ffffff; border: 2px solid transparent; -- Gitblit v1.8.0