@sunny-base-web/effects 0.8.32 → 0.8.34
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/index.d.ts +3293 -0
- package/package.json +11 -11
- package/dist/@effects/src/access/AccessControl.d.ts +0 -24
- package/dist/@effects/src/access/AccessControl.d.ts.map +0 -1
- package/dist/@effects/src/access/accessible.d.ts +0 -1
- package/dist/@effects/src/access/accessible.d.ts.map +0 -1
- package/dist/@effects/src/access/index.d.ts +0 -7
- package/dist/@effects/src/access/index.d.ts.map +0 -1
- package/dist/@effects/src/access/types.d.ts +0 -36
- package/dist/@effects/src/access/types.d.ts.map +0 -1
- package/dist/@effects/src/api/core/index.d.ts +0 -28
- package/dist/@effects/src/api/core/index.d.ts.map +0 -1
- package/dist/@effects/src/api/favorite/index.d.ts +0 -38
- package/dist/@effects/src/api/favorite/index.d.ts.map +0 -1
- package/dist/@effects/src/api/request.d.ts +0 -15
- package/dist/@effects/src/api/request.d.ts.map +0 -1
- package/dist/@effects/src/api/resource/index.d.ts +0 -77
- package/dist/@effects/src/api/resource/index.d.ts.map +0 -1
- package/dist/@effects/src/api/resource.d.ts +0 -105
- package/dist/@effects/src/api/resource.d.ts.map +0 -1
- package/dist/@effects/src/api/user/index.d.ts +0 -15
- package/dist/@effects/src/api/user/index.d.ts.map +0 -1
- package/dist/@effects/src/composables/index.d.ts +0 -2
- package/dist/@effects/src/composables/index.d.ts.map +0 -1
- package/dist/@effects/src/composables/use-favorite.d.ts +0 -48
- package/dist/@effects/src/composables/use-favorite.d.ts.map +0 -1
- package/dist/@effects/src/config.d.ts +0 -98
- package/dist/@effects/src/config.d.ts.map +0 -1
- package/dist/@effects/src/form/index.d.ts +0 -97
- package/dist/@effects/src/form/index.d.ts.map +0 -1
- package/dist/@effects/src/form/permission-options-adapter.d.ts +0 -18
- package/dist/@effects/src/form/permission-options-adapter.d.ts.map +0 -1
- package/dist/@effects/src/form/permission-options-manager.d.ts +0 -61
- package/dist/@effects/src/form/permission-options-manager.d.ts.map +0 -1
- package/dist/@effects/src/form/select-options-adapter.d.ts +0 -9
- package/dist/@effects/src/form/select-options-adapter.d.ts.map +0 -1
- package/dist/@effects/src/form/select-options-manager.d.ts +0 -61
- package/dist/@effects/src/form/select-options-manager.d.ts.map +0 -1
- package/dist/@effects/src/form/use-permission-options.d.ts +0 -126
- package/dist/@effects/src/form/use-permission-options.d.ts.map +0 -1
- package/dist/@effects/src/form/use-select-options.d.ts +0 -128
- package/dist/@effects/src/form/use-select-options.d.ts.map +0 -1
- package/dist/@effects/src/hooks/index.d.ts +0 -9
- package/dist/@effects/src/hooks/index.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useBusinessSearchModal.d.ts +0 -38
- package/dist/@effects/src/hooks/useBusinessSearchModal.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useForm.d.ts +0 -17
- package/dist/@effects/src/hooks/useForm.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useFormTable.d.ts +0 -16
- package/dist/@effects/src/hooks/useFormTable.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useFormTabs.d.ts +0 -23
- package/dist/@effects/src/hooks/useFormTabs.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useList.d.ts +0 -111
- package/dist/@effects/src/hooks/useList.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useTable.d.ts +0 -35
- package/dist/@effects/src/hooks/useTable.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useUser.d.ts +0 -24
- package/dist/@effects/src/hooks/useUser.d.ts.map +0 -1
- package/dist/@effects/src/hooks/useUserResources.d.ts +0 -19
- package/dist/@effects/src/hooks/useUserResources.d.ts.map +0 -1
- package/dist/@effects/src/index.d.ts +0 -36
- package/dist/@effects/src/index.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/header/breadcrumb.d.ts +0 -3
- package/dist/@effects/src/layouts/basic-layout/header/breadcrumb.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/header/language-toggle.d.ts +0 -3
- package/dist/@effects/src/layouts/basic-layout/header/language-toggle.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/header/password-modal.d.ts +0 -6
- package/dist/@effects/src/layouts/basic-layout/header/password-modal.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/header/search.d.ts +0 -6
- package/dist/@effects/src/layouts/basic-layout/header/search.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/header/settings-modal.d.ts +0 -6
- package/dist/@effects/src/layouts/basic-layout/header/settings-modal.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/header/theme-toggle.d.ts +0 -3
- package/dist/@effects/src/layouts/basic-layout/header/theme-toggle.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/header/user-avatar.d.ts +0 -32
- package/dist/@effects/src/layouts/basic-layout/header/user-avatar.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/index.d.ts +0 -60
- package/dist/@effects/src/layouts/basic-layout/index.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/menu-item.d.ts +0 -6
- package/dist/@effects/src/layouts/basic-layout/menu-item.d.ts.map +0 -1
- package/dist/@effects/src/layouts/basic-layout/tabbar/index.d.ts +0 -3
- package/dist/@effects/src/layouts/basic-layout/tabbar/index.d.ts.map +0 -1
- package/dist/@effects/src/layouts/index.d.ts +0 -2
- package/dist/@effects/src/layouts/index.d.ts.map +0 -1
- package/dist/@effects/src/loading/GlobalLoading.d.ts +0 -7
- package/dist/@effects/src/loading/GlobalLoading.d.ts.map +0 -1
- package/dist/@effects/src/loading/index.d.ts +0 -9
- package/dist/@effects/src/loading/index.d.ts.map +0 -1
- package/dist/@effects/src/loading/loading-manager.d.ts +0 -32
- package/dist/@effects/src/loading/loading-manager.d.ts.map +0 -1
- package/dist/@effects/src/loading/types.d.ts +0 -23
- package/dist/@effects/src/loading/types.d.ts.map +0 -1
- package/dist/@effects/src/loading/use-global-loading.d.ts +0 -38
- package/dist/@effects/src/loading/use-global-loading.d.ts.map +0 -1
- package/dist/@effects/src/login/index.d.ts +0 -77
- package/dist/@effects/src/login/index.d.ts.map +0 -1
- package/dist/@effects/src/request/src/index.d.ts +0 -3
- package/dist/@effects/src/request/src/index.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/index.d.ts +0 -4
- package/dist/@effects/src/request/src/request-client/index.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/modules/downloader.d.ts +0 -23
- package/dist/@effects/src/request/src/request-client/modules/downloader.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/modules/interceptor.d.ts +0 -10
- package/dist/@effects/src/request/src/request-client/modules/interceptor.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/modules/sse.d.ts +0 -19
- package/dist/@effects/src/request/src/request-client/modules/sse.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/modules/uploader.d.ts +0 -11
- package/dist/@effects/src/request/src/request-client/modules/uploader.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/preset-interceptors.d.ts +0 -34
- package/dist/@effects/src/request/src/request-client/preset-interceptors.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/request-client.d.ts +0 -48
- package/dist/@effects/src/request/src/request-client/request-client.d.ts.map +0 -1
- package/dist/@effects/src/request/src/request-client/types.d.ts +0 -51
- package/dist/@effects/src/request/src/request-client/types.d.ts.map +0 -1
- package/dist/@effects/src/resourceManagement/components/ConstructionConfig.d.ts +0 -10
- package/dist/@effects/src/resourceManagement/components/ConstructionConfig.d.ts.map +0 -1
- package/dist/@effects/src/resourceManagement/components/EditTable/cMetaEditor.d.ts +0 -18
- package/dist/@effects/src/resourceManagement/components/EditTable/cMetaEditor.d.ts.map +0 -1
- package/dist/@effects/src/resourceManagement/components/EditTable/chooseTable.d.ts +0 -9
- package/dist/@effects/src/resourceManagement/components/EditTable/chooseTable.d.ts.map +0 -1
- package/dist/@effects/src/resourceManagement/components/EditTable/fieldCallmethod.d.ts +0 -24
- package/dist/@effects/src/resourceManagement/components/EditTable/fieldCallmethod.d.ts.map +0 -1
- package/dist/@effects/src/resourceManagement/components/ResourceTree.d.ts +0 -35
- package/dist/@effects/src/resourceManagement/components/ResourceTree.d.ts.map +0 -1
- package/dist/@effects/src/resourceManagement/index.d.ts +0 -39
- package/dist/@effects/src/resourceManagement/index.d.ts.map +0 -1
- package/dist/@effects/src/utils/DefaultButtonResource.d.ts +0 -77
- package/dist/@effects/src/utils/DefaultButtonResource.d.ts.map +0 -1
- package/dist/@effects/src/utils/encryption.d.ts +0 -2
- package/dist/@effects/src/utils/encryption.d.ts.map +0 -1
- package/dist/@effects/src/utils/error-report.d.ts +0 -55
- package/dist/@effects/src/utils/error-report.d.ts.map +0 -1
- package/dist/@effects/src/utils/formatter.d.ts +0 -11
- package/dist/@effects/src/utils/formatter.d.ts.map +0 -1
- package/dist/@effects/src/utils/select-options.d.ts +0 -22
- package/dist/@effects/src/utils/select-options.d.ts.map +0 -1
- package/dist/@effects/src/utils/types.d.ts +0 -27
- package/dist/@effects/src/utils/types.d.ts.map +0 -1
- package/dist/@effects/src/utils/use-schema-options-loader.d.ts +0 -112
- package/dist/@effects/src/utils/use-schema-options-loader.d.ts.map +0 -1
- package/dist/@effects/src/utils/use-schema-permission-loader.d.ts +0 -76
- package/dist/@effects/src/utils/use-schema-permission-loader.d.ts.map +0 -1
- package/dist/@effects/src/utils/utils.d.ts +0 -46
- package/dist/@effects/src/utils/utils.d.ts.map +0 -1
- package/dist/@effects/src/views/dashboard/Dashboard.d.ts +0 -3
- package/dist/@effects/src/views/dashboard/Dashboard.d.ts.map +0 -1
- package/dist/@effects/src/views/dashboard/api.d.ts +0 -97
- package/dist/@effects/src/views/dashboard/api.d.ts.map +0 -1
- package/dist/@effects/src/views/dashboard/components/AddEntryModal.d.ts +0 -14
- package/dist/@effects/src/views/dashboard/components/AddEntryModal.d.ts.map +0 -1
- package/dist/@effects/src/views/dashboard/index.d.ts +0 -3
- package/dist/@effects/src/views/dashboard/index.d.ts.map +0 -1
- package/dist/@effects/src/views/design/Design.d.ts +0 -3
- package/dist/@effects/src/views/design/Design.d.ts.map +0 -1
- package/dist/@effects/src/views/design/index.d.ts +0 -2
- package/dist/@effects/src/views/design/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryAdd.d.ts +0 -18
- package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryAdd.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryQuery.d.ts +0 -3
- package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryUpdate.d.ts +0 -17
- package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryUpdate.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dataDictionary/config.d.ts +0 -75
- package/dist/@effects/src/views/setting/dataDictionary/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dataDictionary/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/dataDictionary/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dataDictionary/types.d.ts +0 -43
- package/dist/@effects/src/views/setting/dataDictionary/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupForm.d.ts +0 -17
- package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupForm.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupQuery.d.ts +0 -33
- package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobgroup/config.d.ts +0 -27
- package/dist/@effects/src/views/setting/dsrw/jobgroup/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobgroup/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/dsrw/jobgroup/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobgroup/types.d.ts +0 -22
- package/dist/@effects/src/views/setting/dsrw/jobgroup/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoCode.d.ts +0 -15
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoCode.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoForm.d.ts +0 -17
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoForm.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoOnce.d.ts +0 -17
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoOnce.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoQuery.d.ts +0 -89
- package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobinfo/config.d.ts +0 -31
- package/dist/@effects/src/views/setting/dsrw/jobinfo/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobinfo/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/dsrw/jobinfo/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/jobinfo/types.d.ts +0 -34
- package/dist/@effects/src/views/setting/dsrw/jobinfo/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/joblog/JobLogQuery.d.ts +0 -28
- package/dist/@effects/src/views/setting/dsrw/joblog/JobLogQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/joblog/LogList.d.ts +0 -14
- package/dist/@effects/src/views/setting/dsrw/joblog/LogList.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/joblog/config.d.ts +0 -27
- package/dist/@effects/src/views/setting/dsrw/joblog/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/joblog/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/dsrw/joblog/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/dsrw/joblog/types.d.ts +0 -54
- package/dist/@effects/src/views/setting/dsrw/joblog/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaAdd.d.ts +0 -10
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaAdd.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaQuery.d.ts +0 -24
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/config.d.ts +0 -25
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/index.d.ts +0 -5
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/types.d.ts +0 -13
- package/dist/@effects/src/views/setting/gnzjgl/assSendoa/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcQuery.d.ts +0 -3
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcReview.d.ts +0 -11
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcReview.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/config.d.ts +0 -20
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/types.d.ts +0 -19
- package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkAdd.d.ts +0 -10
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkAdd.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkQuery.d.ts +0 -24
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/config.d.ts +0 -37
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/index.d.ts +0 -2
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/types.d.ts +0 -17
- package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/operationLog/OperationLogQuery.d.ts +0 -3
- package/dist/@effects/src/views/setting/operationLog/OperationLogQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/operationLog/config.d.ts +0 -19
- package/dist/@effects/src/views/setting/operationLog/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/operationLog/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/operationLog/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/operationLog/types.d.ts +0 -31
- package/dist/@effects/src/views/setting/operationLog/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsAdd.d.ts +0 -22
- package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsAdd.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsQuery.d.ts +0 -3
- package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsUpdate.d.ts +0 -16
- package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsUpdate.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/otherPermissions/config.d.ts +0 -23
- package/dist/@effects/src/views/setting/otherPermissions/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/otherPermissions/index.d.ts +0 -6
- package/dist/@effects/src/views/setting/otherPermissions/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/otherPermissions/types.d.ts +0 -34
- package/dist/@effects/src/views/setting/otherPermissions/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/role/RoleAdd.d.ts +0 -123
- package/dist/@effects/src/views/setting/role/RoleAdd.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/role/RoleAuth.d.ts +0 -28
- package/dist/@effects/src/views/setting/role/RoleAuth.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/role/RoleChooseUser.d.ts +0 -9
- package/dist/@effects/src/views/setting/role/RoleChooseUser.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/role/RoleQuery.d.ts +0 -174
- package/dist/@effects/src/views/setting/role/RoleQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/role/config.d.ts +0 -19
- package/dist/@effects/src/views/setting/role/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/role/index.d.ts +0 -6
- package/dist/@effects/src/views/setting/role/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/role/types.d.ts +0 -80
- package/dist/@effects/src/views/setting/role/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/systemSetting/SystemSetting.d.ts +0 -3
- package/dist/@effects/src/views/setting/systemSetting/SystemSetting.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/systemSetting/api.d.ts +0 -21
- package/dist/@effects/src/views/setting/systemSetting/api.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/systemSetting/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/systemSetting/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/systemSetting/types.d.ts +0 -28
- package/dist/@effects/src/views/setting/systemSetting/types.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/UserAdd.d.ts +0 -11
- package/dist/@effects/src/views/setting/user/UserAdd.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/UserAuth.d.ts +0 -28
- package/dist/@effects/src/views/setting/user/UserAuth.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/UserBindMac.d.ts +0 -9
- package/dist/@effects/src/views/setting/user/UserBindMac.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/UserChooseRole.d.ts +0 -9
- package/dist/@effects/src/views/setting/user/UserChooseRole.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/UserOtherAuth.d.ts +0 -9
- package/dist/@effects/src/views/setting/user/UserOtherAuth.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/UserQuery.d.ts +0 -99
- package/dist/@effects/src/views/setting/user/UserQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/config.d.ts +0 -20
- package/dist/@effects/src/views/setting/user/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/user/index.d.ts +0 -2
- package/dist/@effects/src/views/setting/user/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/ywsjzd/YwsjzdAdd.d.ts +0 -18
- package/dist/@effects/src/views/setting/ywsjzd/YwsjzdAdd.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/ywsjzd/YwsjzdQuery.d.ts +0 -3
- package/dist/@effects/src/views/setting/ywsjzd/YwsjzdQuery.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/ywsjzd/YwsjzdUpdate.d.ts +0 -17
- package/dist/@effects/src/views/setting/ywsjzd/YwsjzdUpdate.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/ywsjzd/config.d.ts +0 -75
- package/dist/@effects/src/views/setting/ywsjzd/config.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/ywsjzd/index.d.ts +0 -4
- package/dist/@effects/src/views/setting/ywsjzd/index.d.ts.map +0 -1
- package/dist/@effects/src/views/setting/ywsjzd/types.d.ts +0 -72
- package/dist/@effects/src/views/setting/ywsjzd/types.d.ts.map +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3293 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
3
|
+
import { AxiosInstance } from 'axios';
|
|
4
|
+
import { AxiosRequestConfig } from 'axios';
|
|
5
|
+
import { AxiosResponse } from 'axios';
|
|
6
|
+
import { BusinessSearchAdapter } from '@sunny-base-web/ui';
|
|
7
|
+
import { ComponentCustomProperties } from 'vue';
|
|
8
|
+
import { ComponentCustomProps } from 'vue';
|
|
9
|
+
import { ComponentInternalInstance } from 'vue';
|
|
10
|
+
import { ComponentOptionsBase } from 'vue';
|
|
11
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
12
|
+
import { ComponentProvideOptions } from 'vue';
|
|
13
|
+
import { ComponentPublicInstance } from 'vue';
|
|
14
|
+
import { computed } from 'vue';
|
|
15
|
+
import { ComputedRef } from 'vue';
|
|
16
|
+
import { CreateAxiosDefaults } from 'axios';
|
|
17
|
+
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
18
|
+
import { DebuggerEvent } from 'vue';
|
|
19
|
+
import { DefineComponent } from 'vue';
|
|
20
|
+
import { DefineSetupFnComponent } from 'vue';
|
|
21
|
+
import { ExtractPropTypes } from 'vue';
|
|
22
|
+
import { FavoriteItem } from '@sunny-base-web/stores';
|
|
23
|
+
import { FavoriteState } from '@sunny-base-web/stores';
|
|
24
|
+
import { FormApi } from '@sunny-base-web/ui';
|
|
25
|
+
import { FormCommonConfig } from '@sunny-base-web/ui';
|
|
26
|
+
import { FormSchema } from '@sunny-base-web/ui';
|
|
27
|
+
import { GlobalComponents } from 'vue';
|
|
28
|
+
import { GlobalDirectives } from 'vue';
|
|
29
|
+
import { InjectionKey } from 'vue';
|
|
30
|
+
import { InternalAxiosRequestConfig } from 'axios';
|
|
31
|
+
import { ModalProps } from 'node_modules/@sunny-base-web/ui/src/feedback/modal/types';
|
|
32
|
+
import { nextTick } from 'vue';
|
|
33
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
34
|
+
import { PermissionFieldMapping } from '@sunny-base-web/ui';
|
|
35
|
+
import { PiniaCustomStateProperties } from 'pinia';
|
|
36
|
+
import { PropType } from 'vue';
|
|
37
|
+
import { PublicProps } from 'vue';
|
|
38
|
+
import { Ref } from 'vue';
|
|
39
|
+
import { RendererElement } from 'vue';
|
|
40
|
+
import { RendererNode } from 'vue';
|
|
41
|
+
import { SelectFieldMapping } from '@sunny-base-web/ui';
|
|
42
|
+
import { SelectOption as SelectOption_2 } from '@sunny-base-web/ui';
|
|
43
|
+
import { SelectOptionsAdapter } from '@sunny-base-web/ui';
|
|
44
|
+
import { ShallowRef } from 'vue';
|
|
45
|
+
import { ShallowUnwrapRef } from 'vue';
|
|
46
|
+
import { Slot } from 'vue';
|
|
47
|
+
import { Store } from 'pinia';
|
|
48
|
+
import { SunnyFormProps } from '@sunny-base-web/ui';
|
|
49
|
+
import { VNode } from 'vue';
|
|
50
|
+
import { VNodeChild } from 'vue';
|
|
51
|
+
import { VNodeProps } from 'vue';
|
|
52
|
+
import { VxeGridApi } from 'node_modules/@sunny-base-web/ui/src/data/query-grid/api';
|
|
53
|
+
import { VxeGridApi as VxeGridApi_2 } from 'node_modules/@sunny-base-web/ui/src/data/edit-grid/api';
|
|
54
|
+
import { VxeGridProps } from '@sunny-base-web/ui';
|
|
55
|
+
import { VxeGridPropTypes } from '@sunny-base-web/ui';
|
|
56
|
+
import { WatchOptions } from 'vue';
|
|
57
|
+
import { WatchStopHandle } from 'vue';
|
|
58
|
+
|
|
59
|
+
declare const __VLS_component: DefineComponent<AccessControlProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
|
+
change: (visible: boolean) => any;
|
|
61
|
+
}, string, PublicProps, Readonly<AccessControlProps> & Readonly<{
|
|
62
|
+
onChange?: ((visible: boolean) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
type: "code" | "role";
|
|
65
|
+
codes: string[];
|
|
66
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
67
|
+
|
|
68
|
+
declare type __VLS_Props = {
|
|
69
|
+
type?: 'nprogress' | 'spinner' | 'loading' | 'none';
|
|
70
|
+
minLoadingTime?: number;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
declare function __VLS_template(): {
|
|
74
|
+
attrs: Partial<{}>;
|
|
75
|
+
slots: Readonly<AccessControlSlots> & AccessControlSlots;
|
|
76
|
+
refs: {};
|
|
77
|
+
rootEl: any;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
81
|
+
|
|
82
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
83
|
+
new (): {
|
|
84
|
+
$slots: S;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare const AccessControl: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
89
|
+
|
|
90
|
+
export declare interface AccessControlEmits {
|
|
91
|
+
/**
|
|
92
|
+
* 权限状态变化时触发
|
|
93
|
+
*/
|
|
94
|
+
change: [visible: boolean];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare interface AccessControlProps {
|
|
98
|
+
/**
|
|
99
|
+
* 权限码数组(工号或角色,取决于 type)
|
|
100
|
+
* @default []
|
|
101
|
+
*/
|
|
102
|
+
codes?: string[];
|
|
103
|
+
/**
|
|
104
|
+
* 判断类型
|
|
105
|
+
* - code: 按工号判断
|
|
106
|
+
* - role: 按角色判断
|
|
107
|
+
* @default 'code'
|
|
108
|
+
*/
|
|
109
|
+
type?: 'code' | 'role';
|
|
110
|
+
/**
|
|
111
|
+
* 自定义权限判断函数(同步,返回 true 表示有权限)
|
|
112
|
+
*/
|
|
113
|
+
authorize?: () => boolean | Promise<boolean>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export declare interface AccessControlSlots {
|
|
117
|
+
/**
|
|
118
|
+
* 有权限时显示的内容
|
|
119
|
+
*/
|
|
120
|
+
default?: () => VNodeChild;
|
|
121
|
+
/**
|
|
122
|
+
* 无权限时显示的内容
|
|
123
|
+
*/
|
|
124
|
+
fallback?: () => VNodeChild;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* 添加收藏菜单
|
|
129
|
+
*/
|
|
130
|
+
export declare function addFavorite(params: AddFavoriteParams): Promise<ResponseResult<void>>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 添加收藏菜单参数
|
|
134
|
+
*/
|
|
135
|
+
export declare interface AddFavoriteParams {
|
|
136
|
+
assQuickentry: {
|
|
137
|
+
nResourceid: number;
|
|
138
|
+
cCreateuser: string;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* 新增表单配置
|
|
144
|
+
*/
|
|
145
|
+
export declare const addFormSchema: FormSchema[];
|
|
146
|
+
|
|
147
|
+
export declare const AssSendoaAdd: DefineComponent< {}, {
|
|
148
|
+
addInit: () => Promise<void>;
|
|
149
|
+
editInit: (record: any) => Promise<void>;
|
|
150
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
151
|
+
success: () => any;
|
|
152
|
+
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
153
|
+
onSuccess?: (() => any) | undefined;
|
|
154
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
155
|
+
|
|
156
|
+
declare interface AssSendoaConfig {
|
|
157
|
+
t: (key: string) => string;
|
|
158
|
+
formApi?: any;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export declare const AssSendoaQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
162
|
+
AssSendoaAddRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
163
|
+
onSuccess?: (() => any) | undefined;
|
|
164
|
+
}>, {
|
|
165
|
+
addInit: () => Promise<void>;
|
|
166
|
+
editInit: (record: any) => Promise<void>;
|
|
167
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
168
|
+
success: () => any;
|
|
169
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
170
|
+
P: {};
|
|
171
|
+
B: {};
|
|
172
|
+
D: {};
|
|
173
|
+
C: {};
|
|
174
|
+
M: {};
|
|
175
|
+
Defaults: {};
|
|
176
|
+
}, Readonly<{}> & Readonly<{
|
|
177
|
+
onSuccess?: (() => any) | undefined;
|
|
178
|
+
}>, {
|
|
179
|
+
addInit: () => Promise<void>;
|
|
180
|
+
editInit: (record: any) => Promise<void>;
|
|
181
|
+
}, {}, {}, {}, {}> | null;
|
|
182
|
+
}, HTMLDivElement>;
|
|
183
|
+
|
|
184
|
+
export declare interface AssSendoaVO {
|
|
185
|
+
id: number;
|
|
186
|
+
cModnumb: string;
|
|
187
|
+
cGongsi: string;
|
|
188
|
+
cLcmc: string;
|
|
189
|
+
cOalcid: string;
|
|
190
|
+
cUrl: string;
|
|
191
|
+
nSign: string;
|
|
192
|
+
cCreateuserName: string;
|
|
193
|
+
dCreatetime: string;
|
|
194
|
+
cBeizhu: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export declare const authenticateResponseInterceptor: ({ client, doReAuthenticate, doRefreshToken, enableRefreshToken, formatToken, }: {
|
|
198
|
+
client: RequestClient;
|
|
199
|
+
doReAuthenticate: () => Promise<void>;
|
|
200
|
+
doRefreshToken: () => Promise<string>;
|
|
201
|
+
enableRefreshToken: boolean;
|
|
202
|
+
formatToken: (token: string) => null | string;
|
|
203
|
+
}) => ResponseInterceptorConfig;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* 基础请求客户端
|
|
207
|
+
* 未配置拦截器等复杂逻辑,用于特殊场景
|
|
208
|
+
*/
|
|
209
|
+
export declare const baseRequestClient: RequestClient;
|
|
210
|
+
|
|
211
|
+
export declare const BasicLayout: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
212
|
+
rootLayoutRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
213
|
+
hasSider: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
};
|
|
216
|
+
}>> & Readonly<{}>, {
|
|
217
|
+
classNames: ComputedRef<(string | {
|
|
218
|
+
[x: string]: number | true;
|
|
219
|
+
})[]>;
|
|
220
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
221
|
+
hasSider: boolean;
|
|
222
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
223
|
+
P: {};
|
|
224
|
+
B: {};
|
|
225
|
+
D: {};
|
|
226
|
+
C: {};
|
|
227
|
+
M: {};
|
|
228
|
+
Defaults: {};
|
|
229
|
+
}, Readonly<ExtractPropTypes< {
|
|
230
|
+
hasSider: {
|
|
231
|
+
type: BooleanConstructor;
|
|
232
|
+
};
|
|
233
|
+
}>> & Readonly<{}>, {
|
|
234
|
+
classNames: ComputedRef<(string | {
|
|
235
|
+
[x: string]: number | true;
|
|
236
|
+
})[]>;
|
|
237
|
+
}, {}, {}, {}, {
|
|
238
|
+
hasSider: boolean;
|
|
239
|
+
}> | null;
|
|
240
|
+
innerLayoutRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
|
|
241
|
+
hasSider: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
};
|
|
244
|
+
}>> & Readonly<{}>, {
|
|
245
|
+
classNames: ComputedRef<(string | {
|
|
246
|
+
[x: string]: number | true;
|
|
247
|
+
})[]>;
|
|
248
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
249
|
+
hasSider: boolean;
|
|
250
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
251
|
+
P: {};
|
|
252
|
+
B: {};
|
|
253
|
+
D: {};
|
|
254
|
+
C: {};
|
|
255
|
+
M: {};
|
|
256
|
+
Defaults: {};
|
|
257
|
+
}, Readonly<ExtractPropTypes< {
|
|
258
|
+
hasSider: {
|
|
259
|
+
type: BooleanConstructor;
|
|
260
|
+
};
|
|
261
|
+
}>> & Readonly<{}>, {
|
|
262
|
+
classNames: ComputedRef<(string | {
|
|
263
|
+
[x: string]: number | true;
|
|
264
|
+
})[]>;
|
|
265
|
+
}, {}, {}, {}, {
|
|
266
|
+
hasSider: boolean;
|
|
267
|
+
}> | null;
|
|
268
|
+
}, any>;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* 业务码响应拦截器
|
|
272
|
+
* 处理后端返回的业务错误码(如 530 登录超时)
|
|
273
|
+
*/
|
|
274
|
+
export declare const businessCodeResponseInterceptor: ({ businessCodes, onBusinessError, }: {
|
|
275
|
+
/**
|
|
276
|
+
* 需要特殊处理的业务错误码列表
|
|
277
|
+
* @default [530]
|
|
278
|
+
*/
|
|
279
|
+
businessCodes?: number[];
|
|
280
|
+
/**
|
|
281
|
+
* 业务错误码处理回调
|
|
282
|
+
*/
|
|
283
|
+
onBusinessError: (code: number, message: string) => Promise<void> | void;
|
|
284
|
+
}) => ResponseInterceptorConfig;
|
|
285
|
+
|
|
286
|
+
export declare interface BusinessOpts {
|
|
287
|
+
[key: string]: SelectOption[];
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export declare const cbTypeOpts: SelectOption[];
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* 子级数据字典表格列配置
|
|
294
|
+
*/
|
|
295
|
+
export declare const childGridColumns: VxeGridProps<any>['columns'];
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* 收集 Schema 中的字典声明(工具函数)
|
|
299
|
+
* Collect dictionary declarations from Schema (utility function)
|
|
300
|
+
*
|
|
301
|
+
* @param schema - 表单 Schema
|
|
302
|
+
* @returns 字典编码列表
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```typescript
|
|
306
|
+
* const dictCodes = collectSchemaDictCodes(searchFormSchema);
|
|
307
|
+
* console.log(dictCodes); // ['SFQY', 'LANG']
|
|
308
|
+
* ```
|
|
309
|
+
*/
|
|
310
|
+
export declare function collectSchemaDictCodes(schema: FormSchema[]): (string | number)[];
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* 收集 Schema 中的权限编码(工具函数)
|
|
314
|
+
* Collect permission codes from Schema (utility function)
|
|
315
|
+
*
|
|
316
|
+
* @param schema - 表单 Schema
|
|
317
|
+
* @returns 权限编码列表
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* ```typescript
|
|
321
|
+
* const codes = collectSchemaPermissionCodes(searchFormSchema);
|
|
322
|
+
* console.log(codes); // ['FACTORY', 'COMPANY']
|
|
323
|
+
* ```
|
|
324
|
+
*/
|
|
325
|
+
export declare function collectSchemaPermissionCodes(schema: FormSchema[]): (string | number)[];
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* 创建 @effects 插件实例
|
|
329
|
+
* 在 Vue 应用入口文件 (main.ts/bootstrap.ts) 中使用 app.use() 安装
|
|
330
|
+
*
|
|
331
|
+
* @param config 全局配置对象
|
|
332
|
+
* @returns Vue 插件对象
|
|
333
|
+
*
|
|
334
|
+
* @example
|
|
335
|
+
* ```ts
|
|
336
|
+
* app.use(createEffects({
|
|
337
|
+
* apiPrefix: '/crm',
|
|
338
|
+
* ssoUrl: 'http://crm.example.com'
|
|
339
|
+
* }))
|
|
340
|
+
* ```
|
|
341
|
+
*/
|
|
342
|
+
export declare const createEffects: (config: EffectsConfig) => {
|
|
343
|
+
install(app: App): void;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
export declare const Dashboard: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* 数据字典表单VO
|
|
350
|
+
*/
|
|
351
|
+
export declare interface DataDictionaryFormVO {
|
|
352
|
+
cXuhao: string;
|
|
353
|
+
cName: string;
|
|
354
|
+
cSign: string;
|
|
355
|
+
nOrder?: number;
|
|
356
|
+
metaItems?: MetaItem[];
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export declare const DataDictionaryQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* 数据字典查询参数
|
|
363
|
+
*/
|
|
364
|
+
export declare interface DataDictionaryQueryParams {
|
|
365
|
+
pageNo: number;
|
|
366
|
+
pageSize: number;
|
|
367
|
+
authDict: {
|
|
368
|
+
cSign?: string;
|
|
369
|
+
cXuhao?: string;
|
|
370
|
+
cName?: string;
|
|
371
|
+
nParent: number;
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* 数据字典VO
|
|
377
|
+
*/
|
|
378
|
+
export declare interface DataDictionaryVO {
|
|
379
|
+
id: string;
|
|
380
|
+
cXuhao: string;
|
|
381
|
+
cName: string;
|
|
382
|
+
cSign: string;
|
|
383
|
+
dCreate: string;
|
|
384
|
+
cCreateName: string;
|
|
385
|
+
nOrder: number;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* 默认的 BusinessSearch API 适配器
|
|
390
|
+
* Default BusinessSearch API adapter
|
|
391
|
+
*
|
|
392
|
+
* 职责:
|
|
393
|
+
* 1. 调用后端接口获取数据
|
|
394
|
+
* 2. 将后端格式转换成组件需要的格式
|
|
395
|
+
*
|
|
396
|
+
* 适配的后端接口:
|
|
397
|
+
* - 加载配置: POST /core/assDialog/openInit
|
|
398
|
+
* - 搜索数据: POST /core/assDialog/selectForPageCommon
|
|
399
|
+
*/
|
|
400
|
+
export declare const defaultBusinessSearchAdapter: BusinessSearchAdapter;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* 默认表单配置
|
|
404
|
+
*/
|
|
405
|
+
export declare const defaultFormConfig: FormCommonConfig;
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* 权限选项适配器
|
|
409
|
+
* Permission options adapter
|
|
410
|
+
* @description 调用 /core/contact/findUserExresList 接口批量加载权限选项
|
|
411
|
+
* @description Calls /core/contact/findUserExresList API to batch load permission options
|
|
412
|
+
*/
|
|
413
|
+
export declare const defaultPermissionOptionsAdapter: {
|
|
414
|
+
/**
|
|
415
|
+
* 批量加载权限选项
|
|
416
|
+
* Batch load permission options
|
|
417
|
+
* @param numbList - 权限编码列表
|
|
418
|
+
* @param fieldMapping - 字段映射配置
|
|
419
|
+
* @returns 选项映射表 { code: options }
|
|
420
|
+
*/
|
|
421
|
+
loadOptions: (numbList: (string | number)[], fieldMapping?: PermissionFieldMapping) => Promise<Record<string, SelectOption_2[]>>;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export declare const defaultResponseInterceptor: ({ codeField, dataField, successCode, }: {
|
|
425
|
+
/** 响应数据中代表访问结果的字段名 */
|
|
426
|
+
codeField: string;
|
|
427
|
+
/** 响应数据中装载实际数据的字段名,或者提供一个函数从响应数据中解析需要返回的数据 */
|
|
428
|
+
dataField: ((response: any) => any) | string;
|
|
429
|
+
/** 当codeField所指定的字段值与successCode相同时,代表接口访问成功。如果提供一个函数,则返回true代表接口访问成功 */
|
|
430
|
+
successCode: ((code: any) => boolean) | number | string;
|
|
431
|
+
}) => ResponseInterceptorConfig;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* 默认的 Select 选项适配器实现
|
|
435
|
+
* Default Select options adapter implementation
|
|
436
|
+
* @description 调用 /core/contact/findAuthDictList 接口批量加载字典选项
|
|
437
|
+
* @description Calls /core/contact/findAuthDictList API to batch load dictionary options
|
|
438
|
+
*/
|
|
439
|
+
export declare const defaultSelectOptionsAdapter: SelectOptionsAdapter;
|
|
440
|
+
|
|
441
|
+
declare type DownloadRequestConfig = {
|
|
442
|
+
/**
|
|
443
|
+
* 定义期望获得的数据类型。
|
|
444
|
+
* raw: 原始的AxiosResponse,包括headers、status等。
|
|
445
|
+
* body: 只返回响应数据的BODY部分(Blob)
|
|
446
|
+
*/
|
|
447
|
+
responseReturn?: 'body' | 'raw';
|
|
448
|
+
} & Omit<RequestClientConfig, 'responseReturn'>;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Vue 依赖注入的 Key
|
|
452
|
+
* 用于在组件内部通过 inject 获取配置对象
|
|
453
|
+
*/
|
|
454
|
+
export declare const EFFECTS_CONFIG_KEY: InjectionKey<EffectsConfig>;
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* @effects 包的全局配置接口
|
|
458
|
+
* 用于在应用启动时注入通用配置,避免在每个组件中重复传参
|
|
459
|
+
*/
|
|
460
|
+
export declare interface EffectsConfig {
|
|
461
|
+
/**
|
|
462
|
+
* API 请求前缀
|
|
463
|
+
* @example '/crm' -> 请求地址变为 /crm/login
|
|
464
|
+
*/
|
|
465
|
+
apiPrefix?: string;
|
|
466
|
+
/**
|
|
467
|
+
* 单点登录 (SSO) 的服务地址参数
|
|
468
|
+
* 通常用于拼接在 SSO 登录链接的 service 参数中
|
|
469
|
+
* @example 'http://crm.example.com'
|
|
470
|
+
*/
|
|
471
|
+
ssoUrl?: string;
|
|
472
|
+
/**
|
|
473
|
+
* 当前语言环境
|
|
474
|
+
* @example 'zh-CN'
|
|
475
|
+
*/
|
|
476
|
+
locale?: string;
|
|
477
|
+
/**
|
|
478
|
+
* 语言切换回调
|
|
479
|
+
* @param locale 新的语言代码
|
|
480
|
+
*/
|
|
481
|
+
onLocaleChange?: (locale: string) => void | Promise<void>;
|
|
482
|
+
/**
|
|
483
|
+
* 是否启用 Refresh Token
|
|
484
|
+
*/
|
|
485
|
+
enableRefreshToken?: boolean;
|
|
486
|
+
/**
|
|
487
|
+
* RSA 公钥
|
|
488
|
+
*/
|
|
489
|
+
publicKey?: string;
|
|
490
|
+
/**
|
|
491
|
+
* 头部配置
|
|
492
|
+
*/
|
|
493
|
+
header?: {
|
|
494
|
+
height: number;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* 应用配置
|
|
498
|
+
*/
|
|
499
|
+
app?: {
|
|
500
|
+
name: string;
|
|
501
|
+
loginPath?: string;
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* Logo 配置
|
|
505
|
+
*/
|
|
506
|
+
logo?: {
|
|
507
|
+
enable: boolean;
|
|
508
|
+
fit?: string;
|
|
509
|
+
source: string;
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* 侧边栏配置
|
|
513
|
+
*/
|
|
514
|
+
sidebar?: {
|
|
515
|
+
width: number;
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* 错误上下文信息
|
|
521
|
+
*/
|
|
522
|
+
export declare interface ErrorContext {
|
|
523
|
+
component?: string;
|
|
524
|
+
info?: string;
|
|
525
|
+
url?: string;
|
|
526
|
+
userAgent?: string;
|
|
527
|
+
timestamp?: string;
|
|
528
|
+
[key: string]: any;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export declare const errorMessageResponseInterceptor: (makeErrorMessage?: MakeErrorMessageFn) => ResponseInterceptorConfig;
|
|
532
|
+
|
|
533
|
+
declare type ExtendOptions<T = any> = {
|
|
534
|
+
/**
|
|
535
|
+
* 参数序列化方式。预置的有
|
|
536
|
+
* - brackets: ids[]=1&ids[]=2&ids[]=3
|
|
537
|
+
* - comma: ids=1,2,3
|
|
538
|
+
* - indices: ids[0]=1&ids[1]=2&ids[2]=3
|
|
539
|
+
* - repeat: ids=1&ids=2&ids=3
|
|
540
|
+
*/
|
|
541
|
+
paramsSerializer?: 'brackets' | 'comma' | 'indices' | 'repeat' | AxiosRequestConfig<T>['paramsSerializer'];
|
|
542
|
+
/**
|
|
543
|
+
* 响应数据的返回方式。
|
|
544
|
+
* - raw: 原始的AxiosResponse,包括headers、status等,不做是否成功请求的检查。
|
|
545
|
+
* - body: 返回响应数据的BODY部分(只会根据status检查请求是否成功,忽略对code的判断,这种情况下应由调用方检查请求是否成功)。
|
|
546
|
+
* - data: 解构响应的BODY数据,只返回其中的data节点数据(会检查status和code是否为成功状态)。
|
|
547
|
+
*/
|
|
548
|
+
responseReturn?: 'body' | 'data' | 'raw';
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
export { FavoriteItem }
|
|
552
|
+
|
|
553
|
+
export declare function fetchUserInfo(data?: any): Promise<ResponseResult<any>>;
|
|
554
|
+
|
|
555
|
+
declare class FileDownloader {
|
|
556
|
+
private client;
|
|
557
|
+
constructor(client: RequestClient);
|
|
558
|
+
/**
|
|
559
|
+
* 下载文件
|
|
560
|
+
* @param url 文件的完整链接
|
|
561
|
+
* @param config 配置信息,可选。
|
|
562
|
+
* @returns 如果config.responseReturn为'body',则返回Blob(默认),否则返回RequestResponse<Blob>
|
|
563
|
+
*/
|
|
564
|
+
download<T = Blob>(url: string, config?: DownloadRequestConfig): Promise<T>;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
declare class FileUploader {
|
|
568
|
+
private client;
|
|
569
|
+
constructor(client: RequestClient);
|
|
570
|
+
upload<T = any>(url: string, data: Record<string, any> & {
|
|
571
|
+
file: Blob | File;
|
|
572
|
+
}, config?: RequestClientConfig): Promise<T>;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* 根据选项key、list返回对应name
|
|
577
|
+
* @param {*} optionlist
|
|
578
|
+
*/
|
|
579
|
+
export declare function filterSelect(val: string, optionlist: Option_2[]): string;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* 获取所有系统设置
|
|
583
|
+
*/
|
|
584
|
+
export declare function findAllSettings(): Promise<{
|
|
585
|
+
result: SysSettingItem[];
|
|
586
|
+
}>;
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* 查询所有静态前端国际化配置
|
|
590
|
+
*/
|
|
591
|
+
export declare function findAllStaticFrontI18n(data: any): Promise<any>;
|
|
592
|
+
|
|
593
|
+
declare interface FormItem {
|
|
594
|
+
components: string;
|
|
595
|
+
label: string;
|
|
596
|
+
fieldName: string;
|
|
597
|
+
componentProps: any;
|
|
598
|
+
hidden: boolean;
|
|
599
|
+
rules: string | null;
|
|
600
|
+
colSpan: number;
|
|
601
|
+
defaultValue: string | number | boolean | null;
|
|
602
|
+
order: number;
|
|
603
|
+
dependencies?: any;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export declare const getAssSendoaConfig: ({ t }: AssSendoaConfig) => {
|
|
607
|
+
searchFormSchema: FormSchema[];
|
|
608
|
+
tableColumns: VxeGridPropTypes.Columns<AssSendoaVO>;
|
|
609
|
+
addEditFormSchema: FormSchema[];
|
|
610
|
+
userSfqyOpts: {
|
|
611
|
+
cKeyname: string;
|
|
612
|
+
cKeynumb: string;
|
|
613
|
+
}[];
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* 获取登录类型
|
|
618
|
+
*/
|
|
619
|
+
export declare function getEnterStrategy(data?: any): Promise<ResponseResult<LoginStrategyResult>>;
|
|
620
|
+
|
|
621
|
+
export declare const getGgcxtcConfig: ({ t }: GgcxtcConfig) => {
|
|
622
|
+
searchFormSchema: FormSchema[];
|
|
623
|
+
tableColumns: VxeGridPropTypes.Columns<GgcxtcVO>;
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
export declare const getJobGroupConfig: ({ t }: JobGroupConfig) => {
|
|
627
|
+
searchFormSchema: FormSchema[];
|
|
628
|
+
tableColumns: VxeGridPropTypes.Columns<JobGroupVO>;
|
|
629
|
+
statusOptions: {
|
|
630
|
+
cKeyname: string;
|
|
631
|
+
cKeynumb: string;
|
|
632
|
+
}[];
|
|
633
|
+
zcfsOpts: {
|
|
634
|
+
cKeyname: string;
|
|
635
|
+
cKeynumb: string;
|
|
636
|
+
}[];
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
export declare const getJobInfoConfig: ({ t }: JobInfoConfig) => {
|
|
640
|
+
searchFormSchema: FormSchema[];
|
|
641
|
+
tableColumns: VxeGridPropTypes.Columns<JobInfoVO>;
|
|
642
|
+
scheduleTypeOptions: {
|
|
643
|
+
cKeyname: string;
|
|
644
|
+
cKeynumb: string;
|
|
645
|
+
}[];
|
|
646
|
+
glueTypeOptions: {
|
|
647
|
+
cKeyname: string;
|
|
648
|
+
cKeynumb: string;
|
|
649
|
+
}[];
|
|
650
|
+
triggerStatusOptions: {
|
|
651
|
+
cKeyname: string;
|
|
652
|
+
cKeynumb: string;
|
|
653
|
+
}[];
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
export declare const getJobLogConfig: ({ t }: JobLogConfig) => {
|
|
657
|
+
searchFormSchema: FormSchema[];
|
|
658
|
+
tableColumns: VxeGridPropTypes.Columns<JobLogVO>;
|
|
659
|
+
triggerCodeOptions: {
|
|
660
|
+
cKeyname: string;
|
|
661
|
+
cKeynumb: string;
|
|
662
|
+
}[];
|
|
663
|
+
handleCodeOptions: {
|
|
664
|
+
cKeyname: string;
|
|
665
|
+
cKeynumb: string;
|
|
666
|
+
}[];
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
export declare const getOperationLogConfig: ({ t }: OperationLogConfig) => {
|
|
670
|
+
searchFormSchema: FormSchema[];
|
|
671
|
+
tableColumns: VxeGridPropTypes.Columns<OperationLogVO>;
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* 根据字段配置项构建options
|
|
676
|
+
* @param {*} resource
|
|
677
|
+
*/
|
|
678
|
+
export declare function getOptionsForSelectType(item: any): any;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* 搜索表单配置
|
|
682
|
+
*/
|
|
683
|
+
export declare function getOtherPermissionsConfig({ t }: OtherPermissionsConfig): {
|
|
684
|
+
searchFormSchema: FormSchema[];
|
|
685
|
+
addFormSchema: FormSchema[];
|
|
686
|
+
tableColumns: VxeGridPropTypes.Columns<OtherPermissionsVO>;
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
export declare const getRoleConfig: ({ t, formApi }: RoleConfig) => {
|
|
690
|
+
searchFormSchema: FormSchema[];
|
|
691
|
+
tableColumns: VxeGridPropTypes.Columns<any>;
|
|
692
|
+
resourceConfig: {
|
|
693
|
+
resourceId: string;
|
|
694
|
+
nResourceid: number;
|
|
695
|
+
cModnumb: string;
|
|
696
|
+
};
|
|
697
|
+
addEditFormSchema: FormSchema[];
|
|
698
|
+
authFormSchema: FormSchema[];
|
|
699
|
+
authGridColumns: VxeGridPropTypes.Columns<any>;
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* 获取滑动验证码
|
|
704
|
+
*/
|
|
705
|
+
export declare function getSlideVerificationCode(data: any): Promise<any>;
|
|
706
|
+
|
|
707
|
+
declare interface GgcxtcConfig {
|
|
708
|
+
t: (key: string) => string;
|
|
709
|
+
formApi?: any;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
export declare const GgcxtcQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
713
|
+
|
|
714
|
+
export declare interface GgcxtcVO {
|
|
715
|
+
id: number;
|
|
716
|
+
cNum: string;
|
|
717
|
+
cTitle: string;
|
|
718
|
+
nCbtype: string;
|
|
719
|
+
cCbclass: string;
|
|
720
|
+
cCondition: string;
|
|
721
|
+
cWidth: string;
|
|
722
|
+
cHeight: string;
|
|
723
|
+
nRows: number;
|
|
724
|
+
cSql: string;
|
|
725
|
+
cTablecols: string;
|
|
726
|
+
cCrenumb: string;
|
|
727
|
+
cCrename: string;
|
|
728
|
+
dDate: string;
|
|
729
|
+
cOrder: string;
|
|
730
|
+
nSfcommon: string;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* 全局配置对象,用于在非 Vue 组件环境(如 API 请求)中访问配置
|
|
735
|
+
*/
|
|
736
|
+
export declare let globalConfig: EffectsConfig;
|
|
737
|
+
|
|
738
|
+
export declare const GlobalLoading: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* GlobalLoading 组件属性类型定义
|
|
742
|
+
*/
|
|
743
|
+
/**
|
|
744
|
+
* GlobalLoading 组件属性
|
|
745
|
+
*/
|
|
746
|
+
export declare interface GlobalLoadingProps {
|
|
747
|
+
/**
|
|
748
|
+
* 加载动画类型
|
|
749
|
+
* - 'nprogress': 顶部进度条(由外部控制)
|
|
750
|
+
* - 'spinner': 方块跳跃动画
|
|
751
|
+
* - 'loading': 四点旋转动画
|
|
752
|
+
* - 'none': 禁用加载动画
|
|
753
|
+
* @default 'spinner'
|
|
754
|
+
*/
|
|
755
|
+
type?: 'nprogress' | 'spinner' | 'loading' | 'none';
|
|
756
|
+
/**
|
|
757
|
+
* 最小加载时间(毫秒),避免闪烁
|
|
758
|
+
* @default 50
|
|
759
|
+
*/
|
|
760
|
+
minLoadingTime?: number;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* 额外属性表格列配置
|
|
765
|
+
*/
|
|
766
|
+
export declare const gridColumns: VxeGridProps<MetaItem>['columns'];
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* 额外属性表格校验规则
|
|
770
|
+
*/
|
|
771
|
+
export declare const gridEditRules: {
|
|
772
|
+
key: {
|
|
773
|
+
required: boolean;
|
|
774
|
+
message: string;
|
|
775
|
+
}[];
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
export declare interface HttpResponse<T = any> {
|
|
779
|
+
/**
|
|
780
|
+
* 0 表示成功 其他表示失败
|
|
781
|
+
* 0 means success, others means fail
|
|
782
|
+
*/
|
|
783
|
+
code: number;
|
|
784
|
+
data: T;
|
|
785
|
+
message: string;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* 构建按钮a-button配置项
|
|
790
|
+
* @param {*} resource
|
|
791
|
+
*/
|
|
792
|
+
export declare function initButtonItem(data: any): {
|
|
793
|
+
label: any;
|
|
794
|
+
handle: any;
|
|
795
|
+
icon: any;
|
|
796
|
+
class: any;
|
|
797
|
+
order: any;
|
|
798
|
+
loading: boolean;
|
|
799
|
+
size: string;
|
|
800
|
+
nButtonid: any;
|
|
801
|
+
cEvent: any;
|
|
802
|
+
cSubArea: any;
|
|
803
|
+
name: any;
|
|
804
|
+
code: any;
|
|
805
|
+
params: string;
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* 构建表单form-item配置项
|
|
810
|
+
* @param {*} resource
|
|
811
|
+
*/
|
|
812
|
+
export declare function initFormItem(data: any): FormItem;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* 根据资源接口返回构建配置(表单、表格、按钮)项
|
|
816
|
+
* @param {*} resource
|
|
817
|
+
*/
|
|
818
|
+
export declare function initResourceConstructor(result: any): {
|
|
819
|
+
resFieldList: Record<string, any[]>;
|
|
820
|
+
resButtonList: Record<string, any[]>;
|
|
821
|
+
resColumnList: Record<string, any[]>;
|
|
822
|
+
resMenu: any;
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* 构建表格vxe-column配置项
|
|
827
|
+
* @param {*} resource
|
|
828
|
+
*/
|
|
829
|
+
export declare function initVxeColumn(data: any): any;
|
|
830
|
+
|
|
831
|
+
declare class InterceptorManager {
|
|
832
|
+
private axiosInstance;
|
|
833
|
+
constructor(instance: AxiosInstance);
|
|
834
|
+
addRequestInterceptor({ fulfilled, rejected, }?: RequestInterceptorConfig): void;
|
|
835
|
+
addResponseInterceptor<T = any>({ fulfilled, rejected, }?: ResponseInterceptorConfig<T>): void;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
declare interface JobGroupConfig {
|
|
839
|
+
t: (key: string) => string;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
export declare const JobGroupQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
843
|
+
formRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
844
|
+
visible: boolean;
|
|
845
|
+
formData?: any;
|
|
846
|
+
}> & Readonly<{
|
|
847
|
+
onSuccess?: (() => any) | undefined;
|
|
848
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
849
|
+
}>, {
|
|
850
|
+
show: (data?: any) => void;
|
|
851
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
852
|
+
success: () => any;
|
|
853
|
+
"update:visible": (value: boolean) => any;
|
|
854
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
855
|
+
formRef: any;
|
|
856
|
+
}, any, ComponentProvideOptions, {
|
|
857
|
+
P: {};
|
|
858
|
+
B: {};
|
|
859
|
+
D: {};
|
|
860
|
+
C: {};
|
|
861
|
+
M: {};
|
|
862
|
+
Defaults: {};
|
|
863
|
+
}, Readonly<{
|
|
864
|
+
visible: boolean;
|
|
865
|
+
formData?: any;
|
|
866
|
+
}> & Readonly<{
|
|
867
|
+
onSuccess?: (() => any) | undefined;
|
|
868
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
869
|
+
}>, {
|
|
870
|
+
show: (data?: any) => void;
|
|
871
|
+
}, {}, {}, {}, {}> | null;
|
|
872
|
+
}, HTMLDivElement>;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* 执行器信息VO
|
|
876
|
+
*/
|
|
877
|
+
export declare interface JobGroupVO {
|
|
878
|
+
/**
|
|
879
|
+
* Appname
|
|
880
|
+
*/
|
|
881
|
+
appname: string;
|
|
882
|
+
/**
|
|
883
|
+
* 名称
|
|
884
|
+
*/
|
|
885
|
+
title: string;
|
|
886
|
+
/**
|
|
887
|
+
* 注册方式
|
|
888
|
+
*/
|
|
889
|
+
addressType: string;
|
|
890
|
+
/**
|
|
891
|
+
* OnLine地址列表
|
|
892
|
+
*/
|
|
893
|
+
addressList: string;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
declare interface JobInfoConfig {
|
|
897
|
+
t: (key: string) => string;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
export declare const JobInfoQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
901
|
+
formRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
902
|
+
visible: boolean;
|
|
903
|
+
formData?: any;
|
|
904
|
+
}> & Readonly<{
|
|
905
|
+
onSuccess?: (() => any) | undefined;
|
|
906
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
907
|
+
}>, {
|
|
908
|
+
show: (data?: any) => void;
|
|
909
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
910
|
+
success: () => any;
|
|
911
|
+
"update:visible": (value: boolean) => any;
|
|
912
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
913
|
+
formRef: any;
|
|
914
|
+
}, any, ComponentProvideOptions, {
|
|
915
|
+
P: {};
|
|
916
|
+
B: {};
|
|
917
|
+
D: {};
|
|
918
|
+
C: {};
|
|
919
|
+
M: {};
|
|
920
|
+
Defaults: {};
|
|
921
|
+
}, Readonly<{
|
|
922
|
+
visible: boolean;
|
|
923
|
+
formData?: any;
|
|
924
|
+
}> & Readonly<{
|
|
925
|
+
onSuccess?: (() => any) | undefined;
|
|
926
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
927
|
+
}>, {
|
|
928
|
+
show: (data?: any) => void;
|
|
929
|
+
}, {}, {}, {}, {}> | null;
|
|
930
|
+
onceRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
931
|
+
visible: boolean;
|
|
932
|
+
formData?: any;
|
|
933
|
+
}> & Readonly<{
|
|
934
|
+
onSuccess?: (() => any) | undefined;
|
|
935
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
936
|
+
}>, {
|
|
937
|
+
show: (data?: any) => void;
|
|
938
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
939
|
+
success: () => any;
|
|
940
|
+
"update:visible": (value: boolean) => any;
|
|
941
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
942
|
+
formRef: any;
|
|
943
|
+
}, any, ComponentProvideOptions, {
|
|
944
|
+
P: {};
|
|
945
|
+
B: {};
|
|
946
|
+
D: {};
|
|
947
|
+
C: {};
|
|
948
|
+
M: {};
|
|
949
|
+
Defaults: {};
|
|
950
|
+
}, Readonly<{
|
|
951
|
+
visible: boolean;
|
|
952
|
+
formData?: any;
|
|
953
|
+
}> & Readonly<{
|
|
954
|
+
onSuccess?: (() => any) | undefined;
|
|
955
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
956
|
+
}>, {
|
|
957
|
+
show: (data?: any) => void;
|
|
958
|
+
}, {}, {}, {}, {}> | null;
|
|
959
|
+
codeRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
960
|
+
visible: boolean;
|
|
961
|
+
formData?: any;
|
|
962
|
+
}> & Readonly<{
|
|
963
|
+
onSuccess?: (() => any) | undefined;
|
|
964
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
965
|
+
}>, {
|
|
966
|
+
show: (data?: any) => void;
|
|
967
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
968
|
+
success: () => any;
|
|
969
|
+
"update:visible": (value: boolean) => any;
|
|
970
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
971
|
+
P: {};
|
|
972
|
+
B: {};
|
|
973
|
+
D: {};
|
|
974
|
+
C: {};
|
|
975
|
+
M: {};
|
|
976
|
+
Defaults: {};
|
|
977
|
+
}, Readonly<{
|
|
978
|
+
visible: boolean;
|
|
979
|
+
formData?: any;
|
|
980
|
+
}> & Readonly<{
|
|
981
|
+
onSuccess?: (() => any) | undefined;
|
|
982
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
983
|
+
}>, {
|
|
984
|
+
show: (data?: any) => void;
|
|
985
|
+
}, {}, {}, {}, {}> | null;
|
|
986
|
+
}, HTMLDivElement>;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* 定时任务信息VO
|
|
990
|
+
*/
|
|
991
|
+
export declare interface JobInfoVO {
|
|
992
|
+
/**
|
|
993
|
+
* 任务id
|
|
994
|
+
*/
|
|
995
|
+
id: string | number;
|
|
996
|
+
/**
|
|
997
|
+
* 任务描述
|
|
998
|
+
*/
|
|
999
|
+
jobDesc: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* 执行器
|
|
1002
|
+
*/
|
|
1003
|
+
jobGroupTitle: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* 调度类型
|
|
1006
|
+
*/
|
|
1007
|
+
scheduleType: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* 运行模式
|
|
1010
|
+
*/
|
|
1011
|
+
glueType: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* 负责人
|
|
1014
|
+
*/
|
|
1015
|
+
author: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* 状态
|
|
1018
|
+
*/
|
|
1019
|
+
triggerStatus: string;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
declare interface JobLogConfig {
|
|
1023
|
+
t: (key: string) => string;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export declare const JobLogQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1027
|
+
logListRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1028
|
+
visible: boolean;
|
|
1029
|
+
}> & Readonly<{
|
|
1030
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1031
|
+
}>, {
|
|
1032
|
+
show: (id: string) => Promise<void>;
|
|
1033
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1034
|
+
"update:visible": (value: boolean) => any;
|
|
1035
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1036
|
+
logboxRef: HTMLDivElement;
|
|
1037
|
+
}, any, ComponentProvideOptions, {
|
|
1038
|
+
P: {};
|
|
1039
|
+
B: {};
|
|
1040
|
+
D: {};
|
|
1041
|
+
C: {};
|
|
1042
|
+
M: {};
|
|
1043
|
+
Defaults: {};
|
|
1044
|
+
}, Readonly<{
|
|
1045
|
+
visible: boolean;
|
|
1046
|
+
}> & Readonly<{
|
|
1047
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1048
|
+
}>, {
|
|
1049
|
+
show: (id: string) => Promise<void>;
|
|
1050
|
+
}, {}, {}, {}, {}> | null;
|
|
1051
|
+
}, HTMLDivElement>;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* 调度日志信息VO
|
|
1055
|
+
*/
|
|
1056
|
+
export declare interface JobLogVO {
|
|
1057
|
+
/**
|
|
1058
|
+
* 任务ID
|
|
1059
|
+
*/
|
|
1060
|
+
jobld: string | number;
|
|
1061
|
+
/**
|
|
1062
|
+
* 任务描述
|
|
1063
|
+
*/
|
|
1064
|
+
jobDesc: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* 调度结果
|
|
1067
|
+
*/
|
|
1068
|
+
triggerCode: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* 调度时间
|
|
1071
|
+
*/
|
|
1072
|
+
triggerTime: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* 本次执行地址
|
|
1075
|
+
*/
|
|
1076
|
+
executorAddress: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* 执行任务
|
|
1079
|
+
*/
|
|
1080
|
+
executorHandler: string;
|
|
1081
|
+
/**
|
|
1082
|
+
* 执行参数
|
|
1083
|
+
*/
|
|
1084
|
+
executorParam: string;
|
|
1085
|
+
/**
|
|
1086
|
+
* 调度备注
|
|
1087
|
+
*/
|
|
1088
|
+
handleDdbz: string;
|
|
1089
|
+
/**
|
|
1090
|
+
* 执行时间
|
|
1091
|
+
*/
|
|
1092
|
+
handleTime: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* 执行结果
|
|
1095
|
+
*/
|
|
1096
|
+
handleCode: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* 执行备注
|
|
1099
|
+
*/
|
|
1100
|
+
handleMsg: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* 执行日志
|
|
1103
|
+
*/
|
|
1104
|
+
handleZxrz: string;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* 全局加载状态管理器
|
|
1109
|
+
* @description 单例模式,管理全局加载动画的显示状态
|
|
1110
|
+
* @since 简化版:仅使用布尔值,不使用计数器(因为只处理路由导航)
|
|
1111
|
+
*/
|
|
1112
|
+
export declare class LoadingManager {
|
|
1113
|
+
private static instance;
|
|
1114
|
+
private _isLoading;
|
|
1115
|
+
/**
|
|
1116
|
+
* 当前是否处于加载状态(响应式)
|
|
1117
|
+
*/
|
|
1118
|
+
readonly isLoading: ComputedRef<boolean>;
|
|
1119
|
+
private constructor();
|
|
1120
|
+
/**
|
|
1121
|
+
* 获取单例实例
|
|
1122
|
+
*/
|
|
1123
|
+
static getInstance(): LoadingManager;
|
|
1124
|
+
/**
|
|
1125
|
+
* 开始加载
|
|
1126
|
+
*/
|
|
1127
|
+
startLoading(): void;
|
|
1128
|
+
/**
|
|
1129
|
+
* 结束加载
|
|
1130
|
+
*/
|
|
1131
|
+
stopLoading(): void;
|
|
1132
|
+
/**
|
|
1133
|
+
* 强制停止加载(等同于 stopLoading,为了保持 API 兼容性)
|
|
1134
|
+
*/
|
|
1135
|
+
forceStop(): void;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
export declare const loadingManager: LoadingManager;
|
|
1139
|
+
|
|
1140
|
+
export declare const Login: DefineComponent<ExtractPropTypes< {
|
|
1141
|
+
bg01: {
|
|
1142
|
+
type: StringConstructor;
|
|
1143
|
+
default: string;
|
|
1144
|
+
};
|
|
1145
|
+
bg02: {
|
|
1146
|
+
type: StringConstructor;
|
|
1147
|
+
default: string;
|
|
1148
|
+
};
|
|
1149
|
+
logo: {
|
|
1150
|
+
type: StringConstructor;
|
|
1151
|
+
default: string;
|
|
1152
|
+
};
|
|
1153
|
+
slogen01: {
|
|
1154
|
+
type: StringConstructor;
|
|
1155
|
+
default: string;
|
|
1156
|
+
};
|
|
1157
|
+
slogen02: {
|
|
1158
|
+
type: StringConstructor;
|
|
1159
|
+
default: string;
|
|
1160
|
+
};
|
|
1161
|
+
slogen03: {
|
|
1162
|
+
type: StringConstructor;
|
|
1163
|
+
default: string;
|
|
1164
|
+
};
|
|
1165
|
+
ssoUrl: {
|
|
1166
|
+
type: StringConstructor;
|
|
1167
|
+
default: string;
|
|
1168
|
+
};
|
|
1169
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1170
|
+
login: (...args: any[]) => void;
|
|
1171
|
+
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1172
|
+
bg01: {
|
|
1173
|
+
type: StringConstructor;
|
|
1174
|
+
default: string;
|
|
1175
|
+
};
|
|
1176
|
+
bg02: {
|
|
1177
|
+
type: StringConstructor;
|
|
1178
|
+
default: string;
|
|
1179
|
+
};
|
|
1180
|
+
logo: {
|
|
1181
|
+
type: StringConstructor;
|
|
1182
|
+
default: string;
|
|
1183
|
+
};
|
|
1184
|
+
slogen01: {
|
|
1185
|
+
type: StringConstructor;
|
|
1186
|
+
default: string;
|
|
1187
|
+
};
|
|
1188
|
+
slogen02: {
|
|
1189
|
+
type: StringConstructor;
|
|
1190
|
+
default: string;
|
|
1191
|
+
};
|
|
1192
|
+
slogen03: {
|
|
1193
|
+
type: StringConstructor;
|
|
1194
|
+
default: string;
|
|
1195
|
+
};
|
|
1196
|
+
ssoUrl: {
|
|
1197
|
+
type: StringConstructor;
|
|
1198
|
+
default: string;
|
|
1199
|
+
};
|
|
1200
|
+
}>> & Readonly<{
|
|
1201
|
+
onLogin?: ((...args: any[]) => any) | undefined;
|
|
1202
|
+
}>, {
|
|
1203
|
+
bg01: string;
|
|
1204
|
+
bg02: string;
|
|
1205
|
+
logo: string;
|
|
1206
|
+
slogen01: string;
|
|
1207
|
+
slogen02: string;
|
|
1208
|
+
slogen03: string;
|
|
1209
|
+
ssoUrl: string;
|
|
1210
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1211
|
+
loginFormRef: any;
|
|
1212
|
+
pwdInputRef: any;
|
|
1213
|
+
verifyPopoverRef: HTMLDivElement;
|
|
1214
|
+
}, HTMLDivElement>;
|
|
1215
|
+
|
|
1216
|
+
export declare function login(data: LoginParams): Promise<ResponseResult<LoginResult>>;
|
|
1217
|
+
|
|
1218
|
+
export declare interface LoginParams {
|
|
1219
|
+
username: string;
|
|
1220
|
+
password: string;
|
|
1221
|
+
macAddress?: string;
|
|
1222
|
+
cVerificationCode?: string;
|
|
1223
|
+
systemSign?: string;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
export declare interface LoginResult {
|
|
1227
|
+
token: string;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
export declare interface LoginStrategyResult {
|
|
1231
|
+
loginStrategy: string;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export declare function logout(): Promise<ResponseResult<any>>;
|
|
1235
|
+
|
|
1236
|
+
export declare type MakeErrorMessageFn = (message: string, error: any) => void;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* 额外属性项
|
|
1240
|
+
*/
|
|
1241
|
+
export declare interface MetaItem {
|
|
1242
|
+
key: string;
|
|
1243
|
+
value: string;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* 额外属性项
|
|
1248
|
+
*/
|
|
1249
|
+
declare interface MetaItem_2 {
|
|
1250
|
+
key: string;
|
|
1251
|
+
value: string;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export declare const nCbtypeOpts: SelectOption[];
|
|
1255
|
+
|
|
1256
|
+
export declare const nLikematchOpts: SelectOption[];
|
|
1257
|
+
|
|
1258
|
+
declare interface OperationLogConfig {
|
|
1259
|
+
t: (key: string) => string;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
export declare const OperationLogQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* 操作日志查询参数
|
|
1266
|
+
*/
|
|
1267
|
+
export declare interface OperationLogQueryParams {
|
|
1268
|
+
pageNo: number;
|
|
1269
|
+
pageSize: number;
|
|
1270
|
+
assUserOperationLog: {
|
|
1271
|
+
cModname?: string;
|
|
1272
|
+
cSystem?: string;
|
|
1273
|
+
cDanju?: string;
|
|
1274
|
+
cUser?: string;
|
|
1275
|
+
dCreatelist?: string[];
|
|
1276
|
+
};
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* 操作日志VO
|
|
1281
|
+
*/
|
|
1282
|
+
export declare interface OperationLogVO {
|
|
1283
|
+
id: number;
|
|
1284
|
+
cModname: string;
|
|
1285
|
+
cDanju: string;
|
|
1286
|
+
cDongzuo: string;
|
|
1287
|
+
cUser: string;
|
|
1288
|
+
cUsername: string;
|
|
1289
|
+
dCreate: string;
|
|
1290
|
+
cSystem: string;
|
|
1291
|
+
cUrl: string;
|
|
1292
|
+
cMethod: string;
|
|
1293
|
+
nSecond: number;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
declare interface Option_2 {
|
|
1297
|
+
label: string;
|
|
1298
|
+
value: string;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
export declare const OtherPermissionsAdd: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1302
|
+
success: () => any;
|
|
1303
|
+
"update:visible": (value: boolean) => any;
|
|
1304
|
+
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
1305
|
+
onSuccess?: (() => any) | undefined;
|
|
1306
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1307
|
+
}>, {
|
|
1308
|
+
id: string;
|
|
1309
|
+
visible: boolean;
|
|
1310
|
+
cExresnum: string;
|
|
1311
|
+
parentId: string;
|
|
1312
|
+
parentName: string;
|
|
1313
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1314
|
+
|
|
1315
|
+
declare interface OtherPermissionsConfig {
|
|
1316
|
+
t: (key: string) => string;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* 其他权限表单VO
|
|
1321
|
+
*/
|
|
1322
|
+
export declare interface OtherPermissionsFormVO {
|
|
1323
|
+
cExresnum: string;
|
|
1324
|
+
cExresname: string;
|
|
1325
|
+
cOrg: string;
|
|
1326
|
+
nOrder?: number;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
export declare const OtherPermissionsQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
1330
|
+
|
|
1331
|
+
/**
|
|
1332
|
+
* 其他权限查询参数
|
|
1333
|
+
*/
|
|
1334
|
+
export declare interface OtherPermissionsQueryParams {
|
|
1335
|
+
pageNo: number;
|
|
1336
|
+
pageSize: number;
|
|
1337
|
+
authExres: {
|
|
1338
|
+
cExresnum?: string;
|
|
1339
|
+
cExresname?: string;
|
|
1340
|
+
nParent: number;
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
export declare const OtherPermissionsUpdate: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1345
|
+
success: () => any;
|
|
1346
|
+
"update:visible": (value: boolean) => any;
|
|
1347
|
+
}, string, PublicProps, Readonly<Props_2> & Readonly<{
|
|
1348
|
+
onSuccess?: (() => any) | undefined;
|
|
1349
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
1350
|
+
}>, {
|
|
1351
|
+
visible: boolean;
|
|
1352
|
+
row: any;
|
|
1353
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* 其他权限VO
|
|
1357
|
+
*/
|
|
1358
|
+
export declare interface OtherPermissionsVO {
|
|
1359
|
+
id: string;
|
|
1360
|
+
cExresnum: string;
|
|
1361
|
+
cExresname: string;
|
|
1362
|
+
cOrg: string;
|
|
1363
|
+
dCredate: string;
|
|
1364
|
+
cCreateName: string;
|
|
1365
|
+
nOrder: number;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* 权限选项缓存管理器
|
|
1370
|
+
* Permission options cache manager
|
|
1371
|
+
* @description 统一管理所有权限选项的加载和缓存,支持请求去重
|
|
1372
|
+
* @description Unified management of all permission option loading and caching with request deduplication
|
|
1373
|
+
*/
|
|
1374
|
+
declare class PermissionOptionsManager {
|
|
1375
|
+
/**
|
|
1376
|
+
* 选项缓存
|
|
1377
|
+
* Options cache
|
|
1378
|
+
* @description 缓存已加载的权限选项数据
|
|
1379
|
+
* @description Cache loaded permission option data
|
|
1380
|
+
*/
|
|
1381
|
+
private readonly cache;
|
|
1382
|
+
/**
|
|
1383
|
+
* 加载中的 Promise(避免重复请求)
|
|
1384
|
+
* Loading Promises (avoid duplicate requests)
|
|
1385
|
+
* @description 当多个组件同时加载相同权限时,共享同一个 Promise
|
|
1386
|
+
* @description When multiple components load the same permission simultaneously, share the same Promise
|
|
1387
|
+
*/
|
|
1388
|
+
private readonly loadingPromises;
|
|
1389
|
+
/**
|
|
1390
|
+
* 批量加载权限选项(带缓存和去重)
|
|
1391
|
+
* Batch load permission options (with cache and deduplication)
|
|
1392
|
+
* @param numbList - 权限编码列表
|
|
1393
|
+
* @param fieldMapping - 字段映射配置
|
|
1394
|
+
* @param forceReload - 是否强制刷新(忽略缓存)
|
|
1395
|
+
* @returns 选项映射表 { code: options }
|
|
1396
|
+
*/
|
|
1397
|
+
loadOptions(numbList: (string | number)[], fieldMapping?: PermissionFieldMapping, forceReload?: boolean): Promise<Record<string, SelectOption_2[]>>;
|
|
1398
|
+
/**
|
|
1399
|
+
* 获取单个权限的选项(从缓存)
|
|
1400
|
+
* Get single permission options (from cache)
|
|
1401
|
+
* @param code - 权限编码
|
|
1402
|
+
* @returns 选项数组
|
|
1403
|
+
*/
|
|
1404
|
+
getOptions(code: string | number): SelectOption_2[];
|
|
1405
|
+
/**
|
|
1406
|
+
* 清除指定权限的缓存
|
|
1407
|
+
* Clear cache for specified permission
|
|
1408
|
+
* @param code - 权限编码(可选,不传则清除所有)
|
|
1409
|
+
*/
|
|
1410
|
+
clearCache(code?: string | number): void;
|
|
1411
|
+
/**
|
|
1412
|
+
* 检查权限是否已缓存
|
|
1413
|
+
* Check if permission is cached
|
|
1414
|
+
* @param code - 权限编码
|
|
1415
|
+
* @returns 是否已缓存
|
|
1416
|
+
*/
|
|
1417
|
+
hasCache(code: string | number): boolean;
|
|
1418
|
+
/**
|
|
1419
|
+
* 获取缓存大小
|
|
1420
|
+
* Get cache size
|
|
1421
|
+
* @returns 缓存的权限数量
|
|
1422
|
+
*/
|
|
1423
|
+
getCacheSize(): number;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
export declare const permissionOptionsManager: PermissionOptionsManager;
|
|
1427
|
+
|
|
1428
|
+
/**
|
|
1429
|
+
* 路由守卫预加载工具
|
|
1430
|
+
* Route guard pre-loading utility
|
|
1431
|
+
*
|
|
1432
|
+
* @description 用于在路由级别预加载字典选项
|
|
1433
|
+
* @description Used for pre-loading dictionary options at route level
|
|
1434
|
+
*
|
|
1435
|
+
* @param dictCodes - 字典编码列表
|
|
1436
|
+
* @param fieldMapping - 字段映射配置
|
|
1437
|
+
* @returns 加载函数
|
|
1438
|
+
*
|
|
1439
|
+
* @example
|
|
1440
|
+
* ```typescript
|
|
1441
|
+
* // router/guard.ts
|
|
1442
|
+
* import { preLoadSelectOptions } from '@sunny-base-web/effects';
|
|
1443
|
+
*
|
|
1444
|
+
* router.beforeEach(async (to, from, next) => {
|
|
1445
|
+
* if (to.meta.selectOptions) {
|
|
1446
|
+
* await preLoadSelectOptions(to.meta.selectOptions as string[]);
|
|
1447
|
+
* }
|
|
1448
|
+
* next();
|
|
1449
|
+
* });
|
|
1450
|
+
*
|
|
1451
|
+
* // router/index.ts
|
|
1452
|
+
* {
|
|
1453
|
+
* path: '/setting/demo/test',
|
|
1454
|
+
* meta: {
|
|
1455
|
+
* selectOptions: ['SFQY', 'LANG']
|
|
1456
|
+
* }
|
|
1457
|
+
* }
|
|
1458
|
+
* ```
|
|
1459
|
+
*/
|
|
1460
|
+
export declare function preLoadSelectOptions(dictCodes: (string | number)[], fieldMapping?: {
|
|
1461
|
+
label?: string;
|
|
1462
|
+
value?: string;
|
|
1463
|
+
}): Promise<void>;
|
|
1464
|
+
|
|
1465
|
+
declare interface Props {
|
|
1466
|
+
visible: boolean;
|
|
1467
|
+
parentId?: string;
|
|
1468
|
+
parentName?: string;
|
|
1469
|
+
cExresnum?: string;
|
|
1470
|
+
id?: string;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
declare interface Props_2 {
|
|
1474
|
+
visible: boolean;
|
|
1475
|
+
row?: any;
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* 查询数据字典
|
|
1480
|
+
*/
|
|
1481
|
+
export declare function queryByXuhao(data: any): Promise<any>;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* 查询当前用户收藏的菜单
|
|
1485
|
+
*/
|
|
1486
|
+
export declare function queryFavorites(params: QueryFavoritesParams): Promise<ResponseResult<FavoriteItem[]>>;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* 查询收藏菜单参数
|
|
1490
|
+
*/
|
|
1491
|
+
export declare interface QueryFavoritesParams {
|
|
1492
|
+
cCreateuser: string;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
export declare function refreshTokenApi(): Promise<any>;
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* 删除收藏菜单
|
|
1499
|
+
*/
|
|
1500
|
+
export declare function removeFavorite(params: RemoveFavoriteParams): Promise<ResponseResult<void>>;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* 删除收藏菜单参数
|
|
1504
|
+
*/
|
|
1505
|
+
export declare interface RemoveFavoriteParams {
|
|
1506
|
+
nResourceid: number;
|
|
1507
|
+
cCreateuser: string;
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* 上报错误到监控系统
|
|
1512
|
+
*
|
|
1513
|
+
* TODO: 集成 Sentry SDK
|
|
1514
|
+
* 1. 安装依赖: pnpm add @sentry/vue
|
|
1515
|
+
* 2. 在 bootstrap.ts 中初始化 Sentry:
|
|
1516
|
+
* ```
|
|
1517
|
+
* import * as Sentry from '@sentry/vue';
|
|
1518
|
+
*
|
|
1519
|
+
* Sentry.init({
|
|
1520
|
+
* app,
|
|
1521
|
+
* dsn: import.meta.env.VITE_SENTRY_DSN,
|
|
1522
|
+
* environment: import.meta.env.MODE,
|
|
1523
|
+
* release: import.meta.env.VITE_APP_VERSION,
|
|
1524
|
+
* integrations: [
|
|
1525
|
+
* new Sentry.BrowserTracing({
|
|
1526
|
+
* routingInstrumentation: Sentry.vueRouterInstrumentation(router),
|
|
1527
|
+
* }),
|
|
1528
|
+
* new Sentry.Replay(),
|
|
1529
|
+
* ],
|
|
1530
|
+
* tracesSampleRate: 1.0,
|
|
1531
|
+
* replaysSessionSampleRate: 0.1,
|
|
1532
|
+
* replaysOnErrorSampleRate: 1.0,
|
|
1533
|
+
* });
|
|
1534
|
+
* ```
|
|
1535
|
+
* 3. 在此函数中使用 Sentry.captureException()
|
|
1536
|
+
*
|
|
1537
|
+
* @param error - 错误对象
|
|
1538
|
+
* @param context - 错误上下文
|
|
1539
|
+
*/
|
|
1540
|
+
declare function reportError_2(error: Error, context?: ErrorContext): void;
|
|
1541
|
+
export { reportError_2 as reportError }
|
|
1542
|
+
|
|
1543
|
+
/**
|
|
1544
|
+
* 上报全局错误
|
|
1545
|
+
*
|
|
1546
|
+
* @param event - error 事件
|
|
1547
|
+
*/
|
|
1548
|
+
export declare function reportGlobalError(event: ErrorEvent): void;
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* 上报 Promise rejection
|
|
1552
|
+
*
|
|
1553
|
+
* @param event - unhandledrejection 事件
|
|
1554
|
+
*/
|
|
1555
|
+
export declare function reportUnhandledRejection(event: PromiseRejectionEvent): void;
|
|
1556
|
+
|
|
1557
|
+
export declare class RequestClient {
|
|
1558
|
+
addRequestInterceptor: InterceptorManager['addRequestInterceptor'];
|
|
1559
|
+
addResponseInterceptor: InterceptorManager['addResponseInterceptor'];
|
|
1560
|
+
download: FileDownloader['download'];
|
|
1561
|
+
readonly instance: AxiosInstance;
|
|
1562
|
+
isRefreshing: boolean;
|
|
1563
|
+
postSSE: SSE['postSSE'];
|
|
1564
|
+
refreshTokenQueue: ((token: string) => void)[];
|
|
1565
|
+
requestSSE: SSE['requestSSE'];
|
|
1566
|
+
upload: FileUploader['upload'];
|
|
1567
|
+
/**
|
|
1568
|
+
* 构造函数,用于创建Axios实例
|
|
1569
|
+
* @param options - Axios请求配置,可选
|
|
1570
|
+
*/
|
|
1571
|
+
constructor(options?: RequestClientOptions);
|
|
1572
|
+
/**
|
|
1573
|
+
* DELETE请求方法
|
|
1574
|
+
*/
|
|
1575
|
+
delete<T = any>(url: string, config?: RequestClientConfig): Promise<T>;
|
|
1576
|
+
/**
|
|
1577
|
+
* GET请求方法
|
|
1578
|
+
*/
|
|
1579
|
+
get<T = any>(url: string, config?: RequestClientConfig): Promise<T>;
|
|
1580
|
+
/**
|
|
1581
|
+
* 获取基础URL
|
|
1582
|
+
*/
|
|
1583
|
+
getBaseUrl(): string | undefined;
|
|
1584
|
+
/**
|
|
1585
|
+
* POST请求方法
|
|
1586
|
+
*/
|
|
1587
|
+
post<T = any>(url: string, data?: any, config?: RequestClientConfig): Promise<T>;
|
|
1588
|
+
/**
|
|
1589
|
+
* PUT请求方法
|
|
1590
|
+
*/
|
|
1591
|
+
put<T = any>(url: string, data?: any, config?: RequestClientConfig): Promise<T>;
|
|
1592
|
+
/**
|
|
1593
|
+
* 通用的请求方法
|
|
1594
|
+
*/
|
|
1595
|
+
request<T>(url: string, config: RequestClientConfig): Promise<T>;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* 导出的默认请求客户端实例
|
|
1600
|
+
*
|
|
1601
|
+
* 配置:
|
|
1602
|
+
* - responseReturn: 'data' (直接返回 response.data.data,即业务数据部分)
|
|
1603
|
+
* - baseURL: 默认为空,由请求拦截器中的 globalConfig.apiPrefix 动态决定
|
|
1604
|
+
*/
|
|
1605
|
+
export declare const requestClient: RequestClient;
|
|
1606
|
+
|
|
1607
|
+
export declare type RequestClientConfig<T = any> = AxiosRequestConfig<T> & ExtendOptions<T>;
|
|
1608
|
+
|
|
1609
|
+
export declare type RequestClientOptions = CreateAxiosDefaults & ExtendOptions;
|
|
1610
|
+
|
|
1611
|
+
export declare type RequestContentType = 'application/json;charset=utf-8' | 'application/octet-stream;charset=utf-8' | 'application/x-www-form-urlencoded;charset=utf-8' | 'multipart/form-data;charset=utf-8';
|
|
1612
|
+
|
|
1613
|
+
export declare interface RequestInterceptorConfig {
|
|
1614
|
+
fulfilled?: (config: ExtendOptions & InternalAxiosRequestConfig) => (ExtendOptions & InternalAxiosRequestConfig<any>) | Promise<ExtendOptions & InternalAxiosRequestConfig<any>>;
|
|
1615
|
+
rejected?: (error: any) => any;
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
export declare type RequestResponse<T = any> = AxiosResponse<T> & {
|
|
1619
|
+
config: RequestClientConfig<T>;
|
|
1620
|
+
};
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* 资源配置
|
|
1624
|
+
*/
|
|
1625
|
+
export declare const resourceConfig: {
|
|
1626
|
+
resourceId: string;
|
|
1627
|
+
nResourceid: number;
|
|
1628
|
+
cModnumb: string;
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
export declare const ResourceManagement: DefineComponent<ExtractPropTypes< {
|
|
1632
|
+
appSystem: {
|
|
1633
|
+
type: PropType<any[]>;
|
|
1634
|
+
default: () => never[];
|
|
1635
|
+
};
|
|
1636
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1637
|
+
appSystem: {
|
|
1638
|
+
type: PropType<any[]>;
|
|
1639
|
+
default: () => never[];
|
|
1640
|
+
};
|
|
1641
|
+
}>> & Readonly<{}>, {
|
|
1642
|
+
appSystem: any[];
|
|
1643
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1644
|
+
constructionSeletor: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
|
|
1645
|
+
editableBaseData: {
|
|
1646
|
+
moduleInfo: any;
|
|
1647
|
+
activeName: string;
|
|
1648
|
+
contentHeight: number;
|
|
1649
|
+
resourceData: {};
|
|
1650
|
+
};
|
|
1651
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
1652
|
+
P: {};
|
|
1653
|
+
B: {};
|
|
1654
|
+
D: {};
|
|
1655
|
+
C: {};
|
|
1656
|
+
M: {};
|
|
1657
|
+
Defaults: {};
|
|
1658
|
+
}, Readonly<{}> & Readonly<{}>, {
|
|
1659
|
+
editableBaseData: {
|
|
1660
|
+
moduleInfo: any;
|
|
1661
|
+
activeName: string;
|
|
1662
|
+
contentHeight: number;
|
|
1663
|
+
resourceData: {};
|
|
1664
|
+
};
|
|
1665
|
+
}, {}, {}, {}, {}> | null;
|
|
1666
|
+
}, HTMLDivElement>;
|
|
1667
|
+
|
|
1668
|
+
export declare interface ResponseInterceptorConfig<T = any> {
|
|
1669
|
+
fulfilled?: (response: RequestResponse<T>) => Promise<RequestResponse> | RequestResponse;
|
|
1670
|
+
rejected?: (error: any) => any;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
export declare interface ResponseResult<T = any> {
|
|
1674
|
+
success: boolean;
|
|
1675
|
+
message: string;
|
|
1676
|
+
code: number;
|
|
1677
|
+
result: T;
|
|
1678
|
+
timestamp: number;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
export declare const RoleAdd: DefineComponent< {}, {
|
|
1682
|
+
addInit: () => Promise<void>;
|
|
1683
|
+
editInit: (record: any) => Promise<void>;
|
|
1684
|
+
detailInit: (record: any) => void;
|
|
1685
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1686
|
+
success: () => any;
|
|
1687
|
+
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
1688
|
+
onSuccess?: (() => any) | undefined;
|
|
1689
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1690
|
+
modalRef: ({
|
|
1691
|
+
$: ComponentInternalInstance;
|
|
1692
|
+
$data: {};
|
|
1693
|
+
$props: {
|
|
1694
|
+
readonly modelValue?: boolean | undefined;
|
|
1695
|
+
readonly title?: string | undefined;
|
|
1696
|
+
readonly width?: string | number | undefined;
|
|
1697
|
+
readonly top?: string | number | undefined;
|
|
1698
|
+
readonly zIndex?: number | undefined;
|
|
1699
|
+
readonly helpMessage?: string | undefined;
|
|
1700
|
+
readonly closeOnEsc?: boolean | undefined;
|
|
1701
|
+
readonly fullscreen?: boolean | undefined;
|
|
1702
|
+
readonly closeOnClickModal?: boolean | undefined;
|
|
1703
|
+
readonly okText?: string | undefined;
|
|
1704
|
+
readonly cancelText?: string | undefined;
|
|
1705
|
+
readonly okLoading?: boolean | undefined;
|
|
1706
|
+
readonly confirmLoading?: boolean | undefined;
|
|
1707
|
+
readonly hideCancel?: boolean | undefined;
|
|
1708
|
+
readonly okButtonProps?: any;
|
|
1709
|
+
readonly cancelButtonProps?: any;
|
|
1710
|
+
readonly onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
1711
|
+
readonly onBeforeOk?: ((done?: (closed: boolean) => void) => void | boolean | Promise<void | boolean>) | undefined;
|
|
1712
|
+
readonly onBeforeCancel?: (() => boolean | Promise<boolean>) | undefined;
|
|
1713
|
+
readonly onClose?: ((() => void) & (() => any)) | undefined;
|
|
1714
|
+
readonly onOk?: ((() => void) & (() => any)) | undefined;
|
|
1715
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1716
|
+
readonly "onFullscreen-change"?: ((value: boolean) => any) | undefined;
|
|
1717
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1718
|
+
$attrs: {
|
|
1719
|
+
[x: string]: unknown;
|
|
1720
|
+
};
|
|
1721
|
+
$refs: {
|
|
1722
|
+
[x: string]: unknown;
|
|
1723
|
+
};
|
|
1724
|
+
$slots: Readonly<{
|
|
1725
|
+
[name: string]: Slot<any> | undefined;
|
|
1726
|
+
}>;
|
|
1727
|
+
$root: ComponentPublicInstance | null;
|
|
1728
|
+
$parent: ComponentPublicInstance | null;
|
|
1729
|
+
$host: Element | null;
|
|
1730
|
+
$emit: ((event: "close") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "ok") => void) & ((event: "fullscreen-change", value: boolean) => void);
|
|
1731
|
+
$el: any;
|
|
1732
|
+
$options: ComponentOptionsBase<Readonly<ModalProps> & Readonly<{
|
|
1733
|
+
onClose?: (() => any) | undefined;
|
|
1734
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1735
|
+
onOk?: (() => any) | undefined;
|
|
1736
|
+
"onFullscreen-change"?: ((value: boolean) => any) | undefined;
|
|
1737
|
+
}>, {
|
|
1738
|
+
toggleMaximize: () => void;
|
|
1739
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1740
|
+
close: () => any;
|
|
1741
|
+
"update:modelValue": (value: boolean) => any;
|
|
1742
|
+
ok: () => any;
|
|
1743
|
+
"fullscreen-change": (value: boolean) => any;
|
|
1744
|
+
}, string, {
|
|
1745
|
+
title: string;
|
|
1746
|
+
modelValue: boolean;
|
|
1747
|
+
width: string | number;
|
|
1748
|
+
zIndex: number;
|
|
1749
|
+
helpMessage: string;
|
|
1750
|
+
closeOnEsc: boolean;
|
|
1751
|
+
fullscreen: boolean;
|
|
1752
|
+
closeOnClickModal: boolean;
|
|
1753
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1754
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1755
|
+
created?: (() => void) | (() => void)[];
|
|
1756
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1757
|
+
mounted?: (() => void) | (() => void)[];
|
|
1758
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1759
|
+
updated?: (() => void) | (() => void)[];
|
|
1760
|
+
activated?: (() => void) | (() => void)[];
|
|
1761
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1762
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1763
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1764
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1765
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1766
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1767
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1768
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1769
|
+
};
|
|
1770
|
+
$forceUpdate: () => void;
|
|
1771
|
+
$nextTick: typeof nextTick;
|
|
1772
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1773
|
+
} & Readonly<{
|
|
1774
|
+
title: string;
|
|
1775
|
+
modelValue: boolean;
|
|
1776
|
+
width: string | number;
|
|
1777
|
+
zIndex: number;
|
|
1778
|
+
helpMessage: string;
|
|
1779
|
+
closeOnEsc: boolean;
|
|
1780
|
+
fullscreen: boolean;
|
|
1781
|
+
closeOnClickModal: boolean;
|
|
1782
|
+
}> & Omit<Readonly<ModalProps> & Readonly<{
|
|
1783
|
+
onClose?: (() => any) | undefined;
|
|
1784
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1785
|
+
onOk?: (() => any) | undefined;
|
|
1786
|
+
"onFullscreen-change"?: ((value: boolean) => any) | undefined;
|
|
1787
|
+
}>, "toggleMaximize" | ("title" | "modelValue" | "width" | "zIndex" | "helpMessage" | "closeOnEsc" | "fullscreen" | "closeOnClickModal")> & ShallowUnwrapRef< {
|
|
1788
|
+
toggleMaximize: () => void;
|
|
1789
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1790
|
+
$slots: {
|
|
1791
|
+
default?(_: {}): any;
|
|
1792
|
+
title?(_: {}): any;
|
|
1793
|
+
footer?(_: {}): any;
|
|
1794
|
+
insertFooter?(_: {}): any;
|
|
1795
|
+
centerFooter?(_: {}): any;
|
|
1796
|
+
appendFooter?(_: {}): any;
|
|
1797
|
+
};
|
|
1798
|
+
}) | null;
|
|
1799
|
+
treeRef: any;
|
|
1800
|
+
}, any>;
|
|
1801
|
+
|
|
1802
|
+
export declare const RoleAuth: DefineComponent< {}, {
|
|
1803
|
+
openInit: (record: any) => Promise<void>;
|
|
1804
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1805
|
+
success: () => any;
|
|
1806
|
+
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
1807
|
+
onSuccess?: (() => any) | undefined;
|
|
1808
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1809
|
+
RoleChooseUserRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
1810
|
+
onChooseUserEmit?: ((...args: any[]) => any) | undefined;
|
|
1811
|
+
}>, {
|
|
1812
|
+
openInit: () => void;
|
|
1813
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1814
|
+
chooseUserEmit: (...args: any[]) => void;
|
|
1815
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1816
|
+
P: {};
|
|
1817
|
+
B: {};
|
|
1818
|
+
D: {};
|
|
1819
|
+
C: {};
|
|
1820
|
+
M: {};
|
|
1821
|
+
Defaults: {};
|
|
1822
|
+
}, Readonly<{}> & Readonly<{
|
|
1823
|
+
onChooseUserEmit?: ((...args: any[]) => any) | undefined;
|
|
1824
|
+
}>, {
|
|
1825
|
+
openInit: () => void;
|
|
1826
|
+
}, {}, {}, {}, {}> | null;
|
|
1827
|
+
}, any>;
|
|
1828
|
+
|
|
1829
|
+
declare interface RoleConfig {
|
|
1830
|
+
t: (key: string) => string;
|
|
1831
|
+
formApi?: any;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
export declare const RoleQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1835
|
+
RoleAddRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
1836
|
+
onSuccess?: (() => any) | undefined;
|
|
1837
|
+
}>, {
|
|
1838
|
+
addInit: () => Promise<void>;
|
|
1839
|
+
editInit: (record: any) => Promise<void>;
|
|
1840
|
+
detailInit: (record: any) => void;
|
|
1841
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1842
|
+
success: () => any;
|
|
1843
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1844
|
+
modalRef: ({
|
|
1845
|
+
$: ComponentInternalInstance;
|
|
1846
|
+
$data: {};
|
|
1847
|
+
$props: {
|
|
1848
|
+
readonly modelValue?: boolean | undefined;
|
|
1849
|
+
readonly title?: string | undefined;
|
|
1850
|
+
readonly width?: string | number | undefined;
|
|
1851
|
+
readonly top?: string | number | undefined;
|
|
1852
|
+
readonly zIndex?: number | undefined;
|
|
1853
|
+
readonly helpMessage?: string | undefined;
|
|
1854
|
+
readonly closeOnEsc?: boolean | undefined;
|
|
1855
|
+
readonly fullscreen?: boolean | undefined;
|
|
1856
|
+
readonly closeOnClickModal?: boolean | undefined;
|
|
1857
|
+
readonly okText?: string | undefined;
|
|
1858
|
+
readonly cancelText?: string | undefined;
|
|
1859
|
+
readonly okLoading?: boolean | undefined;
|
|
1860
|
+
readonly confirmLoading?: boolean | undefined;
|
|
1861
|
+
readonly hideCancel?: boolean | undefined;
|
|
1862
|
+
readonly okButtonProps?: any;
|
|
1863
|
+
readonly cancelButtonProps?: any;
|
|
1864
|
+
readonly onVisibleChange?: ((visible: boolean) => void) | undefined;
|
|
1865
|
+
readonly onBeforeOk?: ((done?: (closed: boolean) => void) => void | boolean | Promise<void | boolean>) | undefined;
|
|
1866
|
+
readonly onBeforeCancel?: (() => boolean | Promise<boolean>) | undefined;
|
|
1867
|
+
readonly onClose?: ((() => void) & (() => any)) | undefined;
|
|
1868
|
+
readonly onOk?: ((() => void) & (() => any)) | undefined;
|
|
1869
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1870
|
+
readonly "onFullscreen-change"?: ((value: boolean) => any) | undefined;
|
|
1871
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1872
|
+
$attrs: {
|
|
1873
|
+
[x: string]: unknown;
|
|
1874
|
+
};
|
|
1875
|
+
$refs: {
|
|
1876
|
+
[x: string]: unknown;
|
|
1877
|
+
};
|
|
1878
|
+
$slots: Readonly<{
|
|
1879
|
+
[name: string]: Slot<any> | undefined;
|
|
1880
|
+
}>;
|
|
1881
|
+
$root: ComponentPublicInstance | null;
|
|
1882
|
+
$parent: ComponentPublicInstance | null;
|
|
1883
|
+
$host: Element | null;
|
|
1884
|
+
$emit: ((event: "close") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "ok") => void) & ((event: "fullscreen-change", value: boolean) => void);
|
|
1885
|
+
$el: any;
|
|
1886
|
+
$options: ComponentOptionsBase<Readonly<ModalProps> & Readonly<{
|
|
1887
|
+
onClose?: (() => any) | undefined;
|
|
1888
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1889
|
+
onOk?: (() => any) | undefined;
|
|
1890
|
+
"onFullscreen-change"?: ((value: boolean) => any) | undefined;
|
|
1891
|
+
}>, {
|
|
1892
|
+
toggleMaximize: () => void;
|
|
1893
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1894
|
+
close: () => any;
|
|
1895
|
+
"update:modelValue": (value: boolean) => any;
|
|
1896
|
+
ok: () => any;
|
|
1897
|
+
"fullscreen-change": (value: boolean) => any;
|
|
1898
|
+
}, string, {
|
|
1899
|
+
title: string;
|
|
1900
|
+
modelValue: boolean;
|
|
1901
|
+
width: string | number;
|
|
1902
|
+
zIndex: number;
|
|
1903
|
+
helpMessage: string;
|
|
1904
|
+
closeOnEsc: boolean;
|
|
1905
|
+
fullscreen: boolean;
|
|
1906
|
+
closeOnClickModal: boolean;
|
|
1907
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1908
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1909
|
+
created?: (() => void) | (() => void)[];
|
|
1910
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1911
|
+
mounted?: (() => void) | (() => void)[];
|
|
1912
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1913
|
+
updated?: (() => void) | (() => void)[];
|
|
1914
|
+
activated?: (() => void) | (() => void)[];
|
|
1915
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1916
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1917
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1918
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1919
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1920
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1921
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1922
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1923
|
+
};
|
|
1924
|
+
$forceUpdate: () => void;
|
|
1925
|
+
$nextTick: nextTick;
|
|
1926
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1927
|
+
} & Readonly<{
|
|
1928
|
+
title: string;
|
|
1929
|
+
modelValue: boolean;
|
|
1930
|
+
width: string | number;
|
|
1931
|
+
zIndex: number;
|
|
1932
|
+
helpMessage: string;
|
|
1933
|
+
closeOnEsc: boolean;
|
|
1934
|
+
fullscreen: boolean;
|
|
1935
|
+
closeOnClickModal: boolean;
|
|
1936
|
+
}> & Omit<Readonly<ModalProps> & Readonly<{
|
|
1937
|
+
onClose?: (() => any) | undefined;
|
|
1938
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1939
|
+
onOk?: (() => any) | undefined;
|
|
1940
|
+
"onFullscreen-change"?: ((value: boolean) => any) | undefined;
|
|
1941
|
+
}>, "toggleMaximize" | ("title" | "modelValue" | "width" | "zIndex" | "helpMessage" | "closeOnEsc" | "fullscreen" | "closeOnClickModal")> & ShallowUnwrapRef< {
|
|
1942
|
+
toggleMaximize: () => void;
|
|
1943
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1944
|
+
$slots: {
|
|
1945
|
+
default?(_: {}): any;
|
|
1946
|
+
title?(_: {}): any;
|
|
1947
|
+
footer?(_: {}): any;
|
|
1948
|
+
insertFooter?(_: {}): any;
|
|
1949
|
+
centerFooter?(_: {}): any;
|
|
1950
|
+
appendFooter?(_: {}): any;
|
|
1951
|
+
};
|
|
1952
|
+
}) | null;
|
|
1953
|
+
treeRef: any;
|
|
1954
|
+
}, any, ComponentProvideOptions, {
|
|
1955
|
+
P: {};
|
|
1956
|
+
B: {};
|
|
1957
|
+
D: {};
|
|
1958
|
+
C: {};
|
|
1959
|
+
M: {};
|
|
1960
|
+
Defaults: {};
|
|
1961
|
+
}, Readonly<{}> & Readonly<{
|
|
1962
|
+
onSuccess?: (() => any) | undefined;
|
|
1963
|
+
}>, {
|
|
1964
|
+
addInit: () => Promise<void>;
|
|
1965
|
+
editInit: (record: any) => Promise<void>;
|
|
1966
|
+
detailInit: (record: any) => void;
|
|
1967
|
+
}, {}, {}, {}, {}> | null;
|
|
1968
|
+
RoleAuthRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
1969
|
+
onSuccess?: (() => any) | undefined;
|
|
1970
|
+
}>, {
|
|
1971
|
+
openInit: (record: any) => Promise<void>;
|
|
1972
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1973
|
+
success: () => any;
|
|
1974
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1975
|
+
RoleChooseUserRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
1976
|
+
onChooseUserEmit?: ((...args: any[]) => any) | undefined;
|
|
1977
|
+
}>, {
|
|
1978
|
+
openInit: () => void;
|
|
1979
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1980
|
+
chooseUserEmit: (...args: any[]) => void;
|
|
1981
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1982
|
+
P: {};
|
|
1983
|
+
B: {};
|
|
1984
|
+
D: {};
|
|
1985
|
+
C: {};
|
|
1986
|
+
M: {};
|
|
1987
|
+
Defaults: {};
|
|
1988
|
+
}, Readonly<{}> & Readonly<{
|
|
1989
|
+
onChooseUserEmit?: ((...args: any[]) => any) | undefined;
|
|
1990
|
+
}>, {
|
|
1991
|
+
openInit: () => void;
|
|
1992
|
+
}, {}, {}, {}, {}> | null;
|
|
1993
|
+
}, any, ComponentProvideOptions, {
|
|
1994
|
+
P: {};
|
|
1995
|
+
B: {};
|
|
1996
|
+
D: {};
|
|
1997
|
+
C: {};
|
|
1998
|
+
M: {};
|
|
1999
|
+
Defaults: {};
|
|
2000
|
+
}, Readonly<{}> & Readonly<{
|
|
2001
|
+
onSuccess?: (() => any) | undefined;
|
|
2002
|
+
}>, {
|
|
2003
|
+
openInit: (record: any) => Promise<void>;
|
|
2004
|
+
}, {}, {}, {}, {}> | null;
|
|
2005
|
+
}, HTMLDivElement>;
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* 角色查询参数
|
|
2009
|
+
*/
|
|
2010
|
+
export declare interface RoleQueryParams {
|
|
2011
|
+
/**
|
|
2012
|
+
* 页码
|
|
2013
|
+
*/
|
|
2014
|
+
pageNo: number;
|
|
2015
|
+
/**
|
|
2016
|
+
* 每页大小
|
|
2017
|
+
*/
|
|
2018
|
+
pageSize: number;
|
|
2019
|
+
/**
|
|
2020
|
+
* 角色信息
|
|
2021
|
+
*/
|
|
2022
|
+
authRole: {
|
|
2023
|
+
/**
|
|
2024
|
+
* 角色编号
|
|
2025
|
+
*/
|
|
2026
|
+
cRolenumb?: string;
|
|
2027
|
+
/**
|
|
2028
|
+
* 角色名称
|
|
2029
|
+
*/
|
|
2030
|
+
cRolename?: string;
|
|
2031
|
+
/**
|
|
2032
|
+
* 所属系统
|
|
2033
|
+
*/
|
|
2034
|
+
CSystem?: string;
|
|
2035
|
+
/**
|
|
2036
|
+
* 所属组织
|
|
2037
|
+
*/
|
|
2038
|
+
corg?: string;
|
|
2039
|
+
/**
|
|
2040
|
+
* 所属类型
|
|
2041
|
+
*/
|
|
2042
|
+
сType?: string;
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
/**
|
|
2047
|
+
* 角色信息VO
|
|
2048
|
+
*/
|
|
2049
|
+
export declare interface RoleVO {
|
|
2050
|
+
/**
|
|
2051
|
+
* ID
|
|
2052
|
+
*/
|
|
2053
|
+
id: string;
|
|
2054
|
+
/**
|
|
2055
|
+
* 角色编号
|
|
2056
|
+
*/
|
|
2057
|
+
cRolenumb: string;
|
|
2058
|
+
/**
|
|
2059
|
+
* 角色名称
|
|
2060
|
+
*/
|
|
2061
|
+
cRolename: string;
|
|
2062
|
+
/**
|
|
2063
|
+
* 所属系统
|
|
2064
|
+
*/
|
|
2065
|
+
CSystem: string;
|
|
2066
|
+
/**
|
|
2067
|
+
* 所属组织
|
|
2068
|
+
*/
|
|
2069
|
+
corg: string;
|
|
2070
|
+
/**
|
|
2071
|
+
* 所属类型
|
|
2072
|
+
*/
|
|
2073
|
+
сType: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* 敏感角色
|
|
2076
|
+
*/
|
|
2077
|
+
nSensitive: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* 创建人
|
|
2080
|
+
*/
|
|
2081
|
+
cCrename: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* 创建时间
|
|
2084
|
+
*/
|
|
2085
|
+
dCredate: string;
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* 保存所有系统设置
|
|
2090
|
+
*/
|
|
2091
|
+
export declare function saveAllSettings(settings: SysSettingItem[]): Promise<any>;
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* Schema 选项加载器返回值
|
|
2095
|
+
* Schema options loader return value
|
|
2096
|
+
*/
|
|
2097
|
+
export declare interface SchemaOptionsLoaderReturn {
|
|
2098
|
+
/**
|
|
2099
|
+
* 增强后的 Schema(自动注入 options)
|
|
2100
|
+
* Enhanced Schema (with auto-injected options)
|
|
2101
|
+
*/
|
|
2102
|
+
enhancedSchema: ComputedRef<FormSchema[]>;
|
|
2103
|
+
/**
|
|
2104
|
+
* 选项映射表
|
|
2105
|
+
* Options map
|
|
2106
|
+
*/
|
|
2107
|
+
optionsMap: Ref<Record<string, SelectOption_2[]>>;
|
|
2108
|
+
/**
|
|
2109
|
+
* 加载状态
|
|
2110
|
+
* Loading state
|
|
2111
|
+
*/
|
|
2112
|
+
loading: Ref<boolean>;
|
|
2113
|
+
/**
|
|
2114
|
+
* 手动加载
|
|
2115
|
+
* Manual load
|
|
2116
|
+
*/
|
|
2117
|
+
load: () => Promise<void>;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* Schema 选项加载器返回值
|
|
2122
|
+
* Schema options loader return value
|
|
2123
|
+
*/
|
|
2124
|
+
export declare interface SchemaPermissionLoaderReturn {
|
|
2125
|
+
/**
|
|
2126
|
+
* 增强后的 Schema(自动注入 options)
|
|
2127
|
+
* Enhanced Schema (with auto-injected options)
|
|
2128
|
+
*/
|
|
2129
|
+
enhancedSchema: ComputedRef<FormSchema[]>;
|
|
2130
|
+
/**
|
|
2131
|
+
* 选项映射表
|
|
2132
|
+
* Options map
|
|
2133
|
+
*/
|
|
2134
|
+
optionsMap: Ref<Record<string, SelectOption_2[]>>;
|
|
2135
|
+
/**
|
|
2136
|
+
* 加载状态
|
|
2137
|
+
* Loading state
|
|
2138
|
+
*/
|
|
2139
|
+
loading: Ref<boolean>;
|
|
2140
|
+
/**
|
|
2141
|
+
* 手动加载
|
|
2142
|
+
* Manual load
|
|
2143
|
+
*/
|
|
2144
|
+
load: () => Promise<void>;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* 搜索表单配置
|
|
2149
|
+
*/
|
|
2150
|
+
export declare const searchFormSchema: FormSchema[];
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* 导出查询方案 API 实例
|
|
2154
|
+
*/
|
|
2155
|
+
export declare const searchPlanApi: {
|
|
2156
|
+
findAllByResourceid: (data: any) => Promise<any>;
|
|
2157
|
+
findSearchPlanColsByPlanId: (data: any) => Promise<any>;
|
|
2158
|
+
insert: (data: any) => Promise<any>;
|
|
2159
|
+
update: (data: any) => Promise<any>;
|
|
2160
|
+
del: (data: any) => Promise<any>;
|
|
2161
|
+
findDefSearchPlan: (data: any) => Promise<any>;
|
|
2162
|
+
};
|
|
2163
|
+
|
|
2164
|
+
export declare interface SelectOption {
|
|
2165
|
+
label: string;
|
|
2166
|
+
value: string;
|
|
2167
|
+
cArea?: string[];
|
|
2168
|
+
cMeta?: Record<string, any>;
|
|
2169
|
+
defaultMeta?: string;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
export declare interface SelectOptions extends Record<string, SelectOption[]> {
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Select 选项缓存管理器
|
|
2177
|
+
* Select options cache manager
|
|
2178
|
+
* @description 统一管理所有 Select 的选项加载和缓存,支持请求去重
|
|
2179
|
+
* @description Unified management of all Select option loading and caching with request deduplication
|
|
2180
|
+
*/
|
|
2181
|
+
declare class SelectOptionsManager {
|
|
2182
|
+
/**
|
|
2183
|
+
* 选项缓存
|
|
2184
|
+
* Options cache
|
|
2185
|
+
* @description 缓存已加载的选项数据
|
|
2186
|
+
* @description Cache loaded option data
|
|
2187
|
+
*/
|
|
2188
|
+
private readonly cache;
|
|
2189
|
+
/**
|
|
2190
|
+
* 加载中的 Promise(避免重复请求)
|
|
2191
|
+
* Loading Promises (avoid duplicate requests)
|
|
2192
|
+
* @description 当多个组件同时加载相同字典时,共享同一个 Promise
|
|
2193
|
+
* @description When multiple components load the same dictionary simultaneously, share the same Promise
|
|
2194
|
+
*/
|
|
2195
|
+
private readonly loadingPromises;
|
|
2196
|
+
/**
|
|
2197
|
+
* 批量加载选项(带缓存和去重)
|
|
2198
|
+
* Batch load options (with cache and deduplication)
|
|
2199
|
+
* @param numbList - 字典编码列表
|
|
2200
|
+
* @param fieldMapping - 字段映射配置
|
|
2201
|
+
* @param forceReload - 是否强制刷新(忽略缓存)
|
|
2202
|
+
* @returns 选项映射表 { dictCode: options }
|
|
2203
|
+
*/
|
|
2204
|
+
loadOptions(numbList: (string | number)[], fieldMapping?: SelectFieldMapping, forceReload?: boolean): Promise<Record<string, SelectOption_2[]>>;
|
|
2205
|
+
/**
|
|
2206
|
+
* 获取单个字典的选项(从缓存)
|
|
2207
|
+
* Get single dictionary options (from cache)
|
|
2208
|
+
* @param dictCode - 字典编码
|
|
2209
|
+
* @returns 选项数组
|
|
2210
|
+
*/
|
|
2211
|
+
getOptions(dictCode: string | number): SelectOption_2[];
|
|
2212
|
+
/**
|
|
2213
|
+
* 清除指定字典的缓存
|
|
2214
|
+
* Clear cache for specified dictionary
|
|
2215
|
+
* @param dictCode - 字典编码(可选,不传则清除所有)
|
|
2216
|
+
*/
|
|
2217
|
+
clearCache(dictCode?: string | number): void;
|
|
2218
|
+
/**
|
|
2219
|
+
* 检查字典是否已缓存
|
|
2220
|
+
* Check if dictionary is cached
|
|
2221
|
+
* @param dictCode - 字典编码
|
|
2222
|
+
* @returns 是否已缓存
|
|
2223
|
+
*/
|
|
2224
|
+
hasCache(dictCode: string | number): boolean;
|
|
2225
|
+
/**
|
|
2226
|
+
* 获取缓存大小
|
|
2227
|
+
* Get cache size
|
|
2228
|
+
* @returns 缓存的字典数量
|
|
2229
|
+
*/
|
|
2230
|
+
getCacheSize(): number;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
export declare const selectOptionsManager: SelectOptionsManager;
|
|
2234
|
+
|
|
2235
|
+
/**
|
|
2236
|
+
* 初始化业务表单配置
|
|
2237
|
+
*
|
|
2238
|
+
* @description
|
|
2239
|
+
* 在应用入口调用此函数,初始化表单相关的业务配置。
|
|
2240
|
+
* 传入的配置会与默认配置合并,自定义配置优先。
|
|
2241
|
+
*
|
|
2242
|
+
* @example
|
|
2243
|
+
* ```typescript
|
|
2244
|
+
* // apps/web/src/bootstrap.ts
|
|
2245
|
+
* import { setupBusinessForm } from '@sunny-base-web/effects';
|
|
2246
|
+
*
|
|
2247
|
+
* // 方式1:使用默认配置(适用于标准业务系统)
|
|
2248
|
+
* setupBusinessForm();
|
|
2249
|
+
*
|
|
2250
|
+
* // 方式2:覆盖部分配置
|
|
2251
|
+
* setupBusinessForm({
|
|
2252
|
+
* config: {
|
|
2253
|
+
* businessSearchAdapter: {
|
|
2254
|
+
* // 只覆盖 loadConfig,search 仍使用默认实现
|
|
2255
|
+
* loadConfig: async (cNum) => {
|
|
2256
|
+
* return myCustomApi.loadConfig(cNum);
|
|
2257
|
+
* },
|
|
2258
|
+
* },
|
|
2259
|
+
* },
|
|
2260
|
+
* });
|
|
2261
|
+
*
|
|
2262
|
+
* // 方式3:完全自定义(适用于非标准业务系统)
|
|
2263
|
+
* setupBusinessForm({
|
|
2264
|
+
* config: {
|
|
2265
|
+
* businessSearchAdapter: {
|
|
2266
|
+
* loadConfig: async (cNum) => {
|
|
2267
|
+
* const res = await myApi.getConfig(cNum);
|
|
2268
|
+
* // 完全自定义转换逻辑
|
|
2269
|
+
* return {
|
|
2270
|
+
* title: res.title,
|
|
2271
|
+
* formSchema: res.fields,
|
|
2272
|
+
* tableColumns: res.columns,
|
|
2273
|
+
* };
|
|
2274
|
+
* },
|
|
2275
|
+
* search: async (params) => {
|
|
2276
|
+
* const res = await myApi.search(params);
|
|
2277
|
+
* return {
|
|
2278
|
+
* records: res.data,
|
|
2279
|
+
* total: res.count,
|
|
2280
|
+
* };
|
|
2281
|
+
* },
|
|
2282
|
+
* },
|
|
2283
|
+
* },
|
|
2284
|
+
* defineRules: {
|
|
2285
|
+
* phone: (value) => /^1[3-9]\d{9}$/.test(value) || '请输入正确的手机号',
|
|
2286
|
+
* },
|
|
2287
|
+
* });
|
|
2288
|
+
* ```
|
|
2289
|
+
*/
|
|
2290
|
+
export declare function setupBusinessForm(options?: SetupBusinessFormOptions): void;
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* setupBusinessForm 选项类型
|
|
2294
|
+
*/
|
|
2295
|
+
export declare interface SetupBusinessFormOptions {
|
|
2296
|
+
/**
|
|
2297
|
+
* 自定义配置(会与默认配置合并,自定义配置优先)
|
|
2298
|
+
*/
|
|
2299
|
+
config?: Partial<FormCommonConfig>;
|
|
2300
|
+
/**
|
|
2301
|
+
* 自定义验证规则
|
|
2302
|
+
*/
|
|
2303
|
+
defineRules?: Record<string, any>;
|
|
2304
|
+
}
|
|
2305
|
+
|
|
2306
|
+
export declare const sfggOpts: SelectOption[];
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* SSE模块
|
|
2310
|
+
*/
|
|
2311
|
+
declare class SSE {
|
|
2312
|
+
private client;
|
|
2313
|
+
constructor(client: RequestClient);
|
|
2314
|
+
postSSE(url: string, data?: any, requestOptions?: SseRequestOptions): Promise<void>;
|
|
2315
|
+
/**
|
|
2316
|
+
* SSE请求方法
|
|
2317
|
+
* @param url - 请求URL
|
|
2318
|
+
* @param data - 请求数据
|
|
2319
|
+
* @param requestOptions - SSE请求选项
|
|
2320
|
+
*/
|
|
2321
|
+
requestSSE(url: string, data?: any, requestOptions?: SseRequestOptions): Promise<void>;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* SSE 请求选项
|
|
2326
|
+
*/
|
|
2327
|
+
export declare interface SseRequestOptions extends RequestInit {
|
|
2328
|
+
onMessage?: (message: string) => void;
|
|
2329
|
+
onEnd?: () => void;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* 系统设置项
|
|
2334
|
+
*/
|
|
2335
|
+
export declare interface SysSettingItem {
|
|
2336
|
+
cNum: string;
|
|
2337
|
+
cValue: string;
|
|
2338
|
+
nickName?: string;
|
|
2339
|
+
type?: string;
|
|
2340
|
+
hintMsg?: string;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
export declare const systemOpts: Record<string, SelectOption[]>;
|
|
2344
|
+
|
|
2345
|
+
export declare const SystemSetting: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2346
|
+
|
|
2347
|
+
/**
|
|
2348
|
+
* 系统设置类型定义
|
|
2349
|
+
*/
|
|
2350
|
+
/**
|
|
2351
|
+
* 系统设置表单数据
|
|
2352
|
+
*/
|
|
2353
|
+
export declare interface SystemSettingForm {
|
|
2354
|
+
/** 初始密码 */
|
|
2355
|
+
initialPassword: string;
|
|
2356
|
+
/** 弱密码列表 */
|
|
2357
|
+
weakPasswords: string[];
|
|
2358
|
+
/** 子级菜单图标显示 */
|
|
2359
|
+
showSubMenuIcon: boolean;
|
|
2360
|
+
/** 智能体是否显示 */
|
|
2361
|
+
showAgent: boolean;
|
|
2362
|
+
/** 智能体地址 */
|
|
2363
|
+
agentUrl: string;
|
|
2364
|
+
/** 智能体 Token */
|
|
2365
|
+
agentToken: string;
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
declare interface TabConfig {
|
|
2369
|
+
title: string;
|
|
2370
|
+
type: 'grid' | 'form';
|
|
2371
|
+
gridConfig?: {
|
|
2372
|
+
columns: VxeGridProps['columns'];
|
|
2373
|
+
editRules: any;
|
|
2374
|
+
toolbarButtons?: Array<{
|
|
2375
|
+
code: string;
|
|
2376
|
+
name: string;
|
|
2377
|
+
}>;
|
|
2378
|
+
};
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* 表格列配置
|
|
2383
|
+
*/
|
|
2384
|
+
export declare const tableColumns: VxeGridProps<DataDictionaryVO>['columns'];
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* 表格工具栏按钮配置
|
|
2388
|
+
*/
|
|
2389
|
+
export declare const tableToolbarButtons: {
|
|
2390
|
+
code: string;
|
|
2391
|
+
name: string;
|
|
2392
|
+
}[];
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* 标签页配置
|
|
2396
|
+
*/
|
|
2397
|
+
export declare const tabsConfig: ({
|
|
2398
|
+
title: string;
|
|
2399
|
+
type: string;
|
|
2400
|
+
gridConfig: {
|
|
2401
|
+
columns: VxeGridPropTypes.Columns<MetaItem> | undefined;
|
|
2402
|
+
editRules: {
|
|
2403
|
+
key: {
|
|
2404
|
+
required: boolean;
|
|
2405
|
+
message: string;
|
|
2406
|
+
}[];
|
|
2407
|
+
};
|
|
2408
|
+
toolbarButtons: {
|
|
2409
|
+
code: string;
|
|
2410
|
+
name: string;
|
|
2411
|
+
}[];
|
|
2412
|
+
};
|
|
2413
|
+
} | {
|
|
2414
|
+
title: string;
|
|
2415
|
+
type: string;
|
|
2416
|
+
gridConfig: {
|
|
2417
|
+
columns: VxeGridPropTypes.Columns<any>;
|
|
2418
|
+
editRules: {};
|
|
2419
|
+
toolbarButtons: never[];
|
|
2420
|
+
};
|
|
2421
|
+
})[];
|
|
2422
|
+
|
|
2423
|
+
/** useForm 的默认配置,外部可 import 后进行覆盖/合并 */
|
|
2424
|
+
export declare const USE_FORM_DEFAULTS: Partial<SunnyFormProps>;
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* BusinessSearchModal Composable
|
|
2428
|
+
*
|
|
2429
|
+
* 复用 BusinessSearch 的 cNum 逻辑,直接驱动 SunnySearchModal。
|
|
2430
|
+
* 通过全局配置的 businessSearchAdapter 加载后端配置并执行搜索。
|
|
2431
|
+
*/
|
|
2432
|
+
export declare function useBusinessSearchModal(options: UseBusinessSearchModalOptions): UseBusinessSearchModalReturn;
|
|
2433
|
+
|
|
2434
|
+
export declare interface UseBusinessSearchModalOptions {
|
|
2435
|
+
/** 业务编码,必填 */
|
|
2436
|
+
cNum: string;
|
|
2437
|
+
/** 字段映射 */
|
|
2438
|
+
fieldNames?: {
|
|
2439
|
+
label?: string;
|
|
2440
|
+
value?: string;
|
|
2441
|
+
desc?: string;
|
|
2442
|
+
};
|
|
2443
|
+
/** 是否多选 */
|
|
2444
|
+
multiple?: boolean;
|
|
2445
|
+
/** 表单默认值,打开弹窗时自动填充到搜索表单 */
|
|
2446
|
+
defaultModel?: Record<string, any>;
|
|
2447
|
+
/** 确认选择回调 */
|
|
2448
|
+
onConfirm?: (rows: any[]) => void;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
export declare interface UseBusinessSearchModalReturn {
|
|
2452
|
+
visible: Ref<boolean>;
|
|
2453
|
+
loading: Ref<boolean>;
|
|
2454
|
+
modalProps: ComputedRef<Record<string, any>>;
|
|
2455
|
+
open: () => Promise<void>;
|
|
2456
|
+
handleConfirm: (rows: any[]) => void;
|
|
2457
|
+
selectedValues: ReturnType<typeof computed<any[]>>;
|
|
2458
|
+
setSelectedValues: (val: any[]) => void;
|
|
2459
|
+
/** 将后端字符串值转换为对象数组格式 */
|
|
2460
|
+
transformToTableFormat: (row: Record<string, any>, field: string, displayField?: string) => void;
|
|
2461
|
+
/** 将对象数组转换回后端字符串格式 */
|
|
2462
|
+
transformToStorageFormat: (row: Record<string, any>, field: string, displayField?: string) => void;
|
|
2463
|
+
}
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* Composition API Hook: 获取全局配置
|
|
2467
|
+
* 在组件 setup() 中调用此方法获取配置信息
|
|
2468
|
+
*
|
|
2469
|
+
* @returns EffectsConfig 配置对象
|
|
2470
|
+
*/
|
|
2471
|
+
export declare const useEffectsConfig: () => EffectsConfig;
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* 收藏功能 Composable
|
|
2475
|
+
* 封装收藏相关的 API 调用和 Store 更新逻辑
|
|
2476
|
+
*/
|
|
2477
|
+
export declare function useFavorite(): {
|
|
2478
|
+
favoriteStore: Store<"core-favorite", FavoriteState, {
|
|
2479
|
+
hasFavorites: (state: {
|
|
2480
|
+
favorites: {
|
|
2481
|
+
nResourceid: number;
|
|
2482
|
+
cModname: string;
|
|
2483
|
+
cIcon?: string | undefined;
|
|
2484
|
+
cUrl?: string | undefined;
|
|
2485
|
+
cCreateuser?: string | undefined;
|
|
2486
|
+
}[];
|
|
2487
|
+
loading: boolean;
|
|
2488
|
+
adding: boolean;
|
|
2489
|
+
} & PiniaCustomStateProperties<FavoriteState>) => boolean;
|
|
2490
|
+
isFavorited: (state: {
|
|
2491
|
+
favorites: {
|
|
2492
|
+
nResourceid: number;
|
|
2493
|
+
cModname: string;
|
|
2494
|
+
cIcon?: string | undefined;
|
|
2495
|
+
cUrl?: string | undefined;
|
|
2496
|
+
cCreateuser?: string | undefined;
|
|
2497
|
+
}[];
|
|
2498
|
+
loading: boolean;
|
|
2499
|
+
adding: boolean;
|
|
2500
|
+
} & PiniaCustomStateProperties<FavoriteState>) => (nResourceid: number) => boolean;
|
|
2501
|
+
}, {
|
|
2502
|
+
setFavorites(favorites: FavoriteItem[]): void;
|
|
2503
|
+
addFavoriteToList(item: FavoriteItem): void;
|
|
2504
|
+
removeFavoriteFromList(nResourceid: number): void;
|
|
2505
|
+
setLoading(loading: boolean): void;
|
|
2506
|
+
setAdding(adding: boolean): void;
|
|
2507
|
+
resetState(): void;
|
|
2508
|
+
}>;
|
|
2509
|
+
findResourceIdByPath: (path: string) => number | null;
|
|
2510
|
+
fetchFavorites: () => Promise<void>;
|
|
2511
|
+
addCurrentPage: (currentPath: string) => Promise<{
|
|
2512
|
+
success: boolean;
|
|
2513
|
+
message: string;
|
|
2514
|
+
}>;
|
|
2515
|
+
removeFavoriteItem: (nResourceid: number) => Promise<{
|
|
2516
|
+
success: boolean;
|
|
2517
|
+
message: string;
|
|
2518
|
+
}>;
|
|
2519
|
+
};
|
|
2520
|
+
|
|
2521
|
+
export declare function useForm({ schema, objectToValueFields, handleValuesChange, ...restProps }?: UseFormOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2522
|
+
[key: string]: any;
|
|
2523
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi];
|
|
2524
|
+
|
|
2525
|
+
declare interface UseFormOptions extends Partial<SunnyFormProps> {
|
|
2526
|
+
schema?: any[];
|
|
2527
|
+
objectToValueFields?: string[];
|
|
2528
|
+
/**
|
|
2529
|
+
* 表单值变化时的回调
|
|
2530
|
+
* Callback when form values change
|
|
2531
|
+
*/
|
|
2532
|
+
handleValuesChange?: (values: Record<string, any>, changedFields: string[]) => void;
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
export declare function useFormTable({ formSchema, tableColumns, tableEditRules, tableToolbarButtons, objectToValueFields }?: UseFormTableOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2536
|
+
[key: string]: any;
|
|
2537
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2];
|
|
2538
|
+
|
|
2539
|
+
declare interface UseFormTableOptions {
|
|
2540
|
+
formSchema?: any[];
|
|
2541
|
+
tableColumns?: VxeGridProps['columns'];
|
|
2542
|
+
tableEditRules?: any;
|
|
2543
|
+
tableToolbarButtons?: Array<{
|
|
2544
|
+
code: string;
|
|
2545
|
+
name: string;
|
|
2546
|
+
}>;
|
|
2547
|
+
objectToValueFields?: string[];
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
export declare function useFormTabs({ formSchema, tabsConfig, objectToValueFields }?: UseFormTabsOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2551
|
+
[key: string]: any;
|
|
2552
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, ShallowRef<any[], any[]>, Ref<any[], any[]>];
|
|
2553
|
+
|
|
2554
|
+
declare interface UseFormTabsOptions {
|
|
2555
|
+
formSchema?: any[];
|
|
2556
|
+
tabsConfig?: TabConfig[];
|
|
2557
|
+
objectToValueFields?: string[];
|
|
2558
|
+
}
|
|
2559
|
+
|
|
2560
|
+
export declare function useGlobalLoading(): UseGlobalLoadingReturn;
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* 全局加载动画控制 Composable
|
|
2564
|
+
* @description 提供编程式控制全局加载动画的 API
|
|
2565
|
+
* @example
|
|
2566
|
+
* ```ts
|
|
2567
|
+
* const { start, stop, withLoading } = useGlobalLoading();
|
|
2568
|
+
*
|
|
2569
|
+
* // 手动控制
|
|
2570
|
+
* start();
|
|
2571
|
+
* await fetchData();
|
|
2572
|
+
* stop();
|
|
2573
|
+
*
|
|
2574
|
+
* // 自动包装
|
|
2575
|
+
* await withLoading(fetchUserData());
|
|
2576
|
+
* ```
|
|
2577
|
+
*/
|
|
2578
|
+
export declare interface UseGlobalLoadingReturn {
|
|
2579
|
+
/**
|
|
2580
|
+
* 显示全局加载动画
|
|
2581
|
+
*/
|
|
2582
|
+
start: () => void;
|
|
2583
|
+
/**
|
|
2584
|
+
* 隐藏全局加载动画
|
|
2585
|
+
*/
|
|
2586
|
+
stop: () => void;
|
|
2587
|
+
/**
|
|
2588
|
+
* 包装异步函数,自动显示/隐藏加载
|
|
2589
|
+
* @param fn - 异步函数
|
|
2590
|
+
* @example
|
|
2591
|
+
* ```ts
|
|
2592
|
+
* const { withLoading } = useGlobalLoading();
|
|
2593
|
+
* await withLoading(fetchUserData());
|
|
2594
|
+
* ```
|
|
2595
|
+
*/
|
|
2596
|
+
withLoading: <T>(fn: Promise<T>) => Promise<T>;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* 列表页通用配置
|
|
2601
|
+
* @param options 配置选项
|
|
2602
|
+
*/
|
|
2603
|
+
export declare function useList<T>(options: {
|
|
2604
|
+
/**
|
|
2605
|
+
* 表单配置
|
|
2606
|
+
*/
|
|
2607
|
+
searchFormSchema: any[];
|
|
2608
|
+
/**
|
|
2609
|
+
* 表格列配置
|
|
2610
|
+
*/
|
|
2611
|
+
tableColumns: any[];
|
|
2612
|
+
/**
|
|
2613
|
+
* 表格数据类型
|
|
2614
|
+
*/
|
|
2615
|
+
dataType?: new () => T;
|
|
2616
|
+
/**
|
|
2617
|
+
* 资源配置
|
|
2618
|
+
*/
|
|
2619
|
+
resourceConfig: {
|
|
2620
|
+
resourceId: string;
|
|
2621
|
+
nResourceid: number;
|
|
2622
|
+
/**
|
|
2623
|
+
* 模块编号
|
|
2624
|
+
*/
|
|
2625
|
+
cModnumb?: string;
|
|
2626
|
+
};
|
|
2627
|
+
/**
|
|
2628
|
+
* 表格查询函数
|
|
2629
|
+
*/
|
|
2630
|
+
queryFunction: (params: any) => Promise<any>;
|
|
2631
|
+
/**
|
|
2632
|
+
* 表格事件配置
|
|
2633
|
+
*/
|
|
2634
|
+
gridEvents?: any;
|
|
2635
|
+
/**
|
|
2636
|
+
* 树形配置
|
|
2637
|
+
*/
|
|
2638
|
+
treeConfig?: any;
|
|
2639
|
+
/**
|
|
2640
|
+
* 树形表格懒加载方法
|
|
2641
|
+
*/
|
|
2642
|
+
loadMethod?: (row: any) => Promise<any[]>;
|
|
2643
|
+
/**
|
|
2644
|
+
* 对象转值字段列表
|
|
2645
|
+
* 用于将 BusinessSearch 等返回的对象数组转换为值字符串
|
|
2646
|
+
*/
|
|
2647
|
+
objectToValueFields?: string[];
|
|
2648
|
+
/**
|
|
2649
|
+
* 表单字段映射到时间格式
|
|
2650
|
+
*/
|
|
2651
|
+
fieldMappingTime?: any[];
|
|
2652
|
+
/**
|
|
2653
|
+
* 表单字段数组映射字符串配置
|
|
2654
|
+
*/
|
|
2655
|
+
arrayToStringFields?: any[];
|
|
2656
|
+
/**
|
|
2657
|
+
* 是否开启懒加载
|
|
2658
|
+
*/
|
|
2659
|
+
lazy?: boolean;
|
|
2660
|
+
/**
|
|
2661
|
+
* 是否自动加载数据
|
|
2662
|
+
*/
|
|
2663
|
+
autoLoad?: boolean;
|
|
2664
|
+
}): {
|
|
2665
|
+
QueryForm: DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
|
|
2666
|
+
[key: string]: any;
|
|
2667
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2668
|
+
formApi: FormApi;
|
|
2669
|
+
Grid: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
|
|
2670
|
+
gridApi: VxeGridApi;
|
|
2671
|
+
submitting: Ref<boolean, boolean>;
|
|
2672
|
+
handleGlobalEnter: (e: KeyboardEvent) => void;
|
|
2673
|
+
searchPlanList: Ref<never[], never[]>;
|
|
2674
|
+
currentSearchPlan: Ref<undefined, undefined>;
|
|
2675
|
+
resourceId: string;
|
|
2676
|
+
nResourceid: number;
|
|
2677
|
+
resourceButtons: Ref<any[], any[]>;
|
|
2678
|
+
handleSearchPlanSearch: (formValues: any) => Promise<void>;
|
|
2679
|
+
handleDefaultPlanLoaded: (formValues: any) => Promise<void>;
|
|
2680
|
+
fetchResourceConfig: () => Promise<void>;
|
|
2681
|
+
};
|
|
2682
|
+
|
|
2683
|
+
/**
|
|
2684
|
+
* 权限选项加载 Hook
|
|
2685
|
+
* Permission options loading Hook
|
|
2686
|
+
* @description 批量加载多个权限选项,自动缓存和去重
|
|
2687
|
+
* @description Batch load multiple permission options with automatic caching and deduplication
|
|
2688
|
+
*
|
|
2689
|
+
* @param params - Hook 参数
|
|
2690
|
+
* @returns 选项数据和加载方法
|
|
2691
|
+
*
|
|
2692
|
+
* @example
|
|
2693
|
+
* ```ts
|
|
2694
|
+
* // 基础用法
|
|
2695
|
+
* const { optionsMap } = usePermissionOptions({
|
|
2696
|
+
* numbList: ['FACTORY', 'COMPANY']
|
|
2697
|
+
* });
|
|
2698
|
+
*
|
|
2699
|
+
* // 在模板中使用
|
|
2700
|
+
* <Select :options="optionsMap.value['FACTORY']" />
|
|
2701
|
+
*
|
|
2702
|
+
* // 自定义字段映射
|
|
2703
|
+
* const { optionsMap } = usePermissionOptions({
|
|
2704
|
+
* numbList: ['FACTORY'],
|
|
2705
|
+
* fieldMapping: {
|
|
2706
|
+
* label: ['cExresnum', 'cExresname'], // 数组格式自动拼接
|
|
2707
|
+
* value: 'cExresnum'
|
|
2708
|
+
* }
|
|
2709
|
+
* });
|
|
2710
|
+
*
|
|
2711
|
+
* // 手动加载
|
|
2712
|
+
* const { optionsMap, load } = usePermissionOptions({
|
|
2713
|
+
* numbList: ['FACTORY'],
|
|
2714
|
+
* immediate: false
|
|
2715
|
+
* });
|
|
2716
|
+
*
|
|
2717
|
+
* // 在需要时调用
|
|
2718
|
+
* await load();
|
|
2719
|
+
* ```
|
|
2720
|
+
*/
|
|
2721
|
+
export declare function usePermissionOptions(params: UsePermissionOptionsParams): UsePermissionOptionsReturn;
|
|
2722
|
+
|
|
2723
|
+
/**
|
|
2724
|
+
* Hook 参数
|
|
2725
|
+
* Hook parameters
|
|
2726
|
+
*/
|
|
2727
|
+
export declare interface UsePermissionOptionsParams {
|
|
2728
|
+
/**
|
|
2729
|
+
* 权限编码列表
|
|
2730
|
+
* Permission code list
|
|
2731
|
+
* @description 需要批量加载的权限编码
|
|
2732
|
+
* @description Permission codes to be batch loaded
|
|
2733
|
+
*/
|
|
2734
|
+
numbList: (string | number)[];
|
|
2735
|
+
/**
|
|
2736
|
+
* 字段映射配置
|
|
2737
|
+
* Field mapping configuration
|
|
2738
|
+
* @description 自定义 label 和 value 对应的后端字段名
|
|
2739
|
+
* @description Customize backend field names for label and value
|
|
2740
|
+
*/
|
|
2741
|
+
fieldMapping?: PermissionFieldMapping;
|
|
2742
|
+
/**
|
|
2743
|
+
* 是否立即加载
|
|
2744
|
+
* Whether to load immediately
|
|
2745
|
+
* @default true
|
|
2746
|
+
* @description 设置为 false 时,需要手动调用 load() 方法
|
|
2747
|
+
* @description When set to false, need to manually call load() method
|
|
2748
|
+
*/
|
|
2749
|
+
immediate?: boolean;
|
|
2750
|
+
/**
|
|
2751
|
+
* 是否强制刷新
|
|
2752
|
+
* Whether to force reload
|
|
2753
|
+
* @default false
|
|
2754
|
+
* @description 设置为 true 时,忽略缓存重新加载
|
|
2755
|
+
* @description When set to true, ignore cache and reload
|
|
2756
|
+
*/
|
|
2757
|
+
forceReload?: boolean;
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2760
|
+
/**
|
|
2761
|
+
* Hook 返回值
|
|
2762
|
+
* Hook return value
|
|
2763
|
+
*/
|
|
2764
|
+
export declare interface UsePermissionOptionsReturn {
|
|
2765
|
+
/**
|
|
2766
|
+
* 选项映射表
|
|
2767
|
+
* Options map
|
|
2768
|
+
* @description 响应式的选项数据,按权限编码分组
|
|
2769
|
+
* @description Reactive option data, grouped by permission code
|
|
2770
|
+
* @example
|
|
2771
|
+
* ```ts
|
|
2772
|
+
* optionsMap.value['FACTORY'] // 获取 FACTORY 权限的选项
|
|
2773
|
+
* ```
|
|
2774
|
+
*/
|
|
2775
|
+
optionsMap: Ref<Record<string, SelectOption_2[]>>;
|
|
2776
|
+
/**
|
|
2777
|
+
* 加载状态
|
|
2778
|
+
* Loading state
|
|
2779
|
+
*/
|
|
2780
|
+
loading: Ref<boolean>;
|
|
2781
|
+
/**
|
|
2782
|
+
* 手动加载
|
|
2783
|
+
* Manual load
|
|
2784
|
+
* @description 手动触发加载选项
|
|
2785
|
+
* @description Manually trigger loading options
|
|
2786
|
+
*/
|
|
2787
|
+
load: () => Promise<void>;
|
|
2788
|
+
/**
|
|
2789
|
+
* 获取单个权限的选项
|
|
2790
|
+
* Get single permission options
|
|
2791
|
+
* @param code - 权限编码
|
|
2792
|
+
* @returns 选项数组
|
|
2793
|
+
*/
|
|
2794
|
+
getOptions: (code: string | number) => SelectOption_2[];
|
|
2795
|
+
/**
|
|
2796
|
+
* 刷新指定权限的选项
|
|
2797
|
+
* Reload specific permission options
|
|
2798
|
+
* @param code - 权限编码
|
|
2799
|
+
*/
|
|
2800
|
+
reload: (code: string | number) => Promise<void>;
|
|
2801
|
+
/**
|
|
2802
|
+
* 清除指定权限的缓存
|
|
2803
|
+
* Clear cache for specific permission
|
|
2804
|
+
* @param code - 权限编码(可选)
|
|
2805
|
+
*/
|
|
2806
|
+
clearCache: (code?: string | number) => void;
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2809
|
+
export declare const UserQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
2810
|
+
UserAddRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
2811
|
+
onSuccess?: (() => any) | undefined;
|
|
2812
|
+
}>, {
|
|
2813
|
+
addInit: () => void;
|
|
2814
|
+
editInit: (record: any) => Promise<void>;
|
|
2815
|
+
detailInit: (record: any) => void;
|
|
2816
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2817
|
+
success: () => any;
|
|
2818
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2819
|
+
P: {};
|
|
2820
|
+
B: {};
|
|
2821
|
+
D: {};
|
|
2822
|
+
C: {};
|
|
2823
|
+
M: {};
|
|
2824
|
+
Defaults: {};
|
|
2825
|
+
}, Readonly<{}> & Readonly<{
|
|
2826
|
+
onSuccess?: (() => any) | undefined;
|
|
2827
|
+
}>, {
|
|
2828
|
+
addInit: () => void;
|
|
2829
|
+
editInit: (record: any) => Promise<void>;
|
|
2830
|
+
detailInit: (record: any) => void;
|
|
2831
|
+
}, {}, {}, {}, {}> | null;
|
|
2832
|
+
UserAuthRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
2833
|
+
onSuccess?: (() => any) | undefined;
|
|
2834
|
+
}>, {
|
|
2835
|
+
openInit: (record: any) => Promise<void>;
|
|
2836
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2837
|
+
success: () => any;
|
|
2838
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2839
|
+
UserChooseRoleRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
2840
|
+
onChooseRoleEmit?: ((...args: any[]) => any) | undefined;
|
|
2841
|
+
}>, {
|
|
2842
|
+
openInit: () => void;
|
|
2843
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2844
|
+
chooseRoleEmit: (...args: any[]) => void;
|
|
2845
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2846
|
+
P: {};
|
|
2847
|
+
B: {};
|
|
2848
|
+
D: {};
|
|
2849
|
+
C: {};
|
|
2850
|
+
M: {};
|
|
2851
|
+
Defaults: {};
|
|
2852
|
+
}, Readonly<{}> & Readonly<{
|
|
2853
|
+
onChooseRoleEmit?: ((...args: any[]) => any) | undefined;
|
|
2854
|
+
}>, {
|
|
2855
|
+
openInit: () => void;
|
|
2856
|
+
}, {}, {}, {}, {}> | null;
|
|
2857
|
+
}, any, ComponentProvideOptions, {
|
|
2858
|
+
P: {};
|
|
2859
|
+
B: {};
|
|
2860
|
+
D: {};
|
|
2861
|
+
C: {};
|
|
2862
|
+
M: {};
|
|
2863
|
+
Defaults: {};
|
|
2864
|
+
}, Readonly<{}> & Readonly<{
|
|
2865
|
+
onSuccess?: (() => any) | undefined;
|
|
2866
|
+
}>, {
|
|
2867
|
+
openInit: (record: any) => Promise<void>;
|
|
2868
|
+
}, {}, {}, {}, {}> | null;
|
|
2869
|
+
UserBindMacRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
2870
|
+
onSuccess?: (() => any) | undefined;
|
|
2871
|
+
}>, {
|
|
2872
|
+
openInit: (record: any) => Promise<void>;
|
|
2873
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2874
|
+
success: () => any;
|
|
2875
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2876
|
+
P: {};
|
|
2877
|
+
B: {};
|
|
2878
|
+
D: {};
|
|
2879
|
+
C: {};
|
|
2880
|
+
M: {};
|
|
2881
|
+
Defaults: {};
|
|
2882
|
+
}, Readonly<{}> & Readonly<{
|
|
2883
|
+
onSuccess?: (() => any) | undefined;
|
|
2884
|
+
}>, {
|
|
2885
|
+
openInit: (record: any) => Promise<void>;
|
|
2886
|
+
}, {}, {}, {}, {}> | null;
|
|
2887
|
+
UserOtherAuthRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
2888
|
+
onSuccess?: (() => any) | undefined;
|
|
2889
|
+
}>, {
|
|
2890
|
+
openInit: (record: any) => Promise<void>;
|
|
2891
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2892
|
+
success: () => any;
|
|
2893
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2894
|
+
P: {};
|
|
2895
|
+
B: {};
|
|
2896
|
+
D: {};
|
|
2897
|
+
C: {};
|
|
2898
|
+
M: {};
|
|
2899
|
+
Defaults: {};
|
|
2900
|
+
}, Readonly<{}> & Readonly<{
|
|
2901
|
+
onSuccess?: (() => any) | undefined;
|
|
2902
|
+
}>, {
|
|
2903
|
+
openInit: (record: any) => Promise<void>;
|
|
2904
|
+
}, {}, {}, {}, {}> | null;
|
|
2905
|
+
}, HTMLDivElement>;
|
|
2906
|
+
|
|
2907
|
+
export declare const userSfqyOpts: SelectOption[];
|
|
2908
|
+
|
|
2909
|
+
/**
|
|
2910
|
+
* 处理声明式 Schema 的选项加载
|
|
2911
|
+
* Process declarative Schema options loading
|
|
2912
|
+
*
|
|
2913
|
+
* @param schema - 表单 Schema
|
|
2914
|
+
* @param immediate - 是否立即加载
|
|
2915
|
+
* @returns 增强后的 Schema 和加载方法
|
|
2916
|
+
*
|
|
2917
|
+
* @example
|
|
2918
|
+
* ```typescript
|
|
2919
|
+
* // 在 config.ts 中声明式配置
|
|
2920
|
+
* export const searchFormSchema: FormSchema[] = [
|
|
2921
|
+
* {
|
|
2922
|
+
* fieldName: 'nZt',
|
|
2923
|
+
* component: 'Select',
|
|
2924
|
+
* selectOptions: {
|
|
2925
|
+
* dictCode: 'SFQY',
|
|
2926
|
+
* fieldMapping: { label: 'cName', value: 'cXuhao' }
|
|
2927
|
+
* }
|
|
2928
|
+
* }
|
|
2929
|
+
* ]
|
|
2930
|
+
*
|
|
2931
|
+
* // 在组件中使用
|
|
2932
|
+
* const { enhancedSchema, optionsMap } = useSchemaOptionsLoader(searchFormSchema);
|
|
2933
|
+
*
|
|
2934
|
+
* // 传递给 useList
|
|
2935
|
+
* useList({
|
|
2936
|
+
* searchFormSchema: enhancedSchema.value,
|
|
2937
|
+
* ...
|
|
2938
|
+
* })
|
|
2939
|
+
* ```
|
|
2940
|
+
*/
|
|
2941
|
+
export declare function useSchemaOptionsLoader(schema: FormSchema[] | Ref<FormSchema[]>, immediate?: boolean): SchemaOptionsLoaderReturn;
|
|
2942
|
+
|
|
2943
|
+
/**
|
|
2944
|
+
* 处理声明式 Schema 的权限选项加载
|
|
2945
|
+
* Process declarative Schema permission options loading
|
|
2946
|
+
*
|
|
2947
|
+
* @param schema - 表单 Schema
|
|
2948
|
+
* @param immediate - 是否立即加载
|
|
2949
|
+
* @returns 增强后的 Schema 和加载方法
|
|
2950
|
+
*
|
|
2951
|
+
* @example
|
|
2952
|
+
* ```typescript
|
|
2953
|
+
* // 在 config.ts 中声明式配置
|
|
2954
|
+
* export const searchFormSchema: FormSchema[] = [
|
|
2955
|
+
* {
|
|
2956
|
+
* fieldName: 'factory',
|
|
2957
|
+
* component: 'Select',
|
|
2958
|
+
* permissionOptions: {
|
|
2959
|
+
* code: 'FACTORY',
|
|
2960
|
+
* fieldMapping: { label: 'cName', value: 'cXuhao' }
|
|
2961
|
+
* }
|
|
2962
|
+
* }
|
|
2963
|
+
* ]
|
|
2964
|
+
*
|
|
2965
|
+
* // 在组件中使用
|
|
2966
|
+
* const { enhancedSchema } = useSchemaPermissionLoader(searchFormSchema);
|
|
2967
|
+
*
|
|
2968
|
+
* // 传递给 useList
|
|
2969
|
+
* useList({
|
|
2970
|
+
* searchFormSchema: enhancedSchema.value,
|
|
2971
|
+
* ...
|
|
2972
|
+
* })
|
|
2973
|
+
* ```
|
|
2974
|
+
*/
|
|
2975
|
+
export declare function useSchemaPermissionLoader(schema: FormSchema[] | Ref<FormSchema[]>, immediate?: boolean): SchemaPermissionLoaderReturn;
|
|
2976
|
+
|
|
2977
|
+
/**
|
|
2978
|
+
* 查询方案 API 实现
|
|
2979
|
+
* 所有模块通用的查询方案 API 配置
|
|
2980
|
+
*/
|
|
2981
|
+
export declare const useSearchPlanApi: () => {
|
|
2982
|
+
findAllByResourceid: (data: any) => Promise<any>;
|
|
2983
|
+
findSearchPlanColsByPlanId: (data: any) => Promise<any>;
|
|
2984
|
+
insert: (data: any) => Promise<any>;
|
|
2985
|
+
update: (data: any) => Promise<any>;
|
|
2986
|
+
del: (data: any) => Promise<any>;
|
|
2987
|
+
findDefSearchPlan: (data: any) => Promise<any>;
|
|
2988
|
+
};
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* Select 选项加载 Hook
|
|
2992
|
+
* Select options loading Hook
|
|
2993
|
+
* @description 批量加载多个字典选项,自动缓存和去重
|
|
2994
|
+
* @description Batch load multiple dictionary options with automatic caching and deduplication
|
|
2995
|
+
*
|
|
2996
|
+
* @param params - Hook 参数
|
|
2997
|
+
* @returns 选项数据和加载方法
|
|
2998
|
+
*
|
|
2999
|
+
* @example
|
|
3000
|
+
* ```ts
|
|
3001
|
+
* // 基础用法
|
|
3002
|
+
* const { optionsMap } = useSelectOptions({
|
|
3003
|
+
* numbList: ['SFQY', 'LANG']
|
|
3004
|
+
* });
|
|
3005
|
+
*
|
|
3006
|
+
* // 在 Schema 中使用
|
|
3007
|
+
* componentProps: {
|
|
3008
|
+
* options: optionsMap.value['SFQY']
|
|
3009
|
+
* }
|
|
3010
|
+
*
|
|
3011
|
+
* // 自定义字段映射
|
|
3012
|
+
* const { optionsMap } = useSelectOptions({
|
|
3013
|
+
* numbList: ['USER_STATUS'],
|
|
3014
|
+
* fieldMapping: {
|
|
3015
|
+
* label: 'statusName',
|
|
3016
|
+
* value: 'statusCode'
|
|
3017
|
+
* }
|
|
3018
|
+
* });
|
|
3019
|
+
*
|
|
3020
|
+
* // 手动加载
|
|
3021
|
+
* const { optionsMap, load } = useSelectOptions({
|
|
3022
|
+
* numbList: ['USER_LIST'],
|
|
3023
|
+
* immediate: false
|
|
3024
|
+
* });
|
|
3025
|
+
*
|
|
3026
|
+
* // 在需要时调用
|
|
3027
|
+
* await load();
|
|
3028
|
+
* ```
|
|
3029
|
+
*/
|
|
3030
|
+
export declare function useSelectOptions(params: UseSelectOptionsParams): UseSelectOptionsReturn;
|
|
3031
|
+
|
|
3032
|
+
/**
|
|
3033
|
+
* Hook 参数
|
|
3034
|
+
* Hook parameters
|
|
3035
|
+
*/
|
|
3036
|
+
export declare interface UseSelectOptionsParams {
|
|
3037
|
+
/**
|
|
3038
|
+
* 字典编码列表
|
|
3039
|
+
* Dictionary code list
|
|
3040
|
+
* @description 需要批量加载的字典编码
|
|
3041
|
+
* @description Dictionary codes to be batch loaded
|
|
3042
|
+
*/
|
|
3043
|
+
numbList: (string | number)[];
|
|
3044
|
+
/**
|
|
3045
|
+
* 字段映射配置
|
|
3046
|
+
* Field mapping configuration
|
|
3047
|
+
* @description 自定义 label 和 value 对应的后端字段名
|
|
3048
|
+
* @description Customize backend field names for label and value
|
|
3049
|
+
*/
|
|
3050
|
+
fieldMapping?: SelectFieldMapping;
|
|
3051
|
+
/**
|
|
3052
|
+
* 是否立即加载
|
|
3053
|
+
* Whether to load immediately
|
|
3054
|
+
* @default true
|
|
3055
|
+
* @description 设置为 false 时,需要手动调用 load() 方法
|
|
3056
|
+
* @description When set to false, need to manually call load() method
|
|
3057
|
+
*/
|
|
3058
|
+
immediate?: boolean;
|
|
3059
|
+
/**
|
|
3060
|
+
* 是否强制刷新
|
|
3061
|
+
* Whether to force reload
|
|
3062
|
+
* @default false
|
|
3063
|
+
* @description 设置为 true 时,忽略缓存重新加载
|
|
3064
|
+
* @description When set to true, ignore cache and reload
|
|
3065
|
+
*/
|
|
3066
|
+
forceReload?: boolean;
|
|
3067
|
+
}
|
|
3068
|
+
|
|
3069
|
+
/**
|
|
3070
|
+
* Hook 返回值
|
|
3071
|
+
* Hook return value
|
|
3072
|
+
*/
|
|
3073
|
+
export declare interface UseSelectOptionsReturn {
|
|
3074
|
+
/**
|
|
3075
|
+
* 选项映射表
|
|
3076
|
+
* Options map
|
|
3077
|
+
* @description 响应式的选项数据,按字典编码分组
|
|
3078
|
+
* @description Reactive option data, grouped by dictionary code
|
|
3079
|
+
* @example
|
|
3080
|
+
* ```ts
|
|
3081
|
+
* optionsMap.value['SFQY'] // 获取 SFQY 字典的选项
|
|
3082
|
+
* ```
|
|
3083
|
+
*/
|
|
3084
|
+
optionsMap: Ref<Record<string, SelectOption_2[]>>;
|
|
3085
|
+
/**
|
|
3086
|
+
* 加载状态
|
|
3087
|
+
* Loading state
|
|
3088
|
+
*/
|
|
3089
|
+
loading: Ref<boolean>;
|
|
3090
|
+
/**
|
|
3091
|
+
* 手动加载
|
|
3092
|
+
* Manual load
|
|
3093
|
+
* @description 手动触发加载选项
|
|
3094
|
+
* @description Manually trigger loading options
|
|
3095
|
+
*/
|
|
3096
|
+
load: () => Promise<void>;
|
|
3097
|
+
/**
|
|
3098
|
+
* 获取单个字典的选项
|
|
3099
|
+
* Get single dictionary options
|
|
3100
|
+
* @param dictCode - 字典编码
|
|
3101
|
+
* @returns 选项数组
|
|
3102
|
+
*/
|
|
3103
|
+
getOptions: (dictCode: string | number) => SelectOption_2[];
|
|
3104
|
+
/**
|
|
3105
|
+
* 刷新指定字典的选项
|
|
3106
|
+
* Reload specific dictionary options
|
|
3107
|
+
* @param dictCode - 字典编码
|
|
3108
|
+
*/
|
|
3109
|
+
reload: (dictCode: string | number) => Promise<void>;
|
|
3110
|
+
/**
|
|
3111
|
+
* 清除指定字典的缓存
|
|
3112
|
+
* Clear cache for specific dictionary
|
|
3113
|
+
* @param dictCode - 字典编码(可选)
|
|
3114
|
+
*/
|
|
3115
|
+
clearCache: (dictCode?: string | number) => void;
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
export declare function useTable({ columns, editRules, toolbarButtons, data, editable, editTrigger, editMode, height, gridId, gridEvents, }?: UseTableOptions): readonly [DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2 & {
|
|
3119
|
+
setColumns: (newColumns: any[]) => void;
|
|
3120
|
+
setToolbarButtons: (buttons: Array<{
|
|
3121
|
+
code: string;
|
|
3122
|
+
name: string;
|
|
3123
|
+
}>) => void;
|
|
3124
|
+
}];
|
|
3125
|
+
|
|
3126
|
+
declare interface UseTableOptions {
|
|
3127
|
+
/** 表格列配置 */
|
|
3128
|
+
columns?: VxeGridProps['columns'];
|
|
3129
|
+
/** 表格编辑规则 */
|
|
3130
|
+
editRules?: any;
|
|
3131
|
+
/** 工具栏按钮 */
|
|
3132
|
+
toolbarButtons?: Array<{
|
|
3133
|
+
code: string;
|
|
3134
|
+
name: string;
|
|
3135
|
+
}>;
|
|
3136
|
+
/** 表格数据 */
|
|
3137
|
+
data?: any[];
|
|
3138
|
+
/** 是否启用编辑,默认 false */
|
|
3139
|
+
editable?: boolean;
|
|
3140
|
+
/** 编辑触发方式 */
|
|
3141
|
+
editTrigger?: 'click' | 'dblclick';
|
|
3142
|
+
/** 编辑模式 */
|
|
3143
|
+
editMode?: 'row' | 'cell';
|
|
3144
|
+
/** 表格高度 */
|
|
3145
|
+
height?: string | number;
|
|
3146
|
+
/** 表格 ID */
|
|
3147
|
+
gridId?: string;
|
|
3148
|
+
/** 表格事件 */
|
|
3149
|
+
gridEvents?: Record<string, (...args: any[]) => any>;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3152
|
+
/**
|
|
3153
|
+
* 用户信息便捷访问 Hook
|
|
3154
|
+
*
|
|
3155
|
+
* 封装 userStore + accessStore,提供常用用户属性和 token 的 computed 快捷访问
|
|
3156
|
+
*
|
|
3157
|
+
* @example
|
|
3158
|
+
* const { code, name, token } = useUser()
|
|
3159
|
+
* console.log(code.value) // 'EMP001'
|
|
3160
|
+
* console.log(token.value) // 'eyJhbGci...'
|
|
3161
|
+
*/
|
|
3162
|
+
export declare function useUser(): UseUserReturn;
|
|
3163
|
+
|
|
3164
|
+
/**
|
|
3165
|
+
* 获取用户资源
|
|
3166
|
+
* @param cModnumb - 模块编号
|
|
3167
|
+
* @returns 资源按钮列表
|
|
3168
|
+
*/
|
|
3169
|
+
export declare function useUserResources(cModnumb: string): {
|
|
3170
|
+
loading: Ref<boolean, boolean>;
|
|
3171
|
+
resourceButtons: Ref< {
|
|
3172
|
+
[key: string]: any[];
|
|
3173
|
+
}, {
|
|
3174
|
+
[key: string]: any[];
|
|
3175
|
+
}>;
|
|
3176
|
+
fetchResources: () => Promise<void>;
|
|
3177
|
+
};
|
|
3178
|
+
|
|
3179
|
+
declare interface UseUserReturn {
|
|
3180
|
+
code: ComputedRef<string>;
|
|
3181
|
+
name: ComputedRef<string>;
|
|
3182
|
+
roles: ComputedRef<string[]>;
|
|
3183
|
+
isSuperAdmin: ComputedRef<boolean>;
|
|
3184
|
+
homePath: ComputedRef<string>;
|
|
3185
|
+
agent: ComputedRef<Record<string, any> | undefined>;
|
|
3186
|
+
userInfo: ComputedRef<any>;
|
|
3187
|
+
token: ComputedRef<string | null>;
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
/**
|
|
3191
|
+
* 弱密码项
|
|
3192
|
+
*/
|
|
3193
|
+
export declare interface WeakPasswordItem {
|
|
3194
|
+
id: string;
|
|
3195
|
+
password: string;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* 业务数据字典表单VO
|
|
3200
|
+
*/
|
|
3201
|
+
export declare interface YwsjzdFormVO {
|
|
3202
|
+
cXuhao: string;
|
|
3203
|
+
cName: string;
|
|
3204
|
+
cSign: string;
|
|
3205
|
+
nOrder?: number;
|
|
3206
|
+
metaItems?: MetaItem_2[];
|
|
3207
|
+
}
|
|
3208
|
+
|
|
3209
|
+
export declare const YwsjzdQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* 业务数据字典查询参数
|
|
3213
|
+
*/
|
|
3214
|
+
export declare interface YwsjzdQueryParams {
|
|
3215
|
+
pageNo: number;
|
|
3216
|
+
pageSize: number;
|
|
3217
|
+
authDict: {
|
|
3218
|
+
cSign?: string;
|
|
3219
|
+
cXuhao?: string;
|
|
3220
|
+
cName?: string;
|
|
3221
|
+
nParent: number;
|
|
3222
|
+
};
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
/**
|
|
3226
|
+
* 业务数据字典VO
|
|
3227
|
+
*/
|
|
3228
|
+
export declare interface YwsjzdVO {
|
|
3229
|
+
authDict: {
|
|
3230
|
+
id: number;
|
|
3231
|
+
cXuhao: string;
|
|
3232
|
+
cName: string;
|
|
3233
|
+
nParent: number;
|
|
3234
|
+
cCreate: string;
|
|
3235
|
+
dCreate: string;
|
|
3236
|
+
nType: number;
|
|
3237
|
+
cSign: string;
|
|
3238
|
+
cCreateName: string | null;
|
|
3239
|
+
cMeta: string;
|
|
3240
|
+
nOrder: number | null;
|
|
3241
|
+
cConnkey: string;
|
|
3242
|
+
cParentXuhao: string | null;
|
|
3243
|
+
cLang: string | null;
|
|
3244
|
+
cDataValue: string | null;
|
|
3245
|
+
cMemo: string | null;
|
|
3246
|
+
};
|
|
3247
|
+
childList: {
|
|
3248
|
+
id: number;
|
|
3249
|
+
cXuhao: string;
|
|
3250
|
+
cName: string;
|
|
3251
|
+
nParent: number;
|
|
3252
|
+
cCreate: string;
|
|
3253
|
+
dCreate: string;
|
|
3254
|
+
nType: number;
|
|
3255
|
+
cSign: string;
|
|
3256
|
+
cCreateName: string | null;
|
|
3257
|
+
cMeta: string;
|
|
3258
|
+
nOrder: number | null;
|
|
3259
|
+
cConnkey: string;
|
|
3260
|
+
cParentXuhao: string | null;
|
|
3261
|
+
cLang: string | null;
|
|
3262
|
+
cDataValue: string | null;
|
|
3263
|
+
cMemo: string | null;
|
|
3264
|
+
}[];
|
|
3265
|
+
}
|
|
3266
|
+
|
|
3267
|
+
export declare const ZdyxlkQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
3268
|
+
ZdyxlkAddRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
3269
|
+
onSuccess?: (() => any) | undefined;
|
|
3270
|
+
}>, {
|
|
3271
|
+
addInit: () => Promise<void>;
|
|
3272
|
+
editInit: (record: any) => Promise<void>;
|
|
3273
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3274
|
+
success: () => any;
|
|
3275
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
3276
|
+
P: {};
|
|
3277
|
+
B: {};
|
|
3278
|
+
D: {};
|
|
3279
|
+
C: {};
|
|
3280
|
+
M: {};
|
|
3281
|
+
Defaults: {};
|
|
3282
|
+
}, Readonly<{}> & Readonly<{
|
|
3283
|
+
onSuccess?: (() => any) | undefined;
|
|
3284
|
+
}>, {
|
|
3285
|
+
addInit: () => Promise<void>;
|
|
3286
|
+
editInit: (record: any) => Promise<void>;
|
|
3287
|
+
}, {}, {}, {}, {}> | null;
|
|
3288
|
+
}, HTMLDivElement>;
|
|
3289
|
+
|
|
3290
|
+
|
|
3291
|
+
export * from "axios";
|
|
3292
|
+
|
|
3293
|
+
export { }
|