报名考试去重,同一场考试,审核通过的,已报考的人员不能再报名
| | |
| | | |
| | | .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 { |
| | |
| | | label: "考试名称", |
| | | prop: "examName", |
| | | type: 'tree', |
| | | dicUrl: '/api/exampaper/page-tree', |
| | | dicUrl: '/api/exampaper/page-tree?examType=1', |
| | | // search: true, |
| | | slot: true, |
| | | // 表单新增时是否禁止 |
| | |
| | | // 新增 |
| | | 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); |
| | |
| | | > |
| | | <template slot="menuLeft"> |
| | | <el-button |
| | | style="display:none" |
| | | type="danger" |
| | | size="small" |
| | | plain |
| | |
| | | selection: true, |
| | | column: column, |
| | | delBtn: false, |
| | | editBtn: false, |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | adddata(form).then( |
| | | (res) => { |
| | | this.onLoad(this.page); |
| | | debugger; |
| | | if(res.data.data==201){ |
| | | this.$message({ |
| | | type: "warning", |