hs-admin-ui 1.0.0 → 1.0.2
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/dist/favicon.ico +0 -0
- package/dist/style.css +1 -0
- package/dist/style.css.gz +0 -0
- package/dist/umd/index.js +175 -0
- package/dist/umd/index.js.gz +0 -0
- package/package.json +5 -2
- package/.env +0 -11
- package/.env.development +0 -5
- package/.env.production +0 -5
- package/.eslintignore +0 -18
- package/.eslintrc.js +0 -104
- package/.prettierrc.js +0 -39
- package/.vite/deps_temp_3669a513/chunk-FVXAE7ZR.js +0 -11400
- package/.vite/deps_temp_3669a513/chunk-ZS7NZCD4.js +0 -36
- package/.vite/deps_temp_3669a513/default-passive-events.js +0 -25
- package/.vite/deps_temp_3669a513/element-plus.js +0 -65013
- package/.vite/deps_temp_3669a513/lodash.js +0 -5497
- package/.vite/deps_temp_3669a513/package.json +0 -3
- package/.vite/deps_temp_3669a513/vue.js +0 -324
- package/.vite/deps_temp_3669a513/vxe-table.js +0 -32336
- package/CHANGELOG.md +0 -1
- package/directoryList.md +0 -180
- package/postcss.config.js +0 -7
- package/src/App.vue +0 -88
- package/src/api/fieldConfigController/index.ts +0 -76
- package/src/api/fieldConfigController/type.ts +0 -44
- package/src/api/login/index.ts +0 -78
- package/src/api/loginController/index.ts +0 -74
- package/src/api/menu/index.ts +0 -34
- package/src/api/menu/index2.ts +0 -291
- package/src/api/menuController/index.ts +0 -189
- package/src/api/systemController/index.ts +0 -26
- package/src/api/systemController/type.ts +0 -16
- package/src/api/test/index.ts +0 -22
- package/src/api/user/index.ts +0 -30
- package/src/assets/404.png +0 -0
- package/src/assets/logo-main.svg +0 -12
- package/src/assets/logo-mini.svg +0 -12
- package/src/components/base/hsAffix/src/hsAffix.vue +0 -22
- package/src/components/base/hsAlert/src/hsAlert.vue +0 -15
- package/src/components/base/hsAutocomplete/src/hsAutocomplete.vue +0 -36
- package/src/components/base/hsButton/src/hsButton.vue +0 -26
- package/src/components/base/hsButton/src/hsButtonGroup.vue +0 -8
- package/src/components/base/hsButton/useButtonEvents.ts +0 -19
- package/src/components/base/hsCalendar/src/hsCalendar.vue +0 -36
- package/src/components/base/hsCarousel/src/hsCarousel.vue +0 -15
- package/src/components/base/hsCarousel/src/hsCarouselItem.vue +0 -15
- package/src/components/base/hsCascader/src/hsCascader.vue +0 -36
- package/src/components/base/hsCascader/src/hsCascaderPanel.vue +0 -29
- package/src/components/base/hsCheckbox/src/hsCheckbox.vue +0 -32
- package/src/components/base/hsCheckbox/src/hsCheckboxButton.vue +0 -18
- package/src/components/base/hsCheckbox/src/hsCheckboxGroup.vue +0 -32
- package/src/components/base/hsCol/src/hsCol.vue +0 -20
- package/src/components/base/hsCollapse/src/hsCollapse.vue +0 -36
- package/src/components/base/hsCollapse/src/hsCollapseItem.vue +0 -22
- package/src/components/base/hsColorPicker/src/hsColorPicker.vue +0 -32
- package/src/components/base/hsDatePicker/src/hsDatePicker.vue +0 -40
- package/src/components/base/hsDialog/src/hsDialog.vue +0 -36
- package/src/components/base/hsDrawer/src/hsDrawer.vue +0 -29
- package/src/components/base/hsDropdown/src/hsDropdown.vue +0 -15
- package/src/components/base/hsDropdown/src/hsDropdownItem.vue +0 -15
- package/src/components/base/hsDropdown/src/hsDropdownMenu.vue +0 -15
- package/src/components/base/hsForm/src/hsForm.vue +0 -23
- package/src/components/base/hsForm/src/hsFormItem.vue +0 -22
- package/src/components/base/hsGetApi/src/hsGetApis.vue +0 -231
- package/src/components/base/hsGetApi/useGetApis.ts +0 -158
- package/src/components/base/hsInput/src/hsInput.vue +0 -40
- package/src/components/base/hsInput/useInputEvents.ts +0 -52
- package/src/components/base/hsInputNumber/src/hsInputNumber.vue +0 -31
- package/src/components/base/hsPopconfirm/src/hsPopconfirm.vue +0 -15
- package/src/components/base/hsPopover/src/hsPopover.vue +0 -22
- package/src/components/base/hsProgress/src/hsProgress.vue +0 -15
- package/src/components/base/hsRadio/src/hsRadio.vue +0 -32
- package/src/components/base/hsRadio/src/hsRadioButton.vue +0 -18
- package/src/components/base/hsRadio/src/hsRadioGroup.vue +0 -32
- package/src/components/base/hsRate/src/hsRate.vue +0 -33
- package/src/components/base/hsResult/src/hsResult.vue +0 -15
- package/src/components/base/hsRow/src/hsRow.vue +0 -20
- package/src/components/base/hsScrollbar/src/hsScrollbar.vue +0 -22
- package/src/components/base/hsSelect/src/hsOption.vue +0 -8
- package/src/components/base/hsSelect/src/hsOptionGroup.vue +0 -8
- package/src/components/base/hsSelect/src/hsSelect.vue +0 -42
- package/src/components/base/hsSelect/useSelectEvents.ts +0 -60
- package/src/components/base/hsSlider/src/hsSlider.vue +0 -25
- package/src/components/base/hsSteps/src/hsStep.vue +0 -15
- package/src/components/base/hsSteps/src/hsSteps.vue +0 -15
- package/src/components/base/hsSwitch/src/hsSwitch.vue +0 -35
- package/src/components/base/hsTable/hsBCTable.vue +0 -116
- package/src/components/base/hsTable/hsTable copy.vue +0 -226
- package/src/components/base/hsTable/hsTable.vue +0 -213
- package/src/components/base/hsTable/useHsTableConfig.ts +0 -95
- package/src/components/base/hsTable/useTableEvents.ts +0 -118
- package/src/components/base/hsTabs/src/hsTabPane.vue +0 -15
- package/src/components/base/hsTabs/src/hsTabs.vue +0 -29
- package/src/components/base/hsTag/src/hsCheckTag.vue +0 -16
- package/src/components/base/hsTag/src/hsTag.vue +0 -15
- package/src/components/base/hsTest/HsTest.vue +0 -320
- package/src/components/base/hsTooltip/src/hsTooltip.vue +0 -22
- package/src/components/base/hsTour/src/hsTour.vue +0 -31
- package/src/components/base/hsTour/src/hsTourStep.vue +0 -15
- package/src/components/base/hsTransfer/src/hsTransfer.vue +0 -36
- package/src/components/base/hsTree/src/hsTree.vue +0 -24
- package/src/components/base/hsTreeSelect/src/hsTreeSelect.vue +0 -39
- package/src/components/base/hsUpload/src/hsUpload.vue +0 -32
- package/src/components/base/hsWatermark/src/hsWatermark.vue +0 -15
- package/src/components/business/bcAutoComplete/bcAutoComplete.vue +0 -38
- package/src/components/business/bcAutoComplete/defaultData.ts +0 -25
- package/src/components/business/bcAutoComplete/useAutoComplete.ts +0 -65
- package/src/components/business/bcBtn/bcBtn.vue +0 -40
- package/src/components/business/bcForm/bcForm.vue +0 -113
- package/src/components/business/bcForm/bcFormDrag.vue +0 -104
- package/src/components/business/bcForm/bcFormSearch.vue +0 -154
- package/src/components/business/bcForm/components/sortForm/index.ts +0 -18
- package/src/components/business/bcForm/components/sortForm/sortForm.vue +0 -92
- package/src/components/business/bcFormConfig/bcFormConfig.vue +0 -196
- package/src/components/business/bcFormTable/bcFormTable.vue +0 -91
- package/src/components/business/bcFormTable/components/bcTabs/bcTabs.vue +0 -53
- package/src/components/business/bcFormTable/components/contextBody/contextBody.vue +0 -67
- package/src/components/business/bcFormTable/components/contextBody/useContextMenu.ts +0 -53
- package/src/components/business/bcFormTable/components/formSearchBtn/formSearchBtn.vue +0 -21
- package/src/components/business/bcFormTable/methods/cellDetailMethod.ts +0 -5
- package/src/components/business/bcFormTable/methods/filterAgeMethod.ts +0 -5
- package/src/components/business/bcFormTable/methods/footerMethod.ts +0 -25
- package/src/components/business/bcFormTable/methods/index.ts +0 -10
- package/src/components/business/bcFormTable/utils/onFormKey.ts +0 -121
- package/src/components/business/bcFormTable/utils/onTableKey.ts +0 -119
- package/src/components/business/bcFormTable/utils/parseTable.ts +0 -201
- package/src/components/business/bcFormTable/utils/useButon.ts +0 -20
- package/src/components/business/bcFormTable/utils/useTableHeight.ts +0 -44
- package/src/components/business/bcPageConfig/bcPageConfig.vue +0 -79
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsAttrBtn.vue +0 -39
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnItemConfig.vue +0 -32
- package/src/components/business/bcPageConfig/components/hsBtn/src/hsBtnPanel.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsBtn/useAttrBtn.ts +0 -58
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnConfigList.ts +0 -71
- package/src/components/business/bcPageConfig/components/hsBtn/useBtnItemConfig.ts +0 -35
- package/src/components/business/bcPageConfig/components/hsExpand/src/hsExpand.vue +0 -33
- package/src/components/business/bcPageConfig/components/hsExpand/useExpand.ts +0 -9
- package/src/components/business/bcPageConfig/components/hsForm/src/hsAttrForm.vue +0 -54
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormPanel.vue +0 -64
- package/src/components/business/bcPageConfig/components/hsForm/src/hsFormParse.vue +0 -24
- package/src/components/business/bcPageConfig/components/hsForm/useAttrForm.ts +0 -108
- package/src/components/business/bcPageConfig/components/hsForm/useFormListConfig.ts +0 -69
- package/src/components/business/bcPageConfig/components/hsForm/useFormParse.ts +0 -120
- package/src/components/business/bcPageConfig/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/components/business/bcPageConfig/components/hsSaveForm/src/saveForm.vue +0 -48
- package/src/components/business/bcPageConfig/components/hsSaveForm/useSaveForm.ts +0 -148
- package/src/components/business/bcPageConfig/components/hsTables/src/hsAttrTable.vue +0 -122
- package/src/components/business/bcPageConfig/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfig.vue +0 -51
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableConfigList.vue +0 -46
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTablePanel.vue +0 -68
- package/src/components/business/bcPageConfig/components/hsTables/src/hsTableParse.vue +0 -24
- package/src/components/business/bcPageConfig/components/hsTables/useAttrTable.ts +0 -218
- package/src/components/business/bcPageConfig/components/hsTables/useTableConfigList.ts +0 -77
- package/src/components/business/bcPageConfig/components/hsTables/useTableParse.ts +0 -78
- package/src/components/business/bcPageConfig/default/apis.json +0 -24712
- package/src/components/business/bcPageConfig/default/baseBtnConfig.ts +0 -256
- package/src/components/business/bcPageConfig/default/baseFormConfig.ts +0 -380
- package/src/components/business/bcPageConfig/default/baseTableConfig.ts +0 -2399
- package/src/components/business/bcPageConfig/usePageConfig.ts +0 -469
- package/src/components/business/bcSelect/bcSelect.vue +0 -50
- package/src/components/business/bcSwitchSystems/bcSwitchSystems.vue +0 -36
- package/src/components/business/bcSwitchSystems/useSwitchSystems.ts +0 -74
- package/src/components/business/bcTable/bcTable.vue +0 -63
- package/src/components/business/bcTable/components/sortColumn/index.ts +0 -19
- package/src/components/business/bcTable/components/sortColumn/sortColumn.vue +0 -107
- package/src/components/business/bcTable/useTable.ts +0 -51
- package/src/components/business/bcTable/useTableHeight.ts +0 -24
- package/src/components/business/bcTreeSelect/bcTreeSelect.vue +0 -12
- package/src/components/business/cardID/cardID.vue +0 -24
- package/src/components/business/cardID/type.ts +0 -0
- package/src/components/business/cardID/useCardID.ts +0 -0
- package/src/components/component.ts +0 -188
- package/src/components/config/autocompleteAttrConfig/autocompleteAttrConfig.vue +0 -26
- package/src/components/config/autocompleteAttrConfig/config.ts +0 -170
- package/src/components/config/baseForm.vue +0 -175
- package/src/components/config/buttonAttrConfig/buttonAttrConfig.vue +0 -26
- package/src/components/config/buttonAttrConfig/config.ts +0 -261
- package/src/components/config/cascaderAttrConfig/cascaderAttrConfig.vue +0 -26
- package/src/components/config/cascaderAttrConfig/config.ts +0 -287
- package/src/components/config/cascaderPanelAttrConfig/cascaderPanelAttrConfig.vue +0 -26
- package/src/components/config/cascaderPanelAttrConfig/config.ts +0 -278
- package/src/components/config/checkboxAttrConfig/checkboxAttrConfig.vue +0 -26
- package/src/components/config/checkboxAttrConfig/config.ts +0 -301
- package/src/components/config/datePickerAttrConfig/config.ts +0 -256
- package/src/components/config/datePickerAttrConfig/datePickerAttrConfig.vue +0 -26
- package/src/components/config/inputAttrConfig/config.ts +0 -322
- package/src/components/config/inputAttrConfig/inputAttrConfig.vue +0 -33
- package/src/components/config/inputAttrConfig/inputEventConfig.vue +0 -35
- package/src/components/config/inputNumberAttrConfig/config.ts +0 -177
- package/src/components/config/inputNumberAttrConfig/inputNumberAttrConfig.vue +0 -26
- package/src/components/config/radioAttrConfig/config.ts +0 -212
- package/src/components/config/radioAttrConfig/radioAttrConfig.vue +0 -26
- package/src/components/config/selectAttrConfig/config.ts +0 -478
- package/src/components/config/selectAttrConfig/selectAttrConfig.vue +0 -26
- package/src/components/config/switchAttrConfig/config.ts +0 -195
- package/src/components/config/switchAttrConfig/switchAttrConfig.vue +0 -26
- package/src/components/config/treeSelectAttrConfig/config.ts +0 -625
- package/src/components/config/treeSelectAttrConfig/treeSelectAttrConfig.vue +0 -26
- package/src/components/config/type/formType.ts +0 -25
- package/src/components/config/uploadAttrConfig/config.ts +0 -250
- package/src/components/config/uploadAttrConfig/uploadAttrConfig.vue +0 -26
- package/src/components/iconSelector/index.vue +0 -247
- package/src/components/iconSelector/list.vue +0 -84
- package/src/components/svgIcon/index.vue +0 -61
- package/src/directive/authDirective.ts +0 -40
- package/src/directive/customDirective.ts +0 -178
- package/src/directive/index.ts +0 -18
- package/src/hooks/useCrypto.ts +0 -36
- package/src/hooks/useExpose.ts +0 -60
- package/src/layout/component/aside.vue +0 -160
- package/src/layout/component/columnsAside.vue +0 -299
- package/src/layout/component/header.vue +0 -18
- package/src/layout/component/main.vue +0 -65
- package/src/layout/footer/index.vue +0 -25
- package/src/layout/index.vue +0 -53
- package/src/layout/lockScreen/index.vue +0 -352
- package/src/layout/logo/index.vue +0 -75
- package/src/layout/main/classic.vue +0 -73
- package/src/layout/main/columns.vue +0 -73
- package/src/layout/main/defaults.vue +0 -73
- package/src/layout/main/transverse.vue +0 -60
- package/src/layout/navBars/index.vue +0 -35
- package/src/layout/navBars/tagsView/contextmenu.vue +0 -133
- package/src/layout/navBars/tagsView/tagsView.vue +0 -737
- package/src/layout/navBars/topBar/breadcrumb.vue +0 -146
- package/src/layout/navBars/topBar/closeFull.vue +0 -53
- package/src/layout/navBars/topBar/index.vue +0 -107
- package/src/layout/navBars/topBar/search.vue +0 -123
- package/src/layout/navBars/topBar/setings.vue +0 -789
- package/src/layout/navBars/topBar/user.vue +0 -222
- package/src/layout/navBars/topBar/userNews.vue +0 -107
- package/src/layout/navMenu/horizontal.vue +0 -138
- package/src/layout/navMenu/subItem.vue +0 -49
- package/src/layout/navMenu/vertical.vue +0 -100
- package/src/layout/routerView/iframes.vue +0 -101
- package/src/layout/routerView/link.vue +0 -93
- package/src/layout/routerView/parent.vue +0 -104
- package/src/layout/upgrade/index.vue +0 -147
- package/src/main.ts +0 -70
- package/src/router/backEnd.ts +0 -173
- package/src/router/frontEnd.ts +0 -155
- package/src/router/index.ts +0 -138
- package/src/router/route.ts +0 -94
- package/src/stores/index.ts +0 -8
- package/src/stores/keepAliveNames.ts +0 -38
- package/src/stores/requestOldRoutes.ts +0 -16
- package/src/stores/routesList.ts +0 -26
- package/src/stores/tagsViewRoutes.ts +0 -23
- package/src/stores/themeConfig.ts +0 -142
- package/src/stores/userInfo.ts +0 -65
- package/src/style/index.scss +0 -0
- package/src/style/tailwind.css +0 -29
- package/src/theme/app.scss +0 -333
- package/src/theme/common/transition.scss +0 -147
- package/src/theme/dark.scss +0 -255
- package/src/theme/element.scss +0 -321
- package/src/theme/iconSelector.scss +0 -31
- package/src/theme/index.scss +0 -8
- package/src/theme/loading.scss +0 -51
- package/src/theme/media/chart.scss +0 -94
- package/src/theme/media/cityLinkage.scss +0 -10
- package/src/theme/media/date.scss +0 -25
- package/src/theme/media/dialog.scss +0 -12
- package/src/theme/media/error.scss +0 -45
- package/src/theme/media/form.scss +0 -31
- package/src/theme/media/home.scss +0 -23
- package/src/theme/media/index.scss +0 -15
- package/src/theme/media/layout.scss +0 -63
- package/src/theme/media/login.scss +0 -74
- package/src/theme/media/media.scss +0 -13
- package/src/theme/media/pagination.scss +0 -15
- package/src/theme/media/personal.scss +0 -16
- package/src/theme/media/scrollbar.scss +0 -56
- package/src/theme/media/tagsView.scss +0 -11
- package/src/theme/mixins/index.scss +0 -56
- package/src/theme/other.scss +0 -36
- package/src/theme/tableTool.scss +0 -27
- package/src/theme/waves.scss +0 -101
- package/src/types/auth.d.ts +0 -44
- package/src/types/axios.d.ts +0 -13
- package/src/types/components.d.ts +0 -30
- package/src/types/customData.d.ts +0 -163
- package/src/types/form.ts +0 -68
- package/src/types/formItem/autocomplete.ts +0 -43
- package/src/types/formItem/button.ts +0 -39
- package/src/types/formItem/input.ts +0 -66
- package/src/types/formItem/inputNumber.ts +0 -42
- package/src/types/formItem/selelct.ts +0 -54
- package/src/types/formItem/treeSelect.ts +0 -37
- package/src/types/formTable.d.ts +0 -210
- package/src/types/global.d.ts +0 -118
- package/src/types/layout.d.ts +0 -59
- package/src/types/mitt.d.ts +0 -38
- package/src/types/pinia.d.ts +0 -92
- package/src/types/views.d.ts +0 -331
- package/src/utils/arrayOperation.ts +0 -65
- package/src/utils/authFunction.ts +0 -38
- package/src/utils/build.ts +0 -124
- package/src/utils/commonFunction.ts +0 -64
- package/src/utils/formatTime.ts +0 -137
- package/src/utils/getDataType.ts +0 -136
- package/src/utils/getStyleSheets.ts +0 -101
- package/src/utils/loading.ts +0 -44
- package/src/utils/mitt.ts +0 -8
- package/src/utils/other.ts +0 -214
- package/src/utils/request.ts +0 -82
- package/src/utils/setIconfont.ts +0 -48
- package/src/utils/showMessage.ts +0 -57
- package/src/utils/showMessageBox.ts +0 -39
- package/src/utils/showNotification.ts +0 -50
- package/src/utils/showPopup.ts +0 -81
- package/src/utils/storage.ts +0 -137
- package/src/utils/theme.ts +0 -65
- package/src/utils/toolsValidate.ts +0 -370
- package/src/utils/watermark.ts +0 -47
- package/src/views/error/401.vue +0 -88
- package/src/views/error/404.vue +0 -89
- package/src/views/home/index.vue +0 -62
- package/src/views/login/component/account.vue +0 -172
- package/src/views/login/component/mobile.vue +0 -72
- package/src/views/login/component/scan.vue +0 -63
- package/src/views/login/index.vue +0 -254
- package/src/views/system/auth/index.vue +0 -48
- package/src/views/system/auth/list.ts +0 -50
- package/src/views/system/auth/useAuth.ts +0 -34
- package/src/views/system/dept/dialog.vue +0 -167
- package/src/views/system/dept/index.vue +0 -135
- package/src/views/system/dic/dialog.vue +0 -150
- package/src/views/system/dic/index.vue +0 -132
- package/src/views/system/form/data.json +0 -360
- package/src/views/system/form/index.vue +0 -24
- package/src/views/system/formSetting/components/hsBtn/src/hsAttrBtn.vue +0 -58
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsBtn/src/hsBtnPanel.vue +0 -51
- package/src/views/system/formSetting/components/hsBtn/useAttrBtn.ts +0 -129
- package/src/views/system/formSetting/components/hsBtn/useBtnConfigList.ts +0 -73
- package/src/views/system/formSetting/components/hsExpand/src/hsExpand.vue +0 -27
- package/src/views/system/formSetting/components/hsExpand/useExpand.ts +0 -9
- package/src/views/system/formSetting/components/hsForm/src/hsAttrForm.vue +0 -124
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/views/system/formSetting/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsForm/src/hsFormPanel.vue +0 -152
- package/src/views/system/formSetting/components/hsForm/src/hsFormParse.vue +0 -33
- package/src/views/system/formSetting/components/hsForm/useAttrForm.ts +0 -109
- package/src/views/system/formSetting/components/hsForm/useFormListConfig.ts +0 -70
- package/src/views/system/formSetting/components/hsPageTree/configData.ts +0 -3700
- package/src/views/system/formSetting/components/hsPageTree/src/hsPageTree.vue +0 -30
- package/src/views/system/formSetting/components/hsPageTree/usePageTree.ts +0 -50
- package/src/views/system/formSetting/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/views/system/formSetting/components/hsSaveForm/src/saveForm.vue +0 -47
- package/src/views/system/formSetting/components/hsSaveForm/useSaveForm.ts +0 -122
- package/src/views/system/formSetting/components/hsTables/src/hsAttrTable.vue +0 -91
- package/src/views/system/formSetting/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfig.vue +0 -39
- package/src/views/system/formSetting/components/hsTables/src/hsTableConfigList.vue +0 -45
- package/src/views/system/formSetting/components/hsTables/src/hsTablePanel.vue +0 -56
- package/src/views/system/formSetting/components/hsTables/src/hsTableParse.vue +0 -29
- package/src/views/system/formSetting/components/hsTables/useAttrTable.ts +0 -125
- package/src/views/system/formSetting/components/hsTables/useTableConfigList.ts +0 -77
- package/src/views/system/formSetting/components/selectConfig/config.ts +0 -476
- package/src/views/system/formSetting/components/selectConfig/selectConfig.vue +0 -30
- package/src/views/system/formSetting/data.json +0 -360
- package/src/views/system/formSetting/default/baseBtnConfig.ts +0 -216
- package/src/views/system/formSetting/default/baseFormConfig.ts +0 -567
- package/src/views/system/formSetting/default/baseTableConfig.ts +0 -2353
- package/src/views/system/formSetting/formConfig.vue +0 -108
- package/src/views/system/formSetting/index.vue +0 -35
- package/src/views/system/formSetting/menuType.d.ts +0 -12
- package/src/views/system/formSetting/panelConfig.json +0 -164
- package/src/views/system/formSetting/useForm.ts +0 -89
- package/src/views/system/formSetting/useFormConfig.ts +0 -192
- package/src/views/system/menu/dialog.vue +0 -285
- package/src/views/system/menu/index.vue +0 -180
- package/src/views/system/page/components/hsPageTree/configData.ts +0 -3700
- package/src/views/system/page/components/hsPageTree/src/hsPageTree.vue +0 -30
- package/src/views/system/page/components/hsPageTree/usePageTree.ts +0 -49
- package/src/views/system/page/index.vue +0 -32
- package/src/views/system/page/menuType.d.ts +0 -12
- package/src/views/system/page/usePage.ts +0 -125
- package/src/views/system/role/dialog.vue +0 -236
- package/src/views/system/role/index.vue +0 -146
- package/src/views/system/table/data.json +0 -747
- package/src/views/system/table/formate.js +0 -49
- package/src/views/system/table/index.vue +0 -53
- package/src/views/system/user/dialog.vue +0 -187
- package/src/views/system/user/index.vue +0 -161
- package/src/views/test/test/components/hsBtn/src/hsAttrBtn.vue +0 -58
- package/src/views/test/test/components/hsBtn/src/hsBtnConfigList.vue +0 -45
- package/src/views/test/test/components/hsBtn/src/hsBtnPanel.vue +0 -51
- package/src/views/test/test/components/hsBtn/useAttrBtn.ts +0 -129
- package/src/views/test/test/components/hsBtn/useBtnConfigList.ts +0 -73
- package/src/views/test/test/components/hsExpand/src/hsExpand.vue +0 -27
- package/src/views/test/test/components/hsExpand/useExpand.ts +0 -9
- package/src/views/test/test/components/hsForm/src/hsAttrForm.vue +0 -124
- package/src/views/test/test/components/hsForm/src/hsFormConfig.vue +0 -180
- package/src/views/test/test/components/hsForm/src/hsFormConfigList.vue +0 -45
- package/src/views/test/test/components/hsForm/src/hsFormPanel.vue +0 -152
- package/src/views/test/test/components/hsForm/src/hsFormParse.vue +0 -33
- package/src/views/test/test/components/hsForm/useAttrForm.ts +0 -109
- package/src/views/test/test/components/hsForm/useFormListConfig.ts +0 -70
- package/src/views/test/test/components/hsSaveForm/saveFormConfig.ts +0 -66
- package/src/views/test/test/components/hsSaveForm/src/saveForm.vue +0 -47
- package/src/views/test/test/components/hsSaveForm/useSaveForm.ts +0 -122
- package/src/views/test/test/components/hsTables/src/hsAttrTable.vue +0 -91
- package/src/views/test/test/components/hsTables/src/hsRecursionConfig.vue +0 -36
- package/src/views/test/test/components/hsTables/src/hsTableConfig.vue +0 -39
- package/src/views/test/test/components/hsTables/src/hsTableConfigList.vue +0 -45
- package/src/views/test/test/components/hsTables/src/hsTablePanel.vue +0 -56
- package/src/views/test/test/components/hsTables/src/hsTableParse.vue +0 -29
- package/src/views/test/test/components/hsTables/useAttrTable.ts +0 -125
- package/src/views/test/test/components/hsTables/useTableConfigList.ts +0 -77
- package/src/views/test/test/components/selectConfig/config.ts +0 -476
- package/src/views/test/test/components/selectConfig/selectConfig.vue +0 -30
- package/src/views/test/test/data.json +0 -360
- package/src/views/test/test/default/baseBtnConfig.ts +0 -216
- package/src/views/test/test/default/baseFormConfig.ts +0 -567
- package/src/views/test/test/default/baseTableConfig.ts +0 -2353
- package/src/views/test/test/formConfig.vue +0 -102
- package/src/views/test/test/test.vue +0 -28
- package/src/views/test/test/test3.vue +0 -24
- package/src/views/test/test/test4.vue +0 -107
- package/src/views/test/test/test/345/211/257/346/234/254.vue +0 -2424
- package/src/views/test/test/useFormConfig.ts +0 -192
- package/src/views/test/test2/test2.vue +0 -17
- package/src/views/test/test3/test.vue +0 -20
- package/tailwind.config.js +0 -12
- package/tsconfig.json +0 -75
- package/vite.config.ts +0 -123
|
@@ -1,172 +0,0 @@
|
|
|
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>
|
|
@@ -1,72 +0,0 @@
|
|
|
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>
|
|
@@ -1,63 +0,0 @@
|
|
|
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>
|
|
@@ -1,254 +0,0 @@
|
|
|
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>
|
|
@@ -1,48 +0,0 @@
|
|
|
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>
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
];
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
}
|