|
@@ -524,14 +524,32 @@
|
|
|
}).then(() => {
|
|
|
// this.exportFullscreenLoading = true;
|
|
|
exportExcel(this.listQuery).then(response => {
|
|
|
+ console.log('response',response.type == 'application/json');
|
|
|
+ if(response.type == 'application/json'){
|
|
|
+ this.$message({
|
|
|
+ message: '请设置时间!',
|
|
|
+ type: 'none',
|
|
|
+ duration: 1000
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+
|
|
|
+ };
|
|
|
this.exportExcel(response, '订单');
|
|
|
// this.exportFullscreenLoading = false;
|
|
|
}).catch((error) => {
|
|
|
- this.msgError('导出Excel异常!');
|
|
|
+ this.$message({
|
|
|
+ message: '导出Excel异常!',
|
|
|
+ type: 'none',
|
|
|
+ duration: 1000
|
|
|
+ });
|
|
|
// this.exportFullscreenLoading = false;
|
|
|
});
|
|
|
}).catch(() => {
|
|
|
- this.msgInfo('您已取消导出!');
|
|
|
+ this.$message({
|
|
|
+ message: '您已取消导出!',
|
|
|
+ type: 'none',
|
|
|
+ duration: 1000
|
|
|
+ });
|
|
|
// this.exportFullscreenLoading = false;
|
|
|
});
|
|
|
|