diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java index 05841c76..2aa65af5 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/controller/AnnualCompetitionProjectRegistrationController.java @@ -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) diff --git a/jeecgboot-vue3-master/src/views/annualcompetitionprojectregistration/student/AnnualCompetitionProjectRegistration.data.ts b/jeecgboot-vue3-master/src/views/annualcompetitionprojectregistration/student/AnnualCompetitionProjectRegistration.data.ts index 0b662249..15da55c8 100644 --- a/jeecgboot-vue3-master/src/views/annualcompetitionprojectregistration/student/AnnualCompetitionProjectRegistration.data.ts +++ b/jeecgboot-vue3-master/src/views/annualcompetitionprojectregistration/student/AnnualCompetitionProjectRegistration.data.ts @@ -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',