@sunny-base-web/effects 0.8.26 → 0.8.28

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/@effects/src/access/AccessControl.d.ts +24 -0
  2. package/dist/@effects/src/access/AccessControl.d.ts.map +1 -0
  3. package/dist/@effects/src/access/accessible.d.ts +1 -0
  4. package/dist/@effects/src/access/accessible.d.ts.map +1 -0
  5. package/dist/@effects/src/access/index.d.ts +7 -0
  6. package/dist/@effects/src/access/index.d.ts.map +1 -0
  7. package/dist/@effects/src/access/types.d.ts +36 -0
  8. package/dist/@effects/src/access/types.d.ts.map +1 -0
  9. package/dist/@effects/src/api/core/index.d.ts +28 -0
  10. package/dist/@effects/src/api/core/index.d.ts.map +1 -0
  11. package/dist/@effects/src/api/favorite/index.d.ts +38 -0
  12. package/dist/@effects/src/api/favorite/index.d.ts.map +1 -0
  13. package/dist/@effects/src/api/request.d.ts +15 -0
  14. package/dist/@effects/src/api/request.d.ts.map +1 -0
  15. package/dist/@effects/src/api/resource/index.d.ts +77 -0
  16. package/dist/@effects/src/api/resource/index.d.ts.map +1 -0
  17. package/dist/@effects/src/api/resource.d.ts +105 -0
  18. package/dist/@effects/src/api/resource.d.ts.map +1 -0
  19. package/dist/@effects/src/api/user/index.d.ts +15 -0
  20. package/dist/@effects/src/api/user/index.d.ts.map +1 -0
  21. package/dist/@effects/src/composables/index.d.ts +2 -0
  22. package/dist/@effects/src/composables/index.d.ts.map +1 -0
  23. package/dist/@effects/src/composables/use-favorite.d.ts +48 -0
  24. package/dist/@effects/src/composables/use-favorite.d.ts.map +1 -0
  25. package/dist/@effects/src/config.d.ts +98 -0
  26. package/dist/@effects/src/config.d.ts.map +1 -0
  27. package/dist/@effects/src/form/index.d.ts +97 -0
  28. package/dist/@effects/src/form/index.d.ts.map +1 -0
  29. package/dist/@effects/src/form/permission-options-adapter.d.ts +18 -0
  30. package/dist/@effects/src/form/permission-options-adapter.d.ts.map +1 -0
  31. package/dist/@effects/src/form/permission-options-manager.d.ts +61 -0
  32. package/dist/@effects/src/form/permission-options-manager.d.ts.map +1 -0
  33. package/dist/@effects/src/form/select-options-adapter.d.ts +9 -0
  34. package/dist/@effects/src/form/select-options-adapter.d.ts.map +1 -0
  35. package/dist/@effects/src/form/select-options-manager.d.ts +61 -0
  36. package/dist/@effects/src/form/select-options-manager.d.ts.map +1 -0
  37. package/dist/@effects/src/form/use-permission-options.d.ts +126 -0
  38. package/dist/@effects/src/form/use-permission-options.d.ts.map +1 -0
  39. package/dist/@effects/src/form/use-select-options.d.ts +128 -0
  40. package/dist/@effects/src/form/use-select-options.d.ts.map +1 -0
  41. package/dist/@effects/src/hooks/index.d.ts +9 -0
  42. package/dist/@effects/src/hooks/index.d.ts.map +1 -0
  43. package/dist/@effects/src/hooks/useBusinessSearchModal.d.ts +38 -0
  44. package/dist/@effects/src/hooks/useBusinessSearchModal.d.ts.map +1 -0
  45. package/dist/@effects/src/hooks/useForm.d.ts +17 -0
  46. package/dist/@effects/src/hooks/useForm.d.ts.map +1 -0
  47. package/dist/@effects/src/hooks/useFormTable.d.ts +16 -0
  48. package/dist/@effects/src/hooks/useFormTable.d.ts.map +1 -0
  49. package/dist/@effects/src/hooks/useFormTabs.d.ts +23 -0
  50. package/dist/@effects/src/hooks/useFormTabs.d.ts.map +1 -0
  51. package/dist/@effects/src/hooks/useList.d.ts +111 -0
  52. package/dist/@effects/src/hooks/useList.d.ts.map +1 -0
  53. package/dist/@effects/src/hooks/useTable.d.ts +35 -0
  54. package/dist/@effects/src/hooks/useTable.d.ts.map +1 -0
  55. package/dist/@effects/src/hooks/useUserResources.d.ts +19 -0
  56. package/dist/@effects/src/hooks/useUserResources.d.ts.map +1 -0
  57. package/dist/@effects/src/index.d.ts +36 -0
  58. package/dist/@effects/src/index.d.ts.map +1 -0
  59. package/dist/@effects/src/layouts/basic-layout/header/breadcrumb.d.ts +3 -0
  60. package/dist/@effects/src/layouts/basic-layout/header/breadcrumb.d.ts.map +1 -0
  61. package/dist/@effects/src/layouts/basic-layout/header/language-toggle.d.ts +3 -0
  62. package/dist/@effects/src/layouts/basic-layout/header/language-toggle.d.ts.map +1 -0
  63. package/dist/@effects/src/layouts/basic-layout/header/password-modal.d.ts +6 -0
  64. package/dist/@effects/src/layouts/basic-layout/header/password-modal.d.ts.map +1 -0
  65. package/dist/@effects/src/layouts/basic-layout/header/search.d.ts +6 -0
  66. package/dist/@effects/src/layouts/basic-layout/header/search.d.ts.map +1 -0
  67. package/dist/@effects/src/layouts/basic-layout/header/settings-modal.d.ts +6 -0
  68. package/dist/@effects/src/layouts/basic-layout/header/settings-modal.d.ts.map +1 -0
  69. package/dist/@effects/src/layouts/basic-layout/header/theme-toggle.d.ts +3 -0
  70. package/dist/@effects/src/layouts/basic-layout/header/theme-toggle.d.ts.map +1 -0
  71. package/dist/@effects/src/layouts/basic-layout/header/user-avatar.d.ts +32 -0
  72. package/dist/@effects/src/layouts/basic-layout/header/user-avatar.d.ts.map +1 -0
  73. package/dist/@effects/src/layouts/basic-layout/index.d.ts +60 -0
  74. package/dist/@effects/src/layouts/basic-layout/index.d.ts.map +1 -0
  75. package/dist/@effects/src/layouts/basic-layout/menu-item.d.ts +6 -0
  76. package/dist/@effects/src/layouts/basic-layout/menu-item.d.ts.map +1 -0
  77. package/dist/@effects/src/layouts/basic-layout/tabbar/index.d.ts +3 -0
  78. package/dist/@effects/src/layouts/basic-layout/tabbar/index.d.ts.map +1 -0
  79. package/dist/@effects/src/layouts/index.d.ts +2 -0
  80. package/dist/@effects/src/layouts/index.d.ts.map +1 -0
  81. package/dist/@effects/src/loading/GlobalLoading.d.ts +7 -0
  82. package/dist/@effects/src/loading/GlobalLoading.d.ts.map +1 -0
  83. package/dist/@effects/src/loading/index.d.ts +9 -0
  84. package/dist/@effects/src/loading/index.d.ts.map +1 -0
  85. package/dist/@effects/src/loading/loading-manager.d.ts +32 -0
  86. package/dist/@effects/src/loading/loading-manager.d.ts.map +1 -0
  87. package/dist/@effects/src/loading/types.d.ts +23 -0
  88. package/dist/@effects/src/loading/types.d.ts.map +1 -0
  89. package/dist/@effects/src/loading/use-global-loading.d.ts +38 -0
  90. package/dist/@effects/src/loading/use-global-loading.d.ts.map +1 -0
  91. package/dist/@effects/src/login/index.d.ts +77 -0
  92. package/dist/@effects/src/login/index.d.ts.map +1 -0
  93. package/dist/@effects/src/request/src/index.d.ts +3 -0
  94. package/dist/@effects/src/request/src/index.d.ts.map +1 -0
  95. package/dist/@effects/src/request/src/request-client/index.d.ts +4 -0
  96. package/dist/@effects/src/request/src/request-client/index.d.ts.map +1 -0
  97. package/dist/@effects/src/request/src/request-client/modules/downloader.d.ts +23 -0
  98. package/dist/@effects/src/request/src/request-client/modules/downloader.d.ts.map +1 -0
  99. package/dist/@effects/src/request/src/request-client/modules/interceptor.d.ts +10 -0
  100. package/dist/@effects/src/request/src/request-client/modules/interceptor.d.ts.map +1 -0
  101. package/dist/@effects/src/request/src/request-client/modules/sse.d.ts +19 -0
  102. package/dist/@effects/src/request/src/request-client/modules/sse.d.ts.map +1 -0
  103. package/dist/@effects/src/request/src/request-client/modules/uploader.d.ts +11 -0
  104. package/dist/@effects/src/request/src/request-client/modules/uploader.d.ts.map +1 -0
  105. package/dist/@effects/src/request/src/request-client/preset-interceptors.d.ts +34 -0
  106. package/dist/@effects/src/request/src/request-client/preset-interceptors.d.ts.map +1 -0
  107. package/dist/@effects/src/request/src/request-client/request-client.d.ts +48 -0
  108. package/dist/@effects/src/request/src/request-client/request-client.d.ts.map +1 -0
  109. package/dist/@effects/src/request/src/request-client/types.d.ts +51 -0
  110. package/dist/@effects/src/request/src/request-client/types.d.ts.map +1 -0
  111. package/dist/@effects/src/resourceManagement/components/ConstructionConfig.d.ts +10 -0
  112. package/dist/@effects/src/resourceManagement/components/ConstructionConfig.d.ts.map +1 -0
  113. package/dist/@effects/src/resourceManagement/components/EditTable/cMetaEditor.d.ts +18 -0
  114. package/dist/@effects/src/resourceManagement/components/EditTable/cMetaEditor.d.ts.map +1 -0
  115. package/dist/@effects/src/resourceManagement/components/EditTable/chooseTable.d.ts +9 -0
  116. package/dist/@effects/src/resourceManagement/components/EditTable/chooseTable.d.ts.map +1 -0
  117. package/dist/@effects/src/resourceManagement/components/EditTable/fieldCallmethod.d.ts +24 -0
  118. package/dist/@effects/src/resourceManagement/components/EditTable/fieldCallmethod.d.ts.map +1 -0
  119. package/dist/@effects/src/resourceManagement/components/ResourceTree.d.ts +35 -0
  120. package/dist/@effects/src/resourceManagement/components/ResourceTree.d.ts.map +1 -0
  121. package/dist/@effects/src/resourceManagement/index.d.ts +39 -0
  122. package/dist/@effects/src/resourceManagement/index.d.ts.map +1 -0
  123. package/dist/@effects/src/utils/DefaultButtonResource.d.ts +77 -0
  124. package/dist/@effects/src/utils/DefaultButtonResource.d.ts.map +1 -0
  125. package/dist/@effects/src/utils/encryption.d.ts +2 -0
  126. package/dist/@effects/src/utils/encryption.d.ts.map +1 -0
  127. package/dist/@effects/src/utils/error-report.d.ts +55 -0
  128. package/dist/@effects/src/utils/error-report.d.ts.map +1 -0
  129. package/dist/@effects/src/utils/formatter.d.ts +11 -0
  130. package/dist/@effects/src/utils/formatter.d.ts.map +1 -0
  131. package/dist/@effects/src/utils/select-options.d.ts +22 -0
  132. package/dist/@effects/src/utils/select-options.d.ts.map +1 -0
  133. package/dist/@effects/src/utils/types.d.ts +27 -0
  134. package/dist/@effects/src/utils/types.d.ts.map +1 -0
  135. package/dist/@effects/src/utils/use-schema-options-loader.d.ts +112 -0
  136. package/dist/@effects/src/utils/use-schema-options-loader.d.ts.map +1 -0
  137. package/dist/@effects/src/utils/use-schema-permission-loader.d.ts +76 -0
  138. package/dist/@effects/src/utils/use-schema-permission-loader.d.ts.map +1 -0
  139. package/dist/@effects/src/utils/utils.d.ts +46 -0
  140. package/dist/@effects/src/utils/utils.d.ts.map +1 -0
  141. package/dist/@effects/src/views/dashboard/Dashboard.d.ts +3 -0
  142. package/dist/@effects/src/views/dashboard/Dashboard.d.ts.map +1 -0
  143. package/dist/@effects/src/views/dashboard/api.d.ts +97 -0
  144. package/dist/@effects/src/views/dashboard/api.d.ts.map +1 -0
  145. package/dist/@effects/src/views/dashboard/components/AddEntryModal.d.ts +14 -0
  146. package/dist/@effects/src/views/dashboard/components/AddEntryModal.d.ts.map +1 -0
  147. package/dist/@effects/src/views/dashboard/index.d.ts +3 -0
  148. package/dist/@effects/src/views/dashboard/index.d.ts.map +1 -0
  149. package/dist/@effects/src/views/design/Design.d.ts +3 -0
  150. package/dist/@effects/src/views/design/Design.d.ts.map +1 -0
  151. package/dist/@effects/src/views/design/index.d.ts +2 -0
  152. package/dist/@effects/src/views/design/index.d.ts.map +1 -0
  153. package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryAdd.d.ts +18 -0
  154. package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryAdd.d.ts.map +1 -0
  155. package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryQuery.d.ts +3 -0
  156. package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryQuery.d.ts.map +1 -0
  157. package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryUpdate.d.ts +17 -0
  158. package/dist/@effects/src/views/setting/dataDictionary/DataDictionaryUpdate.d.ts.map +1 -0
  159. package/dist/@effects/src/views/setting/dataDictionary/config.d.ts +75 -0
  160. package/dist/@effects/src/views/setting/dataDictionary/config.d.ts.map +1 -0
  161. package/dist/@effects/src/views/setting/dataDictionary/index.d.ts +4 -0
  162. package/dist/@effects/src/views/setting/dataDictionary/index.d.ts.map +1 -0
  163. package/dist/@effects/src/views/setting/dataDictionary/types.d.ts +43 -0
  164. package/dist/@effects/src/views/setting/dataDictionary/types.d.ts.map +1 -0
  165. package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupForm.d.ts +17 -0
  166. package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupForm.d.ts.map +1 -0
  167. package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupQuery.d.ts +33 -0
  168. package/dist/@effects/src/views/setting/dsrw/jobgroup/JobGroupQuery.d.ts.map +1 -0
  169. package/dist/@effects/src/views/setting/dsrw/jobgroup/config.d.ts +27 -0
  170. package/dist/@effects/src/views/setting/dsrw/jobgroup/config.d.ts.map +1 -0
  171. package/dist/@effects/src/views/setting/dsrw/jobgroup/index.d.ts +4 -0
  172. package/dist/@effects/src/views/setting/dsrw/jobgroup/index.d.ts.map +1 -0
  173. package/dist/@effects/src/views/setting/dsrw/jobgroup/types.d.ts +22 -0
  174. package/dist/@effects/src/views/setting/dsrw/jobgroup/types.d.ts.map +1 -0
  175. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoCode.d.ts +15 -0
  176. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoCode.d.ts.map +1 -0
  177. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoForm.d.ts +17 -0
  178. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoForm.d.ts.map +1 -0
  179. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoOnce.d.ts +17 -0
  180. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoOnce.d.ts.map +1 -0
  181. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoQuery.d.ts +89 -0
  182. package/dist/@effects/src/views/setting/dsrw/jobinfo/JobInfoQuery.d.ts.map +1 -0
  183. package/dist/@effects/src/views/setting/dsrw/jobinfo/config.d.ts +31 -0
  184. package/dist/@effects/src/views/setting/dsrw/jobinfo/config.d.ts.map +1 -0
  185. package/dist/@effects/src/views/setting/dsrw/jobinfo/index.d.ts +4 -0
  186. package/dist/@effects/src/views/setting/dsrw/jobinfo/index.d.ts.map +1 -0
  187. package/dist/@effects/src/views/setting/dsrw/jobinfo/types.d.ts +34 -0
  188. package/dist/@effects/src/views/setting/dsrw/jobinfo/types.d.ts.map +1 -0
  189. package/dist/@effects/src/views/setting/dsrw/joblog/JobLogQuery.d.ts +28 -0
  190. package/dist/@effects/src/views/setting/dsrw/joblog/JobLogQuery.d.ts.map +1 -0
  191. package/dist/@effects/src/views/setting/dsrw/joblog/LogList.d.ts +14 -0
  192. package/dist/@effects/src/views/setting/dsrw/joblog/LogList.d.ts.map +1 -0
  193. package/dist/@effects/src/views/setting/dsrw/joblog/config.d.ts +27 -0
  194. package/dist/@effects/src/views/setting/dsrw/joblog/config.d.ts.map +1 -0
  195. package/dist/@effects/src/views/setting/dsrw/joblog/index.d.ts +4 -0
  196. package/dist/@effects/src/views/setting/dsrw/joblog/index.d.ts.map +1 -0
  197. package/dist/@effects/src/views/setting/dsrw/joblog/types.d.ts +54 -0
  198. package/dist/@effects/src/views/setting/dsrw/joblog/types.d.ts.map +1 -0
  199. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaAdd.d.ts +10 -0
  200. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaAdd.d.ts.map +1 -0
  201. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaQuery.d.ts +24 -0
  202. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/AssSendoaQuery.d.ts.map +1 -0
  203. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/config.d.ts +25 -0
  204. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/config.d.ts.map +1 -0
  205. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/index.d.ts +5 -0
  206. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/index.d.ts.map +1 -0
  207. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/types.d.ts +13 -0
  208. package/dist/@effects/src/views/setting/gnzjgl/assSendoa/types.d.ts.map +1 -0
  209. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcQuery.d.ts +3 -0
  210. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcQuery.d.ts.map +1 -0
  211. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcReview.d.ts +11 -0
  212. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/GgcxtcReview.d.ts.map +1 -0
  213. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/config.d.ts +20 -0
  214. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/config.d.ts.map +1 -0
  215. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/index.d.ts +4 -0
  216. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/index.d.ts.map +1 -0
  217. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/types.d.ts +19 -0
  218. package/dist/@effects/src/views/setting/gnzjgl/ggcxtc/types.d.ts.map +1 -0
  219. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkAdd.d.ts +10 -0
  220. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkAdd.d.ts.map +1 -0
  221. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkQuery.d.ts +24 -0
  222. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/ZdyxlkQuery.d.ts.map +1 -0
  223. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/config.d.ts +37 -0
  224. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/config.d.ts.map +1 -0
  225. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/index.d.ts +2 -0
  226. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/index.d.ts.map +1 -0
  227. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/types.d.ts +17 -0
  228. package/dist/@effects/src/views/setting/gnzjgl/zdyxlk/types.d.ts.map +1 -0
  229. package/dist/@effects/src/views/setting/operationLog/OperationLogQuery.d.ts +3 -0
  230. package/dist/@effects/src/views/setting/operationLog/OperationLogQuery.d.ts.map +1 -0
  231. package/dist/@effects/src/views/setting/operationLog/config.d.ts +19 -0
  232. package/dist/@effects/src/views/setting/operationLog/config.d.ts.map +1 -0
  233. package/dist/@effects/src/views/setting/operationLog/index.d.ts +4 -0
  234. package/dist/@effects/src/views/setting/operationLog/index.d.ts.map +1 -0
  235. package/dist/@effects/src/views/setting/operationLog/types.d.ts +31 -0
  236. package/dist/@effects/src/views/setting/operationLog/types.d.ts.map +1 -0
  237. package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsAdd.d.ts +22 -0
  238. package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsAdd.d.ts.map +1 -0
  239. package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsQuery.d.ts +3 -0
  240. package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsQuery.d.ts.map +1 -0
  241. package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsUpdate.d.ts +16 -0
  242. package/dist/@effects/src/views/setting/otherPermissions/OtherPermissionsUpdate.d.ts.map +1 -0
  243. package/dist/@effects/src/views/setting/otherPermissions/config.d.ts +23 -0
  244. package/dist/@effects/src/views/setting/otherPermissions/config.d.ts.map +1 -0
  245. package/dist/@effects/src/views/setting/otherPermissions/index.d.ts +6 -0
  246. package/dist/@effects/src/views/setting/otherPermissions/index.d.ts.map +1 -0
  247. package/dist/@effects/src/views/setting/otherPermissions/types.d.ts +34 -0
  248. package/dist/@effects/src/views/setting/otherPermissions/types.d.ts.map +1 -0
  249. package/dist/@effects/src/views/setting/role/RoleAdd.d.ts +123 -0
  250. package/dist/@effects/src/views/setting/role/RoleAdd.d.ts.map +1 -0
  251. package/dist/@effects/src/views/setting/role/RoleAuth.d.ts +28 -0
  252. package/dist/@effects/src/views/setting/role/RoleAuth.d.ts.map +1 -0
  253. package/dist/@effects/src/views/setting/role/RoleChooseUser.d.ts +9 -0
  254. package/dist/@effects/src/views/setting/role/RoleChooseUser.d.ts.map +1 -0
  255. package/dist/@effects/src/views/setting/role/RoleQuery.d.ts +174 -0
  256. package/dist/@effects/src/views/setting/role/RoleQuery.d.ts.map +1 -0
  257. package/dist/@effects/src/views/setting/role/config.d.ts +19 -0
  258. package/dist/@effects/src/views/setting/role/config.d.ts.map +1 -0
  259. package/dist/@effects/src/views/setting/role/index.d.ts +6 -0
  260. package/dist/@effects/src/views/setting/role/index.d.ts.map +1 -0
  261. package/dist/@effects/src/views/setting/role/types.d.ts +80 -0
  262. package/dist/@effects/src/views/setting/role/types.d.ts.map +1 -0
  263. package/dist/@effects/src/views/setting/systemSetting/SystemSetting.d.ts +3 -0
  264. package/dist/@effects/src/views/setting/systemSetting/SystemSetting.d.ts.map +1 -0
  265. package/dist/@effects/src/views/setting/systemSetting/api.d.ts +21 -0
  266. package/dist/@effects/src/views/setting/systemSetting/api.d.ts.map +1 -0
  267. package/dist/@effects/src/views/setting/systemSetting/index.d.ts +4 -0
  268. package/dist/@effects/src/views/setting/systemSetting/index.d.ts.map +1 -0
  269. package/dist/@effects/src/views/setting/systemSetting/types.d.ts +28 -0
  270. package/dist/@effects/src/views/setting/systemSetting/types.d.ts.map +1 -0
  271. package/dist/@effects/src/views/setting/user/UserAdd.d.ts +11 -0
  272. package/dist/@effects/src/views/setting/user/UserAdd.d.ts.map +1 -0
  273. package/dist/@effects/src/views/setting/user/UserAuth.d.ts +28 -0
  274. package/dist/@effects/src/views/setting/user/UserAuth.d.ts.map +1 -0
  275. package/dist/@effects/src/views/setting/user/UserBindMac.d.ts +9 -0
  276. package/dist/@effects/src/views/setting/user/UserBindMac.d.ts.map +1 -0
  277. package/dist/@effects/src/views/setting/user/UserChooseRole.d.ts +9 -0
  278. package/dist/@effects/src/views/setting/user/UserChooseRole.d.ts.map +1 -0
  279. package/dist/@effects/src/views/setting/user/UserOtherAuth.d.ts +9 -0
  280. package/dist/@effects/src/views/setting/user/UserOtherAuth.d.ts.map +1 -0
  281. package/dist/@effects/src/views/setting/user/UserQuery.d.ts +99 -0
  282. package/dist/@effects/src/views/setting/user/UserQuery.d.ts.map +1 -0
  283. package/dist/@effects/src/views/setting/user/config.d.ts +20 -0
  284. package/dist/@effects/src/views/setting/user/config.d.ts.map +1 -0
  285. package/dist/@effects/src/views/setting/user/index.d.ts +2 -0
  286. package/dist/@effects/src/views/setting/user/index.d.ts.map +1 -0
  287. package/dist/@effects/src/views/setting/ywsjzd/YwsjzdAdd.d.ts +18 -0
  288. package/dist/@effects/src/views/setting/ywsjzd/YwsjzdAdd.d.ts.map +1 -0
  289. package/dist/@effects/src/views/setting/ywsjzd/YwsjzdQuery.d.ts +3 -0
  290. package/dist/@effects/src/views/setting/ywsjzd/YwsjzdQuery.d.ts.map +1 -0
  291. package/dist/@effects/src/views/setting/ywsjzd/YwsjzdUpdate.d.ts +17 -0
  292. package/dist/@effects/src/views/setting/ywsjzd/YwsjzdUpdate.d.ts.map +1 -0
  293. package/dist/@effects/src/views/setting/ywsjzd/config.d.ts +75 -0
  294. package/dist/@effects/src/views/setting/ywsjzd/config.d.ts.map +1 -0
  295. package/dist/@effects/src/views/setting/ywsjzd/index.d.ts +4 -0
  296. package/dist/@effects/src/views/setting/ywsjzd/index.d.ts.map +1 -0
  297. package/dist/@effects/src/views/setting/ywsjzd/types.d.ts +72 -0
  298. package/dist/@effects/src/views/setting/ywsjzd/types.d.ts.map +1 -0
  299. package/dist/index.d.ts +2 -3270
  300. package/dist/index.mjs +3402 -3370
  301. package/package.json +9 -9
  302. package/dist/index.js +0 -10
