|
|
|
@ -725,6 +725,7 @@
|
|
|
|
|
}, |
|
|
|
|
/** 整理成formData */ |
|
|
|
|
classifyIntoFormData(allValues) { |
|
|
|
|
console.log('查看子表数据',allValues) |
|
|
|
|
let main = Object.assign(this.model, allValues.formValue) |
|
|
|
|
return { |
|
|
|
|
...main, // 展开 |
|
|
|
@ -790,7 +791,7 @@
|
|
|
|
|
this.btndisabled = true; |
|
|
|
|
httpAction(url,formData,method).then((res)=>{ |
|
|
|
|
if (res.success){ |
|
|
|
|
this.$message.success("保存成功!") |
|
|
|
|
//this.$message.success("保存成功!") |
|
|
|
|
//todo 将表单的数据传给父组件 |
|
|
|
|
this.$emit('afterSubmit',formData) |
|
|
|
|
}else { |
|
|
|
|