liuyg
2021-09-28 dfab34be7b7456714b57b96e49c95725c3815da5
权限
11 files modified
521 ■■■■ changed files
src/store/modules/user.js 2 ●●● patch | view | raw | blame | history
src/views/dispatch/dispatch.vue 92 ●●●● patch | view | raw | blame | history
src/views/exam/examPayment.vue 36 ●●●●● patch | view | raw | blame | history
src/views/securityAnalysis/child/dispatch.vue 22 ●●●● patch | view | raw | blame | history
src/views/securityAnalysis/index.vue 5 ●●●● patch | view | raw | blame | history
src/views/securityGuard/data.js 27 ●●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue 32 ●●●● patch | view | raw | blame | history
src/views/securityUnit/data.js 100 ●●●● patch | view | raw | blame | history
src/views/securityUnit/localCompany.vue 10 ●●●● patch | view | raw | blame | history
src/views/trainExam/performance.vue 104 ●●●● patch | view | raw | blame | history
src/views/trainExam/singleperformance.vue 91 ●●●● patch | view | raw | blame | history
src/store/modules/user.js
@@ -204,7 +204,7 @@
              }
            }
            doItOnce(ele, "考试管理", "成绩查看");
            doItOnce(ele, "培训管理", "培训考试报名");
            doItOnce(ele, "培训管理", "培训考试成绩查看");
            addPath(ele, true);
          });
          commit('SET_MENU_ALL', menu)
src/views/dispatch/dispatch.vue
@@ -112,6 +112,15 @@
import { mapState } from "vuex";
export default {
  data() {
    var phones = (rule, value, callback) => {
      window.yanzhengphons =
        /^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/;
      if (!yanzhengphons.test(value)) {
        callback(new Error("请输入正确电话"));
      } else {
        callback();
      }
    };
    return {
      typeTABS: {}, //标签页
      deptId: "",
@@ -218,7 +227,14 @@
            searchSpan: 4,
            width: 210,
            // span: 12,
            labelWidth: 118,
            labelWidth: 138,
            rules: [
              {
                required: true,
                message: "请输入名称",
                trigger: "click",
              },
            ],
          },
          {
            label: "保安公司",
@@ -242,7 +258,7 @@
                trigger: "click",
              },
            ],
            labelWidth: 118,
            labelWidth: 138,
            width: 230,
            searchLabelWidth: 80,
            search: true,
@@ -260,7 +276,7 @@
            searchSpan: 4,
            overHidden: true,
            // span: 12,
            labelWidth: 118,
            labelWidth: 138,
          },
          {
            label: "合同生效时间",
@@ -293,7 +309,7 @@
            search: true,
            searchSpan: 4,
            overHidden: true,
            labelWidth: 118,
            labelWidth: 138,
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
@@ -319,7 +335,7 @@
            editDisplay: false,
            viewDisplay: false,
            overHidden: true,
            labelWidth: 118,
            labelWidth: 138,
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
@@ -339,40 +355,96 @@
          // {
          //   label: " 派遣人数",
          //   prop: "num",
          //   labelWidth: 118,
          //   labelWidth: 138,
          // },
          // {
          //   label: "合同生效时间",
          //   prop: "releaseTimeRange",
          //   type: "date",
          //   format: "yyyy-MM-dd",
          //   valueFormat: "yyyy-MM-dd",
          //   searchValue: [this.getStartTime(), this.getEndTime()],
          //   // searchRange: true,
          //   searchSpan: 5,
          //   searchLabelWidth: 110,
          //   hide: true,
          //   value: [this.getStartTime(), this.getEndTime()],
          //   // addDisplay: false,
          //   // editDisplay: false,
          //   // viewDisplay: false,
          //   range: true,
          //   rules: [
          //     {
          //       required: true,
          //       message: "请输入时间",
          //       trigger: "blur",
          //     },
          //   ],
          // },
          {
            label: "合同开始时间",
            prop: "startTime",
            labelWidth: 118,
            labelWidth: 138,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            // search: true,
            rules: [
              {
                required: true,
                message: "请选择开始时间",
                trigger: "click",
              },
            ],
            // searchSpan: 4,
            // overHidden: true
          },
          {
            label: "合同结束时间",
            prop: "endTime",
            labelWidth: 118,
            labelWidth: 138,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            // search: true,
            rules: [
              {
                required: true,
                message: "请选择结束时间",
                trigger: "click",
              },
            ],
            // searchSpan: 4,
            // overHidden: true
          },
          {
            label: " 负责人",
            prop: "linkman",
            labelWidth: 118,
            labelWidth: 138,
            rules: [
              {
                required: true,
                message: "请输入负责人",
                trigger: "click",
              },
            ],
          },
          {
            label: "负责人联系方式",
            prop: "phone",
            labelWidth: 118,
            labelWidth: 138,
            width: 110,
            rules: [
              {
                required: true,
                message: "请输入联系方式",
                trigger: "click",
              },
              {
                validator: phones,
                trigger: ["change", "blur"],
              },
            ],
          },
        ],
      },
