liuyg
2021-09-24 c4e67a8942e514b65ab41bb19781d50576c15725
src/views/applydetailed/index.vue
@@ -36,16 +36,15 @@
                plain
                icon="el-icon-download"
                @click="handleExport"
                >清册生成
                >清册打印
              </el-button>
              <el-button
                style="display:none"
                type="success"
                size="small"
                plain
                icon="el-icon-receiving"
                @click="handleImport"
                >清册打印
                >清册导入
              </el-button>
            </template>
@@ -54,7 +53,7 @@
                :type="type"
                size="small"
                icon="el-icon-receiving"
                :disabled="row.applyStatus == 4"
                :disabled="row.candidateNo==''"
                @click="handlePrint(row)"
                >准考证打印
              </el-button>
@@ -104,6 +103,7 @@
export default {
  data() {
    var examId = this.$route.query.id;
    return {
      obj: {
        name: "张三",
@@ -136,41 +136,41 @@
        menuWidth: 200,
        column: [
          {
            label: "保安姓名",
            prop: "userId",
            type: "tree",
            dicUrl: "",
            hide: true,
            slot: true,
            searchSpan: 4,
            // 表单新增时是否禁止
            addDisabled: false,
            // 表单新增时是否可见
            addDisplay: true,
            // 表单新增时是否为查看模式
            addDetail: false,
            // 表单编辑时是否禁止
            editDisabled: true,
            viewDisabled: false,
            // 表单编辑时是否可见
            editDisplay: true,
            viewDisplay: false,
            // 表单编辑时是否为查看模式
            editDetail: false,
            props: {
              label: "title",
              value: "id",
            },
            rules: [
              {
                required: true,
                message: "请选择保安姓名",
                trigger: "blur",
              },
            ],
            width: 80,
          },
          // {
          //   label: "保安姓名",
          //   prop: "userId",
          //   type: "tree",
          //   dicUrl: "",
          //   hide: true,
          //   slot: true,
          //   searchSpan: 4,
          //   // 表单新增时是否禁止
          //   addDisabled: false,
          //   // 表单新增时是否可见
          //   addDisplay: true,
          //   // 表单新增时是否为查看模式
          //   addDetail: false,
          //   // 表单编辑时是否禁止
          //   editDisabled: true,
          //   viewDisabled: false,
          //   // 表单编辑时是否可见
          //   editDisplay: true,
          //   viewDisplay: false,
          //   // 表单编辑时是否为查看模式
          //   editDetail: false,
          //   props: {
          //     label: "title",
          //     value: "id",
          //   },
          //   rules: [
          //     {
          //       required: true,
          //       message: "请选择保安姓名",
          //       trigger: "blur",
          //     },
          //   ],
          //   width: 80,
          // },
          {
            label: "保安姓名",
            prop: "realName",
@@ -462,7 +462,7 @@
              res: "data",
            },
            tip: "请上传 .xls,.xlsx 标准格式文件",
            action: "/api/apply/import-apply",
            action: "/api/apply/import-applys?examId="+examId,
          },
          {
            label: "模板下载",
@@ -477,14 +477,14 @@
  created() {
    console.log(this.userInfo);
    if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) {
      this.questionBankOption.column[0].dicUrl =
        "/api/blade-system/dept/lazy-tree-user?parentId=";
    } else {
      this.questionBankOption.column[0].dicUrl =
        "/api/blade-system/dept/lazy-tree-user?parentId=" +
        this.userInfo.dept_id;
    }
    // if (this.userInfo.role_name.indexOf("ksxtadmin") != -1) {
    //   this.questionBankOption.column[0].dicUrl =
    //     "/api/blade-system/dept/lazy-tree-user?parentId=";
    // } else {
    //   this.questionBankOption.column[0].dicUrl =
    //     "/api/blade-system/dept/lazy-tree-user?parentId=" +
    //     this.userInfo.dept_id;
    // }
  },
  mounted() {
    var flag = false,
@@ -538,6 +538,7 @@
    questionBankOnLoad(page, params = {}) {
      // debugger;
      params["examId"] = this.$route.query.id;
      // params["applyStatus"] = 2;
      this.questionBankLoading = false;
      getApplyList(
        page.currentPage,