| | |
| | | |
| | | <!-- 加入已有集群 --> |
| | | <el-tab-pane label="加入已有集群" name="2" :disabled="isHasColony"> |
| | | <el-form label-width="80px" :model="joinForm" :rules="joinRules" ref="joinForm"> |
| | | <el-form label-width="80px" :model="joinForm" :rules="joinRules" ref="joinForm" v-loading="joinLoading"> |
| | | <el-form-item label="IP地址" style="width:440px"> |
| | | <el-input |
| | | v-model="joinForm.clusterip" |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <div class="ui-top-view"> |
| | | <!-- <div class="ui-top-view"> |
| | | <div class="ui-top-title">存储集群管理</div> |
| | | </div> |
| | | <el-row> |
| | |
| | | size="small" |
| | | @click="createEsCluster()" |
| | | >创建存储集群</el-button> |
| | | <!-- <p>点击将本机创建为存储集群</p> --> |
| | | |
| | | </el-tab-pane> |
| | | <el-tab-pane label="加入已有集群" name="s-second" v-if="sActiveName != 's-third1'"> |
| | | <el-form label-width="80px"> |
| | |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </el-col> |
| | | </el-row> |
| | | </el-row> --> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | members: [], |
| | | innerNodes: [], |
| | | intervalTimer: null, |
| | | joinLoading: false |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | }, |
| | | |
| | | join(formName) { |
| | | let _this = this; |
| | | this.$refs[formName].validate(valid => { |
| | | if (valid) { |
| | | _this.joinLoading = true; |
| | | if (Object.keys(this.currentCluster).length === 0) { |
| | | this.$notify({ |
| | | type: "info", |
| | |
| | | nodeIps: nodeIps |
| | | }; |
| | | this.joinCluster(json).then(() => { |
| | | _this.joinLoading = false; |
| | | this.findCluster(); |
| | | }).catch(e=>{ |
| | | console.log(e); |
| | | _this.joinLoading = false; |
| | | }); |
| | | } else { |
| | | console.log("error submit!!"); |