|
|
|
@ -122,6 +122,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 上传成功回调
|
|
|
|
|
handleUploadSuccess(res) {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.uploadList.push({ name: res.data.fileName, url: res.data.url });
|
|
|
|
|
if (this.uploadList.length === this.number) {
|
|
|
|
|
this.fileList = this.fileList.concat(this.uploadList);
|
|
|
|
@ -130,6 +131,10 @@ export default {
|
|
|
|
|
this.$emit("input", this.listToString(this.fileList));
|
|
|
|
|
this.$modal.closeLoading();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$modal.msgError(res.msg);
|
|
|
|
|
this.$modal.closeLoading();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 上传前loading加载
|
|
|
|
|
handleBeforeUpload(file) {
|
|
|
|
|