一等:{{data.ydjNumber}}
二等:{{data.edjNumber}}
@@ -114,7 +114,8 @@ const router = useRouter()
wdjNumber:0,
allApList:[],
ndbsxm:[],
- bmbsxm:[]
+ bmbsxm:[],
+ hjNumber:0
});
const getStudentEvent = async () => {
const res = await getStudent();
From 514f53c6066c0f6db8f66c3677174af302bc472a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com>
Date: Mon, 29 Jul 2024 09:17:24 +0800
Subject: [PATCH 10/14] =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=A2=84=E8=A7=88?=
=?UTF-8?q?=E4=B8=8D=E8=83=BD=E4=BD=BF=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/UpfilePersion/UpfilePersionList.vue | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue b/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue
index 5db6dd33..b427a9e3 100644
--- a/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue
+++ b/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue
@@ -353,7 +353,13 @@
const fileUrl = `${globalSetting.domainUrl}${getDownWork}?id=${record.id}`;
const extName = record.url.substring(record.url.lastIndexOf('.'));
const previewUrl = `${fileUrl}&fullfilename=${new Date().getTime()}${extName}`;
- window.open(previewServerUrl + encodeURIComponent(Base64.encode(previewUrl)));
+ window.open(previewServerUrl + encodeURIComponent(base64Encode(previewUrl)));
+ }
+
+ function base64Encode(str: string): string {
+ return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
+ return String.fromCharCode('0x' + p1);
+ }));
}
function handleDown(record) {
From fa735ebd3c054d858b37888d38cfdf9db8fdc464 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com>
Date: Mon, 29 Jul 2024 10:10:55 +0800
Subject: [PATCH 11/14] =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=A2=84=E8=A7=88?=
=?UTF-8?q?=E4=B8=8D=E8=83=BD=E4=BD=BF=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../views/UpfilePersion/UpfilePersionList.vue | 2 +-
.../src/views/expscore/ExpScoreList.vue | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue b/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue
index b427a9e3..f42d8594 100644
--- a/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue
+++ b/jeecgboot-vue3-master/src/views/UpfilePersion/UpfilePersionList.vue
@@ -349,7 +349,7 @@
}
function handlePreview(record) {
- const previewServerUrl = 'http://127.0.0.1:8012/onlinePreview?url=';
+ const previewServerUrl = 'http://10.20.15.171:8012/onlinePreview?url=';
const fileUrl = `${globalSetting.domainUrl}${getDownWork}?id=${record.id}`;
const extName = record.url.substring(record.url.lastIndexOf('.'));
const previewUrl = `${fileUrl}&fullfilename=${new Date().getTime()}${extName}`;
diff --git a/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue b/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
index 1c2cc453..4c79da7d 100644
--- a/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
+++ b/jeecgboot-vue3-master/src/views/expscore/ExpScoreList.vue
@@ -43,6 +43,8 @@
无文件
下载
+ 预览
+
@@ -62,6 +64,7 @@
import JSelectUserByDept from '/@/components/Form/src/jeecg/components/JSelectUserByDept.vue';
import { useRoute } from 'vue-router';
import {useMessage} from "../../hooks/web/useMessage";
+ import {getDownWork} from "/@/views/UpfilePersion/UpfilePersion.api";
const { createMessage } = useMessage();
const route = useRoute();
@@ -105,6 +108,21 @@
sm: { span: 16 },
});
+ function handlePreview(record) {
+ console.log("===========================================================");
+ console.log(record);
+ console.log("===========================================================");
+ const previewServerUrl = 'http://10.20.15.171:8012/onlinePreview?url=';
+ let url = 'http://10.20.15.171/jeecg-boot/sys/common/static/' + record;
+ window.open(previewServerUrl + encodeURIComponent(base64Encode(url)));
+ }
+
+ function base64Encode(str: string): string {
+ return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
+ return String.fromCharCode('0x' + p1);
+ }));
+ }
+
/**
* 新增事件
*/
From 0cbfd49e4db55ef6895f6d0bc0e740f8b8d3156e Mon Sep 17 00:00:00 2001
From: Gitea
Date: Mon, 29 Jul 2024 10:22:38 +0800
Subject: [PATCH 12/14] =?UTF-8?q?=E7=BB=84=E5=A7=94=E4=BC=9A=E5=88=86?=
=?UTF-8?q?=E6=9E=90=E6=8A=A5=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../controller/AnnualCompPointController.java | 20 +-
...petitionProjectRegistrationController.java | 369 +++++++++++++++++-
2 files changed, 377 insertions(+), 12 deletions(-)
diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
index 75de9765..ee411b4e 100644
--- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
+++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/controller/AnnualCompPointController.java
@@ -538,7 +538,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -561,7 +561,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -585,7 +585,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -610,7 +610,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -636,7 +636,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion.setStudentname(sysUser.getRealname());
- awardPersion.setStudentcode(sysUser.getUsername());
+ awardPersion.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion);
}
}
@@ -698,7 +698,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
@@ -724,7 +724,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
@@ -750,7 +750,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
@@ -777,7 +777,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
@@ -805,7 +805,7 @@ public class AnnualCompPointController extends JeecgController listtm = teamManagementService.list(queryWrappertm);
SysUser sysUser = sysUserService.getById(listtm.get(0).getUserId());
awardPersion1.setStudentname(sysUser.getRealname());
- awardPersion1.setStudentcode(sysUser.getUsername());
+ awardPersion1.setStudentcode(sysUser.getWorkNo());
awardPersionService.save(awardPersion1);
}
}
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 05725349..ef03d1a8 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
@@ -1196,7 +1196,7 @@ public class AnnualCompetitionProjectRegistrationController {
SysDepart depart = sysDepartService.query().eq("id", userDeparts.get(0).getDepId()).one();
Map map4 = new HashMap<>();
map4.put("name", sysUser.getRealname());
- map4.put("xh", sysUser.getUsername());
+ map4.put("xh", sysUser.getWorkNo());
map4.put("szyx", depart.getDepartName());
bmxsxxListMap.add(map4);
}
@@ -1208,7 +1208,7 @@ public class AnnualCompetitionProjectRegistrationController {
SysDepart depart = sysDepartService.query().eq("id", userDeparts.get(0).getDepId()).one();
Map map5 = new HashMap<>();
map5.put("name", sysUser.getRealname());
- map5.put("xh", sysUser.getUsername());
+ map5.put("xh", sysUser.getWorkNo());
map5.put("szyx", depart.getDepartName());
bmxsxxListMap.add(map5);
}
@@ -1702,6 +1702,7 @@ public class AnnualCompetitionProjectRegistrationController {
mapall1.put("ndbsxm",annualCompPointService.getById(listAll.get(y).getAnnualCompP()).getObjName());
QueryWrapper queryWrapperlist = new QueryWrapper<>();
queryWrapperlist.eq("enroll_code",listAll.get(y).getEnrollCode());
+ queryWrapperlist.eq("enroll_static", "2");
List listdw = annualCompetitionProjectRegistrationService.list(queryWrapperlist);
if(listdw.size()>0){
mapall1.put("dwname",listdw.get(0).getTeamName());
@@ -1729,6 +1730,7 @@ public class AnnualCompetitionProjectRegistrationController {
mapall2.put("ndbsxm",annualCompPointService.getById(listAll.get(n).getAnnualCompP()).getObjName());
QueryWrapper queryWrapperlist = new QueryWrapper<>();
queryWrapperlist.eq("enroll_code",listAll.get(n).getEnrollCode());
+ queryWrapperlist.eq("enroll_static", "2");
List listdw = annualCompetitionProjectRegistrationService.list(queryWrapperlist);
if(listdw.size()>0){
mapall2.put("dwname",listdw.get(0).getTeamName());
@@ -1756,6 +1758,369 @@ public class AnnualCompetitionProjectRegistrationController {
}
+ /**
+ * 组委会角色分析报告比赛数据接口
+ *
+ * @param req
+ * @return
+ */
+ @ApiOperation(value="组委会角色分析报告比赛数据接口", notes="组委会角色分析报告比赛数据接口")
+ @GetMapping(value = "/zwhfxbg")
+ public Result> zwhfxbg( HttpServletRequest req) {
+ //获取当前登录用户 最新的年度比赛记录
+ LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+ Comp comp = new Comp();
+ QueryWrapper queryWrappercomp = QueryGenerator.initQueryWrapper(comp, req.getParameterMap());
+ queryWrappercomp.like("comp_admin", user.getUsername());
+ List list = compService.list(queryWrappercomp);
+ Map map = new HashMap<>();
+ if (list.size() > 0) {
+ List ids = list.stream().map(Comp::getId).collect(Collectors.toList());
+ QueryWrapper queryWrapperAnnual = new QueryWrapper<>();
+ queryWrapperAnnual.in(ids.size() != 0, "compid", ids);
+ queryWrapperAnnual.orderByDesc("create_time");
+ List annualCompList = annualCompService.list(queryWrapperAnnual);
+ if (annualCompList.size() > 0) {
+ //年度比赛名称
+ map.put("annualCompName", annualCompList.get(0).getName());
+ //共多少届以及当前第几届
+ map.put("sum", annualCompList.size());
+
+ AnnualCompPoint annualCompPoint = new AnnualCompPoint();
+ QueryWrapper queryWrapperacp = QueryGenerator.initQueryWrapper(annualCompPoint, req.getParameterMap());
+ queryWrapperacp.eq("annual_comp_id", annualCompList.get(0).getId());
+ queryWrapperacp.eq("annual_comp_switch", "Y"); // 比赛必须是开启的
+ //queryWrapperacp.orderByDesc("create_time");
+ List listacp = annualCompPointService.list(queryWrapperacp);
+ //比赛项目数
+ map.put("bsxmSum", listacp.size());
+ //前五条项目名称数据以及对应的报名数
+/* List