From c0c034b3ef0fdf0fd9c802d5984dbd717db6817a Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 06 九月 2023 17:54:55 +0800 Subject: [PATCH] 定制桌面. --- src/pages/settings/views/clusterManagement.vue | 38 +++++++++++++++++++++----------------- 1 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/pages/settings/views/clusterManagement.vue b/src/pages/settings/views/clusterManagement.vue index daf57d2..bec9238 100644 --- a/src/pages/settings/views/clusterManagement.vue +++ b/src/pages/settings/views/clusterManagement.vue @@ -349,26 +349,30 @@ }) }, join(formName) { + console.log("join", formName) let _this = this + _this.joinLoading = true + let data = { + clusterId: _this.joinForm.clusterid, + password: _this.joinForm.clusterpwd, + nodeIps: [_this.joinForm.clusterip] + } + console.log("body:", data) + _this + .joinCluster(data) + .then(() => { + _this.joinLoading = false + _this.findCluster() + }) + .catch((e) => { + _this.joinLoading = false + }) + this.$refs[formName].validate((valid) => { + console.log("join") if (valid) { - _this.joinLoading = true - let data = { - clusterId: _this.joinForm.clusterid, - password: _this.joinForm.clusterpwd, - nodeIps: [_this.joinForm.clusterip] - } - debugger - _this - .joinCluster(data) - .then(() => { - _this.joinLoading = false - _this.findCluster() - }) - .catch((e) => { - _this.joinLoading = false - }) } else { + onsole.log("鍙傛暟閿欒") return false } }) @@ -625,7 +629,7 @@ } .cluster-guanli { margin: 0 auto; - width: 760px; + // width: 760px; padding: 0 10px; .btns { margin-top: 30px !important; -- Gitblit v1.8.0