Unverified 提交 a10d4372 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #234 from dataease/pr@dev@panel

feat:创建分组或者仪表板时,点击取消按钮,不发出目录树的请求
......@@ -293,21 +293,23 @@ export default {
methods: {
closeEditPanelDialog(panelInfo) {
this.editPanel.visible = false
this.defaultTree()
// 默认展开 同时点击 新增的节点
if (panelInfo && panelInfo.panelType === 'self' && this.lastActiveNodeData.id) {
if (this.editPanel.optType === 'rename') {
this.lastActiveNodeData.name = panelInfo.name
return
}
if (!this.lastActiveNodeData.children) {
this.$set(this.lastActiveNodeData, 'children', [])
if (panelInfo) {
this.defaultTree()
// 默认展开 同时点击 新增的节点
if (panelInfo && panelInfo.panelType === 'self' && this.lastActiveNodeData.id) {
if (this.editPanel.optType === 'rename') {
this.lastActiveNodeData.name = panelInfo.name
return
}
if (!this.lastActiveNodeData.children) {
this.$set(this.lastActiveNodeData, 'children', [])
}
this.lastActiveNodeData.children.push(panelInfo)
this.lastActiveNode.expanded = true
this.activeNodeAndClick(panelInfo)
} else {
this.tree(this.groupForm)
}
this.lastActiveNodeData.children.push(panelInfo)
this.lastActiveNode.expanded = true
this.activeNodeAndClick(panelInfo)
} else {
this.tree(this.groupForm)
}
},
showEditPanel(param) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论