fix(接口测试): 修复角标数字超过99个后显示99+

【【接口测试】接口定义-调试,断言超过99个应该显示99+】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001037618
This commit is contained in:
fit2-zhao 2024-03-25 14:57:32 +08:00 committed by Craftsman
parent 6248845e6a
commit 279e1673e4
2 changed files with 16 additions and 4 deletions

View File

@ -21,7 +21,7 @@
</a-button>
<a-input-search
v-model:model-value="keyword"
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
:placeholder="t('project.menu.nameSearch')"
allow-clear
class="mx-[8px] w-[240px]"
@search="searchList"

View File

@ -740,11 +740,23 @@
const restNum = filterKeyValParams(requestVModel.value.rest, defaultRequestParamsItem).validParams.length;
return `${restNum > 0 ? restNum : ''}`;
case RequestComposition.PRECONDITION:
return `${requestVModel.value.children[0].preProcessorConfig.processors.length || ''}`;
return `${
requestVModel.value.children[0].preProcessorConfig.processors.length > 99
? '99+'
: requestVModel.value.children[0].preProcessorConfig.processors.length || ''
}`;
case RequestComposition.POST_CONDITION:
return `${requestVModel.value.children[0].postProcessorConfig.processors.length || ''}`;
return `${
requestVModel.value.children[0].postProcessorConfig.processors.length > 99
? '99+'
: requestVModel.value.children[0].postProcessorConfig.processors.length || ''
}`;
case RequestComposition.ASSERTION:
return `${requestVModel.value.children[0].assertionConfig.assertions.length || ''}`;
return `${
requestVModel.value.children[0].assertionConfig.assertions.length > 99
? '99+'
: requestVModel.value.children[0].assertionConfig.assertions.length || ''
}`;
case RequestComposition.AUTH:
return requestVModel.value.authConfig.authType !== RequestAuthType.NONE ? '1' : '';
default: