| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="商品主图" prop="imgurl"> |
| | | <div style="display: flex; align-items: center;justify-content: center; height: 100%; width: 100%"> |
| | | <div style="display: flex; align-items: center; height: 100%; width: 100%"> |
| | | <UploadAvatarImage |
| | | :file="{ 'imgurlfull': form.imgurlfull, 'imgurl': form.imgurl}" |
| | | :uploadData="{folder:'goods'}" |
| | |
| | | <!-- |
| | | <span style="line-height: 32px;font-size: 14px;"><b style="color: #F56C6C;margin-right: 4px;font-size: 11px;">*</b>{{'【'+(item.name)+'】系列:'}}</span> |
| | | --> |
| | | <el-form-item v-for="(item,index) in applyBrands" v-if="item.show" :key="'warning_'+index" style="display: block;width: 100%;" :label="'【'+(item.name)+'】系列'" > |
| | | <el-form-item v-for="(item,index) in applyBrands.filter(item=>item.show)" :key="'warning_'+index" style="display: block;width: 100%;" :label="'【'+(item.name)+'】系列'" > |
| | | <el-select v-model="item.childIdList" filterable multiple style=" width: 500px;" clearable placeholder="请选择品牌系列" > |
| | | <el-option v-for="item in item.childList" :label="item.name" :value="item.id" :key="'brand_'+index+item.id"> </el-option> |
| | | </el-select> |
| | |
| | | this.applyBrands = res |
| | | this.applyBrands.forEach(item => { |
| | | item.show = this.isSeletedBrand(item) |
| | | if(this.form.id && this.form.brandList && this.form.brandList.length){ |
| | | this.form.brandList.forEach(item1 => { |
| | | if (item1.id === item.id) { |
| | | item.childIdList = item1.childIdList |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }) |
| | | }, |