|
@@ -304,6 +304,7 @@ export default {
|
|
return {
|
|
return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
loading: true,
|
|
loading: true,
|
|
|
|
+ loadingObj: null,
|
|
// 选中数组
|
|
// 选中数组
|
|
ids: [],
|
|
ids: [],
|
|
// 非单个禁用
|
|
// 非单个禁用
|
|
@@ -484,12 +485,19 @@ export default {
|
|
// 文件上传中处理
|
|
// 文件上传中处理
|
|
handleFileUploadProgress(event, file, fileList) {
|
|
handleFileUploadProgress(event, file, fileList) {
|
|
this.upload.isUploading = true;
|
|
this.upload.isUploading = true;
|
|
|
|
+ this.loadingObj = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: 'Loading',
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
|
+ });
|
|
},
|
|
},
|
|
// 文件上传成功处理
|
|
// 文件上传成功处理
|
|
handleFileSuccess(response, file, fileList) {
|
|
handleFileSuccess(response, file, fileList) {
|
|
this.upload.open = false;
|
|
this.upload.open = false;
|
|
this.upload.isUploading = false;
|
|
this.upload.isUploading = false;
|
|
this.$refs.upload.clearFiles();
|
|
this.$refs.upload.clearFiles();
|
|
|
|
+ this.loadingObj.close();
|
|
this.$alert(
|
|
this.$alert(
|
|
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
|
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
|
response.msg +
|
|
response.msg +
|