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 currentProjectId = computed(() => appStore.currentProjectId);
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = withDefaults(
|
||||||
visible: boolean;
|
defineProps<{
|
||||||
caseId: string;
|
visible: boolean;
|
||||||
drawerLoading: boolean;
|
caseId: string;
|
||||||
}>();
|
drawerLoading: boolean;
|
||||||
|
showSelectorAll: boolean;
|
||||||
|
}>(),
|
||||||
|
{
|
||||||
|
showSelectorAll: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const emit = defineEmits(['update:visible', 'save']);
|
const emit = defineEmits(['update:visible', 'save']);
|
||||||
const columns: MsTableColumn = [
|
const columns: MsTableColumn = [
|
||||||
|
@ -146,6 +152,7 @@
|
||||||
columns,
|
columns,
|
||||||
tableKey: TableKeyEnum.CASE_MANAGEMENT_TAB_DEFECT,
|
tableKey: TableKeyEnum.CASE_MANAGEMENT_TAB_DEFECT,
|
||||||
selectable: true,
|
selectable: true,
|
||||||
|
showSelectorAll: props.showSelectorAll,
|
||||||
heightUsed: 340,
|
heightUsed: 340,
|
||||||
enableDrag: false,
|
enableDrag: false,
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,20 +32,13 @@ export async function enterProject(projectId: string, organizationId?: string) {
|
||||||
}
|
}
|
||||||
await switchUserOrg(organizationId, userStore.id || '');
|
await switchUserOrg(organizationId, userStore.id || '');
|
||||||
}
|
}
|
||||||
await userStore.isLogin(true);
|
await userStore.isLogin();
|
||||||
// 切换项目
|
// 切换项目
|
||||||
await switchProject({
|
await switchProject({
|
||||||
projectId,
|
projectId,
|
||||||
userId: userStore.id || '',
|
userId: userStore.id || '',
|
||||||
});
|
});
|
||||||
appStore.setCurrentProjectId(projectId);
|
await userStore.checkIsLogin();
|
||||||
if (!appStore.currentProjectId || appStore.currentProjectId === 'no_such_project') {
|
|
||||||
// 没有项目权限(组织没有项目, 或项目全被禁用),则重定向到无项目权限页面
|
|
||||||
router.push({
|
|
||||||
name: NO_PROJECT_ROUTE_NAME,
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// 跳转到项目页面
|
// 跳转到项目页面
|
||||||
router.replace({
|
router.replace({
|
||||||
name: ProjectManagementRouteEnum.PROJECT_MANAGEMENT_PERMISSION,
|
name: ProjectManagementRouteEnum.PROJECT_MANAGEMENT_PERMISSION,
|
||||||
|
|
|
@ -158,16 +158,6 @@
|
||||||
width: 200,
|
width: 200,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: 'caseManagement.featureCase.defectSource',
|
|
||||||
slotName: 'source',
|
|
||||||
dataIndex: 'source',
|
|
||||||
showInTable: true,
|
|
||||||
showTooltip: true,
|
|
||||||
width: 100,
|
|
||||||
ellipsis: true,
|
|
||||||
showDrag: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: 'caseManagement.featureCase.tableColumnActions',
|
title: 'caseManagement.featureCase.tableColumnActions',
|
||||||
slotName: 'operation',
|
slotName: 'operation',
|
||||||
|
|
|
@ -190,6 +190,7 @@
|
||||||
v-model:visible="showLinkDrawer"
|
v-model:visible="showLinkDrawer"
|
||||||
:case-id="activeCaseId"
|
:case-id="activeCaseId"
|
||||||
:drawer-loading="drawerLoading"
|
:drawer-loading="drawerLoading"
|
||||||
|
:show-selector-all="false"
|
||||||
@save="associateSuccessHandler"
|
@save="associateSuccessHandler"
|
||||||
/>
|
/>
|
||||||
<AddDefectDrawer
|
<AddDefectDrawer
|
||||||
|
|
Loading…
Reference in New Issue