|
|
|
@ -329,21 +329,16 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
/*判断图片是否存在*/ |
|
|
|
|
judgePictureExists(){ |
|
|
|
|
if (this.form.id != null) { |
|
|
|
|
if (this.form.images == "") { |
|
|
|
|
if (this.form.images == "") { |
|
|
|
|
this.form.images = []; |
|
|
|
|
}else{ |
|
|
|
|
let imgType = typeof(this.form.images); |
|
|
|
|
if(imgType == "string"){ |
|
|
|
|
let imgArr = this.form.images.split(","); |
|
|
|
|
this.form.images = imgArr; |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
let imagesType = typeof(this.form.images); |
|
|
|
|
if (imagesType == "string") { |
|
|
|
|
let imgArr = this.form.images.split(",") |
|
|
|
|
this.form.images = imgArr; |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (this.form.images == undefined || this.form.images == "") { |
|
|
|
|
this.form.images = []; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return; |
|
|
|
|
}, |
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
|
handleDelete(row) { |
|
|
|
|