...
|
...
|
@@ -39,7 +39,7 @@ |
|
|
<el-table-column label="端口号" prop="port" align="center" width="100"></el-table-column>
|
|
|
<el-table-column label="状态" prop="elasticsearchState" align="center" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.elasticsearchState ===true" style="color: #32ff7e">
|
|
|
<span v-if="scope.row.elasticsearchState ===true" style="color: #3742fa">
|
|
|
运行状态
|
|
|
</span>
|
|
|
<span v-if="scope.row.elasticsearchState ===false" style="color: #eb2f06">
|
...
|
...
|
@@ -519,6 +519,11 @@ |
|
|
}).then((response) => {
|
|
|
return response.json();
|
|
|
}).then((data) => {
|
|
|
if (data.cluster_name === undefined || data.name === undefined ||
|
|
|
data.cluster_name === null || data.cluster_name === ''
|
|
|
|| data.name === null || data.name === '') {
|
|
|
return this.$message.error("这并不是ES配置,请仔细检查");
|
|
|
}
|
|
|
this.es_addForm.clusterName = data.cluster_name;
|
|
|
this.es_addForm.elasticsearchName = data.name;
|
|
|
this.addESInfo();
|
...
|
...
|
@@ -656,12 +661,19 @@ |
|
|
}
|
|
|
}).then((response) => {
|
|
|
if (response.status === 200) {
|
|
|
this.editESInfo();
|
|
|
this.es_loading.editLoading = false;
|
|
|
return response.json();
|
|
|
} else {
|
|
|
this.es_loading.editLoading = false;
|
|
|
this.$message.error("请仔细检查ES信息,请务必进行ES连接测试!");
|
|
|
return this.$message.error("请仔细检查ES信息,请务必进行ES连接测试!");
|
|
|
}
|
|
|
}).then(data => {
|
|
|
if (data.cluster_name === undefined || data.name === undefined ||
|
|
|
data.cluster_name === null || data.cluster_name === ''
|
|
|
|| data.name === null || data.name === '') {
|
|
|
return this.$message.error("这并不是ES配置,请仔细检查!");
|
|
|
}
|
|
|
this.editESInfo();
|
|
|
this.es_loading.editLoading = false;
|
|
|
}).catch(error => {
|
|
|
this.es_loading.editLoading = false;
|
|
|
this.$message.error("请仔细检查ES信息,请务必进行ES连接测试!");
|
...
|
...
|
|