Files
EdgeAdmin/web/views/@default/servers/server/settings/conds/addCondPopup.html

43 lines
1.5 KiB
HTML
Raw Normal View History

2020-09-29 11:28:39 +08:00
{$layout "layout_popup"}
<h3 v-if="!isUpdating">添加子条件</h3>
<h3 v-if="isUpdating">修改子条件</h3>
2020-11-10 12:47:24 +08:00
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
2020-09-29 11:28:39 +08:00
<table class="ui table definition selectable">
<tr>
<td class="title">选择条件类型</td>
<td>
<select class="ui dropdown auto-width" name="condType" v-model="condType" @change="changeCondType">
2020-09-29 11:28:39 +08:00
<option v-for="c in components" :value="c.type">{{c.name}}</option>
</select>
{$ range .components}
<p class="comment" v-if="condType == '{$ .Type}'">{$ .Description}</p>
{$ end}
</td>
</tr>
2021-06-09 17:14:31 +08:00
<tr v-if="condType != 'params'">
<td>{{paramsTitle}}</td>
2020-09-29 11:28:39 +08:00
<td>
{$ range .components}
2021-06-09 17:14:31 +08:00
{$if not (eq .Type "params") }
<{$ .Component} v-if="condType == '{$ .Type}'" :v-cond="cond" ref="component"></{$ .Component}>
2021-06-09 17:14:31 +08:00
{$end}
2020-09-29 11:28:39 +08:00
{$ end}
</td>
</tr>
<tr v-if="paramsCaseInsensitive">
<td>不区分大小写</td>
<td>
<div class="ui checkbox">
<input type="checkbox" v-model="isCaseInsensitive" @change="changeCaseInsensitive"/>
<label></label>
</div>
<p class="comment">选中后表示对比时忽略参数值的大小写。</p>
</td>
</tr>
2021-06-09 17:14:31 +08:00
<!-- 变量相关 -->
<tbody is="http-cond-params" :v-cond="cond" v-if="condType == 'params'"></tbody>
2020-09-29 11:28:39 +08:00
</table>
<submit-btn>确定</submit-btn>
2020-09-29 11:28:39 +08:00
</form>