收入合同编辑bug

This commit is contained in:
zhaoxiao
2021-09-22 10:38:09 +08:00
parent fa68461fc0
commit f09aa4c060
@@ -506,7 +506,8 @@ export default {
} }
postAction(url, formData).then(res => { postAction(url, formData).then(res => {
if (res.success) { if (res.success) {
this.contractId = res.result.id // 编辑
this.contractId = res.result.id || this.model.id
this.edit(this.contractId) this.edit(this.contractId)
this.$message.success(res.message) this.$message.success(res.message)
// 保存上方表单信息,(应该在表单验证完全正确时置为true) // 保存上方表单信息,(应该在表单验证完全正确时置为true)