fix(测试跟踪): 功能用例列表部分操作模块数统计不是筛选后的结果
--bug=1015069 --user=陈建星 【测试跟踪】功能用例-搜索用例后操作用例保存或者移动模块后-右侧还是搜索结果但是左侧模块树显示所有的用例数 https://www.tapd.cn/55049933/s/1205224
This commit is contained in:
parent
bd8c197cf8
commit
25c60bb918
|
@ -7,6 +7,7 @@
|
||||||
:total='total'
|
:total='total'
|
||||||
:show-operator="true"
|
:show-operator="true"
|
||||||
:public-total="publicTotal"
|
:public-total="publicTotal"
|
||||||
|
:case-condition="condition"
|
||||||
@refreshTable="refresh"
|
@refreshTable="refresh"
|
||||||
@setTreeNodes="setTreeNodes"
|
@setTreeNodes="setTreeNodes"
|
||||||
@exportTestCase="exportTestCase"
|
@exportTestCase="exportTestCase"
|
||||||
|
@ -671,7 +672,7 @@ export default {
|
||||||
if (this.publicEnable) {
|
if (this.publicEnable) {
|
||||||
this.$refs.publicNodeTree.list(this.condition);
|
this.$refs.publicNodeTree.list(this.condition);
|
||||||
} else if (!this.trashEnable) {
|
} else if (!this.trashEnable) {
|
||||||
this.$refs.nodeTree.list(this.condition);
|
this.$refs.nodeTree.list();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
setTable(data) {
|
setTable(data) {
|
||||||
|
|
|
@ -126,6 +126,7 @@ export default {
|
||||||
showOperator: Boolean,
|
showOperator: Boolean,
|
||||||
total: Number,
|
total: Number,
|
||||||
publicTotal: Number,
|
publicTotal: Number,
|
||||||
|
caseCondition: Object
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
treeNodes() {
|
treeNodes() {
|
||||||
|
@ -181,9 +182,9 @@ export default {
|
||||||
this.$emit('enablePublic', this.condition.publicEnable);
|
this.$emit('enablePublic', this.condition.publicEnable);
|
||||||
this.$emit('toPublic', 'public');
|
this.$emit('toPublic', 'public');
|
||||||
},
|
},
|
||||||
list(caseCondition) {
|
list() {
|
||||||
if (this.projectId) {
|
if (this.projectId) {
|
||||||
this.result = getTestCaseNodesByCaseFilter(this.projectId, caseCondition, data => {
|
this.result = getTestCaseNodesByCaseFilter(this.projectId, this.caseCondition, data => {
|
||||||
this.treeNodes = data;
|
this.treeNodes = data;
|
||||||
this.treeNodes.forEach(node => {
|
this.treeNodes.forEach(node => {
|
||||||
node.name = node.name === '未规划用例' ? this.$t('api_test.unplanned_case') : node.name
|
node.name = node.name === '未规划用例' ? this.$t('api_test.unplanned_case') : node.name
|
||||||
|
|
Loading…
Reference in New Issue