fix(缺陷管理): 关联用例数据展示问题
This commit is contained in:
parent
fe9f05f7be
commit
da69cde43f
|
@ -439,6 +439,7 @@ project=项目
|
|||
add=添加
|
||||
delete=删除
|
||||
update=更新
|
||||
recover=恢复
|
||||
project_is_not_exist=项目不存在
|
||||
|
||||
#permission
|
||||
|
|
|
@ -447,6 +447,7 @@ project=Project
|
|||
add=Add
|
||||
delete=Delete
|
||||
update=Update
|
||||
recover=Recover
|
||||
project_is_not_exist=Project is not exist
|
||||
|
||||
#permission
|
||||
|
|
|
@ -446,6 +446,7 @@ project=项目
|
|||
add=添加
|
||||
delete=删除
|
||||
update=更新
|
||||
recover=恢复
|
||||
project_is_not_exist=项目不存在
|
||||
|
||||
#permission
|
||||
|
|
|
@ -444,6 +444,7 @@ project=項目
|
|||
add=添加
|
||||
delete=删除
|
||||
update=更新
|
||||
recover=恢復
|
||||
project_is_not_exist=項目不存在
|
||||
|
||||
#permission
|
||||
|
|
|
@ -64,6 +64,8 @@ public class BugHistoryService {
|
|||
dto.setType(Translator.get("update"));
|
||||
} else if (StringUtils.equals(dto.getType(), OperationLogType.DELETE.name())) {
|
||||
dto.setType(Translator.get("delete"));
|
||||
} else if (StringUtils.equals(dto.getType(), OperationLogType.RECOVER.name())) {
|
||||
dto.setType(Translator.get("recover"));
|
||||
}
|
||||
dto.setLatest(latestVersionId != null && latestVersionId.longValue() == dto.getId().longValue());
|
||||
return dto;
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
import { useI18n } from '@/hooks/useI18n';
|
||||
import useModal from '@/hooks/useModal';
|
||||
import useAppStore from '@/store/modules/app';
|
||||
import { mapTree } from '@/utils';
|
||||
import { characterLimit, mapTree } from '@/utils';
|
||||
import { hasAllPermission, hasAnyPermission } from '@/utils/permission';
|
||||
|
||||
import { ApiDefinitionGetModuleParams } from '@/models/apiTest/management';
|
||||
|
@ -517,8 +517,8 @@
|
|||
type: 'error',
|
||||
title:
|
||||
node.type === 'API'
|
||||
? t('apiTestDebug.deleteDebugTipTitle', { name: node.name })
|
||||
: t('apiTestDebug.deleteFolderTipTitle', { name: node.name }),
|
||||
? t('apiTestDebug.deleteDebugTipTitle', { name: characterLimit(node.name) })
|
||||
: t('apiTestDebug.deleteFolderTipTitle', { name: characterLimit(node.name) }),
|
||||
content: node.type === 'API' ? t('apiTestDebug.deleteDebugTipContent') : t('apiTestDebug.deleteFolderTipContent'),
|
||||
okText: t('apiTestDebug.deleteConfirm'),
|
||||
okButtonProps: {
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
</ms-base-table>
|
||||
<MsCaseAssociate
|
||||
v-model:visible="innerVisible"
|
||||
v-model:project-id="innerProject"
|
||||
v-model:currentSelectCase="currentSelectCase"
|
||||
:ok-button-disabled="associateForm.reviewers.length === 0"
|
||||
:get-modules-func="getModuleTree"
|
||||
|
@ -103,7 +102,6 @@
|
|||
getModuleTree,
|
||||
getUnAssociatedList,
|
||||
} from '@/api/modules/bug-management';
|
||||
import { postTabletList } from '@/api/modules/project-management/menuManagement';
|
||||
import { useI18n } from '@/hooks/useI18n';
|
||||
import { NO_RESOURCE_ROUTE_NAME } from '@/router/constants';
|
||||
import { useAppStore } from '@/store';
|
||||
|
@ -202,7 +200,7 @@
|
|||
|
||||
const associatedIds = ref<string[]>([]);
|
||||
|
||||
const currentSelectCase = ref<keyof typeof CaseLinkEnum>('API');
|
||||
const currentSelectCase = ref<keyof typeof CaseLinkEnum>('FUNCTIONAL');
|
||||
|
||||
const modulesTreeParams = ref<TableQueryParams>({});
|
||||
|
||||
|
@ -236,12 +234,8 @@
|
|||
|
||||
const caseTypeOptions = ref<{ label: string; value: string }[]>([
|
||||
{
|
||||
value: 'API',
|
||||
label: t('caseManagement.featureCase.apiCase'),
|
||||
},
|
||||
{
|
||||
value: 'SCENARIO',
|
||||
label: t('caseManagement.featureCase.sceneCase'),
|
||||
label: 'menu.caseManagement.featureCase',
|
||||
value: 'FUNCTIONAL',
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue