fix(接口测试): 修复场景切换回收站,模块树未更新的缺陷
--bug=1027569 --user=王孝刚 【接口测试】场景回收站切到到场景列表-模块树未更新 https://www.tapd.cn/55049933/s/1393666
This commit is contained in:
parent
2f7d2bb2fe
commit
276c3bec58
|
@ -320,6 +320,9 @@ export default {
|
|||
}
|
||||
this.$refs.apiScenarioList.search(this.projectId);
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.nodeTree.list()
|
||||
})
|
||||
} else if (tab.name === 'trash') {
|
||||
this.trashEnable = true;
|
||||
this.$refs.apiTrashScenarioList.search();
|
||||
|
@ -627,6 +630,9 @@ export default {
|
|||
if (targetName === 'trash') {
|
||||
this.selectNodeIds = [];
|
||||
this.trashEnable = false;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.nodeTree.list()
|
||||
})
|
||||
} else {
|
||||
let message = '';
|
||||
this.tabs.forEach((tab) => {
|
||||
|
@ -711,7 +717,9 @@ export default {
|
|||
},
|
||||
refreshTree() {
|
||||
if (this.$refs.nodeTree) {
|
||||
this.$refs.nodeTree.list();
|
||||
this.$nextTick(() => {
|
||||
this.$refs.nodeTree.list()
|
||||
})
|
||||
}
|
||||
},
|
||||
refreshAll() {
|
||||
|
|
|
@ -159,9 +159,6 @@ export default {
|
|||
relevanceProjectId() {
|
||||
this.list();
|
||||
},
|
||||
isTrashData() {
|
||||
this.list();
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.$EventBus.$on('scenarioConditionBus', (param) => {
|
||||
|
@ -191,7 +188,6 @@ export default {
|
|||
this.$refs.nodeTree.filter(this.condition.filterText);
|
||||
},
|
||||
list(projectId) {
|
||||
|
||||
if (this.isRelevanceModel) {
|
||||
this.result = getModuleByRelevanceProjectId(this.relevanceProjectId).then((response) => {
|
||||
this.setData(response);
|
||||
|
|
Loading…
Reference in New Issue