zhangzengfei
2023-09-06 c0c034b3ef0fdf0fd9c802d5984dbd717db6817a
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;