2020-11-10 21:37:48 +08:00
|
|
|
{$layout}
|
|
|
|
|
|
2020-11-11 21:32:19 +08:00
|
|
|
<first-menu>
|
|
|
|
|
<a href="" class="item" @click.prevent="createProvider()">[添加DNS账号信息]</a>
|
|
|
|
|
</first-menu>
|
|
|
|
|
|
2021-08-25 18:46:57 +08:00
|
|
|
<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>
|
2022-03-30 11:15:32 +08:00
|
|
|
<div class="ui field">
|
|
|
|
|
<input type="text" name="domain" placeholder="域名..." v-model="domain"/>
|
|
|
|
|
</div>
|
2022-05-07 20:41:20 +08:00
|
|
|
<div class="ui field" v-if="providerTypes.length > 0">
|
|
|
|
|
<select class="ui dropdown auto-width" name="providerType" v-model="providerType">
|
2022-05-07 20:59:38 +08:00
|
|
|
<option value="">[服务商厂家]</option>
|
2022-05-07 20:41:20 +08:00
|
|
|
<option v-for="p in providerTypes" :value="p.code">{{p.name}}({{p.count}})</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2021-08-25 18:46:57 +08:00
|
|
|
<div class="ui field">
|
|
|
|
|
<button class="ui button" type="submit">搜索</button>
|
2021-09-12 20:21:32 +08:00
|
|
|
|
2022-05-07 20:41:20 +08:00
|
|
|
<a :href="Tea.url('.')" v-if="keyword.length > 0 || domain.length > 0 || providerType.length > 0">[清除条件]</a>
|
2021-08-25 18:46:57 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
2020-11-11 21:32:19 +08:00
|
|
|
<p class="comment" v-if="providers.length == 0">暂时还没有第三方DNS服务商。</p>
|
|
|
|
|
|
2020-11-16 13:03:45 +08:00
|
|
|
<table class="ui table selectable celled" v-if="providers.length > 0">
|
2020-11-11 21:32:19 +08:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>账号说明</th>
|
2022-05-07 20:41:20 +08:00
|
|
|
<th class="three wide">服务商</th>
|
2020-11-16 15:26:27 +08:00
|
|
|
<th class="width5 center">域名</th>
|
2020-11-11 21:32:19 +08:00
|
|
|
<th class="two op">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
2020-11-12 14:41:34 +08:00
|
|
|
<tr v-for="(provider, index) in providers">
|
2022-05-07 20:41:20 +08:00
|
|
|
<td><a :href="'/dns/providers/provider?providerId=' + provider.id"><keyword :v-word="keyword">{{provider.name}}</keyword></a></td>
|
2020-11-11 21:32:19 +08:00
|
|
|
<td>{{provider.typeName}}</td>
|
2020-11-16 13:03:45 +08:00
|
|
|
<td class="center">
|
|
|
|
|
<span v-if="provider.countDomains == 0" class="disabled">0</span>
|
|
|
|
|
<span v-else>{{provider.countDomains}}</span>
|
2020-11-12 14:41:34 +08:00
|
|
|
</td>
|
2020-11-11 21:32:19 +08:00
|
|
|
<td>
|
2020-11-12 14:41:34 +08:00
|
|
|
<a :href="'/dns/providers/provider?providerId=' + provider.id">详情</a> <a href="" @click.prevent="deleteProvider(provider.id)">删除</a>
|
2020-11-11 21:32:19 +08:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<div class="page" v-html="page"></div>
|