mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-25 19:56:35 +08:00
45 lines
1.7 KiB
HTML
45 lines
1.7 KiB
HTML
{$layout}
|
|
|
|
{$var "header"}
|
|
<script type="text/javascript" src="/js/sortable.min.js"></script>
|
|
{$end}
|
|
|
|
{$template "../settings_menu"}
|
|
{$template "/left_menu_with_menu"}
|
|
|
|
<div class="right-box with-menu">
|
|
{$template "menu"}
|
|
|
|
<p class="comment" v-if="locations.length == 0">暂时还没有路由规则。</p>
|
|
|
|
<table class="ui table selectable celled" v-if="locations.length > 0" id="sortable-table">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:1em"></th>
|
|
<th>匹配规则</th>
|
|
<th class="two wide">匹配类型</th>
|
|
<th class="two wide">状态</th>
|
|
<th class="two op">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody v-for="location in locations" :v-id="location.id">
|
|
<tr>
|
|
<td><i class="icon bars grey handle"></i></td>
|
|
<td>
|
|
<a :href="'/servers/server/settings/locations/location?serverId=' + serverId + '&locationId=' + location.id">{{location.pattern}}</a>
|
|
<http-location-labels :v-location-config="location" :v-server-id="serverId"></http-location-labels>
|
|
</td>
|
|
<td>{{location.patternTypeName}}</td>
|
|
<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>
|
|
<a href="" @click.prevent="deleteLocation(location.id)">删除</a>
|
|
<!--<a :href="'/servers/server/settings/locations/create?serverId=' + serverId + '&webId=' + webId + '&parentId=' + location.id" title="添加子规则">+</a>-->
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p class="comment" v-if="locations.length > 0">拖动左侧的<i class="icon bars grey"></i>图标可以对路由规则进行排序。</p>
|
|
</div> |