uploadImg: function () {
//初始化
var imgLen = this.editForm.fdcImage.length
this.$eventhub.$emit('photoInit', 'more', (res) => {
if(imgLen <6){
for(var i=0; i<res.length; i++){
if(imgLen <6){
//this.editForm.fdcImage.push(res[i].thumbImage) //选择图片时直接返回缩略图
this.editForm.fdcImage.push(res[i].fdcImage) //选择图片时直接返回原图
imgLen++
}else{
this.$message({
message: '最多只能添加6张图片!',
type: 'warning'
});
break;
}
}
}else{
this.$message({
message: '最多只能添加6张图片!',
type: 'warning'
});
}
})
},