优化界面

This commit is contained in:
刘祥超
2021-08-16 14:44:32 +08:00
parent 1da5d1094f
commit c2576f4c62
24 changed files with 25 additions and 28 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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