Administrator
2022-03-01 3bf5081592d976eb648dd4dcdce2521c624b9af6
报名清册样式调整
1 files modified
47 ■■■■■ changed files
src/views/trainApply/index.vue 47 ●●●●● patch | view | raw | blame | history
src/views/trainApply/index.vue
@@ -6,19 +6,16 @@
 * menu-name 报名考试
 */
<template>
  <el-row class="morpheus-box-apply-exam-1">
    <el-col
      :span="24"
  <!-- class="exam-card-body" -->
  <basic-container
      :class="[
      $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize',
      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : ''
      $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '',
    ]"
    >
      <el-card>
        <div class="exam-card-body">
          <avue-crud
            v-model="obj"
            class="company-box"
      class="company-box tablesss"
            :option="questionBankOption"
            :search.sync="questionBankSearch"
            :table-loading="questionBankLoading"
@@ -79,9 +76,7 @@
                size="small"
                icon="el-icon-receiving"
                :disabled="
                  row.candidateNo == '' ||
                  row.cancel == 2 ||
                  row.auditStatus == 2
            row.candidateNo == '' || row.cancel == 2 || row.auditStatus == 2
                "
                @click="handlePrint(row)"
                >准考证打印
@@ -90,9 +85,7 @@
                :type="type"
                size="small"
                icon="el-icon-refresh-left"
                :disabled="
                  row.cancel == 2 || row.isExam == 2 || row.isExam == 3
                "
          :disabled="row.cancel == 2 || row.isExam == 2 || row.isExam == 3"
                @click="revoke(row)"
                >取消报名
              </el-button>
@@ -113,7 +106,6 @@
                :type="type"
                >缴费确认</el-button
              >
            </template>
          </avue-crud>
@@ -135,10 +127,7 @@
              </template>
            </avue-form>
          </el-dialog>
        </div>
      </el-card>
    </el-col>
  </el-row>
  </basic-container>
</template>
<script>
@@ -149,7 +138,7 @@
  cancelTrain,
  auditSucess,
  remove,
  vipSign
  vipSign,
} from "@/api/trainingRegistration/trainingRegistration";
import Qs from "qs";
import { getToken } from "@/util/auth";
@@ -294,7 +283,7 @@
              },
            ],
            width: 180,
            overHidden:true
            overHidden: true,
          },
          {
            label: "所属企业",
@@ -322,7 +311,7 @@
              },
            ],
            width: 200,
            overHidden:true
            overHidden: true,
          },
          {
            label: "报名状态",
@@ -702,6 +691,7 @@
    if (i > 1) {
      this.$store.state.tags.tagList.splice(ind, 1);
    }
    this.$store.commit("setWindowSizeHeightAdd");
  },
  computed: {
    ...mapState({
@@ -720,9 +710,9 @@
        addBtn: this.vaildData(this.permission.notice_add, false),
        viewBtn: this.vaildData(this.permission.notice_view, false),
        delBtn: this.vaildData(this.permission.notice_delete, false),
        editBtn: this.vaildData(this.permission.notice_edit, false)
        editBtn: this.vaildData(this.permission.notice_edit, false),
      };
    }
    },
  },
  methods: {
    //报名信息导出
@@ -743,7 +733,7 @@
          auditStatus: this.questionBankSearch.auditStatus,
          deptName: this.questionBankSearch.deptName,
          isExam: this.questionBankSearch.isExam,
          realName: this.questionBankSearch.realName
          realName: this.questionBankSearch.realName,
        };
        data["examId"] = this.$route.query.id;
        //序列号url形式,用&拼接
@@ -788,6 +778,7 @@
        this.questionBankData = data.records;
        this.questionBankLoading = false;
        this.questionBankSelectionClear();
        this.$store.commit("setWindowSizeHeightAdd");
      });
    },
    questionBankSelectionClear() {
@@ -865,21 +856,21 @@
        this.$confirm("确定将选择当前人员确认已缴费?", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        type: "warning",
      })
        .then(() => {
          var data = {
            id : row.id,
            userId:row.userId,
            vipStatus :1
          }
            vipStatus: 1,
          };
          return vipSign(data);
        })
        .then(() => {
          this.onLoad(this.page);
          this.$message({
            type: "success",
            message: "操作成功!"
            message: "操作成功!",
          });
        });
    },