Administrator
2022-01-12 042f8a5cf2ba220278432015e3b84b5fa9b774db
下载,导出添加 token
10 files modified
78 ■■■■ changed files
src/views/dispatch/dispatch.vue 10 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/car.vue 6 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/equipments.vue 6 ●●●● patch | view | raw | blame | history
src/views/securityEquipment/gun.vue 7 ●●●● patch | view | raw | blame | history
src/views/securityUnit/localCompany.vue 6 ●●●● patch | view | raw | blame | history
src/views/securityUnit/securityTraining.vue 6 ●●●● patch | view | raw | blame | history
src/views/securityUnit/selfRecruitedSecurityGuard.vue 9 ●●●●● patch | view | raw | blame | history
src/views/securityUnit/transRegionalcompany.vue 6 ●●●● patch | view | raw | blame | history
src/views/trainExam/performance.vue 13 ●●●● patch | view | raw | blame | history
src/views/zc/zc.vue 9 ●●●●● patch | view | raw | blame | history
src/views/dispatch/dispatch.vue
@@ -108,13 +108,10 @@
  adddata,
  update,
  remove,
  getdata1,
  adddata1,
  update1,
  remove1,
} from "@/api/dispatch/dispatch";
import { mapGetters } from "vuex";
import { mapState } from "vuex";
import { getToken } from "@/util/auth";
export default {
  data() {
    var phones = (rule, value, callback) => {
@@ -741,7 +738,10 @@
    },
    handleTemplate() {
      window.open(`/api/dispatcherUnit/export-template`);
      window.open(`/api/dispatcherUnit/export-template?${
            this.website.tokenHeader
          }=${getToken()}&`
        );
    },
    handleImport() {
      this.excelBox = true;
src/views/securityEquipment/car.vue
@@ -67,6 +67,7 @@
import { data, column } from "./car";
import { getdata, adddata, update, remove } from "@/api/car/car";
import { mapGetters } from "vuex";
import { getToken } from "@/util/auth";
export default {
  props: ["fromDeptId", "windowHeight"],
  watch: {
@@ -203,7 +204,10 @@
      done();
    },
    handleTemplate() {
      window.open(`/api/car/export-template-car`);
      window.open(`/api/car/export-template-car?${
            this.website.tokenHeader
          }=${getToken()}`
        );
    },
    sizeChange(val) {
      this.page1.currentPage = 1;
src/views/securityEquipment/equipments.vue
@@ -67,6 +67,7 @@
import { data, column } from "./equipments";
import { getdata, adddata, update, remove } from "@/api/equipments/equipments";
import { mapGetters } from "vuex";
import { getToken } from "@/util/auth";
export default {
  props: ["fromDeptId", "windowHeight"],
  watch: {
@@ -202,7 +203,10 @@
      done();
    },
    handleTemplate() {
      window.open(`/api/equipage/export-template`);
      window.open(`/api/equipage/export-template?${
            this.website.tokenHeader
          }=${getToken()}`
        );
    },
    sizeChange(val) {
      this.page1.currentPage = 1;
src/views/securityEquipment/gun.vue
@@ -65,7 +65,7 @@
<script>
import { data, column } from "./gun";
import { getdata, adddata, update, remove } from "@/api/gun/gun";
import { getToken } from "@/util/auth";
import { mapGetters } from "vuex";
export default {
  props: ["fromDeptId"],
@@ -171,7 +171,10 @@
      done();
    },
    handleTemplate() {
      window.open(`/api/gun/export-template-gun`);
      window.open(`/api/gun/export-template-gun?${
            this.website.tokenHeader
          }=${getToken()}`
        );
    },
    sizeChange(val) {
      this.page1.currentPage = 1;
src/views/securityUnit/localCompany.vue
@@ -97,6 +97,7 @@
} from "@/api/securityUnit/securityUnit";
import { mapGetters } from "vuex";
import { getJurisdictionTree } from "@/api/jurisdiction/jurisdiction";
import { getToken } from "@/util/auth";
export default {
  data() {
    return {
@@ -431,7 +432,10 @@
      done();
    },
    handleTemplate1() {
      window.open(`/api/examSubjectChoices/export-template`);
      window.open(`/api/examSubjectChoices/export-template?${
            this.website.tokenHeader
          }=${getToken()}&`
        );
    },
    //保安单位基本信息
    sizeChange(val) {
src/views/securityUnit/securityTraining.vue
@@ -96,6 +96,7 @@
  remove,
} from "@/api/securityUnit/securityUnit";
import { mapGetters } from "vuex";
import { getToken } from "@/util/auth";
export default {
  data() {
    return {
@@ -413,7 +414,10 @@
      done();
    },
    handleTemplate1() {
      window.open(`/api/examSubjectChoices/export-template`);
      window.open(`/api/examSubjectChoices/export-template?${
            this.website.tokenHeader
          }=${getToken()}&`
        );
    },
    //保安单位基本信息
    sizeChange(val) {
src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -95,11 +95,9 @@
  adddata,
  update,
  remove,
  adddata1,
  adddata2,
  getDeptLazyTree,
} from "@/api/securityUnit/securityUnit";
import { mapGetters } from "vuex";
import { getToken } from "@/util/auth";
export default {
  data() {
    return {
@@ -394,7 +392,10 @@
      done();
    },
    handleTemplate1() {
      window.open(`/api/examSubjectChoices/export-template`);
      window.open(`/api/examSubjectChoices/export-template?${
            this.website.tokenHeader
          }=${getToken()}&`
        );
    },
    //保安单位基本信息
    sizeChange(val) {
src/views/securityUnit/transRegionalcompany.vue
@@ -97,6 +97,7 @@
  remove,
} from "@/api/securityUnit/securityUnit";
import { mapGetters } from "vuex";
import { getToken } from "@/util/auth";
export default {
  data() {
    var w = 160,
@@ -414,7 +415,10 @@
      done();
    },
    handleTemplate1() {
      window.open(`/api/examSubjectChoices/export-template`);
      window.open(`/api/examSubjectChoices/export-template?${
            this.website.tokenHeader
          }=${getToken()}&`
        );
    },
    //保安单位基本信息
    sizeChange(val) {
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
        );
      });
    },
  },
src/views/zc/zc.vue
@@ -7,6 +7,7 @@
      :table-loading="loading"
      :data="data"
      :page.sync="page"
      :search.sync="search"
      :permission="permissionList"
      :before-open="beforeOpen"
      v-model="form"
@@ -50,6 +51,7 @@
        <el-button
          icon="el-icon-check"
          size="small"
          type="text"
          @click.stop="handleEdit(scope.row, scope.index)"
          >审核</el-button
        >
@@ -68,6 +70,7 @@
    return {
      form: {},
      query: {},
      search: {},
      loading: true,
      page: {
        pageSize: 10,
@@ -164,6 +167,11 @@
      },
      data: [],
    };
  },
  created(){
    if(this.userInfo.role_name=="保安公司管理员"){
      this.search['type'] = "0";
    }
  },
  computed: {
    ...mapGetters(["userInfo", "permission"]),
@@ -312,6 +320,7 @@
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      params = this.search;
      this.loading = true;
      getList(
        page.currentPage,