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) => {