style(接口定义): 增加请求类型提示信息

This commit is contained in:
teukkk 2024-06-13 10:43:14 +08:00 committed by 刘瑞斌
parent 28b2e9197f
commit aa04db9e37
3 changed files with 3 additions and 0 deletions

View File

@ -134,6 +134,7 @@
:rules="[{ required: true, message: t('apiTestManagement.attrRequired') }]" :rules="[{ required: true, message: t('apiTestManagement.attrRequired') }]"
asterisk-position="end" asterisk-position="end"
> >
<template v-if="batchForm.attr === 'method'" #extra>{{ t('apiTestManagement.requestTypeTip') }}</template>
<a-select v-model="batchForm.attr" :placeholder="t('common.pleaseSelect')"> <a-select v-model="batchForm.attr" :placeholder="t('common.pleaseSelect')">
<a-option v-for="item of attrOptions" :key="item.value" :value="item.value"> <a-option v-for="item of attrOptions" :key="item.value" :value="item.value">
{{ t(item.name) }} {{ t(item.name) }}

View File

@ -165,6 +165,7 @@ export default {
'apiTestManagement.variable': 'Variable', 'apiTestManagement.variable': 'Variable',
'apiTestManagement.regex': 'Regular Expression', 'apiTestManagement.regex': 'Regular Expression',
'apiTestManagement.caseTotal': 'Case total', 'apiTestManagement.caseTotal': 'Case total',
'apiTestManagement.requestTypeTip': 'Note: Batch request type changes apply only to HTTP requests.',
'case.execute.selectEnv': 'Select Environment', 'case.execute.selectEnv': 'Select Environment',
'case.execute.defaultEnv': 'Default Environment', 'case.execute.defaultEnv': 'Default Environment',
'case.execute.newEnv': 'New Environment', 'case.execute.newEnv': 'New Environment',

View File

@ -158,6 +158,7 @@ export default {
'apiTestManagement.variable': '变量', 'apiTestManagement.variable': '变量',
'apiTestManagement.regex': '正则表达式', 'apiTestManagement.regex': '正则表达式',
'apiTestManagement.caseTotal': '用例数', 'apiTestManagement.caseTotal': '用例数',
'apiTestManagement.requestTypeTip': '注批量修改请求类型仅对HTTP协议的请求生效',
'case.execute.selectEnv': '环境选择', 'case.execute.selectEnv': '环境选择',
'case.execute.defaultEnv': '默认环境', 'case.execute.defaultEnv': '默认环境',
'case.execute.newEnv': '新环境', 'case.execute.newEnv': '新环境',