src/views/exam/examPayment.vue
@@ -1,8 +1,8 @@
/*
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: Morpheus
 * @Last Modified time: 2021-07-18 19:44:47
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-28 11:45:28
 * menu-name 考试缴费管理
 */
<template>
@@ -28,6 +28,7 @@
            @size-change="questionBankSizeChange"
            @row-del="rowDel"
            @row-update="questionBankRowUpdate"
            @refresh-change="refreshChange"
          >
            <template slot-scope="{ row }" slot="sex">
              <el-tag v-if="row.sex == 1">男</el-tag>
@@ -164,12 +165,12 @@
                  dicData: [
                    {
                      label:"男",
                      value:1
                value: 1,
                    },
                    {
                      label:"女",
                      value:2
                    }
                value: 2,
              },
                  ],
              },
              {
@@ -256,8 +257,9 @@
              res: "data",
            },
            tip: "请上传 zip 压缩文件",
            action: "/api/blade-resource/oss/endpoint/put-file-exam-payment-zip",
          }
            action:
              "/api/blade-resource/oss/endpoint/put-file-exam-payment-zip",
          },
        ],
      },
    };
@@ -281,20 +283,9 @@
      //判断角色,如果是保安公司管理员或保安,只能查看当前公司的考试成绩
      var that = this;
      //获取当前登录人员的角色信息
      var roleIds = this.userInfo.role_id.split(",");
      roleIds.forEach((roleId) => {
        getRoleDetail(roleId).then((res) => {
            var roleAlias = res.data.data.roleAlias;
            if (
              roleAlias == "保安公司管理员" ||
              roleAlias == "保安" ||
              roleAlias == "未持证保安"
            ) {
              //如果是保安公司管理员
              params["deptId"] = that.userInfo.dept_id;
      if (this.userInfo.role_name == "保安公司管理员") {
        params["deptId"] = this.userInfo.dept_id;
            }
            that.questionBankLoading = false;
            params["examType"] = 1;
            getExamPaymentList(
              page.currentPage,
              page.pageSize,
@@ -306,9 +297,6 @@
              that.questionBankLoading = false;
              that.questionBankSelectionClear();
            });
        })
      });
    },
     rowDel(row) {
@@ -384,7 +372,7 @@
      done();
    },
    refreshChange() {
      this.questionBankOnLoad(this.page, this.query);
      this.questionBankOnLoad(this.questionBankPage, this.questionBankQuery);
    },
  },
};
src/views/securityAnalysis/child/dispatch.vue
@@ -73,17 +73,17 @@
            // span: 12,
            labelWidth: 118,
          },
          {
            label: "派遣单位地址",
            prop: "address",
            search: false,
            searchLabelWidth: 110,
            overHidden: true,
            searchSpan: 4,
            width: 210,
            // span: 12,
            labelWidth: 118,
          },
          // {
          //   label: "派遣单位地址",
          //   prop: "address",
          //   search: false,
          //   searchLabelWidth: 110,
          //   overHidden: true,
          //   searchSpan: 4,
          //   width: 210,
          //   // span: 12,
          //   labelWidth: 118,
          // },
          {
            label: "保安公司",
            prop: "deptName",
src/views/securityAnalysis/index.vue
@@ -257,7 +257,10 @@
          myTool1: {
            show: true,
            title: "",
            icon: "image://img/table.png",
            // icon: "path://M432.45,595.444c0,2.177-4.661,6.82-11.305,6.82c-6.475,0-11.306-4.567-11.306-6.82s4.852-6.812,11.306-6.812C427.841,588.632,432.452,593.191,432.45,595.444L432.45,595.444z M421.155,589.876c-3.009,0-5.448,2.495-5.448,5.572s2.439,5.572,5.448,5.572c3.01,0,5.449-2.495,5.449-5.572C426.604,592.371,424.165,589.876,421.155,589.876L421.155,589.876z M421.146,591.891c-1.916,0-3.47,1.589-3.47,3.549c0,1.959,1.554,3.548,3.47,3.548s3.469-1.589,3.469-3.548C424.614,593.479,423.062,591.891,421.146,591.891L421.146,591.891zM421.146,591.891",
            // icon: "image://http://echarts.baidu.com/images/favicon.png",
            icon: "image://http://223.82.109.183:2080/img/table.png",
            // icon: "M271.68 304.64h472a32 32 0 1 0 0-64h-472a32 32 0 0 0 0 64z m0 234.88h408.64a32 32 0 0 0 0-64H271.68a32 32 0 1 0 0 64z m0 198.4h376.64a32 32 0 1 0 0-64H271.68a32 32 0 0 0 0 64z",
            onclick: function () {
              that.dialogVisible = true;
              that.sees = id;
src/views/securityGuard/data.js
@@ -650,13 +650,28 @@
        search: true,
        searchSpan: 3,
        width: 69,
        display: false,
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
        props: {
            label: "dictValue",
            value: "dictKey"
        },
        type: "select",
    dicData: [
        {
            label: "是",
            value: "1",
        },
        {
            label: "否",
            value: "2",
        },
        {
            label: "已吊销",
            value: "3",
        },
    ],
    display: false,
    // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
    // props: {
    //     label: "dictValue",
    //     value: "dictKey"
    // },
    // type: "select",
        rules: [{
            required: true,
            message: "请选择",
src/views/securityGuard/securityGuard.vue
@@ -310,7 +310,6 @@
import { mapState } from "vuex";
export default {
  data() {
    const validatePass = (rule, value, callback) => {
      if (value === "") {
@@ -616,12 +615,26 @@
              {
                label: "是否持证",
                prop: "hold",
                dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
                props: {
                  label: "dictValue",
                  value: "dictKey",
                },
                // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
                // props: {
                //   label: "dictValue",
                //   value: "dictKey",
                // },
                type: "select",
                dicData: [
                  {
                    label: "是",
                    value: "1",
                  },
                  {
                    label: "否",
                    value: "2",
                  },
                  {
                    label: "已吊销",
                    value: "3",
                  },
                ],
                rules: [
                  {
                    required: true,
@@ -1368,11 +1381,12 @@
            params["deptId"] = that.userInfo.dept_id;
            //导入action 修改
            const importColumn = that.findObject(that.excelOption1.column, "excelFile");
            const importColumn = that.findObject(
              that.excelOption1.column,
              "excelFile"
            );
            importColumn.action =
              "/api/blade-user/import-user?deptId="+this.deptIds;
          } else if (roleAlias == "公安管理员") {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var columnDept = that.findObject(that.option.column, "deptId");
src/views/securityUnit/data.js
@@ -1,3 +1,30 @@
var numbers = (rule, value, callback) => {
    window.yanzhengnumbers = /^[0-9]+.?[0-9]*$/;
    if (!yanzhengnumbers.test(value)) {
        callback(new Error('请输入数字'));
    } else {
        callback();
    }
};
var phones = (rule, value, callback) => {
    window.yanzhengphons = /^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/;
    if (!yanzhengphons.test(value)) {
        callback(new Error('请输入正确电话'));
    } else {
        callback();
    }
};
var cardids = (rule, value, callback) => {
    window.yanzhengphons = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
    if (!yanzhengphons.test(value)) {
        callback(new Error('请输入正确身份证'));
    } else {
        callback();
    }
};
var DIC = [
    {
        label: '招聘中',
@@ -68,7 +95,7 @@
        width: 120,
        // search: true,
        searchSpan: 4,
        searchLabelWidth: 100
        searchLabelWidth: 100,
    },
    {
@@ -304,7 +331,10 @@
            required: true,
            message: "请输入法定代表人电话",
            trigger: "blur"
        }]
        },
        {
            validator: phones, trigger: ['change', 'blur']
        },]
    }, {
        label: "联系人",
        prop: "contacts",
@@ -325,6 +355,9 @@
            required: true,
            message: "请输入联系电话",
            trigger: "blur"
        },
        {
            validator: phones, trigger: ['change', 'blur']
        }]
    },
    // {
@@ -368,11 +401,6 @@
        prop: "capital",
        labelWidth: w,
        span: s,
        rules: [{
            required: true,
            message: "请输入实缴资本",
            trigger: "blur"
        }]
    },
    {
        label: "组织机构代码",
@@ -408,17 +436,17 @@
            trigger: "blur"
        }]
    },
    {
        label: "企业类型",
        prop: "enterprises",
        labelWidth: w,
        span: s,
        rules: [{
            required: true,
            message: "请输入企业类型",
            trigger: "blur"
        }]
    },
    // {
    //     label: "企业类型",
    //     prop: "enterprises",
    //     labelWidth: w,
    //     span: s,
    //     rules: [{
    //         required: true,
    //         message: "请输入企业类型",
    //         trigger: "blur"
    //     }]
    // },
    {
        label: "注册地址",
        prop: "address",
@@ -441,17 +469,17 @@
            trigger: "blur"
        }]
    },
    {
        label: "所属地区",
        prop: "region",
        labelWidth: w,
        span: s,
        rules: [{
            required: true,
            message: "请输入所属地区",
            trigger: "blur"
        }]
    },
    // {
    //     label: "所属地区",
    //     prop: "region",
    //     labelWidth: w,
    //     span: s,
    //     rules: [{
    //         required: true,
    //         message: "请输入所属地区",
    //         trigger: "blur"
    //     }]
    // },
    {
        label: "登记机关",
        prop: "registration",
@@ -567,7 +595,7 @@
        span: s,
        rules: [{
            required: true,
            message: "请输入法定代表人",
            message: "请输入出资时间",
            trigger: "blur"
        }]
    }, {
@@ -579,6 +607,9 @@
            required: true,
            message: "请输入身份证",
            trigger: "blur"
        },
        {
            validator: cardids, trigger: ['change', 'blur']
        }]
    }, {
        label: "联系电话",
@@ -589,6 +620,9 @@
            required: true,
            message: "请输入联系电话",
            trigger: "blur"
        },
        {
            validator: phones, trigger: ['change', 'blur']
        }]
    },
]
@@ -664,6 +698,9 @@
            required: true,
            message: "请输入身份证",
            trigger: "blur"
        },
        {
            validator: cardids, trigger: ['change', 'blur']
        }]
    }, {
        label: "联系电话",
@@ -674,6 +711,9 @@
            required: true,
            message: "请输入联系电话",
            trigger: "blur"
        },
        {
            validator: phones, trigger: ['change', 'blur']
        }]
    }
    // , {
