From 9d0d51c297f52f86670fb6f8320ff758d32e52f7 Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Wed, 6 Jul 2022 10:24:35 +0800 Subject: [PATCH] =?UTF-8?q?bug27=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/category/fieldManage/index.vue | 2 +- src/views/components/field/index.vue | 2 +- src/views/storeManage/deviceManage/index.vue | 17 +++++++++++------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/category/fieldManage/index.vue b/src/views/category/fieldManage/index.vue index e2a3825..806e6da 100644 --- a/src/views/category/fieldManage/index.vue +++ b/src/views/category/fieldManage/index.vue @@ -160,7 +160,7 @@ export default { [CRUD.HOOK.beforeSubmit]() { this.crud.form.isType = this.isType if (!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 Math.max(prev.isSequence, cur.isSequence) }) } }, [CRUD.HOOK.beforeToCU]() { diff --git a/src/views/components/field/index.vue b/src/views/components/field/index.vue index 2cc7493..c11ee1b 100644 --- a/src/views/components/field/index.vue +++ b/src/views/components/field/index.vue @@ -130,7 +130,7 @@ export default { [CRUD.HOOK.beforeSubmit]() { this.crud.form.isType = this.isType if (!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 Math.max(prev.isSequence, cur.isSequence) }) } }, handleConfirm() { diff --git a/src/views/storeManage/deviceManage/index.vue b/src/views/storeManage/deviceManage/index.vue index e4d7c95..391fbfd 100644 --- a/src/views/storeManage/deviceManage/index.vue +++ b/src/views/storeManage/deviceManage/index.vue @@ -6,8 +6,8 @@