|
|
@ -65,7 +65,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="产品轮播图"> |
|
|
|
<el-form-item label="产品轮播图"> |
|
|
|
<MaterialList v-model="formValidate.sliderImageArr" style="width: 500px" type="image" :num="4" :width="150" :height="150" /> |
|
|
|
<MaterialList v-model="formValidate.slider_image" style="width: 500px" type="image" :num="4" :width="150" :height="150" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24"> |
|
|
@ -252,10 +252,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
formValidate: { |
|
|
|
formValidate: { |
|
|
|
|
|
|
|
slider_image: [], |
|
|
|
otPrice: '', |
|
|
|
otPrice: '', |
|
|
|
giveIntegral: '', |
|
|
|
giveIntegral: '', |
|
|
|
status: '', |
|
|
|
status: '', |
|
|
|
num: '', |
|
|
|
num: 1, |
|
|
|
id: 0, |
|
|
|
id: 0, |
|
|
|
timeId: null, |
|
|
|
timeId: null, |
|
|
|
seckillId: 0, |
|
|
|
seckillId: 0, |
|
|
@ -270,7 +271,7 @@ export default { |
|
|
|
people: '', |
|
|
|
people: '', |
|
|
|
info: '', |
|
|
|
info: '', |
|
|
|
price: '', |
|
|
|
price: '', |
|
|
|
sort: '', |
|
|
|
sort: 0, |
|
|
|
sales: '', |
|
|
|
sales: '', |
|
|
|
stock: '', |
|
|
|
stock: '', |
|
|
|
addTime: '', |
|
|
|
addTime: '', |
|
|
@ -279,7 +280,7 @@ export default { |
|
|
|
isDel: 0, |
|
|
|
isDel: 0, |
|
|
|
merUse: '', |
|
|
|
merUse: '', |
|
|
|
isPostage: '', |
|
|
|
isPostage: '', |
|
|
|
postage: '', |
|
|
|
postage: 0, |
|
|
|
description: '', |
|
|
|
description: '', |
|
|
|
startTime: '', |
|
|
|
startTime: '', |
|
|
|
stopTime: '', |
|
|
|
stopTime: '', |
|
|
@ -377,7 +378,7 @@ export default { |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
|
|
|
|
|
|
|
|
'formValidate.slider_image': function(val) { |
|
|
|
'formValidate.slider_image': function(val) { |
|
|
|
if (val) { |
|
|
|
if (val && Array.isArray(val)) { |
|
|
|
this.formValidate.images = val.join(',') |
|
|
|
this.formValidate.images = val.join(',') |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -515,7 +516,10 @@ export default { |
|
|
|
if(data){ |
|
|
|
if(data){ |
|
|
|
let cate_id = parseInt(data.cate_id) || 0; |
|
|
|
let cate_id = parseInt(data.cate_id) || 0; |
|
|
|
that.attrs = data.items || []; |
|
|
|
that.attrs = data.items || []; |
|
|
|
that.formValidate = data; |
|
|
|
//that.formValidate = data; |
|
|
|
|
|
|
|
Object.keys(that.formValidate).forEach(key=>{ |
|
|
|
|
|
|
|
if(data[key]) that.formValidate[key] = data[key]; |
|
|
|
|
|
|
|
}) |
|
|
|
that.formValidate.id = 0; |
|
|
|
that.formValidate.id = 0; |
|
|
|
that.formValidate.productId = id |
|
|
|
that.formValidate.productId = id |
|
|
|
that.formValidate.cate_id = cate_id; |
|
|
|
that.formValidate.cate_id = cate_id; |
|
|
@ -523,9 +527,9 @@ export default { |
|
|
|
that.formValidate.title = data.store_name |
|
|
|
that.formValidate.title = data.store_name |
|
|
|
that.formValidate.info = data.store_info |
|
|
|
that.formValidate.info = data.store_info |
|
|
|
that.formValidate.unitName = data.unit_name |
|
|
|
that.formValidate.unitName = data.unit_name |
|
|
|
that.formValidate.sliderImageArr = data.slider_image |
|
|
|
//that.formValidate.sliderImageArr = data.slider_image |
|
|
|
that.formValidate.status = 1 |
|
|
|
that.formValidate.status = 1 |
|
|
|
that.formValidate.num = 1 |
|
|
|
//that.formValidate.num = 1 |
|
|
|
that.formValidate.header = []; |
|
|
|
that.formValidate.header = []; |
|
|
|
that.generate(null); |
|
|
|
that.generate(null); |
|
|
|
that.manyFormValidate = data.attrs; |
|
|
|
that.manyFormValidate = data.attrs; |
|
|
|