From 639357f280a874738dd61e74a396553ff033edee Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Wed, 17 Jun 2020 17:58:52 +0800 Subject: [PATCH] =?UTF-8?q?20200617-zlp-1=20=E5=A4=9A=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E5=88=87=E6=8D=A2=20=E8=A7=86=E9=A2=91=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20=E8=BF=87=E6=BB=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/system/dept.js | 17 ++ ruoyi-ui/src/layout/components/Navbar.vue | 91 +++++++---- ruoyi-ui/src/router/index.js | 13 ++ .../src/views/benyi_train/video/index.vue | 38 +++-- .../views/benyi_train/video_study/index.vue | 3 +- ruoyi-ui/src/views/dashboard/PieChart.vue | 2 +- ruoyi-ui/src/views/system/school/index.vue | 63 ++------ .../views/system/user/change/dept/index.vue | 106 +++++++++++++ .../manager/factory/AsyncFactory.java | 8 +- .../security/service/TokenService.java | 16 +- .../controller/ByTrainVideoController.java | 1 + .../system/controller/SysDeptController.java | 80 ++++++---- .../project/system/mapper/SysDeptMapper.java | 8 + .../system/service/ISysDeptService.java | 8 + .../service/impl/SysDeptServiceImpl.java | 10 ++ .../mybatis/system/BySchoolMapper.xml | 148 +++++++++--------- .../mybatis/system/SysDeptMapper.xml | 9 ++ 17 files changed, 415 insertions(+), 206 deletions(-) create mode 100644 ruoyi-ui/src/views/system/user/change/dept/index.vue diff --git a/ruoyi-ui/src/api/system/dept.js b/ruoyi-ui/src/api/system/dept.js index 2debf5aca..c1ac52fd3 100644 --- a/ruoyi-ui/src/api/system/dept.js +++ b/ruoyi-ui/src/api/system/dept.js @@ -9,6 +9,23 @@ export function listDept(query) { }) } +// 查询多幼儿园列表 +export function getDeptsInfo() { + return request({ + url: '/system/dept/getDeptsInfo', + method: 'get' + }) +} + + +// 切换部门 +export function changeDept(deptId) { + return request({ + url: '/system/dept/changeDept/'+deptId, + method: 'post' + }) +} + // 查询部门详细 export function getDept(deptId) { return request({ diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 53054fea3..0f63a5fed 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -1,6 +1,11 @@
- +
+ + 切换园所 + 个人中心 @@ -38,12 +45,13 @@