mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-27 05:00:25 +08:00
修复IP地址不能修改在线状态的Bug
This commit is contained in:
@@ -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