heyujie
2022-01-26 613279703a7a4514e76620fac88951ef005bdcaf
解开btn加入集群
1个文件已修改
52 ■■■■ 已修改文件
src/pages/settings/views/clusterManagement.vue 52 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/settings/views/clusterManagement.vue
@@ -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;