优化缓存请求条件界面

This commit is contained in:
GoEdgeLab
2023-02-10 11:15:06 +08:00
parent 99117eb114
commit 87b8558315
2 changed files with 15 additions and 15 deletions

View File

@@ -75,7 +75,7 @@ Vue.component("http-cache-refs-config-box", {
}) })
}, },
updateRef: function (index, cacheRef) { updateRef: function (index, cacheRef) {
window.UPDATING_CACHE_REF = cacheRef window.UPDATING_CACHE_REF = teaweb.clone(cacheRef)
let height = window.innerHeight let height = window.innerHeight
if (height > 500) { if (height > 500) {

View File

@@ -716,23 +716,22 @@ Vue.component("http-cond-params", {
this.cond.value = this.versionRangeMinValue + "," + this.versionRangeMaxValue this.cond.value = this.versionRangeMinValue + "," + this.versionRangeMaxValue
} }
}, },
template: `<tbody> template: `<table class="ui table definition">
<tbody>
<tr> <tr>
<td>参数值</td> <td style="width: 8em">参数值</td>
<td> <td>
<input type="hidden" name="condJSON" :value="JSON.stringify(cond)"/> <input type="hidden" name="condJSON" :value="JSON.stringify(cond)"/>
<div> <div>
<div class="ui fields inline"> <div class="ui field">
<div class="ui field"> <input type="text" placeholder="\${xxx}" v-model="cond.param"/>
<input type="text" placeholder="\${xxx}" v-model="cond.param"/> </div>
</div> <div class="ui field">
<div class="ui field"> <select class="ui dropdown" style="width: 16em; color: grey" v-model="variable" @change="changeVariable">
<select class="ui dropdown" style="width: 7em; color: grey" v-model="variable" @change="changeVariable"> <option value="">[常用参数]</option>
<option value="">[常用参数]</option> <option v-for="v in variables" :value="v.code">{{v.code}} - {{v.name}}</option>
<option v-for="v in variables" :value="v.code">{{v.code}} - {{v.name}}</option> </select>
</select> </div>
</div>
</div>
</div> </div>
<p class="comment">其中可以使用变量,类似于<code-label>\${requestPath}</code-label>,也可以是多个变量的组合。</p> <p class="comment">其中可以使用变量,类似于<code-label>\${requestPath}</code-label>,也可以是多个变量的组合。</p>
</td> </td>
@@ -835,5 +834,6 @@ Vue.component("http-cond-params", {
<p class="comment">选中后表示对比时忽略参数值的大小写。</p> <p class="comment">选中后表示对比时忽略参数值的大小写。</p>
</td> </td>
</tr> </tr>
</tbody>` </tbody>
</table>`
}) })