Files
EdgeAdmin/web/views/@default/dns/providers/index.html
2022-03-30 11:15:32 +08:00

49 lines
1.6 KiB
HTML

{$layout}
<first-menu>
<a href="" class="item" @click.prevent="createProvider()">[添加DNS账号信息]</a>
</first-menu>
<div class="margin"></div>
<form class="ui form" method="get" action="/dns/providers">
<div class="ui fields inline">
<div class="ui field">
<input type="text" name="keyword" placeholder="账号说明..." v-model="keyword"/>
</div>
<div class="ui field">
<input type="text" name="domain" placeholder="域名..." v-model="domain"/>
</div>
<div class="ui field">
<button class="ui button" type="submit">搜索</button>
&nbsp;
<a :href="Tea.url('.')" v-if="keyword.length > 0 || domain.length > 0">[清除条件]</a>
</div>
</div>
</form>
<p class="comment" v-if="providers.length == 0">暂时还没有第三方DNS服务商。</p>
<table class="ui table selectable celled" v-if="providers.length > 0">
<thead>
<tr>
<th>账号说明</th>
<th class="width10">服务商</th>
<th class="width5 center">域名</th>
<th class="two op">操作</th>
</tr>
</thead>
<tr v-for="(provider, index) in providers">
<td><a :href="'/dns/providers/provider?providerId=' + provider.id">{{provider.name}}</a></td>
<td>{{provider.typeName}}</td>
<td class="center">
<span v-if="provider.countDomains == 0" class="disabled">0</span>
<span v-else>{{provider.countDomains}}</span>
</td>
<td>
<a :href="'/dns/providers/provider?providerId=' + provider.id">详情</a> &nbsp; &nbsp; <a href="" @click.prevent="deleteProvider(provider.id)">删除</a>
</td>
</tr>
</table>
<div class="page" v-html="page"></div>