Authored by htoooth

fix

... ... @@ -265,9 +265,7 @@
title: '色卡图片*',
key: 'goodsColorImage',
render(row, col, index) {
return `<Upload action="//jsonplaceholder.typicode.com/posts/">
<i-button type="ghost" icon="ios-cloud-upload-outline">上传图片</i-button>
</Upload>`
return ` <yoho-upload @on-success="uploadSuccess($file, ${index})" @on-error="uploadError($err, ${index})"></yoho-upload>`;
}
},
{
... ... @@ -573,6 +571,12 @@
}
this.product.sellerGoodsInfoStr = JSON.stringify(this.table.data.map(handleColor))
},
uploadSuccess: function(files, index) {
console.log(files, index);
},
uploadError: function(err) {
console.log(err)
}
},
watch: {
... ...