企业管理

This commit is contained in:
zhaoxiao
2021-08-27 10:32:50 +08:00
parent e1be3c5704
commit e9e795a8b7
4 changed files with 55 additions and 45 deletions
@@ -220,13 +220,11 @@ export default {
values.companyId = values.company.id
values.gender = Number(values.gender)
let httpurl = ''
let method = ''
let method = 'post'
if (!this.model.id) {
httpurl += this.url.add
method = 'post'
} else {
httpurl += this.url.edit
method = 'put'
}
const formData = Object.assign(this.model, values)
console.log('表单提交数据', formData)