|
|
@ -129,7 +129,7 @@ export default { |
|
|
|
}, |
|
|
|
[CRUD.HOOK.beforeSubmit]() { |
|
|
|
this.crud.form.isType = this.isType |
|
|
|
if (this.crud.add > CRUD.STATUS.NORMAL) { |
|
|
|
if (this.crud.status.add > CRUD.STATUS.NORMAL) { |
|
|
|
this.crud.form.isSequence = this.crud.data.reduce((prev, cur) => { return { isSequence: Math.max(prev.isSequence, cur.isSequence) } }).isSequence + 1 |
|
|
|
} |
|
|
|
}, |
|
|
|