修复IP地址不能修改在线状态的Bug

This commit is contained in:
刘祥超
2021-09-15 11:46:50 +08:00
parent 713de74abb
commit a885fdbea7
10 changed files with 28 additions and 11 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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
})