文件清理
This commit is contained in:
@@ -6,9 +6,8 @@
|
||||
<table class="ui table celled selectable" v-if="policies.length > 0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>策略名称</th>
|
||||
<th class="three op">类型</th>
|
||||
<th>主要参数</th>
|
||||
<th style="width: 14em;">策略名称</th>
|
||||
<th class="op" style="width: 12em; white-space: nowrap;">类型</th>
|
||||
<th class="two wide">状态</th>
|
||||
<th class="two op">操作</th>
|
||||
</tr>
|
||||
@@ -21,19 +20,7 @@
|
||||
<span class="ui label tiny basic" v-if="policy.disableDefaultDB">停用默认数据库</span>
|
||||
</div>
|
||||
</td>
|
||||
<td>{{policy.typeName}}</td>
|
||||
<td>
|
||||
<span v-if="policy.options == null" class="disabled">-</span>
|
||||
<span v-else-if="policy.type == 'es'">Endpoint: {{policy.options.endpoint}}</span>
|
||||
<span v-else-if="policy.type == 'file'">文件路径:{{policy.options.path}}</span>
|
||||
<span v-else-if="policy.type == 'tcp'">网络地址:{{policy.options.addr}}</span>
|
||||
<span v-else-if="policy.type == 'command'">可执行命令:{{policy.options.command}}</span>
|
||||
<span v-else-if="policy.type == 'syslog'">
|
||||
<span v-if="policy.options.protocol == 'tcp'">TCP {{policy.options.serverAddr}}</span>
|
||||
<span v-if="policy.options.protocol == 'udp'">UDP {{policy.options.serverAddr}}</span>
|
||||
<span v-if="policy.options.protocol == 'socket'">SOCK {{policy.options.socket}}</span>
|
||||
</span>
|
||||
</td>
|
||||
<td style="white-space: nowrap;">{{policy.typeName}}</td>
|
||||
<td>
|
||||
<label-on :v-is-on="policy.isOn"></label-on>
|
||||
</td>
|
||||
@@ -43,4 +30,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="page" v-html="page"></div>
|
||||
<div class="page" v-html="page"></div>
|
||||
|
||||
Reference in New Issue
Block a user