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)); 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/layouts/default/header/index.vue b/jeecgboot-vue3-master/src/layouts/default/header/index.vue index 7b1db92b..da501030 100644 --- a/jeecgboot-vue3-master/src/layouts/default/header/index.vue +++ b/jeecgboot-vue3-master/src/layouts/default/header/index.vue @@ -24,19 +24,12 @@
- - - - - - - + -
diff --git a/jeecgboot-vue3-master/src/settings/projectSetting.ts b/jeecgboot-vue3-master/src/settings/projectSetting.ts index 1c3c942a..8e5b9c83 100644 --- a/jeecgboot-vue3-master/src/settings/projectSetting.ts +++ b/jeecgboot-vue3-master/src/settings/projectSetting.ts @@ -73,7 +73,7 @@ const setting: ProjectConfig = { // 主题 theme: ThemeEnum.LIGHT, // 开启锁屏功能 - useLockPage: true, + useLockPage: false, // 显示全屏按钮 showFullScreen: true, // 显示文档按钮 diff --git a/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroupList.vue b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroupList.vue index 895f29ce..2109cc25 100644 --- a/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroupList.vue +++ b/jeecgboot-vue3-master/src/views/annualcompgroup/AnnualCompGroupList.vue @@ -34,8 +34,8 @@