src/views/securityUnit/localCompany.vue
@@ -505,8 +505,12 @@
      }
      console.log(d);
      for (var k in d) {
        if (d[k] == "" || d[k] == undefined) {
          console.log(k);
        if (d[k].prop == "capital") {
          continue;
        }
        let iisit0 = d[k] == "" || d[k] == undefined;
        if (iisit0) {
          console.log(d[k]);
          this.$message.warning("请检查表单是否填写完整!");
          return;
        }
@@ -631,7 +635,7 @@
    haveID() {
      // console.log(this.haveID);
      if (this.haveID != undefined) {
        if (this.haveID.length > 5) {
        if (this.haveID.length > 0) {
          //统一社会信用代码判断
          this.noshehuibianma = 1;
        } else {
src/views/trainExam/performance.vue
@@ -1,8 +1,8 @@
/*
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: Morpheus
 * @Last Modified time: 2021-07-18 19:44:47
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-28 15:03:18
 * menu-name 成绩管理
 */
<template>
@@ -27,6 +27,7 @@
            @current-change="questionBankCurrentChange"
            @size-change="questionBankSizeChange"
            @row-update="questionBankRowUpdate"
            @refresh-change="refreshChange"
          >
            <template slot-scope="{ row }" slot="theoryGrade">
              {{ row.theoryGrade == -1 ? "" : row.theoryGrade }}
@@ -38,7 +39,17 @@
              {{ row.allGrade == -1 ? "" : row.allGrade }}
            </template>
            <template slot-scope="{ row }" slot="qualified">
              {{ row.qualified == -1 ? "" : row.qualified==0?"合格":row.qualified==1?"不合格":row.qualified==3?"缺考,成绩无效":'' }}
              {{
                row.qualified == -1
                  ? ""
                  : row.qualified == 0
                  ? "合格"
                  : row.qualified == 1
                  ? "不合格"
                  : row.qualified == 3
                  ? "缺考,成绩无效"
                  : ""
              }}
            </template>
            <!-- 自定义按钮 -->
@@ -151,7 +162,7 @@
        dialogClickModal: false,
        // 操作栏宽度
        menu: true,
        menuWidth: 136,
        menuWidth: 215,
        labelWidth: 120,
        column: [
@@ -182,11 +193,41 @@
                trigger: "blur",
              },
            ],
            width:250,
            width: 210,
            // overHidden:true,
          },
          {
            label: "用户名",
            label: "姓名",
            prop: "securityName",
            search: true,
            searchSpan: 3,
            slot: true,
            viewDisplay: true,
            // 表单新增时是否禁止
            addDisabled: false,
            // 表单新增时是否可见
            addDisplay: true,
            // 表单新增时是否为查看模式
            addDetail: false,
            // 表单编辑时是否禁止
            editDisabled: true,
            viewDisabled: true,
            // 表单编辑时是否可见
            editDisplay: true,
            // 表单编辑时是否为查看模式
            editDetail: false,
            rules: [
              {
                required: true,
                message: "请输入试卷名称",
                trigger: "blur",
              },
            ],
            width: 80,
            // overHidden:true,
          },
          {
            label: "身份证号",
            prop: "account",
            search: true,
            searchSpan: 4,
@@ -210,7 +251,7 @@
                trigger: "blur",
              },
            ],
             width:160,
            width: 140,
          },
          {
            label: "所属公司",
@@ -251,7 +292,7 @@
            // span: 24,
            format: "yyyy-MM-dd HH:mm:ss",
            valueFormat: "yyyy-MM-dd HH:mm:ss",
            width: 160,
            width: 140,
            slot: true,
            // 表单新增时是否禁止
            addDisabled: false,
@@ -273,7 +314,7 @@
            // span: 24,
            format: "yyyy-MM-dd HH:mm:ss",
            valueFormat: "yyyy-MM-dd HH:mm:ss",
            width: 160,
            width: 140,
            slot: true,
            // 表单新增时是否禁止
            addDisabled: false,
@@ -294,7 +335,8 @@
            type: "select",
            slot: true,
            search: true,
            searchSpan: 4,
            searchSpan: 3,
            width: 60,
            dicData: [
              {
                label: "发布成绩",
@@ -378,11 +420,13 @@
              editDisplay: true,
              // 表单编辑时是否为查看模式
              editDetail: false,
              rules: [{
            rules: [
              {
                  required: true,
                  message: "请输入考试名称",
                  trigger: "blur"
              }]
                trigger: "blur",
              },
            ],
          },
          {
            label: "是否合格",
@@ -390,7 +434,7 @@
            type: "select",
            slot: true,
            search: true,
            searchSpan: 4,
            searchSpan: 3,
            dicData: [
              {
                label: "合格",
@@ -409,6 +453,7 @@
                value: 3,
              },
            ],
            width: 110,
            // 表单新增时是否禁止
            addDisabled: false,
            // 表单新增时是否可见
@@ -502,10 +547,19 @@
    permissionList() {
      return {
        addBtn: this.vaildData(null, false),
        viewBtn: this.vaildData(this.permission.trainExam_performance_view, false),
        viewBtn: this.vaildData(
          this.permission.trainExam_performance_view,
          false
        ),
        delBtn: this.vaildData(null, false),
        editBtn: this.vaildData(this.permission.trainExam_performance_edit, false),
        excelBtn: this.vaildData(this.permission.trainExam_performance_export, false),
        editBtn: this.vaildData(
          this.permission.trainExam_performance_edit,
          false
        ),
        excelBtn: this.vaildData(
          this.permission.trainExam_performance_export,
          false
        ),
      };
    },
  },
@@ -518,16 +572,11 @@
      roleIds.forEach((roleId) => {
        getRoleDetail(roleId).then((res) => {
            var roleAlias = res.data.data.roleAlias;
            if (
              roleAlias == "保安公司管理员" ||
              roleAlias == "保安"
            ) {
          if (roleAlias == "保安公司管理员" || roleAlias == "保安") {
              //如果是保安公司管理员
              params["deptId"] = that.userInfo.dept_id;
            }
            if (
              roleAlias == "培训公司管理员"
            ) {
          if (roleAlias == "培训公司管理员") {
              //如果是培训公司管理员
              params["trainUnitId"] = that.userInfo.dept_id;
            }
@@ -536,7 +585,7 @@
            getList(
              page.currentPage,
              page.pageSize,
              Object.assign(params, this.query)
            Object.assign(params, this.questionBankQuery)
            ).then((res) => {
              const data = res.data.data;
              that.questionBankPage.total = data.total;
@@ -544,9 +593,8 @@
              that.questionBankLoading = false;
              that.questionBankSelectionClear();
            });
        })
      });
      });
    },
    //缺考标记
    absent(row, done, loading) {
@@ -630,7 +678,7 @@
      done();
    },
    refreshChange() {
      this.questionBankOnLoad(this.page, this.query);
      this.questionBankOnLoad(this.questionBankPage, this.questionBankQuery);
    },
  },
};
src/views/trainExam/singleperformance.vue
@@ -1,8 +1,8 @@
/*
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: Morpheus
 * @Last Modified time: 2021-07-18 21:02:10
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-28 15:06:04
 * menu-name 成绩查看
 */
<template>
@@ -27,6 +27,7 @@
            @current-change="questionBankCurrentChange"
            @size-change="questionBankSizeChange"
            @row-update="questionBankRowUpdate"
            @refresh-change="refreshChange"
          >
            <template slot-scope="{ row }" slot="learnGrade">
              {{ row.learnGrade == -1 ? "暂未录入" : row.learnGrade }}
@@ -38,7 +39,17 @@
              {{ row.allGrade == -1 ? "" : row.allGrade }}
            </template>
            <template slot-scope="{ row }" slot="qualified">
              {{ row.qualified == -1 ? "" : row.qualified==0?"合格":row.qualified==1?"不合格":row.qualified==3?"缺考,成绩无效":'' }}
              {{
                row.qualified == -1
                  ? ""
                  : row.qualified == 0
                  ? "合格"
                  : row.qualified == 1
                  ? "不合格"
                  : row.qualified == 3
                  ? "缺考,成绩无效"
                  : ""
              }}
            </template>
            <template slot-scope="{ row }" slot="menu">
@@ -139,7 +150,7 @@
            label: "考试名称",
            prop: "examName",
            search: true,
            searchSpan: 5,
            searchSpan: 4,
            slot: true,
            viewDisplay:false,
            // 表单新增时是否禁止
@@ -162,10 +173,40 @@
              },
            ],
            // overHidden:true,
             width:250,
            width: 210,
          },
          {
            label: "用户名",
            label: "姓名",
            prop: "securityName",
            search: true,
            searchSpan: 3,
            slot: true,
            viewDisplay: true,
            // 表单新增时是否禁止
            addDisabled: false,
            // 表单新增时是否可见
            addDisplay: true,
            // 表单新增时是否为查看模式
            addDetail: false,
            // 表单编辑时是否禁止
            editDisabled: true,
            viewDisabled: true,
            // 表单编辑时是否可见
            editDisplay: true,
            // 表单编辑时是否为查看模式
            editDetail: false,
            rules: [
              {
                required: true,
                message: "请输入试卷名称",
                trigger: "blur",
              },
            ],
            width: 80,
            // overHidden:true,
          },
          {
            label: "身份证号",
            prop: "account",
            search: true,
            searchSpan: 4,
@@ -230,7 +271,7 @@
            // span: 24,
            format: "yyyy-MM-dd HH:mm:ss",
            valueFormat: "yyyy-MM-dd HH:mm:ss",
            width: 160,
            width: 140,
            slot: true,
            // 表单新增时是否禁止
            addDisabled: false,
@@ -252,7 +293,7 @@
            // span: 24,
            format: "yyyy-MM-dd HH:mm:ss",
            valueFormat: "yyyy-MM-dd HH:mm:ss",
            width: 160,
            width: 140,
            slot: true,
            // 表单新增时是否禁止
            addDisabled: false,
@@ -284,6 +325,7 @@
                value: 3,
              },
            ],
            width: 60,
            // 表单新增时是否禁止
            addDisabled: false,
            // 表单新增时是否可见
