fix(测试跟踪): 评审跨项目关联用例模块为空

--bug=1033914 --user=宋昌昌 【用例评审】关联跨项目用例,所属模块显示空 https://www.tapd.cn/55049933/s/1480944
This commit is contained in:
song-cc-rock 2024-03-26 14:43:37 +08:00 committed by 刘瑞斌
parent 1db7501d42
commit 57011d5ce4
2 changed files with 18 additions and 18 deletions

View File

@ -238,25 +238,24 @@ import {hasLicense} from "metersphere-frontend/src/utils/permission";
import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
import {editTestReviewTestCaseOrder, getTestReviewTestCase} from "@/api/testCase";
import {
_handleSelectAll,
buildBatchParam,
deepClone,
getCustomTableWidth,
getLastTableSortField,
getSelectDataCounts,
getTableHeaderWithCustomFields,
initCondition,
toggleAllSelection
_handleSelectAll,
buildBatchParam,
deepClone,
getCustomTableWidth,
getLastTableSortField,
getSelectDataCounts,
getTableHeaderWithCustomFields,
initCondition,
toggleAllSelection
} from "metersphere-frontend/src/utils/tableUtils";
import {
batchDeleteTestReviewCase,
batchEditTestReviewCaseReviewer,
batchEditTestReviewCaseStatus,
deleteTestReviewCase,
getTesReviewById
batchDeleteTestReviewCase,
batchEditTestReviewCaseReviewer,
batchEditTestReviewCaseStatus,
deleteTestReviewCase,
getTesReviewById
} from "@/api/test-review";
import {getTestTemplate} from "@/api/custom-field-template";
import {mapState} from "pinia";
export default {
name: "TestReviewTestCaseList",
@ -397,9 +396,9 @@ export default {
projectId() {
return getCurrentProjectID();
},
...mapState(useStore, {
moduleOptions: 'testCaseReviewCaseModuleOptions'
}),
moduleOptions() {
return useStore().testCaseReviewCaseModuleOptions;
},
nodePathMap() {
let map = new Map();
if (this.moduleOptions) {

View File

@ -7,6 +7,7 @@ export default {
testCasePublicSelectNodeIds: [],
testCaseModuleOptions: [],
testCaseReviewModuleOptions: [],
testCaseReviewCaseModuleOptions: [],
testPlanModuleOptions: [],
testReviewSelectNode: {},
testReviewSelectNodeIds: [],