hs-admin-ui 1.0.6 → 1.0.8

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 (439) hide show
  1. package/.env +11 -0
  2. package/.env.development +5 -0
  3. package/.env.production +5 -0
  4. package/.eslintignore +18 -0
  5. package/.eslintrc.js +104 -0
  6. package/.prettierrc.js +39 -0
  7. package/.vite/deps/_metadata.json +8 -0
  8. package/.vite/deps/package.json +3 -0
  9. package/.vscode/extensions.json +7 -0
  10. package/.vscode/launch.json +15 -0
  11. package/.vscode/settings.json +41 -0
  12. package/CHANGELOG.md +1 -0
  13. package/directoryList.md +180 -0
  14. package/index.html +31 -0
  15. package/package.json +14 -8
  16. package/postcss.config.js +7 -0
  17. package/src/App.vue +88 -0
  18. package/src/api/businessController/index.ts +46 -0
  19. package/src/api/businessController/type.ts +24 -0
  20. package/src/api/fieldConfigController/index.ts +260 -0
  21. package/src/api/fieldConfigController/type.ts +224 -0
  22. package/src/api/index.ts +14 -0
  23. package/src/api/login/index.ts +78 -0
  24. package/src/api/loginController/index.ts +74 -0
  25. package/src/api/loginController/type.ts +1 -0
  26. package/src/api/menu/index.ts +34 -0
  27. package/src/api/menu/index2.ts +291 -0
  28. package/src/api/menuController/index.ts +189 -0
  29. package/src/api/menuController/type.ts +21 -0
  30. package/src/api/systemController/index.ts +26 -0
  31. package/src/api/systemController/type.ts +16 -0
  32. package/src/api/test/index.ts +22 -0
  33. package/src/api/user/index.ts +30 -0
  34. package/src/assets/404.png +0 -0
  35. package/src/assets/logo-main.svg +12 -0
  36. package/src/assets/logo-mini.svg +12 -0
  37. package/src/components/base/hsAffix/src/hsAffix.vue +22 -0
  38. package/src/components/base/hsAlert/src/hsAlert.vue +15 -0
  39. package/src/components/base/hsAutocomplete/src/hsAutocomplete.vue +36 -0
  40. package/src/components/base/hsButton/src/hsButton.vue +26 -0
  41. package/src/components/base/hsButton/src/hsButtonGroup.vue +8 -0
  42. package/src/components/base/hsButton/useButtonEvents.ts +19 -0
  43. package/src/components/base/hsCalendar/src/hsCalendar.vue +36 -0
  44. package/src/components/base/hsCarousel/src/hsCarousel.vue +15 -0
  45. package/src/components/base/hsCarousel/src/hsCarouselItem.vue +15 -0
  46. package/src/components/base/hsCascader/src/hsCascader.vue +36 -0
  47. package/src/components/base/hsCascader/src/hsCascaderPanel.vue +29 -0
  48. package/src/components/base/hsCheckbox/src/hsCheckbox.vue +32 -0
  49. package/src/components/base/hsCheckbox/src/hsCheckboxButton.vue +18 -0
  50. package/src/components/base/hsCheckbox/src/hsCheckboxGroup.vue +32 -0
  51. package/src/components/base/hsCol/src/hsCol.vue +20 -0
  52. package/src/components/base/hsCollapse/src/hsCollapse.vue +36 -0
  53. package/src/components/base/hsCollapse/src/hsCollapseItem.vue +22 -0
  54. package/src/components/base/hsColorPicker/src/hsColorPicker.vue +32 -0
  55. package/src/components/base/hsDatePicker/src/hsDatePicker.vue +40 -0
  56. package/src/components/base/hsDialog/src/hsDialog.vue +36 -0
  57. package/src/components/base/hsDrawer/src/hsDrawer.vue +29 -0
  58. package/src/components/base/hsDropdown/src/hsDropdown.vue +15 -0
  59. package/src/components/base/hsDropdown/src/hsDropdownItem.vue +15 -0
  60. package/src/components/base/hsDropdown/src/hsDropdownMenu.vue +15 -0
  61. package/src/components/base/hsForm/src/hsForm.vue +23 -0
  62. package/src/components/base/hsForm/src/hsFormItem.vue +22 -0
  63. package/src/components/base/hsGetApi/src/hsGetApis.vue +231 -0
  64. package/src/components/base/hsGetApi/useGetApis.ts +158 -0
  65. package/src/components/base/hsInput/src/hsInput.vue +40 -0
  66. package/src/components/base/hsInput/useInputEvents.ts +52 -0
  67. package/src/components/base/hsInputNumber/src/hsInputNumber.vue +31 -0
  68. package/src/components/base/hsPopconfirm/src/hsPopconfirm.vue +15 -0
  69. package/src/components/base/hsPopover/src/hsPopover.vue +22 -0
  70. package/src/components/base/hsProgress/src/hsProgress.vue +15 -0
  71. package/src/components/base/hsRadio/src/hsRadio.vue +32 -0
  72. package/src/components/base/hsRadio/src/hsRadioButton.vue +18 -0
  73. package/src/components/base/hsRadio/src/hsRadioGroup.vue +32 -0
  74. package/src/components/base/hsRate/src/hsRate.vue +32 -0
  75. package/src/components/base/hsResult/src/hsResult.vue +15 -0
  76. package/src/components/base/hsRow/src/hsRow.vue +20 -0
  77. package/src/components/base/hsScrollbar/src/hsScrollbar.vue +22 -0
  78. package/src/components/base/hsSelect/src/hsOption.vue +8 -0
  79. package/src/components/base/hsSelect/src/hsOptionGroup.vue +8 -0
  80. package/src/components/base/hsSelect/src/hsSelect.vue +46 -0
  81. package/src/components/base/hsSelect/useSelectEvents.ts +60 -0
  82. package/src/components/base/hsSlider/src/hsSlider.vue +25 -0
  83. package/src/components/base/hsSteps/src/hsStep.vue +15 -0
  84. package/src/components/base/hsSteps/src/hsSteps.vue +15 -0
  85. package/src/components/base/hsSwitch/src/hsSwitch.vue +35 -0
  86. package/src/components/base/hsTable/hsBCTable.vue +116 -0
  87. package/src/components/base/hsTable/hsTable copy.vue +226 -0
  88. package/src/components/base/hsTable/hsTable.vue +213 -0
  89. package/src/components/base/hsTable/useHsTableConfig.ts +95 -0
  90. package/src/components/base/hsTable/useTableEvents.ts +118 -0
  91. package/src/components/base/hsTabs/src/hsTabPane.vue +15 -0
  92. package/src/components/base/hsTabs/src/hsTabs.vue +29 -0
  93. package/src/components/base/hsTag/src/hsCheckTag.vue +16 -0
  94. package/src/components/base/hsTag/src/hsTag.vue +15 -0
  95. package/src/components/base/hsTest/HsTest.vue +320 -0
  96. package/src/components/base/hsTooltip/src/hsTooltip.vue +22 -0
  97. package/src/components/base/hsTour/src/hsTour.vue +31 -0
  98. package/src/components/base/hsTour/src/hsTourStep.vue +15 -0
  99. package/src/components/base/hsTransfer/src/hsTransfer.vue +36 -0
  100. package/src/components/base/hsTree/src/hsTree.vue +29 -0
  101. package/src/components/base/hsTreeSelect/src/hsTreeSelect.vue +39 -0
  102. package/src/components/base/hsUpload/src/hsUpload.vue +32 -0
  103. package/src/components/base/hsWatermark/src/hsWatermark.vue +15 -0
  104. package/src/components/business/bcAutoComplete/bcAutoComplete.vue +51 -0
  105. package/src/components/business/bcAutoComplete/defaultData.ts +31 -0
  106. package/src/components/business/bcAutoComplete/useAutoComplete.ts +73 -0
  107. package/src/components/business/bcBtn/bcBtn.vue +38 -0
  108. package/src/components/business/bcForm/bcForm.vue +107 -0
  109. package/src/components/business/bcForm/bcFormDrag.vue +104 -0
  110. package/src/components/business/bcForm/bcFormSearch.vue +154 -0
  111. package/src/components/business/bcForm/components/sortForm/index.ts +18 -0
  112. package/src/components/business/bcForm/components/sortForm/sortForm.vue +92 -0
  113. package/src/components/business/bcFormConfig/bcFormConfig.vue +196 -0
  114. package/src/components/business/bcFormTable/bcFormTable.vue +91 -0
  115. package/src/components/business/bcFormTable/components/bcTabs/bcTabs.vue +53 -0
  116. package/src/components/business/bcFormTable/components/contextBody/contextBody.vue +67 -0
  117. package/src/components/business/bcFormTable/components/contextBody/useContextMenu.ts +53 -0
  118. package/src/components/business/bcFormTable/components/formSearchBtn/formSearchBtn.vue +21 -0
  119. package/src/components/business/bcFormTable/methods/cellDetailMethod.ts +5 -0
  120. package/src/components/business/bcFormTable/methods/filterAgeMethod.ts +5 -0
  121. package/src/components/business/bcFormTable/methods/footerMethod.ts +25 -0
  122. package/src/components/business/bcFormTable/methods/index.ts +10 -0
  123. package/src/components/business/bcFormTable/utils/onFormKey.ts +120 -0
  124. package/src/components/business/bcFormTable/utils/onTableKey.ts +120 -0
  125. package/src/components/business/bcFormTable/utils/parseTable.ts +209 -0
  126. package/src/components/business/bcFormTable/utils/useButon.ts +19 -0
  127. package/src/components/business/bcFormTable/utils/useTableHeight.ts +44 -0
  128. package/src/components/business/bcIcon/bcIcon.vue +11 -0
  129. package/src/components/business/bcPageConfig/bcPageConfig.vue +91 -0
  130. package/src/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue +39 -0
  131. package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue +52 -0
  132. package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue +67 -0
  133. package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue +45 -0
  134. package/src/components/business/bcPageConfig/components/hsBtn/useAttrBtn.ts +73 -0
  135. package/src/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.ts +67 -0
  136. package/src/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.ts +39 -0
  137. package/src/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue +33 -0
  138. package/src/components/business/bcPageConfig/components/hsExpand/useExpand.ts +9 -0
  139. package/src/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue +64 -0
  140. package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfig.vue +180 -0
  141. package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue +52 -0
  142. package/src/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue +64 -0
  143. package/src/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue +24 -0
  144. package/src/components/business/bcPageConfig/components/hsForm/useAttrForm.ts +153 -0
  145. package/src/components/business/bcPageConfig/components/hsForm/useFormListConfig.ts +69 -0
  146. package/src/components/business/bcPageConfig/components/hsForm/useFormParse.ts +152 -0
  147. package/src/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.ts +66 -0
  148. package/src/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue +53 -0
  149. package/src/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.ts +157 -0
  150. package/src/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue +124 -0
  151. package/src/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue +36 -0
  152. package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue +51 -0
  153. package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue +53 -0
  154. package/src/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue +68 -0
  155. package/src/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue +24 -0
  156. package/src/components/business/bcPageConfig/components/hsTables/useAttrTable.ts +257 -0
  157. package/src/components/business/bcPageConfig/components/hsTables/useTableConfigList.ts +76 -0
  158. package/src/components/business/bcPageConfig/components/hsTables/useTableParse.ts +92 -0
  159. package/src/components/business/bcPageConfig/default/apis.json +24717 -0
  160. package/src/components/business/bcPageConfig/default/baseBtnConfig.ts +248 -0
  161. package/src/components/business/bcPageConfig/default/baseFormConfig.ts +396 -0
  162. package/src/components/business/bcPageConfig/default/baseTableConfig.ts +2387 -0
  163. package/src/components/business/bcPageConfig/usePageConfig.ts +547 -0
  164. package/src/components/business/bcSelect/bcSelect.vue +50 -0
  165. package/src/components/business/bcSwitchSystems/bcSwitchSystems.vue +36 -0
  166. package/src/components/business/bcSwitchSystems/useSwitchSystems.ts +73 -0
  167. package/src/components/business/bcTable/bcTable.vue +65 -0
  168. package/src/components/business/bcTable/components/sortColumn/index.ts +19 -0
  169. package/src/components/business/bcTable/components/sortColumn/sortColumn.vue +107 -0
  170. package/src/components/business/bcTable/useTable.ts +50 -0
  171. package/src/components/business/bcTable/useTableHeight.ts +24 -0
  172. package/src/components/business/bcTreeSelect/bcTreeSelect.vue +12 -0
  173. package/src/components/business/cardID/cardID.vue +24 -0
  174. package/src/components/business/cardID/type.ts +0 -0
  175. package/src/components/business/cardID/useCardID.ts +0 -0
  176. package/src/components/component.ts +190 -0
  177. package/src/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue +26 -0
  178. package/src/components/config/autocompleteAttrConfig/config.ts +170 -0
  179. package/src/components/config/baseForm.vue +175 -0
  180. package/src/components/config/buttonAttrConfig/buttonAttrConfig.vue +26 -0
  181. package/src/components/config/buttonAttrConfig/config.ts +261 -0
  182. package/src/components/config/cascaderAttrConfig/cascaderAttrConfig.vue +26 -0
  183. package/src/components/config/cascaderAttrConfig/config.ts +287 -0
  184. package/src/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue +26 -0
  185. package/src/components/config/cascaderPanelAttrConfig/config.ts +278 -0
  186. package/src/components/config/checkboxAttrConfig/checkboxAttrConfig.vue +26 -0
  187. package/src/components/config/checkboxAttrConfig/config.ts +301 -0
  188. package/src/components/config/datePickerAttrConfig/config.ts +256 -0
  189. package/src/components/config/datePickerAttrConfig/datePickerAttrConfig.vue +26 -0
  190. package/src/components/config/inputAttrConfig/config.ts +322 -0
  191. package/src/components/config/inputAttrConfig/inputAttrConfig.vue +33 -0
  192. package/src/components/config/inputAttrConfig/inputEventConfig.vue +35 -0
  193. package/src/components/config/inputNumberAttrConfig/config.ts +177 -0
  194. package/src/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue +26 -0
  195. package/src/components/config/radioAttrConfig/config.ts +212 -0
  196. package/src/components/config/radioAttrConfig/radioAttrConfig.vue +26 -0
  197. package/src/components/config/selectAttrConfig/config.ts +478 -0
  198. package/src/components/config/selectAttrConfig/selectAttrConfig.vue +26 -0
  199. package/src/components/config/switchAttrConfig/config.ts +195 -0
  200. package/src/components/config/switchAttrConfig/switchAttrConfig.vue +26 -0
  201. package/src/components/config/treeSelectAttrConfig/config.ts +625 -0
  202. package/src/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue +26 -0
  203. package/src/components/config/type/formType.ts +25 -0
  204. package/src/components/config/uploadAttrConfig/config.ts +250 -0
  205. package/src/components/config/uploadAttrConfig/uploadAttrConfig.vue +26 -0
  206. package/src/components/iconSelector/index.vue +247 -0
  207. package/src/components/iconSelector/list.vue +84 -0
  208. package/src/components/svgIcon/index.vue +61 -0
  209. package/src/directive/authDirective.ts +40 -0
  210. package/src/directive/customDirective.ts +178 -0
  211. package/src/directive/index.ts +18 -0
  212. package/src/hooks/index.ts +2 -0
  213. package/src/hooks/useCrypto.ts +36 -0
  214. package/src/hooks/useExpose.ts +60 -0
  215. package/src/layout/component/aside.vue +160 -0
  216. package/src/layout/component/columnsAside.vue +299 -0
  217. package/src/layout/component/header.vue +18 -0
  218. package/src/layout/component/main.vue +65 -0
  219. package/src/layout/footer/index.vue +25 -0
  220. package/src/layout/index.vue +53 -0
  221. package/src/layout/lockScreen/index.vue +352 -0
  222. package/src/layout/logo/index.vue +75 -0
  223. package/src/layout/main/classic.vue +73 -0
  224. package/src/layout/main/columns.vue +73 -0
  225. package/src/layout/main/defaults.vue +73 -0
  226. package/src/layout/main/transverse.vue +60 -0
  227. package/src/layout/navBars/index.vue +35 -0
  228. package/src/layout/navBars/tagsView/contextmenu.vue +133 -0
  229. package/src/layout/navBars/tagsView/tagsView.vue +737 -0
  230. package/src/layout/navBars/topBar/breadcrumb.vue +146 -0
  231. package/src/layout/navBars/topBar/closeFull.vue +53 -0
  232. package/src/layout/navBars/topBar/index.vue +107 -0
  233. package/src/layout/navBars/topBar/search.vue +123 -0
  234. package/src/layout/navBars/topBar/setings.vue +789 -0
  235. package/src/layout/navBars/topBar/user.vue +222 -0
  236. package/src/layout/navBars/topBar/userNews.vue +107 -0
  237. package/src/layout/navMenu/horizontal.vue +138 -0
  238. package/src/layout/navMenu/subItem.vue +49 -0
  239. package/src/layout/navMenu/vertical.vue +100 -0
  240. package/src/layout/routerView/iframes.vue +101 -0
  241. package/src/layout/routerView/link.vue +93 -0
  242. package/src/layout/routerView/parent.vue +104 -0
  243. package/src/layout/upgrade/index.vue +147 -0
  244. package/src/main.ts +68 -0
  245. package/src/plugins/index.ts +4 -0
  246. package/src/router/backEnd.ts +173 -0
  247. package/src/router/frontEnd.ts +155 -0
  248. package/src/router/index.ts +138 -0
  249. package/src/router/route.ts +94 -0
  250. package/src/stores/index.ts +8 -0
  251. package/src/stores/keepAliveNames.ts +38 -0
  252. package/src/stores/requestOldRoutes.ts +16 -0
  253. package/src/stores/routesList.ts +26 -0
  254. package/src/stores/tagsViewRoutes.ts +23 -0
  255. package/src/stores/themeConfig.ts +142 -0
  256. package/src/stores/userInfo.ts +65 -0
  257. package/src/style/index.scss +0 -0
  258. package/src/style/tailwind.css +29 -0
  259. package/src/theme/app.scss +333 -0
  260. package/src/theme/common/transition.scss +147 -0
  261. package/src/theme/dark.scss +255 -0
  262. package/src/theme/element.scss +321 -0
  263. package/src/theme/iconSelector.scss +31 -0
  264. package/src/theme/index.scss +8 -0
  265. package/src/theme/loading.scss +51 -0
  266. package/src/theme/media/chart.scss +94 -0
  267. package/src/theme/media/cityLinkage.scss +10 -0
  268. package/src/theme/media/date.scss +25 -0
  269. package/src/theme/media/dialog.scss +12 -0
  270. package/src/theme/media/error.scss +45 -0
  271. package/src/theme/media/form.scss +31 -0
  272. package/src/theme/media/home.scss +23 -0
  273. package/src/theme/media/index.scss +15 -0
  274. package/src/theme/media/layout.scss +63 -0
  275. package/src/theme/media/login.scss +74 -0
  276. package/src/theme/media/media.scss +13 -0
  277. package/src/theme/media/pagination.scss +15 -0
  278. package/src/theme/media/personal.scss +16 -0
  279. package/src/theme/media/scrollbar.scss +56 -0
  280. package/src/theme/media/tagsView.scss +11 -0
  281. package/src/theme/mixins/index.scss +56 -0
  282. package/src/theme/other.scss +36 -0
  283. package/src/theme/tableTool.scss +27 -0
  284. package/src/theme/waves.scss +101 -0
  285. package/src/types/auth.d.ts +46 -0
  286. package/src/types/axios.d.ts +13 -0
  287. package/src/types/components.d.ts +30 -0
  288. package/src/types/customData.d.ts +171 -0
  289. package/src/types/form.d.ts +76 -0
  290. package/src/types/formItem/autocomplete.d.ts +43 -0
  291. package/src/types/formItem/button.d.ts +39 -0
  292. package/src/types/formItem/index.ts +6 -0
  293. package/src/types/formItem/input.d.ts +66 -0
  294. package/src/types/formItem/inputNumber.d.ts +42 -0
  295. package/src/types/formItem/selelct.d.ts +54 -0
  296. package/src/types/formItem/treeSelect.d.ts +37 -0
  297. package/src/types/formTable.d.ts +207 -0
  298. package/src/types/global.d.ts +118 -0
  299. package/src/types/index.ts +6 -0
  300. package/src/types/layout.d.ts +59 -0
  301. package/src/types/mitt.d.ts +38 -0
  302. package/src/types/pinia.d.ts +92 -0
  303. package/src/types/system.ts +14 -0
  304. package/src/types/views.d.ts +331 -0
  305. package/src/utils/arrayOperation.ts +65 -0
  306. package/src/utils/authFunction.ts +38 -0
  307. package/src/utils/build.ts +124 -0
  308. package/src/utils/commonFunction.ts +64 -0
  309. package/src/utils/formatTime.ts +137 -0
  310. package/src/utils/getDataType.ts +135 -0
  311. package/src/utils/getStyleSheets.ts +101 -0
  312. package/src/utils/index.ts +16 -0
  313. package/src/utils/loading.ts +44 -0
  314. package/src/utils/mitt.ts +8 -0
  315. package/src/utils/other.ts +214 -0
  316. package/src/utils/request.ts +82 -0
  317. package/src/utils/setIconfont.ts +48 -0
  318. package/src/utils/showMessage.ts +57 -0
  319. package/src/utils/showMessageBox.ts +39 -0
  320. package/src/utils/showNotification.ts +50 -0
  321. package/src/utils/showPopup.ts +81 -0
  322. package/src/utils/storage.ts +137 -0
  323. package/src/utils/theme.ts +65 -0
  324. package/src/utils/toolsValidate.ts +370 -0
  325. package/src/utils/watermark.ts +47 -0
  326. package/src/views/config/index.vue +7 -0
  327. package/src/views/config/page/components/hsPageTree/configData.ts +3700 -0
  328. package/src/views/config/page/components/hsPageTree/src/hsPageTree.vue +30 -0
  329. package/src/views/config/page/components/hsPageTree/usePageTree.ts +49 -0
  330. package/src/views/config/page/index.vue +32 -0
  331. package/src/views/config/page/menuType.ts +10 -0
  332. package/src/views/config/page/usePage.ts +120 -0
  333. package/src/views/error/401.vue +88 -0
  334. package/src/views/error/404.vue +89 -0
  335. package/src/views/home/index.vue +63 -0
  336. package/src/views/login/component/account.vue +172 -0
  337. package/src/views/login/component/mobile.vue +72 -0
  338. package/src/views/login/component/scan.vue +63 -0
  339. package/src/views/login/index.vue +254 -0
  340. package/src/views/system/auth/index.vue +67 -0
  341. package/src/views/system/auth/useAuth.ts +72 -0
  342. package/src/views/system/auth/utils.ts +25 -0
  343. package/src/views/system/dept/dialog.vue +167 -0
  344. package/src/views/system/dept/index.vue +135 -0
  345. package/src/views/system/dic/dialog.vue +150 -0
  346. package/src/views/system/dic/index.vue +132 -0
  347. package/src/views/system/formSetting/components/hsBtn/src/hsAttrBtn.vue +39 -0
  348. package/src/views/system/formSetting/components/hsBtn/src/hsBtnConfigList.vue +52 -0
  349. package/src/views/system/formSetting/components/hsBtn/src/hsBtnItemConfig.vue +67 -0
  350. package/src/views/system/formSetting/components/hsBtn/src/hsBtnPanel.vue +45 -0
  351. package/src/views/system/formSetting/components/hsBtn/useAttrBtn.ts +73 -0
  352. package/src/views/system/formSetting/components/hsBtn/useBtnConfigList.ts +67 -0
  353. package/src/views/system/formSetting/components/hsBtn/useBtnItemConfig.ts +39 -0
  354. package/src/views/system/formSetting/components/hsExpand/src/hsExpand.vue +27 -0
  355. package/src/views/system/formSetting/components/hsExpand/useExpand.ts +9 -0
  356. package/src/views/system/formSetting/components/hsForm/src/contextmenu.vue +144 -0
  357. package/src/views/system/formSetting/components/hsForm/src/hsAttrForm.vue +100 -0
  358. package/src/views/system/formSetting/components/hsForm/src/hsFormConfig.vue +180 -0
  359. package/src/views/system/formSetting/components/hsForm/src/hsFormConfigList.vue +70 -0
  360. package/src/views/system/formSetting/components/hsForm/src/hsFormPanel.vue +155 -0
  361. package/src/views/system/formSetting/components/hsForm/src/hsFormParse.vue +33 -0
  362. package/src/views/system/formSetting/components/hsForm/useAttrForm.ts +135 -0
  363. package/src/views/system/formSetting/components/hsForm/useFormListConfig.ts +89 -0
  364. package/src/views/system/formSetting/components/hsPageTree/configData.ts +3700 -0
  365. package/src/views/system/formSetting/components/hsPageTree/src/hsPageTree.vue +30 -0
  366. package/src/views/system/formSetting/components/hsPageTree/usePageTree.ts +50 -0
  367. package/src/views/system/formSetting/components/hsSaveForm/saveFormConfig.ts +98 -0
  368. package/src/views/system/formSetting/components/hsSaveForm/src/saveForm.vue +52 -0
  369. package/src/views/system/formSetting/components/hsSaveForm/useSaveForm.ts +190 -0
  370. package/src/views/system/formSetting/components/selectConfig/config.ts +476 -0
  371. package/src/views/system/formSetting/components/selectConfig/selectConfig.vue +30 -0
  372. package/src/views/system/formSetting/data.json +360 -0
  373. package/src/views/system/formSetting/default/baseBtnConfig.ts +248 -0
  374. package/src/views/system/formSetting/default/baseFormConfig.ts +567 -0
  375. package/src/views/system/formSetting/default/baseTableConfig.ts +2352 -0
  376. package/src/views/system/formSetting/formConfig.vue +120 -0
  377. package/src/views/system/formSetting/index.vue +43 -0
  378. package/src/views/system/formSetting/menuType.d.ts +12 -0
  379. package/src/views/system/formSetting/panelConfig.json +164 -0
  380. package/src/views/system/formSetting/useForm.ts +136 -0
  381. package/src/views/system/formSetting/useFormConfig.ts +324 -0
  382. package/src/views/system/menu/dialog.vue +285 -0
  383. package/src/views/system/menu/index.vue +180 -0
  384. package/src/views/system/role/dialog.vue +236 -0
  385. package/src/views/system/role/index.vue +146 -0
  386. package/src/views/system/user/dialog.vue +187 -0
  387. package/src/views/system/user/index.vue +161 -0
  388. package/src/views/test/form/data.json +360 -0
  389. package/src/views/test/form/index.vue +24 -0
  390. package/src/views/test/table/data.json +747 -0
  391. package/src/views/test/table/formate.js +49 -0
  392. package/src/views/test/table/index.vue +53 -0
  393. package/src/views/test/test/components/hsBtn/src/hsAttrBtn.vue +58 -0
  394. package/src/views/test/test/components/hsBtn/src/hsBtnConfigList.vue +45 -0
  395. package/src/views/test/test/components/hsBtn/src/hsBtnPanel.vue +51 -0
  396. package/src/views/test/test/components/hsBtn/useAttrBtn.ts +130 -0
  397. package/src/views/test/test/components/hsBtn/useBtnConfigList.ts +73 -0
  398. package/src/views/test/test/components/hsExpand/src/hsExpand.vue +27 -0
  399. package/src/views/test/test/components/hsExpand/useExpand.ts +9 -0
  400. package/src/views/test/test/components/hsForm/src/hsAttrForm.vue +124 -0
  401. package/src/views/test/test/components/hsForm/src/hsFormConfig.vue +180 -0
  402. package/src/views/test/test/components/hsForm/src/hsFormConfigList.vue +45 -0
  403. package/src/views/test/test/components/hsForm/src/hsFormPanel.vue +151 -0
  404. package/src/views/test/test/components/hsForm/src/hsFormParse.vue +33 -0
  405. package/src/views/test/test/components/hsForm/useAttrForm.ts +109 -0
  406. package/src/views/test/test/components/hsForm/useFormListConfig.ts +69 -0
  407. package/src/views/test/test/components/hsSaveForm/saveFormConfig.ts +66 -0
  408. package/src/views/test/test/components/hsSaveForm/src/saveForm.vue +47 -0
  409. package/src/views/test/test/components/hsSaveForm/useSaveForm.ts +121 -0
  410. package/src/views/test/test/components/hsTables/src/hsAttrTable.vue +91 -0
  411. package/src/views/test/test/components/hsTables/src/hsRecursionConfig.vue +36 -0
  412. package/src/views/test/test/components/hsTables/src/hsTableConfig.vue +39 -0
  413. package/src/views/test/test/components/hsTables/src/hsTableConfigList.vue +45 -0
  414. package/src/views/test/test/components/hsTables/src/hsTablePanel.vue +55 -0
  415. package/src/views/test/test/components/hsTables/src/hsTableParse.vue +29 -0
  416. package/src/views/test/test/components/hsTables/useAttrTable.ts +124 -0
  417. package/src/views/test/test/components/hsTables/useTableConfigList.ts +76 -0
  418. package/src/views/test/test/components/selectConfig/config.ts +476 -0
  419. package/src/views/test/test/components/selectConfig/selectConfig.vue +30 -0
  420. package/src/views/test/test/data.json +360 -0
  421. package/src/views/test/test/default/baseBtnConfig.ts +216 -0
  422. package/src/views/test/test/default/baseFormConfig.ts +566 -0
  423. package/src/views/test/test/default/baseTableConfig.ts +2352 -0
  424. package/src/views/test/test/formConfig.vue +102 -0
  425. package/src/views/test/test/test.vue +28 -0
  426. package/src/views/test/test/test3.vue +24 -0
  427. package/src/views/test/test/test4.vue +108 -0
  428. package/src/views/test/test/test/345/211/257/346/234/254.vue +2424 -0
  429. package/src/views/test/test/useFormConfig.ts +192 -0
  430. package/src/views/test/test2/test2.vue +17 -0
  431. package/src/views/test/test3/test.vue +20 -0
  432. package/tailwind.config.js +12 -0
  433. package/tsconfig.json +75 -0
  434. package/vite.config.ts +121 -0
  435. package/dist/style.css +0 -1
  436. package/dist/style.css.gz +0 -0
  437. package/dist/umd/index.js +0 -210
  438. package/dist/umd/index.js.gz +0 -0
  439. /package/{dist → public}/favicon.ico +0 -0
