|
@@ -147,8 +147,16 @@
|
|
|
<el-select v-model="scope.row.main" value-key="categoryId" @change="(e)=>{
|
|
|
scope.row.mainId = e.categoryId
|
|
|
scope.row.mainName = e.name
|
|
|
- scope.row.smallName = ''
|
|
|
- scope.row.smallId = ''
|
|
|
+ if(e.categoryId == 0){
|
|
|
+ scope.row.small = {categoryId: '0', name: '不限'}
|
|
|
+ scope.row.smallName = '不限'
|
|
|
+ scope.row.smallId = '0'
|
|
|
+ }else{
|
|
|
+ scope.row.small = null
|
|
|
+ scope.row.smallName = ''
|
|
|
+ scope.row.smallId = ''
|
|
|
+ }
|
|
|
+
|
|
|
scope.row.smallList = e.children?e.children:[]
|
|
|
}" :disabled="isEdit != scope.$index || formType == 2" placeholder="请选择" style="width: 100%;">
|
|
|
<el-option
|
|
@@ -494,12 +502,12 @@
|
|
|
},
|
|
|
getBrandList(){
|
|
|
getBrand().then(res => {
|
|
|
- this.brandList = res.data
|
|
|
+ this.brandList = [...[{id: '0',brandName: '不限'}],...res.data]
|
|
|
})
|
|
|
},
|
|
|
getMainList(){
|
|
|
getMainList({type: 2}).then(res => {
|
|
|
- this.mainList = res.data
|
|
|
+ this.mainList = [...[{categoryId: '0',name: '不限',children: [{categoryId: '0',name: '不限'}]}],...res.data]
|
|
|
})
|
|
|
},
|
|
|
getinitlbslist() {
|