From 042f8a5cf2ba220278432015e3b84b5fa9b774db Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 12 Jan 2022 19:01:08 +0800
Subject: [PATCH] 下载,导出添加 token
---
src/views/trainExam/performance.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/views/trainExam/performance.vue b/src/views/trainExam/performance.vue
index abdbd72..2adcbd4 100644
--- a/src/views/trainExam/performance.vue
+++ b/src/views/trainExam/performance.vue
@@ -285,6 +285,7 @@
import { getRoleDetail } from "@/api/system/role";
import { securityApply,add} from "@/api/accreditationRecords/accreditationRecords";
import Qs from "qs";
+import { getToken } from "@/util/auth";
export default {
components: {
baoanz,
@@ -1236,7 +1237,10 @@
);
},
handleTemplate() {
- window.open(`/api/examScore/export-template`);
+ window.open(`/api/examScore/export-template?${
+ this.website.tokenHeader
+ }=${getToken()}&`
+ );
},
handleImport() {
this.excelBox = true;
@@ -1287,10 +1291,13 @@
data["trainUnitId"] = this.userInfo.dept_id;
}
data["examType"] = 2;
- console.log(data,11225111);
+ // console.log(data,11225111);
//序列号url形式,用&拼接
data = Qs.stringify(data);
- window.open(`/api/examScore/export-examScore?` + data);
+ window.open(`/api/examScore/export-examScore?${
+ this.website.tokenHeader
+ }=${getToken()}&` + data
+ );
});
},
},
--
Gitblit v1.9.3