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
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
��
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 lyt-Top
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
File without changes
|
package/directoryList.md
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
|-- undefined
|
|
2
|
+
|-- .env
|
|
3
|
+
|-- .env.development
|
|
4
|
+
|-- .env.production
|
|
5
|
+
|-- .eslintignore
|
|
6
|
+
|-- .eslintrc.js
|
|
7
|
+
|-- .gitignore
|
|
8
|
+
|-- .npmrc
|
|
9
|
+
|-- .prettierrc.js
|
|
10
|
+
|-- CHANGELOG.md
|
|
11
|
+
|-- index.html
|
|
12
|
+
|-- LICENSE
|
|
13
|
+
|-- package-lock.json
|
|
14
|
+
|-- package.json
|
|
15
|
+
|-- README.md
|
|
16
|
+
|-- tsconfig.json
|
|
17
|
+
|-- vite.config.ts
|
|
18
|
+
|-- .vscode
|
|
19
|
+
| |-- hsvue.code-snippets
|
|
20
|
+
|-- public
|
|
21
|
+
| |-- favicon.ico
|
|
22
|
+
|-- src
|
|
23
|
+
|-- App.vue
|
|
24
|
+
|-- main.ts
|
|
25
|
+
|-- api
|
|
26
|
+
| |-- login
|
|
27
|
+
| | |-- index.ts
|
|
28
|
+
| |-- menu
|
|
29
|
+
| |-- index.ts
|
|
30
|
+
|-- assets
|
|
31
|
+
| |-- ccflowRightNextAdmin.png
|
|
32
|
+
| |-- login-bg.svg
|
|
33
|
+
| |-- login-icon-two.svg
|
|
34
|
+
| |-- login-main.svg
|
|
35
|
+
| |-- logo-mini.svg
|
|
36
|
+
|-- components
|
|
37
|
+
| |-- iconSelector
|
|
38
|
+
| | |-- index.vue
|
|
39
|
+
| | |-- list.vue
|
|
40
|
+
| |-- svgIcon
|
|
41
|
+
| |-- index.vue
|
|
42
|
+
| |-- authDirective.ts
|
|
43
|
+
| |-- customDirective.ts
|
|
44
|
+
| |-- index.ts
|
|
45
|
+
|-- layout
|
|
46
|
+
| |-- index.vue
|
|
47
|
+
| |-- component
|
|
48
|
+
| | |-- aside.vue
|
|
49
|
+
| | |-- columnsAside.vue
|
|
50
|
+
| | |-- header.vue
|
|
51
|
+
| | |-- main.vue
|
|
52
|
+
| |-- footer
|
|
53
|
+
| | |-- index.vue
|
|
54
|
+
| |-- lockScreen
|
|
55
|
+
| | |-- index.vue
|
|
56
|
+
| |-- logo
|
|
57
|
+
| | |-- index.vue
|
|
58
|
+
| |-- main
|
|
59
|
+
| | |-- classic.vue
|
|
60
|
+
| | |-- columns.vue
|
|
61
|
+
| | |-- defaults.vue
|
|
62
|
+
| | |-- transverse.vue
|
|
63
|
+
| |-- navBars
|
|
64
|
+
| | |-- index.vue
|
|
65
|
+
| | |-- tagsView
|
|
66
|
+
| | | |-- contextmenu.vue
|
|
67
|
+
| | | |-- tagsView.vue
|
|
68
|
+
| | |-- topBar
|
|
69
|
+
| | |-- breadcrumb.vue
|
|
70
|
+
| | |-- closeFull.vue
|
|
71
|
+
| | |-- index.vue
|
|
72
|
+
| | |-- search.vue
|
|
73
|
+
| | |-- setings.vue
|
|
74
|
+
| | |-- user.vue
|
|
75
|
+
| |-- navMenu
|
|
76
|
+
| | |-- horizontal.vue
|
|
77
|
+
| | |-- subItem.vue
|
|
78
|
+
| | |-- vertical.vue
|
|
79
|
+
| |-- routerView
|
|
80
|
+
| | |-- iframes.vue
|
|
81
|
+
| | |-- link.vue
|
|
82
|
+
| | |-- parent.vue
|
|
83
|
+
| |-- sponsors
|
|
84
|
+
| | |-- index.vue
|
|
85
|
+
| |-- upgrade
|
|
86
|
+
| |-- index.vue
|
|
87
|
+
|-- router
|
|
88
|
+
| |-- backEnd.ts
|
|
89
|
+
| |-- frontEnd.ts
|
|
90
|
+
| |-- index.ts
|
|
91
|
+
| |-- route.ts
|
|
92
|
+
|-- stores
|
|
93
|
+
| |-- index.ts
|
|
94
|
+
| |-- keepAliveNames.ts
|
|
95
|
+
| |-- requestOldRoutes.ts
|
|
96
|
+
| |-- routesList.ts
|
|
97
|
+
| |-- tagsViewRoutes.ts
|
|
98
|
+
| |-- themeConfig.ts
|
|
99
|
+
| |-- userInfo.ts
|
|
100
|
+
|-- theme
|
|
101
|
+
| |-- app.scss
|
|
102
|
+
| |-- dark.scss
|
|
103
|
+
| |-- element.scss
|
|
104
|
+
| |-- iconSelector.scss
|
|
105
|
+
| |-- index.scss
|
|
106
|
+
| |-- loading.scss
|
|
107
|
+
| |-- other.scss
|
|
108
|
+
| |-- tableTool.scss
|
|
109
|
+
| |-- waves.scss
|
|
110
|
+
| |-- common
|
|
111
|
+
| | |-- transition.scss
|
|
112
|
+
| |-- media
|
|
113
|
+
| | |-- chart.scss
|
|
114
|
+
| | |-- cityLinkage.scss
|
|
115
|
+
| | |-- date.scss
|
|
116
|
+
| | |-- dialog.scss
|
|
117
|
+
| | |-- error.scss
|
|
118
|
+
| | |-- form.scss
|
|
119
|
+
| | |-- home.scss
|
|
120
|
+
| | |-- index.scss
|
|
121
|
+
| | |-- layout.scss
|
|
122
|
+
| | |-- login.scss
|
|
123
|
+
| | |-- media.scss
|
|
124
|
+
| | |-- pagination.scss
|
|
125
|
+
| | |-- personal.scss
|
|
126
|
+
| | |-- scrollbar.scss
|
|
127
|
+
| | |-- tagsView.scss
|
|
128
|
+
| |-- mixins
|
|
129
|
+
| |-- index.scss
|
|
130
|
+
|-- types
|
|
131
|
+
| |-- axios.d.ts
|
|
132
|
+
| |-- global.d.ts
|
|
133
|
+
| |-- layout.d.ts
|
|
134
|
+
| |-- mitt.d.ts
|
|
135
|
+
| |-- pinia.d.ts
|
|
136
|
+
| |-- views.d.ts
|
|
137
|
+
|-- utils
|
|
138
|
+
| |-- arrayOperation.ts
|
|
139
|
+
| |-- authFunction.ts
|
|
140
|
+
| |-- build.ts
|
|
141
|
+
| |-- commonFunction.ts
|
|
142
|
+
| |-- formatTime.ts
|
|
143
|
+
| |-- getStyleSheets.ts
|
|
144
|
+
| |-- loading.ts
|
|
145
|
+
| |-- mitt.ts
|
|
146
|
+
| |-- other.ts
|
|
147
|
+
| |-- request.ts
|
|
148
|
+
| |-- setIconfont.ts
|
|
149
|
+
| |-- storage.ts
|
|
150
|
+
| |-- theme.ts
|
|
151
|
+
| |-- toolsValidate.ts
|
|
152
|
+
| |-- watermark.ts
|
|
153
|
+
|-- views
|
|
154
|
+
|-- error
|
|
155
|
+
| |-- 401.vue
|
|
156
|
+
| |-- 404.vue
|
|
157
|
+
|-- home
|
|
158
|
+
| |-- index.vue
|
|
159
|
+
|-- login
|
|
160
|
+
| |-- index.vue
|
|
161
|
+
| |-- component
|
|
162
|
+
| |-- account.vue
|
|
163
|
+
| |-- mobile.vue
|
|
164
|
+
| |-- scan.vue
|
|
165
|
+
|-- system
|
|
166
|
+
|-- dept
|
|
167
|
+
| |-- dialog.vue
|
|
168
|
+
| |-- index.vue
|
|
169
|
+
|-- dic
|
|
170
|
+
| |-- dialog.vue
|
|
171
|
+
| |-- index.vue
|
|
172
|
+
|-- menu
|
|
173
|
+
| |-- dialog.vue
|
|
174
|
+
| |-- index.vue
|
|
175
|
+
|-- role
|
|
176
|
+
| |-- dialog.vue
|
|
177
|
+
| |-- index.vue
|
|
178
|
+
|-- user
|
|
179
|
+
|-- dialog.vue
|
|
180
|
+
|-- index.vue
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hs-admin-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "vue3 + typescript5 + vite5 的框架",
|
|
6
|
+
"author": "wgd",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "vite --force",
|
|
9
|
+
"build": "vite build",
|
|
10
|
+
"lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
14
|
+
"axios": "^1.6.7",
|
|
15
|
+
"crypto-js": "^4.2.0",
|
|
16
|
+
"default-passive-events": "^2.0.0",
|
|
17
|
+
"echarts": "^5.5.0",
|
|
18
|
+
"element-plus": "^2.5.6",
|
|
19
|
+
"js-cookie": "^3.0.5",
|
|
20
|
+
"localforage": "^1.10.0",
|
|
21
|
+
"lodash": "^4.17.21",
|
|
22
|
+
"mitt": "^3.0.1",
|
|
23
|
+
"nprogress": "^0.2.0",
|
|
24
|
+
"pinia": "^2.1.7",
|
|
25
|
+
"qrcodejs2-fixes": "^0.0.2",
|
|
26
|
+
"qs": "^6.11.2",
|
|
27
|
+
"screenfull": "^6.0.2",
|
|
28
|
+
"sortablejs": "^1.15.2",
|
|
29
|
+
"splitpanes": "^3.1.5",
|
|
30
|
+
"trtc-sdk-v5": "^5.4.1",
|
|
31
|
+
"ts-md5": "^1.3.1",
|
|
32
|
+
"vue": "^3.4.19",
|
|
33
|
+
"vue-clipboard3": "^2.0.0",
|
|
34
|
+
"vue-demi": "^0.14.7",
|
|
35
|
+
"vue-draggable-plus": "^0.3.5",
|
|
36
|
+
"vue-router": "^4.3.0",
|
|
37
|
+
"vxe-table": "^4.5.20",
|
|
38
|
+
"xe-utils": "^3.5.20"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^20.11.19",
|
|
42
|
+
"@types/nprogress": "^0.2.3",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
44
|
+
"@typescript-eslint/parser": "^7.0.2",
|
|
45
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
46
|
+
"@vue/compiler-sfc": "^3.4.19",
|
|
47
|
+
"@vueuse/core": "^10.8.0",
|
|
48
|
+
"autoprefixer": "^10.4.17",
|
|
49
|
+
"eslint": "^8.56.0",
|
|
50
|
+
"eslint-plugin-vue": "^9.21.1",
|
|
51
|
+
"postcss": "^8.4.35",
|
|
52
|
+
"prettier": "^3.2.5",
|
|
53
|
+
"sass": "^1.71.1",
|
|
54
|
+
"tailwindcss": "^3.4.1",
|
|
55
|
+
"terser": "^5.27.2",
|
|
56
|
+
"typescript": "^5.3.3",
|
|
57
|
+
"vite": "^5.1.4",
|
|
58
|
+
"vite-plugin-cdn-import": "^0.3.5",
|
|
59
|
+
"vite-plugin-compression": "^0.5.1",
|
|
60
|
+
"vite-plugin-style-import": "^2.0.0",
|
|
61
|
+
"vite-plugin-vue-setup-extend-plus": "^0.1.0",
|
|
62
|
+
"vue-eslint-parser": "^9.4.2"
|
|
63
|
+
},
|
|
64
|
+
"browserslist": [
|
|
65
|
+
"> 1%",
|
|
66
|
+
"last 2 versions",
|
|
67
|
+
"not dead"
|
|
68
|
+
],
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=16.0.0",
|
|
71
|
+
"npm": ">= 7.0.0"
|
|
72
|
+
},
|
|
73
|
+
"keywords": [
|
|
74
|
+
"vue",
|
|
75
|
+
"vue3",
|
|
76
|
+
"element-plus"
|
|
77
|
+
]
|
|
78
|
+
}
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-config-provider :size="getGlobalComponentSize" :locale="zhCn">
|
|
3
|
+
<!-- 路由 -->
|
|
4
|
+
<router-view v-show="setLockScreen" />
|
|
5
|
+
<!-- 锁屏 -->
|
|
6
|
+
<LockScreen v-if="themeConfig.isLockScreen" />
|
|
7
|
+
<!-- 设置 -->
|
|
8
|
+
<Setings ref="setingsRef" v-show="setLockScreen" />
|
|
9
|
+
<!-- 全屏 -->
|
|
10
|
+
<CloseFull v-if="!themeConfig.isLockScreen" />
|
|
11
|
+
</el-config-provider>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts" name="app">
|
|
15
|
+
import { defineAsyncComponent, computed, ref, onBeforeMount, onMounted, onUnmounted, nextTick, watch } from 'vue';
|
|
16
|
+
import { useRoute } from 'vue-router';
|
|
17
|
+
import zhCn from 'element-plus/es/locale/lang/zh-cn';
|
|
18
|
+
import { storeToRefs } from 'pinia';
|
|
19
|
+
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
|
|
20
|
+
import { useThemeConfig } from '/@/stores/themeConfig';
|
|
21
|
+
import other from '/@/utils/other';
|
|
22
|
+
import { systemStore, Session } from '/@/utils/storage';
|
|
23
|
+
import mittBus from '/@/utils/mitt';
|
|
24
|
+
import setIntroduction from '/@/utils/setIconfont';
|
|
25
|
+
|
|
26
|
+
// 引入组件
|
|
27
|
+
const LockScreen = defineAsyncComponent(() => import('/@/layout/lockScreen/index.vue'));
|
|
28
|
+
const Setings = defineAsyncComponent(() => import('/@/layout/navBars/topBar/setings.vue'));
|
|
29
|
+
const CloseFull = defineAsyncComponent(() => import('/@/layout/navBars/topBar/closeFull.vue'));
|
|
30
|
+
|
|
31
|
+
// 定义变量内容
|
|
32
|
+
const setingsRef = ref();
|
|
33
|
+
const route = useRoute();
|
|
34
|
+
const stores = useTagsViewRoutes();
|
|
35
|
+
const storesThemeConfig = useThemeConfig();
|
|
36
|
+
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
37
|
+
|
|
38
|
+
// 设置锁屏时组件显示隐藏
|
|
39
|
+
const setLockScreen = computed(() => {
|
|
40
|
+
// 防止锁屏后,刷新出现不相关界面
|
|
41
|
+
return themeConfig.value.isLockScreen ? themeConfig.value.lockScreenTime > 1 : themeConfig.value.lockScreenTime >= 0;
|
|
42
|
+
});
|
|
43
|
+
// 获取全局组件大小
|
|
44
|
+
const getGlobalComponentSize = computed(() => {
|
|
45
|
+
return other.globalComponentSize();
|
|
46
|
+
});
|
|
47
|
+
// 设置初始化,防止刷新时恢复默认
|
|
48
|
+
onBeforeMount(() => {
|
|
49
|
+
// 设置批量第三方 icon 图标
|
|
50
|
+
setIntroduction.cssCdn();
|
|
51
|
+
// 设置批量第三方 js
|
|
52
|
+
setIntroduction.jsCdn();
|
|
53
|
+
});
|
|
54
|
+
// 页面加载时
|
|
55
|
+
onMounted(() => {
|
|
56
|
+
nextTick(async () => {
|
|
57
|
+
// 监听布局配'置弹窗点击打开
|
|
58
|
+
mittBus.on('openSetingsDrawer', () => {
|
|
59
|
+
setingsRef.value.openDrawer();
|
|
60
|
+
});
|
|
61
|
+
// 获取缓存中的布局配置
|
|
62
|
+
const themeConfig = await systemStore.get('themeConfig');
|
|
63
|
+
if (themeConfig) {
|
|
64
|
+
const themeConfigStyle = await systemStore.get('themeConfigStyle');
|
|
65
|
+
storesThemeConfig.setThemeConfig({ themeConfig });
|
|
66
|
+
document.documentElement.style.cssText = themeConfigStyle;
|
|
67
|
+
}
|
|
68
|
+
// 获取缓存中的全屏配置
|
|
69
|
+
if (Session.get('isTagsViewCurrenFull')) {
|
|
70
|
+
stores.setCurrenFullscreen(Session.get('isTagsViewCurrenFull'));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
// 页面销毁时,关闭监听布局配置/i18n监听
|
|
75
|
+
onUnmounted(() => {
|
|
76
|
+
mittBus.off('openSetingsDrawer', () => {});
|
|
77
|
+
});
|
|
78
|
+
// 监听路由的变化,设置网站标题
|
|
79
|
+
watch(
|
|
80
|
+
() => route.path,
|
|
81
|
+
() => {
|
|
82
|
+
other.useTitle();
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
deep: true,
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
</script>
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
export function useFieldConfigController() {
|
|
71
|
+
return {
|
|
72
|
+
postAddField,
|
|
73
|
+
getFieldByMenu,
|
|
74
|
+
getFieldListPage,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
}
|
|
@@ -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,34 @@
|
|
|
1
|
+
import request from '/@/utils/request';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 以下为模拟接口地址,gitee 的不通,就换自己的真实接口地址
|
|
5
|
+
*
|
|
6
|
+
* (不建议写成 request.post(xxx),因为这样 post 时,无法 params 与 data 同时传参)
|
|
7
|
+
*
|
|
8
|
+
* 后端控制菜单模拟json
|
|
9
|
+
* 后端控制路由,isRequestRoutes 为 true,则开启后端控制路由
|
|
10
|
+
* @method getMenuList 获取后端动态路由菜单(admin)
|
|
11
|
+
* @method getTestMenu 获取后端动态路由菜单(test)
|
|
12
|
+
*/
|
|
13
|
+
const assign = (params: object, title: string) => {
|
|
14
|
+
return Object.assign(params, { title: title });
|
|
15
|
+
};
|
|
16
|
+
export function useMenuController() {
|
|
17
|
+
return {
|
|
18
|
+
getMenuList: (params: object = {}) => {
|
|
19
|
+
params = assign(params, '测试');
|
|
20
|
+
return request({
|
|
21
|
+
url: '/json/adminMenu.json',
|
|
22
|
+
method: 'get',
|
|
23
|
+
params,
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
getTestMenu: (params: object = {}) => {
|
|
27
|
+
return request({
|
|
28
|
+
url: '/gitee/lyt-top/vue-next-admin-images/raw/master/menu/testMenu.json',
|
|
29
|
+
method: 'get',
|
|
30
|
+
params,
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
}
|