diff --git a/frontend/src/business/components/track/case/TestCase.vue b/frontend/src/business/components/track/case/TestCase.vue index 3f1ea6c67d..7e01ab0603 100644 --- a/frontend/src/business/components/track/case/TestCase.vue +++ b/frontend/src/business/components/track/case/TestCase.vue @@ -7,6 +7,7 @@ :total='total' :show-operator="true" :public-total="publicTotal" + :case-condition="condition" @refreshTable="refresh" @setTreeNodes="setTreeNodes" @exportTestCase="exportTestCase" @@ -671,7 +672,7 @@ export default { if (this.publicEnable) { this.$refs.publicNodeTree.list(this.condition); } else if (!this.trashEnable) { - this.$refs.nodeTree.list(this.condition); + this.$refs.nodeTree.list(); } }, setTable(data) { diff --git a/frontend/src/business/components/track/module/TestCaseNodeTree.vue b/frontend/src/business/components/track/module/TestCaseNodeTree.vue index 8b54022e90..0da2dde429 100644 --- a/frontend/src/business/components/track/module/TestCaseNodeTree.vue +++ b/frontend/src/business/components/track/module/TestCaseNodeTree.vue @@ -126,6 +126,7 @@ export default { showOperator: Boolean, total: Number, publicTotal: Number, + caseCondition: Object }, watch: { treeNodes() { @@ -181,9 +182,9 @@ export default { this.$emit('enablePublic', this.condition.publicEnable); this.$emit('toPublic', 'public'); }, - list(caseCondition) { + list() { if (this.projectId) { - this.result = getTestCaseNodesByCaseFilter(this.projectId, caseCondition, data => { + this.result = getTestCaseNodesByCaseFilter(this.projectId, this.caseCondition, data => { this.treeNodes = data; this.treeNodes.forEach(node => { node.name = node.name === '未规划用例' ? this.$t('api_test.unplanned_case') : node.name