hs-admin-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +11 -0
- package/.env.development +5 -0
- package/.env.production +5 -0
- package/.eslintignore +18 -0
- package/.eslintrc.js +104 -0
- package/.prettierrc.js +39 -0
- package/.vite/deps_temp_3669a513/chunk-FVXAE7ZR.js +11400 -0
- package/.vite/deps_temp_3669a513/chunk-ZS7NZCD4.js +36 -0
- package/.vite/deps_temp_3669a513/default-passive-events.js +25 -0
- package/.vite/deps_temp_3669a513/element-plus.js +65013 -0
- package/.vite/deps_temp_3669a513/lodash.js +5497 -0
- package/.vite/deps_temp_3669a513/package.json +3 -0
- package/.vite/deps_temp_3669a513/vue.js +324 -0
- package/.vite/deps_temp_3669a513/vxe-table.js +32336 -0
- package/CHANGELOG.md +1 -0
- package/LICENSE +21 -0
- package/README.md +0 -0
- package/directoryList.md +180 -0
- package/package.json +78 -0
- package/postcss.config.js +7 -0
- package/src/App.vue +88 -0
- package/src/api/fieldConfigController/index.ts +76 -0
- package/src/api/fieldConfigController/type.ts +44 -0
- package/src/api/login/index.ts +78 -0
- package/src/api/loginController/index.ts +74 -0
- package/src/api/menu/index.ts +34 -0
- package/src/api/menu/index2.ts +291 -0
- package/src/api/menuController/index.ts +189 -0
- package/src/api/systemController/index.ts +26 -0
- package/src/api/systemController/type.ts +16 -0
- package/src/api/test/index.ts +22 -0
- package/src/api/user/index.ts +30 -0
- package/src/assets/404.png +0 -0
- package/src/assets/logo-main.svg +12 -0
- package/src/assets/logo-mini.svg +12 -0
- package/src/components/base/hsAffix/src/hsAffix.vue +22 -0
- package/src/components/base/hsAlert/src/hsAlert.vue +15 -0
- package/src/components/base/hsAutocomplete/src/hsAutocomplete.vue +36 -0
- package/src/components/base/hsButton/src/hsButton.vue +26 -0
- package/src/components/base/hsButton/src/hsButtonGroup.vue +8 -0
- package/src/components/base/hsButton/useButtonEvents.ts +19 -0
- package/src/components/base/hsCalendar/src/hsCalendar.vue +36 -0
- package/src/components/base/hsCarousel/src/hsCarousel.vue +15 -0
- package/src/components/base/hsCarousel/src/hsCarouselItem.vue +15 -0
- package/src/components/base/hsCascader/src/hsCascader.vue +36 -0
- package/src/components/base/hsCascader/src/hsCascaderPanel.vue +29 -0
- package/src/components/base/hsCheckbox/src/hsCheckbox.vue +32 -0
- package/src/components/base/hsCheckbox/src/hsCheckboxButton.vue +18 -0
- package/src/components/base/hsCheckbox/src/hsCheckboxGroup.vue +32 -0
- package/src/components/base/hsCol/src/hsCol.vue +20 -0
- package/src/components/base/hsCollapse/src/hsCollapse.vue +36 -0
- package/src/components/base/hsCollapse/src/hsCollapseItem.vue +22 -0
- package/src/components/base/hsColorPicker/src/hsColorPicker.vue +32 -0
- package/src/components/base/hsDatePicker/src/hsDatePicker.vue +40 -0
- package/src/components/base/hsDialog/src/hsDialog.vue +36 -0
- package/src/components/base/hsDrawer/src/hsDrawer.vue +29 -0
- package/src/components/base/hsDropdown/src/hsDropdown.vue +15 -0
- package/src/components/base/hsDropdown/src/hsDropdownItem.vue +15 -0
- package/src/components/base/hsDropdown/src/hsDropdownMenu.vue +15 -0
- package/src/components/base/hsForm/src/hsForm.vue +23 -0
- package/src/components/base/hsForm/src/hsFormItem.vue +22 -0
- package/src/components/base/hsGetApi/src/hsGetApis.vue +231 -0
- package/src/components/base/hsGetApi/useGetApis.ts +158 -0
- package/src/components/base/hsInput/src/hsInput.vue +40 -0
- package/src/components/base/hsInput/useInputEvents.ts +52 -0
- package/src/components/base/hsInputNumber/src/hsInputNumber.vue +31 -0
- package/src/components/base/hsPopconfirm/src/hsPopconfirm.vue +15 -0
- package/src/components/base/hsPopover/src/hsPopover.vue +22 -0
- package/src/components/base/hsProgress/src/hsProgress.vue +15 -0
- package/src/components/base/hsRadio/src/hsRadio.vue +32 -0
- package/src/components/base/hsRadio/src/hsRadioButton.vue +18 -0
- package/src/components/base/hsRadio/src/hsRadioGroup.vue +32 -0
- package/src/components/base/hsRate/src/hsRate.vue +33 -0
- package/src/components/base/hsResult/src/hsResult.vue +15 -0
- package/src/components/base/hsRow/src/hsRow.vue +20 -0
- package/src/components/base/hsScrollbar/src/hsScrollbar.vue +22 -0
- package/src/components/base/hsSelect/src/hsOption.vue +8 -0
- package/src/components/base/hsSelect/src/hsOptionGroup.vue +8 -0
- package/src/components/base/hsSelect/src/hsSelect.vue +42 -0
- package/src/components/base/hsSelect/useSelectEvents.ts +60 -0
- package/src/components/base/hsSlider/src/hsSlider.vue +25 -0
- package/src/components/base/hsSteps/src/hsStep.vue +15 -0
- package/src/components/base/hsSteps/src/hsSteps.vue +15 -0
- package/src/components/base/hsSwitch/src/hsSwitch.vue +35 -0
- package/src/components/base/hsTable/hsBCTable.vue +116 -0
- package/src/components/base/hsTable/hsTable copy.vue +226 -0
- package/src/components/base/hsTable/hsTable.vue +213 -0
- package/src/components/base/hsTable/useHsTableConfig.ts +95 -0
- package/src/components/base/hsTable/useTableEvents.ts +118 -0
- package/src/components/base/hsTabs/src/hsTabPane.vue +15 -0
- package/src/components/base/hsTabs/src/hsTabs.vue +29 -0
- package/src/components/base/hsTag/src/hsCheckTag.vue +16 -0
- package/src/components/base/hsTag/src/hsTag.vue +15 -0
- package/src/components/base/hsTest/HsTest.vue +320 -0
- package/src/components/base/hsTooltip/src/hsTooltip.vue +22 -0
- package/src/components/base/hsTour/src/hsTour.vue +31 -0
- package/src/components/base/hsTour/src/hsTourStep.vue +15 -0
- package/src/components/base/hsTransfer/src/hsTransfer.vue +36 -0
- package/src/components/base/hsTree/src/hsTree.vue +24 -0
- package/src/components/base/hsTreeSelect/src/hsTreeSelect.vue +39 -0
- package/src/components/base/hsUpload/src/hsUpload.vue +32 -0
- package/src/components/base/hsWatermark/src/hsWatermark.vue +15 -0
- package/src/components/business/bcAutoComplete/bcAutoComplete.vue +38 -0
- package/src/components/business/bcAutoComplete/defaultData.ts +25 -0
- package/src/components/business/bcAutoComplete/useAutoComplete.ts +65 -0
- package/src/components/business/bcBtn/bcBtn.vue +40 -0
- package/src/components/business/bcForm/bcForm.vue +113 -0
- package/src/components/business/bcForm/bcFormDrag.vue +104 -0
- package/src/components/business/bcForm/bcFormSearch.vue +154 -0
- package/src/components/business/bcForm/components/sortForm/index.ts +18 -0
- package/src/components/business/bcForm/components/sortForm/sortForm.vue +92 -0
- package/src/components/business/bcFormConfig/bcFormConfig.vue +196 -0
- package/src/components/business/bcFormTable/bcFormTable.vue +91 -0
- package/src/components/business/bcFormTable/components/bcTabs/bcTabs.vue +53 -0
- package/src/components/business/bcFormTable/components/contextBody/contextBody.vue +67 -0
- package/src/components/business/bcFormTable/components/contextBody/useContextMenu.ts +53 -0
- package/src/components/business/bcFormTable/components/formSearchBtn/formSearchBtn.vue +21 -0
- package/src/components/business/bcFormTable/methods/cellDetailMethod.ts +5 -0
- package/src/components/business/bcFormTable/methods/filterAgeMethod.ts +5 -0
- package/src/components/business/bcFormTable/methods/footerMethod.ts +25 -0
- package/src/components/business/bcFormTable/methods/index.ts +10 -0
- package/src/components/business/bcFormTable/utils/onFormKey.ts +121 -0
- package/src/components/business/bcFormTable/utils/onTableKey.ts +119 -0
- package/src/components/business/bcFormTable/utils/parseTable.ts +201 -0
- package/src/components/business/bcFormTable/utils/useButon.ts +20 -0
- package/src/components/business/bcFormTable/utils/useTableHeight.ts +44 -0
- package/src/components/business/bcPageConfig/bcPageConfig.vue +79 -0
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue +39 -0
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue +45 -0
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue +32 -0
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue +45 -0
- package/src/components/business/bcPageConfig/components/hsBtn/useAttrBtn.ts +58 -0
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.ts +71 -0
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.ts +35 -0
- package/src/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue +33 -0
- package/src/components/business/bcPageConfig/components/hsExpand/useExpand.ts +9 -0
- package/src/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue +54 -0
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfig.vue +180 -0
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue +45 -0
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue +64 -0
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue +24 -0
- package/src/components/business/bcPageConfig/components/hsForm/useAttrForm.ts +108 -0
- package/src/components/business/bcPageConfig/components/hsForm/useFormListConfig.ts +69 -0
- package/src/components/business/bcPageConfig/components/hsForm/useFormParse.ts +120 -0
- package/src/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.ts +66 -0
- package/src/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue +48 -0
- package/src/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.ts +148 -0
- package/src/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue +122 -0
- package/src/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue +36 -0
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue +51 -0
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue +46 -0
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue +68 -0
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue +24 -0
- package/src/components/business/bcPageConfig/components/hsTables/useAttrTable.ts +218 -0
- package/src/components/business/bcPageConfig/components/hsTables/useTableConfigList.ts +77 -0
- package/src/components/business/bcPageConfig/components/hsTables/useTableParse.ts +78 -0
- package/src/components/business/bcPageConfig/default/apis.json +24712 -0
- package/src/components/business/bcPageConfig/default/baseBtnConfig.ts +256 -0
- package/src/components/business/bcPageConfig/default/baseFormConfig.ts +380 -0
- package/src/components/business/bcPageConfig/default/baseTableConfig.ts +2399 -0
- package/src/components/business/bcPageConfig/usePageConfig.ts +469 -0
- package/src/components/business/bcSelect/bcSelect.vue +50 -0
- package/src/components/business/bcSwitchSystems/bcSwitchSystems.vue +36 -0
- package/src/components/business/bcSwitchSystems/useSwitchSystems.ts +74 -0
- package/src/components/business/bcTable/bcTable.vue +63 -0
- package/src/components/business/bcTable/components/sortColumn/index.ts +19 -0
- package/src/components/business/bcTable/components/sortColumn/sortColumn.vue +107 -0
- package/src/components/business/bcTable/useTable.ts +51 -0
- package/src/components/business/bcTable/useTableHeight.ts +24 -0
- package/src/components/business/bcTreeSelect/bcTreeSelect.vue +12 -0
- package/src/components/business/cardID/cardID.vue +24 -0
- package/src/components/business/cardID/type.ts +0 -0
- package/src/components/business/cardID/useCardID.ts +0 -0
- package/src/components/component.ts +188 -0
- package/src/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue +26 -0
- package/src/components/config/autocompleteAttrConfig/config.ts +170 -0
- package/src/components/config/baseForm.vue +175 -0
- package/src/components/config/buttonAttrConfig/buttonAttrConfig.vue +26 -0
- package/src/components/config/buttonAttrConfig/config.ts +261 -0
- package/src/components/config/cascaderAttrConfig/cascaderAttrConfig.vue +26 -0
- package/src/components/config/cascaderAttrConfig/config.ts +287 -0
- package/src/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue +26 -0
- package/src/components/config/cascaderPanelAttrConfig/config.ts +278 -0
- package/src/components/config/checkboxAttrConfig/checkboxAttrConfig.vue +26 -0
- package/src/components/config/checkboxAttrConfig/config.ts +301 -0
- package/src/components/config/datePickerAttrConfig/config.ts +256 -0
- package/src/components/config/datePickerAttrConfig/datePickerAttrConfig.vue +26 -0
- package/src/components/config/inputAttrConfig/config.ts +322 -0
- package/src/components/config/inputAttrConfig/inputAttrConfig.vue +33 -0
- package/src/components/config/inputAttrConfig/inputEventConfig.vue +35 -0
- package/src/components/config/inputNumberAttrConfig/config.ts +177 -0
- package/src/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue +26 -0
- package/src/components/config/radioAttrConfig/config.ts +212 -0
- package/src/components/config/radioAttrConfig/radioAttrConfig.vue +26 -0
- package/src/components/config/selectAttrConfig/config.ts +478 -0
- package/src/components/config/selectAttrConfig/selectAttrConfig.vue +26 -0
- package/src/components/config/switchAttrConfig/config.ts +195 -0
- package/src/components/config/switchAttrConfig/switchAttrConfig.vue +26 -0
- package/src/components/config/treeSelectAttrConfig/config.ts +625 -0
- package/src/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue +26 -0
- package/src/components/config/type/formType.ts +25 -0
- package/src/components/config/uploadAttrConfig/config.ts +250 -0
- package/src/components/config/uploadAttrConfig/uploadAttrConfig.vue +26 -0
- package/src/components/iconSelector/index.vue +247 -0
- package/src/components/iconSelector/list.vue +84 -0
- package/src/components/svgIcon/index.vue +61 -0
- package/src/directive/authDirective.ts +40 -0
- package/src/directive/customDirective.ts +178 -0
- package/src/directive/index.ts +18 -0
- package/src/hooks/useCrypto.ts +36 -0
- package/src/hooks/useExpose.ts +60 -0
- package/src/layout/component/aside.vue +160 -0
- package/src/layout/component/columnsAside.vue +299 -0
- package/src/layout/component/header.vue +18 -0
- package/src/layout/component/main.vue +65 -0
- package/src/layout/footer/index.vue +25 -0
- package/src/layout/index.vue +53 -0
- package/src/layout/lockScreen/index.vue +352 -0
- package/src/layout/logo/index.vue +75 -0
- package/src/layout/main/classic.vue +73 -0
- package/src/layout/main/columns.vue +73 -0
- package/src/layout/main/defaults.vue +73 -0
- package/src/layout/main/transverse.vue +60 -0
- package/src/layout/navBars/index.vue +35 -0
- package/src/layout/navBars/tagsView/contextmenu.vue +133 -0
- package/src/layout/navBars/tagsView/tagsView.vue +737 -0
- package/src/layout/navBars/topBar/breadcrumb.vue +146 -0
- package/src/layout/navBars/topBar/closeFull.vue +53 -0
- package/src/layout/navBars/topBar/index.vue +107 -0
- package/src/layout/navBars/topBar/search.vue +123 -0
- package/src/layout/navBars/topBar/setings.vue +789 -0
- package/src/layout/navBars/topBar/user.vue +222 -0
- package/src/layout/navBars/topBar/userNews.vue +107 -0
- package/src/layout/navMenu/horizontal.vue +138 -0
- package/src/layout/navMenu/subItem.vue +49 -0
- package/src/layout/navMenu/vertical.vue +100 -0
- package/src/layout/routerView/iframes.vue +101 -0
- package/src/layout/routerView/link.vue +93 -0
- package/src/layout/routerView/parent.vue +104 -0
- package/src/layout/upgrade/index.vue +147 -0
- package/src/main.ts +70 -0
- package/src/router/backEnd.ts +173 -0
- package/src/router/frontEnd.ts +155 -0
- package/src/router/index.ts +138 -0
- package/src/router/route.ts +94 -0
- package/src/stores/index.ts +8 -0
- package/src/stores/keepAliveNames.ts +38 -0
- package/src/stores/requestOldRoutes.ts +16 -0
- package/src/stores/routesList.ts +26 -0
- package/src/stores/tagsViewRoutes.ts +23 -0
- package/src/stores/themeConfig.ts +142 -0
- package/src/stores/userInfo.ts +65 -0
- package/src/style/index.scss +0 -0
- package/src/style/tailwind.css +29 -0
- package/src/theme/app.scss +333 -0
- package/src/theme/common/transition.scss +147 -0
- package/src/theme/dark.scss +255 -0
- package/src/theme/element.scss +321 -0
- package/src/theme/iconSelector.scss +31 -0
- package/src/theme/index.scss +8 -0
- package/src/theme/loading.scss +51 -0
- package/src/theme/media/chart.scss +94 -0
- package/src/theme/media/cityLinkage.scss +10 -0
- package/src/theme/media/date.scss +25 -0
- package/src/theme/media/dialog.scss +12 -0
- package/src/theme/media/error.scss +45 -0
- package/src/theme/media/form.scss +31 -0
- package/src/theme/media/home.scss +23 -0
- package/src/theme/media/index.scss +15 -0
- package/src/theme/media/layout.scss +63 -0
- package/src/theme/media/login.scss +74 -0
- package/src/theme/media/media.scss +13 -0
- package/src/theme/media/pagination.scss +15 -0
- package/src/theme/media/personal.scss +16 -0
- package/src/theme/media/scrollbar.scss +56 -0
- package/src/theme/media/tagsView.scss +11 -0
- package/src/theme/mixins/index.scss +56 -0
- package/src/theme/other.scss +36 -0
- package/src/theme/tableTool.scss +27 -0
- package/src/theme/waves.scss +101 -0
- package/src/types/auth.d.ts +44 -0
- package/src/types/axios.d.ts +13 -0
- package/src/types/components.d.ts +30 -0
- package/src/types/customData.d.ts +163 -0
- package/src/types/form.ts +68 -0
- package/src/types/formItem/autocomplete.ts +43 -0
- package/src/types/formItem/button.ts +39 -0
- package/src/types/formItem/input.ts +66 -0
- package/src/types/formItem/inputNumber.ts +42 -0
- package/src/types/formItem/selelct.ts +54 -0
- package/src/types/formItem/treeSelect.ts +37 -0
- package/src/types/formTable.d.ts +210 -0
- package/src/types/global.d.ts +118 -0
- package/src/types/layout.d.ts +59 -0
- package/src/types/mitt.d.ts +38 -0
- package/src/types/pinia.d.ts +92 -0
- package/src/types/views.d.ts +331 -0
- package/src/utils/arrayOperation.ts +65 -0
- package/src/utils/authFunction.ts +38 -0
- package/src/utils/build.ts +124 -0
- package/src/utils/commonFunction.ts +64 -0
- package/src/utils/formatTime.ts +137 -0
- package/src/utils/getDataType.ts +136 -0
- package/src/utils/getStyleSheets.ts +101 -0
- package/src/utils/loading.ts +44 -0
- package/src/utils/mitt.ts +8 -0
- package/src/utils/other.ts +214 -0
- package/src/utils/request.ts +82 -0
- package/src/utils/setIconfont.ts +48 -0
- package/src/utils/showMessage.ts +57 -0
- package/src/utils/showMessageBox.ts +39 -0
- package/src/utils/showNotification.ts +50 -0
- package/src/utils/showPopup.ts +81 -0
- package/src/utils/storage.ts +137 -0
- package/src/utils/theme.ts +65 -0
- package/src/utils/toolsValidate.ts +370 -0
- package/src/utils/watermark.ts +47 -0
- package/src/views/error/401.vue +88 -0
- package/src/views/error/404.vue +89 -0
- package/src/views/home/index.vue +62 -0
- package/src/views/login/component/account.vue +172 -0
- package/src/views/login/component/mobile.vue +72 -0
- package/src/views/login/component/scan.vue +63 -0
- package/src/views/login/index.vue +254 -0
- package/src/views/system/auth/index.vue +48 -0
- package/src/views/system/auth/list.ts +50 -0
- package/src/views/system/auth/useAuth.ts +34 -0
- package/src/views/system/dept/dialog.vue +167 -0
- package/src/views/system/dept/index.vue +135 -0
- package/src/views/system/dic/dialog.vue +150 -0
- package/src/views/system/dic/index.vue +132 -0
- package/src/views/system/form/data.json +360 -0
- package/src/views/system/form/index.vue +24 -0
- package/src/views/system/formSetting/components/hsBtn/src/hsAttrBtn.vue +58 -0
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnConfigList.vue +45 -0
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnPanel.vue +51 -0
- package/src/views/system/formSetting/components/hsBtn/useAttrBtn.ts +129 -0
- package/src/views/system/formSetting/components/hsBtn/useBtnConfigList.ts +73 -0
- package/src/views/system/formSetting/components/hsExpand/src/hsExpand.vue +27 -0
- package/src/views/system/formSetting/components/hsExpand/useExpand.ts +9 -0
- package/src/views/system/formSetting/components/hsForm/src/hsAttrForm.vue +124 -0
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfig.vue +180 -0
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfigList.vue +45 -0
- package/src/views/system/formSetting/components/hsForm/src/hsFormPanel.vue +152 -0
- package/src/views/system/formSetting/components/hsForm/src/hsFormParse.vue +33 -0
- package/src/views/system/formSetting/components/hsForm/useAttrForm.ts +109 -0
- package/src/views/system/formSetting/components/hsForm/useFormListConfig.ts +70 -0
- package/src/views/system/formSetting/components/hsPageTree/configData.ts +3700 -0
- package/src/views/system/formSetting/components/hsPageTree/src/hsPageTree.vue +30 -0
- package/src/views/system/formSetting/components/hsPageTree/usePageTree.ts +50 -0
- package/src/views/system/formSetting/components/hsSaveForm/saveFormConfig.ts +66 -0
- package/src/views/system/formSetting/components/hsSaveForm/src/saveForm.vue +47 -0
- package/src/views/system/formSetting/components/hsSaveForm/useSaveForm.ts +122 -0
- package/src/views/system/formSetting/components/hsTables/src/hsAttrTable.vue +91 -0
- package/src/views/system/formSetting/components/hsTables/src/hsRecursionConfig.vue +36 -0
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfig.vue +39 -0
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfigList.vue +45 -0
- package/src/views/system/formSetting/components/hsTables/src/hsTablePanel.vue +56 -0
- package/src/views/system/formSetting/components/hsTables/src/hsTableParse.vue +29 -0
- package/src/views/system/formSetting/components/hsTables/useAttrTable.ts +125 -0
- package/src/views/system/formSetting/components/hsTables/useTableConfigList.ts +77 -0
- package/src/views/system/formSetting/components/selectConfig/config.ts +476 -0
- package/src/views/system/formSetting/components/selectConfig/selectConfig.vue +30 -0
- package/src/views/system/formSetting/data.json +360 -0
- package/src/views/system/formSetting/default/baseBtnConfig.ts +216 -0
- package/src/views/system/formSetting/default/baseFormConfig.ts +567 -0
- package/src/views/system/formSetting/default/baseTableConfig.ts +2353 -0
- package/src/views/system/formSetting/formConfig.vue +108 -0
- package/src/views/system/formSetting/index.vue +35 -0
- package/src/views/system/formSetting/menuType.d.ts +12 -0
- package/src/views/system/formSetting/panelConfig.json +164 -0
- package/src/views/system/formSetting/useForm.ts +89 -0
- package/src/views/system/formSetting/useFormConfig.ts +192 -0
- package/src/views/system/menu/dialog.vue +285 -0
- package/src/views/system/menu/index.vue +180 -0
- package/src/views/system/page/components/hsPageTree/configData.ts +3700 -0
- package/src/views/system/page/components/hsPageTree/src/hsPageTree.vue +30 -0
- package/src/views/system/page/components/hsPageTree/usePageTree.ts +49 -0
- package/src/views/system/page/index.vue +32 -0
- package/src/views/system/page/menuType.d.ts +12 -0
- package/src/views/system/page/usePage.ts +125 -0
- package/src/views/system/role/dialog.vue +236 -0
- package/src/views/system/role/index.vue +146 -0
- package/src/views/system/table/data.json +747 -0
- package/src/views/system/table/formate.js +49 -0
- package/src/views/system/table/index.vue +53 -0
- package/src/views/system/user/dialog.vue +187 -0
- package/src/views/system/user/index.vue +161 -0
- package/src/views/test/test/components/hsBtn/src/hsAttrBtn.vue +58 -0
- package/src/views/test/test/components/hsBtn/src/hsBtnConfigList.vue +45 -0
- package/src/views/test/test/components/hsBtn/src/hsBtnPanel.vue +51 -0
- package/src/views/test/test/components/hsBtn/useAttrBtn.ts +129 -0
- package/src/views/test/test/components/hsBtn/useBtnConfigList.ts +73 -0
- package/src/views/test/test/components/hsExpand/src/hsExpand.vue +27 -0
- package/src/views/test/test/components/hsExpand/useExpand.ts +9 -0
- package/src/views/test/test/components/hsForm/src/hsAttrForm.vue +124 -0
- package/src/views/test/test/components/hsForm/src/hsFormConfig.vue +180 -0
- package/src/views/test/test/components/hsForm/src/hsFormConfigList.vue +45 -0
- package/src/views/test/test/components/hsForm/src/hsFormPanel.vue +152 -0
- package/src/views/test/test/components/hsForm/src/hsFormParse.vue +33 -0
- package/src/views/test/test/components/hsForm/useAttrForm.ts +109 -0
- package/src/views/test/test/components/hsForm/useFormListConfig.ts +70 -0
- package/src/views/test/test/components/hsSaveForm/saveFormConfig.ts +66 -0
- package/src/views/test/test/components/hsSaveForm/src/saveForm.vue +47 -0
- package/src/views/test/test/components/hsSaveForm/useSaveForm.ts +122 -0
- package/src/views/test/test/components/hsTables/src/hsAttrTable.vue +91 -0
- package/src/views/test/test/components/hsTables/src/hsRecursionConfig.vue +36 -0
- package/src/views/test/test/components/hsTables/src/hsTableConfig.vue +39 -0
- package/src/views/test/test/components/hsTables/src/hsTableConfigList.vue +45 -0
- package/src/views/test/test/components/hsTables/src/hsTablePanel.vue +56 -0
- package/src/views/test/test/components/hsTables/src/hsTableParse.vue +29 -0
- package/src/views/test/test/components/hsTables/useAttrTable.ts +125 -0
- package/src/views/test/test/components/hsTables/useTableConfigList.ts +77 -0
- package/src/views/test/test/components/selectConfig/config.ts +476 -0
- package/src/views/test/test/components/selectConfig/selectConfig.vue +30 -0
- package/src/views/test/test/data.json +360 -0
- package/src/views/test/test/default/baseBtnConfig.ts +216 -0
- package/src/views/test/test/default/baseFormConfig.ts +567 -0
- package/src/views/test/test/default/baseTableConfig.ts +2353 -0
- package/src/views/test/test/formConfig.vue +102 -0
- package/src/views/test/test/test.vue +28 -0
- package/src/views/test/test/test3.vue +24 -0
- package/src/views/test/test/test4.vue +107 -0
- package/src/views/test/test/test/345/211/257/346/234/254.vue +2424 -0
- package/src/views/test/test/useFormConfig.ts +192 -0
- package/src/views/test/test2/test2.vue +17 -0
- package/src/views/test/test3/test.vue +20 -0
- package/tailwind.config.js +12 -0
- package/tsconfig.json +75 -0
- package/vite.config.ts +123 -0
|
@@ -0,0 +1,291 @@
|
|
|
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
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
10
|
+
* 接口名称: 新增菜单 - 接口地址: /cms-web/pri/menu/add_menu
|
|
11
|
+
* 请求方式: post
|
|
12
|
+
* @param {[string]} button_json [按钮json] 是否必填:否
|
|
13
|
+
* @param {[string]} dict_json [字典json] 是否必填:否
|
|
14
|
+
* @param {[string]} icon [icon] 是否必填:否
|
|
15
|
+
* @param {[string]} menu_classify [菜单所属分类] 是否必填:否
|
|
16
|
+
* @param {[string]} menu_classify_code [菜单所属分类] 是否必填:否
|
|
17
|
+
* @param {[string]} menu_name [菜单名] 是否必填:是
|
|
18
|
+
* @param {[string]} menu_type [菜单类型] 是否必填:是
|
|
19
|
+
* @param {[string]} menu_url [菜单url] 是否必填:是
|
|
20
|
+
* @param {[string]} page_id [页面id] 是否必填:是
|
|
21
|
+
* @param {[string]} pid [菜单父id] 是否必填:否
|
|
22
|
+
* @param {[string]} sort [排序] 是否必填:是
|
|
23
|
+
* @return {[type]} [description]
|
|
24
|
+
*/
|
|
25
|
+
const postAddMenu = (params: object = {}) => {
|
|
26
|
+
params = assign(params, '新增菜单');
|
|
27
|
+
return request({
|
|
28
|
+
url: '/cms-web/pri/menu/add_menu',
|
|
29
|
+
method: 'post',
|
|
30
|
+
params,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
35
|
+
* 接口名称: 根据id,删除菜单 - 接口地址: /cms-web/pri/menu/del_menu_info
|
|
36
|
+
* 请求方式: post
|
|
37
|
+
* @param {[string]} id [菜单id] 是否必填:是
|
|
38
|
+
* @return {[type]} [description]
|
|
39
|
+
*/
|
|
40
|
+
const postDelMenuInfo = (params: object = {}) => {
|
|
41
|
+
params = assign(params, '根据id,删除菜单');
|
|
42
|
+
return request({
|
|
43
|
+
url: '/cms-web/pri/menu/del_menu_info',
|
|
44
|
+
method: 'post',
|
|
45
|
+
params,
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
50
|
+
* 接口名称: 获取所有菜单id集合 - 接口地址: /cms-web/pri/menu/get_all_menu_id_list
|
|
51
|
+
* 请求方式: get
|
|
52
|
+
* @return {[type]} [description]
|
|
53
|
+
*/
|
|
54
|
+
const getAllMenuIdList = (params: object = {}) => {
|
|
55
|
+
params = assign(params, '获取所有菜单id集合');
|
|
56
|
+
return request({
|
|
57
|
+
url: '/cms-web/pri/menu/get_all_menu_id_list',
|
|
58
|
+
method: 'get',
|
|
59
|
+
params,
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
64
|
+
* 接口名称: 获取所有菜单列表 - 接口地址: /cms-web/pri/menu/get_all_menu_list
|
|
65
|
+
* 请求方式: get
|
|
66
|
+
* @return {[type]} [description]
|
|
67
|
+
*/
|
|
68
|
+
const getAllMenuList = (params: object = {}) => {
|
|
69
|
+
params = assign(params, '获取所有菜单列表');
|
|
70
|
+
return request({
|
|
71
|
+
url: '/cms-web/pri/menu/get_all_menu_list',
|
|
72
|
+
method: 'get',
|
|
73
|
+
params,
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
78
|
+
* 接口名称: 根据部门获取菜单id集合 - 接口地址: /cms-web/pri/menu/get_menu_id_list_by_department
|
|
79
|
+
* 请求方式: get
|
|
80
|
+
* @param {[string]} departmentId [部门id] 是否必填:是
|
|
81
|
+
* @return {[type]} [description]
|
|
82
|
+
*/
|
|
83
|
+
const getMenuIdListByDepartment = (params: object = {}) => {
|
|
84
|
+
params = assign(params, '根据部门获取菜单id集合');
|
|
85
|
+
return request({
|
|
86
|
+
url: '/cms-web/pri/menu/get_menu_id_list_by_department',
|
|
87
|
+
method: 'get',
|
|
88
|
+
params,
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
93
|
+
* 接口名称: 根据用户获取菜单id集合 - 接口地址: /cms-web/pri/menu/get_menu_id_list_by_user
|
|
94
|
+
* 请求方式: get
|
|
95
|
+
* @param {[string]} userId [用户id] 是否必填:是
|
|
96
|
+
* @return {[type]} [description]
|
|
97
|
+
*/
|
|
98
|
+
const getMenuIdListByUser = (params: object = {}) => {
|
|
99
|
+
params = assign(params, '根据用户获取菜单id集合');
|
|
100
|
+
return request({
|
|
101
|
+
url: '/cms-web/pri/menu/get_menu_id_list_by_user',
|
|
102
|
+
method: 'get',
|
|
103
|
+
params,
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
108
|
+
* 接口名称: 获取当前用户菜单列表(树形) - 接口地址: /cms-web/pri/menu/get_menu_list
|
|
109
|
+
* 请求方式: get
|
|
110
|
+
* @return {[type]} [description]
|
|
111
|
+
*/
|
|
112
|
+
const getMenuList = (params: object = {}) => {
|
|
113
|
+
params = assign(params, '获取当前用户菜单列表(树形)');
|
|
114
|
+
return request({
|
|
115
|
+
url: '/cms-web/pri/menu/get_menu_list',
|
|
116
|
+
method: 'get',
|
|
117
|
+
params,
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
122
|
+
* 接口名称: 根据部门获取菜单列表 - 接口地址: /cms-web/pri/menu/get_menu_list_by_department
|
|
123
|
+
* 请求方式: get
|
|
124
|
+
* @param {[string]} departmentId [部门id] 是否必填:是
|
|
125
|
+
* @return {[type]} [description]
|
|
126
|
+
*/
|
|
127
|
+
const getMenuListByDepartment = (params: object = {}) => {
|
|
128
|
+
params = assign(params, '根据部门获取菜单列表');
|
|
129
|
+
return request({
|
|
130
|
+
url: '/cms-web/pri/menu/get_menu_list_by_department',
|
|
131
|
+
method: 'get',
|
|
132
|
+
params,
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
137
|
+
* 接口名称: 根据用户获取菜单列表 - 接口地址: /cms-web/pri/menu/get_menu_list_by_user
|
|
138
|
+
* 请求方式: get
|
|
139
|
+
* @param {[string]} userId [用户id] 是否必填:是
|
|
140
|
+
* @return {[type]} [description]
|
|
141
|
+
*/
|
|
142
|
+
const getMenuListByUser = (params: object = {}) => {
|
|
143
|
+
params = assign(params, '根据用户获取菜单列表');
|
|
144
|
+
return request({
|
|
145
|
+
url: '/cms-web/pri/menu/get_menu_list_by_user',
|
|
146
|
+
method: 'get',
|
|
147
|
+
params,
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
152
|
+
* 接口名称: 获取一级菜单信息 - 接口地址: /cms-web/pri/menu/get_menu_list_one
|
|
153
|
+
* 请求方式: get
|
|
154
|
+
* @return {[type]} [description]
|
|
155
|
+
*/
|
|
156
|
+
const getMenuListOne = (params: object = {}) => {
|
|
157
|
+
params = assign(params, '获取一级菜单信息');
|
|
158
|
+
return request({
|
|
159
|
+
url: '/cms-web/pri/menu/get_menu_list_one',
|
|
160
|
+
method: 'get',
|
|
161
|
+
params,
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
166
|
+
* 接口名称: 设置菜单页面配置项,按钮和字典数据 - 接口地址: /cms-web/pri/menu/set_menu_config
|
|
167
|
+
* 请求方式: post
|
|
168
|
+
* @param {[string]} button_json [按钮json] 是否必填:否
|
|
169
|
+
* @param {[string]} dict_json [字典json] 是否必填:否
|
|
170
|
+
* @param {[string]} id [菜单id] 是否必填:是
|
|
171
|
+
* @return {[type]} [description]
|
|
172
|
+
*/
|
|
173
|
+
const postSetMenuConfig = (params: object = {}) => {
|
|
174
|
+
params = assign(params, '设置菜单页面配置项,按钮和字典数据');
|
|
175
|
+
return request({
|
|
176
|
+
url: '/cms-web/pri/menu/set_menu_config',
|
|
177
|
+
method: 'post',
|
|
178
|
+
params,
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
183
|
+
* 接口名称: 更新部门与菜单关系权限 - 接口地址: /cms-web/pri/menu/update_department_menu_auth
|
|
184
|
+
* 请求方式: post
|
|
185
|
+
* @param {[string]} departmentId [部门id] 是否必填:是
|
|
186
|
+
* @param {[string]} menuIdArrStr [菜单id集合字符串(以逗号分隔)] 是否必填:否
|
|
187
|
+
* @param {[string]} relatedUserAuth [如何更新关联用户权限:'add'(增量更新),'cover'(覆盖更新),other(不更新)] 是否必填:否
|
|
188
|
+
* @return {[type]} [description]
|
|
189
|
+
*/
|
|
190
|
+
const postUpdateDepartmentMenuAuth = (params: object = {}) => {
|
|
191
|
+
params = assign(params, '更新部门与菜单关系权限');
|
|
192
|
+
return request({
|
|
193
|
+
url: '/cms-web/pri/menu/update_department_menu_auth',
|
|
194
|
+
method: 'post',
|
|
195
|
+
params,
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
200
|
+
* 接口名称: 更新菜单 - 接口地址: /cms-web/pri/menu/update_menu
|
|
201
|
+
* 请求方式: post
|
|
202
|
+
* @param {[string]} button_json [按钮json] 是否必填:否
|
|
203
|
+
* @param {[string]} dict_json [字典json] 是否必填:否
|
|
204
|
+
* @param {[string]} icon [icon] 是否必填:否
|
|
205
|
+
* @param {[string]} id [菜单id] 是否必填:是
|
|
206
|
+
* @param {[string]} menu_classify [菜单所属分类] 是否必填:否
|
|
207
|
+
* @param {[string]} menu_classify_code [菜单所属分类] 是否必填:否
|
|
208
|
+
* @param {[string]} menu_name [菜单名] 是否必填:是
|
|
209
|
+
* @param {[string]} menu_type [菜单类型] 是否必填:是
|
|
210
|
+
* @param {[string]} menu_url [菜单url] 是否必填:是
|
|
211
|
+
* @param {[string]} page_id [页面id] 是否必填:是
|
|
212
|
+
* @param {[string]} pid [菜单父id] 是否必填:否
|
|
213
|
+
* @param {[string]} sort [排序] 是否必填:是
|
|
214
|
+
* @return {[type]} [description]
|
|
215
|
+
*/
|
|
216
|
+
const postUpdateMenu = (params: object = {}) => {
|
|
217
|
+
params = assign(params, '更新菜单');
|
|
218
|
+
return request({
|
|
219
|
+
url: '/cms-web/pri/menu/update_menu',
|
|
220
|
+
method: 'post',
|
|
221
|
+
params,
|
|
222
|
+
});
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
226
|
+
* 接口名称: 根据菜单id,互换两个菜单的排序 - 接口地址: /cms-web/pri/menu/update_menu_sort
|
|
227
|
+
* 请求方式: post
|
|
228
|
+
* @param {[string]} menu_id_d [菜单id(下)] 是否必填:是
|
|
229
|
+
* @param {[string]} menu_id_u [菜单id(上)] 是否必填:是
|
|
230
|
+
* @return {[type]} [description]
|
|
231
|
+
*/
|
|
232
|
+
const postUpdateMenuSort = (params: object = {}) => {
|
|
233
|
+
params = assign(params, '根据菜单id,互换两个菜单的排序');
|
|
234
|
+
return request({
|
|
235
|
+
url: '/cms-web/pri/menu/update_menu_sort',
|
|
236
|
+
method: 'post',
|
|
237
|
+
params,
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
242
|
+
* 接口名称: 更新用户与菜单关系权限 - 接口地址: /cms-web/pri/menu/update_user_menu_auth
|
|
243
|
+
* 请求方式: post
|
|
244
|
+
* @param {[string]} menuIdArrStr [菜单id集合字符串(以逗号分隔)] 是否必填:否
|
|
245
|
+
* @param {[string]} userId [用户id] 是否必填:是
|
|
246
|
+
* @return {[type]} [description]
|
|
247
|
+
*/
|
|
248
|
+
const postUpdateUserMenuAuth = (params: object = {}) => {
|
|
249
|
+
params = assign(params, '更新用户与菜单关系权限');
|
|
250
|
+
return request({
|
|
251
|
+
url: '/cms-web/pri/menu/update_user_menu_auth',
|
|
252
|
+
method: 'post',
|
|
253
|
+
params,
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* 接口分类: 租户菜单相关接口 - TenantMenuController
|
|
258
|
+
* 接口名称: 获取管理系统菜单列表(树形) - 接口地址: /cms-web/pri/tenant_menu/get_menu_list
|
|
259
|
+
* 请求方式: get
|
|
260
|
+
* @param {[string]} company_id [租户id] 是否必填:否
|
|
261
|
+
* @param {[string]} top_company_id [租户总部id] 是否必填:否
|
|
262
|
+
* @return {[type]} [description]
|
|
263
|
+
*/
|
|
264
|
+
const getTenantMenuMenuList = (params: object = {}) => {
|
|
265
|
+
params = assign(params, '获取管理系统菜单列表(树形)');
|
|
266
|
+
return request({
|
|
267
|
+
url: '/cms-web/pri/tenant_menu/get_menu_list',
|
|
268
|
+
method: 'get',
|
|
269
|
+
params,
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
export function useMenuController() {
|
|
273
|
+
return {
|
|
274
|
+
postAddMenu,
|
|
275
|
+
postDelMenuInfo,
|
|
276
|
+
getAllMenuIdList,
|
|
277
|
+
getAllMenuList,
|
|
278
|
+
getMenuIdListByDepartment,
|
|
279
|
+
getMenuIdListByUser,
|
|
280
|
+
getMenuList,
|
|
281
|
+
getMenuListByDepartment,
|
|
282
|
+
getMenuListByUser,
|
|
283
|
+
getMenuListOne,
|
|
284
|
+
postSetMenuConfig,
|
|
285
|
+
postUpdateDepartmentMenuAuth,
|
|
286
|
+
postUpdateMenu,
|
|
287
|
+
postUpdateMenuSort,
|
|
288
|
+
postUpdateUserMenuAuth,
|
|
289
|
+
getTenantMenuMenuList,
|
|
290
|
+
};
|
|
291
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
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
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
10
|
+
* 接口名称: 新增菜单 - 接口地址: /scmp-web/pri/menu/add_menu
|
|
11
|
+
* 请求方式: post
|
|
12
|
+
* @param {[string]} component [组件路径] 是否必填:是
|
|
13
|
+
* @param {[string]} icon [icon] 是否必填:否
|
|
14
|
+
* @param {[string]} isAffix [是否固定] 是否必填:否
|
|
15
|
+
* @param {[string]} isHide [是否隐藏] 是否必填:否
|
|
16
|
+
* @param {[string]} isIframe [是否内嵌] 是否必填:否
|
|
17
|
+
* @param {[string]} isKeepAlive [页面缓存] 是否必填:否
|
|
18
|
+
* @param {[string]} isLink [是否外联] 是否必填:否
|
|
19
|
+
* @param {[string]} link [连接地址] 是否必填:否
|
|
20
|
+
* @param {[string]} name [路由名称] 是否必填:否
|
|
21
|
+
* @param {[string]} path [路由路径] 是否必填:是
|
|
22
|
+
* @param {[string]} pid [菜单父id] 是否必填:否
|
|
23
|
+
* @param {[string]} project_code [所属系统] 是否必填:是
|
|
24
|
+
* @param {[string]} redirect [重定向] 是否必填:否
|
|
25
|
+
* @param {[string]} sort [排序] 是否必填:是
|
|
26
|
+
* @param {[string]} title [菜单名称] 是否必填:是
|
|
27
|
+
* @return {[type]} [description]
|
|
28
|
+
*/
|
|
29
|
+
const postAddMenu = <T>(data: object = {}): Promise<T> => {
|
|
30
|
+
data = assign(data, '新增菜单');
|
|
31
|
+
return request({
|
|
32
|
+
url: '/scmp-web/pri/menu/add_menu',
|
|
33
|
+
method: 'post',
|
|
34
|
+
data,
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
39
|
+
* 接口名称: 根据id,删除菜单 - 接口地址: /scmp-web/pri/menu/del_menu_info
|
|
40
|
+
* 请求方式: post
|
|
41
|
+
* @param {[string]} id [菜单id] 是否必填:是
|
|
42
|
+
* @param {[]} params [params] 是否必填:是
|
|
43
|
+
* @return {[type]} [description]
|
|
44
|
+
*/
|
|
45
|
+
const postDelMenuInfo = <T>(data: object = {}): Promise<T> => {
|
|
46
|
+
data = assign(data, '根据id,删除菜单');
|
|
47
|
+
return request({
|
|
48
|
+
url: '/scmp-web/pri/menu/del_menu_info',
|
|
49
|
+
method: 'post',
|
|
50
|
+
data,
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
55
|
+
* 接口名称: 获取所有菜单id集合 - 接口地址: /scmp-web/pri/menu/get_all_menu_id_list
|
|
56
|
+
* 请求方式: get
|
|
57
|
+
* @param {[string]} project_code [所属系统] 是否必填:是
|
|
58
|
+
* @return {[type]} [description]
|
|
59
|
+
*/
|
|
60
|
+
const getAllMenuIdList = <T>(params: object = {}): Promise<T> => {
|
|
61
|
+
params = assign(params, '获取所有菜单id集合');
|
|
62
|
+
return request({
|
|
63
|
+
url: '/scmp-web/pri/menu/get_all_menu_id_list',
|
|
64
|
+
method: 'get',
|
|
65
|
+
params,
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
70
|
+
* 接口名称: 获取所有菜单列表 - 接口地址: /scmp-web/pri/menu/get_all_menu_list
|
|
71
|
+
* 请求方式: get
|
|
72
|
+
* @param {[string]} project_code [所属系统] 是否必填:是
|
|
73
|
+
* @return {[type]} [description]
|
|
74
|
+
*/
|
|
75
|
+
const getAllMenuList = <T>(params: object = {}): Promise<T> => {
|
|
76
|
+
params = assign(params, '获取所有菜单列表');
|
|
77
|
+
return request({
|
|
78
|
+
url: '/scmp-web/pri/menu/get_all_menu_list',
|
|
79
|
+
method: 'get',
|
|
80
|
+
params,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
85
|
+
* 接口名称: 获取当前用户菜单列表(树形) - 接口地址: /scmp-web/pri/menu/get_menu_list
|
|
86
|
+
* 请求方式: get
|
|
87
|
+
* @param {[string]} project_code [所属系统] 是否必填:是
|
|
88
|
+
* @return {[type]} [description]
|
|
89
|
+
*/
|
|
90
|
+
const getMenuList = <T>(params: object = {}): Promise<T> => {
|
|
91
|
+
params = assign(params, '获取当前用户菜单列表(树形)');
|
|
92
|
+
return request({
|
|
93
|
+
url: '/scmp-web/pri/menu/get_menu_list',
|
|
94
|
+
method: 'get',
|
|
95
|
+
params,
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
100
|
+
* 接口名称: 获取一级菜单信息 - 接口地址: /scmp-web/pri/menu/get_menu_list_one
|
|
101
|
+
* 请求方式: get
|
|
102
|
+
* @param {[string]} project_code [所属系统] 是否必填:是
|
|
103
|
+
* @return {[type]} [description]
|
|
104
|
+
*/
|
|
105
|
+
const getMenuListOne = <T>(params: object = {}): Promise<T> => {
|
|
106
|
+
params = assign(params, '获取一级菜单信息');
|
|
107
|
+
return request({
|
|
108
|
+
url: '/scmp-web/pri/menu/get_menu_list_one',
|
|
109
|
+
method: 'get',
|
|
110
|
+
params,
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
115
|
+
* 接口名称: 设置菜单页面配置项,按钮和字典数据 - 接口地址: /scmp-web/pri/menu/set_menu_config
|
|
116
|
+
* 请求方式: post
|
|
117
|
+
* @param {[string]} button_json [按钮json] 是否必填:否
|
|
118
|
+
* @param {[string]} dict_json [字典json] 是否必填:否
|
|
119
|
+
* @param {[string]} id [菜单id] 是否必填:是
|
|
120
|
+
* @return {[type]} [description]
|
|
121
|
+
*/
|
|
122
|
+
const postSetMenuConfig = <T>(data: object = {}): Promise<T> => {
|
|
123
|
+
data = assign(data, '设置菜单页面配置项,按钮和字典数据');
|
|
124
|
+
return request({
|
|
125
|
+
url: '/scmp-web/pri/menu/set_menu_config',
|
|
126
|
+
method: 'post',
|
|
127
|
+
data,
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
132
|
+
* 接口名称: 更新菜单 - 接口地址: /scmp-web/pri/menu/update_menu
|
|
133
|
+
* 请求方式: post
|
|
134
|
+
* @param {[string]} component [组件路径] 是否必填:是
|
|
135
|
+
* @param {[string]} icon [icon] 是否必填:否
|
|
136
|
+
* @param {[string]} id [菜单id] 是否必填:是
|
|
137
|
+
* @param {[string]} isAffix [是否固定] 是否必填:否
|
|
138
|
+
* @param {[string]} isHide [是否隐藏] 是否必填:否
|
|
139
|
+
* @param {[string]} isIframe [是否内嵌] 是否必填:否
|
|
140
|
+
* @param {[string]} isKeepAlive [页面缓存] 是否必填:否
|
|
141
|
+
* @param {[string]} isLink [是否外联] 是否必填:否
|
|
142
|
+
* @param {[string]} link [连接地址] 是否必填:否
|
|
143
|
+
* @param {[string]} name [路由名称] 是否必填:否
|
|
144
|
+
* @param {[string]} path [路由路径] 是否必填:是
|
|
145
|
+
* @param {[string]} pid [菜单父id] 是否必填:否
|
|
146
|
+
* @param {[string]} project_code [所属系统] 是否必填:是
|
|
147
|
+
* @param {[string]} redirect [重定向] 是否必填:否
|
|
148
|
+
* @param {[string]} sort [排序] 是否必填:是
|
|
149
|
+
* @param {[string]} title [菜单名称] 是否必填:是
|
|
150
|
+
* @return {[type]} [description]
|
|
151
|
+
*/
|
|
152
|
+
const postUpdateMenu = <T>(data: object = {}): Promise<T> => {
|
|
153
|
+
data = assign(data, '更新菜单');
|
|
154
|
+
return request({
|
|
155
|
+
url: '/scmp-web/pri/menu/update_menu',
|
|
156
|
+
method: 'post',
|
|
157
|
+
data,
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* 接口分类: 菜单相关接口 - MenuController
|
|
162
|
+
* 接口名称: 根据菜单id,互换两个菜单的排序 - 接口地址: /scmp-web/pri/menu/update_menu_sort
|
|
163
|
+
* 请求方式: post
|
|
164
|
+
* @param {[string]} menu_id_d [菜单id(下)] 是否必填:是
|
|
165
|
+
* @param {[string]} menu_id_u [菜单id(上)] 是否必填:是
|
|
166
|
+
* @param {[]} params [params] 是否必填:是
|
|
167
|
+
* @return {[type]} [description]
|
|
168
|
+
*/
|
|
169
|
+
const postUpdateMenuSort = <T>(data: object = {}): Promise<T> => {
|
|
170
|
+
data = assign(data, '根据菜单id,互换两个菜单的排序');
|
|
171
|
+
return request({
|
|
172
|
+
url: '/scmp-web/pri/menu/update_menu_sort',
|
|
173
|
+
method: 'post',
|
|
174
|
+
data,
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
export function useMenuController() {
|
|
178
|
+
return {
|
|
179
|
+
postAddMenu,
|
|
180
|
+
postDelMenuInfo,
|
|
181
|
+
getAllMenuIdList,
|
|
182
|
+
getAllMenuList,
|
|
183
|
+
getMenuList,
|
|
184
|
+
getMenuListOne,
|
|
185
|
+
postSetMenuConfig,
|
|
186
|
+
postUpdateMenu,
|
|
187
|
+
postUpdateMenuSort,
|
|
188
|
+
};
|
|
189
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* 接口分类: 系统信息设置操作接口 - SystemController
|
|
10
|
+
* 接口名称: 获取所有系统信息列表 - 接口地址: /scmp-web/pri/system/get_all_system_info
|
|
11
|
+
* 请求方式: get
|
|
12
|
+
* @return {[type]} [description]
|
|
13
|
+
*/
|
|
14
|
+
const getAllSystemInfo = <T>(params: object = {}): Promise<T> => {
|
|
15
|
+
params = assign(params, '获取所有系统信息列表');
|
|
16
|
+
return request({
|
|
17
|
+
url: '/scmp-web/pri/system/get_all_system_info',
|
|
18
|
+
method: 'get',
|
|
19
|
+
params,
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export function useSystemController() {
|
|
23
|
+
return {
|
|
24
|
+
getAllSystemInfo,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface GetAllSystemInfo {
|
|
2
|
+
code: number;
|
|
3
|
+
msg: string;
|
|
4
|
+
data: Array<{
|
|
5
|
+
create_user_id: string;
|
|
6
|
+
update_time: number;
|
|
7
|
+
lock_status: string;
|
|
8
|
+
create_time: string;
|
|
9
|
+
create_user_name: string;
|
|
10
|
+
project_url: string;
|
|
11
|
+
project_code: string;
|
|
12
|
+
id: string;
|
|
13
|
+
project_name: string;
|
|
14
|
+
database_template: string;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import request from '/@/utils/request';
|
|
2
|
+
|
|
3
|
+
const assign = (params: object, title: string) => {
|
|
4
|
+
return Object.assign(params, { title });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
const getApiDocs = (params: Record<string, string> = {}) => {
|
|
8
|
+
let proxy = params.proxy ? '/' + params.proxy : '';
|
|
9
|
+
delete params.proxy;
|
|
10
|
+
params = assign(params, '后台api获取接口');
|
|
11
|
+
return request({
|
|
12
|
+
url: proxy ? proxy + '/v2/api-docs' : '/scmp-web/v2/api-docs',
|
|
13
|
+
method: 'get',
|
|
14
|
+
params,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export function usePostMan() {
|
|
19
|
+
return {
|
|
20
|
+
getApiDocs,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* 接口分类: 用户相关接口 - UserController
|
|
10
|
+
* 接口名称: 获取分页用户列表 * 接口地址: /pri/user/list_page
|
|
11
|
+
* 请求方式: GET
|
|
12
|
+
* @param {[string]} currentPage [当前页(默认1)] 是否必填: 否
|
|
13
|
+
* @param {[string]} department_id [根据所属部门查询] 是否必填: 否
|
|
14
|
+
* @param {[string]} pageSize [分页大小(默认10)] 是否必填: 否
|
|
15
|
+
* @param {[string]} qry_like_info [多信息模糊查询(用户名、姓名、手机号)] 是否必填: 否
|
|
16
|
+
* @return {[type]} [description]
|
|
17
|
+
*/
|
|
18
|
+
const listPage = (params: object = {}) => {
|
|
19
|
+
params = assign(params, '获取分页用户列表');
|
|
20
|
+
return request({
|
|
21
|
+
url: '/cms-web/pri/user/list_page',
|
|
22
|
+
method: 'get',
|
|
23
|
+
params,
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export function userController() {
|
|
27
|
+
return {
|
|
28
|
+
listPage,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
3
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="50pt" height="50pt" viewBox="0 0 50 50" style="" preserveAspectRatio="xMidYMid meet">
|
|
4
|
+
<g fill="#00739CFF" stroke="#00739CFF">
|
|
5
|
+
<path d="M 30.785 11.988 C 31.103 14.153 30.340 16.354 28.017 19.974 L 24.810 24.972 27.989 28.986 C 29.737 31.194 31.525 33.000 31.961 33.000 C 33.430 33.000 37.324 22.543 37.777 17.386 C 38.171 12.889 37.943 12.073 35.890 10.636 C 32.131 8.002 30.272 8.495 30.785 11.988 "/></g>
|
|
6
|
+
<g fill="#009646FF" stroke="#009646FF">
|
|
7
|
+
<path d="M 15.870 19.250 C 14.563 21.811 13.512 26.123 13.226 30.101 C 12.808 35.926 12.973 36.765 14.626 37.238 C 15.657 37.532 17.286 38.097 18.246 38.492 C 19.727 39.102 19.911 38.778 19.457 36.355 C 19.086 34.375 19.624 32.452 21.211 30.080 C 26.157 22.691 26.112 23.022 22.753 18.843 C 21.055 16.729 19.300 15.000 18.853 15.000 C 18.406 15.000 17.064 16.913 15.870 19.250 "/></g>
|
|
8
|
+
<g fill="#00A3EBFF" stroke="#00A3EBFF">
|
|
9
|
+
<path d="M 17.060 4.395 C 15.169 5.079 13.455 6.136 13.252 6.744 C 12.846 7.962 17.069 14.968 18.221 14.988 C 18.617 14.994 20.887 13.629 23.264 11.953 C 27.880 8.700 29.830 8.268 34.363 9.497 C 37.219 10.272 37.221 10.268 35.599 7.791 C 32.526 3.101 24.640 1.656 17.060 4.395 "/></g>
|
|
10
|
+
<g fill="#ADCF00FF" stroke="#ADCF00FF">
|
|
11
|
+
<path d="M 26.842 36.153 C 23.057 39.307 20.179 39.967 16.164 38.604 C 14.031 37.880 13.925 37.992 14.944 39.895 C 16.435 42.680 21.127 45.000 25.272 45.000 C 28.910 45.000 38.000 42.242 38.000 41.138 C 38.000 39.636 32.843 33.004 31.714 33.053 C 31.046 33.082 28.854 34.477 26.842 36.153 "/></g>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
|
3
|
+
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="50pt" height="50pt" viewBox="0 0 50 50" style="" preserveAspectRatio="xMidYMid meet">
|
|
4
|
+
<g fill="#00739CFF" stroke="#00739CFF">
|
|
5
|
+
<path d="M 30.785 11.988 C 31.103 14.153 30.340 16.354 28.017 19.974 L 24.810 24.972 27.989 28.986 C 29.737 31.194 31.525 33.000 31.961 33.000 C 33.430 33.000 37.324 22.543 37.777 17.386 C 38.171 12.889 37.943 12.073 35.890 10.636 C 32.131 8.002 30.272 8.495 30.785 11.988 "/></g>
|
|
6
|
+
<g fill="#009646FF" stroke="#009646FF">
|
|
7
|
+
<path d="M 15.870 19.250 C 14.563 21.811 13.512 26.123 13.226 30.101 C 12.808 35.926 12.973 36.765 14.626 37.238 C 15.657 37.532 17.286 38.097 18.246 38.492 C 19.727 39.102 19.911 38.778 19.457 36.355 C 19.086 34.375 19.624 32.452 21.211 30.080 C 26.157 22.691 26.112 23.022 22.753 18.843 C 21.055 16.729 19.300 15.000 18.853 15.000 C 18.406 15.000 17.064 16.913 15.870 19.250 "/></g>
|
|
8
|
+
<g fill="#00A3EBFF" stroke="#00A3EBFF">
|
|
9
|
+
<path d="M 17.060 4.395 C 15.169 5.079 13.455 6.136 13.252 6.744 C 12.846 7.962 17.069 14.968 18.221 14.988 C 18.617 14.994 20.887 13.629 23.264 11.953 C 27.880 8.700 29.830 8.268 34.363 9.497 C 37.219 10.272 37.221 10.268 35.599 7.791 C 32.526 3.101 24.640 1.656 17.060 4.395 "/></g>
|
|
10
|
+
<g fill="#ADCF00FF" stroke="#ADCF00FF">
|
|
11
|
+
<path d="M 26.842 36.153 C 23.057 39.307 20.179 39.967 16.164 38.604 C 14.031 37.880 13.925 37.992 14.944 39.895 C 16.435 42.680 21.127 45.000 25.272 45.000 C 28.910 45.000 38.000 42.242 38.000 41.138 C 38.000 39.636 32.843 33.004 31.714 33.053 C 31.046 33.082 28.854 34.477 26.842 36.153 "/></g>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-affix ref="affixRef">
|
|
3
|
+
<template #[item]="data" v-for="item in Object.keys($slots)" :key="item">
|
|
4
|
+
<slot :name="item" v-bind="data || {}"></slot>
|
|
5
|
+
</template>
|
|
6
|
+
</el-affix>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts" name="hsAffix">
|
|
10
|
+
import { ref, onMounted, getCurrentInstance } from 'vue';
|
|
11
|
+
import { useExposeProperties } from '/@/hooks/useExpose';
|
|
12
|
+
// 获取ref
|
|
13
|
+
const affixRef = ref(null);
|
|
14
|
+
// 获取实例方法
|
|
15
|
+
const instance = getCurrentInstance();
|
|
16
|
+
|
|
17
|
+
onMounted(() => {
|
|
18
|
+
useExposeProperties(affixRef, instance);
|
|
19
|
+
});
|
|
20
|
+
// 暴露给外部的 ref
|
|
21
|
+
defineExpose({ ...instance!.exposed });
|
|
22
|
+
</script>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-alert ref="alertRef">
|
|
3
|
+
<template #[item]="data" v-for="item in Object.keys($slots)" :key="item">
|
|
4
|
+
<slot :name="item" v-bind="data || {}"></slot>
|
|
5
|
+
</template>
|
|
6
|
+
</el-alert>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts" name="hSalert">
|
|
10
|
+
import { ref } from 'vue';
|
|
11
|
+
// 获取ref
|
|
12
|
+
const alertRef = ref(null);
|
|
13
|
+
// 暴露给外部的 ref
|
|
14
|
+
defineExpose({ alertRef });
|
|
15
|
+
</script>
|