diff --git a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java index d17a510..7ddfd6b 100644 --- a/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java +++ b/jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/instrument/controller/InstrumentController.java @@ -27,6 +27,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.extern.slf4j.Slf4j; +import org.jeecg.modules.system.entity.SysDepart; import org.jeecg.modules.system.service.ISysDepartService; import org.jeecgframework.poi.excel.ExcelImportUtil; import org.jeecgframework.poi.excel.def.NormalExcelConstants; @@ -194,6 +195,12 @@ public class InstrumentController extends JeecgController queryWrappersd = new QueryWrapper(); + queryWrappersd.eq("del_flag", 0); + queryWrappersd.eq("parent_id", loginUser.getOrgId()); + List listsd = sysDepartService.list(queryWrappersd); + List ids = listsd.stream().map(SysDepart::getId).collect(Collectors.toList()); + queryWrapper.in("declaration_unit",ids); Page page = new Page(pageNo, pageSize); IPage pageList = instrumentService.page(page, queryWrapper); return Result.OK(pageList); diff --git a/jeecgboot-vue3/src/api/mainHome/index.ts b/jeecgboot-vue3/src/api/mainHome/index.ts index 143fc1c..369de3a 100644 --- a/jeecgboot-vue3/src/api/mainHome/index.ts +++ b/jeecgboot-vue3/src/api/mainHome/index.ts @@ -39,4 +39,64 @@ export function getindexaward(params) { method: 'GET', params, }); +} +// 获取文章栏目 +export function getindexcolumn() { + return defHttp.request({ + url: '/cms/front/getColumnList', + method: 'GET', + }); +} +// 通过栏目获取文章 +export function getindexarticle(params) { + return defHttp.request({ + url: '/cms/front/getArticleListByColumn', + method: 'GET', + params, + }); +} +// 获取全部文章 +export function getindexallarticle() { + return defHttp.request({ + url: '/cms/front/cmsfindallnews', + method: 'GET', + }); +} +// 获取文章详情 +export function getindexarticleitem(params) { + return defHttp.request({ + url: '/cms/front/getByArticleTitle', + method: 'GET', + params, + }); +} +// 获取首页新闻 +export function getindexnews() { + return defHttp.request({ + url: '/cms/front/getindexnew', + method: 'GET', + }); +} +// 获取专家信息 +export function getindexexpert(params) { + return defHttp.request({ + url: '/expert/expert/listadminCMS', + method: 'GET', + params + }); +} +// 获取专家详情 +export function getindexexpertdetail(params) { + return defHttp.request({ + url: '/expert/expert/CMSexpinfo', + method: 'GET', + params, + }); +} +// 获取专家类型 +export function getindexexperttype() { + return defHttp.request({ + url: '/expert/expert/directioncalListCMS', + method: 'GET', + }); } \ No newline at end of file diff --git a/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue b/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue index 5d0feeb..6222646 100644 --- a/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue +++ b/jeecgboot-vue3/src/layouts/default/header/components/user-dropdown/index.vue @@ -13,7 +13,7 @@ - + @@ -170,7 +170,8 @@ break; case 'account': //update-begin---author:wangshuai ---date:20221125 for:进入用户设置页面------------ - go(`/system/usersetting`); + // go(`/system/usersetting`); + go(`/kejiju/system/usersetting`); //update-end---author:wangshuai ---date:20221125 for:进入用户设置页面-------------- break; } diff --git a/jeecgboot-vue3/src/router/helper/mainOut.ts b/jeecgboot-vue3/src/router/helper/mainOut.ts index ce05304..f2a435e 100644 --- a/jeecgboot-vue3/src/router/helper/mainOut.ts +++ b/jeecgboot-vue3/src/router/helper/mainOut.ts @@ -90,7 +90,7 @@ export const mainOutRoutes: AppRouteModule[] = [ meta: { title: '新闻详情', ignoreAuth: true, - hidden: false + hidden: true }, }, diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue index 4ccf750..b196bf6 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/NewsList/index.vue @@ -1,31 +1,97 @@ - + diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue index 5c03218..6fb9d21 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/expertManagement/index.vue @@ -1,24 +1,73 @@ diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue index 4c3b7de..aea492d 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/homePage/index.vue @@ -136,6 +136,7 @@ \ No newline at end of file + } + diff --git a/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue b/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue index c0ae3b3..0e5e24f 100644 --- a/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue +++ b/jeecgboot-vue3/src/views/demo/main-home/components/newsInfo/index.vue @@ -1,31 +1,49 @@ - +