mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-01-06 03:55:48 +08:00
优化界面
This commit is contained in:
@@ -208,7 +208,7 @@
|
||||
<td>是否公用</td>
|
||||
<td>
|
||||
<checkbox name="isPublic" value="1"></checkbox>
|
||||
<p class="comment">选中后表示自动将此策略应用于所有集群,同时只会有一个公用策略。</p>
|
||||
<p class="comment"><span class="red">选中后表示自动将此策略应用于所有集群,同时只会有一个公用策略。</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
{$template "/code_editor"}
|
||||
{$template "policy_menu"}
|
||||
|
||||
<form class="ui form" data-tea-action="$" data-tea-success="success">
|
||||
<form class="ui form" data-tea-action="$" data-tea-success="success" data-tea-timeou="30" data-tea-done="done" data-tea-before="before">
|
||||
<input type="hidden" name="policyId" :value="policy.id"/>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
@@ -14,5 +14,6 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<submit-btn></submit-btn>
|
||||
<submit-btn v-if="!isRequesting"></submit-btn>
|
||||
<button class="ui button disabled" type="button" v-if="isRequesting">发送中...</button>
|
||||
</form>
|
||||
@@ -1,5 +1,15 @@
|
||||
Tea.context(function () {
|
||||
this.isRequesting = false
|
||||
|
||||
this.success = function () {
|
||||
teaweb.success("发送成功")
|
||||
}
|
||||
|
||||
this.before = function () {
|
||||
this.isRequesting = true
|
||||
}
|
||||
|
||||
this.done = function () {
|
||||
this.isRequesting = false
|
||||
}
|
||||
})
|
||||
@@ -208,7 +208,7 @@
|
||||
<td>是否公用</td>
|
||||
<td>
|
||||
<checkbox name="isPublic" v-model="policy.isPublic"></checkbox>
|
||||
<p class="comment">选中后表示自动将此策略应用于所有集群,同时只会有一个公用策略。</p>
|
||||
<p class="comment"><span class="red">选中后表示自动将此策略应用于所有集群,同时只会有一个公用策略。</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user