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,49 +0,0 @@
|
|
|
1
|
-
const path = require('path');
|
|
2
|
-
const fs = require('fs');
|
|
3
|
-
const _ = require('lodash');
|
|
4
|
-
|
|
5
|
-
// 读取本地json文件
|
|
6
|
-
fs.readFile(path.resolve(__dirname, './data.json'), 'utf-8', function (err, data) {
|
|
7
|
-
if (err) return;
|
|
8
|
-
const data1 = JSON.parse(data);
|
|
9
|
-
const data2 = setPropertyData(data1);
|
|
10
|
-
// 写入本地json文件
|
|
11
|
-
fs.writeFile(path.resolve(__dirname, './data.json'), JSON.stringify(data2, null, 2), 'utf-8', function (err) {
|
|
12
|
-
if (err) return;
|
|
13
|
-
console.log('写入成功');
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
function setPropertyData(params) {
|
|
18
|
-
const string = /string=/;
|
|
19
|
-
function setProperty(property) {
|
|
20
|
-
if (property.editRender) {
|
|
21
|
-
if (property.editRender?.enabled) {
|
|
22
|
-
delete property.cellRender;
|
|
23
|
-
} else if (property.editRender) {
|
|
24
|
-
delete property.editRender;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
for (let i in property) {
|
|
28
|
-
if (_.isObject(property[i]) && _.isEmpty(property[i])) {
|
|
29
|
-
delete property[i];
|
|
30
|
-
}
|
|
31
|
-
if (string.test(property[i])) {
|
|
32
|
-
if (property[i].split('=')[1]) {
|
|
33
|
-
property[i] = new Function('return ' + property[i].split('=')[1])();
|
|
34
|
-
} else {
|
|
35
|
-
property[i] = [];
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (_.isString(property[i]) && property[i].trim() === '' && !['btnIcon'].includes(i)) {
|
|
39
|
-
delete property[i];
|
|
40
|
-
}
|
|
41
|
-
if (_.isObject(property[i]) && !_.isEmpty(property[i])) {
|
|
42
|
-
setProperty(property[i]);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
setProperty(params);
|
|
47
|
-
|
|
48
|
-
return params;
|
|
49
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="system-menu-container layout-padding">
|
|
3
|
-
<bc-form-table :data="formTableData">
|
|
4
|
-
<!-- 编辑 -->
|
|
5
|
-
<template #edit="{ row, column }">
|
|
6
|
-
<hs-input type="text" size="default" v-model="row[column.field]" clearable />
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<!-- 筛选 -->
|
|
10
|
-
<template #filter="{ $panel, column }">
|
|
11
|
-
<hs-input
|
|
12
|
-
type="number"
|
|
13
|
-
size="small"
|
|
14
|
-
v-for="(option, index) in column.filters"
|
|
15
|
-
:key="index"
|
|
16
|
-
v-model="option.data"
|
|
17
|
-
@input="$panel.changeOption($event, !!option.data, option)"
|
|
18
|
-
/>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<!-- 表体自定义插槽 -->
|
|
22
|
-
<template #field2="{ row, column }">
|
|
23
|
-
<hs-button size="small">表体自定义插槽 - {{ row[column.field] }}</hs-button>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<!-- 表体自定义插槽 -->
|
|
27
|
-
<template #btns="{ row, column }">
|
|
28
|
-
<hs-button type="primary" size="small">按钮1</hs-button>
|
|
29
|
-
</template>
|
|
30
|
-
</bc-form-table>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script setup lang="ts" name="tableComponent">
|
|
35
|
-
import { ref, onMounted } from 'vue';
|
|
36
|
-
import ICustomData from '/@/types/customData';
|
|
37
|
-
import { getLoadData } from '/@parseTable';
|
|
38
|
-
import data from './data.json';
|
|
39
|
-
|
|
40
|
-
const formTableData = ref<ICustomData.FormTable>();
|
|
41
|
-
|
|
42
|
-
// 页面加载时
|
|
43
|
-
onMounted(async () => {
|
|
44
|
-
formTableData.value = await getLoadData(data);
|
|
45
|
-
});
|
|
46
|
-
</script>
|
|
47
|
-
<style scoped lang="scss">
|
|
48
|
-
.system-menu-container {
|
|
49
|
-
.system-menu-padding {
|
|
50
|
-
padding: 15px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
</style>
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="system-user-dialog-container">
|
|
3
|
-
<el-dialog :title="state.dialog.title" v-model="state.dialog.isShowDialog" width="769px">
|
|
4
|
-
<el-form ref="userDialogFormRef" :model="state.ruleForm" size="default" label-width="90px">
|
|
5
|
-
<el-row :gutter="35">
|
|
6
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
7
|
-
<el-form-item label="账户名称">
|
|
8
|
-
<el-input v-model="state.ruleForm.userName" placeholder="请输入账户名称" clearable></el-input>
|
|
9
|
-
</el-form-item>
|
|
10
|
-
</el-col>
|
|
11
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
12
|
-
<el-form-item label="用户昵称">
|
|
13
|
-
<el-input v-model="state.ruleForm.userNickname" placeholder="请输入用户昵称" clearable></el-input>
|
|
14
|
-
</el-form-item>
|
|
15
|
-
</el-col>
|
|
16
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
17
|
-
<el-form-item label="关联角色">
|
|
18
|
-
<el-select v-model="state.ruleForm.roleSign" placeholder="请选择" clearable class="w100">
|
|
19
|
-
<el-option label="超级管理员" value="admin"></el-option>
|
|
20
|
-
<el-option label="普通用户" value="common"></el-option>
|
|
21
|
-
</el-select>
|
|
22
|
-
</el-form-item>
|
|
23
|
-
</el-col>
|
|
24
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
25
|
-
<el-form-item label="部门">
|
|
26
|
-
<el-cascader
|
|
27
|
-
:options="state.deptData"
|
|
28
|
-
:props="{ checkStrictly: true, value: 'deptName', label: 'deptName' }"
|
|
29
|
-
placeholder="请选择部门"
|
|
30
|
-
clearable
|
|
31
|
-
class="w100"
|
|
32
|
-
v-model="state.ruleForm.department"
|
|
33
|
-
>
|
|
34
|
-
<template #default="{ node, data }">
|
|
35
|
-
<span>{{ data.deptName }}</span>
|
|
36
|
-
<span v-if="!node.isLeaf"> ({{ data.children.length }}) </span>
|
|
37
|
-
</template>
|
|
38
|
-
</el-cascader>
|
|
39
|
-
</el-form-item>
|
|
40
|
-
</el-col>
|
|
41
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
42
|
-
<el-form-item label="手机号">
|
|
43
|
-
<el-input v-model="state.ruleForm.phone" placeholder="请输入手机号" clearable></el-input>
|
|
44
|
-
</el-form-item>
|
|
45
|
-
</el-col>
|
|
46
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
47
|
-
<el-form-item label="邮箱">
|
|
48
|
-
<el-input v-model="state.ruleForm.email" placeholder="请输入" clearable></el-input>
|
|
49
|
-
</el-form-item>
|
|
50
|
-
</el-col>
|
|
51
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
52
|
-
<el-form-item label="性别">
|
|
53
|
-
<el-select v-model="state.ruleForm.sex" placeholder="请选择" clearable class="w100">
|
|
54
|
-
<el-option label="男" value="男"></el-option>
|
|
55
|
-
<el-option label="女" value="女"></el-option>
|
|
56
|
-
</el-select>
|
|
57
|
-
</el-form-item>
|
|
58
|
-
</el-col>
|
|
59
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
60
|
-
<el-form-item label="账户密码">
|
|
61
|
-
<el-input v-model="state.ruleForm.password" placeholder="请输入" type="password" clearable></el-input>
|
|
62
|
-
</el-form-item>
|
|
63
|
-
</el-col>
|
|
64
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
65
|
-
<el-form-item label="账户过期">
|
|
66
|
-
<el-date-picker v-model="state.ruleForm.overdueTime" type="date" placeholder="请选择" class="w100"> </el-date-picker>
|
|
67
|
-
</el-form-item>
|
|
68
|
-
</el-col>
|
|
69
|
-
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
|
|
70
|
-
<el-form-item label="用户状态">
|
|
71
|
-
<el-switch v-model="state.ruleForm.status" inline-prompt active-text="启" inactive-text="禁"></el-switch>
|
|
72
|
-
</el-form-item>
|
|
73
|
-
</el-col>
|
|
74
|
-
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
|
75
|
-
<el-form-item label="用户描述">
|
|
76
|
-
<el-input v-model="state.ruleForm.describe" type="textarea" placeholder="请输入用户描述" maxlength="150"></el-input>
|
|
77
|
-
</el-form-item>
|
|
78
|
-
</el-col>
|
|
79
|
-
</el-row>
|
|
80
|
-
</el-form>
|
|
81
|
-
<template #footer>
|
|
82
|
-
<span class="dialog-footer">
|
|
83
|
-
<el-button @click="onCancel" size="default">取 消</el-button>
|
|
84
|
-
<el-button type="primary" @click="onSubmit" size="default">{{ state.dialog.submitTxt }}</el-button>
|
|
85
|
-
</span>
|
|
86
|
-
</template>
|
|
87
|
-
</el-dialog>
|
|
88
|
-
</div>
|
|
89
|
-
</template>
|
|
90
|
-
|
|
91
|
-
<script setup lang="ts" name="systemUserDialog">
|
|
92
|
-
import { reactive, ref } from 'vue';
|
|
93
|
-
|
|
94
|
-
// 定义子组件向父组件传值/事件
|
|
95
|
-
const emit = defineEmits(['refresh']);
|
|
96
|
-
|
|
97
|
-
// 定义变量内容
|
|
98
|
-
const userDialogFormRef = ref();
|
|
99
|
-
const state = reactive({
|
|
100
|
-
ruleForm: {
|
|
101
|
-
userName: '', // 账户名称
|
|
102
|
-
userNickname: '', // 用户昵称
|
|
103
|
-
roleSign: '', // 关联角色
|
|
104
|
-
department: [] as string[], // 部门
|
|
105
|
-
phone: '', // 手机号
|
|
106
|
-
email: '', // 邮箱
|
|
107
|
-
sex: '', // 性别
|
|
108
|
-
password: '', // 账户密码
|
|
109
|
-
overdueTime: '', // 账户过期
|
|
110
|
-
status: true, // 用户状态
|
|
111
|
-
describe: '', // 用户描述
|
|
112
|
-
},
|
|
113
|
-
deptData: [] as DeptTreeType[], // 部门数据
|
|
114
|
-
dialog: {
|
|
115
|
-
isShowDialog: false,
|
|
116
|
-
type: '',
|
|
117
|
-
title: '',
|
|
118
|
-
submitTxt: '',
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
// 打开弹窗
|
|
123
|
-
const openDialog = (type: string, row: RowUserType) => {
|
|
124
|
-
if (type === 'edit') {
|
|
125
|
-
state.ruleForm = row;
|
|
126
|
-
state.dialog.title = '修改用户';
|
|
127
|
-
state.dialog.submitTxt = '修 改';
|
|
128
|
-
} else {
|
|
129
|
-
state.dialog.title = '新增用户';
|
|
130
|
-
state.dialog.submitTxt = '新 增';
|
|
131
|
-
// 清空表单,此项需加表单验证才能使用
|
|
132
|
-
// nextTick(() => {
|
|
133
|
-
// userDialogFormRef.value.resetFields();
|
|
134
|
-
// });
|
|
135
|
-
}
|
|
136
|
-
state.dialog.isShowDialog = true;
|
|
137
|
-
getMenuData();
|
|
138
|
-
};
|
|
139
|
-
// 关闭弹窗
|
|
140
|
-
const closeDialog = () => {
|
|
141
|
-
state.dialog.isShowDialog = false;
|
|
142
|
-
};
|
|
143
|
-
// 取消
|
|
144
|
-
const onCancel = () => {
|
|
145
|
-
closeDialog();
|
|
146
|
-
};
|
|
147
|
-
// 提交
|
|
148
|
-
const onSubmit = () => {
|
|
149
|
-
closeDialog();
|
|
150
|
-
emit('refresh');
|
|
151
|
-
// if (state.dialog.type === 'add') { }
|
|
152
|
-
};
|
|
153
|
-
// 初始化部门数据
|
|
154
|
-
const getMenuData = () => {
|
|
155
|
-
state.deptData.push({
|
|
156
|
-
deptName: 'vueNextAdmin',
|
|
157
|
-
createTime: new Date().toLocaleString(),
|
|
158
|
-
status: true,
|
|
159
|
-
sort: Math.random(),
|
|
160
|
-
describe: '顶级部门',
|
|
161
|
-
id: Math.random(),
|
|
162
|
-
children: [
|
|
163
|
-
{
|
|
164
|
-
deptName: 'IT外包服务',
|
|
165
|
-
createTime: new Date().toLocaleString(),
|
|
166
|
-
status: true,
|
|
167
|
-
sort: Math.random(),
|
|
168
|
-
describe: '总部',
|
|
169
|
-
id: Math.random(),
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
deptName: '资本控股',
|
|
173
|
-
createTime: new Date().toLocaleString(),
|
|
174
|
-
status: true,
|
|
175
|
-
sort: Math.random(),
|
|
176
|
-
describe: '分部',
|
|
177
|
-
id: Math.random(),
|
|
178
|
-
},
|
|
179
|
-
],
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
// 暴露变量
|
|
184
|
-
defineExpose({
|
|
185
|
-
openDialog,
|
|
186
|
-
});
|
|
187
|
-
</script>
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="system-user-container layout-padding">
|
|
3
|
-
<el-card shadow="hover" class="layout-padding-auto">
|
|
4
|
-
<div class="system-user-search mb15">
|
|
5
|
-
<el-input size="default" placeholder="请输入用户名称" style="max-width: 180px"> </el-input>
|
|
6
|
-
<el-button size="default" type="primary" class="ml10">
|
|
7
|
-
<el-icon>
|
|
8
|
-
<ele-Search />
|
|
9
|
-
</el-icon>
|
|
10
|
-
查询
|
|
11
|
-
</el-button>
|
|
12
|
-
<el-button size="default" type="success" class="ml10" @click="onOpenAddUser('add')">
|
|
13
|
-
<el-icon>
|
|
14
|
-
<ele-FolderAdd />
|
|
15
|
-
</el-icon>
|
|
16
|
-
新增用户
|
|
17
|
-
</el-button>
|
|
18
|
-
</div>
|
|
19
|
-
<el-table :data="state.tableData.data" v-loading="state.tableData.loading" style="width: 100%">
|
|
20
|
-
<el-table-column type="index" label="序号" width="60" />
|
|
21
|
-
<el-table-column prop="userName" label="账户名称" show-overflow-tooltip></el-table-column>
|
|
22
|
-
<el-table-column prop="userNickname" label="用户昵称" show-overflow-tooltip></el-table-column>
|
|
23
|
-
<el-table-column prop="roleSign" label="关联角色" show-overflow-tooltip></el-table-column>
|
|
24
|
-
<el-table-column prop="department" label="部门" show-overflow-tooltip></el-table-column>
|
|
25
|
-
<el-table-column prop="phone" label="手机号" show-overflow-tooltip></el-table-column>
|
|
26
|
-
<el-table-column prop="email" label="邮箱" show-overflow-tooltip></el-table-column>
|
|
27
|
-
<el-table-column prop="status" label="用户状态" show-overflow-tooltip>
|
|
28
|
-
<template #default="scope">
|
|
29
|
-
<el-tag type="success" v-if="scope.row.status">启用</el-tag>
|
|
30
|
-
<el-tag type="info" v-else>禁用</el-tag>
|
|
31
|
-
</template>
|
|
32
|
-
</el-table-column>
|
|
33
|
-
<el-table-column prop="describe" label="用户描述" show-overflow-tooltip></el-table-column>
|
|
34
|
-
<el-table-column prop="createTime" label="创建时间" show-overflow-tooltip></el-table-column>
|
|
35
|
-
<el-table-column label="操作" width="100">
|
|
36
|
-
<template #default="scope">
|
|
37
|
-
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary" @click="onOpenEditUser('edit', scope.row)"
|
|
38
|
-
>修改</el-button
|
|
39
|
-
>
|
|
40
|
-
<el-button :disabled="scope.row.userName === 'admin'" size="small" text type="primary" @click="onRowDel(scope.row)">删除</el-button>
|
|
41
|
-
</template>
|
|
42
|
-
</el-table-column>
|
|
43
|
-
</el-table>
|
|
44
|
-
<el-pagination
|
|
45
|
-
@size-change="onHandleSizeChange"
|
|
46
|
-
@current-change="onHandleCurrentChange"
|
|
47
|
-
class="mt15"
|
|
48
|
-
:pager-count="5"
|
|
49
|
-
:page-sizes="[10, 20, 30]"
|
|
50
|
-
v-model:current-page="state.tableData.param.currentPage"
|
|
51
|
-
background
|
|
52
|
-
v-model:page-size="state.tableData.param.pageSize"
|
|
53
|
-
layout="total, sizes, prev, pager, next, jumper"
|
|
54
|
-
:total="state.tableData.total"
|
|
55
|
-
>
|
|
56
|
-
</el-pagination>
|
|
57
|
-
</el-card>
|
|
58
|
-
<UserDialog ref="userDialogRef" @refresh="getTableData()" />
|
|
59
|
-
</div>
|
|
60
|
-
</template>
|
|
61
|
-
|
|
62
|
-
<script setup lang="ts" name="systemUser">
|
|
63
|
-
import { defineAsyncComponent, reactive, onMounted, ref } from 'vue';
|
|
64
|
-
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
65
|
-
import { userController } from '/@/api/user';
|
|
66
|
-
|
|
67
|
-
// 引入组件
|
|
68
|
-
const UserDialog = defineAsyncComponent(() => import('/@/views/system/user/dialog.vue'));
|
|
69
|
-
|
|
70
|
-
// 定义变量内容
|
|
71
|
-
const userDialogRef = ref();
|
|
72
|
-
const state = reactive({
|
|
73
|
-
tableData: {
|
|
74
|
-
data: [],
|
|
75
|
-
total: 0,
|
|
76
|
-
loading: false,
|
|
77
|
-
param: {
|
|
78
|
-
currentPage: 1,
|
|
79
|
-
pageSize: 20,
|
|
80
|
-
menu_id: 'b7c88476446dfaea17ff7c9504f0813a',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
// 初始化表格数据
|
|
86
|
-
const getTableData = async () => {
|
|
87
|
-
state.tableData.loading = true;
|
|
88
|
-
const res = await userController().listPage(state.tableData.param);
|
|
89
|
-
const data = [];
|
|
90
|
-
for (let i = 0; i < 2; i++) {
|
|
91
|
-
data.push({
|
|
92
|
-
userName: i === 0 ? 'admin' : 'test',
|
|
93
|
-
userNickname: i === 0 ? '我是管理员' : '我是普通用户',
|
|
94
|
-
roleSign: i === 0 ? 'admin' : 'common',
|
|
95
|
-
department: i === 0 ? ['vueNextAdmin', 'IT外包服务'] : ['vueNextAdmin', '资本控股'],
|
|
96
|
-
phone: '12345678910',
|
|
97
|
-
email: 'vueNextAdmin@123.com',
|
|
98
|
-
sex: '女',
|
|
99
|
-
password: '123456',
|
|
100
|
-
overdueTime: new Date(),
|
|
101
|
-
status: true,
|
|
102
|
-
describe: i === 0 ? '不可删除' : '测试用户',
|
|
103
|
-
createTime: new Date().toLocaleString(),
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
state.tableData.data = data;
|
|
107
|
-
state.tableData.total = state.tableData.data.length;
|
|
108
|
-
setTimeout(() => {
|
|
109
|
-
state.tableData.loading = false;
|
|
110
|
-
}, 500);
|
|
111
|
-
};
|
|
112
|
-
// 打开新增用户弹窗
|
|
113
|
-
const onOpenAddUser = (type: string) => {
|
|
114
|
-
userDialogRef.value.openDialog(type);
|
|
115
|
-
};
|
|
116
|
-
// 打开修改用户弹窗
|
|
117
|
-
const onOpenEditUser = (type: string, row: RowUserType) => {
|
|
118
|
-
userDialogRef.value.openDialog(type, row);
|
|
119
|
-
};
|
|
120
|
-
// 删除用户
|
|
121
|
-
const onRowDel = (row: RowUserType) => {
|
|
122
|
-
ElMessageBox.confirm(`此操作将永久删除账户名称:“${row.userName}”,是否继续?`, '提示', {
|
|
123
|
-
confirmButtonText: '确认',
|
|
124
|
-
cancelButtonText: '取消',
|
|
125
|
-
type: 'warning',
|
|
126
|
-
})
|
|
127
|
-
.then(() => {
|
|
128
|
-
getTableData();
|
|
129
|
-
ElMessage.success('删除成功');
|
|
130
|
-
})
|
|
131
|
-
.catch(() => {});
|
|
132
|
-
};
|
|
133
|
-
// 分页改变
|
|
134
|
-
const onHandleSizeChange = (val: number) => {
|
|
135
|
-
state.tableData.param.pageSize = val;
|
|
136
|
-
getTableData();
|
|
137
|
-
};
|
|
138
|
-
// 分页改变
|
|
139
|
-
const onHandleCurrentChange = (val: number) => {
|
|
140
|
-
state.tableData.param.currentPage = val;
|
|
141
|
-
getTableData();
|
|
142
|
-
};
|
|
143
|
-
// 页面加载时
|
|
144
|
-
onMounted(() => {
|
|
145
|
-
getTableData();
|
|
146
|
-
});
|
|
147
|
-
</script>
|
|
148
|
-
|
|
149
|
-
<style scoped lang="scss">
|
|
150
|
-
.system-user-container {
|
|
151
|
-
:deep(.el-card__body) {
|
|
152
|
-
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
flex: 1;
|
|
155
|
-
overflow: auto;
|
|
156
|
-
.el-table {
|
|
157
|
-
flex: 1;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
</style>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bg-blue-200 h-full flex flex-col">
|
|
3
|
-
<div style="height: calc(100% -50px)" class="overflow-y-auto flex-1">
|
|
4
|
-
<component :is="hsExpand" v-model="visible" :expandConfig="{ subTitle: '按钮项代码' }"></component>
|
|
5
|
-
<div v-if="visible">
|
|
6
|
-
{{ btnItemConfig }}
|
|
7
|
-
</div>
|
|
8
|
-
<template v-if="(btnItemConfig.config.list || []).length > 0">
|
|
9
|
-
<component :is="hsExpand" v-model="btnItemConfig.config.visible" :expandConfig="btnItemConfig.config.title"></component>
|
|
10
|
-
<component
|
|
11
|
-
ref="baseConfigRef"
|
|
12
|
-
v-show="btnItemConfig.config.visible"
|
|
13
|
-
:parentConfig="parentConfig"
|
|
14
|
-
:is="'bc-form-config'"
|
|
15
|
-
:data="btnItemConfig.data"
|
|
16
|
-
:config="btnItemConfig.config.list"
|
|
17
|
-
:rules="btnBaseRule"
|
|
18
|
-
>
|
|
19
|
-
<template #name>
|
|
20
|
-
<hs-autocomplete
|
|
21
|
-
v-model="btnItemConfig.data.name"
|
|
22
|
-
clearable
|
|
23
|
-
class="inline-input w-50"
|
|
24
|
-
placeholder="请输入"
|
|
25
|
-
ref="hsAutocompleteRef"
|
|
26
|
-
:fetch-suggestions="querySearchAsync"
|
|
27
|
-
@select="handleSelect"
|
|
28
|
-
></hs-autocomplete>
|
|
29
|
-
</template>
|
|
30
|
-
</component>
|
|
31
|
-
</template>
|
|
32
|
-
</div>
|
|
33
|
-
|
|
34
|
-
<div class="text-center grow-0" style="height: 50rpx">
|
|
35
|
-
<hs-button @click="saveData" type="primary">保存</hs-button>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script setup lang="ts">
|
|
41
|
-
import { ref } from 'vue';
|
|
42
|
-
import hsExpand from '../../hsExpand/src/hsExpand.vue';
|
|
43
|
-
import { btnBaseRule } from '../../../default/baseBtnConfig';
|
|
44
|
-
import { useHsAttrBtn } from './../useAttrBtn';
|
|
45
|
-
|
|
46
|
-
const props = defineProps({
|
|
47
|
-
current: {
|
|
48
|
-
type: Object,
|
|
49
|
-
default: () => {},
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
const baseConfigRef = ref();
|
|
53
|
-
|
|
54
|
-
const { parentConfig, visible, btnItemConfig, saveData, handleSelect, querySearchAsync } = useHsAttrBtn(props, baseConfigRef);
|
|
55
|
-
</script>
|
|
56
|
-
|
|
57
|
-
<style lang="scss" scoped></style>
|
|
58
|
-
<!-- -->
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
desc: 表单配置项集合
|
|
3
|
-
author: lvling
|
|
4
|
-
-->
|
|
5
|
-
<template>
|
|
6
|
-
<div>
|
|
7
|
-
<div class="flex flex-wrap">
|
|
8
|
-
<div class="p-2 relative" v-for="(item, index) in btnsModel" :key="index" @click="choseTagItem(item)">
|
|
9
|
-
<div class="border border-solid border-zinc-300 hover:bg-blue-200 p-2 rounded" :class="current['id'] == item['id'] ? 'bg-blue-200' : ''">
|
|
10
|
-
{{ item['data'] && item['data']['name'] }}
|
|
11
|
-
</div>
|
|
12
|
-
<div
|
|
13
|
-
v-if="current['id'] == item['id']"
|
|
14
|
-
@click.stop.prevent="deleteTagItem(item)"
|
|
15
|
-
style="position: absolute; top: 0px; right: 5px; cursor: pointer"
|
|
16
|
-
>
|
|
17
|
-
✖️
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="p-2">
|
|
21
|
-
<div @click="appendField" class="p-2 bg-pink-200 w-10 h-10 flex justify-center align-center rounded-full">+</div>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script setup lang="ts">
|
|
28
|
-
import { PropType, defineModel } from 'vue';
|
|
29
|
-
import { useHsBtnListConfig } from './../useBtnConfigList';
|
|
30
|
-
import IFormTable from '/@/types/formTable';
|
|
31
|
-
|
|
32
|
-
const emit = defineEmits(['chose']);
|
|
33
|
-
|
|
34
|
-
const btnsModel = defineModel<Array<IFormTable.BtnItem>>([]);
|
|
35
|
-
const props = defineProps({
|
|
36
|
-
current: {
|
|
37
|
-
type: Object as PropType<Record<'id', string>>,
|
|
38
|
-
default: () => {},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const { appendField, deleteTagItem, choseTagItem } = useHsBtnListConfig(emit, props, btnsModel);
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
desc: 配置按钮面板
|
|
3
|
-
author: 吕玲
|
|
4
|
-
-->
|
|
5
|
-
<template>
|
|
6
|
-
<div class="mx-auto flex flex-row h-full">
|
|
7
|
-
<div class="flex-1 grow overflow-y-auto">
|
|
8
|
-
<!-- 按钮配置 -->
|
|
9
|
-
<hsExpand v-model="btnTitleConfig.visible" :expandConfig="btnTitleConfig"></hsExpand>
|
|
10
|
-
<component v-if="btnTitleConfig.visible" :is="hsBtnConfigList" v-model="btnsConfig" :current="currentItem" @chose="onChoseItem"></component>
|
|
11
|
-
<div v-if="btnTitleConfig.visible">{{ btnsConfig }}</div>
|
|
12
|
-
</div>
|
|
13
|
-
<div v-if="(btnsConfig || []).length > 0 && !!currentItem.id" class="flex-none basis-1/4 ml-4">
|
|
14
|
-
<component :is="hsAttrBtn" :current="currentItem"></component>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
<script setup lang="ts" name="formPanel">
|
|
19
|
-
import { defineModel, ref } from 'vue';
|
|
20
|
-
import hsBtnConfigList from './hsBtnConfigList.vue';
|
|
21
|
-
import hsAttrBtn from './hsAttrBtn.vue';
|
|
22
|
-
import hsExpand from '../../hsExpand/src/hsExpand.vue';
|
|
23
|
-
// import { emptyFormItemData } from ''
|
|
24
|
-
import { emptyBtnItemData } from './../../../default/baseBtnConfig';
|
|
25
|
-
|
|
26
|
-
import _ from 'lodash';
|
|
27
|
-
|
|
28
|
-
const btnsConfig = defineModel<Array<IFormTable.BtnItem>>();
|
|
29
|
-
const btnTitleConfig = ref({
|
|
30
|
-
visible: true,
|
|
31
|
-
subTitle: '按钮配置',
|
|
32
|
-
class: 'font-bold my-3',
|
|
33
|
-
iconSize: 20,
|
|
34
|
-
});
|
|
35
|
-
// // 当前选中项配置
|
|
36
|
-
let currentItem = ref(_.cloneDeep(emptyBtnItemData));
|
|
37
|
-
// let oldId = ref<String>('');
|
|
38
|
-
// // let newId = ref
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* 选择某配置回调
|
|
42
|
-
*/
|
|
43
|
-
const onChoseItem = (item: IFormTable.BtnItem) => {
|
|
44
|
-
console.log('item', item);
|
|
45
|
-
|
|
46
|
-
currentItem.value = item;
|
|
47
|
-
// currentItem.value.elConfig.visible = true;
|
|
48
|
-
};
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style lang="scss" scoped></style>
|