Administrator
2021-08-06 fa72be7e5e5d2b58a079e2896e5a2208fa6b8e13
报名考试去重,同一场考试,审核通过的,已报考的人员不能再报名
3 files modified
27 ■■■■ changed files
src/styles/element-ui.scss 2 ●●● patch | view | raw | blame | history
src/views/applyexam/index.vue 22 ●●●● patch | view | raw | blame | history
src/views/trainingRegistration/index.vue 3 ●●●● patch | view | raw | blame | history
src/styles/element-ui.scss
@@ -136,7 +136,7 @@
.recruitmentManagement .el-card.is-never-shadow.avue-crud__search {
    width: calc(100% - 380px) !important;
    left: 200px !important;
    left: 120px !important;
}
.hasButOne .el-card.is-never-shadow.avue-crud__search {
src/views/applyexam/index.vue
@@ -202,7 +202,7 @@
                        label: "考试名称",
                        prop: "examName",
                        type: 'tree',
                        dicUrl: '/api/exampaper/page-tree',
                        dicUrl: '/api/exampaper/page-tree?examType=1',
                        // search: true,
                        slot: true,
                        // 表单新增时是否禁止
@@ -528,12 +528,24 @@
        // 新增
        questionBankRowSave (row, done, loading) {
            // debugger;
            addApply({ userId: row.userId, examId: row.examName, applyTime: row.applyTime }).then(() => {
            addApply({ userId: row.userId, examId: row.examName, applyTime: row.applyTime }).then((res) => {
                this.questionBankOnLoad(this.questionBankPage);
                this.$message({
                if(res.data.data==201){
                    this.$message({
                    type: "warning",
                    message:"已报名,不能重复报名",
                    });
                }else if(res.data.data==201){
                    this.$message({
                    type: "warning",
                    message:"报名失败",
                    });
                }else{
                    this.$message({
                    type: "success",
                    message: "操作成功!"
                });
                    message:"报名成功",
                    });
                }
                done();
            }, error => {
                window.console.log(error);
src/views/trainingRegistration/index.vue
@@ -23,6 +23,7 @@
    >
      <template slot="menuLeft">
        <el-button
          style="display:none"
          type="danger"
          size="small"
          plain
@@ -87,6 +88,7 @@
        selection: true,
        column: column,
        delBtn: false,
        editBtn: false,
      },
    };
  },
@@ -116,7 +118,6 @@
      adddata(form).then(
        (res) => {
          this.onLoad(this.page);
          debugger;
          if(res.data.data==201){
            this.$message({
              type: "warning",