mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-10 00:00:26 +08:00
修复IP地址不能修改在线状态的Bug
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
<div style="margin-top: 0.5em" v-if="node.group != null">
|
||||
<span class="ui label tiny grey basic">分组:{{node.group.name}}</span>
|
||||
</div>
|
||||
<div style="margin-top: 0.5em">
|
||||
<div style="margin-top: 0.5em" v-if="node.secondaryClusters != null && node.secondaryClusters.length > 0">
|
||||
<node-clusters-labels :v-primary-cluster="node.cluster" :v-secondary-clusters="node.secondaryClusters" size="tiny"></node-clusters-labels>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>阈值</td>
|
||||
<td>阈值设置</td>
|
||||
<td>
|
||||
<div v-if="addr.thresholds.length > 0">
|
||||
<node-ip-address-thresholds-view :v-thresholds="addr.thresholds"></node-ip-address-thresholds-view>
|
||||
|
||||
@@ -37,8 +37,17 @@
|
||||
<input type="text" name="name" maxlength="50" v-model="addr.name"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>在线状态</td>
|
||||
<td>
|
||||
<select class="ui dropdown auto-width" name="isUp" v-model="addr.isUp">
|
||||
<option value="1">在线</option>
|
||||
<option value="0">离线</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="teaIsPlus && supportThresholds">
|
||||
<td>上线阈值</td>
|
||||
<td>阈值设置</td>
|
||||
<td>
|
||||
<node-ip-address-thresholds-box :v-thresholds="addr.thresholds"></node-ip-address-thresholds-box>
|
||||
</td>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Tea.context(function () {
|
||||
this.success = NotifySuccess("保存成功", Tea.url(".", { addrId: this.addr.id }))
|
||||
this.success = NotifySuccess("保存成功", Tea.url(".", {addrId: this.addr.id}))
|
||||
|
||||
this.addr.isUp = this.addr.isUp ? 1 : 0
|
||||
})
|
||||
Reference in New Issue
Block a user