From 61c935836c947aaf3421731045d024d064cc6688 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期四, 07 八月 2025 13:33:16 +0800 Subject: [PATCH] feat: 企业 --- auto-imports.d.ts | 93 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 76 insertions(+), 17 deletions(-) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 92e91a2..c198d77 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -6,10 +6,12 @@ // biome-ignore lint: disable export {} declare global { + const AppLocalConfig: typeof import('./src/constants/app')['AppLocalConfig'] const AppType: typeof import('./src/constants/app')['AppType'] const AreaType: typeof import('./src/constants/enum')['AreaType'] const AuthorizeType: typeof import('./src/constants/enum')['AuthorizeType'] const BooleanOptions: typeof import('./src/constants/enum')['BooleanOptions'] + const CategoryCode: typeof import('./src/constants/dic')['CategoryCode'] const ChargeTypeEnum: typeof import('./src/constants/enterprise')['ChargeTypeEnum'] const ChargeTypeEnumText: typeof import('./src/constants/enterprise')['ChargeTypeEnumText'] const CommonAnnexTableColumns: typeof import('@/constants')['CommonAnnexTableColumns'] @@ -27,11 +29,17 @@ const EnumMenuType: typeof import('./src/constants/apiEnum')['EnumMenuType'] const EnumMenuVisitLevel: typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel'] const EnumPagedListOrder: typeof import('./src/constants/apiEnum')['EnumPagedListOrder'] + const EnumRealAccess: typeof import('./src/constants/apiEnum')['EnumRealAccess'] + const EnumRealAccessText: typeof import('./src/constants/enterprise')['EnumRealAccessText'] const EnumResourceController: typeof import('./src/constants/apiEnum')['EnumResourceController'] const EnumResourceMethod: typeof import('./src/constants/apiEnum')['EnumResourceMethod'] const EnumRoleWebApiDataPower: typeof import('./src/constants/apiEnum')['EnumRoleWebApiDataPower'] const EnumRoleWebApiDataPowerText: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText'] const EnumRoleWebApiDataPowerTextForFilter: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter'] + const EnumSmsAccess: typeof import('./src/constants/apiEnum')['EnumSmsAccess'] + const EnumSmsAccessText: typeof import('./src/constants/enterprise')['EnumSmsAccessText'] + const EnumUserInfoStatus: typeof import('./src/constants/apiEnum')['EnumUserInfoStatus'] + const EnumUserInfoStatusText: typeof import('./src/constants/user')['EnumUserInfoStatusText'] const EnumUserType: typeof import('./src/constants/apiEnum')['EnumUserType'] const EnumUserTypeText: typeof import('./src/constants/apiEnumText')['EnumUserTypeText'] const EnumWebApiMethod: typeof import('./src/constants/apiEnum')['EnumWebApiMethod'] @@ -51,6 +59,8 @@ const FlexWorkerEleSignEnumText: typeof import('./src/constants/cPerson')['FlexWorkerEleSignEnumText'] const Gender: typeof import('./src/constants/enum')['Gender'] const GenderText: typeof import('./src/constants/enum')['GenderText'] + const IsConfiguredText: typeof import('./src/constants/enterprise')['IsConfiguredText'] + const IsRealText: typeof import('./src/constants/enterprise')['IsRealText'] const MenuSvgIconMap: typeof import('./src/constants/menu')['MenuSvgIconMap'] const MessageChannelEnum: typeof import('./src/constants/enterprise')['MessageChannelEnum'] const MessageChannelEnumText: typeof import('./src/constants/enterprise')['MessageChannelEnumText'] @@ -83,6 +93,7 @@ const VerifyStatusText: typeof import('./src/constants/enterprise')['VerifyStatusText'] const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate'] const computed: typeof import('vue')['computed'] + const copyTextToClipboard: typeof import('./src/hooks/useCopyToClipboard')['copyTextToClipboard'] const createApp: typeof import('vue')['createApp'] const createPinia: typeof import('pinia')['createPinia'] const customRef: typeof import('vue')['customRef'] @@ -90,9 +101,11 @@ const defineComponent: typeof import('vue')['defineComponent'] const defineStore: typeof import('pinia')['defineStore'] const effectScope: typeof import('vue')['effectScope'] + const eventKey: typeof import('./src/hooks/useEvent')['eventKey'] const getActivePinia: typeof import('pinia')['getActivePinia'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] + const globalEventContextKey: typeof import('./src/hooks/useEvent')['globalEventContextKey'] const h: typeof import('vue')['h'] const inject: typeof import('vue')['inject'] const isProxy: typeof import('vue')['isProxy'] @@ -140,18 +153,38 @@ const toValue: typeof import('vue')['toValue'] const triggerRef: typeof import('vue')['triggerRef'] const unref: typeof import('vue')['unref'] + const useAccess: typeof import('./src/hooks/useAccess')['useAccess'] + const useAllRoleList: typeof import('./src/hooks/useUser')['useAllRoleList'] const useAttrs: typeof import('vue')['useAttrs'] + const useClearSubModule: typeof import('./src/hooks/useAccess')['useClearSubModule'] + const useCopyToClipboard: typeof import('./src/hooks/useCopyToClipboard')['useCopyToClipboard'] const useCssModule: typeof import('vue')['useCssModule'] const useCssVars: typeof import('vue')['useCssVars'] + const useDictionaryDataSelect: typeof import('./src/hooks/dic')['useDictionaryDataSelect'] + const useGetDictionaryCategorySelect: typeof import('./src/hooks/dic')['useGetDictionaryCategorySelect'] + const useGlobalEventContext: typeof import('./src/hooks/useEvent')['useGlobalEventContext'] + const useGlobalEventProvide: typeof import('./src/hooks/useEvent')['useGlobalEventProvide'] + const useGroupColumns: typeof import('./src/hooks/useAccess')['useGroupColumns'] + const useGroupOperationBtns: typeof import('./src/hooks/useAccess')['useGroupOperationBtns'] const useId: typeof import('vue')['useId'] + const useIsSystemAdmin: typeof import('./src/hooks/useUser')['useIsSystemAdmin'] const useLink: typeof import('vue-router')['useLink'] - const useLoading: typeof import('@/hooks/global')['useLoading'] + const useLoading: typeof import('./src/hooks/global/useLoading')['useLoading'] + const useMenu: typeof import('./src/hooks/menu')['useMenu'] + const useMenus: typeof import('./src/hooks/menu')['useMenus'] const useModel: typeof import('vue')['useModel'] + const useOmit: typeof import('./src/hooks/help')['useOmit'] + const useOmitProps: typeof import('./src/hooks/help')['useOmitProps'] + const useResizeHander: typeof import('./src/hooks/useResizeHander')['useResizeHander'] const useRoute: typeof import('vue-router')['useRoute'] + const useRouteView: typeof import('./src/hooks/useRouteView')['useRouteView'] const useRouter: typeof import('vue-router')['useRouter'] - const useSetReactive: typeof import('@/hooks/global')['useSetReactive'] + const useSetReactive: typeof import('./src/hooks/global/helper')['useSetReactive'] const useSlots: typeof import('vue')['useSlots'] const useTemplateRef: typeof import('vue')['useTemplateRef'] + const useUser: typeof import('./src/hooks/useUser')['useUser'] + const useVModel: typeof import('./src/hooks/help')['useVModel'] + const useVModels: typeof import('./src/hooks/help')['useVModels'] const watch: typeof import('vue')['watch'] const watchEffect: typeof import('vue')['watchEffect'] const watchPostEffect: typeof import('vue')['watchPostEffect'] @@ -163,19 +196,19 @@ export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') // @ts-ignore - export type { EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserType, EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserType } from './src/constants/apiEnum' + export type { EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSmsAccess, EnumUserInfoStatus, EnumUserType, EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumRealAccess, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumSmsAccess, EnumUserInfoStatus, EnumUserType } from './src/constants/apiEnum' import('./src/constants/apiEnum') // @ts-ignore export type { FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum, FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum } from './src/constants/cPerson' import('./src/constants/cPerson') // @ts-ignore - export type { SearchType, SearchType } from './src/constants/dic' + export type { CategoryCode, CategoryCode } from './src/constants/dic' import('./src/constants/dic') // @ts-ignore export type { EditorType, EditorType } from './src/constants/editor' import('./src/constants/editor') // @ts-ignore - export type { EnterpriseConfigureType, FlexEnterpriseSettingStatus, FlexEnterpriseStatus, VerifyStatus, FlexEnterpriseCertificationStatus, MessageChannelEnum, SignChannelEnum, ChargeTypeEnum, EnterpriseConfigureType, FlexEnterpriseSettingStatus, FlexEnterpriseStatus, VerifyStatus, FlexEnterpriseCertificationStatus, MessageChannelEnum, SignChannelEnum, ChargeTypeEnum } from './src/constants/enterprise' + export type { EnterpriseConfigureType, VerifyStatus, FlexEnterpriseCertificationStatus, ChargeTypeEnum, EnterpriseConfigureType, VerifyStatus, FlexEnterpriseCertificationStatus, ChargeTypeEnum } from './src/constants/enterprise' import('./src/constants/enterprise') // @ts-ignore export type { AreaType, AuthorizeType, Gender, AreaType, AuthorizeType, Gender } from './src/constants/enum' @@ -192,6 +225,9 @@ // @ts-ignore export type { RoleClientType, RoleClientType } from './src/constants/role' import('./src/constants/role') + // @ts-ignore + export type { GlobalEvent, GlobalEventListener, GlobalEventContext } from './src/hooks/useEvent' + import('./src/hooks/useEvent') } // for vue template auto import @@ -199,10 +235,12 @@ declare module 'vue' { interface GlobalComponents {} interface ComponentCustomProperties { + readonly AppLocalConfig: UnwrapRef<typeof import('./src/constants/app')['AppLocalConfig']> readonly AppType: UnwrapRef<typeof import('./src/constants/app')['AppType']> readonly AreaType: UnwrapRef<typeof import('./src/constants/enum')['AreaType']> readonly AuthorizeType: UnwrapRef<typeof import('./src/constants/enum')['AuthorizeType']> readonly BooleanOptions: UnwrapRef<typeof import('./src/constants/enum')['BooleanOptions']> + readonly CategoryCode: UnwrapRef<typeof import('./src/constants/dic')['CategoryCode']> readonly ChargeTypeEnum: UnwrapRef<typeof import('./src/constants/enterprise')['ChargeTypeEnum']> readonly ChargeTypeEnumText: UnwrapRef<typeof import('./src/constants/enterprise')['ChargeTypeEnumText']> readonly EditorType: UnwrapRef<typeof import('./src/constants/editor')['EditorType']> @@ -216,11 +254,17 @@ readonly EnumMenuType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuType']> readonly EnumMenuVisitLevel: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumMenuVisitLevel']> readonly EnumPagedListOrder: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumPagedListOrder']> + readonly EnumRealAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumRealAccess']> + readonly EnumRealAccessText: UnwrapRef<typeof import('./src/constants/enterprise')['EnumRealAccessText']> readonly EnumResourceController: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumResourceController']> readonly EnumResourceMethod: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumResourceMethod']> readonly EnumRoleWebApiDataPower: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumRoleWebApiDataPower']> readonly EnumRoleWebApiDataPowerText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText']> readonly EnumRoleWebApiDataPowerTextForFilter: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter']> + readonly EnumSmsAccess: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumSmsAccess']> + readonly EnumSmsAccessText: UnwrapRef<typeof import('./src/constants/enterprise')['EnumSmsAccessText']> + readonly EnumUserInfoStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumUserInfoStatus']> + readonly EnumUserInfoStatusText: UnwrapRef<typeof import('./src/constants/user')['EnumUserInfoStatusText']> readonly EnumUserType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumUserType']> readonly EnumUserTypeText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumUserTypeText']> readonly FastButtonMap: UnwrapRef<typeof import('./src/constants/module')['FastButtonMap']> @@ -229,19 +273,15 @@ readonly FastPageButtonList: UnwrapRef<typeof import('./src/constants/module')['FastPageButtonList']> readonly FlexEnterpriseCertificationStatus: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseCertificationStatus']> readonly FlexEnterpriseCertificationStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseCertificationStatusText']> - readonly FlexEnterpriseSettingStatus: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseSettingStatus']> - readonly FlexEnterpriseSettingStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseSettingStatusText']> - readonly FlexEnterpriseStatus: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseStatus']> - readonly FlexEnterpriseStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['FlexEnterpriseStatusText']> readonly FlexTaskWorkerHireEnum: UnwrapRef<typeof import('./src/constants/cPerson')['FlexTaskWorkerHireEnum']> readonly FlexTaskWorkerHireEnumText: UnwrapRef<typeof import('./src/constants/cPerson')['FlexTaskWorkerHireEnumText']> readonly FlexWorkerEleSignEnum: UnwrapRef<typeof import('./src/constants/cPerson')['FlexWorkerEleSignEnum']> readonly FlexWorkerEleSignEnumText: UnwrapRef<typeof import('./src/constants/cPerson')['FlexWorkerEleSignEnumText']> readonly Gender: UnwrapRef<typeof import('./src/constants/enum')['Gender']> readonly GenderText: UnwrapRef<typeof import('./src/constants/enum')['GenderText']> + readonly IsConfiguredText: UnwrapRef<typeof import('./src/constants/enterprise')['IsConfiguredText']> + readonly IsRealText: UnwrapRef<typeof import('./src/constants/enterprise')['IsRealText']> readonly MenuSvgIconMap: UnwrapRef<typeof import('./src/constants/menu')['MenuSvgIconMap']> - readonly MessageChannelEnum: UnwrapRef<typeof import('./src/constants/enterprise')['MessageChannelEnum']> - readonly MessageChannelEnumText: UnwrapRef<typeof import('./src/constants/enterprise')['MessageChannelEnumText']> readonly ModuleColumns: UnwrapRef<typeof import('./src/constants/module')['ModuleColumns']> readonly MyRegExp: UnwrapRef<typeof import('./src/constants/regExp')['MyRegExp']> readonly OSSBaseURL: UnwrapRef<typeof import('./src/constants/oss')['OSSBaseURL']> @@ -258,10 +298,6 @@ readonly OssUser: UnwrapRef<typeof import('./src/constants/oss')['OssUser']> readonly OssUserSign: UnwrapRef<typeof import('./src/constants/oss')['OssUserSign']> readonly RoleClientType: UnwrapRef<typeof import('./src/constants/role')['RoleClientType']> - readonly SearchType: UnwrapRef<typeof import('./src/constants/dic')['SearchType']> - readonly SearchTypeText: UnwrapRef<typeof import('./src/constants/dic')['SearchTypeText']> - readonly SignChannelEnum: UnwrapRef<typeof import('./src/constants/enterprise')['SignChannelEnum']> - readonly SignChannelEnumText: UnwrapRef<typeof import('./src/constants/enterprise')['SignChannelEnumText']> readonly SubModuleKey: UnwrapRef<typeof import('./src/constants/module')['SubModuleKey']> readonly SubModuleTitle: UnwrapRef<typeof import('./src/constants/module')['SubModuleTitle']> readonly SubModuleType: UnwrapRef<typeof import('./src/constants/module')['SubModuleType']> @@ -271,6 +307,7 @@ readonly VerifyStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['VerifyStatusText']> readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']> readonly computed: UnwrapRef<typeof import('vue')['computed']> + readonly copyTextToClipboard: UnwrapRef<typeof import('./src/hooks/useCopyToClipboard')['copyTextToClipboard']> readonly createApp: UnwrapRef<typeof import('vue')['createApp']> readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']> readonly customRef: UnwrapRef<typeof import('vue')['customRef']> @@ -278,9 +315,11 @@ readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']> readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']> readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']> + readonly eventKey: UnwrapRef<typeof import('./src/hooks/useEvent')['eventKey']> readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']> readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']> readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']> + readonly globalEventContextKey: UnwrapRef<typeof import('./src/hooks/useEvent')['globalEventContextKey']> readonly h: UnwrapRef<typeof import('vue')['h']> readonly inject: UnwrapRef<typeof import('vue')['inject']> readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']> @@ -328,18 +367,38 @@ readonly toValue: UnwrapRef<typeof import('vue')['toValue']> readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']> readonly unref: UnwrapRef<typeof import('vue')['unref']> + readonly useAccess: UnwrapRef<typeof import('./src/hooks/useAccess')['useAccess']> + readonly useAllRoleList: UnwrapRef<typeof import('./src/hooks/useUser')['useAllRoleList']> readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']> + readonly useClearSubModule: UnwrapRef<typeof import('./src/hooks/useAccess')['useClearSubModule']> + readonly useCopyToClipboard: UnwrapRef<typeof import('./src/hooks/useCopyToClipboard')['useCopyToClipboard']> readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']> readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']> + readonly useDictionaryDataSelect: UnwrapRef<typeof import('./src/hooks/dic')['useDictionaryDataSelect']> + readonly useGetDictionaryCategorySelect: UnwrapRef<typeof import('./src/hooks/dic')['useGetDictionaryCategorySelect']> + readonly useGlobalEventContext: UnwrapRef<typeof import('./src/hooks/useEvent')['useGlobalEventContext']> + readonly useGlobalEventProvide: UnwrapRef<typeof import('./src/hooks/useEvent')['useGlobalEventProvide']> + readonly useGroupColumns: UnwrapRef<typeof import('./src/hooks/useAccess')['useGroupColumns']> + readonly useGroupOperationBtns: UnwrapRef<typeof import('./src/hooks/useAccess')['useGroupOperationBtns']> readonly useId: UnwrapRef<typeof import('vue')['useId']> + readonly useIsSystemAdmin: UnwrapRef<typeof import('./src/hooks/useUser')['useIsSystemAdmin']> readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']> - readonly useLoading: UnwrapRef<typeof import('@/hooks/global')['useLoading']> + readonly useLoading: UnwrapRef<typeof import('./src/hooks/global/useLoading')['useLoading']> + readonly useMenu: UnwrapRef<typeof import('./src/hooks/menu')['useMenu']> + readonly useMenus: UnwrapRef<typeof import('./src/hooks/menu')['useMenus']> readonly useModel: UnwrapRef<typeof import('vue')['useModel']> + readonly useOmit: UnwrapRef<typeof import('./src/hooks/help')['useOmit']> + readonly useOmitProps: UnwrapRef<typeof import('./src/hooks/help')['useOmitProps']> + readonly useResizeHander: UnwrapRef<typeof import('./src/hooks/useResizeHander')['useResizeHander']> readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']> + readonly useRouteView: UnwrapRef<typeof import('./src/hooks/useRouteView')['useRouteView']> readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']> - readonly useSetReactive: UnwrapRef<typeof import('@/hooks/global')['useSetReactive']> + readonly useSetReactive: UnwrapRef<typeof import('./src/hooks/global/helper')['useSetReactive']> readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']> readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']> + readonly useUser: UnwrapRef<typeof import('./src/hooks/useUser')['useUser']> + readonly useVModel: UnwrapRef<typeof import('./src/hooks/help')['useVModel']> + readonly useVModels: UnwrapRef<typeof import('./src/hooks/help')['useVModels']> readonly watch: UnwrapRef<typeof import('vue')['watch']> readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']> readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']> -- Gitblit v1.9.1