|
|
|
@ -563,17 +563,17 @@
|
|
|
|
|
} |
|
|
|
|
console.log('格式化后的数据', formData) |
|
|
|
|
this.btndisabled = true |
|
|
|
|
// httpAction(url, formData, method).then((res) => { |
|
|
|
|
// if (res.success) { |
|
|
|
|
// //this.$message.success('保存成功!') |
|
|
|
|
// //todo 将表单的数据传给父组件 |
|
|
|
|
// this.$emit('afterSubmit', formData) |
|
|
|
|
// } else { |
|
|
|
|
// this.$message.error(res.message) |
|
|
|
|
// } |
|
|
|
|
// }).finally(() => { |
|
|
|
|
// this.btndisabled = false |
|
|
|
|
// }) |
|
|
|
|
httpAction(url, formData, method).then((res) => { |
|
|
|
|
if (res.success) { |
|
|
|
|
//this.$message.success('保存成功!') |
|
|
|
|
//todo 将表单的数据传给父组件 |
|
|
|
|
this.$emit('afterSubmit', formData) |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(res.message) |
|
|
|
|
} |
|
|
|
|
}).finally(() => { |
|
|
|
|
this.btndisabled = false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|