|
@@ -234,6 +234,7 @@ export default {
|
|
|
dialogExportTypeVisible: false,
|
|
|
exportLoading: false,
|
|
|
form: {
|
|
|
+ rootOrgId: null,
|
|
|
examRecordDataId: null,
|
|
|
hasStranger: null,
|
|
|
courseId: null,
|
|
@@ -368,14 +369,32 @@ export default {
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
this.dialogExportTypeVisible = false;
|
|
|
- this._exportData();
|
|
|
+ // this._exportData();
|
|
|
+ this.asyncExportData();
|
|
|
});
|
|
|
} else {
|
|
|
this.dialogExportTypeVisible = false;
|
|
|
- this._exportData();
|
|
|
+ // this._exportData();
|
|
|
+ this.asyncExportData();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ asyncExportData() {
|
|
|
+ this.form.rootOrgId = this.user.rootOrgId;
|
|
|
+ let url = "/api/ecs_oe_admin/exam/score/statistic/list/export/async";
|
|
|
+ this.$http
|
|
|
+ .get(url, {
|
|
|
+ params: {
|
|
|
+ query: this.form
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$notify({
|
|
|
+ type: "success",
|
|
|
+ message: "正在后台导出中,请稍后到“导出任务列表”中下载!"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
_exportData() {
|
|
|
this.exportLoading = true;
|
|
|
this.$http
|