significative 4 months ago
commit 439a88bc43
  1. 34
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
  2. 109
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java
  3. 15
      jeecgboot-vue3-master/src/utils/helper/validator.ts
  4. 3
      jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
  5. 7
      jeecgboot-vue3-master/src/views/expscore/components/ExpScoreModal.vue
  6. 15
      jeecgboot-vue3-master/src/views/system/user/userYX.data.ts

@ -337,6 +337,15 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
@GetMapping(value = "/cjhz") @GetMapping(value = "/cjhz")
public Result<String> cjhz(@RequestParam(name = "id", required = true) String id,HttpServletRequest req) { public Result<String> cjhz(@RequestParam(name = "id", required = true) String id,HttpServletRequest req) {
AnnualCompPoint annualCompPoint = annualCompPointService.getById(id); AnnualCompPoint annualCompPoint = annualCompPointService.getById(id);
QueryWrapper<ScorePersion> queryWrappersc = new QueryWrapper<>();
queryWrappersc.eq("annual_compid",annualCompPoint.getAnnualCompId());
queryWrappersc.eq("annual_comp_p",annualCompPoint.getId());
List<ScorePersion> listsc = scorePersionService.list(queryWrappersc);
if(listsc.size()>0){
for (int k = 0 ; k < listsc.size() ; k++){
scorePersionService.removeById(listsc.get(k).getId());
}
}
QueryWrapper<ExpScore> queryWrapper = new QueryWrapper<>(); QueryWrapper<ExpScore> queryWrapper = new QueryWrapper<>();
queryWrapper.select("bmcode,SUM(score) as score"); queryWrapper.select("bmcode,SUM(score) as score");
queryWrapper.eq("ann_com_p",id); queryWrapper.eq("ann_com_p",id);
@ -516,12 +525,22 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
if(list.size()==0){ if(list.size()==0){
return Result.error("未设置年度比赛奖项!"); return Result.error("未设置年度比赛奖项!");
} }
QueryWrapper<AwardPersion> queryWrapperap = new QueryWrapper<>();
queryWrapperap.eq("annal_comp",annualCompPoint.getAnnualCompId());
queryWrapperap.eq("annual_comp_p",annualCompPoint.getId());
List<AwardPersion> listap = awardPersionService.list(queryWrapperap);
if(listap.size()>0){
for (int k = 0 ; k < listap.size() ; k++){
awardPersionService.removeById(listap.get(k).getId());
}
}
QueryWrapper<ScorePersion> queryWrappersp = new QueryWrapper<>(); QueryWrapper<ScorePersion> queryWrappersp = new QueryWrapper<>();
queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid()); queryWrappersp.eq("annualid",annualCompService.getById(annualCompPoint.getAnnualCompId()).getAnnualid());
queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId()); queryWrappersp.eq("annual_compid",annualCompPoint.getAnnualCompId());
queryWrappersp.eq("annual_comp_p",id); queryWrappersp.eq("annual_comp_p",id);
queryWrappersp.orderByAsc("sort"); queryWrappersp.orderByAsc("sort");
List<ScorePersion> listsp = scorePersionService.list(queryWrappersp); List<ScorePersion> listsp = scorePersionService.list(queryWrappersp);
try {
for (int i = 0 ; i<list.size();i++){ for (int i = 0 ; i<list.size();i++){
if(list.get(i).getIsFirstPrize().equals("Y")){ if(list.get(i).getIsFirstPrize().equals("Y")){
String name1 = list.get(i).getFirstPrize(); String name1 = list.get(i).getFirstPrize();
@ -643,9 +662,12 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
awardPersionService.save(awardPersion); awardPersionService.save(awardPersion);
} }
} }
annualCompPoint.setIsPj(1);
annualCompPointService.updateById(annualCompPoint);
} }
}catch (Exception e){
return Result.error("参与评奖人数少于年度比赛奖项设置的数量");
}
annualCompPoint.setIsPj(1);
annualCompPointService.updateById(annualCompPoint);
return Result.OK("成功!"); return Result.OK("成功!");
} }
@ -684,6 +706,7 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
queryWrappersp.eq("annual_comp_p",awardPersion.getAnnualCompP()); queryWrappersp.eq("annual_comp_p",awardPersion.getAnnualCompP());
queryWrappersp.orderByAsc("sort"); queryWrappersp.orderByAsc("sort");
List<ScorePersion> listsp = scorePersionService.list(queryWrappersp); List<ScorePersion> listsp = scorePersionService.list(queryWrappersp);
try {
for (int i = 0 ; i<list.size();i++){ for (int i = 0 ; i<list.size();i++){
if(list.get(i).getIsFirstPrize().equals("Y")){ if(list.get(i).getIsFirstPrize().equals("Y")){
String name1 = list.get(i).getFirstPrize(); String name1 = list.get(i).getFirstPrize();
@ -816,9 +839,12 @@ public class AnnualCompPointController extends JeecgController<AnnualCompPoint,
} }
} }
} }
annualCompPoint.setIsPj(1);
annualCompPointService.updateById(annualCompPoint);
} }
}catch (Exception e){
return Result.error("参与评奖人数少于年度比赛奖项设置的数量");
}
annualCompPoint.setIsPj(1);
annualCompPointService.updateById(annualCompPoint);
return Result.OK("成功!"); return Result.OK("成功!");
} }

