|
@@ -411,24 +411,22 @@ var vm = new Vue({
|
|
} else {
|
|
} else {
|
|
alert(data.msg);
|
|
alert(data.msg);
|
|
}
|
|
}
|
|
- setTimeout(exportMsg, 100);
|
|
|
|
},
|
|
},
|
|
uploadExcelError: function () {
|
|
uploadExcelError: function () {
|
|
alert('上传出现异常,请重试!');
|
|
alert('上传出现异常,请重试!');
|
|
- setTimeout(exportMsg, 100);
|
|
|
|
},
|
|
},
|
|
uploadExcelProgress: function (event, file, fileList) {
|
|
uploadExcelProgress: function (event, file, fileList) {
|
|
- exportMsg = this.$Message.loading({
|
|
|
|
|
|
+ const exportMsg = this.$Message.loading({
|
|
content: 'Loading...',
|
|
content: 'Loading...',
|
|
duration: 0
|
|
duration: 0
|
|
});
|
|
});
|
|
|
|
+ setTimeout(exportMsg, 100);
|
|
},
|
|
},
|
|
uploadExcelFormatError: function (file) {
|
|
uploadExcelFormatError: function (file) {
|
|
this.$Notice.warning({
|
|
this.$Notice.warning({
|
|
title: '文件格式不正确',
|
|
title: '文件格式不正确',
|
|
desc: '文件 ' + file.name + ' 格式不正确,请上传 xls 或 xlsx 格式的文件。'
|
|
desc: '文件 ' + file.name + ' 格式不正确,请上传 xls 或 xlsx 格式的文件。'
|
|
});
|
|
});
|
|
- setTimeout(exportMsg, 100);
|
|
|
|
}
|
|
}
|
|
// 上传方法结束----
|
|
// 上传方法结束----
|
|
},
|
|
},
|