| | |
| | | })
|
| | | },
|
| | | 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
|
| | | }
|
| | | })
|
| | |
| | | }
|
| | | .cluster-guanli {
|
| | | margin: 0 auto;
|
| | | width: 760px;
|
| | | // width: 760px;
|
| | | padding: 0 10px;
|
| | | .btns {
|
| | | margin-top: 30px !important;
|