|
@@ -236,7 +236,7 @@
|
|
|
:span="24"
|
|
|
v-model:param="scope.row.type"
|
|
|
link="select"
|
|
|
- :options="['RAW_JSON', 'RAW_TEXT'].includes(state.params.requestBody.type) ? DictionaryStore.requestParamsList.filter(v => v.dictValue != 3) : DictionaryStore.requestParamsList"
|
|
|
+ :options="DictionaryStore.requestParamsList"
|
|
|
:clearable="false"
|
|
|
@change="(val) => (scope.row.value = '', scope.row.valueTable = [])"
|
|
|
/>
|
|
@@ -277,11 +277,11 @@
|
|
|
<template v-if="state.params.responseBody.type == 1 || state.params.responseBody.type == 2">
|
|
|
<el-col :span="24">
|
|
|
<div class="tips">
|
|
|
- 1、<span style="color: var(--cus-main-color)">@</span>代表返回的数据,如下返回结果,匹配<span style="color: var(--cus-main-color)">总数</span>为"<span style="color: var(--cus-main-color)">@.data.total</span>"
|
|
|
+ 1、<span style="color: var(--cus-main-color)">$</span>代表返回的数据,如下返回结果,匹配<span style="color: var(--cus-main-color)">总数</span>为"<span style="color: var(--cus-main-color)">$.data.total</span>"
|
|
|
<br/>
|
|
|
{code: 200,data: {pageNum: 1, pageSize: 10, data: [], <span style="color: var(--cus-main-color)">total</span>: 0},msg: ''}
|
|
|
<br/>
|
|
|
- 2、如直接返回统计结果或文本信息,可用<span style="color: var(--cus-main-color)">@</span>直接代表数据体
|
|
|
+ 2、如直接返回统计结果或文本信息,可用<span style="color: var(--cus-main-color)">$</span>直接代表数据体
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</template>
|
|
@@ -319,7 +319,7 @@
|
|
|
<div style="margin-bottom: 10px; display: flex">
|
|
|
<CusButton type="main" title="新增" style="margin-right: auto;" @click="state.params.responseBody.json.data.push({label: '', key: '', valueType: '2', value: '', formatType: '1', formatRule: ''})"/>
|
|
|
<div class="tips" style="margin-left: 10px">
|
|
|
- 取值类型为JsonPath时,@代表返回的数据(逻辑同上),也可以直接写$['字段名']进行匹配
|
|
|
+ 取值类型为JsonPath时,$代表返回的数据(逻辑同上),也可以直接写$['字段名']进行匹配
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="flex: 1; overflow: hidden;">
|
|
@@ -500,6 +500,9 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</template>
|
|
|
+ <template #do-column-value="{scope}">
|
|
|
+ <CusButton type="table-del" @click="state.params.responseBody.text.data.splice(scope.$index, 1)"/>
|
|
|
+ </template>
|
|
|
</CusTable>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -630,6 +633,7 @@ const state: any = reactive({
|
|
|
{value: "value", label: "取值规则"},
|
|
|
{value: "formatType", label: "格式类型", width: 160},
|
|
|
{value: "formatRule", label: "格式转换规则"},
|
|
|
+ {value: "do", label: "操作", width: 120, fixed: 'right'},
|
|
|
],
|
|
|
data: [{label: '', key: '', valueType: '2', value: '', formatType: '1', formatRule: ''}]
|
|
|
},
|