| | |
| | | this.visible = true |
| | | this.isAddNextLevel = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add({ |
| | | productId: this.currentTreeNodeInfo.rfield, |
| | | componentId: this.currentTreeNodeInfo.id |
| | | }) |
| | | if (this.$refs.realForm) { |
| | | this.$refs.realForm.add({ |
| | | productId: this.currentTreeNodeInfo.entity.productId, |
| | | componentId: this.currentTreeNodeInfo.entity.componentId |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | |
| | | this.visible = true |
| | | this.isAddNextLevel = false |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add({ |
| | | productId: this.currentTreeNodeInfo.rfield, |
| | | componentId: this.currentTreeNodeInfo.parentId |
| | | }) |
| | | if (this.$refs.realForm) { |
| | | this.$refs.realForm.add({ |
| | | productId: this.currentTreeNodeInfo.productId, |
| | | componentId: this.currentTreeNodeInfo.componentId |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | |
| | | this.visible = true |
| | | this.isAddNextLevel = false |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.edit({ id: this.currentTreeNodeInfo.id, ...this.currentTreeNodeInfo.entity }) |
| | | if (this.$refs.realForm) { |
| | | this.$refs.realForm.edit({ id: this.currentTreeNodeInfo.id, ...this.currentTreeNodeInfo.entity }) |
| | | } |
| | | }) |
| | | }, |
| | | |