mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-24 10:56:36 +08:00
增加ip2region库管理
This commit is contained in:
39
web/views/@default/servers/components/ip-library/index.html
Normal file
39
web/views/@default/servers/components/ip-library/index.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{$layout}
|
||||
{$template "/left_menu"}
|
||||
|
||||
<div class="right-box">
|
||||
<first-menu>
|
||||
<menu-item v-for="type in types" :href="'/servers/components/ip-library?type=' + type.code" :active="type.code == selectedType">{{type.name}}</menu-item>
|
||||
<span class="item">|</span>
|
||||
<a href="" class="item" @click.prevent="upload()">[上传]</a>
|
||||
</first-menu>
|
||||
|
||||
<p class="comment" v-if="libraries.length == 0">暂时还没有IP库。</p>
|
||||
<div v-if="libraries.length > 0">
|
||||
<div class="margin"></div>
|
||||
<table class="ui table selectable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>文件名</th>
|
||||
<th>文件尺寸</th>
|
||||
<th>上传时间</th>
|
||||
<th class="two op">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr v-for="library in libraries">
|
||||
<td>
|
||||
<span v-if="library.file != null">{{library.file.filename}}</span>
|
||||
<span v-else>-</span>
|
||||
</td>
|
||||
<td>
|
||||
<span v-if="library.file != null">{{library.file.sizeMB}}MB</span>
|
||||
<span v-else>-</span>
|
||||
</td>
|
||||
<td>{{library.createdTime}}</td>
|
||||
<td>
|
||||
<a :href="'/servers/components/ip-library/download?libraryId=' + library.id" target="_blank">下载</a> <a href="" @click.prevent="deleteLibrary(library.id)">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user