feat(接口自动化): 条件控制器增加 备注 信息

This commit is contained in:
fit2-zhao 2021-07-13 14:36:17 +08:00 committed by fit2-zhao
parent 291a0e59e2
commit 2accb03dd0
2 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,7 @@ public class MsIfController extends MsTestElement {
private String variable; private String variable;
private String operator; private String operator;
private String value; private String value;
private String remark;
@Override @Override
public void toHashTree(HashTree tree, List<MsTestElement> hashTree, ParameterConfig config) { public void toHashTree(HashTree tree, List<MsTestElement> hashTree, ParameterConfig config) {

View File

@ -13,7 +13,7 @@
<template v-slot:headerLeft> <template v-slot:headerLeft>
<el-input draggable size="mini" v-model="controller.variable" style="width: 20%" :placeholder="$t('api_test.request.condition_variable')"/> <el-input draggable size="mini" v-model="controller.variable" style="width: 15%" :placeholder="$t('api_test.request.condition_variable')"/>
<el-select v-model="controller.operator" :placeholder="$t('commons.please_select')" size="mini" <el-select v-model="controller.operator" :placeholder="$t('commons.please_select')" size="mini"
@change="change" class="ms-select"> @change="change" class="ms-select">
@ -21,6 +21,9 @@
</el-select> </el-select>
<el-input draggable size="mini" v-model="controller.value" :placeholder="$t('api_test.value')" v-if="!hasEmptyOperator" class="ms-btn"/> <el-input draggable size="mini" v-model="controller.value" :placeholder="$t('api_test.value')" v-if="!hasEmptyOperator" class="ms-btn"/>
<el-input draggable size="mini" v-model="controller.remark" :placeholder="$t('commons.remark')" v-if="!hasEmptyOperator && !isMax" class="ms-btn"/>
</template> </template>
<template v-slot:debugStepCode> <template v-slot:debugStepCode>