|
@@ -92,9 +92,11 @@ export default {
|
|
|
},
|
|
|
// 下载
|
|
|
async download({ data }) {
|
|
|
+ let msg = this.$message('正在导出,请稍后....');
|
|
|
const { id } = data;
|
|
|
const r = await this.export({ id });
|
|
|
- if (this.$checkRes(r)) {
|
|
|
+ msg.close();
|
|
|
+ if (this.$checkRes(r, '导出成功', r.errmsg || '导出失败')) {
|
|
|
window.open(r.data);
|
|
|
}
|
|
|
},
|