专家年度比赛不显示

main
王家东 4 months ago
parent 2d39b68515
commit d26e441fbb
  1. 6
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/controller/AnnualCompController.java
  2. 19
      jeecgboot-vue3-master/src/views/annualcomp/annualcomp/AnnualComp.data.ts

@ -122,6 +122,12 @@ public class AnnualCompController extends JeecgController<AnnualComp, IAnnualCom
{
queryWrapper.in("compid",needlist);
IPage<AnnualComp> pageList = annualCompService.page(page, queryWrapper);
for(int i=0;i<pageList.getRecords().size();i++){
Comp comp = compService.getById(pageList.getRecords().get(i).getCompid());
pageList.getRecords().get(i).setCompid(comp.getCompName());
Annual annual = annualService.getById(pageList.getRecords().get(i).getAnnualid());
pageList.getRecords().get(i).setAnnualid(annual.getAnnualName());
}
return Result.OK(pageList);
}else
{

@ -7,12 +7,12 @@ export const columns: BasicColumn[] = [
{
title: '比赛名称',
align: 'center',
dataIndex: 'compname',
dataIndex: 'compid',
},
{
title: '年度名称',
align: 'center',
dataIndex: 'annualname',
dataIndex: 'annualid',
},
{
title: '赛次',
@ -24,11 +24,11 @@ export const columns: BasicColumn[] = [
align: 'center',
dataIndex: 'name',
},
{
/* {
title: '年度比赛状态',
align: 'center',
dataIndex: 'state_dictText',
},
},*/
];
//查询数据
export const searchFormSchema: FormSchema[] = [
@ -66,7 +66,7 @@ export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
{
/* {
label: '比赛名称',
field: 'compname',
component: 'JPopup',
@ -83,7 +83,16 @@ export const formSchema: FormSchema[] = [
dynamicRules: ({ model, schema }) => {
return [{ required: true, message: '请输入比赛名称!' }];
},
},*/
{
label: '比赛名称',
field: 'compid',
component: 'Input',
},
{
label: '年度名称',
field: 'annualid',

Loading…
Cancel
Save