mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:10:29 +08:00
优化缓存请求条件界面
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -716,24 +716,23 @@ 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: 7em; color: grey" v-model="variable" @change="changeVariable">
|
<select class="ui dropdown" style="width: 16em; 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>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -835,5 +834,6 @@ Vue.component("http-cond-params", {
|
|||||||
<p class="comment">选中后表示对比时忽略参数值的大小写。</p>
|
<p class="comment">选中后表示对比时忽略参数值的大小写。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>`
|
</tbody>
|
||||||
|
</table>`
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user