From 212e2d5ccab8cdb75556df9d48dbdaf9c0316d19 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Wed, 11 Oct 2023 18:45:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=98=E5=B7=A5=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fuintAdmin/src/api/staff/duty.js | 10 + fuintAdmin/src/api/staff/staff.js | 12 +- fuintAdmin/src/views/staff/list.vue | 458 +++++++++++++++--- fuintAdmin/src/views/staff/model/addStaff.vue | 324 +++++++++++++ .../member/controller/LJStaffController.java | 4 +- .../member/controller/LjDutyController.java | 25 + .../fuint/business/member/entity/LJDuty.java | 15 +- .../fuint/business/member/entity/LJStaff.java | 10 +- .../business/member/mapper/LJDutyMapper.java | 7 + .../member/mapper/xml/LJStaffMapper.xml | 9 +- .../member/service/ILJDutyService.java | 14 + .../member/service/ILJStaffService.java | 11 + .../service/impl/LJDutyServiceImpl.java | 17 + .../service/impl/LJStaffServiceImpl.java | 9 + .../service/impl/AccountServiceImpl.java | 24 +- .../com/fuint/system/dict/util/DictUtils.java | 3 +- .../com/fuint/repository/model/TAccount.java | 18 +- 17 files changed, 857 insertions(+), 113 deletions(-) create mode 100644 fuintAdmin/src/api/staff/duty.js create mode 100644 fuintAdmin/src/views/staff/model/addStaff.vue create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/member/controller/LjDutyController.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/member/mapper/LJDutyMapper.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/ILJDutyService.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJDutyServiceImpl.java diff --git a/fuintAdmin/src/api/staff/duty.js b/fuintAdmin/src/api/staff/duty.js new file mode 100644 index 000000000..4f8fba4b2 --- /dev/null +++ b/fuintAdmin/src/api/staff/duty.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 查询角色列表 +export function listDuty(query) { + return request({ + url: '/business/member/duty/list', + method: 'get', + params: query + }) +} diff --git a/fuintAdmin/src/api/staff/staff.js b/fuintAdmin/src/api/staff/staff.js index 7099b82dd..e9dcdc5e7 100644 --- a/fuintAdmin/src/api/staff/staff.js +++ b/fuintAdmin/src/api/staff/staff.js @@ -9,15 +9,15 @@ export function listStaff(query) { }) } -// 查询字典类型详细 +// 查询员工详细 export function getStaff(id) { return request({ - url: '/business/member/staff' + id, + url: '/business/member/staff/' + id, method: 'get' }) } -// 新增字典类型 +// 新增员工 export function addStaff(data) { return request({ url: '/business/member/staff', @@ -26,7 +26,7 @@ export function addStaff(data) { }) } -// 修改字典类型 +// 修改员工 export function updateStaff(data) { return request({ url: '/business/member/staff', @@ -35,10 +35,10 @@ export function updateStaff(data) { }) } -// 删除字典类型 +// 删除员工 export function delStaff(id) { return request({ - url: '/business/member/staff' + id, + url: '/business/member/staff/' + id, method: 'delete' }) } diff --git a/fuintAdmin/src/views/staff/list.vue b/fuintAdmin/src/views/staff/list.vue index c5a098f8e..62173cf11 100644 --- a/fuintAdmin/src/views/staff/list.vue +++ b/fuintAdmin/src/views/staff/list.vue @@ -63,26 +63,24 @@ - - - - - - + + - + + + + + + + - + + + + + + + + + + + + + - + @@ -132,7 +150,7 @@ - + @@ -150,31 +168,277 @@ - + - - - + + + + + + + + - - - - + + + + + + + + + v-for="dict in dict.type.ywqx" + :key="dict.value" + :label="dict.label" + :value="dict.value" + /> + + + + + + + + + + + + + + + 特殊权限 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -186,16 +450,6 @@ - - - - - 启用 - 禁用 - - - -