节点根据健康检查自动上下线

This commit is contained in:
刘祥超
2020-11-15 21:17:52 +08:00
parent e09f1575b4
commit 120aff71a5
17 changed files with 213 additions and 48 deletions

View File

@@ -9,7 +9,7 @@
<table class="ui table definition selectable">
<tr>
<td class="title">集群</td>
<td>{{cluster.name}}</td>
<td><link-icon :href="'/clusters/cluster?clusterId=' + cluster.id">{{cluster.name}}</link-icon></td>
</tr>
<tr>
<td>子域名</td>

View File

@@ -1,7 +1,7 @@
Tea.context(function () {
this.updateCluster = function (clusterId) {
teaweb.popup("/dns/updateClusterPopup?clusterId=" + clusterId, {
height: "22em",
height: "25em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()

View File

@@ -1,7 +1,7 @@
Tea.context(function () {
this.updateCluster = function (clusterId) {
teaweb.popup("/dns/updateClusterPopup?clusterId=" + clusterId, {
height: "22em",
height: "25em",
callback: function () {
teaweb.success("保存成功", function () {
teaweb.reload()

View File

@@ -8,7 +8,7 @@ Tea.context(function () {
this.updateCluster = function (clusterId) {
let that = this
teaweb.popup("/dns/updateClusterPopup?clusterId=" + clusterId, {
height: "22em",
height: "25em",
callback: function () {
teaweb.success("保存成功", function () {
that.reload()

View File

@@ -43,6 +43,29 @@
<p class="comment">子域名和主域名共同组成集群的域名。</p>
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>
</tr>
<tbody v-show="moreOptionsVisible">
<tr>
<td>是否同步节点DNS状态</td>
<td>
<div class="ui checkbox">
<input type="checkbox" name="nodesAutoSync" value="1" v-model="nodesAutoSync"/>
<label></label>
</div>
</td>
</tr>
<tr>
<td>是否同步网站服务DNS状态</td>
<td>
<div class="ui checkbox">
<input type="checkbox" name="serversAutoSync" value="1" v-model="serversAutoSync"/>
<label></label>
</div>
</td>
</tr>
</tbody>
</table>
<submit-btn></submit-btn>