@ -26,7 +26,6 @@ import org.jeecg.modules.demo.annualcompetitionprojectregistration.service.IAnnu
import org.jeecg.modules.demo.annualcompetitionprojectregistration.service.ITeamManagementService; import org.jeecg.modules.demo.annualcompetitionprojectregistration.service.ITeamManagementService;
import org.jeecg.modules.demo.awardpersion.entity.AwardPersion; import org.jeecg.modules.demo.awardpersion.entity.AwardPersion;
import org.jeecg.modules.demo.awardpersion.service.IAwardPersionService; import org.jeecg.modules.demo.awardpersion.service.IAwardPersionService;
import org.jeecg.modules.demo.bigScreen.vo.CompVo;
import org.jeecg.modules.demo.comp.entity.Comp; import org.jeecg.modules.demo.comp.entity.Comp;
import org.jeecg.modules.demo.comp.service.ICompService; import org.jeecg.modules.demo.comp.service.ICompService;
import org.jeecg.modules.demo.comptype.entity.CompType; import org.jeecg.modules.demo.comptype.entity.CompType;
@ -524,24 +523,26 @@ public class UserHomePageServiceImpl implements UserHomePageService {
Map<String, Object> departMap = new LinkedHashMap<>(); Map<String, Object> departMap = new LinkedHashMap<>();
departMap.put("部门名称", depart.getDepartName()); departMap.put("部门名称", depart.getDepartName());
//报名列表 //报名列表
List<AnnualCompetitionProjectRegistration> registrationList = iAnnualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>() if (!ObjectUtils.isEmpty(pointIds4Depart)) {
.in(!ObjectUtils.isEmpty(pointIds4Depart), AnnualCompetitionProjectRegistration::getAnnualCompid, pointIds4Depart)); List<AnnualCompetitionProjectRegistration> registrationList = iAnnualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>()
if (!ObjectUtils.isEmpty(registrationList)) { .in(AnnualCompetitionProjectRegistration::getAnnualCompid, pointIds4Depart));
//报名编号 if (!ObjectUtils.isEmpty(registrationList)) {
Set<String> enrollCodes = Optional.ofNullable(registrationList).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet()); //报名编号
Long count = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(TeamManagement::getEnrollCode, enrollCodes)); Set<String> enrollCodes = Optional.ofNullable(registrationList).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet());
departMap.put("比赛总人数", count); Long count = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(TeamManagement::getEnrollCode, enrollCodes));
//个人赛报名数 departMap.put("比赛总人数", count);
List<AnnualCompetitionProjectRegistration> registrationList4Stu = registrationList.stream().filter(b -> b.getEntryFormat().equals("0")).collect(Collectors.toList()); //个人赛报名数
Set<String> enrollCodes4Stu = Optional.ofNullable(registrationList4Stu).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet()); List<AnnualCompetitionProjectRegistration> registrationList4Stu = registrationList.stream().filter(b -> b.getEntryFormat().equals("0")).collect(Collectors.toList());
Long count4Stu = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(!ObjectUtils.isEmpty(enrollCodes4Stu), TeamManagement::getEnrollCode, enrollCodes4Stu)); Set<String> enrollCodes4Stu = Optional.ofNullable(registrationList4Stu).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet());
//学生人数 Long count4Stu = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(!ObjectUtils.isEmpty(enrollCodes4Stu), TeamManagement::getEnrollCode, enrollCodes4Stu));
departMap.put("个人赛人数", count4Stu); //学生人数
departMap.put("团队赛人数", count - count4Stu); departMap.put("个人赛人数", count4Stu);
departMap.put("团队赛人数", count - count4Stu);
}
} }
canSaiList.add(departMap); canSaiList.add(departMap);
List<AwardPersion> awardPersionList4Depart = iAwardPersionService.list(new LambdaQueryWrapper<AwardPersion>().eq(AwardPersion::getAnnualCompP, pointIds4Depart)); /*List<AwardPersion> awardPersionList4Depart = iAwardPersionService.list(new LambdaQueryWrapper<AwardPersion>().eq(AwardPersion::getAnnualCompP, pointIds4Depart));
Map<String, Object> departHuoJiangMap = new LinkedHashMap<>(); Map<String, Object> departHuoJiangMap = new LinkedHashMap<>();
departHuoJiangMap.put("部门名称", depart.getDepartName()); departHuoJiangMap.put("部门名称", depart.getDepartName());
departHuoJiangMap.put("获取人数", awardPersionList4Depart.size()); departHuoJiangMap.put("获取人数", awardPersionList4Depart.size());
@ -551,10 +552,10 @@ public class UserHomePageServiceImpl implements UserHomePageService {
Optional.ofNullable(awardNameMap).orElse(new LinkedHashMap<>()).forEach((key, value) -> { Optional.ofNullable(awardNameMap).orElse(new LinkedHashMap<>()).forEach((key, value) -> {
departHuoJiangMap.put(depart.getDepartName() + "-" + key, value.size()); departHuoJiangMap.put(depart.getDepartName() + "-" + key, value.size());
}); });
huoJiangList.add(departHuoJiangMap); huoJiangList.add(departHuoJiangMap);*/
}); });
resultMap.put("部门参赛情况列表", canSaiList); resultMap.put("部门参赛情况列表", canSaiList);
resultMap.put("部门获奖情况列表", huoJiangList); // resultMap.put("部门获奖情况列表", huoJiangList);
List<HomePageCompVo> scoreList4Point = new LinkedList<>(); List<HomePageCompVo> scoreList4Point = new LinkedList<>();
List<PersonalCompScore> personalCompScores = iPersonalCompScoreService.list(new LambdaQueryWrapper<PersonalCompScore>().eq(PersonalCompScore::getAnnualCompP, annualCompPointIds)); List<PersonalCompScore> personalCompScores = iPersonalCompScoreService.list(new LambdaQueryWrapper<PersonalCompScore>().eq(PersonalCompScore::getAnnualCompP, annualCompPointIds));
@ -585,9 +586,15 @@ public class UserHomePageServiceImpl implements UserHomePageService {
private List<AnnualCompPoint> convertPoint4Depart(SysDepart depart) { private List<AnnualCompPoint> convertPoint4Depart(SysDepart depart) {
List<Comp> compList = iCompService.list(new LambdaQueryWrapper<Comp>().eq(Comp::getCompOrgan, depart.getId())); List<Comp> compList = iCompService.list(new LambdaQueryWrapper<Comp>().eq(Comp::getCompOrgan, depart.getId()));
Set<String> compIds = Optional.ofNullable(compList).orElse(new ArrayList<>()).stream().map(comp -> comp.getId()).collect(Collectors.toSet()); Set<String> compIds = Optional.ofNullable(compList).orElse(new ArrayList<>()).stream().map(comp -> comp.getId()).collect(Collectors.toSet());
List<AnnualComp> annualCompList = iAnnualCompService.list(new LambdaQueryWrapper<AnnualComp>().in(!ObjectUtils.isEmpty(compIds), AnnualComp::getCompid, compIds)); List<AnnualCompPoint> pointList = new LinkedList<>();
Set<String> annualCompIds = Optional.ofNullable(annualCompList).orElse(new ArrayList<>()).stream().map(annualComp -> annualComp.getId()).collect(Collectors.toSet()); if (!ObjectUtils.isEmpty(compIds)) {
return iAnnualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>().in(!ObjectUtils.isEmpty(annualCompIds), AnnualCompPoint::getAnnualCompId, annualCompIds)); List<AnnualComp> annualCompList = iAnnualCompService.list(new LambdaQueryWrapper<AnnualComp>().in(AnnualComp::getCompid, compIds));
Set<String> annualCompIds = Optional.ofNullable(annualCompList).orElse(new ArrayList<>()).stream().map(annualComp -> annualComp.getId()).collect(Collectors.toSet());
if (!ObjectUtils.isEmpty(annualCompIds)) {
pointList = iAnnualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>().in(AnnualCompPoint::getAnnualCompId, annualCompIds));
}
}
return pointList;
} }
@Override @Override
@ -609,7 +616,7 @@ public class UserHomePageServiceImpl implements UserHomePageService {
List<AnnualComp> annualCompList = iAnnualCompService.list(new LambdaQueryWrapper<AnnualComp>() List<AnnualComp> annualCompList = iAnnualCompService.list(new LambdaQueryWrapper<AnnualComp>()
.eq(AnnualComp::getAnnualid, annual.getId()) .eq(AnnualComp::getAnnualid, annual.getId())
.in(AnnualComp::getCompid, compIds)); .in(!ObjectUtils.isEmpty(compIds),AnnualComp::getCompid, compIds));
Set<String> annualCompIds = Optional.ofNullable(annualCompList).orElse(new LinkedList<>()).stream().map(obj -> obj.getId()).collect(Collectors.toSet()); Set<String> annualCompIds = Optional.ofNullable(annualCompList).orElse(new LinkedList<>()).stream().map(obj -> obj.getId()).collect(Collectors.toSet());
List<AnnualCompPoint> annualCompPointList = iAnnualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>().in(AnnualCompPoint::getAnnualCompId, annualCompIds)); List<AnnualCompPoint> annualCompPointList = iAnnualCompPointService.list(new LambdaQueryWrapper<AnnualCompPoint>().in(AnnualCompPoint::getAnnualCompId, annualCompIds));
@ -763,26 +770,28 @@ public class UserHomePageServiceImpl implements UserHomePageService {
Set<String> pointIds4Depart = Optional.ofNullable(pointList4Depart).orElse(new ArrayList<>()).stream().map(obj -> obj.getId()).collect(Collectors.toSet()); Set<String> pointIds4Depart = Optional.ofNullable(pointList4Depart).orElse(new ArrayList<>()).stream().map(obj -> obj.getId()).collect(Collectors.toSet());
Map<String, Object> departMap = new LinkedHashMap<>(); Map<String, Object> departMap = new LinkedHashMap<>();
departMap.put("部门名称", sysDepart.getDepartName()); departMap.put("部门名称", sysDepart.getDepartName());
//报名列表 if (!ObjectUtils.isEmpty(pointIds4Depart)) {
List<AnnualCompetitionProjectRegistration> registrationList = iAnnualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>() //报名列表
.in(AnnualCompetitionProjectRegistration::getAnnualCompid, pointIds4Depart)); List<AnnualCompetitionProjectRegistration> registrationList = iAnnualCompetitionProjectRegistrationService.list(new LambdaQueryWrapper<AnnualCompetitionProjectRegistration>()
if (!ObjectUtils.isEmpty(registrationList)) { .in(AnnualCompetitionProjectRegistration::getAnnualCompid, pointIds4Depart));
//报名编号 if (!ObjectUtils.isEmpty(registrationList)) {
Set<String> enrollCodes = Optional.ofNullable(registrationList).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet()); //报名编号
Long count = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(TeamManagement::getEnrollCode, enrollCodes)); Set<String> enrollCodes = Optional.ofNullable(registrationList).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet());
departMap.put("比赛总人数", count); Long count = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(TeamManagement::getEnrollCode, enrollCodes));
//个人赛报名数 departMap.put("比赛总人数", count);
List<AnnualCompetitionProjectRegistration> registrationList4Stu = registrationList.stream().filter(b -> b.getEntryFormat().equals("0")).collect(Collectors.toList()); //个人赛报名数
Set<String> enrollCodes4Stu = Optional.ofNullable(registrationList4Stu).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet()); List<AnnualCompetitionProjectRegistration> registrationList4Stu = registrationList.stream().filter(b -> b.getEntryFormat().equals("0")).collect(Collectors.toList());
Long count4Stu = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(!ObjectUtils.isEmpty(enrollCodes4Stu), TeamManagement::getEnrollCode, enrollCodes4Stu)); Set<String> enrollCodes4Stu = Optional.ofNullable(registrationList4Stu).orElse(new LinkedList<>()).stream().map(bo -> bo.getEnrollCode()).collect(Collectors.toSet());
//学生人数 Long count4Stu = iTeamManagementService.count(new LambdaQueryWrapper<TeamManagement>().in(!ObjectUtils.isEmpty(enrollCodes4Stu), TeamManagement::getEnrollCode, enrollCodes4Stu));
departMap.put("个人赛人数", count4Stu); //学生人数
departMap.put("团队赛人数", count - count4Stu); departMap.put("个人赛人数", count4Stu);
departMap.put("团队赛人数", count - count4Stu);
}
} }
canSaiList.add(departMap); canSaiList.add(departMap);
resultMap.put("部门参赛情况列表", canSaiList); resultMap.put("部门参赛情况列表", canSaiList);
List<AwardPersion> awardPersionList4Depart = iAwardPersionService.list(new LambdaQueryWrapper<AwardPersion>().eq(AwardPersion::getAnnualCompP, pointIds4Depart)); /* List<AwardPersion> awardPersionList4Depart = iAwardPersionService.list(new LambdaQueryWrapper<AwardPersion>().eq(AwardPersion::getAnnualCompP, pointIds4Depart));
Map<String, Object> departHuoJiangMap = new LinkedHashMap<>(); Map<String, Object> departHuoJiangMap = new LinkedHashMap<>();
departHuoJiangMap.put("部门名称", sysDepart.getDepartName()); departHuoJiangMap.put("部门名称", sysDepart.getDepartName());
departHuoJiangMap.put("获取人数", awardPersionList4Depart.size()); departHuoJiangMap.put("获取人数", awardPersionList4Depart.size());
@ -797,30 +806,8 @@ public class UserHomePageServiceImpl implements UserHomePageService {
}); });
// awardTypeMap2.put("获奖人数", huoJiangCount.get()); // awardTypeMap2.put("获奖人数", huoJiangCount.get());
// huoJiangList.add(awardTypeMap2); // huoJiangList.add(awardTypeMap2);
resultMap.put("部门获奖情况列表", departHuoJiangMap); resultMap.put("部门获奖情况列表", departHuoJiangMap);*/
/*List<HomePageCompVo> scoreList4Point = new LinkedList<>();
List<PersonalCompScore> personalCompScores = iPersonalCompScoreService.list(new LambdaQueryWrapper<PersonalCompScore>().eq(PersonalCompScore::getAnnualCompP, annualCompPointIds));
Map<String, List<PersonalCompScore>> AnnualCompPointIdsMap = Optional.ofNullable(personalCompScores).orElse(new LinkedList<>()).stream()
.collect(Collectors.groupingBy(PersonalCompScore::getAnnualCompP));
Optional.ofNullable(AnnualCompPointIdsMap).orElse(new LinkedHashMap<>()).forEach((key, value) -> {
double sum = value.stream().mapToDouble(obj -> obj.getScore()).sum();
HomePageCompVo vo = new HomePageCompVo();
AnnualCompPoint point = iAnnualCompPointService.getById(key);
vo.setAnnualCompPointName(point.getObjName());
vo.setAnnualCompPointId(key);
AnnualComp annualComp = iAnnualCompService.getById(point.getAnnualCompId());
if (!ObjectUtils.isEmpty(annualComp)) {
Comp comp = iCompService.getById(annualComp.getCompid());
if (!ObjectUtils.isEmpty(comp)) {
vo.setCompName(comp.getCompName());
}
}
vo.setTotalScore(sum);
scoreList4Point.add(vo);
});
scoreList4Point.stream().sorted(Comparator.comparing(HomePageCompVo::getTotalScore)).collect(Collectors.toList());
resultMap.put("比赛学生积分况分析", scoreList4Point);*/
return resultMap; return resultMap;
} }

