fix(测试跟踪): 评审&&计划刷新列表时高级搜索不展示

--bug=1033845 --user=宋昌昌 【测试跟踪】用例评审/测试计划模块树,增加/移动模块,会导致列表的高级搜索不显示 https://www.tapd.cn/55049933/s/1447299
This commit is contained in:
song-cc-rock 2023-12-22 10:54:40 +08:00 committed by 刘瑞斌
parent ee922d7fd9
commit 091f9e855c
2 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,7 @@
</template> </template>
<script> <script>
import {TEST_PLAN_CONFIGS} from "metersphere-frontend/src/components/search/search-components";
import TestPlanNodeTree from "@/business/module/TestPlanNodeTree.vue"; import TestPlanNodeTree from "@/business/module/TestPlanNodeTree.vue";
import TestPlanList from './components/TestPlanList'; import TestPlanList from './components/TestPlanList';
import TestPlanEdit from './components/TestPlanEdit'; import TestPlanEdit from './components/TestPlanEdit';
@ -84,7 +85,7 @@ export default {
this.$refs.testPlanEditDialog.openTestPlanEditDialog(data, this.currentNode); this.$refs.testPlanEditDialog.openTestPlanEditDialog(data, this.currentNode);
}, },
refreshTestPlanList(nodeIds) { refreshTestPlanList(nodeIds) {
this.$refs.testPlanList.condition = {}; this.$refs.testPlanList.condition = {components: TEST_PLAN_CONFIGS};
this.$refs.testPlanList.initTableData(nodeIds ? nodeIds : this.currentSelectNodes); this.$refs.testPlanList.initTableData(nodeIds ? nodeIds : this.currentSelectNodes);
}, },
refreshTreeByCondition() { refreshTreeByCondition() {

View File

@ -22,6 +22,7 @@
</template> </template>
<script> <script>
import {TEST_REVIEW} from "metersphere-frontend/src/components/search/search-components";
import TestCaseReviewNodeTree from "@/business/module/TestCaseReviewNodeTree"; import TestCaseReviewNodeTree from "@/business/module/TestCaseReviewNodeTree";
import TestCaseReviewList from "./components/TestCaseReviewList"; import TestCaseReviewList from "./components/TestCaseReviewList";
import TestCaseReviewEdit from "./components/TestCaseReviewEdit"; import TestCaseReviewEdit from "./components/TestCaseReviewEdit";
@ -88,7 +89,7 @@ export default {
this.$refs.caseReviewEditDialog.openCaseReviewEditDialog(data, this.currentNode); this.$refs.caseReviewEditDialog.openCaseReviewEditDialog(data, this.currentNode);
}, },
refreshCaseReviewList(nodeIds) { refreshCaseReviewList(nodeIds) {
this.$refs.caseReviewList.condition = {}; this.$refs.caseReviewList.condition = {components: TEST_REVIEW};
this.$refs.caseReviewList.initTableData(nodeIds ? nodeIds : this.currentSelectNodes); this.$refs.caseReviewList.initTableData(nodeIds ? nodeIds : this.currentSelectNodes);
}, },
refreshTreeByCondition() { refreshTreeByCondition() {