package/dist/index.d.ts CHANGED
@@ -1,3270 +1,2 @@
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
-
2465
- /**
2466
- * Composition API Hook: 获取全局配置
2467
- * 在组件 setup() 中调用此方法获取配置信息
2468
- *
2469
- * @returns EffectsConfig 配置对象
2470
- */
2471
- export declare const useEffectsConfig: () => EffectsConfig;
2472
-
2473
- /**
2474
- * 收藏功能 Composable
2475
- * 封装收藏相关的 API 调用和 Store 更新逻辑
2476
- */
2477
- export declare function useFavorite(): {
2478
- favoriteStore: Store<"core-favorite", FavoriteState, {
2479
- hasFavorites: (state: {
2480
- favorites: {
2481
- nResourceid: number;
2482
- cModname: string;
2483
- cIcon?: string | undefined;
2484
- cUrl?: string | undefined;
2485
- cCreateuser?: string | undefined;
2486
- }[];
2487
- loading: boolean;
2488
- adding: boolean;
2489
- } & PiniaCustomStateProperties<FavoriteState>) => boolean;
2490
- isFavorited: (state: {
2491
- favorites: {
2492
- nResourceid: number;
2493
- cModname: string;
2494
- cIcon?: string | undefined;
2495
- cUrl?: string | undefined;
2496
- cCreateuser?: string | undefined;
2497
- }[];
2498
- loading: boolean;
2499
- adding: boolean;
2500
- } & PiniaCustomStateProperties<FavoriteState>) => (nResourceid: number) => boolean;
2501
- }, {
2502
- setFavorites(favorites: FavoriteItem[]): void;
2503
- addFavoriteToList(item: FavoriteItem): void;
2504
- removeFavoriteFromList(nResourceid: number): void;
2505
- setLoading(loading: boolean): void;
2506
- setAdding(adding: boolean): void;
2507
- resetState(): void;
2508
- }>;
2509
- findResourceIdByPath: (path: string) => number | null;
2510
- fetchFavorites: () => Promise<void>;
2511
- addCurrentPage: (currentPath: string) => Promise<{
2512
- success: boolean;
2513
- message: string;
2514
- }>;
2515
- removeFavoriteItem: (nResourceid: number) => Promise<{
2516
- success: boolean;
2517
- message: string;
2518
- }>;
2519
- };
2520
-
2521
- export declare function useForm({ schema, objectToValueFields, handleValuesChange, ...restProps }?: UseFormOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
2522
- [key: string]: any;
2523
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi];
2524
-
2525
- declare interface UseFormOptions extends Partial<SunnyFormProps> {
2526
- schema?: any[];
2527
- objectToValueFields?: string[];
2528
- /**
2529
- * 表单值变化时的回调
2530
- * Callback when form values change
2531
- */
2532
- handleValuesChange?: (values: Record<string, any>, changedFields: string[]) => void;
2533
- }
2534
-
2535
- export declare function useFormTable({ formSchema, tableColumns, tableEditRules, tableToolbarButtons, objectToValueFields }?: UseFormTableOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
2536
- [key: string]: any;
2537
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2];
2538
-
2539
- declare interface UseFormTableOptions {
2540
- formSchema?: any[];
2541
- tableColumns?: VxeGridProps_2['columns'];
2542
- tableEditRules?: any;
2543
- tableToolbarButtons?: Array<{
2544
- code: string;
2545
- name: string;
2546
- }>;
2547
- objectToValueFields?: string[];
2548
- }
2549
-
2550
- export declare function useFormTabs({ formSchema, tabsConfig, objectToValueFields }?: UseFormTabsOptions): readonly [DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
2551
- [key: string]: any;
2552
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, FormApi, ShallowRef<any[], any[]>, Ref<any[], any[]>];
2553
-
2554
- declare interface UseFormTabsOptions {
2555
- formSchema?: any[];
2556
- tabsConfig?: TabConfig[];
2557
- objectToValueFields?: string[];
2558
- }
2559
-
2560
- export declare function useGlobalLoading(): UseGlobalLoadingReturn;
2561
-
2562
- /**
2563
- * 全局加载动画控制 Composable
2564
- * @description 提供编程式控制全局加载动画的 API
2565
- * @example
2566
- * ```ts
2567
- * const { start, stop, withLoading } = useGlobalLoading();
2568
- *
2569
- * // 手动控制
2570
- * start();
2571
- * await fetchData();
2572
- * stop();
2573
- *
2574
- * // 自动包装
2575
- * await withLoading(fetchUserData());
2576
- * ```
2577
- */
2578
- export declare interface UseGlobalLoadingReturn {
2579
- /**
2580
- * 显示全局加载动画
2581
- */
2582
- start: () => void;
2583
- /**
2584
- * 隐藏全局加载动画
2585
- */
2586
- stop: () => void;
2587
- /**
2588
- * 包装异步函数,自动显示/隐藏加载
2589
- * @param fn - 异步函数
2590
- * @example
2591
- * ```ts
2592
- * const { withLoading } = useGlobalLoading();
2593
- * await withLoading(fetchUserData());
2594
- * ```
2595
- */
2596
- withLoading: <T>(fn: Promise<T>) => Promise<T>;
2597
- }
2598
-
2599
- /**
2600
- * 列表页通用配置
2601
- * @param options 配置选项
2602
- */
2603
- export declare function useList<T>(options: {
2604
- /**
2605
- * 表单配置
2606
- */
2607
- searchFormSchema: any[];
2608
- /**
2609
- * 表格列配置
2610
- */
2611
- tableColumns: any[];
2612
- /**
2613
- * 表格数据类型
2614
- */
2615
- dataType?: new () => T;
2616
- /**
2617
- * 资源配置
2618
- */
2619
- resourceConfig: {
2620
- resourceId: string;
2621
- nResourceid: number;
2622
- /**
2623
- * 模块编号
2624
- */
2625
- cModnumb?: string;
2626
- };
2627
- /**
2628
- * 表格查询函数
2629
- */
2630
- queryFunction: (params: any) => Promise<any>;
2631
- /**
2632
- * 表格事件配置
2633
- */
2634
- gridEvents?: any;
2635
- /**
2636
- * 树形配置
2637
- */
2638
- treeConfig?: any;
2639
- /**
2640
- * 树形表格懒加载方法
2641
- */
2642
- loadMethod?: (row: any) => Promise<any[]>;
2643
- /**
2644
- * 对象转值字段列表
2645
- * 用于将 BusinessSearch 等返回的对象数组转换为值字符串
2646
- */
2647
- objectToValueFields?: string[];
2648
- /**
2649
- * 表单字段映射到时间格式
2650
- */
2651
- fieldMappingTime?: any[];
2652
- /**
2653
- * 表单字段数组映射字符串配置
2654
- */
2655
- arrayToStringFields?: any[];
2656
- /**
2657
- * 是否开启懒加载
2658
- */
2659
- lazy?: boolean;
2660
- /**
2661
- * 是否自动加载数据
2662
- */
2663
- autoLoad?: boolean;
2664
- }): {
2665
- QueryForm: DefineComponent< {}, () => VNode<RendererNode, RendererElement, {
2666
- [key: string]: any;
2667
- }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2668
- formApi: FormApi;
2669
- Grid: DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>;
2670
- gridApi: VxeGridApi;
2671
- submitting: Ref<boolean, boolean>;
2672
- handleGlobalEnter: (e: KeyboardEvent) => void;
2673
- searchPlanList: Ref<never[], never[]>;
2674
- currentSearchPlan: Ref<undefined, undefined>;
2675
- resourceId: string;
2676
- nResourceid: number;
2677
- resourceButtons: Ref<any[], any[]>;
2678
- handleSearchPlanSearch: (formValues: any) => Promise<void>;
2679
- handleDefaultPlanLoaded: (formValues: any) => Promise<void>;
2680
- fetchResourceConfig: () => Promise<void>;
2681
- };
2682
-
2683
- /**
2684
- * 权限选项加载 Hook
2685
- * Permission options loading Hook
2686
- * @description 批量加载多个权限选项,自动缓存和去重
2687
- * @description Batch load multiple permission options with automatic caching and deduplication
2688
- *
2689
- * @param params - Hook 参数
2690
- * @returns 选项数据和加载方法
2691
- *
2692
- * @example
2693
- * ```ts
2694
- * // 基础用法
2695
- * const { optionsMap } = usePermissionOptions({
2696
- * numbList: ['FACTORY', 'COMPANY']
2697
- * });
2698
- *
2699
- * // 在模板中使用
2700
- * <Select :options="optionsMap.value['FACTORY']" />
2701
- *
2702
- * // 自定义字段映射
2703
- * const { optionsMap } = usePermissionOptions({
2704
- * numbList: ['FACTORY'],
2705
- * fieldMapping: {
2706
- * label: ['cExresnum', 'cExresname'], // 数组格式自动拼接
2707
- * value: 'cExresnum'
2708
- * }
2709
- * });
2710
- *
2711
- * // 手动加载
2712
- * const { optionsMap, load } = usePermissionOptions({
2713
- * numbList: ['FACTORY'],
2714
- * immediate: false
2715
- * });
2716
- *
2717
- * // 在需要时调用
2718
- * await load();
2719
- * ```
2720
- */
2721
- export declare function usePermissionOptions(params: UsePermissionOptionsParams): UsePermissionOptionsReturn;
2722
-
2723
- /**
2724
- * Hook 参数
2725
- * Hook parameters
2726
- */
2727
- export declare interface UsePermissionOptionsParams {
2728
- /**
2729
- * 权限编码列表
2730
- * Permission code list
2731
- * @description 需要批量加载的权限编码
2732
- * @description Permission codes to be batch loaded
2733
- */
2734
- numbList: (string | number)[];
2735
- /**
2736
- * 字段映射配置
2737
- * Field mapping configuration
2738
- * @description 自定义 label 和 value 对应的后端字段名
2739
- * @description Customize backend field names for label and value
2740
- */
2741
- fieldMapping?: PermissionFieldMapping;
2742
- /**
2743
- * 是否立即加载
2744
- * Whether to load immediately
2745
- * @default true
2746
- * @description 设置为 false 时,需要手动调用 load() 方法
2747
- * @description When set to false, need to manually call load() method
2748
- */
2749
- immediate?: boolean;
2750
- /**
2751
- * 是否强制刷新
2752
- * Whether to force reload
2753
- * @default false
2754
- * @description 设置为 true 时,忽略缓存重新加载
2755
- * @description When set to true, ignore cache and reload
2756
- */
2757
- forceReload?: boolean;
2758
- }
2759
-
2760
- /**
2761
- * Hook 返回值
2762
- * Hook return value
2763
- */
2764
- export declare interface UsePermissionOptionsReturn {
2765
- /**
2766
- * 选项映射表
2767
- * Options map
2768
- * @description 响应式的选项数据,按权限编码分组
2769
- * @description Reactive option data, grouped by permission code
2770
- * @example
2771
- * ```ts
2772
- * optionsMap.value['FACTORY'] // 获取 FACTORY 权限的选项
2773
- * ```
2774
- */
2775
- optionsMap: Ref<Record<string, SelectOption_2[]>>;
2776
- /**
2777
- * 加载状态
2778
- * Loading state
2779
- */
2780
- loading: Ref<boolean>;
2781
- /**
2782
- * 手动加载
2783
- * Manual load
2784
- * @description 手动触发加载选项
2785
- * @description Manually trigger loading options
2786
- */
2787
- load: () => Promise<void>;
2788
- /**
2789
- * 获取单个权限的选项
2790
- * Get single permission options
2791
- * @param code - 权限编码
2792
- * @returns 选项数组
2793
- */
2794
- getOptions: (code: string | number) => SelectOption_2[];
2795
- /**
2796
- * 刷新指定权限的选项
2797
- * Reload specific permission options
2798
- * @param code - 权限编码
2799
- */
2800
- reload: (code: string | number) => Promise<void>;
2801
- /**
2802
- * 清除指定权限的缓存
2803
- * Clear cache for specific permission
2804
- * @param code - 权限编码(可选)
2805
- */
2806
- clearCache: (code?: string | number) => void;
2807
- }
2808
-
2809
- export declare const UserQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
2810
- UserAddRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
2811
- onSuccess?: (() => any) | undefined;
2812
- }>, {
2813
- addInit: () => void;
2814
- editInit: (record: any) => Promise<void>;
2815
- detailInit: (record: any) => void;
2816
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2817
- success: () => any;
2818
- }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2819
- P: {};
2820
- B: {};
2821
- D: {};
2822
- C: {};
2823
- M: {};
2824
- Defaults: {};
2825
- }, Readonly<{}> & Readonly<{
2826
- onSuccess?: (() => any) | undefined;
2827
- }>, {
2828
- addInit: () => void;
2829
- editInit: (record: any) => Promise<void>;
2830
- detailInit: (record: any) => void;
2831
- }, {}, {}, {}, {}> | null;
2832
- UserAuthRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
2833
- onSuccess?: (() => any) | undefined;
2834
- }>, {
2835
- openInit: (record: any) => Promise<void>;
2836
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2837
- success: () => any;
2838
- }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
2839
- UserChooseRoleRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
2840
- onChooseRoleEmit?: ((...args: any[]) => any) | undefined;
2841
- }>, {
2842
- openInit: () => void;
2843
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2844
- chooseRoleEmit: (...args: any[]) => void;
2845
- }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2846
- P: {};
2847
- B: {};
2848
- D: {};
2849
- C: {};
2850
- M: {};
2851
- Defaults: {};
2852
- }, Readonly<{}> & Readonly<{
2853
- onChooseRoleEmit?: ((...args: any[]) => any) | undefined;
2854
- }>, {
2855
- openInit: () => void;
2856
- }, {}, {}, {}, {}> | null;
2857
- }, any, ComponentProvideOptions, {
2858
- P: {};
2859
- B: {};
2860
- D: {};
2861
- C: {};
2862
- M: {};
2863
- Defaults: {};
2864
- }, Readonly<{}> & Readonly<{
2865
- onSuccess?: (() => any) | undefined;
2866
- }>, {
2867
- openInit: (record: any) => Promise<void>;
2868
- }, {}, {}, {}, {}> | null;
2869
- UserBindMacRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
2870
- onSuccess?: (() => any) | undefined;
2871
- }>, {
2872
- openInit: (record: any) => Promise<void>;
2873
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2874
- success: () => any;
2875
- }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2876
- P: {};
2877
- B: {};
2878
- D: {};
2879
- C: {};
2880
- M: {};
2881
- Defaults: {};
2882
- }, Readonly<{}> & Readonly<{
2883
- onSuccess?: (() => any) | undefined;
2884
- }>, {
2885
- openInit: (record: any) => Promise<void>;
2886
- }, {}, {}, {}, {}> | null;
2887
- UserOtherAuthRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
2888
- onSuccess?: (() => any) | undefined;
2889
- }>, {
2890
- openInit: (record: any) => Promise<void>;
2891
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2892
- success: () => any;
2893
- }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2894
- P: {};
2895
- B: {};
2896
- D: {};
2897
- C: {};
2898
- M: {};
2899
- Defaults: {};
2900
- }, Readonly<{}> & Readonly<{
2901
- onSuccess?: (() => any) | undefined;
2902
- }>, {
2903
- openInit: (record: any) => Promise<void>;
2904
- }, {}, {}, {}, {}> | null;
2905
- }, HTMLDivElement>;
2906
-
2907
- export declare const userSfqyOpts: SelectOption[];
2908
-
2909
- /**
2910
- * 处理声明式 Schema 的选项加载
2911
- * Process declarative Schema options loading
2912
- *
2913
- * @param schema - 表单 Schema
2914
- * @param immediate - 是否立即加载
2915
- * @returns 增强后的 Schema 和加载方法
2916
- *
2917
- * @example
2918
- * ```typescript
2919
- * // 在 config.ts 中声明式配置
2920
- * export const searchFormSchema: FormSchema[] = [
2921
- * {
2922
- * fieldName: 'nZt',
2923
- * component: 'Select',
2924
- * selectOptions: {
2925
- * dictCode: 'SFQY',
2926
- * fieldMapping: { label: 'cName', value: 'cXuhao' }
2927
- * }
2928
- * }
2929
- * ]
2930
- *
2931
- * // 在组件中使用
2932
- * const { enhancedSchema, optionsMap } = useSchemaOptionsLoader(searchFormSchema);
2933
- *
2934
- * // 传递给 useList
2935
- * useList({
2936
- * searchFormSchema: enhancedSchema.value,
2937
- * ...
2938
- * })
2939
- * ```
2940
- */
2941
- export declare function useSchemaOptionsLoader(schema: FormSchema_3[] | Ref<FormSchema_3[]>, immediate?: boolean): SchemaOptionsLoaderReturn;
2942
-
2943
- /**
2944
- * 处理声明式 Schema 的权限选项加载
2945
- * Process declarative Schema permission options loading
2946
- *
2947
- * @param schema - 表单 Schema
2948
- * @param immediate - 是否立即加载
2949
- * @returns 增强后的 Schema 和加载方法
2950
- *
2951
- * @example
2952
- * ```typescript
2953
- * // 在 config.ts 中声明式配置
2954
- * export const searchFormSchema: FormSchema[] = [
2955
- * {
2956
- * fieldName: 'factory',
2957
- * component: 'Select',
2958
- * permissionOptions: {
2959
- * code: 'FACTORY',
2960
- * fieldMapping: { label: 'cName', value: 'cXuhao' }
2961
- * }
2962
- * }
2963
- * ]
2964
- *
2965
- * // 在组件中使用
2966
- * const { enhancedSchema } = useSchemaPermissionLoader(searchFormSchema);
2967
- *
2968
- * // 传递给 useList
2969
- * useList({
2970
- * searchFormSchema: enhancedSchema.value,
2971
- * ...
2972
- * })
2973
- * ```
2974
- */
2975
- export declare function useSchemaPermissionLoader(schema: FormSchema_3[] | Ref<FormSchema_3[]>, immediate?: boolean): SchemaPermissionLoaderReturn;
2976
-
2977
- /**
2978
- * 查询方案 API 实现
2979
- * 所有模块通用的查询方案 API 配置
2980
- */
2981
- export declare const useSearchPlanApi: () => {
2982
- findAllByResourceid: (data: any) => Promise<any>;
2983
- findSearchPlanColsByPlanId: (data: any) => Promise<any>;
2984
- insert: (data: any) => Promise<any>;
2985
- update: (data: any) => Promise<any>;
2986
- del: (data: any) => Promise<any>;
2987
- findDefSearchPlan: (data: any) => Promise<any>;
2988
- };
2989
-
2990
- /**
2991
- * Select 选项加载 Hook
2992
- * Select options loading Hook
2993
- * @description 批量加载多个字典选项,自动缓存和去重
2994
- * @description Batch load multiple dictionary options with automatic caching and deduplication
2995
- *
2996
- * @param params - Hook 参数
2997
- * @returns 选项数据和加载方法
2998
- *
2999
- * @example
3000
- * ```ts
3001
- * // 基础用法
3002
- * const { optionsMap } = useSelectOptions({
3003
- * numbList: ['SFQY', 'LANG']
3004
- * });
3005
- *
3006
- * // 在 Schema 中使用
3007
- * componentProps: {
3008
- * options: optionsMap.value['SFQY']
3009
- * }
3010
- *
3011
- * // 自定义字段映射
3012
- * const { optionsMap } = useSelectOptions({
3013
- * numbList: ['USER_STATUS'],
3014
- * fieldMapping: {
3015
- * label: 'statusName',
3016
- * value: 'statusCode'
3017
- * }
3018
- * });
3019
- *
3020
- * // 手动加载
3021
- * const { optionsMap, load } = useSelectOptions({
3022
- * numbList: ['USER_LIST'],
3023
- * immediate: false
3024
- * });
3025
- *
3026
- * // 在需要时调用
3027
- * await load();
3028
- * ```
3029
- */
3030
- export declare function useSelectOptions(params: UseSelectOptionsParams): UseSelectOptionsReturn;
3031
-
3032
- /**
3033
- * Hook 参数
3034
- * Hook parameters
3035
- */
3036
- export declare interface UseSelectOptionsParams {
3037
- /**
3038
- * 字典编码列表
3039
- * Dictionary code list
3040
- * @description 需要批量加载的字典编码
3041
- * @description Dictionary codes to be batch loaded
3042
- */
3043
- numbList: (string | number)[];
3044
- /**
3045
- * 字段映射配置
3046
- * Field mapping configuration
3047
- * @description 自定义 label 和 value 对应的后端字段名
3048
- * @description Customize backend field names for label and value
3049
- */
3050
- fieldMapping?: SelectFieldMapping;
3051
- /**
3052
- * 是否立即加载
3053
- * Whether to load immediately
3054
- * @default true
3055
- * @description 设置为 false 时,需要手动调用 load() 方法
3056
- * @description When set to false, need to manually call load() method
3057
- */
3058
- immediate?: boolean;
3059
- /**
3060
- * 是否强制刷新
3061
- * Whether to force reload
3062
- * @default false
3063
- * @description 设置为 true 时,忽略缓存重新加载
3064
- * @description When set to true, ignore cache and reload
3065
- */
3066
- forceReload?: boolean;
3067
- }
3068
-
3069
- /**
3070
- * Hook 返回值
3071
- * Hook return value
3072
- */
3073
- export declare interface UseSelectOptionsReturn {
3074
- /**
3075
- * 选项映射表
3076
- * Options map
3077
- * @description 响应式的选项数据,按字典编码分组
3078
- * @description Reactive option data, grouped by dictionary code
3079
- * @example
3080
- * ```ts
3081
- * optionsMap.value['SFQY'] // 获取 SFQY 字典的选项
3082
- * ```
3083
- */
3084
- optionsMap: Ref<Record<string, SelectOption_2[]>>;
3085
- /**
3086
- * 加载状态
3087
- * Loading state
3088
- */
3089
- loading: Ref<boolean>;
3090
- /**
3091
- * 手动加载
3092
- * Manual load
3093
- * @description 手动触发加载选项
3094
- * @description Manually trigger loading options
3095
- */
3096
- load: () => Promise<void>;
3097
- /**
3098
- * 获取单个字典的选项
3099
- * Get single dictionary options
3100
- * @param dictCode - 字典编码
3101
- * @returns 选项数组
3102
- */
3103
- getOptions: (dictCode: string | number) => SelectOption_2[];
3104
- /**
3105
- * 刷新指定字典的选项
3106
- * Reload specific dictionary options
3107
- * @param dictCode - 字典编码
3108
- */
3109
- reload: (dictCode: string | number) => Promise<void>;
3110
- /**
3111
- * 清除指定字典的缓存
3112
- * Clear cache for specific dictionary
3113
- * @param dictCode - 字典编码(可选)
3114
- */
3115
- clearCache: (dictCode?: string | number) => void;
3116
- }
3117
-
3118
- export declare function useTable({ columns, editRules, toolbarButtons, data, editable, editTrigger, editMode, height, gridId, gridEvents, }?: UseTableOptions): readonly [DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, PublicProps>, VxeGridApi_2 & {
3119
- setColumns: (newColumns: any[]) => void;
3120
- setToolbarButtons: (buttons: Array<{
3121
- code: string;
3122
- name: string;
3123
- }>) => void;
3124
- }];
3125
-
3126
- declare interface UseTableOptions {
3127
- /** 表格列配置 */
3128
- columns?: VxeGridProps_2['columns'];
3129
- /** 表格编辑规则 */
3130
- editRules?: any;
3131
- /** 工具栏按钮 */
3132
- toolbarButtons?: Array<{
3133
- code: string;
3134
- name: string;
3135
- }>;
3136
- /** 表格数据 */
3137
- data?: any[];
3138
- /** 是否启用编辑,默认 false */
3139
- editable?: boolean;
3140
- /** 编辑触发方式 */
3141
- editTrigger?: 'click' | 'dblclick';
3142
- /** 编辑模式 */
3143
- editMode?: 'row' | 'cell';
3144
- /** 表格高度 */
3145
- height?: string | number;
3146
- /** 表格 ID */
3147
- gridId?: string;
3148
- /** 表格事件 */
3149
- gridEvents?: Record<string, (...args: any[]) => any>;
3150
- }
3151
-
3152
- /**
3153
- * 获取用户资源
3154
- * @param cModnumb - 模块编号
3155
- * @returns 资源按钮列表
3156
- */
3157
- export declare function useUserResources(cModnumb: string): {
3158
- loading: Ref<boolean, boolean>;
3159
- resourceButtons: Ref< {
3160
- [key: string]: any[];
3161
- }, {
3162
- [key: string]: any[];
3163
- }>;
3164
- fetchResources: () => Promise<void>;
3165
- };
3166
-
3167
- /**
3168
- * 弱密码项
3169
- */
3170
- export declare interface WeakPasswordItem {
3171
- id: string;
3172
- password: string;
3173
- }
3174
-
3175
- /**
3176
- * 业务数据字典表单VO
3177
- */
3178
- export declare interface YwsjzdFormVO {
3179
- cXuhao: string;
3180
- cName: string;
3181
- cSign: string;
3182
- nOrder?: number;
3183
- metaItems?: MetaItem_2[];
3184
- }
3185
-
3186
- export declare const YwsjzdQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
3187
-
3188
- /**
3189
- * 业务数据字典查询参数
3190
- */
3191
- export declare interface YwsjzdQueryParams {
3192
- pageNo: number;
3193
- pageSize: number;
3194
- authDict: {
3195
- cSign?: string;
3196
- cXuhao?: string;
3197
- cName?: string;
3198
- nParent: number;
3199
- };
3200
- }
3201
-
3202
- /**
3203
- * 业务数据字典VO
3204
- */
3205
- export declare interface YwsjzdVO {
3206
- authDict: {
3207
- id: number;
3208
- cXuhao: string;
3209
- cName: string;
3210
- nParent: number;
3211
- cCreate: string;
3212
- dCreate: string;
3213
- nType: number;
3214
- cSign: string;
3215
- cCreateName: string | null;
3216
- cMeta: string;
3217
- nOrder: number | null;
3218
- cConnkey: string;
3219
- cParentXuhao: string | null;
3220
- cLang: string | null;
3221
- cDataValue: string | null;
3222
- cMemo: string | null;
3223
- };
3224
- childList: {
3225
- id: number;
3226
- cXuhao: string;
3227
- cName: string;
3228
- nParent: number;
3229
- cCreate: string;
3230
- dCreate: string;
3231
- nType: number;
3232
- cSign: string;
3233
- cCreateName: string | null;
3234
- cMeta: string;
3235
- nOrder: number | null;
3236
- cConnkey: string;
3237
- cParentXuhao: string | null;
3238
- cLang: string | null;
3239
- cDataValue: string | null;
3240
- cMemo: string | null;
3241
- }[];
3242
- }
3243
-
3244
- export declare const ZdyxlkQuery: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
3245
- ZdyxlkAddRef: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
3246
- onSuccess?: (() => any) | undefined;
3247
- }>, {
3248
- addInit: () => Promise<void>;
3249
- editInit: (record: any) => Promise<void>;
3250
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3251
- success: () => any;
3252
- }, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
3253
- P: {};
3254
- B: {};
3255
- D: {};
3256
- C: {};
3257
- M: {};
3258
- Defaults: {};
3259
- }, Readonly<{}> & Readonly<{
3260
- onSuccess?: (() => any) | undefined;
3261
- }>, {
3262
- addInit: () => Promise<void>;
3263
- editInit: (record: any) => Promise<void>;
3264
- }, {}, {}, {}, {}> | null;
3265
- }, HTMLDivElement>;
3266
-
3267
-
3268
- export * from "axios";
3269
-
3270
- export { }
1
+ export * from './@effects/src/index'
2
+ export {}