fix(接口测试): 修复场景回收站模块树统计问题
--bug=1025701 --user=赵勇 【接口测试】场景列表和回收站切换-模块树切换错误 https://www.tapd.cn/55049933/s/1365759 Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
parent
04bb9fbfe5
commit
42c7246bc8
|
@ -618,6 +618,7 @@ export default {
|
|||
if (targetName === 'trash') {
|
||||
this.selectNodeIds = [];
|
||||
this.trashEnable = false;
|
||||
this.$refs.nodeTree.list(this.projectId, targetName);
|
||||
} else {
|
||||
let message = '';
|
||||
this.tabs.forEach((tab) => {
|
||||
|
|
|
@ -195,12 +195,12 @@ export default {
|
|||
filter() {
|
||||
this.$refs.nodeTree.filter(this.condition.filterText);
|
||||
},
|
||||
list(projectId) {
|
||||
list(projectId, targetName) {
|
||||
if (this.isRelevanceModel) {
|
||||
this.result = getModuleByRelevanceProjectId(this.relevanceProjectId).then((response) => {
|
||||
this.setData(response);
|
||||
});
|
||||
} else if (this.isTrashData) {
|
||||
} else if (this.isTrashData && !targetName) {
|
||||
this.result = postModuleByTrash(projectId ? projectId : this.projectId, this.param).then((response) => {
|
||||
this.setData(response);
|
||||
});
|
||||
|
@ -288,7 +288,7 @@ export default {
|
|||
} else {
|
||||
this.$emit('nodeSelectEvent', node, nodeIds, pNodes);
|
||||
}
|
||||
// this.nohupReloadTree(node.data.id);
|
||||
// this.nohupReloadTree(node.data.id);
|
||||
},
|
||||
//后台更新节点数据
|
||||
nohupReloadTree(selectNodeId) {
|
||||
|
@ -351,6 +351,10 @@ export default {
|
|||
},
|
||||
enableTrash() {
|
||||
this.condition.trashEnable = true;
|
||||
this.param.trashEnable = true;
|
||||
this.result = postModuleByTrash(this.projectId, this.param).then((response) => {
|
||||
this.setData(response);
|
||||
});
|
||||
},
|
||||
removeModuleId(nodeIds) {
|
||||
if (localStorage.getItem('scenarioModule') && localStorage.getItem('scenarioModule') === nodeIds[0]) {
|
||||
|
|
Loading…
Reference in New Issue