From a9e4d032eb46debe2891c09c01cb017901717d37 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Mon, 17 Nov 2025 08:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/roleapi/postrole.ts | 37 + src/api/system/roleapi/power.ts | 13 + src/api/system/roleapi/types.ts | 37 + .../rolepower/setuprole/setuprolepower.vue | 3 + .../system/monitor/online/index copy 4.vue | 865 +++++++++++++++++ src/views/system/monitor/online/index.vue | 351 +------ src/views/system/monitor/online/index123.vue | 903 ++++++++++++++++++ src/views/system/monitor/online/index2.vue | 823 ++++++++++++++++ .../{index copy.vue => index_20251112.vue} | 0 src/views/system/monitor/online/page.vue | 283 ++++++ .../lowcodepage/pageFlow/appTableFlow.vue | 2 +- ....timestamp-1762732876054-97f8b5f7ef739.mjs | 215 +++++ 12 files changed, 3187 insertions(+), 345 deletions(-) create mode 100644 src/api/system/roleapi/power.ts create mode 100644 src/views/system/monitor/online/index copy 4.vue create mode 100644 src/views/system/monitor/online/index123.vue create mode 100644 src/views/system/monitor/online/index2.vue rename src/views/system/monitor/online/{index copy.vue => index_20251112.vue} (100%) create mode 100644 src/views/system/monitor/online/page.vue create mode 100644 vite.config.ts.timestamp-1762732876054-97f8b5f7ef739.mjs diff --git a/src/api/system/roleapi/postrole.ts b/src/api/system/roleapi/postrole.ts index e059889..a2e7874 100644 --- a/src/api/system/roleapi/postrole.ts +++ b/src/api/system/roleapi/postrole.ts @@ -103,6 +103,13 @@ export function gainAppTableList(data?: any){ data:data }); } +export function gainAppTableListNew(data?: any){ + return request({ + url: '/systemapi/grant/gainAppTableListNew', + method: 'post', + data:data + }); +} /** * 获取指定角色授权 */ @@ -113,3 +120,33 @@ export function setpAppTableForms(data?: any){ data:data }); } +/** + * 获取首层子行政组织和本组织下的人员 + */ +export function getMyPeoplceAndSunOrg(data?: any){ + return request({ + url: '/systemapi/authorize/getMyPeoplceAndSunOrg', + method: 'post', + data:data + }); +} +/** + * 获取首层子行政组织和本组织下的岗位及人员 + */ +export function getMyPeopleAndSunOrgPost(data?: any){ + return request({ + url: '/systemapi/authorize/getMyPeopleAndSunOrgPost', + method: 'post', + data:data + }); +} +/** + * 获取人员 + */ +export function getPowerPageUser(data?: any){ + return request({ + url: '/systemapi/authorize/getPowerPageUser', + method: 'post', + data:data + }); +} diff --git a/src/api/system/roleapi/power.ts b/src/api/system/roleapi/power.ts new file mode 100644 index 0000000..d629c11 --- /dev/null +++ b/src/api/system/roleapi/power.ts @@ -0,0 +1,13 @@ +import request from "@/utils/request"; +import { getSystemPower } from "./types"; + +/** + * 获取平台授权项目 + */ + export function appPowerUnit(data: getSystemPower){ + return request({ + url: '/systemapi/authorize/appPowerUnit', + method: 'post', + data:data + }); +} diff --git a/src/api/system/roleapi/types.ts b/src/api/system/roleapi/types.ts index 50ab1cc..630c9af 100644 --- a/src/api/system/roleapi/types.ts +++ b/src/api/system/roleapi/types.ts @@ -285,3 +285,40 @@ export interface custerAppTablePower extends custerAppInfo{ attribute:number[] }; } + +//获取平台授权项目 +export interface getSystemPower{ + powerType:string; + appType:string; + appSystem:string; + roleId:string; +} + + +// 平台授权结构体 +export interface AppPowerInfo { + id :number; + name :string; //菜单名称 + types :number; + perm :number; + sort :number; + parentId :number; + isTrue :boolean; +} + +// 分流 +export interface AppMenuBut extends AppPowerInfo { + buttenPower:AppPowerInfo[] +} + +// 平台授权结构树 +export interface AppPowerTree extends AppMenuBut { + children:AppPowerTree[] + visible :number; + visibleRange:VisibleRangeInfo[]; //当可见范围为自定义范围时。此辅助选项生效 +} + +export interface VisibleRangeInfo { + types:number; + val:string; +} diff --git a/src/views/powermanage/rolepower/setuprole/setuprolepower.vue b/src/views/powermanage/rolepower/setuprole/setuprolepower.vue index 72a164e..a386767 100644 --- a/src/views/powermanage/rolepower/setuprole/setuprolepower.vue +++ b/src/views/powermanage/rolepower/setuprole/setuprolepower.vue @@ -385,6 +385,7 @@ const pickOrgIdClick = () => { v-for="itemes in appList" :class="itemes.signCode == activeAppId ? 'active' : ''" @click="pickAppList(itemes)" + :key="itemes.id" > {{ itemes.name }} @@ -406,6 +407,7 @@ const pickOrgIdClick = () => { v-for="itemes in appList" :class="itemes.signCode == activeAppId ? 'active' : ''" @click="pickAppList(itemes)" + :key="itemes.id" > {{ itemes.name }} @@ -590,4 +592,5 @@ const pickOrgIdClick = () => { background-color: #a0cfff; } } + diff --git a/src/views/system/monitor/online/index copy 4.vue b/src/views/system/monitor/online/index copy 4.vue new file mode 100644 index 0000000..93caa87 --- /dev/null +++ b/src/views/system/monitor/online/index copy 4.vue @@ -0,0 +1,865 @@ + + + + diff --git a/src/views/system/monitor/online/index.vue b/src/views/system/monitor/online/index.vue index 47d6d78..08db74b 100644 --- a/src/views/system/monitor/online/index.vue +++ b/src/views/system/monitor/online/index.vue @@ -1,355 +1,18 @@ diff --git a/src/views/system/monitor/online/index123.vue b/src/views/system/monitor/online/index123.vue new file mode 100644 index 0000000..202d4b1 --- /dev/null +++ b/src/views/system/monitor/online/index123.vue @@ -0,0 +1,903 @@ + + + + diff --git a/src/views/system/monitor/online/index2.vue b/src/views/system/monitor/online/index2.vue new file mode 100644 index 0000000..dbe2f5c --- /dev/null +++ b/src/views/system/monitor/online/index2.vue @@ -0,0 +1,823 @@ + + + + diff --git a/src/views/system/monitor/online/index copy.vue b/src/views/system/monitor/online/index_20251112.vue similarity index 100% rename from src/views/system/monitor/online/index copy.vue rename to src/views/system/monitor/online/index_20251112.vue diff --git a/src/views/system/monitor/online/page.vue b/src/views/system/monitor/online/page.vue new file mode 100644 index 0000000..bce0bb3 --- /dev/null +++ b/src/views/system/monitor/online/page.vue @@ -0,0 +1,283 @@ + + + + diff --git a/src/views/sysworkflow/lowcodepage/pageFlow/appTableFlow.vue b/src/views/sysworkflow/lowcodepage/pageFlow/appTableFlow.vue index dc6670c..8e2c7d4 100644 --- a/src/views/sysworkflow/lowcodepage/pageFlow/appTableFlow.vue +++ b/src/views/sysworkflow/lowcodepage/pageFlow/appTableFlow.vue @@ -1,7 +1,7 @@