优化界面

This commit is contained in:
刘祥超
2021-07-29 17:33:42 +08:00
parent 46e523d005
commit b9bef5042a
4 changed files with 15 additions and 4 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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
}
})

View File

@@ -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>