From a3d315ec867e788463bd5860d53cb39e25f3a999 Mon Sep 17 00:00:00 2001 From: yujinlong Date: Fri, 1 Nov 2024 16:45:18 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=BB=84=E7=BB=87=E6=9C=BA?= =?UTF-8?q?=E6=9E=84-=E6=B7=BB=E5=8A=A0API=E6=8E=88=E6=9D=83=E7=9B=B8?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/org.ts | 42 ++++- src/api/typings.d.ts | 2 +- src/components/Modal/src/BasicModal.vue | 19 ++- .../Modal/src/components/ModalClose.vue | 26 +-- src/views/system/org/APIAuthModal.vue | 113 +++++++++++++ src/views/system/org/OrgModal.vue | 96 +++++++++-- src/views/system/org/columns.tsx | 160 +++++++++++++++++- 7 files changed, 428 insertions(+), 30 deletions(-) create mode 100644 src/views/system/org/APIAuthModal.vue diff --git a/src/api/system/org.ts b/src/api/system/org.ts index 26265933..49cf24f6 100644 --- a/src/api/system/org.ts +++ b/src/api/system/org.ts @@ -12,6 +12,10 @@ enum Api { GetBankList = '/mainApi/Bank/GetBankList', EditBank = '/mainApi/Bank/EditBank', GetBankInfo = '/mainApi/Bank/GetBankInfo', + OrgAuthList = '/mainApi/OrgAuth/GetOrgAuthList', + GetOrgAuthInfo = '/mainApi/OrgAuth/GetOrgAuthInfo', + EditOrgAuth = '/mainApi/OrgAuth/EditOrgAuth', + DelOrgAuth = '/mainApi/OrgAuth/BatchDelOrgAuth' } export function getOrgList(data: PageRequest) { return request({ @@ -35,7 +39,7 @@ export function getOrgInfo(query: { id: string }) { params: query, }) } -export function getOrgTree(query: { id: string }) { +export function getOrgTree(query: { id?: string }) { return request({ url: Api.GetOrgTree, method: 'get', @@ -80,3 +84,39 @@ export function BatchDelOrg(data: any) { data, }) } + +// 组织机构授权列表 +export function getOrgAuthList(data: any) { + return request({ + url: Api.OrgAuthList, + method: 'post', + data, + }) +} + +// 组织机构授权编辑 +export function editOrgAuth(data: any) { + return request({ + url: Api.EditOrgAuth, + method: 'post', + data, + }) +} + +// 组织机构授权详情 +export function getOrgAuthInfo(query: { id: string }) { + return request({ + url: Api.GetOrgAuthInfo, + method: 'get', + params: query, + }) +} + +// 组织机构授权删除 +export function BatchDelOrgAuth(data: any) { + return request({ + url: Api.DelOrgAuth, + method: 'post', + data, + }) +} diff --git a/src/api/typings.d.ts b/src/api/typings.d.ts index b35a804b..7264592d 100644 --- a/src/api/typings.d.ts +++ b/src/api/typings.d.ts @@ -26,7 +26,7 @@ declare namespace API { /** 全局通用表格分页请求参数 */ type PageRequest = { queryCondition: string; - otherQueryCondition:string; + otherQueryCondition: string; pageCondition: PageCondition; }; type PageCondition = { diff --git a/src/components/Modal/src/BasicModal.vue b/src/components/Modal/src/BasicModal.vue index 9c71bc63..ff8557b2 100644 --- a/src/components/Modal/src/BasicModal.vue +++ b/src/components/Modal/src/BasicModal.vue @@ -11,7 +11,7 @@ :full-screen="fullScreenRef" :form-schema="getProps.formSchema" @cancel="handleCancel" - @fullscreen="handleFullScreen" + @fullscreen="handleFullScreenHandle" /> + + + + + + +