| | |
| | | :isEdit="canEdit" |
| | | :formData="form" |
| | | :initValue="paramVOS.initvalue" |
| | | :uploadattachment="paramVOS.uploadattachment || false" |
| | | @getFormData="getFormData"> |
| | | </basic-form> |
| | | </div> |
| | |
| | | dataForm(this.params, this.paramVOS.getdataurl, this.paramVOS.getdatamethod).then(res => { |
| | | this.form = res.data.obj.data; |
| | | this.loading = false; |
| | | this.$emit("setDataStore", { |
| | | area: this.areasName, |
| | | type: this.componentVO.uiComponentType, |
| | | btmType: this.currentDefineVO.btmType, |
| | | dataStore: [this.form] |
| | | }); |
| | | this.$emit("setData", { |
| | | area: this.areasName, |
| | | type: this.componentVO.uiComponentType, |
| | | currentDefineVO: this.currentDefineVO, |
| | | data: this.form |
| | | }); |
| | | }).catch(error => { |
| | | this.loading = false; |
| | | }); |
| | |
| | | }, |
| | | getFormData(form) { |
| | | this.form = form; |
| | | this.$emit("setDataStore", { |
| | | area: this.areasName, |
| | | type: this.componentVO.uiComponentType, |
| | | btmType: this.currentDefineVO.btmType, |
| | | dataStore: [this.form] |
| | | }); |
| | | this.$emit("setData", { |
| | | area: this.areasName, |
| | | type: this.componentVO.uiComponentType, |
| | | currentDefineVO: this.currentDefineVO, |
| | | data: this.form |
| | | }); |
| | | } |
| | | } |
| | | } |