style(接口测试): 修改导入样式&变更历史的类型筛选选项
--bug=1039605 --user=吕梦园 --bug=1039579 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039605 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039579
This commit is contained in:
parent
523017eb2e
commit
9f93007c11
|
@ -10,10 +10,10 @@
|
||||||
:ok-loading="importLoading"
|
:ok-loading="importLoading"
|
||||||
disabled-width-drag
|
disabled-width-drag
|
||||||
desc
|
desc
|
||||||
|
no-title
|
||||||
@confirm="confirmImport"
|
@confirm="confirmImport"
|
||||||
@cancel="cancelImport"
|
@cancel="cancelImport"
|
||||||
>
|
>
|
||||||
<template #title> </template>
|
|
||||||
<div class="flex items-center justify-between p-[12px_8px]">
|
<div class="flex items-center justify-between p-[12px_8px]">
|
||||||
<div class="font-medium text-[var(--color-text-1)]">{{ t('apiTestManagement.importApi') }}</div>
|
<div class="font-medium text-[var(--color-text-1)]">{{ t('apiTestManagement.importApi') }}</div>
|
||||||
<a-radio-group v-model:model-value="importForm.type" type="button">
|
<a-radio-group v-model:model-value="importForm.type" type="button">
|
||||||
|
@ -122,7 +122,14 @@
|
||||||
<template #subText>
|
<template #subText>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
{{ t('apiTestManagement.importSwaggerFileTip1') }}
|
{{ t('apiTestManagement.importSwaggerFileTip1') }}
|
||||||
<div class="text-[rgb(var(--warning-6))]">{{ t('apiTestManagement.importSwaggerFileTip2') }}</div>
|
<a
|
||||||
|
class="text-[rgb(var(--warning-6))]"
|
||||||
|
href="https://converter.swagger.io/"
|
||||||
|
target="_blank"
|
||||||
|
@click.stop
|
||||||
|
>
|
||||||
|
{{ t('apiTestManagement.importSwaggerFileTip2') }}
|
||||||
|
</a>
|
||||||
{{ t('apiTestManagement.importSwaggerFileTip3') }}
|
{{ t('apiTestManagement.importSwaggerFileTip3') }}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -85,10 +85,6 @@
|
||||||
label: 'system.log.operateType.import',
|
label: 'system.log.operateType.import',
|
||||||
value: 'IMPORT',
|
value: 'IMPORT',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: 'system.log.operateType.delete',
|
|
||||||
value: 'DELETE',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const columns: MsTableColumn = [
|
const columns: MsTableColumn = [
|
||||||
|
|
|
@ -81,8 +81,7 @@ export default {
|
||||||
'apiTestManagement.syncImportCase': 'Synchronous import interface use case',
|
'apiTestManagement.syncImportCase': 'Synchronous import interface use case',
|
||||||
'apiTestManagement.syncUpdateDirectory': 'Synchronously update the directory where the interface is located',
|
'apiTestManagement.syncUpdateDirectory': 'Synchronously update the directory where the interface is located',
|
||||||
'apiTestManagement.importSwaggerFileTip1': 'Supports json files of Swagger 3.0 version,',
|
'apiTestManagement.importSwaggerFileTip1': 'Supports json files of Swagger 3.0 version,',
|
||||||
'apiTestManagement.importSwaggerFileTip2':
|
'apiTestManagement.importSwaggerFileTip2': '2.0 files can be converted to 3.0 on the official website with one click',
|
||||||
'It is recommended to convert 2.0 files to 3.0 on the official website and then import them.',
|
|
||||||
'apiTestManagement.importSwaggerFileTip3': ', the size does not exceed 50M',
|
'apiTestManagement.importSwaggerFileTip3': ', the size does not exceed 50M',
|
||||||
'apiTestManagement.urlImportPlaceholder': 'Please enter the OpenAPI/Swagger URL',
|
'apiTestManagement.urlImportPlaceholder': 'Please enter the OpenAPI/Swagger URL',
|
||||||
'apiTestManagement.swaggerURLRequired': 'SwaggerURL cannot be empty',
|
'apiTestManagement.swaggerURLRequired': 'SwaggerURL cannot be empty',
|
||||||
|
|
|
@ -76,7 +76,7 @@ export default {
|
||||||
'apiTestManagement.syncImportCase': '同步导入接口用例',
|
'apiTestManagement.syncImportCase': '同步导入接口用例',
|
||||||
'apiTestManagement.syncUpdateDirectory': '同步更新接口所在目录',
|
'apiTestManagement.syncUpdateDirectory': '同步更新接口所在目录',
|
||||||
'apiTestManagement.importSwaggerFileTip1': '支持 Swagger 3.0 版本的 json 文件,',
|
'apiTestManagement.importSwaggerFileTip1': '支持 Swagger 3.0 版本的 json 文件,',
|
||||||
'apiTestManagement.importSwaggerFileTip2': '2.0 的文件建议自行在官网转换成 3.0 再进行导入',
|
'apiTestManagement.importSwaggerFileTip2': '2.0 文件可以在官网一键转换 3.0',
|
||||||
'apiTestManagement.importSwaggerFileTip3': ',大小不超过 50M',
|
'apiTestManagement.importSwaggerFileTip3': ',大小不超过 50M',
|
||||||
'apiTestManagement.urlImportPlaceholder': '请输入OpenAPI/Swagger URL',
|
'apiTestManagement.urlImportPlaceholder': '请输入OpenAPI/Swagger URL',
|
||||||
'apiTestManagement.swaggerURLRequired': 'SwaggerURL 不能为空',
|
'apiTestManagement.swaggerURLRequired': 'SwaggerURL 不能为空',
|
||||||
|
|
Loading…
Reference in New Issue