diff --git a/test-track/frontend/src/business/review/view/components/TestReviewFunction.vue b/test-track/frontend/src/business/review/view/components/TestReviewFunction.vue index 1f034cb567..0d581861f2 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewFunction.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewFunction.vue @@ -70,6 +70,7 @@ import {openMinderConfirm, saveMinderConfirm} from "@/business/common/minder/min import {getTestReviewCaseNodesByCaseFilter} from "@/api/testCase"; import VersionSelect from "metersphere-frontend/src/components/version/MxVersionSelect"; import {useStore} from "@/store"; +import {buildNodePath} from "metersphere-frontend/src/model/NodeTree"; export default { name: "TestReviewFunction", @@ -138,9 +139,17 @@ export default { getTestReviewCaseNodesByCaseFilter(this.reviewId, condition) .then((response) => { this.treeNodes = response.data; + this.setModuleOptions(); }); } }, + setModuleOptions() { + let moduleOptions = []; + this.treeNodes.forEach(node => { + buildNodePath(node, {path: ''}, moduleOptions); + }); + useStore().testCaseReviewCaseModuleOptions = moduleOptions; + }, refreshTreeByCaseFilter() { this.getNodeTreeByReviewId(this.condition); }, diff --git a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue index b477c4bb09..97316147b9 100644 --- a/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue +++ b/test-track/frontend/src/business/review/view/components/TestReviewTestCaseList.vue @@ -49,15 +49,6 @@ sortable :label="$t('commons.id')"/> - - - + min-width="120px"> + + { + map.set(item.id, item.path); + }); + } + return map; + }, }, created() { this.condition.orders = getLastTableSortField(this.tableHeaderKey);