From 34f2e164e25e3bfe4b631ae9ed51122c818e9324 Mon Sep 17 00:00:00 2001 From: zhc077 <565291854@qq.com> Date: Thu, 18 Jul 2024 15:54:45 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=B2=B3=E5=8D=97=E6=9C=BA=E7=94=B5?= =?UTF-8?q?=E8=81=8C=E4=B8=9A=E5=AD=A6=E9=99=A2-=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/homepage/service/UserHomePageServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java index f0f8c163..ace99a83 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java @@ -113,12 +113,12 @@ public class UserHomePageServiceImpl implements UserHomePageService { Annual annual = iAnnualService.getOne(new LambdaQueryWrapper().eq(Annual::getAnnualName, currentYear + "")); List compList = iCompService.list(new LambdaQueryWrapper().eq(Comp::getCompOrgan, departId)); Set compIds = Optional.ofNullable(compList).orElse(new LinkedList<>()).stream().map(obj -> obj.getId()).collect(Collectors.toSet()); - List annualCompList = new ArrayList<>(); - if (ObjectUtil.isNotNull(compIds)) { - annualCompList = iAnnualCompService.list(new LambdaQueryWrapper() - .eq(AnnualComp::getAnnualid, annual.getId()) - .in(AnnualComp::getCompid, compIds)); + if (ObjectUtils.isEmpty(compIds)) { + return resultMap; } + List annualCompList = iAnnualCompService.list(new LambdaQueryWrapper() + .eq(AnnualComp::getAnnualid, annual.getId()) + .in(AnnualComp::getCompid, compIds)); Set annualCompIds = Optional.ofNullable(annualCompList).orElse(new LinkedList<>()).stream().map(obj -> obj.getId()).collect(Collectors.toSet()); List annualCompPointList = iAnnualCompPointService.list(new LambdaQueryWrapper().in(AnnualCompPoint::getAnnualCompId, annualCompIds)); From e8c9ce5f1cea49f9101fe73f4698245573420c93 Mon Sep 17 00:00:00 2001 From: significative <163999932+significative@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:45:58 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=AD=A6=E6=A0=A1=E3=80=81=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3-master/src/api/demo/depart.ts | 13 + .../components/chDepartment/index.vue | 127 +++++---- .../workbench/components/chSchool/index.vue | 112 ++++++-- .../workbench/components/chSchool/options.js | 259 ++++++++++++++++++ 4 files changed, 424 insertions(+), 87 deletions(-) create mode 100644 jeecgboot-vue3-master/src/api/demo/depart.ts create mode 100644 jeecgboot-vue3-master/src/views/depart/workbench/components/chSchool/options.js diff --git a/jeecgboot-vue3-master/src/api/demo/depart.ts b/jeecgboot-vue3-master/src/api/demo/depart.ts new file mode 100644 index 00000000..ec9e84b3 --- /dev/null +++ b/jeecgboot-vue3-master/src/api/demo/depart.ts @@ -0,0 +1,13 @@ +import { defHttp } from '/@/utils/http/axios'; +import { GetAccountInfoModel } from './model/accountModel'; + +enum Api { + PAGE_SCHOOL = '/user/login/homepage/school', + PAGE_DEPARTMENT ='/user/login/homepage/depart' +} + +// Get personal center-basic settings + +export const pageSchoolApi = () => defHttp.get({ url: Api.PAGE_SCHOOL }); +export const pageDepartmentApi = (orgCode:string) => defHttp.get({ url: Api.PAGE_DEPARTMENT ,params:{orgCode}}); + diff --git a/jeecgboot-vue3-master/src/views/depart/workbench/components/chDepartment/index.vue b/jeecgboot-vue3-master/src/views/depart/workbench/components/chDepartment/index.vue index fd1eb8a4..e87d73c1 100644 --- a/jeecgboot-vue3-master/src/views/depart/workbench/components/chDepartment/index.vue +++ b/jeecgboot-vue3-master/src/views/depart/workbench/components/chDepartment/index.vue @@ -2,67 +2,31 @@
- +
- 本年度已开展比赛数 + {{ i.title }}
- +
- 67 + {{ match[i.title] || 0 }}
-
国赛:12
-
省赛:12
-
校赛:24
+
国赛:{{ match['国赛'] || 0 }}
+
省赛:{{ match['省赛'] || 0 }}
+
校赛:{{ match['校赛'] || 0 }}
- -
-
-
- 本年度参加比赛队伍数 -
- -
-
-
- 1262 -
-
-
-
国赛:120
-
省赛:1230
-
校赛:24
-
-
-
- -
-
-
- 正在进行的比赛数 -
- -
-
-
- 45 -
-
-
-
国赛:9
-
省赛:13
-
校赛:26
-
-
-
@@ -73,18 +37,19 @@
- 78% + {{ (match['已完成比赛比率'] || 0) * 100 + '%' }}
- +
- 已完成的比赛11 + 已完成的比赛{{ match['已完成的比赛'] || 0 }}
- 未完成的比赛11 + 未完成的比赛{{ match['未完成的比赛'] || 0 }}
@@ -115,9 +80,9 @@
    -
  • -
    {{ i }}
    -
    奠定基础
    +
  • +
    {{ i + 1 }}
    +
    {{ item }}
@@ -184,18 +149,63 @@