mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-25 11:36:34 +08:00
实现基础的IP地址阈值
This commit is contained in:
@@ -31,6 +31,10 @@
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-if="domainId == 0">
|
||||
<td>线路</td>
|
||||
<td><span class="disabled">当前集群没有选择域名。</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<submit-btn></submit-btn>
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
</div>
|
||||
<div class="ui field">
|
||||
<button class="ui button" type="submit">搜索</button>
|
||||
|
||||
<a :href="Tea.url('.')" v-if="keyword.length > 0">[清除条件]</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
<tr>
|
||||
<td>状态</td>
|
||||
<td>
|
||||
<label-on :v-is-on="addr.isOn" v-if="!addr.isOn"></label-on>
|
||||
<span v-if="!addr.canAccess" class="red">不可访问</span>
|
||||
<span v-else-if="!addr.isOn" class="red">禁用</span>
|
||||
<span v-else-if="addr.isUp" class="green">在线</span>
|
||||
<span v-else class="red">离线</span>
|
||||
</td>
|
||||
@@ -33,20 +34,11 @@
|
||||
<span v-else class="disabled">-</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>是否可以访问</td>
|
||||
<td>
|
||||
<span v-if="addr.canAccess" class="green">Y</span>
|
||||
<span v-else class="disabled">N</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>阈值</td>
|
||||
<td>
|
||||
<div v-if="addr.thresholds.length > 0">
|
||||
<span v-for="threshold in addr.thresholds" class="ui basic tiny label">
|
||||
{{threshold.item}} {{threshold.operator}} {{threshold.value}}
|
||||
</span>
|
||||
<node-ip-address-thresholds-view :v-thresholds="addr.thresholds"></node-ip-address-thresholds-view>
|
||||
</div>
|
||||
<span v-else class="disabled">没有设置阈值。</span>
|
||||
</td>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<td>
|
||||
<a :href="Tea.url('.reporter', {reporterId: reporter.id})"><keyword :v-word="keyword">{{reporter.name}}</keyword></a>
|
||||
<div v-if="reporter.groups.length > 0" style="margin-top: 0.5em">
|
||||
<div class="ui label basic tiny" v-for="group in reporter.groups"><span class="small">{{group.name}}</span></div>
|
||||
<grey-label v-for="group in reporter.groups">{{group.name}}</grey-label>
|
||||
</div>
|
||||
<div v-if="reporter.shouldUpgrade">
|
||||
<span class="red small" title="需要升级">v{{reporter.status.buildVersion}} -> v{{reporter.newVersion}}</span>
|
||||
|
||||
Reference in New Issue
Block a user