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