@@ -0,0 +1,24 @@
1
+ /**
2
+ * config_type=1 表格数据类型
3
+ * config_type=2 表单数据类型 */
4
+ export interface GetBusinessFieldConfig {
5
+ code: number;
6
+ msg: string;
7
+ data: Array<{
8
+ config_name: string;
9
+ config_json: string;
10
+ company_id: string;
11
+ databaseName: string;
12
+ project_code: string;
13
+ business_json: string;
14
+ update_time: string;
15
+ config_unique_id: string;
16
+ page_name: string;
17
+ is_del: string;
18
+ field_pool_json: string;
19
+ id: string;
20
+ config_type: string;
21
+ query_order_by: string;
22
+ menu_id: string;
23
+ }>;
24
+ }
@@ -0,0 +1,260 @@
1
+ import request from '/@/utils/request';
2
+ /**
3
+ * 追加标题到参数对象中
4
+ */
5
+ const assign = (params: object, title: string) => {
6
+ return Object.assign(params, { other_log_info: { title } });
7
+ };
8
+ /**
9
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
10
+ * 接口名称: 保存新表格字段设置 - 接口地址: /scmp-web/pri/field_config/add_field
11
+ * 请求方式: post
12
+ * @param {[string]} business_json [表格字段业务json数据] 是否必填:是
13
+ * @param {[string]} config_name [配置名称] 是否必填:是
14
+ * @param {[string]} config_type [配置类型] 是否必填:是
15
+ * @param {[string]} config_unique_id [配置标识] 是否必填:是
16
+ * @param {[string]} field_json [表格字段json数据] 是否必填:是
17
+ * @param {[string]} field_pool_json [字段池json数据] 是否必填:否
18
+ * @param {[string]} id [id] 是否必填:否
19
+ * @param {[string]} menu_id [菜单id] 是否必填:是
20
+ * @param {[string]} page_name [页面名称] 是否必填:是
21
+ * @param {[string]} project_code [所属系统] 是否必填:否
22
+ * @return {[type]} [description]
23
+ */
24
+ const postAddField = <T>(data: object = {}): Promise<T> => {
25
+ data = assign(data, '保存新表格字段设置');
26
+ return request({
27
+ url: '/scmp-web/pri/field_config/add_field',
28
+ method: 'post',
29
+ data,
30
+ });
31
+ };
32
+ /**
33
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
34
+ * 接口名称: 根据菜单id查询字段信息 - 接口地址: /scmp-web/pri/field_config/get_field_by_menu
35
+ * 请求方式: get
36
+ * @param {[string]} menu_id [菜单id] 是否必填:否
37
+ * @param {[string]} project_code [所属系统] 是否必填:否
38
+ * @return {[type]} [description]
39
+ */
40
+ const getFieldByMenu = <T>(params: object = {}): Promise<T> => {
41
+ params = assign(params, '根据菜单id查询字段信息');
42
+ return request({
43
+ url: '/scmp-web/pri/field_config/get_field_by_menu',
44
+ method: 'get',
45
+ params,
46
+ });
47
+ };
48
+
49
+ /**
50
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
51
+ * 接口名称: 查询新表格字段配置列表 - 接口地址: /scmp-web/pri/field_config/get_field_list_page
52
+ * 请求方式: get
53
+ * @param {[string]} config_type [配置类型] 是否必填:否
54
+ * @param {[string]} config_unique_id [配置标识] 是否必填:否
55
+ * @param {[string]} currentPage [当前页(默认1)] 是否必填:否
56
+ * @param {[string]} pageSize [分页大小(默认10)] 是否必填:否
57
+ * @param {[string]} project_code [所属系统:精确查询] 是否必填:否
58
+ * @param {[string]} qry_page_name_like [页面名称] 是否必填:否
59
+ * @return {[type]} [description]
60
+ */
61
+ const getFieldListPage = <T>(params: object = {}): Promise<T> => {
62
+ params = assign(params, '查询新表格字段配置列表');
63
+ return request({
64
+ url: '/scmp-web/pri/field_config/get_field_list_page',
65
+ method: 'get',
66
+ params,
67
+ });
68
+ };
69
+ /**
70
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
71
+ * 接口名称: 删除新表格字段配置 - 接口地址: /scmp-web/pri/field_config/del_field_by_id
72
+ * 请求方式: post
73
+ * @param {[string]} id [id] 是否必填:否
74
+ * @param {[]} params [params] 是否必填:是
75
+ * @return {[type]} [description]
76
+ */
77
+ const postDelFieldById = <T>(data: object = {}): Promise<T> => {
78
+ data = assign(data, '删除新表格字段配置');
79
+ return request({
80
+ url: '/scmp-web/pri/field_config/del_field_by_id',
81
+ method: 'post',
82
+ data,
83
+ });
84
+ };
85
+
86
+ /**
87
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
88
+ * 接口名称: 保存新表格字段设置 - 接口地址: /scmp-web/pri/field_config/save_field_4_table
89
+ * 请求方式: post
90
+ * @param {[string]} business_json [表格字段业务json数据] 是否必填:是
91
+ * @param {[string]} config_name [配置名称] 是否必填:是
92
+ * @param {[string]} config_type [配置类型表格:1 表单:2] 是否必填:是
93
+ * @param {[string]} config_unique_id [配置标识] 是否必填:是
94
+ * @param {[string]} field_json [表格/表单字段json数据] 是否必填:是
95
+ * @param {[string]} field_pool_json [字段池json数据] 是否必填:否
96
+ * @param {[string]} id [id] 是否必填:否
97
+ * @param {[string]} menu_id [菜单id] 是否必填:是
98
+ * @param {[string]} page_name [页面名称] 是否必填:是
99
+ * @param {[string]} project_code [所属系统] 是否必填:否
100
+ * @return {[type]} [description]
101
+ */
102
+ const postSaveField4Table = <T>(data: object = {}): Promise<T> => {
103
+ data = assign(data, '保存新表格字段设置');
104
+ return request({
105
+ url: '/scmp-web/pri/field_config/save_field_4_table',
106
+ method: 'post',
107
+ data,
108
+ });
109
+ };
110
+ /**
111
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
112
+ * 接口名称: 保存新表单字段设置 - 接口地址: /scmp-web/pri/field_config/save_field_4_form
113
+ * 请求方式: post
114
+ * @param {[string]} business_json [表格字段业务json数据] 是否必填:是
115
+ * @param {[string]} config_name [配置名称] 是否必填:是
116
+ * @param {[string]} config_type [配置类型表格:1 表单:2] 是否必填:是
117
+ * @param {[string]} config_unique_id [配置标识] 是否必填:是
118
+ * @param {[string]} field_json [表格/表单字段json数据] 是否必填:是
119
+ * @param {[string]} field_pool_json [字段池json数据] 是否必填:否
120
+ * @param {[string]} id [id] 是否必填:否
121
+ * @param {[string]} menu_id [菜单id] 是否必填:是
122
+ * @param {[string]} page_name [页面名称] 是否必填:是
123
+ * @param {[string]} project_code [所属系统] 是否必填:否
124
+ * @return {[type]} [description]
125
+ */
126
+ const postSaveField4Form = <T>(data: object = {}): Promise<T> => {
127
+ data = assign(data, '保存新表单字段设置');
128
+ return request({
129
+ url: '/scmp-web/pri/field_config/save_field_4_form',
130
+ method: 'post',
131
+ data,
132
+ });
133
+ };
134
+
135
+ /**
136
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
137
+ * 接口名称: 根据菜单id查询字段信息 - 接口地址: /scmp-web/pri/field_config/get_table_by_menu
138
+ * 请求方式: get
139
+ * @param {[string]} menu_id [菜单id] 是否必填:否
140
+ * @param {[string]} project_code [所属系统] 是否必填:否
141
+ * @return {[type]} [description]
142
+ */
143
+ const getTableByMenu = <T>(params: object = {}): Promise<T> => {
144
+ params = assign(params, '根据菜单id查询字段信息');
145
+ return request({
146
+ url: '/scmp-web/pri/field_config/get_table_by_menu',
147
+ method: 'get',
148
+ params,
149
+ });
150
+ };
151
+ /**
152
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
153
+ * 接口名称: 根据菜单id查询字段信息 - 接口地址: /scmp-web/pri/field_config/get_form_by_menu
154
+ * 请求方式: get
155
+ * @param {[string]} menu_id [菜单id] 是否必填:否
156
+ * @param {[string]} project_code [所属系统] 是否必填:否
157
+ * @return {[type]} [description]
158
+ */
159
+ const getFormByMenu = <T>(params: object = {}): Promise<T> => {
160
+ params = assign(params, '根据菜单id查询字段信息');
161
+ return request({
162
+ url: '/scmp-web/pri/field_config/get_form_by_menu',
163
+ method: 'get',
164
+ params,
165
+ });
166
+ };
167
+
168
+ /**
169
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
170
+ * 接口名称: 查询字段池匹配字段 - 接口地址: /scmp-web/pri/field_config/get_field_pool_list
171
+ * 请求方式: get
172
+ * @param {[string]} currentPage [当前页(默认1)] 是否必填:否
173
+ * @param {[string]} field_type [默认类型] 是否必填:否
174
+ * @param {[string]} pageSize [分页大小(默认10)] 是否必填:否
175
+ * @param {[string]} project_code [所属系统] 是否必填:否
176
+ * @param {[string]} qry_field_code_like [模糊查询:字段代码] 是否必填:否
177
+ * @param {[string]} qry_field_name_like [模糊查询:字段名称] 是否必填:否
178
+ * @param {[string]} qry_info_like [模糊查询:字段名称和字段代码] 是否必填:否
179
+ * @return {[type]} [description]
180
+ */
181
+ const getFieldPoolList = <T>(params: object = {}): Promise<T> => {
182
+ params = assign(params, '查询字段池匹配字段');
183
+ return request({
184
+ url: '/scmp-web/pri/field_config/get_field_pool_list',
185
+ method: 'get',
186
+ params,
187
+ });
188
+ };
189
+
190
+ /**
191
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
192
+ * 接口名称: 根据表名和系统名称查询字段配置 - 接口地址: /scmp-web/pri/field_config/get_field_by_table
193
+ * 请求方式: get
194
+ * @param {[string]} project_code [所属系统] 是否必填:否
195
+ * @param {[string]} table_name [类名] 是否必填:否
196
+ * @return {[type]} [description]
197
+ */
198
+ const getFieldByTable = <T>(params: object = {}): Promise<T> => {
199
+ params = assign(params, '根据表名和系统名称查询字段配置');
200
+ return request({
201
+ url: '/scmp-web/pri/field_config/get_field_by_table',
202
+ method: 'get',
203
+ params,
204
+ });
205
+ };
206
+ /**
207
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
208
+ * 接口名称: 保存表格字段池在配置页面使用 - 接口地址: /scmp-web/pri/field_config/save_field_pool_4_config
209
+ * 请求方式: post
210
+ * @param {[string]} field_code [字段代码] 是否必填:否
211
+ * @param {[string]} field_name [默认名称] 是否必填:否
212
+ * @param {[string]} field_type [配置类型] 是否必填:否
213
+ * @param {[string]} id [id] 是否必填:否
214
+ * @param {[string]} json_data [配置信息] 是否必填:否
215
+ * @param {[string]} project_code [所属系统] 是否必填:否
216
+ * @return {[type]} [description]
217
+ */
218
+ const postSaveFieldPool4Config = <T>(data: object = {}): Promise<T> => {
219
+ data = assign(data, '保存表格字段池在配置页面使用');
220
+ return request({
221
+ url: '/scmp-web/pri/field_config/save_field_pool_4_config',
222
+ method: 'post',
223
+ data,
224
+ });
225
+ };
226
+
227
+ /**
228
+ * 接口分类: 新表格字段设置操作接口 - FieldConfigController
229
+ * 接口名称: 根据字段代码集合获取字段池信息 - 接口地址: /scmp-web/pri/field_config/get_pool_by_field_map
230
+ * 请求方式: post
231
+ * @param {[string]} fieldCodes [字段代码集合 ['name','phone']]] 是否必填:否
232
+ * @param {[string]} field_type [默认类型] 是否必填:否
233
+ * @param {[]} params [params] 是否必填:是
234
+ * @param {[string]} project_code [所属系统] 是否必填:否
235
+ * @return {[type]} [description]
236
+ */
237
+ const getPoolByFieldMap = <T>(data: object = {}): Promise<T> => {
238
+ data = assign(data, '根据字段代码集合获取字段池信息');
239
+ return request({
240
+ url: '/scmp-web/pri/field_config/get_pool_by_field_map',
241
+ method: 'post',
242
+ data,
243
+ });
244
+ };
245
+ export function useFieldConfigController() {
246
+ return {
247
+ postAddField,
248
+ getFieldByMenu,
249
+ getFieldListPage,
250
+ postDelFieldById,
251
+ postSaveField4Table,
252
+ postSaveField4Form,
253
+ getTableByMenu,
254
+ getFormByMenu,
255
+ getFieldPoolList,
256
+ getFieldByTable,
257
+ postSaveFieldPool4Config,
258
+ getPoolByFieldMap,
259
+ };
260
+ }
@@ -0,0 +1,224 @@
1
+ export interface GetFieldByMenu {
2
+ code: number;
3
+ msg: string;
4
+ data: Array<{
5
+ databaseName: string;
6
+ id: string;
7
+ qry_create_time_begin: object;
8
+ qry_create_time_end: object;
9
+ is_del: string;
10
+ query_order_by: string;
11
+ page: object;
12
+ customSql: object;
13
+ customResult: object;
14
+ customWhere: object;
15
+ customSelect: object;
16
+ customResultTotal: object;
17
+ customDataWhere: object;
18
+ menu_id: string;
19
+ distinct_flag: object;
20
+ distinct_sql: object;
21
+ district_code: object;
22
+ township_code: object;
23
+ city_code_str: object;
24
+ district_code_str: object;
25
+ qry_city_code_in_list: object;
26
+ qry_district_code_in_list: object;
27
+ qry_data_way_str: object;
28
+ qry_company_type_str: object;
29
+ create_time: string;
30
+ update_time: string;
31
+ company_id: string;
32
+ page_name: string;
33
+ field_json: string;
34
+ business_json: string;
35
+ config_name: string;
36
+ config_unique_id: string;
37
+ config_type: string;
38
+ project_code: string;
39
+ field_pool_json: object;
40
+ qry_page_name_like: object;
41
+ id_ne: object;
42
+ project_code_ne: object;
43
+ }>;
44
+ }
45
+ export interface GetTableByMenu {
46
+ code: number;
47
+ msg: string;
48
+ data: Array<{
49
+ databaseName: string;
50
+ id: string;
51
+ qry_create_time_begin: object;
52
+ qry_create_time_end: object;
53
+ is_del: string;
54
+ query_order_by: string;
55
+ page: object;
56
+ customSql: object;
57
+ customResult: object;
58
+ customWhere: object;
59
+ customSelect: object;
60
+ customResultTotal: object;
61
+ customDataWhere: object;
62
+ menu_id: string;
63
+ distinct_flag: object;
64
+ distinct_sql: object;
65
+ district_code: object;
66
+ township_code: object;
67
+ city_code_str: object;
68
+ district_code_str: object;
69
+ qry_city_code_in_list: object;
70
+ qry_district_code_in_list: object;
71
+ qry_data_way_str: object;
72
+ qry_company_type_str: object;
73
+ create_time: string;
74
+ update_time: string;
75
+ company_id: string;
76
+ page_name: string;
77
+ field_json: string;
78
+ business_json: string;
79
+ config_name: string;
80
+ config_unique_id: string;
81
+ config_type: string;
82
+ project_code: string;
83
+ field_pool_json: object;
84
+ config_json: object;
85
+ qry_page_name_like: object;
86
+ id_ne: object;
87
+ project_code_ne: object;
88
+ }>;
89
+ }
90
+ export interface GetFormByMenu {
91
+ code: number;
92
+ msg: string;
93
+ data: Array<{
94
+ databaseName: string;
95
+ id: string;
96
+ qry_create_time_begin: object;
97
+ qry_create_time_end: object;
98
+ is_del: string;
99
+ query_order_by: string;
100
+ page: object;
101
+ customSql: object;
102
+ customResult: object;
103
+ customWhere: object;
104
+ customSelect: object;
105
+ customResultTotal: object;
106
+ customDataWhere: object;
107
+ menu_id: string;
108
+ distinct_flag: object;
109
+ distinct_sql: object;
110
+ district_code: object;
111
+ township_code: object;
112
+ city_code_str: object;
113
+ district_code_str: object;
114
+ qry_city_code_in_list: object;
115
+ qry_district_code_in_list: object;
116
+ qry_data_way_str: object;
117
+ qry_company_type_str: object;
118
+ create_time: string;
119
+ update_time: string;
120
+ company_id: string;
121
+ page_name: string;
122
+ field_json: string;
123
+ business_json: string;
124
+ config_name: string;
125
+ config_unique_id: string;
126
+ config_type: string;
127
+ project_code: string;
128
+ field_pool_json: object;
129
+ config_json: object;
130
+ qry_page_name_like: object;
131
+ id_ne: object;
132
+ project_code_ne: object;
133
+ }>;
134
+ }
135
+
136
+ export interface GetFieldPoolList {
137
+ code: number;
138
+ msg: string;
139
+ data: Array<{
140
+ create_time: number;
141
+ field_code: string;
142
+ project_code: string;
143
+ id: string;
144
+ field_type: string;
145
+ json_data: string;
146
+ field_name: string;
147
+ }>;
148
+ }
149
+ export interface PostDelFieldById {
150
+ code: number;
151
+ msg: string;
152
+ data: string;
153
+ }
154
+
155
+ export interface FetFieldByTable {
156
+ code: number;
157
+ msg: string;
158
+ data: Array<{ column_name: string; column_comment: string }>;
159
+ }
160
+ export interface PostRequest {
161
+ code: number;
162
+ msg: string;
163
+ data: string;
164
+ }
165
+
166
+ interface PoolFieldMap {
167
+ databaseName: string;
168
+ id: string;
169
+ qry_create_time_begin: object;
170
+ qry_create_time_end: object;
171
+ is_del: string;
172
+ query_order_by: string;
173
+ page: object;
174
+ customSql: object;
175
+ customResult: object;
176
+ customWhere: object;
177
+ customSelect: object;
178
+ customResultTotal: object;
179
+ customDataWhere: object;
180
+ menu_id: object;
181
+ distinct_flag: object;
182
+ distinct_sql: object;
183
+ district_code: object;
184
+ township_code: object;
185
+ city_code_str: object;
186
+ district_code_str: object;
187
+ qry_city_code_in_list: object;
188
+ qry_district_code_in_list: object;
189
+ qry_data_way_str: object;
190
+ qry_company_type_str: object;
191
+ create_time: string;
192
+ update_time: string;
193
+ company_id: string;
194
+ field_code: string;
195
+ field_name: string;
196
+ field_type: string;
197
+ json_data: string;
198
+ project_code: string;
199
+ qry_field_code_like: object;
200
+ qry_field_name_like: object;
201
+ qry_info_like: object;
202
+ id_ne: object;
203
+ project_code_ne: object;
204
+ qry_field_code_in_list: object;
205
+ }
206
+ export interface FieldConfigGetPoolByFieldMap {
207
+ code: number;
208
+ msg: string;
209
+ data: {
210
+ [key: string]: PoolFieldMap;
211
+ };
212
+ }
213
+ // ==================== FieldConfigGetFieldByTable 【start】 ================
214
+ export interface FieldConfigSystemTableField {
215
+ column_name: string;
216
+ column_comment: string;
217
+ json_data: string;
218
+ }
219
+ export interface FieldConfigGetFieldByTable {
220
+ code: number;
221
+ msg: string;
222
+ data: Array<FieldConfigSystemTableField>;
223
+ }
224
+ // ==================== FieldConfigGetFieldByTable 【end】 ================
@@ -0,0 +1,14 @@
1
+ export * from './loginController';
2
+ export type * from './loginController/type';
3
+
4
+ export * from './menuController';
5
+ export * from './menuController/type';
6
+
7
+ export * from './systemController';
8
+ export * from './systemController/type';
9
+
10
+ export * from './fieldConfigController';
11
+ export * from './fieldConfigController/type';
12
+
13
+ export * from './businessController';
14
+ export * from './businessController/type';
@@ -0,0 +1,78 @@
1
+ import request from '/@/utils/request';
2
+ /**
3
+ * 追加标题到参数对象中
4
+ */
5
+ const assign = (params: object, title: string) => {
6
+ return Object.assign(params, { title });
7
+ };
8
+ /**
9
+ * 接口分类: 登录相关接口 - LoginController
10
+ * 接口名称: ajax登录方法 - 接口地址: /cms-web/ajaxLogin
11
+ * 请求方式: post
12
+ * @param {[string]} account [用户名] 是否必填:是
13
+ * @param {[string]} code [验证码] 是否必填:是
14
+ * @param {[string]} pwd [密码(md5加密一次)] 是否必填:是
15
+ * @param {[string]} replenish_flag [补货标志:1 = 补货员登录] 是否必填:否
16
+ * @return {[type]} [description]
17
+ */
18
+ const postAjaxLogin = (params: object = {}) => {
19
+ params = assign(params, 'ajax登录方法');
20
+ return request({
21
+ url: '/cms-web/ajaxLogin',
22
+ method: 'post',
23
+ params,
24
+ });
25
+ };
26
+ /**
27
+ * 接口分类: 登录相关接口 - LoginController
28
+ * 接口名称: 加盟商登录 - 接口地址: /cms-web/ajaxLogin4Franchisee
29
+ * 请求方式: post
30
+ * @param {[string]} code [验证码] 是否必填:是
31
+ * @param {[string]} user_account [用户名] 是否必填:是
32
+ * @param {[string]} user_pwd [密码(md5加密一次)] 是否必填:是
33
+ * @return {[type]} [description]
34
+ */
35
+ const postAjaxLogin4Franchisee = (params: object = {}) => {
36
+ params = assign(params, '加盟商登录');
37
+ return request({
38
+ url: '/cms-web/ajaxLogin4Franchisee',
39
+ method: 'post',
40
+ params,
41
+ });
42
+ };
43
+ /**
44
+ * 接口分类: 登录相关接口 - LoginController
45
+ * 接口名称: ajax登出方法 - 接口地址: /cms-web/ajaxLogout
46
+ * 请求方式: post
47
+ * @return {[type]} [description]
48
+ */
49
+ const postAjaxLogout = (params: object = {}) => {
50
+ params = assign(params, 'ajax登出方法');
51
+ return request({
52
+ url: '/cms-web/ajaxLogout',
53
+ method: 'post',
54
+ params,
55
+ });
56
+ };
57
+ /**
58
+ * 接口分类: 登录相关接口 - LoginController
59
+ * 接口名称: 获取验证码图片以及验证码code值 - 接口地址: /cms-web/validateCode
60
+ * 请求方式: get
61
+ * @return {[type]} [description]
62
+ */
63
+ const getValidateCode = (params: object = {}) => {
64
+ params = assign(params, '获取验证码图片以及验证码code值');
65
+ return request({
66
+ url: '/cms-web/validateCode',
67
+ method: 'get',
68
+ params,
69
+ });
70
+ };
71
+ export function useLoginController() {
72
+ return {
73
+ postAjaxLogin,
74
+ postAjaxLogin4Franchisee,
75
+ postAjaxLogout,
76
+ getValidateCode,
77
+ };
78
+ }
@@ -0,0 +1,74 @@
1
+ import request from '/@/utils/request';
2
+ /**
3
+ * 追加标题到参数对象中
4
+ */
5
+ const assign = (params: object, title: string) => {
6
+ return Object.assign(params, { other_log_info: { title } });
7
+ };
8
+ /**
9
+ * 接口分类: 登录相关接口 - LoginController
10
+ * 接口名称: ajax登录方法 - 接口地址: /scmp-web/ajaxLogin
11
+ * 请求方式: post
12
+ * @param {[string]} account [用户名] 是否必填:是
13
+ * @param {[string]} code [验证码] 是否必填:是
14
+ * @param {[string]} pwd [密码(md5加密一次)] 是否必填:是
15
+ * @return {[type]} [description]
16
+ */
17
+ const postAjaxLogin = <T>(data: object = {}): Promise<T> => {
18
+ data = assign(data, 'ajax登录方法');
19
+ return request({
20
+ url: '/scmp-web/ajaxLogin',
21
+ method: 'post',
22
+ data,
23
+ });
24
+ };
25
+ /**
26
+ * 接口分类: 登录相关接口 - LoginController
27
+ * 接口名称: ajax登出方法 - 接口地址: /scmp-web/ajaxLogout
28
+ * 请求方式: post
29
+ * @return {[type]} [description]
30
+ */
31
+ const postAjaxLogout = <T>(data: object = {}): Promise<T> => {
32
+ data = assign(data, 'ajax登出方法');
33
+ return request({
34
+ url: '/scmp-web/ajaxLogout',
35
+ method: 'post',
36
+ data,
37
+ });
38
+ };
39
+ /**
40
+ * 接口分类: 登录相关接口 - LoginController
41
+ * 接口名称: 获取sid - 接口地址: /scmp-web/get_sid
42
+ * 请求方式: get
43
+ * @return {[type]} [description]
44
+ */
45
+ const getSid = <T>(params: object = {}): Promise<T> => {
46
+ params = assign(params, '获取sid');
47
+ return request({
48
+ url: '/scmp-web/get_sid',
49
+ method: 'get',
50
+ params,
51
+ });
52
+ };
53
+ /**
54
+ * 接口分类: 登录相关接口 - LoginController
55
+ * 接口名称: 获取验证码图片以及验证码code值 - 接口地址: /scmp-web/validateCode
56
+ * 请求方式: get
57
+ * @return {[type]} [description]
58
+ */
59
+ const getValidateCode = <T>(params: object = {}): Promise<T> => {
60
+ params = assign(params, '获取验证码图片以及验证码code值');
61
+ return request({
62
+ url: '/scmp-web/validateCode',
63
+ method: 'get',
64
+ params,
65
+ });
66
+ };
67
+ export function useLoginController() {
68
+ return {
69
+ postAjaxLogin,
70
+ postAjaxLogout,
71
+ getSid,
72
+ getValidateCode,
73
+ };
74
+ }
@@ -0,0 +1 @@
1
+ export interface PostAjaxLogin {}