Commit a7c69406 by zhangquan

车主商品添加带货视频

1 parent 00736a2f
......@@ -120,6 +120,8 @@ export default {
method: '2',
goodsType: '2',
expressFee: '',
commerceVideo: '',
commerceDescribe: '',
smartcarlifeInfoId: '',
goodsName: '',
goodsImage: '',
......@@ -223,6 +225,26 @@ export default {
isDisabled: false
},
{
label: '带货视频',
name: 'commerceVideo',
type: 'select',
optionList:[],
optionId: 'id',
optionLabel: 'fileName',
isDisabled: false,
isClear: true
},
{
label: '带货描述',
name: 'commerceDescribe',
type: 'input',
inputType: 'textarea',
isDisabled: false,
maxlength: 40,
isHide: false,
showLimit: true
},
{
label: '销售门店',
name: 'saleStoreSlot',
addHtml: 'saleStoreSlot',
......@@ -252,6 +274,7 @@ export default {
type: 'input',
inputType: 'textarea',
isDisabled: false,
showLimit: true,
maxlength: 200
},
],
......@@ -264,8 +287,18 @@ export default {
}
}
},
watch: {
'formObj.commerceVideo':{
handler(nVal, oVal){
const _target = this.formData.find(item => item.name == 'commerceDescribe')
_target.isHide = !nVal
},
deep: true
}
},
created(){
this.getCategory()
this.getVideoList()
const urlParam = this.$route.params
this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id))
const { id, type } = this.routeInfo
......@@ -299,6 +332,14 @@ export default {
}
})
},
getVideoList(){
this.$apis.case.getVideoListApi({pageSize: 10000, currentPage: 1}).then(res => {
if(res?.list?.length) {
const _target = this.formData.find(item => item.name == 'commerceVideo')
_target.optionList = res.list
}
})
},
validateField(field){
if(Array.isArray(field)){
field.forEach(item => {
......@@ -394,6 +435,7 @@ export default {
this.formObj[key] = res[key]
}
}
this.formObj.commerceVideo = this.formObj.commerceVideo ? +this.formObj.commerceVideo : ''
this.curCategoryInfo = {
categoryName: res.associationClassifySecondName,
id: res.associationClassifySecondId
......@@ -455,9 +497,9 @@ export default {
.expressFee-class{
width: 432px;
}
/deep/ #introduction{
.el-textarea__inner{
width: 580px;
/deep/ #introduction, /deep/ #commerceDescribe{
.el-textarea__inner, .el-textarea{
width: 580px!important;
height: 80px;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!