Administrator
2022-01-12 042f8a5cf2ba220278432015e3b84b5fa9b774db
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
        );
      });
    },
  },