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,172 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form size="large" class="login-content-form">
|
|
3
|
+
<el-form-item class="login-animation1">
|
|
4
|
+
<el-input text placeholder="用户名 admin 或不输均为 common" v-model="state.ruleForm.userName" clearable autocomplete="off">
|
|
5
|
+
<template #prefix>
|
|
6
|
+
<el-icon class="el-input__icon"><ele-User /></el-icon>
|
|
7
|
+
</template>
|
|
8
|
+
</el-input>
|
|
9
|
+
</el-form-item>
|
|
10
|
+
<el-form-item class="login-animation2">
|
|
11
|
+
<el-input :type="state.isShowPassword ? 'text' : 'password'" placeholder="密码:123456" v-model="state.ruleForm.password" autocomplete="off">
|
|
12
|
+
<template #prefix>
|
|
13
|
+
<el-icon class="el-input__icon"><ele-Unlock /></el-icon>
|
|
14
|
+
</template>
|
|
15
|
+
<template #suffix>
|
|
16
|
+
<i
|
|
17
|
+
class="iconfont el-input__icon login-content-password"
|
|
18
|
+
:class="state.isShowPassword ? 'icon-yincangmima' : 'icon-xianshimima'"
|
|
19
|
+
@click="state.isShowPassword = !state.isShowPassword"
|
|
20
|
+
>
|
|
21
|
+
</i>
|
|
22
|
+
</template>
|
|
23
|
+
</el-input>
|
|
24
|
+
</el-form-item>
|
|
25
|
+
<el-form-item class="login-animation3">
|
|
26
|
+
<el-col :span="15">
|
|
27
|
+
<el-input text maxlength="4" placeholder="请输入验证码" v-model="state.ruleForm.code" clearable autocomplete="off" @keydown.enter="onSignIn">
|
|
28
|
+
<template #prefix>
|
|
29
|
+
<el-icon class="el-input__icon"><ele-Position /></el-icon>
|
|
30
|
+
</template>
|
|
31
|
+
</el-input>
|
|
32
|
+
</el-col>
|
|
33
|
+
<el-col :span="1"></el-col>
|
|
34
|
+
<el-col :span="8">
|
|
35
|
+
<!-- <el-text class="login-content-code">1234</el-text> -->
|
|
36
|
+
<img
|
|
37
|
+
:src="srcCod"
|
|
38
|
+
alt="加载失败"
|
|
39
|
+
style="width: 130px; height: 30px; position: relative; bottom: 0px"
|
|
40
|
+
@click="srcCodFn"
|
|
41
|
+
class="cursor-pointer"
|
|
42
|
+
/>
|
|
43
|
+
</el-col>
|
|
44
|
+
</el-form-item>
|
|
45
|
+
<el-form-item class="login-animation4">
|
|
46
|
+
<el-button type="primary" class="login-content-submit" round @click="onSignIn" :loading="state.loading.signIn">
|
|
47
|
+
<span>登 录</span>
|
|
48
|
+
</el-button>
|
|
49
|
+
</el-form-item>
|
|
50
|
+
</el-form>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script setup lang="ts" name="loginAccount">
|
|
54
|
+
import { reactive, computed, ref } from 'vue';
|
|
55
|
+
import { useRoute, useRouter } from 'vue-router';
|
|
56
|
+
import { ElMessage } from 'element-plus';
|
|
57
|
+
import { formatAxis } from '/@/utils/formatTime';
|
|
58
|
+
import { NextLoading } from '/@/utils/loading';
|
|
59
|
+
import { Md5 } from 'ts-md5';
|
|
60
|
+
import { useLoginController } from '/@/api/loginController/index';
|
|
61
|
+
import { useUserInfo } from '/@/stores/userInfo';
|
|
62
|
+
|
|
63
|
+
const userInfo = useUserInfo();
|
|
64
|
+
const login = useLoginController();
|
|
65
|
+
const srcCod = ref('');
|
|
66
|
+
const srcCodFn = () => {
|
|
67
|
+
srcCod.value = '/scmp-web/validateCode?date=' + new Date().getTime();
|
|
68
|
+
};
|
|
69
|
+
srcCodFn();
|
|
70
|
+
const route = useRoute();
|
|
71
|
+
const router = useRouter();
|
|
72
|
+
const state = reactive({
|
|
73
|
+
isShowPassword: false,
|
|
74
|
+
ruleForm: {
|
|
75
|
+
userName: 'admin',
|
|
76
|
+
password: '123456',
|
|
77
|
+
code: '',
|
|
78
|
+
},
|
|
79
|
+
loading: {
|
|
80
|
+
signIn: false,
|
|
81
|
+
},
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// 时间获取
|
|
85
|
+
const currentTime = computed(() => {
|
|
86
|
+
return formatAxis(new Date());
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
// 登录成功后的跳转
|
|
90
|
+
const signInSuccess = (isNoPower: boolean | undefined) => {
|
|
91
|
+
if (isNoPower) {
|
|
92
|
+
ElMessage.warning('抱歉,您没有登录权限');
|
|
93
|
+
userInfo.clear();
|
|
94
|
+
} else {
|
|
95
|
+
// 初始化登录成功时间问候语
|
|
96
|
+
let currentTimeInfo = currentTime.value;
|
|
97
|
+
// 登录成功,跳到转首页
|
|
98
|
+
// 如果是复制粘贴的路径,非首页/登录页,那么登录成功后重定向到对应的路径中
|
|
99
|
+
if (route.query?.redirect) {
|
|
100
|
+
router.push({
|
|
101
|
+
path: <string>route.query?.redirect,
|
|
102
|
+
query: Object.keys(<string>route.query?.params).length > 0 ? JSON.parse(<string>route.query?.params) : '',
|
|
103
|
+
});
|
|
104
|
+
} else {
|
|
105
|
+
// 跳转到首页
|
|
106
|
+
router.push({ path: '/' });
|
|
107
|
+
}
|
|
108
|
+
// 登录成功提示
|
|
109
|
+
const signInText = '欢迎回来!';
|
|
110
|
+
ElMessage.success(`${currentTimeInfo},${signInText}`);
|
|
111
|
+
// 添加 loading,防止第一次进入界面时出现短暂空白
|
|
112
|
+
NextLoading.start();
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
// 登录
|
|
116
|
+
const onSignIn = async () => {
|
|
117
|
+
state.loading.signIn = true;
|
|
118
|
+
login
|
|
119
|
+
.postAjaxLogin({
|
|
120
|
+
account: state.ruleForm.userName,
|
|
121
|
+
pwd: Md5.hashStr(state.ruleForm.password),
|
|
122
|
+
code: state.ruleForm.code,
|
|
123
|
+
})
|
|
124
|
+
.then(async (res) => {
|
|
125
|
+
if (res.code === 1) {
|
|
126
|
+
await userInfo.setUserInfo(res.data);
|
|
127
|
+
signInSuccess(false);
|
|
128
|
+
}
|
|
129
|
+
state.loading.signIn = false;
|
|
130
|
+
})
|
|
131
|
+
.catch(() => {
|
|
132
|
+
state.loading.signIn = false;
|
|
133
|
+
srcCodFn();
|
|
134
|
+
signInSuccess(true);
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
</script>
|
|
138
|
+
|
|
139
|
+
<style scoped lang="scss">
|
|
140
|
+
.login-content-form {
|
|
141
|
+
margin-top: 20px;
|
|
142
|
+
@for $i from 1 through 4 {
|
|
143
|
+
.login-animation#{$i} {
|
|
144
|
+
opacity: 0;
|
|
145
|
+
animation-name: error-num;
|
|
146
|
+
animation-duration: 0.5s;
|
|
147
|
+
animation-fill-mode: forwards;
|
|
148
|
+
animation-delay: calc($i/10) + s;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.login-content-password {
|
|
152
|
+
display: inline-block;
|
|
153
|
+
width: 20px;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
&:hover {
|
|
156
|
+
color: #909399;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
.login-content-code {
|
|
160
|
+
width: 100%;
|
|
161
|
+
padding: 0;
|
|
162
|
+
font-weight: bold;
|
|
163
|
+
letter-spacing: 5px;
|
|
164
|
+
}
|
|
165
|
+
.login-content-submit {
|
|
166
|
+
width: 100%;
|
|
167
|
+
letter-spacing: 2px;
|
|
168
|
+
font-weight: 300;
|
|
169
|
+
margin-top: 15px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
</style>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-form size="large" class="login-content-form">
|
|
3
|
+
<el-form-item class="login-animation1">
|
|
4
|
+
<el-input text placeholder="请输入手机号" v-model="state.ruleForm.userName" clearable autocomplete="off">
|
|
5
|
+
<template #prefix>
|
|
6
|
+
<i class="iconfont icon-dianhua el-input__icon"></i>
|
|
7
|
+
</template>
|
|
8
|
+
</el-input>
|
|
9
|
+
</el-form-item>
|
|
10
|
+
<el-form-item class="login-animation2">
|
|
11
|
+
<el-col :span="15">
|
|
12
|
+
<el-input text maxlength="4" placeholder="请输入验证码" v-model="state.ruleForm.code" clearable autocomplete="off">
|
|
13
|
+
<template #prefix>
|
|
14
|
+
<el-icon class="el-input__icon"><ele-Position /></el-icon>
|
|
15
|
+
</template>
|
|
16
|
+
</el-input>
|
|
17
|
+
</el-col>
|
|
18
|
+
<el-col :span="1"></el-col>
|
|
19
|
+
<el-col :span="8">
|
|
20
|
+
<el-button class="login-content-code">获取验证码</el-button>
|
|
21
|
+
</el-col>
|
|
22
|
+
</el-form-item>
|
|
23
|
+
<el-form-item class="login-animation3">
|
|
24
|
+
<el-button round type="primary" class="login-content-submit">
|
|
25
|
+
<span>登 录</span>
|
|
26
|
+
</el-button>
|
|
27
|
+
</el-form-item>
|
|
28
|
+
<div class="font12 mt30 login-animation4 login-msg">
|
|
29
|
+
* 温馨提示:建议使用谷歌、Microsoft Edge,版本 79.0.1072.62 及以上浏览器,360浏览器请使用极速模式
|
|
30
|
+
</div>
|
|
31
|
+
</el-form>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script setup lang="ts" name="loginMobile">
|
|
35
|
+
import { reactive } from 'vue';
|
|
36
|
+
|
|
37
|
+
// 定义变量内容
|
|
38
|
+
const state = reactive({
|
|
39
|
+
ruleForm: {
|
|
40
|
+
userName: '',
|
|
41
|
+
code: '',
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<style scoped lang="scss">
|
|
47
|
+
.login-content-form {
|
|
48
|
+
margin-top: 20px;
|
|
49
|
+
@for $i from 1 through 4 {
|
|
50
|
+
.login-animation#{$i} {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
animation-name: error-num;
|
|
53
|
+
animation-duration: 0.5s;
|
|
54
|
+
animation-fill-mode: forwards;
|
|
55
|
+
animation-delay: calc($i/10) + s;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.login-content-code {
|
|
59
|
+
width: 100%;
|
|
60
|
+
padding: 0;
|
|
61
|
+
}
|
|
62
|
+
.login-content-submit {
|
|
63
|
+
width: 100%;
|
|
64
|
+
letter-spacing: 2px;
|
|
65
|
+
font-weight: 300;
|
|
66
|
+
margin-top: 15px;
|
|
67
|
+
}
|
|
68
|
+
.login-msg {
|
|
69
|
+
color: var(--el-text-color-placeholder);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="login-scan-container">
|
|
3
|
+
<div ref="qrcodeRef"></div>
|
|
4
|
+
<div class="font12 mt20 login-msg">
|
|
5
|
+
<i class="iconfont icon-saoyisao mr5"></i>
|
|
6
|
+
<span>打开手机扫一扫,快速登录/注册</span>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts" name="loginScan">
|
|
12
|
+
import { ref, onMounted, nextTick } from 'vue';
|
|
13
|
+
import QRCode from 'qrcodejs2-fixes';
|
|
14
|
+
|
|
15
|
+
// 定义变量内容
|
|
16
|
+
const qrcodeRef = ref<HTMLElement | null>(null);
|
|
17
|
+
|
|
18
|
+
// 初始化生成二维码
|
|
19
|
+
const initQrcode = () => {
|
|
20
|
+
nextTick(() => {
|
|
21
|
+
(<HTMLElement>qrcodeRef.value).innerHTML = '';
|
|
22
|
+
new QRCode(qrcodeRef.value, {
|
|
23
|
+
text: `https://qm.qq.com/cgi-bin/qm/qr?k=RdUY97Vx0T0vZ_1OOu-X1yFNkWgDwbjC&jump_from=webapi`,
|
|
24
|
+
width: 260,
|
|
25
|
+
height: 260,
|
|
26
|
+
colorDark: '#000000',
|
|
27
|
+
colorLight: '#ffffff',
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
// 页面加载时
|
|
32
|
+
onMounted(() => {
|
|
33
|
+
initQrcode();
|
|
34
|
+
});
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<style scoped lang="scss">
|
|
38
|
+
.login-scan-animation {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
animation-name: error-num;
|
|
41
|
+
animation-duration: 0.5s;
|
|
42
|
+
animation-fill-mode: forwards;
|
|
43
|
+
}
|
|
44
|
+
.login-scan-container {
|
|
45
|
+
padding: 0 20px 20px;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
text-align: center;
|
|
49
|
+
@extend .login-scan-animation;
|
|
50
|
+
animation-delay: 0.1s;
|
|
51
|
+
:deep(img) {
|
|
52
|
+
margin: auto;
|
|
53
|
+
}
|
|
54
|
+
.login-msg {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
color: var(--el-text-color-placeholder);
|
|
59
|
+
@extend .login-scan-animation;
|
|
60
|
+
animation-delay: 0.2s;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="login-container flex">
|
|
3
|
+
<div class="login-left">
|
|
4
|
+
<div class="login-left-logo">
|
|
5
|
+
<img :src="logoMini" />
|
|
6
|
+
<div class="login-left-logo-text">
|
|
7
|
+
<span>{{ getThemeConfig.globalViceTitle }}</span>
|
|
8
|
+
<span class="login-left-logo-text-msg">{{ getThemeConfig.globalViceTitleMsg }}</span>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="login-left-img">
|
|
12
|
+
<!-- <img :src="loginMain" /> -->
|
|
13
|
+
</div>
|
|
14
|
+
<!-- <img :src="loginBg" class="login-left-waves" /> -->
|
|
15
|
+
</div>
|
|
16
|
+
<div class="login-right flex">
|
|
17
|
+
<div class="login-right-warp flex-margin">
|
|
18
|
+
<span class="login-right-warp-one"></span>
|
|
19
|
+
<span class="login-right-warp-two"></span>
|
|
20
|
+
<div class="login-right-warp-mian">
|
|
21
|
+
<div class="login-right-warp-main-title">{{ getThemeConfig.globalTitle }} 欢迎您!</div>
|
|
22
|
+
<div class="login-right-warp-main-form">
|
|
23
|
+
<div v-if="!state.isScan">
|
|
24
|
+
<el-tabs v-model="state.tabsActiveName">
|
|
25
|
+
<el-tab-pane label="账号密码登录" name="account">
|
|
26
|
+
<Account />
|
|
27
|
+
</el-tab-pane>
|
|
28
|
+
<!-- <el-tab-pane label="手机号登录" name="mobile">
|
|
29
|
+
<Mobile />
|
|
30
|
+
</el-tab-pane> -->
|
|
31
|
+
</el-tabs>
|
|
32
|
+
</div>
|
|
33
|
+
<Scan v-if="state.isScan" />
|
|
34
|
+
<!-- <div class="login-content-main-sacn" @click="state.isScan = !state.isScan">
|
|
35
|
+
<i class="iconfont" :class="state.isScan ? 'icon-diannao1' : 'icon-barcode-qr'"></i>
|
|
36
|
+
<div class="login-content-main-sacn-delta"></div>
|
|
37
|
+
</div> -->
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script setup lang="ts" name="loginIndex">
|
|
46
|
+
import { defineAsyncComponent, onMounted, reactive, computed } from 'vue';
|
|
47
|
+
import { storeToRefs } from 'pinia';
|
|
48
|
+
import { useThemeConfig } from '/@/stores/themeConfig';
|
|
49
|
+
import { NextLoading } from '/@/utils/loading';
|
|
50
|
+
import logoMini from '/@/assets/logo-mini.svg';
|
|
51
|
+
// import loginMain from '/@/assets/login-main.svg';
|
|
52
|
+
// import loginBg from '/@/assets/login-bg.svg';
|
|
53
|
+
|
|
54
|
+
// 引入组件
|
|
55
|
+
const Account = defineAsyncComponent(() => import('/@/views/login/component/account.vue'));
|
|
56
|
+
// const Mobile = defineAsyncComponent(() => import('/@/views/login/component/mobile.vue'));
|
|
57
|
+
const Scan = defineAsyncComponent(() => import('/@/views/login/component/scan.vue'));
|
|
58
|
+
|
|
59
|
+
// 定义变量内容
|
|
60
|
+
const storesThemeConfig = useThemeConfig();
|
|
61
|
+
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
62
|
+
const state = reactive({
|
|
63
|
+
tabsActiveName: 'account',
|
|
64
|
+
isScan: false,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
// 获取布局配置信息
|
|
68
|
+
const getThemeConfig = computed(() => {
|
|
69
|
+
return themeConfig.value;
|
|
70
|
+
});
|
|
71
|
+
// 页面加载时
|
|
72
|
+
onMounted(() => {
|
|
73
|
+
NextLoading.done();
|
|
74
|
+
});
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<style scoped lang="scss">
|
|
78
|
+
.login-container {
|
|
79
|
+
height: 100%;
|
|
80
|
+
background: var(--el-color-white);
|
|
81
|
+
.login-left {
|
|
82
|
+
flex: 1;
|
|
83
|
+
position: relative;
|
|
84
|
+
background-color: rgba(211, 239, 255, 1);
|
|
85
|
+
margin-right: 100px;
|
|
86
|
+
.login-left-logo {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 50px;
|
|
91
|
+
left: 80px;
|
|
92
|
+
z-index: 1;
|
|
93
|
+
animation: logoAnimation 0.3s ease;
|
|
94
|
+
img {
|
|
95
|
+
width: 52px;
|
|
96
|
+
height: 52px;
|
|
97
|
+
}
|
|
98
|
+
.login-left-logo-text {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
span {
|
|
102
|
+
margin-left: 10px;
|
|
103
|
+
font-size: 28px;
|
|
104
|
+
color: #26a59a;
|
|
105
|
+
}
|
|
106
|
+
.login-left-logo-text-msg {
|
|
107
|
+
font-size: 12px;
|
|
108
|
+
color: #32a99e;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
.login-left-img {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 50%;
|
|
115
|
+
left: 50%;
|
|
116
|
+
transform: translate(-50%, -50%);
|
|
117
|
+
width: 100%;
|
|
118
|
+
height: 52%;
|
|
119
|
+
img {
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 100%;
|
|
122
|
+
animation: error-num 0.6s ease;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.login-left-waves {
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 0;
|
|
128
|
+
right: -100px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.login-right {
|
|
132
|
+
width: 700px;
|
|
133
|
+
.login-right-warp {
|
|
134
|
+
border: 1px solid var(--el-color-primary-light-3);
|
|
135
|
+
border-radius: 3px;
|
|
136
|
+
width: 500px;
|
|
137
|
+
height: 500px;
|
|
138
|
+
position: relative;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
background-color: var(--el-color-white);
|
|
141
|
+
.login-right-warp-one,
|
|
142
|
+
.login-right-warp-two {
|
|
143
|
+
position: absolute;
|
|
144
|
+
display: block;
|
|
145
|
+
width: inherit;
|
|
146
|
+
height: inherit;
|
|
147
|
+
&::before,
|
|
148
|
+
&::after {
|
|
149
|
+
content: '';
|
|
150
|
+
position: absolute;
|
|
151
|
+
z-index: 1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
.login-right-warp-one {
|
|
155
|
+
&::before {
|
|
156
|
+
filter: hue-rotate(0deg);
|
|
157
|
+
top: 0px;
|
|
158
|
+
left: 0;
|
|
159
|
+
width: 100%;
|
|
160
|
+
height: 3px;
|
|
161
|
+
background: linear-gradient(90deg, transparent, var(--el-color-primary));
|
|
162
|
+
animation: loginLeft 3s linear infinite;
|
|
163
|
+
}
|
|
164
|
+
&::after {
|
|
165
|
+
filter: hue-rotate(60deg);
|
|
166
|
+
top: -100%;
|
|
167
|
+
right: 2px;
|
|
168
|
+
width: 3px;
|
|
169
|
+
height: 100%;
|
|
170
|
+
background: linear-gradient(180deg, transparent, var(--el-color-primary));
|
|
171
|
+
animation: loginTop 3s linear infinite;
|
|
172
|
+
animation-delay: 0.7s;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
.login-right-warp-two {
|
|
176
|
+
&::before {
|
|
177
|
+
filter: hue-rotate(120deg);
|
|
178
|
+
bottom: 2px;
|
|
179
|
+
right: -100%;
|
|
180
|
+
width: 100%;
|
|
181
|
+
height: 3px;
|
|
182
|
+
background: linear-gradient(270deg, transparent, var(--el-color-primary));
|
|
183
|
+
animation: loginRight 3s linear infinite;
|
|
184
|
+
animation-delay: 1.4s;
|
|
185
|
+
}
|
|
186
|
+
&::after {
|
|
187
|
+
filter: hue-rotate(300deg);
|
|
188
|
+
bottom: -100%;
|
|
189
|
+
left: 0px;
|
|
190
|
+
width: 3px;
|
|
191
|
+
height: 100%;
|
|
192
|
+
background: linear-gradient(360deg, transparent, var(--el-color-primary));
|
|
193
|
+
animation: loginBottom 3s linear infinite;
|
|
194
|
+
animation-delay: 2.1s;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
.login-right-warp-mian {
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
height: 100%;
|
|
201
|
+
.login-right-warp-main-title {
|
|
202
|
+
height: 130px;
|
|
203
|
+
line-height: 130px;
|
|
204
|
+
font-size: 27px;
|
|
205
|
+
text-align: center;
|
|
206
|
+
letter-spacing: 3px;
|
|
207
|
+
animation: logoAnimation 0.3s ease;
|
|
208
|
+
animation-delay: 0.3s;
|
|
209
|
+
color: var(--el-text-color-primary);
|
|
210
|
+
}
|
|
211
|
+
.login-right-warp-main-form {
|
|
212
|
+
flex: 1;
|
|
213
|
+
padding: 0 50px 50px;
|
|
214
|
+
.login-content-main-sacn {
|
|
215
|
+
position: absolute;
|
|
216
|
+
top: 0;
|
|
217
|
+
right: 0;
|
|
218
|
+
width: 50px;
|
|
219
|
+
height: 50px;
|
|
220
|
+
overflow: hidden;
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
transition: all ease 0.3s;
|
|
223
|
+
color: var(--el-color-primary);
|
|
224
|
+
&-delta {
|
|
225
|
+
position: absolute;
|
|
226
|
+
width: 35px;
|
|
227
|
+
height: 70px;
|
|
228
|
+
z-index: 2;
|
|
229
|
+
top: 2px;
|
|
230
|
+
right: 21px;
|
|
231
|
+
background: var(--el-color-white);
|
|
232
|
+
transform: rotate(-45deg);
|
|
233
|
+
}
|
|
234
|
+
&:hover {
|
|
235
|
+
opacity: 1;
|
|
236
|
+
transition: all ease 0.3s;
|
|
237
|
+
color: var(--el-color-primary) !important;
|
|
238
|
+
}
|
|
239
|
+
i {
|
|
240
|
+
width: 47px;
|
|
241
|
+
height: 50px;
|
|
242
|
+
display: inline-block;
|
|
243
|
+
font-size: 48px;
|
|
244
|
+
position: absolute;
|
|
245
|
+
right: 1px;
|
|
246
|
+
top: 0px;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
</style>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="system-menu-container layout-padding">
|
|
3
|
+
<div class="h-full bg-white flex flex-col p-4">
|
|
4
|
+
<hs-form size="small" class="grid grid-cols-4 gap-4">
|
|
5
|
+
<hs-form-item label="门店">
|
|
6
|
+
<hs-select v-model="configData.config_unique_id" placeholder="请选择" filterable clearable>
|
|
7
|
+
<hs-option label="Zone one" value="shanghai" />
|
|
8
|
+
<hs-option label="Zone two" value="beijing" />
|
|
9
|
+
</hs-select>
|
|
10
|
+
</hs-form-item>
|
|
11
|
+
<hs-form-item label="角色">
|
|
12
|
+
<hs-select v-model="configData.config_type" placeholder="请选择" filterable clearable>
|
|
13
|
+
<hs-option label="Zone one" value="shanghai" />
|
|
14
|
+
<hs-option label="Zone two" value="beijing" />
|
|
15
|
+
</hs-select>
|
|
16
|
+
</hs-form-item>
|
|
17
|
+
<div class="col-span-2 flex justify-end">
|
|
18
|
+
<hs-button type="primary">全局设置</hs-button>
|
|
19
|
+
</div>
|
|
20
|
+
</hs-form>
|
|
21
|
+
<main class="flex-1 flex">
|
|
22
|
+
<el-tree
|
|
23
|
+
ref="treeRef"
|
|
24
|
+
class="w-[200px] border-right-1"
|
|
25
|
+
:props="defaultProps"
|
|
26
|
+
:data="data"
|
|
27
|
+
show-checkbox
|
|
28
|
+
node-key="id"
|
|
29
|
+
:default-expanded-keys="[2, 3]"
|
|
30
|
+
:default-checked-keys="[5]"
|
|
31
|
+
@check-change="treeCheckChange"
|
|
32
|
+
/>
|
|
33
|
+
<section class="flex-1">表体内容区域</section>
|
|
34
|
+
</main>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
<script lang="ts" setup name="authComponent">
|
|
39
|
+
import { useAuth } from './useAuth';
|
|
40
|
+
import { data } from './list';
|
|
41
|
+
|
|
42
|
+
const { defaultProps, treeRef, configData, treeCheckChange } = useAuth();
|
|
43
|
+
</script>
|
|
44
|
+
<style scoped lang="scss">
|
|
45
|
+
.el-tree {
|
|
46
|
+
--el-tree-node-content-height: 30px;
|
|
47
|
+
}
|
|
48
|
+
</style>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export const data = [
|
|
2
|
+
{
|
|
3
|
+
id: 1,
|
|
4
|
+
label: 'Level one 1',
|
|
5
|
+
children: [
|
|
6
|
+
{
|
|
7
|
+
id: 4,
|
|
8
|
+
label: 'Level two 1-1',
|
|
9
|
+
children: [
|
|
10
|
+
{
|
|
11
|
+
id: 9,
|
|
12
|
+
label: 'Level three 1-1-1',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 10,
|
|
16
|
+
label: 'Level three 1-1-2',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 2,
|
|
24
|
+
label: 'Level one 2',
|
|
25
|
+
children: [
|
|
26
|
+
{
|
|
27
|
+
id: 5,
|
|
28
|
+
label: 'Level two 2-1',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 6,
|
|
32
|
+
label: 'Level two 2-2',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 3,
|
|
38
|
+
label: 'Level one 3',
|
|
39
|
+
children: [
|
|
40
|
+
{
|
|
41
|
+
id: 7,
|
|
42
|
+
label: 'Level two 3-1',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: 8,
|
|
46
|
+
label: 'Level two 3-2',
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ref } from 'vue';
|
|
2
|
+
import IAuthData from '/@/types/auth';
|
|
3
|
+
import { ElTree } from 'element-plus';
|
|
4
|
+
import type Node from 'element-plus/es/components/tree/src/model/node';
|
|
5
|
+
|
|
6
|
+
export function useAuth() {
|
|
7
|
+
const defaultProps = {
|
|
8
|
+
children: 'children',
|
|
9
|
+
label: 'label',
|
|
10
|
+
};
|
|
11
|
+
const treeRef = ref<InstanceType<typeof ElTree>>();
|
|
12
|
+
const configData = ref<IAuthData.Auth>({
|
|
13
|
+
config_type: '',
|
|
14
|
+
config_unique_id: '',
|
|
15
|
+
btns: [],
|
|
16
|
+
tables: [],
|
|
17
|
+
form: [],
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const setCheckedKeys = () => {
|
|
21
|
+
treeRef.value!.setCheckedKeys([3], false);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
function treeCheckChange(data: any) {
|
|
25
|
+
console.log(data);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
treeRef,
|
|
30
|
+
defaultProps,
|
|
31
|
+
configData,
|
|
32
|
+
treeCheckChange,
|
|
33
|
+
};
|
|
34
|
+
}
|