@ -49,6 +49,21 @@ export const rules = {
}, },
]; ];
}, },
workNo(required){
return [
{
required: required,
validator: async (_, value) => {
if (required && !value) {
return Promise.reject('请输入工号/学号');
}
return Promise.resolve();
},
trigger: 'change',
},
];
},
startTime(endTime, required) { startTime(endTime, required) {
return [ return [
{ {

@ -143,8 +143,9 @@
* 设置细则得分事件 * 设置细则得分事件
*/ */
function szxzdf(record: Recordable) { function szxzdf(record: Recordable) {
console.log(record.score,record.id )
xzzf({zjpfid:record.id}).then((result)=>{ xzzf({zjpfid:record.id}).then((result)=>{
console.log(result)
if(result=="true"){ if(result=="true"){
registerModal.value.edit(record); registerModal.value.edit(record);
registerModal.value.disableSubmit = false; registerModal.value.disableSubmit = false;

@ -1,5 +1,5 @@
<template> <template>
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭"> <a-modal :title="title" :width="width" v-if="visible" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
<ExpScoreForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ExpScoreForm> <ExpScoreForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ExpScoreForm>
</a-modal> </a-modal>
</template> </template>
@ -35,9 +35,12 @@
console.log(registerForm.value); console.log(registerForm.value);
registerForm.value? registerForm.value.searchReset() : '' registerForm.value? registerForm.value.searchReset() : ''
title.value = disableSubmit.value ? '详情' : '细则得分'; title.value = disableSubmit.value ? '详情' : '细则得分';
visible.value = true;
let id= record.id; let id= record.id;
route.query.zjpfid = id; route.query.zjpfid = id;
setTimeout(() => {
visible.value = true;
}, 0);
//router.push({query: id}) //router.push({query: id})
} }

@ -185,9 +185,8 @@ export const formSchemaYX: FormSchema[] = [
{ {
label: '工号/学号', label: '工号/学号',
field: 'workNo', field: 'workNo',
required: true,
component: 'Input', component: 'Input',
dynamicRules: ({ model, schema }) => rules.duplicateCheckRule('sys_user', 'work_no', model, schema, true), dynamicRules: ({ model, schema }) => rules.workNo('workNo'),
}, },
/* { /* {
label: '职务', label: '职务',
@ -298,11 +297,23 @@ export const formSchemaYX: FormSchema[] = [
{ {
label: '邮箱', label: '邮箱',
field: 'email', field: 'email',
rules: [
{
required: true,
message: '请输入登录邮箱',
},
],
component: 'Input', component: 'Input',
}, },
{ {
label: '手机号码', label: '手机号码',
field: 'phone', field: 'phone',
rules: [
{
required: true,
message: '请输入登录手机号码',
},
],
component: 'Input', component: 'Input',
}, },
/*{ /*{

Loading…
Cancel
Save