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