fix(接口管理): 修复接口用例批量执行时的参数校验问题

--bug=1037761 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037761
--bug=1037771 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037771
--bug=1037726 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037726
This commit is contained in:
guoyuqi 2024-03-27 11:46:19 +08:00 committed by 刘瑞斌
parent 5f59d2cfdc
commit 348b926c6f
3 changed files with 14 additions and 4 deletions

View File

@ -30,7 +30,7 @@
v-if="batchExecuteForm.defaultEnv == 'false'"
field="environmentId"
:label="t('case.execute.newEnv')"
:rules="[{ required: true, message: t('apiTestManagement.valueRequired') }]"
:rules="[{ required: true, message: t('apiTestManagement.envRequired') }]"
asterisk-position="end"
required
>
@ -63,9 +63,9 @@
</a-form-item>
<a-form-item
v-if="batchExecuteForm.integratedReport == 'true'"
field="integratedReport"
field="integratedReportName"
:label="t('case.execute.reportName')"
:rules="[{ required: true, message: t('apiTestManagement.valueRequired') }]"
:rules="[{ required: true, message: t('apiTestManagement.reportNameRequired') }]"
:validate-trigger="['blur', 'input']"
>
<a-input
@ -74,7 +74,11 @@
:placeholder="t('formCreate.PleaseEnter')"
/>
</a-form-item>
<a-form-item field="poolId" :label="t('case.execute.pool')">
<a-form-item
field="poolId"
:label="t('case.execute.pool')"
:rules="[{ required: true, message: t('apiTestManagement.poolRequired') }]"
>
<a-select v-model="batchExecuteForm.poolId" :placeholder="t('common.pleaseSelect')">
<a-option v-for="item of resourcePoolList" :key="item.id" :value="item.id">
{{ t(item.name) }}

View File

@ -55,6 +55,9 @@ export default {
'apiTestManagement.attrRequired': 'Property cannot be empty',
'apiTestManagement.batchUpdate': 'Batch update to',
'apiTestManagement.valueRequired': 'Attribute value cannot be empty',
'apiTestManagement.envRequired': 'Environment value cannot be empty',
'apiTestManagement.reportNameRequired': 'Report name cannot be empty',
'apiTestManagement.poolRequired': 'Resource pool cannot be empty',
'apiTestManagement.batchMoveConfirm': 'Move to selected module',
'apiTestManagement.belongModule': 'Belonging module',
'apiTestManagement.importMode': 'Import mode',

View File

@ -53,6 +53,9 @@ export default {
'apiTestManagement.attrRequired': '属性不能为空',
'apiTestManagement.batchUpdate': '批量更新为',
'apiTestManagement.valueRequired': '属性值不能为空',
'apiTestManagement.envRequired': '环境值不能为空',
'apiTestManagement.reportNameRequired': '报告名不能为空',
'apiTestManagement.poolRequired': '资源池不能为空',
'apiTestManagement.batchMoveConfirm': '移动至所选模块',
'apiTestManagement.belongModule': '所属模块',
'apiTestManagement.importMode': '导入模式',