| | |
| | | return { |
| | | title: '', |
| | | width: 500, |
| | | visible: false, |
| | | visible: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | handleProductAdd() { |
| | | this.visible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.realForm.add() |
| | | if (this.$refs.realForm) this.$refs.realForm.add() |
| | | }) |
| | | }, |
| | | |
| | |
| | | handleProductEdit() { |
| | | this.visible = true |
| | | 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 }) |
| | | } |
| | | }) |
| | | }, |
| | | |