@pubinfo/module-rbac 2.0.0-beta.3 → 2.0.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/animation_item.vue_vue_type_script_setup_true_lang-efL_vjfY.js +4864 -0
- package/dist/api/modules/assist/gonggaofuwu.d.ts +43 -0
- package/dist/api/modules/assist/index.d.ts +3 -0
- package/dist/api/modules/assist/qunzujiekou.d.ts +36 -0
- package/dist/api/modules/assist/quyujiekou.d.ts +36 -0
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +36 -0
- package/dist/api/modules/configData/index.d.ts +3 -0
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +99 -0
- package/dist/api/modules/configData/zidianfuwu.d.ts +57 -0
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/denglurizhifuwu.d.ts +15 -0
- package/dist/api/modules/log/index.d.ts +2 -0
- package/dist/api/modules/rbac/gangweijiekou.d.ts +36 -0
- package/dist/api/modules/rbac/index.d.ts +11 -0
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +50 -0
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +43 -0
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +64 -0
- package/dist/api/modules/rbac/yonghujiekou.d.ts +85 -0
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +36 -0
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +29 -0
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +85 -0
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +36 -0
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +29 -0
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +64 -0
- package/dist/api/request.d.ts +1 -0
- package/dist/browserType.vue_vue_type_script_setup_true_lang-Cv8wph6G.js +38 -0
- package/dist/cloneDeep-B4Rj61s4.js +8 -0
- package/dist/components/GroupSelector/index.vue.d.ts +15 -0
- package/dist/components/GroupSelector/interface.d.ts +6 -0
- package/dist/components/OrgTree/index.vue.d.ts +5 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +68 -0
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +72 -0
- package/dist/components/OrgUserSelector/index.d.ts +9 -0
- package/dist/components/OrgUserSelector/provider.d.ts +24 -0
- package/dist/components/ResourceSelector/enum.d.ts +5 -0
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +29 -0
- package/dist/components/ResourceSelector/index.vue.d.ts +24 -0
- package/dist/composables/useLottie.d.ts +11 -0
- package/dist/enum-BEHz_Q18.js +74 -0
- package/dist/enum-C9ihxJe7.js +4 -0
- package/dist/enum-CTUzwCYG.js +4 -0
- package/dist/enum-DDKThkSw.js +24 -0
- package/dist/gangweijiekou-CV7cIo_W.js +46 -0
- package/dist/index-B6A3qFeU.js +18585 -0
- package/dist/index-BChMrCkZ.js +399 -0
- package/dist/index-BIUkDwk2.js +465 -0
- package/dist/index-BOEO9CRp.js +7084 -0
- package/dist/index-BgdW__IO.js +125 -0
- package/dist/index-Bi0fucZj.js +871 -0
- package/dist/index-Bj3Ee1l-.js +177 -0
- package/dist/index-Bzjxdd-F.js +702 -0
- package/dist/index-CF4XGkrK.js +454 -0
- package/dist/index-CGAa6YPO.js +273 -0
- package/dist/index-CK582XAz.js +317 -0
- package/dist/index-Ce9x4LEV.js +633 -0
- package/dist/index-CkVgkVvC.js +461 -0
- package/dist/index-D4uw6wJ9.js +181 -0
- package/dist/index-DFrT08M4.js +388 -0
- package/dist/index-Dju21Cnm.js +140 -0
- package/dist/index-Dmg39liA.js +168 -0
- package/dist/index-DvE43Xkt.js +408 -0
- package/dist/index-Dx3ZDeWT.js +684 -0
- package/dist/index-MmfEJgmm.js +860 -0
- package/dist/index-RBHLCaQ9.js +1626 -0
- package/dist/index-Y2jyqjVz.js +303 -0
- package/dist/index-b_92Syzh.js +131 -0
- package/dist/index-g5Fyla0r.js +164 -0
- package/dist/index-qdAiA-PA.js +286 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +9 -0
- package/dist/interface.d.ts +49 -0
- package/dist/itemlist-Og2t8W5R.js +368 -0
- package/dist/jiaosejiekou-0xZkLzL_.js +58 -0
- package/dist/login_history-BJWFChQ3.js +430 -0
- package/dist/operate_history-C1NKnoB5.js +468 -0
- package/dist/pubJiaosezukongzhiqi-BlLcThHi.js +57 -0
- package/dist/routes/index.d.ts +14 -0
- package/dist/routes/modules/authority.manage.menu.d.ts +3 -0
- package/dist/routes/modules/log.manage.menu.d.ts +3 -0
- package/dist/routes/modules/safe.manage.menu.d.ts +3 -0
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +3 -0
- package/dist/routes/modules/system.manage.menu.d.ts +3 -0
- package/dist/setItem-BRseSui6.js +152 -0
- package/dist/shujuquanxianzhubiaokongzhiqi-3CpYi1Zo.js +65 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/useAppAndResource-BF7jQTCi.js +55 -0
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +14 -0
- package/dist/views/blackWhiteList/enum.d.ts +7 -0
- package/dist/views/blackWhiteList/index.vue.d.ts +1535 -0
- package/dist/views/blackWhiteList/types.d.ts +4 -0
- package/dist/views/breadcrumb_setting/animationData.d.ts +7 -0
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -0
- package/dist/views/components/HCheckList.vue.d.ts +20 -0
- package/dist/views/components/animation_item.vue.d.ts +14 -0
- package/dist/views/components/setItem.vue.d.ts +61 -0
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +172 -0
- package/dist/views/data-permission/enum.d.ts +34 -0
- package/dist/views/data-permission/index.vue.d.ts +1691 -0
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +12 -0
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +12 -0
- package/dist/views/dictionary/enum.d.ts +8 -0
- package/dist/views/dictionary/index.vue.d.ts +1532 -0
- package/dist/views/dictionary/itemlist.vue.d.ts +1532 -0
- package/dist/views/group/components/drawerGroup.vue.d.ts +12 -0
- package/dist/views/group/enum.d.ts +21 -0
- package/dist/views/group/index.vue.d.ts +1532 -0
- package/dist/views/layout_setting/index.vue.d.ts +2 -0
- package/dist/views/log_center/components/browserType.vue.d.ts +12 -0
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +14 -0
- package/dist/views/log_center/login_history.vue.d.ts +1511 -0
- package/dist/views/log_center/operate_history.vue.d.ts +1511 -0
- package/dist/views/menu_setting/animationData.d.ts +13 -0
- package/dist/views/menu_setting/index.vue.d.ts +2 -0
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +12 -0
- package/dist/views/organization/components/drawerRole.vue.d.ts +36 -0
- package/dist/views/organization/components/roleSelect.vue.d.ts +14 -0
- package/dist/views/organization/enum.d.ts +25 -0
- package/dist/views/organization/index.vue.d.ts +73 -0
- package/dist/views/other_setting/animationData.d.ts +7 -0
- package/dist/views/other_setting/index.vue.d.ts +2 -0
- package/dist/views/other_setting/interface.d.ts +23 -0
- package/dist/views/page_animation_setting/animationData.d.ts +11 -0
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -0
- package/dist/views/page_w_setting/index.vue.d.ts +2 -0
- package/dist/views/position/components/drawerPosition.vue.d.ts +12 -0
- package/dist/views/position/enum.d.ts +8 -0
- package/dist/views/position/index.vue.d.ts +1532 -0
- package/dist/views/region/components/drawerRegion.vue.d.ts +12 -0
- package/dist/views/region/enum.d.ts +22 -0
- package/dist/views/region/index.vue.d.ts +1533 -0
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +16 -0
- package/dist/views/resource/components/RoleRelation.vue.d.ts +6 -0
- package/dist/views/resource/enum.d.ts +30 -0
- package/dist/views/resource/index.vue.d.ts +1549 -0
- package/dist/views/resource/interface.d.ts +6 -0
- package/dist/views/role/components/ResourceRelation.vue.d.ts +1515 -0
- package/dist/views/role/components/drawerRole.vue.d.ts +49 -0
- package/dist/views/role/enum.d.ts +25 -0
- package/dist/views/role/index.vue.d.ts +3090 -0
- package/dist/views/role/interface.d.ts +6 -0
- package/dist/views/role_group/components/drawerRole.vue.d.ts +37 -0
- package/dist/views/role_group/components/roleSelect.vue.d.ts +14 -0
- package/dist/views/role_group/enum.d.ts +21 -0
- package/dist/views/role_group/index.vue.d.ts +1557 -0
- package/dist/views/role_group/interface.d.ts +6 -0
- package/dist/views/safe_setting/index.vue.d.ts +4 -0
- package/dist/views/tabbar_setting/animationData.d.ts +11 -0
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -0
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +50 -0
- package/dist/views/tenant/enum.d.ts +7 -0
- package/dist/views/tenant/index.vue.d.ts +1570 -0
- package/dist/views/tenant/interface.d.ts +6 -0
- package/dist/views/theme_setting/index.vue.d.ts +2 -0
- package/dist/views/toolbar_setting/animationData.d.ts +17 -0
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -0
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +14 -0
- package/dist/views/user/components/UserAuthorization.vue.d.ts +39 -0
- package/dist/views/user/components/UserEdit.vue.d.ts +16 -0
- package/dist/views/user/components/roleSelect.vue.d.ts +14 -0
- package/dist/views/user/enum.d.ts +13 -0
- package/dist/views/user/index.vue.d.ts +1586 -0
- package/dist/views/user/interface.d.ts +39 -0
- package/dist/views/watermark_setting/animationData.d.ts +3 -0
- package/dist/views/watermark_setting/index.vue.d.ts +31 -0
- package/dist/xitongpeizhifuwu-BIR2CVXp.js +23 -0
- package/dist/zidianfuwu-B137v_q7.js +65 -0
- package/dist/ziyuanjiekou-j9nd-oaF.js +69 -0
- package/dist/zuzhijiaosebiaokongzhiqi-DPbRg7Qd.js +28 -0
- package/package.json +18 -20
- package/src/components/GroupSelector/index.vue +1 -7
- package/src/components/GroupSelector/interface.ts +6 -0
- package/src/components/OrgUserSelector/index.ts +5 -0
- package/src/components/ResourceSelector/index.vue +1 -2
- package/src/index.ts +8 -14
- package/src/interface.ts +3 -0
- package/src/routes/index.ts +1 -1
- package/src/views/tenant/components/TenantEdit.vue +1 -8
- package/src/views/tenant/enum.ts +7 -0
- package/src/views/tenant/index.vue +1 -8
- package/src/views/theme_setting/index.vue +2 -1
- package/src/views/user/interface.ts +1 -1
- package/src/assets/icons/403.svg +0 -1
- package/src/assets/icons/403_dark.svg +0 -1
- package/src/assets/icons/404.svg +0 -1
- package/src/assets/icons/404_dark.svg +0 -1
- package/src/assets/icons/browser-360.svg +0 -1
- package/src/assets/icons/browser-chrome.svg +0 -1
- package/src/assets/icons/browser-edge.svg +0 -1
- package/src/assets/icons/browser-ie.svg +0 -1
- package/src/assets/icons/browser-other.svg +0 -1
- package/src/assets/icons/browser-qq.svg +0 -1
- package/src/assets/icons/browser-safari.svg +0 -1
- package/src/assets/icons/browser-uc.svg +0 -1
- package/src/assets/icons/change-org.svg +0 -1
- package/src/assets/icons/empty-data.svg +0 -1
- package/src/assets/icons/favorites.svg +0 -1
- package/src/assets/icons/image-load-fail.svg +0 -1
- package/src/assets/icons/logo-sig.svg +0 -1
- package/src/assets/icons/logo.svg +0 -1
- package/src/assets/icons/mima.svg +0 -1
- package/src/assets/icons/process-management.svg +0 -1
- package/src/assets/icons/project-management.svg +0 -1
- package/src/assets/icons/rbac.svg +0 -1
- package/src/assets/icons/test.svg +0 -1
- package/src/assets/icons/toolbar-collapse.svg +0 -1
- package/src/assets/icons/tree_icon.svg +0 -1
- package/src/assets/icons/tree_icon_checked.svg +0 -1
- package/src/assets/icons/workbench.svg +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OrgProviderProps, UserProviderProps } from '@pubinfo/headlessui';
|
|
2
|
+
interface ExtraApis {
|
|
3
|
+
/** 回显选中项 */
|
|
4
|
+
getSelectedData?: (items: any[]) => Promise<any[]>;
|
|
5
|
+
/** 添加到最近常用 */
|
|
6
|
+
addRecentlyUsed?: (items: any[]) => Promise<any>;
|
|
7
|
+
}
|
|
8
|
+
type Filter<T = any> = (value: T, index: number) => boolean;
|
|
9
|
+
export declare const orgFieldNames: OrgProviderProps['fieldNames'];
|
|
10
|
+
export declare const userFieldNames: OrgProviderProps['fieldNames'];
|
|
11
|
+
export declare function joinId(orgId?: string, userId?: string): string;
|
|
12
|
+
export declare function resolveId(orgUserId: string): {
|
|
13
|
+
orgId: string;
|
|
14
|
+
userId: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function useOrgAPIs({ auth, filter }: {
|
|
17
|
+
auth?: string;
|
|
18
|
+
filter: Filter;
|
|
19
|
+
}): OrgProviderProps['apis'] & ExtraApis;
|
|
20
|
+
export declare function useUserAPIs({ auth, filter }: {
|
|
21
|
+
auth?: string;
|
|
22
|
+
filter: Filter;
|
|
23
|
+
}): UserProviderProps['apis'] & ExtraApis;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ResourceMode } from '../enum';
|
|
2
|
+
export type TreeNode = API.PubResource & {
|
|
3
|
+
children?: TreeNode[];
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export interface StringMap<T> {
|
|
7
|
+
[key: string]: T;
|
|
8
|
+
}
|
|
9
|
+
export interface SelectedResourceInfo {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
export default function useAppAndResource(mode?: ResourceMode): {
|
|
14
|
+
appList: Ref<API.PubResource[] | {
|
|
15
|
+
label: string | undefined;
|
|
16
|
+
value: string | undefined;
|
|
17
|
+
}[]>;
|
|
18
|
+
resourceModelRef: any;
|
|
19
|
+
treeData: Ref<TreeNode[]>;
|
|
20
|
+
resourceMap: Ref<StringMap<string>>;
|
|
21
|
+
selectedResources: any;
|
|
22
|
+
isDataPermissionMode: any;
|
|
23
|
+
getAppList: () => void;
|
|
24
|
+
updateTreeDataAndResourceMap: (appId: string) => Promise<void>;
|
|
25
|
+
setSelectedResources: (resources: SelectedResourceInfo[]) => void;
|
|
26
|
+
updateSelectedResources: (resourceIds: string[]) => never[] | undefined;
|
|
27
|
+
clearSelectedResources: () => void;
|
|
28
|
+
openResourceModel: (resourceIds: string[]) => void;
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Key } from 'ant-design-vue/es/vc-tree/interface.d';
|
|
2
|
+
import { ResourceMode } from './enum';
|
|
3
|
+
import { StringMap } from './hooks/useAppAndResource';
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
title?: string;
|
|
6
|
+
mode?: ResourceMode;
|
|
7
|
+
};
|
|
8
|
+
declare function onOpen(ids: Key[], tree: any[], resMap: StringMap<string>): void;
|
|
9
|
+
type __VLS_PublicProps = {
|
|
10
|
+
'open'?: boolean;
|
|
11
|
+
} & __VLS_Props;
|
|
12
|
+
declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.16_typescript@5.8.3/node_modules/vue').DefineComponent<__VLS_PublicProps, {
|
|
13
|
+
open: typeof onOpen;
|
|
14
|
+
}, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.16_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.16_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
|
|
15
|
+
select: (...args: any[]) => void;
|
|
16
|
+
"update:open": (value: boolean) => void;
|
|
17
|
+
}, string, import('../../../../../node_modules/.pnpm/vue@3.5.16_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
title: string;
|
|
22
|
+
mode: ResourceMode;
|
|
23
|
+
}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.16_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MaybeRef } from '../../../../node_modules/.pnpm/vue@3.5.16_typescript@5.8.3/node_modules/vue';
|
|
2
|
+
interface Path {
|
|
3
|
+
lightAnimationData: any;
|
|
4
|
+
darkAnimationData: any;
|
|
5
|
+
}
|
|
6
|
+
export declare function useLottie(DomRef: MaybeRef<Element | null>, themePath: Path): {
|
|
7
|
+
play: () => void;
|
|
8
|
+
stop: () => void;
|
|
9
|
+
destroy: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var l = /* @__PURE__ */ ((a) => (a.ADD = "新增", a.EDIT = "编辑", a.VIEW = "查看", a.REMOVE = "删除", a))(l || {}), e = /* @__PURE__ */ ((a) => (a.ALL = "1", a.ONLY_SELF = "2", a.SELF_DEPT_ONLY = "3", a.SELF_DEPT_AND_SUB = "4", a.CUSTOM_DEPT_ONLY = "5", a.CUSTOM_DEPT_AND_SUB = "6", a.CUSTOM_GROUP = "7", a))(e || {});
|
|
2
|
+
const s = {
|
|
3
|
+
1: "查看全部",
|
|
4
|
+
2: "仅看自己",
|
|
5
|
+
3: "仅看所在部门",
|
|
6
|
+
4: "仅看所在部门及子部门",
|
|
7
|
+
6: "自选部门及子部门",
|
|
8
|
+
5: "仅自选部门",
|
|
9
|
+
7: "指定群组"
|
|
10
|
+
}, b = [
|
|
11
|
+
{
|
|
12
|
+
label: "查看全部",
|
|
13
|
+
value: "1"
|
|
14
|
+
/* ALL */
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: "仅看自己",
|
|
18
|
+
value: "2"
|
|
19
|
+
/* ONLY_SELF */
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: "仅看所在部门",
|
|
23
|
+
value: "3"
|
|
24
|
+
/* SELF_DEPT_ONLY */
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: "仅看所在部门及子部门",
|
|
28
|
+
value: "4"
|
|
29
|
+
/* SELF_DEPT_AND_SUB */
|
|
30
|
+
}
|
|
31
|
+
], u = [
|
|
32
|
+
{
|
|
33
|
+
label: "查看全部",
|
|
34
|
+
value: "1"
|
|
35
|
+
/* ALL */
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "仅看自己",
|
|
39
|
+
value: "2"
|
|
40
|
+
/* ONLY_SELF */
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "仅看所在部门",
|
|
44
|
+
value: "3"
|
|
45
|
+
/* SELF_DEPT_ONLY */
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "仅看所在部门及子部门",
|
|
49
|
+
value: "4"
|
|
50
|
+
/* SELF_DEPT_AND_SUB */
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: "自选部门及子部门",
|
|
54
|
+
value: "6"
|
|
55
|
+
/* CUSTOM_DEPT_AND_SUB */
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: "仅自选部门",
|
|
59
|
+
value: "5"
|
|
60
|
+
/* CUSTOM_DEPT_ONLY */
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "指定群组",
|
|
64
|
+
value: "7"
|
|
65
|
+
/* CUSTOM_GROUP */
|
|
66
|
+
}
|
|
67
|
+
];
|
|
68
|
+
export {
|
|
69
|
+
l as A,
|
|
70
|
+
e as D,
|
|
71
|
+
u as a,
|
|
72
|
+
s as b,
|
|
73
|
+
b as d
|
|
74
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var e = /* @__PURE__ */ ((a) => (a.ADD = "新增", a.EDIT = "编辑", a.REMOVE = "删除", a))(e || {});
|
|
2
|
+
const r = [
|
|
3
|
+
{
|
|
4
|
+
label: "本部门",
|
|
5
|
+
value: "1"
|
|
6
|
+
/* OWNER */
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
label: "本部门及子部门",
|
|
10
|
+
value: "2"
|
|
11
|
+
/* PARENT */
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: "全部",
|
|
15
|
+
value: "3"
|
|
16
|
+
/* ALL */
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
var l = /* @__PURE__ */ ((a) => (a.ORG = "1", a.PER = "2", a))(l || {});
|
|
20
|
+
export {
|
|
21
|
+
e as A,
|
|
22
|
+
l as G,
|
|
23
|
+
r as u
|
|
24
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { i as s } from "./index-BOEO9CRp.js";
|
|
2
|
+
function r(t, a) {
|
|
3
|
+
const { id: e, ...o } = t;
|
|
4
|
+
return s.Delete(
|
|
5
|
+
`/rbac/post/delete/${e}`,
|
|
6
|
+
{},
|
|
7
|
+
{
|
|
8
|
+
params: { ...o }
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function p(t, a) {
|
|
13
|
+
const { id: e, ...o } = t;
|
|
14
|
+
return s.Get(`/rbac/post/detail/${e}`, {
|
|
15
|
+
params: { ...o }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function i(t, a) {
|
|
19
|
+
return s.Post("/rbac/post/findPage", t, {
|
|
20
|
+
headers: {
|
|
21
|
+
"Content-Type": "application/json"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function c(t, a) {
|
|
26
|
+
return s.Get("/rbac/post/list", {
|
|
27
|
+
params: {
|
|
28
|
+
...t
|
|
29
|
+
},
|
|
30
|
+
...a || {}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function b(t, a) {
|
|
34
|
+
return s.Post("/rbac/post/save", t, {
|
|
35
|
+
headers: {
|
|
36
|
+
"Content-Type": "application/json"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
p as a,
|
|
42
|
+
i as b,
|
|
43
|
+
r as d,
|
|
44
|
+
c as g,
|
|
45
|
+
b as p
|
|
46
|
+
};
|