|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div style="margin-top: 50px">
|
|
|
<el-form :model="value" :rules="rules" ref="productInfoForm" label-width="120px" style="width: 600px" size="small">
|
|
|
- <el-form-item label="商品分类:" prop="productCategoryId">
|
|
|
+ <el-form-item label="商品分类:" prop="productCategoryId,productBigCategoryId">
|
|
|
<el-cascader
|
|
|
v-model="selectProductCateValue"
|
|
|
:options="productCateOptions">
|
|
@@ -118,9 +118,13 @@
|
|
|
if (newValue != null && newValue.length === 2) {
|
|
|
this.value.productCategoryId = newValue[1];
|
|
|
this.value.productCategoryName= this.getCateNameById(this.value.productCategoryId);
|
|
|
+ // 大类ID
|
|
|
+ this.value.productBigCategoryId = newValue[0];
|
|
|
} else {
|
|
|
this.value.productCategoryId = null;
|
|
|
this.value.productCategoryName=null;
|
|
|
+
|
|
|
+ this.value.productBigCategoryId = null;
|
|
|
}
|
|
|
}
|
|
|
},
|