学生报名传入名字修改为id

main
王家东 4 months ago
parent 671892cf75
commit 73b2edc618
  1. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java
  2. 14
      jeecgboot-vue3-master/src/views/annualcompetitionprojectregistration/student/AnnualCompetitionProjectRegistration.data.ts

@ -595,7 +595,7 @@ public class AnnualCompetitionProjectRegistrationController {
//设置报名编号
management.setEnrollCode(enrollCode);
//根据名称查用户id(如果前端传的只是姓名的话)
SysUser user = sysUserService.query().eq("realname", management.getUserId()).one();
SysUser user = sysUserService.query().eq("id", management.getUserId()).one();
management.setUserId(user.getId());
//补全用户未输入信息 -- 是否队长
if (management.getCaptain() == null)

@ -114,15 +114,25 @@ export const formSchema: FormSchema[] = [
export const teamManagementColumns: JVxeColumn[] = [
{
title: '用户',
key: 'userId',
key: 'realname',
type: JVxeTypes.popup,
popupCode: 'user_code',
fieldConfig: [{source: 'realname', target: 'userId'}],
fieldConfig: [
{source: 'id', target: 'userId'},
{ source: 'realname', target: 'realname' }
],
width: '200px',
placeholder: '请输入${title}',
defaultValue: '',
},
{
label: '',
field: 'userId',
component: 'Input',
show: false,
},
{
title: '是否队长',
key: 'captain',

Loading…
Cancel
Save