From c70c78f7f9fdccd7c710b90a834e5d12699d1cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 29 Mar 2024 14:34:30 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fuintAdmin/src/views/duty/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuintAdmin/src/views/duty/index.vue b/fuintAdmin/src/views/duty/index.vue index 95934656b..03f266f67 100644 --- a/fuintAdmin/src/views/duty/index.vue +++ b/fuintAdmin/src/views/duty/index.vue @@ -280,7 +280,7 @@ export default { }, handleAdd1(){ this.reset1(); - this.getMenuTreeselect(1); + this.getMenuTreeselect(3); this.openDuty = true; this.title = "添加角色"; }, From bc01b68b6550f3892f10e82d6ffe1c676e621e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 29 Mar 2024 15:56:55 +0800 Subject: [PATCH 2/5] bug --- .../business/member/service/impl/LJDutyServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJDutyServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJDutyServiceImpl.java index 134b96e34..2d4fdd509 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJDutyServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/member/service/impl/LJDutyServiceImpl.java @@ -11,6 +11,7 @@ import com.fuint.common.util.TokenUtil; import com.fuint.system.dept.entity.SysDept; import com.fuint.system.dept.service.ISysDeptService; import com.fuint.system.role.entity.TDuty; +import org.apache.commons.lang3.ObjectUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -64,6 +65,7 @@ public class LJDutyServiceImpl extends ServiceImpl implemen @Override public Page selectDutyPage(Page page, TDuty duty) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); /*if (ObjectUtil.isNotEmpty(duty.getStoreId())){ SysDept sysDept = sysDeptService.selectParentId(Long.valueOf(duty.getStoreId())); duty.setStoreId(Math.toIntExact(sysDept.getDeptId())); @@ -72,7 +74,12 @@ public class LJDutyServiceImpl extends ServiceImpl implemen SysDept sysDept = sysDeptService.selectParentId(nowAccountInfo.getDeptId()); duty.setStoreId(Math.toIntExact(sysDept.getDeptId())); }*/ - duty.setStoreId(duty.getStoreId()); + if (ObjectUtils.isNotEmpty(duty.getStoreId())){ + duty.setStoreId(duty.getStoreId()); + }else { + duty.setStoreId(Integer.parseInt(nowAccountInfo.getDeptId().toString())); + } + return baseMapper.selectDutyPage(page,duty); } From efa9d6057f2b2e55d78d12207ee529f85a6bfbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Fri, 29 Mar 2024 16:58:57 +0800 Subject: [PATCH 3/5] bug --- fuintAdmin/src/api/system/menu.js | 8 +++ fuintAdmin/src/views/duty/index.vue | 14 ++-- .../service/impl/LJStaffServiceImpl.java | 5 +- .../controller/BackendSourceController.java | 72 +++++++++++++++++++ 4 files changed, 91 insertions(+), 8 deletions(-) diff --git a/fuintAdmin/src/api/system/menu.js b/fuintAdmin/src/api/system/menu.js index 343d6ba8d..42c5e1fef 100644 --- a/fuintAdmin/src/api/system/menu.js +++ b/fuintAdmin/src/api/system/menu.js @@ -26,6 +26,14 @@ export function treeselect(params) { }) } +export function treeselects(params) { + return request({ + url: 'backendApi/source/treeselects', + method: 'get', + params: params + }) +} + // 根据角色ID查询菜单下拉树结构 export function roleMenuTreeselect(roleId) { return request({ diff --git a/fuintAdmin/src/views/duty/index.vue b/fuintAdmin/src/views/duty/index.vue index 03f266f67..18a9727e3 100644 --- a/fuintAdmin/src/views/duty/index.vue +++ b/fuintAdmin/src/views/duty/index.vue @@ -152,7 +152,7 @@