fix(测试计划&系统设置): 修复功能用例下缺陷列表细节&进入项目刷新菜单
--bug=1040987 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001040987 --bug=1040884 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001040884
This commit is contained in:
parent
9d3ebe1ec3
commit
7483276017
|
@ -64,11 +64,17 @@
|
|||
|
||||
const currentProjectId = computed(() => appStore.currentProjectId);
|
||||
|
||||
const props = defineProps<{
|
||||
visible: boolean;
|
||||
caseId: string;
|
||||
drawerLoading: boolean;
|
||||
}>();
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
visible: boolean;
|
||||
caseId: string;
|
||||
drawerLoading: boolean;
|
||||
showSelectorAll: boolean;
|
||||
}>(),
|
||||
{
|
||||
showSelectorAll: true,
|
||||
}
|
||||
);
|
||||
|
||||
const emit = defineEmits(['update:visible', 'save']);
|
||||
const columns: MsTableColumn = [
|
||||
|
@ -146,6 +152,7 @@
|
|||
columns,
|
||||
tableKey: TableKeyEnum.CASE_MANAGEMENT_TAB_DEFECT,
|
||||
selectable: true,
|
||||
showSelectorAll: props.showSelectorAll,
|
||||
heightUsed: 340,
|
||||
enableDrag: false,
|
||||
},
|
||||
|
|
|
@ -32,20 +32,13 @@ export async function enterProject(projectId: string, organizationId?: string) {
|
|||
}
|
||||
await switchUserOrg(organizationId, userStore.id || '');
|
||||
}
|
||||
await userStore.isLogin(true);
|
||||
await userStore.isLogin();
|
||||
// 切换项目
|
||||
await switchProject({
|
||||
projectId,
|
||||
userId: userStore.id || '',
|
||||
});
|
||||
appStore.setCurrentProjectId(projectId);
|
||||
if (!appStore.currentProjectId || appStore.currentProjectId === 'no_such_project') {
|
||||
// 没有项目权限(组织没有项目, 或项目全被禁用),则重定向到无项目权限页面
|
||||
router.push({
|
||||
name: NO_PROJECT_ROUTE_NAME,
|
||||
});
|
||||
return;
|
||||
}
|
||||
await userStore.checkIsLogin();
|
||||
// 跳转到项目页面
|
||||
router.replace({
|
||||
name: ProjectManagementRouteEnum.PROJECT_MANAGEMENT_PERMISSION,
|
||||
|
|
|
@ -158,16 +158,6 @@
|
|||
width: 200,
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: 'caseManagement.featureCase.defectSource',
|
||||
slotName: 'source',
|
||||
dataIndex: 'source',
|
||||
showInTable: true,
|
||||
showTooltip: true,
|
||||
width: 100,
|
||||
ellipsis: true,
|
||||
showDrag: false,
|
||||
},
|
||||
{
|
||||
title: 'caseManagement.featureCase.tableColumnActions',
|
||||
slotName: 'operation',
|
||||
|
|
|
@ -190,6 +190,7 @@
|
|||
v-model:visible="showLinkDrawer"
|
||||
:case-id="activeCaseId"
|
||||
:drawer-loading="drawerLoading"
|
||||
:show-selector-all="false"
|
||||
@save="associateSuccessHandler"
|
||||
/>
|
||||
<AddDefectDrawer
|
||||
|
|
Loading…
Reference in New Issue