fix(接口测试): 导入时选中模块不存在回显

--bug=1046573 --user=白奇 【接口测试】导入swagger接口-选中模块被删除-所属模块展示为id https://www.tapd.cn/55049933/s/1579890
This commit is contained in:
baiqi 2024-09-18 15:49:47 +08:00 committed by Craftsman
parent 0ce134537d
commit 3b9bce189a
4 changed files with 12 additions and 1 deletions

View File

@ -44,6 +44,11 @@
allow-search allow-search
allow-clear allow-clear
:filter-tree-node="filterTreeNode" :filter-tree-node="filterTreeNode"
:fallback-option="(key: string | number) => ({
name: t('apiTestManagement.moduleNotExist'),
key,
disabled: true,
})"
> >
<template #tree-slot-title="node"> <template #tree-slot-title="node">
<a-tooltip :content="`${node.name}`" position="tl"> <a-tooltip :content="`${node.name}`" position="tl">
@ -261,6 +266,11 @@
:field-names="{ title: 'name', key: 'id', children: 'children' }" :field-names="{ title: 'name', key: 'id', children: 'children' }"
allow-search allow-search
:filter-tree-node="filterTreeNode" :filter-tree-node="filterTreeNode"
:fallback-option="(key: string | number) => ({
name: t('apiTestManagement.moduleNotExist'),
key,
disabled: true,
})"
> >
<template #tree-slot-title="node"> <template #tree-slot-title="node">
<a-tooltip :content="`${node.name}`" position="tl"> <a-tooltip :content="`${node.name}`" position="tl">

View File

@ -173,6 +173,7 @@ export default {
'apiTestManagement.protocolIsEmpty': 'The protocol is empty', 'apiTestManagement.protocolIsEmpty': 'The protocol is empty',
'apiTestManagement.protocolEmptyTip': 'List display data is empty, please select protocol', 'apiTestManagement.protocolEmptyTip': 'List display data is empty, please select protocol',
'apiTestManagement.exportSwaggerTip': 'Swagger format only supports exporting HTTP protocol requests', 'apiTestManagement.exportSwaggerTip': 'Swagger format only supports exporting HTTP protocol requests',
'apiTestManagement.moduleNotExist': 'Module does not exist',
'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

@ -166,6 +166,7 @@ export default {
'apiTestManagement.protocolIsEmpty': '接口协议为空', 'apiTestManagement.protocolIsEmpty': '接口协议为空',
'apiTestManagement.protocolEmptyTip': '列表展示数据为空,请选择协议', 'apiTestManagement.protocolEmptyTip': '列表展示数据为空,请选择协议',
'apiTestManagement.exportSwaggerTip': 'Swagger格式仅支持导出HTTP协议的请求', 'apiTestManagement.exportSwaggerTip': 'Swagger格式仅支持导出HTTP协议的请求',
'apiTestManagement.moduleNotExist': '模块不存在',
'case.execute.selectEnv': '环境选择', 'case.execute.selectEnv': '环境选择',
'case.execute.defaultEnv': '默认环境', 'case.execute.defaultEnv': '默认环境',
'case.execute.newEnv': '新环境', 'case.execute.newEnv': '新环境',

View File

@ -450,7 +450,6 @@
background-color: var(--color-text-n9); background-color: var(--color-text-n9);
} }
} }
:deep(.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-tag) { :deep(.arco-select-view-multiple.arco-select-view-size-medium .arco-select-view-tag) {
margin-top: 1px; margin-top: 1px;
margin-bottom: 1px; margin-bottom: 1px;