From e43e56b4fa889f5195779ce8caaa2c8d66b5521b Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Sat, 27 Dec 2025 09:06:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=88=E6=9D=83=E6=94=B9?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/roleapi/postrole.ts | 60 ++ src/api/system/roleapi/types.ts | 50 +- src/views/system/monitor/online/index.vue | 10 +- .../system/monitor/online/index_20251112.vue | 2 +- .../monitor/online/powerPage/appTabsPick.vue | 616 ++++++++++++++++++ .../monitor/online/powerPage/appTabsPower.vue | 4 + 6 files changed, 735 insertions(+), 7 deletions(-) create mode 100644 src/views/system/monitor/online/powerPage/appTabsPick.vue diff --git a/src/api/system/roleapi/postrole.ts b/src/api/system/roleapi/postrole.ts index c46e719..f51cde4 100644 --- a/src/api/system/roleapi/postrole.ts +++ b/src/api/system/roleapi/postrole.ts @@ -216,3 +216,63 @@ export function tabsAuthorizationMode(data?: any){ data:data }); } +/** +@ 作者: 秦东 +@ 时间: 2025-12-11 14:23:55 +@ 功能: 初始化v选项卡App双轴 +*/ +export function getAppGroupo(data?: any){ + return request({ + url: '/systemapi/grant/getAppGroupo', + method: 'post', + data:data + }); +} +/** +@ 作者: 秦东 +@ 时间: 2025-12-11 14:23:55 +@ 功能: 根据分组获取App列表 +*/ +export function getGroupAppList(data?: any){ + return request({ + url: '/systemapi/grant/getGroupAppList', + method: 'post', + data:data + }); +} +/** +@ 作者: 秦东 +@ 时间: 2025-12-11 14:23:55 +@ 功能: 获取app菜单 +*/ +export function getAppMenuList(data?: any){ + return request({ + url: '/systemapi/grant/getAppMenuList', + method: 'post', + data:data + }); +} +/** +@ 作者: 秦东 +@ 时间: 2025-12-11 14:23:55 +@ 功能: 分组授权 +*/ +export function appGroupPowerConfig(data?: any){ + return request({ + url: '/systemapi/grant/appGroupPowerConfig', + method: 'post', + data:data + }); +} +/** +@ 作者: 秦东 +@ 时间: 2025-12-11 14:23:55 +@ 功能: 分组授权 +*/ +export function appPowerConfig(data?: any){ + return request({ + url: '/systemapi/grant/appPowerConfig', + method: 'post', + data:data + }); +} diff --git a/src/api/system/roleapi/types.ts b/src/api/system/roleapi/types.ts index edd7a1d..aa95a79 100644 --- a/src/api/system/roleapi/types.ts +++ b/src/api/system/roleapi/types.ts @@ -286,7 +286,7 @@ export interface custerAppTablePower extends custerAppInfo{ tablePower:string[]; listPower:string[]; datePower:{ - types:number, + types:number; attribute:number[] }; } @@ -334,3 +334,51 @@ export interface VisibleRangeInfo { export interface searchUser extends setupPage{ name?:string; } + + + +/** +@ 作者: 秦东 +@ 时间: 2025-12-23 13:32:55 +@ 功能: 应用授权结构体 +*/ +export interface AppPowerContent { + id:string; + name:string; + parentId:string; + isPick:boolean; + isTrue:boolean; +} + +export interface AppMenuPowerTree extends AppPowerContent { + appKey:string; + pagePower:string[]; + pagePowerIsAll:boolean; + formPower:string[]; + formPowerIsAll:boolean; + listPower:string[]; + listPowerIsAll:boolean; + visibleRange:{ + types:1; + attribute:string[] + }; + menuType:number; + children?:AppMenuPowerTree[] +} + +/** +@ 作者: 秦东 +@ 时间: 2025-12-23 13:34:57 +@ 功能: 主题架构 +*/ +export interface SetupAppMenuPower { + groupButPower:string[]; + appList:AppPowerTreeMaster[]; +} +export interface AppPowerTreeMaster extends AppPowerContent { + + + operationButton:string[]; + appMenuTree?:AppMenuPowerTree[]; + +} diff --git a/src/views/system/monitor/online/index.vue b/src/views/system/monitor/online/index.vue index 5d856ae..ae9968b 100644 --- a/src/views/system/monitor/online/index.vue +++ b/src/views/system/monitor/online/index.vue @@ -24,7 +24,7 @@ const squareUrl = ref( "https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png" ); import AppTablePower from '@/views/system/monitor/online/powerPage/apptablepower.vue' -import AppTabsPower from '@/views/system/monitor/online/powerPage/appTabsPower.vue' +import AppTabsPick from '@/views/system/monitor/online/powerPage/appTabsPick.vue' @@ -68,7 +68,7 @@ const systemPower = ref({ powerType: "org", appId: "", appSystem: "system", - roleId: "", + roleId: "313", isPick: false, appType: "" }) @@ -732,10 +732,10 @@ onMounted(()=>{ - - - + + + diff --git a/src/views/system/monitor/online/index_20251112.vue b/src/views/system/monitor/online/index_20251112.vue index 9b2ad8c..d12eee7 100644 --- a/src/views/system/monitor/online/index_20251112.vue +++ b/src/views/system/monitor/online/index_20251112.vue @@ -1,4 +1,4 @@ - + + + diff --git a/src/views/system/monitor/online/powerPage/appTabsPower.vue b/src/views/system/monitor/online/powerPage/appTabsPower.vue index 483789c..0013a99 100644 --- a/src/views/system/monitor/online/powerPage/appTabsPower.vue +++ b/src/views/system/monitor/online/powerPage/appTabsPower.vue @@ -285,6 +285,10 @@ const pickAllBut = (item:any,types:number) => { + + + +