权限控制
This commit is contained in:
parent
1c445c1888
commit
d98dade6af
@ -42,6 +42,7 @@ public class HitRegInfo extends BaseEntity
|
||||
|
||||
/** 赛事 */
|
||||
@ApiModelProperty(value = "赛事")
|
||||
@TableField(exist = false)
|
||||
private String competition;
|
||||
|
||||
/** 团队名称(个人赛不需求,可以为空) */
|
||||
|
@ -160,7 +160,7 @@ public class HitRegInfoUserServiceImpl implements IHitRegInfoUserService
|
||||
@Override
|
||||
public HitRegInfoUser selectByUserId(Long id) {
|
||||
LambdaQueryWrapper<HitRegInfoUser> queryWrapper =new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(HitRegInfoUser::getUserId,id);
|
||||
queryWrapper.eq(HitRegInfoUser::getUserId,id).last("limit 1");
|
||||
return hitRegInfoUserMapper.selectOne(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
@ -146,12 +146,11 @@
|
||||
|
||||
<!-- 指导老师 -->
|
||||
<el-popconfirm title="确定当前操作?" v-if="techerType == '0' && zdTeacherList.includes(userId)"
|
||||
@confirm="submitData(1)">
|
||||
@confirm="submitData(1,scope.row.id)">
|
||||
<el-button size="mini" type="text" slot="reference">同意</el-button>
|
||||
|
||||
</el-popconfirm>
|
||||
<el-popconfirm title="确定当前操作?" style="margin-left: 10px"
|
||||
v-if="techerType == '0' && zdTeacherList.includes(userId)" @confirm="submitData(2)">
|
||||
v-if="techerType == '0' && zdTeacherList.includes(userId)" @confirm="submitData(2,scope.row.id)">
|
||||
<el-button size="mini" type="text" slot="reference">拒绝</el-button>
|
||||
|
||||
</el-popconfirm>
|
||||
@ -302,8 +301,10 @@ export default {
|
||||
})
|
||||
},
|
||||
//指导老师同意
|
||||
submitData(status) {
|
||||
submitData(status,regId) {
|
||||
this.registrationInformation.status = status
|
||||
this.registrationInformation.regId = regId
|
||||
|
||||
console.log("这是提交的信息", this.registrationInformation)
|
||||
editRegUser(this.registrationInformation).then(res => {
|
||||
this.$modal.msgSuccess("成功")
|
||||
|
Loading…
Reference in New Issue
Block a user