|
|
@ -262,11 +262,11 @@ export default { |
|
|
this.load.edit=false |
|
|
this.load.edit=false |
|
|
var tips=res.data.tips; |
|
|
var tips=res.data.tips; |
|
|
if(tips.isOk){ |
|
|
if(tips.isOk){ |
|
|
this.$mdp.removeFormFieldsCache(formDef.id) |
|
|
|
|
|
this.currOpType='edit' |
|
|
|
|
|
var data=res.data.data |
|
|
var data=res.data.data |
|
|
Object.assign(this.editForm,data.formDef) |
|
|
Object.assign(this.editForm,data.formDef) |
|
|
this.formFields=data.formFields |
|
|
this.formFields=data.formFields |
|
|
|
|
|
this.$mdp.removeFormFieldsCache(this.editForm.id) |
|
|
|
|
|
this.currOpType='edit' |
|
|
this.afterSubmit(res,tips.isOk,this.currOpType); |
|
|
this.afterSubmit(res,tips.isOk,this.currOpType); |
|
|
} |
|
|
} |
|
|
this.$notify({ position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' }); |
|
|
this.$notify({ position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' }); |
|
|
@ -315,11 +315,12 @@ export default { |
|
|
this.load.edit=false |
|
|
this.load.edit=false |
|
|
var tips=res.data.tips; |
|
|
var tips=res.data.tips; |
|
|
if(tips.isOk){ |
|
|
if(tips.isOk){ |
|
|
this.$mdp.removeFormFieldsCache(formDef.id) |
|
|
|
|
|
this.currOpType='edit' |
|
|
|
|
|
|
|
|
|
|
|
var data=res.data.data |
|
|
var data=res.data.data |
|
|
Object.assign(this.editForm,data.formDef) |
|
|
Object.assign(this.editForm,data.formDef) |
|
|
this.formFields=data.formFields |
|
|
this.formFields=data.formFields |
|
|
|
|
|
this.$mdp.removeFormFieldsCache(this.editForm.id) |
|
|
|
|
|
this.currOpType='edit' |
|
|
this.afterSubmit(res,tips.isOk,this.currOpType); |
|
|
this.afterSubmit(res,tips.isOk,this.currOpType); |
|
|
} |
|
|
} |
|
|
this.$notify({ position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' }); |
|
|
this.$notify({ position:'bottom-left',showClose:true, message: tips.msg, type: tips.isOk?'success':'error' }); |
|
|
|