@sunny-base-web/effects 0.8.28 → 0.8.29

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