| | |
| | | type:Boolean, |
| | | default:false |
| | | }, |
| | | actionType:{ |
| | | //按钮操作类型 |
| | | default:"" |
| | | }, |
| | | areasName: { |
| | | type: String, |
| | | default: '' |
| | |
| | | if (Object.keys(this.paramVOS).length>0) { |
| | | for (let j in this.paramVOS) { |
| | | if (this.paramVOS[j] && this.paramVOS[j].constructor === Object) continue; |
| | | if (j == 'type' || j == 'context' || j == 'content') continue; |
| | | if (j == 'type' || j == 'context' || j == 'content' || j == "getdataurl" || j == "getdatamethod" || j == "url" || j == "method" || j == "uploadfileurl" || j == "title") continue; |
| | | sourceDataMap['sourceData["' + j + '"]'] = this.paramVOS[j] |
| | | } |
| | | } |
| | |
| | | if (this.paramVOS.initvalue) { |
| | | this.form=this.paramVOS.initvalue; |
| | | } |
| | | if (Object.keys(this.sourceData).length>0 && this.isShow) { |
| | | if (Object.keys(this.sourceData).length>0 && this.isShow && this.actionType!="add") { |
| | | this.loading = true; |
| | | dataForm(this.params).then(res => { |
| | | this.form = res.data.obj; |