提交 45ddf23e 编写于 作者: W WeiFeng-mindinsight

UI fix bug that loading massage disappear in large graph

上级 db9d081d
...@@ -895,13 +895,19 @@ export default { ...@@ -895,13 +895,19 @@ export default {
* @param {String} name Name of the current node (also the ID of the node) * @param {String} name Name of the current node (also the ID of the node)
*/ */
dealDoubleClick(name) { dealDoubleClick(name) {
name = name.replace('_unfold', ''); this.loading.info = this.$t('graph.queryLoading');
if (this.allGraphData[name].isUnfold) { this.loading.show = true;
this.selectedNode.name = name; this.$nextTick(() => {
this.deleteNamespace(name); setTimeout(() => {
} else { name = name.replace('_unfold', '');
this.queryGraphData(name); if (this.allGraphData[name].isUnfold) {
} this.selectedNode.name = name;
this.deleteNamespace(name);
} else {
this.queryGraphData(name);
}
}, 200);
});
}, },
/** /**
* Default method of the graph rendering adjustment. Set the node format. * Default method of the graph rendering adjustment. Set the node format.
...@@ -2519,7 +2525,12 @@ export default { ...@@ -2519,7 +2525,12 @@ export default {
this.loading.info = this.$t('graph.searchLoading'); this.loading.info = this.$t('graph.searchLoading');
this.loading.show = true; this.loading.show = true;
this.selectedNode.name = option.value; this.selectedNode.name = option.value;
this.layoutNamescope(parentId, true);
this.$nextTick(() => {
setTimeout(() => {
this.layoutNamescope(parentId, true);
}, 500);
});
} }
} }
} else { } else {
...@@ -2622,7 +2633,11 @@ export default { ...@@ -2622,7 +2633,11 @@ export default {
} else { } else {
this.loading.info = this.$t('graph.searchLoading'); this.loading.info = this.$t('graph.searchLoading');
this.loading.show = true; this.loading.show = true;
this.layoutNamescope(data.scope_name, true); this.$nextTick(() => {
setTimeout(() => {
this.layoutNamescope(data.scope_name, true);
}, 200);
});
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册