请求条件支持参数匹配

This commit is contained in:
GoEdgeLab
2021-06-09 17:14:31 +08:00
parent 382b526894
commit 40f0cc3a17
10 changed files with 349 additions and 22 deletions

View File

@@ -1,3 +1,4 @@
// 浏览条件列表
Vue.component("http-request-conds-view", {
props: ["v-conds"],
data: function () {
@@ -54,8 +55,8 @@ Vue.component("http-request-conds-view", {
<div v-for="(group, groupIndex) in conds.groups">
<var v-for="(cond, index) in group.conds" style="font-style: normal;display: inline-block; margin-bottom:0.5em">
<span class="ui label tiny">
<var v-if="cond.type.length == 0" style="font-style: normal">{{cond.param}} <var>{{cond.operator}}</var></var>
<var v-if="cond.type.length > 0" style="font-style: normal">{{cond.typeName}}: </var>
<var v-if="cond.type.length == 0 || cond.type == 'params'" style="font-style: normal">{{cond.param}} <var>{{cond.operator}}</var></var>
<var v-if="cond.type.length > 0 && cond.type != 'params'" style="font-style: normal">{{cond.typeName}}: </var>
{{cond.value}}
</span>