ZZJ
2022-06-23 feaf0a9778879ef211c5587a513ba4cbdabb52d0
src/pages/systemSettings/components/ClusterManagement.vue
@@ -292,7 +292,7 @@
  },
  data() {
    const checkPwd = (rule, value, callback) => {
      debugger
      debugger;
      if (!value) {
        return callback(new Error("密码不能为空"));
      }
@@ -511,7 +511,6 @@
    async search(json) {
      let res = await search(json);
      if (res && res.success) {
        console.log(res, "搜索集群");
        this.searchNum = res.data;
      }
      this.searchDis = true;
@@ -653,11 +652,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 = "";
@@ -666,6 +661,11 @@
            this.activeName = "1";
            this.members = [];
            this.innerNodes = [];
            this.$notify({
              title: "成功",
              message: "退出成功",
              type: "success",
            });
          }
        })
        .catch(() => {
@@ -676,6 +676,11 @@
          this.activeName = "1";
          this.members = [];
          this.innerNodes = [];
          this.$notify({
            title: "失败",
            message: "退出失败",
            type: "error",
          });
        });
    },
    joinNode(event, node) {
@@ -933,9 +938,6 @@
  #h-alaycluster {
    .el-form-item__content {
      text-align: left;
      // input {
      //   max-width: 360px;
      // }
    }
  }
}