fix(测试跟踪): 修复功能用例版本筛选左侧树统计错误问题

--bug=1024019 --user=赵勇 [测试跟踪]github#22412功能用例版本筛选后,模块统计数量错误 ( 右侧筛选后左侧模块树没有自动更新,需要手动刷新才更新) https://www.tapd.cn/55049933/s/1346323

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-03-07 18:04:07 +08:00 committed by fit2-zhao
parent 9aa3198c3c
commit 89b1673d5d
2 changed files with 3 additions and 1 deletions

View File

@ -504,7 +504,8 @@ export default {
this.$refs.trashNodeTree.list();
this.hasRefreshDefault = false;
},
refreshTreeByCaseFilter() {
refreshTreeByCaseFilter(currentVersion) {
this.condition.versionId = currentVersion || null;
if (this.publicEnable) {
this.$refs.publicNodeTree.list();
} else if (this.trashEnable) {

View File

@ -826,6 +826,7 @@ export default {
},
changeVersion(currentVersion) {
this.currentVersion = currentVersion || null;
this.$emit('search',currentVersion);
},
toggleAdvanceSearch() {
this.$refs.advanceSearch.toggle();