|
@@ -71,6 +71,7 @@ export default {
|
|
|
if (this.curObj.id) newForm.id = this.curObj.id
|
|
|
let apiStr = 'admactivityadd'
|
|
|
if (newForm.id) apiStr = 'admactivityedit'
|
|
|
+ if (!newForm.max_enroll) newForm.max_enroll = 0
|
|
|
this.$api.other[apiStr](newForm).then(data => {
|
|
|
this.$msgs(newForm.id ? '编辑成功' : '新增成功')
|
|
|
this.$emit('close', newForm)
|