|
@@ -366,6 +366,7 @@ export default {
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
handleExport() {
|
|
handleExport() {
|
|
const boxIds = this.ids || [];
|
|
const boxIds = this.ids || [];
|
|
|
|
+
|
|
if (boxIds.length == 0) {
|
|
if (boxIds.length == 0) {
|
|
this.$alert("请选择你要导出的盲票组!", "提示", { type: "warning" });
|
|
this.$alert("请选择你要导出的盲票组!", "提示", { type: "warning" });
|
|
} else {
|
|
} else {
|
|
@@ -375,14 +376,20 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- this.exportLoading = true;
|
|
|
|
|
|
+ this.vloading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "正在导出.....",
|
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
|
+ });
|
|
return exportTicket({ ids: boxIds });
|
|
return exportTicket({ ids: boxIds });
|
|
})
|
|
})
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
|
+ this.vloading.close();
|
|
this.download(response.msg);
|
|
this.download(response.msg);
|
|
this.exportLoading = false;
|
|
this.exportLoading = false;
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
|
+ this.vloading.close();
|
|
this.exportLoading = false;
|
|
this.exportLoading = false;
|
|
});
|
|
});
|
|
}
|
|
}
|