mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-03 02:10:25 +08:00
优化界面
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tr v-for="policy in policies">
|
||||
<td>{{policy.name}}
|
||||
<td><a :href="Tea.url('.policy', {policyId: policy.id})">{{policy.name}}</a>
|
||||
<div style="margin-top: 0.3em" v-if="policy.isPublic">
|
||||
<span class="ui label olive tiny basic">公用</span>
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tr v-for="(policy, index) in cachePolicies">
|
||||
<td><keyword :v-word="keyword">{{policy.name}}</keyword></td>
|
||||
<td><a :href="'/servers/components/cache/policy?cachePolicyId=' + policy.id"><keyword :v-word="keyword">{{policy.name}}</keyword></a></td>
|
||||
<td>{{infos[index].typeName}} <span class="small">({{policy.type}})</span></td>
|
||||
<td>
|
||||
<span v-if="policy.capacity != null && policy.capacity.count > 0">{{policy.capacity.count}}{{policy.capacity.unit.toUpperCase()}}</span>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tr v-for="policy in policies">
|
||||
<td><keyword :v-word="keyword">{{policy.name}}</keyword></td>
|
||||
<td><a :href="'/servers/components/waf/policy?firewallPolicyId=' + policy.id"><keyword :v-word="keyword">{{policy.name}}</keyword></a></td>
|
||||
<td class="center">{{policy.countInbound}}</td>
|
||||
<td class="center">{{policy.countOutbound}}</td>
|
||||
<td class="center">{{policy.countClusters}}</td>
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tr v-for="server in servers">
|
||||
<td><keyword :v-word="keyword">{{server.name}}</keyword>
|
||||
<td><a :href="'/servers/server?serverId=' + server.id"><keyword :v-word="keyword">{{server.name}}</keyword></a>
|
||||
<div style="margin-top:0.4em">
|
||||
<tiny-basic-label>{{server.serverTypeName}}</tiny-basic-label>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</thead>
|
||||
<tr v-for="list in lists">
|
||||
<td class="center">{{list.id}}</td>
|
||||
<td>{{list.name}}</td>
|
||||
<td><a :href="'/servers/iplists/list?listId=' + list.id">{{list.name}}</a></td>
|
||||
<td class="center">
|
||||
<span v-if="list.type == 'black'">黑名单</span>
|
||||
<span v-if="list.type == 'white'">白名单</span>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</thead>
|
||||
<tr v-for="item in items">
|
||||
<td>
|
||||
{{item.name}}
|
||||
<a :href="'/servers/metrics/item?itemId=' + item.id">{{item.name}}</a>
|
||||
<div style="margin-top: 0.3em" v-if="item.isPublic || item.code.length > 0">
|
||||
<span class="ui label olive tiny basic" v-if="item.isPublic">公用</span>
|
||||
<span class="ui label olive tiny basic" v-if="item.code.length > 0">内置</span>
|
||||
|
||||
Reference in New Issue
Block a user