添加分类id
parent
c71da0b437
commit
b61f5e47df
|
@ -441,7 +441,7 @@ export default {
|
|||
editor,
|
||||
},
|
||||
watch: {
|
||||
selectGoodsType: { // 选择商品类型
|
||||
selectGoodsType: {
|
||||
handler(val) {
|
||||
if (val && this.baseInfoForm.goodsType) {
|
||||
this.goodsTypeWay.forEach((item) => {
|
||||
|
@ -836,6 +836,7 @@ export default {
|
|||
* @value 参数选项值
|
||||
*/
|
||||
selectParams(paramsGroup, groupIndex, params, paramsIndex, value) {
|
||||
console.log(params.id);
|
||||
if (!this.baseInfoForm.goodsParamsDTOList[groupIndex]) {
|
||||
this.baseInfoForm.goodsParamsDTOList[groupIndex] = {
|
||||
groupId:'',
|
||||
|
@ -850,10 +851,11 @@ export default {
|
|||
//参数详细为空,则赋予
|
||||
if (!this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]) {
|
||||
this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]={
|
||||
paramName:'',
|
||||
paramValue:'',
|
||||
isIndex:'',
|
||||
required:'',
|
||||
paramName: '',
|
||||
paramValue: '',
|
||||
isIndex: '',
|
||||
required: '',
|
||||
paramId: ''
|
||||
}
|
||||
}
|
||||
this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]={
|
||||
|
@ -861,7 +863,9 @@ export default {
|
|||
paramValue: value,
|
||||
isIndex: params.isIndex,
|
||||
required: params.required,
|
||||
paramId: params.id
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
// 编辑sku图片
|
||||
|
|
Loading…
Reference in New Issue