| | |
| | | <!-- <el-button size="mini" :disabled="searchDis" @click="searchColony">搜索集群</el-button> |
| | | <el-button size="mini" @click="stopSearch">停止搜索</el-button>--> |
| | | </el-form-item> |
| | | <el-form-item label="集群密码" prop="clusterpwd" style="width:500px"> |
| | | <el-form-item label="集群密码" prop="clusterpwd" style="width:440px"> |
| | | <el-input |
| | | v-model="joinForm.clusterpwd" |
| | | placeholder="请输入集群密码" |
| | |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="虚拟IP" prop="virtualIp"> |
| | | <el-form-item label="虚拟/外部IP" prop="virtualIp"> |
| | | <ip-input :ip="ruleForm.virtualIp" :on-blur="onIpBlur"></ip-input> |
| | | </el-form-item> |
| | | <el-form-item style="width:440px;text-align: right;"> |
| | |
| | | members: [], |
| | | innerNodes: [], |
| | | intervalTimer: null, |
| | | joinLoading: false |
| | | joinLoading: false, |
| | | showJoinConfirm: false |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | |
| | | }, |
| | | joinNode(event, node) { |
| | | debugger |
| | | let _this = this; |
| | | this.currentCluster.cluster_id = node.cluster_id; |
| | | if (this.activeName === "3") { |
| | | this.manageForm.clustername = node.clusterName; |
| | |
| | | if (this.activeName === "2") { |
| | | this.$refs["joinForm"].validate(valid => { |
| | | if (valid) { |
| | | if(_this.showJoinConfirm) return; |
| | | _this.showJoinConfirm = true; |
| | | this.$confirm("是否要加入节点 " + node.nodeName + "?", "加入集群", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | |
| | | // }) |
| | | console.log(this.currentCluster, '选择的集群节点') |
| | | this.join("joinForm"); |
| | | _this.showJoinConfirm = false; |
| | | }) |
| | | .catch(() => { |
| | | this.$notify({ |
| | |
| | | duration: 1000, |
| | | message: "已取消" |
| | | }); |
| | | _this.showJoinConfirm = false; |
| | | }); |
| | | } else { |
| | | console.log("error submit!!"); |