Files
EdgeAdmin/web/views/@default/servers/server/settings/locations/index.html

45 lines
1.7 KiB
HTML
Raw Normal View History

2020-08-21 12:32:16 +08:00
{$layout}
2020-09-28 16:25:26 +08:00
{$var "header"}
<script type="text/javascript" src="/js/sortable.min.js"></script>
{$end}
2021-12-02 17:41:51 +08:00
{$template "../settings_menu"}
{$template "/left_menu_with_menu"}
<div class="right-box with-menu">
2020-09-21 19:51:50 +08:00
{$template "menu"}
2021-07-13 14:28:06 +08:00
<p class="comment" v-if="locations.length == 0">暂时还没有路由规则。</p>
2020-09-21 19:51:50 +08:00
2020-11-16 13:03:45 +08:00
<table class="ui table selectable celled" v-if="locations.length > 0" id="sortable-table">
2020-09-21 19:51:50 +08:00
<thead>
<tr>
2020-09-28 16:25:26 +08:00
<th style="width:1em"></th>
2020-09-21 19:51:50 +08:00
<th>匹配规则</th>
<th class="two wide">匹配类型</th>
2020-09-27 15:26:11 +08:00
<th class="two wide">状态</th>
2020-09-21 19:51:50 +08:00
<th class="two op">操作</th>
</tr>
</thead>
2020-09-28 16:25:26 +08:00
<tbody v-for="location in locations" :v-id="location.id">
<tr>
<td><i class="icon bars grey handle"></i></td>
<td>
2021-08-30 09:52:09 +08:00
<a :href="'/servers/server/settings/locations/location?serverId=' + serverId + '&locationId=' + location.id">{{location.pattern}}</a>
2020-10-05 16:54:34 +08:00
<http-location-labels :v-location-config="location" :v-server-id="serverId"></http-location-labels>
2020-09-28 16:25:26 +08:00
</td>
<td>{{location.patternTypeName}}</td>
2020-09-28 16:25:26 +08:00
<td>
<label-on :v-is-on="location.isOn"></label-on>
</td>
<td>
<a :href="'/servers/server/settings/locations/location?serverId=' + serverId + '&locationId=' + location.id">详情</a> &nbsp;
<a href="" @click.prevent="deleteLocation(location.id)">删除</a> &nbsp;
<!--<a :href="'/servers/server/settings/locations/create?serverId=' + serverId + '&webId=' + webId + '&parentId=' + location.id" title="添加子规则">+</a>-->
</td>
</tr>
</tbody>
2020-09-21 19:51:50 +08:00
</table>
2021-07-13 14:28:06 +08:00
<p class="comment" v-if="locations.length > 0">拖动左侧的<i class="icon bars grey"></i>图标可以对路由规则进行排序。</p>
2020-08-21 12:32:16 +08:00
</div>