From b190a443be13f8236c4cb07e640e7652dea0f117 Mon Sep 17 00:00:00 2001 From: pikachu <1321288662@qq.com> Date: Thu, 20 May 2021 09:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E4=B8=AD?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=BF=85=E5=A1=AB=E5=92=8C=E7=B4=A2=E5=BC=95?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/goods/goods-manage/parameter.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/manager/src/views/goods/goods-manage/parameter.vue b/manager/src/views/goods/goods-manage/parameter.vue index f698fd26..5291af29 100644 --- a/manager/src/views/goods/goods-manage/parameter.vue +++ b/manager/src/views/goods/goods-manage/parameter.vue @@ -76,8 +76,8 @@ - 必填 - 可索引 + 必填 + 可索引 @@ -184,8 +184,8 @@ export default { this.paramForm = { paramName: param.paramName, options: param.options.split(","), - required: param.required, - isIndex: param.isIndex, + required: param.required==1?true:false, + isIndex: param.isIndex==1?true:false, groupId: group.groupId, categoryId: this.categoryId, id: param.id, @@ -233,6 +233,7 @@ export default { } }); } else { + console.warn(this.paramGroupForm) updateParamsGroup(this.paramGroupForm).then((res) => { this.submitLoading = false; if (res.success) { @@ -263,6 +264,7 @@ export default { } }); } else { + console.warn(this.paramForm.isIndex) this.paramForm.isIndex = Number(this.paramForm.isIndex); this.paramForm.required = Number(this.paramForm.required); updateGoodsParams(this.paramForm).then((res) => {