|
@@ -123,21 +123,20 @@ export default {
|
|
|
methods: {
|
|
|
// 删除图片
|
|
|
handleRemove(file, fileList) {
|
|
|
- debugger
|
|
|
const findex = this.fileList.map(f => f.url).indexOf(file.url);
|
|
|
if(findex > -1) {
|
|
|
if (file.url!=null){
|
|
|
picDel({picUrl:file.url}).then(res=>{})
|
|
|
this.fileList.splice(findex, 1);
|
|
|
}
|
|
|
- this.$emit("input", this.listToString(this.fileList));
|
|
|
}
|
|
|
+ this.$emit("input", this.fileList);
|
|
|
},
|
|
|
// 上传成功回调
|
|
|
handleUploadSuccess(res) {
|
|
|
if (res.code == 200) {
|
|
|
this.fileList.push({ name: res.data.fileName, url: res.data.url });
|
|
|
- this.$emit("input", this.listToString(this.fileList));
|
|
|
+ this.$emit("input", this.fileList);
|
|
|
this.loading.close();
|
|
|
} else {
|
|
|
this.$message.error(res.msg);
|