@@ -357,11 +399,13 @@
              editDisplay: true,
              // 表单编辑时是否为查看模式
              editDetail: false,
              rules: [{
            rules: [
              {
                  required: true,
                  message: "请输入考试名称",
                  trigger: "blur"
              }]
                trigger: "blur",
              },
            ],
          },
          {
            label: "是否合格",
@@ -370,6 +414,7 @@
            slot: true,
            search: true,
            searchSpan: 3,
            width: 110,
            dicData: [
              {
                label: "合格",
@@ -420,7 +465,7 @@
  },
  created() {
    // console.log(this.$route.query,111);
    this.questionBankSearch['examName'] = this.$route.query.examName;
    this.questionBankSearch["examName"] = this.$route.query.examName;
  },
  mounted() {},
  computed:{
@@ -431,7 +476,10 @@
        viewBtn: this.vaildData(null, false),
        delBtn: this.vaildData(null, false),
        editBtn: this.vaildData(null, false),
        excelBtn: this.vaildData(this.permission.trainExam_performance_export, false),
        excelBtn: this.vaildData(
          this.permission.trainExam_performance_export,
          false
        ),
      };
    },
  },
@@ -454,16 +502,11 @@
      roleIds.forEach((roleId) => {
        getRoleDetail(roleId).then((res) => {
            var roleAlias = res.data.data.roleAlias;
            if (
              roleAlias == "保安公司管理员" ||
              roleAlias == "保安"
            ) {
          if (roleAlias == "保安公司管理员" || roleAlias == "保安") {
              //如果是保安公司管理员
              params["deptId"] = that.userInfo.dept_id;
            }
            if (
              roleAlias == "培训公司管理员"
            ) {
          if (roleAlias == "培训公司管理员") {
              //如果是培训公司管理员
              params["trainUnitId"] = that.userInfo.dept_id;
            }
@@ -472,7 +515,7 @@
            getList(
              page.currentPage,
              page.pageSize,
              Object.assign(params, this.query)
            Object.assign(params, this.questionBankQuery)
            ).then((res) => {
              const data = res.data.data;
              that.questionBankPage.total = data.total;
@@ -480,9 +523,8 @@
              that.questionBankLoading = false;
              that.questionBankSelectionClear();
            });
        })
      });
      });
    },
    questionBankSelectionClear() {
      this.questionBankSelectionList = [];
@@ -528,6 +570,9 @@
        }
      );
    },
    refreshChange() {
      this.questionBankOnLoad(this.questionBankPage, this.questionBankQuery);
    },
  },
};
</script>