提交 39d5ea5a authored 作者: wangjiahao's avatar wangjiahao

feat:创建分组或者仪表板时,点击取消按钮,不发出目录树的请求

上级 b11db933
...@@ -293,6 +293,7 @@ export default { ...@@ -293,6 +293,7 @@ export default {
methods: { methods: {
closeEditPanelDialog(panelInfo) { closeEditPanelDialog(panelInfo) {
this.editPanel.visible = false this.editPanel.visible = false
if (panelInfo) {
this.defaultTree() this.defaultTree()
// 默认展开 同时点击 新增的节点 // 默认展开 同时点击 新增的节点
if (panelInfo && panelInfo.panelType === 'self' && this.lastActiveNodeData.id) { if (panelInfo && panelInfo.panelType === 'self' && this.lastActiveNodeData.id) {
...@@ -309,6 +310,7 @@ export default { ...@@ -309,6 +310,7 @@ export default {
} else { } else {
this.tree(this.groupForm) this.tree(this.groupForm)
} }
}
}, },
showEditPanel(param) { showEditPanel(param) {
this.lastActiveNode = param.node this.lastActiveNode = param.node
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论