@k3000/s1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -0
- package/RuoYi-Vue3/.env.development +8 -0
- package/RuoYi-Vue3/.env.production +11 -0
- package/RuoYi-Vue3/.env.staging +11 -0
- package/RuoYi-Vue3/.github/FUNDING.yml +1 -0
- package/RuoYi-Vue3/LICENSE +20 -0
- package/RuoYi-Vue3/README.md +109 -0
- package/RuoYi-Vue3/bin/build.bat +12 -0
- package/RuoYi-Vue3/bin/package.bat +12 -0
- package/RuoYi-Vue3/bin/run-web.bat +12 -0
- package/RuoYi-Vue3/html/ie.html +46 -0
- package/RuoYi-Vue3/index.html +215 -0
- package/RuoYi-Vue3/package.json +44 -0
- package/RuoYi-Vue3/public/favicon.ico +0 -0
- package/RuoYi-Vue3/src/App.vue +15 -0
- package/RuoYi-Vue3/src/api/login.js +60 -0
- package/RuoYi-Vue3/src/api/menu.js +9 -0
- package/RuoYi-Vue3/src/api/monitor/cache.js +57 -0
- package/RuoYi-Vue3/src/api/monitor/job.js +71 -0
- package/RuoYi-Vue3/src/api/monitor/jobLog.js +26 -0
- package/RuoYi-Vue3/src/api/monitor/logininfor.js +34 -0
- package/RuoYi-Vue3/src/api/monitor/online.js +18 -0
- package/RuoYi-Vue3/src/api/monitor/operlog.js +26 -0
- package/RuoYi-Vue3/src/api/monitor/server.js +9 -0
- package/RuoYi-Vue3/src/api/system/config.js +60 -0
- package/RuoYi-Vue3/src/api/system/dept.js +52 -0
- package/RuoYi-Vue3/src/api/system/dict/data.js +52 -0
- package/RuoYi-Vue3/src/api/system/dict/type.js +60 -0
- package/RuoYi-Vue3/src/api/system/menu.js +60 -0
- package/RuoYi-Vue3/src/api/system/notice.js +44 -0
- package/RuoYi-Vue3/src/api/system/post.js +44 -0
- package/RuoYi-Vue3/src/api/system/role.js +119 -0
- package/RuoYi-Vue3/src/api/system/user.js +136 -0
- package/RuoYi-Vue3/src/api/tool/gen.js +85 -0
- package/RuoYi-Vue3/src/assets/401_images/401.gif +0 -0
- package/RuoYi-Vue3/src/assets/404_images/404.png +0 -0
- package/RuoYi-Vue3/src/assets/404_images/404_cloud.png +0 -0
- package/RuoYi-Vue3/src/assets/icons/svg/404.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/bug.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/build.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/button.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/cascader.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/chart.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/checkbox.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/clipboard.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/code.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/color.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/component.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/dashboard.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/date-range.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/date.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/dict.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/documentation.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/download.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/drag.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/druid.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/edit.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/education.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/email.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/example.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/excel.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/exit-fullscreen.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/eye-open.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/eye.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/form.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/fullscreen.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/github.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/guide.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/icon.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/input.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/international.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/job.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/language.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/link.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/list.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/lock.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/log.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/logininfor.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/message.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/money.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/monitor.svg +2 -0
- package/RuoYi-Vue3/src/assets/icons/svg/nested.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/number.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/online.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/password.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/pdf.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/people.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/peoples.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/phone.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/post.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/qq.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/question.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/radio.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/rate.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/redis-list.svg +2 -0
- package/RuoYi-Vue3/src/assets/icons/svg/redis.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/row.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/search.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/select.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/server.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/shopping.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/size.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/skill.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/slider.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/star.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/swagger.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/switch.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/system.svg +2 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tab.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/table.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/textarea.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/theme.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/time-range.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/time.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tool.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tree-table.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/tree.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/upload.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/user.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/validCode.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/wechat.svg +1 -0
- package/RuoYi-Vue3/src/assets/icons/svg/zip.svg +1 -0
- package/RuoYi-Vue3/src/assets/images/dark.svg +39 -0
- package/RuoYi-Vue3/src/assets/images/light.svg +39 -0
- package/RuoYi-Vue3/src/assets/images/login-background.jpg +0 -0
- package/RuoYi-Vue3/src/assets/images/pay.png +0 -0
- package/RuoYi-Vue3/src/assets/images/profile.jpg +0 -0
- package/RuoYi-Vue3/src/assets/logo/logo.png +0 -0
- package/RuoYi-Vue3/src/assets/styles/btn.scss +99 -0
- package/RuoYi-Vue3/src/assets/styles/element-ui.scss +96 -0
- package/RuoYi-Vue3/src/assets/styles/index.scss +184 -0
- package/RuoYi-Vue3/src/assets/styles/mixin.scss +66 -0
- package/RuoYi-Vue3/src/assets/styles/ruoyi.scss +281 -0
- package/RuoYi-Vue3/src/assets/styles/sidebar.scss +238 -0
- package/RuoYi-Vue3/src/assets/styles/transition.scss +49 -0
- package/RuoYi-Vue3/src/assets/styles/variables.module.scss +65 -0
- package/RuoYi-Vue3/src/components/Breadcrumb/index.vue +66 -0
- package/RuoYi-Vue3/src/components/Crontab/day.vue +174 -0
- package/RuoYi-Vue3/src/components/Crontab/hour.vue +133 -0
- package/RuoYi-Vue3/src/components/Crontab/index.vue +310 -0
- package/RuoYi-Vue3/src/components/Crontab/min.vue +126 -0
- package/RuoYi-Vue3/src/components/Crontab/month.vue +141 -0
- package/RuoYi-Vue3/src/components/Crontab/result.vue +540 -0
- package/RuoYi-Vue3/src/components/Crontab/second.vue +128 -0
- package/RuoYi-Vue3/src/components/Crontab/week.vue +197 -0
- package/RuoYi-Vue3/src/components/Crontab/year.vue +149 -0
- package/RuoYi-Vue3/src/components/DictTag/index.vue +82 -0
- package/RuoYi-Vue3/src/components/Editor/index.vue +251 -0
- package/RuoYi-Vue3/src/components/FileUpload/index.vue +207 -0
- package/RuoYi-Vue3/src/components/Hamburger/index.vue +41 -0
- package/RuoYi-Vue3/src/components/HeaderSearch/index.vue +187 -0
- package/RuoYi-Vue3/src/components/IconSelect/index.vue +111 -0
- package/RuoYi-Vue3/src/components/IconSelect/requireIcons.js +8 -0
- package/RuoYi-Vue3/src/components/ImagePreview/index.vue +92 -0
- package/RuoYi-Vue3/src/components/ImageUpload/index.vue +213 -0
- package/RuoYi-Vue3/src/components/Pagination/index.vue +105 -0
- package/RuoYi-Vue3/src/components/ParentView/index.vue +3 -0
- package/RuoYi-Vue3/src/components/RightToolbar/index.vue +134 -0
- package/RuoYi-Vue3/src/components/RuoYi/Doc/index.vue +13 -0
- package/RuoYi-Vue3/src/components/RuoYi/Git/index.vue +13 -0
- package/RuoYi-Vue3/src/components/Screenfull/index.vue +22 -0
- package/RuoYi-Vue3/src/components/SizeSelect/index.vue +45 -0
- package/RuoYi-Vue3/src/components/SvgIcon/index.vue +53 -0
- package/RuoYi-Vue3/src/components/SvgIcon/svgicon.js +10 -0
- package/RuoYi-Vue3/src/components/TopNav/index.vue +214 -0
- package/RuoYi-Vue3/src/components/TreeSelect/index.vue +156 -0
- package/RuoYi-Vue3/src/components/iFrame/index.vue +31 -0
- package/RuoYi-Vue3/src/directive/common/copyText.js +66 -0
- package/RuoYi-Vue3/src/directive/index.js +9 -0
- package/RuoYi-Vue3/src/directive/permission/hasPermi.js +28 -0
- package/RuoYi-Vue3/src/directive/permission/hasRole.js +28 -0
- package/RuoYi-Vue3/src/layout/components/AppMain.vue +68 -0
- package/RuoYi-Vue3/src/layout/components/IframeToggle/index.vue +25 -0
- package/RuoYi-Vue3/src/layout/components/InnerLink/index.vue +24 -0
- package/RuoYi-Vue3/src/layout/components/Navbar.vue +191 -0
- package/RuoYi-Vue3/src/layout/components/Settings/index.vue +209 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/Link.vue +40 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/Logo.vue +81 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/SidebarItem.vue +102 -0
- package/RuoYi-Vue3/src/layout/components/Sidebar/index.vue +54 -0
- package/RuoYi-Vue3/src/layout/components/TagsView/ScrollPane.vue +107 -0
- package/RuoYi-Vue3/src/layout/components/TagsView/index.vue +358 -0
- package/RuoYi-Vue3/src/layout/components/index.js +4 -0
- package/RuoYi-Vue3/src/layout/index.vue +114 -0
- package/RuoYi-Vue3/src/main.js +84 -0
- package/RuoYi-Vue3/src/permission.js +65 -0
- package/RuoYi-Vue3/src/plugins/auth.js +60 -0
- package/RuoYi-Vue3/src/plugins/cache.js +77 -0
- package/RuoYi-Vue3/src/plugins/download.js +79 -0
- package/RuoYi-Vue3/src/plugins/index.js +18 -0
- package/RuoYi-Vue3/src/plugins/modal.js +82 -0
- package/RuoYi-Vue3/src/plugins/tab.js +69 -0
- package/RuoYi-Vue3/src/router/index.js +175 -0
- package/RuoYi-Vue3/src/settings.js +47 -0
- package/RuoYi-Vue3/src/store/index.js +3 -0
- package/RuoYi-Vue3/src/store/modules/app.js +46 -0
- package/RuoYi-Vue3/src/store/modules/dict.js +57 -0
- package/RuoYi-Vue3/src/store/modules/permission.js +142 -0
- package/RuoYi-Vue3/src/store/modules/settings.js +38 -0
- package/RuoYi-Vue3/src/store/modules/tagsView.js +182 -0
- package/RuoYi-Vue3/src/store/modules/user.js +72 -0
- package/RuoYi-Vue3/src/utils/auth.js +15 -0
- package/RuoYi-Vue3/src/utils/dict.js +24 -0
- package/RuoYi-Vue3/src/utils/dynamicTitle.js +15 -0
- package/RuoYi-Vue3/src/utils/errorCode.js +6 -0
- package/RuoYi-Vue3/src/utils/index.js +390 -0
- package/RuoYi-Vue3/src/utils/jsencrypt.js +30 -0
- package/RuoYi-Vue3/src/utils/permission.js +51 -0
- package/RuoYi-Vue3/src/utils/request.js +152 -0
- package/RuoYi-Vue3/src/utils/ruoyi.js +246 -0
- package/RuoYi-Vue3/src/utils/scroll-to.js +58 -0
- package/RuoYi-Vue3/src/utils/theme.js +49 -0
- package/RuoYi-Vue3/src/utils/validate.js +93 -0
- package/RuoYi-Vue3/src/views/error/401.vue +82 -0
- package/RuoYi-Vue3/src/views/error/404.vue +227 -0
- package/RuoYi-Vue3/src/views/index.vue +1092 -0
- package/RuoYi-Vue3/src/views/login.vue +227 -0
- package/RuoYi-Vue3/src/views/monitor/cache/index.vue +132 -0
- package/RuoYi-Vue3/src/views/monitor/cache/list.vue +246 -0
- package/RuoYi-Vue3/src/views/monitor/druid/index.vue +13 -0
- package/RuoYi-Vue3/src/views/monitor/job/index.vue +501 -0
- package/RuoYi-Vue3/src/views/monitor/job/log.vue +283 -0
- package/RuoYi-Vue3/src/views/monitor/logininfor/index.vue +233 -0
- package/RuoYi-Vue3/src/views/monitor/online/index.vue +109 -0
- package/RuoYi-Vue3/src/views/monitor/operlog/index.vue +310 -0
- package/RuoYi-Vue3/src/views/monitor/server/index.vue +187 -0
- package/RuoYi-Vue3/src/views/redirect/index.vue +14 -0
- package/RuoYi-Vue3/src/views/register.vue +219 -0
- package/RuoYi-Vue3/src/views/system/config/index.vue +316 -0
- package/RuoYi-Vue3/src/views/system/dept/index.vue +283 -0
- package/RuoYi-Vue3/src/views/system/dict/data.vue +362 -0
- package/RuoYi-Vue3/src/views/system/dict/index.vue +323 -0
- package/RuoYi-Vue3/src/views/system/menu/index.vue +452 -0
- package/RuoYi-Vue3/src/views/system/notice/index.vue +292 -0
- package/RuoYi-Vue3/src/views/system/post/index.vue +287 -0
- package/RuoYi-Vue3/src/views/system/role/authUser.vue +179 -0
- package/RuoYi-Vue3/src/views/system/role/index.vue +584 -0
- package/RuoYi-Vue3/src/views/system/role/selectUser.vue +144 -0
- package/RuoYi-Vue3/src/views/system/user/authRole.vue +116 -0
- package/RuoYi-Vue3/src/views/system/user/index.vue +635 -0
- package/RuoYi-Vue3/src/views/system/user/profile/index.vue +87 -0
- package/RuoYi-Vue3/src/views/system/user/profile/resetPwd.vue +59 -0
- package/RuoYi-Vue3/src/views/system/user/profile/userAvatar.vue +180 -0
- package/RuoYi-Vue3/src/views/system/user/profile/userInfo.vue +67 -0
- package/RuoYi-Vue3/src/views/tool/build/index.vue +3 -0
- package/RuoYi-Vue3/src/views/tool/gen/basicInfoForm.vue +48 -0
- package/RuoYi-Vue3/src/views/tool/gen/createTable.vue +46 -0
- package/RuoYi-Vue3/src/views/tool/gen/editTable.vue +200 -0
- package/RuoYi-Vue3/src/views/tool/gen/genInfoForm.vue +306 -0
- package/RuoYi-Vue3/src/views/tool/gen/importTable.vue +126 -0
- package/RuoYi-Vue3/src/views/tool/gen/index.vue +310 -0
- package/RuoYi-Vue3/src/views/tool/swagger/index.vue +9 -0
- package/RuoYi-Vue3/vite/plugins/auto-import.js +12 -0
- package/RuoYi-Vue3/vite/plugins/compression.js +28 -0
- package/RuoYi-Vue3/vite/plugins/index.js +15 -0
- package/RuoYi-Vue3/vite/plugins/setup-extend.js +5 -0
- package/RuoYi-Vue3/vite/plugins/svg-icon.js +10 -0
- package/RuoYi-Vue3/vite.config.js +58 -0
- package/admin/README.MD +0 -0
- package/admin/base.mjs +447 -0
- package/admin/index.mjs +19 -0
- package/admin/monitor/job.mjs +24 -0
- package/admin/monitor/jobLog.mjs +8 -0
- package/admin/monitor/logininfor.mjs +23 -0
- package/admin/monitor/operlog.mjs +9 -0
- package/admin/monitor/server.mjs +54 -0
- package/admin/service.mjs +10 -0
- package/admin/system/component.mjs +16 -0
- package/admin/system/config.mjs +8 -0
- package/admin/system/dept.mjs +24 -0
- package/admin/system/dict.mjs +34 -0
- package/admin/system/login.mjs +119 -0
- package/admin/system/menu.mjs +33 -0
- package/admin/system/notice.mjs +8 -0
- package/admin/system/path.mjs +53 -0
- package/admin/system/post.mjs +8 -0
- package/admin/system/role.mjs +105 -0
- package/admin/system/user.mjs +93 -0
- package/admin/tool/gen.mjs +95 -0
- package/admin/tool/helper.mjs +1335 -0
- package/admin/tool/pm2.mjs +71 -0
- package/admin/tool/store.mjs +84 -0
- package/admin/tool/upload.mjs +112 -0
- package/app/README.MD +0 -0
- package/app/index.mjs +9 -0
- package/bin.mjs +211 -0
- package/build.mjs +25 -0
- package/common/README.MD +0 -0
- package/common/config.mjs +40 -0
- package/common/pm2.mjs +145 -0
- package/common/service.mjs +79 -0
- package/common/service0.mjs +468 -0
- package/common/tools.mjs +314 -0
- package/common/type.ts +498 -0
- package/file/README.MD +0 -0
- package/files/.env.production +11 -0
- package/files/gen.js +76 -0
- package/files/genImportTable.vue +120 -0
- package/files/genIndex.vue +309 -0
- package/files/genInfoForm.vue +302 -0
- package/files/login.vue +237 -0
- package/files/menu.js +68 -0
- package/files/menuIndex.vue +447 -0
- package/files/pm2.js +88 -0
- package/files/pm2Data.vue +335 -0
- package/files/pm2Index.vue +343 -0
- package/files/routerIndex.js +204 -0
- package/files/serverIndex.vue +215 -0
- package/files/store.js +96 -0
- package/files/storeData.vue +294 -0
- package/files/storeIndex.vue +245 -0
- package/files/upload.js +47 -0
- package/files/uploadIndex.vue +240 -0
- package/files/vite.config.js +58 -0
- package/index.mjs +28 -0
- package/jwt/README.MD +12 -0
- package/jwt/index.mjs +17 -0
- package/package.json +22 -0
- package/proxy/README.MD +0 -0
- package/proxy/index.mjs +16 -0
- package/static/README.MD +0 -0
- package/static/admin/assets/401-CYieuz9-.js +1 -0
- package/static/admin/assets/401-CYieuz9-.js.gz +0 -0
- package/static/admin/assets/401-DmT2Eyz6.css +1 -0
- package/static/admin/assets/401-HGF6Q5qM.gif +0 -0
- package/static/admin/assets/404-DFv5Zpvm.js +1 -0
- package/static/admin/assets/404-DFv5Zpvm.js.gz +0 -0
- package/static/admin/assets/404-Dy3nURRX.js +1 -0
- package/static/admin/assets/404-Dy3nURRX.js.gz +0 -0
- package/static/admin/assets/404-N4aRkdWY.png +0 -0
- package/static/admin/assets/404-uZCOR2Ze.css +1 -0
- package/static/admin/assets/404-uZCOR2Ze.css.gz +0 -0
- package/static/admin/assets/404_cloud-CPexjtDj.png +0 -0
- package/static/admin/assets/authRole-ma37t91O.js +1 -0
- package/static/admin/assets/authRole-ma37t91O.js.gz +0 -0
- package/static/admin/assets/authUser-C2Y6gkW3.js +1 -0
- package/static/admin/assets/authUser-C2Y6gkW3.js.gz +0 -0
- package/static/admin/assets/basicInfoForm-Cqv-g0Vq.js +1 -0
- package/static/admin/assets/basicInfoForm-Cqv-g0Vq.js.gz +0 -0
- package/static/admin/assets/bug-10dePVta.js +1 -0
- package/static/admin/assets/bug-10dePVta.js.gz +0 -0
- package/static/admin/assets/build-2jMyI6eP.js +1 -0
- package/static/admin/assets/build-2jMyI6eP.js.gz +0 -0
- package/static/admin/assets/button-BlSCM_GH.js +1 -0
- package/static/admin/assets/button-BlSCM_GH.js.gz +0 -0
- package/static/admin/assets/cache-CRGI5LFU.js +1 -0
- package/static/admin/assets/cascader-CXIOcY1C.js +1 -0
- package/static/admin/assets/cascader-CXIOcY1C.js.gz +0 -0
- package/static/admin/assets/chart-BsLMrzXU.js +1 -0
- package/static/admin/assets/checkbox-Bpiun3bf.js +1 -0
- package/static/admin/assets/checkbox-Bpiun3bf.js.gz +0 -0
- package/static/admin/assets/clipboard-DaV3cn7f.js +1 -0
- package/static/admin/assets/clipboard-DaV3cn7f.js.gz +0 -0
- package/static/admin/assets/code-DgJ8cT4a.js +1 -0
- package/static/admin/assets/color-y1Sshoou.js +1 -0
- package/static/admin/assets/color-y1Sshoou.js.gz +0 -0
- package/static/admin/assets/component-Djp9s69L.js +1 -0
- package/static/admin/assets/component-Djp9s69L.js.gz +0 -0
- package/static/admin/assets/createTable-CpixhIJI.js +1 -0
- package/static/admin/assets/createTable-CpixhIJI.js.gz +0 -0
- package/static/admin/assets/dashboard-Dy7qt_a2.js +1 -0
- package/static/admin/assets/dashboard-Dy7qt_a2.js.gz +0 -0
- package/static/admin/assets/data-B6ExfNCI.js +1 -0
- package/static/admin/assets/data-B6ExfNCI.js.gz +0 -0
- package/static/admin/assets/data-BNwnwlkO.js +34 -0
- package/static/admin/assets/data-BNwnwlkO.js.gz +0 -0
- package/static/admin/assets/data-C3FuPwta.css +1 -0
- package/static/admin/assets/data-DmSA0HcO.js +1 -0
- package/static/admin/assets/data-DmSA0HcO.js.gz +0 -0
- package/static/admin/assets/date-B1FSITvi.js +1 -0
- package/static/admin/assets/date-B1FSITvi.js.gz +0 -0
- package/static/admin/assets/date-range-B8MgYLb1.js +1 -0
- package/static/admin/assets/date-range-B8MgYLb1.js.gz +0 -0
- package/static/admin/assets/dict-Bi_GqSXR.js +1 -0
- package/static/admin/assets/dict-Bi_GqSXR.js.gz +0 -0
- package/static/admin/assets/documentation-uH9BvL5U.js +1 -0
- package/static/admin/assets/download-DeIzgQWH.js +1 -0
- package/static/admin/assets/download-DeIzgQWH.js.gz +0 -0
- package/static/admin/assets/drag-BG1_I1vT.js +1 -0
- package/static/admin/assets/druid-BybW_S_B.js +1 -0
- package/static/admin/assets/edit-D0DI9pAq.js +1 -0
- package/static/admin/assets/editTable-zr5bdAM7.js +1 -0
- package/static/admin/assets/editTable-zr5bdAM7.js.gz +0 -0
- package/static/admin/assets/education-47KsSYIl.js +1 -0
- package/static/admin/assets/email-Dig28Vt2.js +1 -0
- package/static/admin/assets/example-CnLLAFb9.js +1 -0
- package/static/admin/assets/excel-D3hj5F35.js +1 -0
- package/static/admin/assets/exit-fullscreen-dXhGKlQm.js +1 -0
- package/static/admin/assets/exit-fullscreen-dXhGKlQm.js.gz +0 -0
- package/static/admin/assets/eye-DqRz4sMZ.js +1 -0
- package/static/admin/assets/eye-DqRz4sMZ.js.gz +0 -0
- package/static/admin/assets/eye-open-BxlshWqB.js +1 -0
- package/static/admin/assets/eye-open-BxlshWqB.js.gz +0 -0
- package/static/admin/assets/form-BDTA_i-I.js +1 -0
- package/static/admin/assets/form-BDTA_i-I.js.gz +0 -0
- package/static/admin/assets/fullscreen-0JHt5yWX.js +1 -0
- package/static/admin/assets/gen-DLNrNhtb.js +1 -0
- package/static/admin/assets/genInfoForm-CMDsV5QX.js +1 -0
- package/static/admin/assets/genInfoForm-CMDsV5QX.js.gz +0 -0
- package/static/admin/assets/github-AJ0WQBa2.js +1 -0
- package/static/admin/assets/github-AJ0WQBa2.js.gz +0 -0
- package/static/admin/assets/guide-DZWUPi2j.js +1 -0
- package/static/admin/assets/icon-BtMv6Od8.js +1 -0
- package/static/admin/assets/icon-BtMv6Od8.js.gz +0 -0
- package/static/admin/assets/importTable-BsBsGfWB.js +1 -0
- package/static/admin/assets/importTable-BsBsGfWB.js.gz +0 -0
- package/static/admin/assets/index-1Gtzb1EG.css +1 -0
- package/static/admin/assets/index-1Gtzb1EG.css.gz +0 -0
- package/static/admin/assets/index-22TxXV_H.js +1 -0
- package/static/admin/assets/index-2PS_9Njt.js +1 -0
- package/static/admin/assets/index-2PS_9Njt.js.gz +0 -0
- package/static/admin/assets/index-2QWdVCKT.js +1 -0
- package/static/admin/assets/index-BH2yis6M.js +1 -0
- package/static/admin/assets/index-BYiWbDzj.js +137 -0
- package/static/admin/assets/index-BYiWbDzj.js.gz +0 -0
- package/static/admin/assets/index-BcoIBYYg.js +1 -0
- package/static/admin/assets/index-BcoIBYYg.js.gz +0 -0
- package/static/admin/assets/index-BdfyYxZX.css +1 -0
- package/static/admin/assets/index-BdfyYxZX.css.gz +0 -0
- package/static/admin/assets/index-BpFFXMK5.js +1 -0
- package/static/admin/assets/index-BpFFXMK5.js.gz +0 -0
- package/static/admin/assets/index-CKPU_AaL.js +1 -0
- package/static/admin/assets/index-CKPU_AaL.js.gz +0 -0
- package/static/admin/assets/index-CXsykB0X.js +1 -0
- package/static/admin/assets/index-CXsykB0X.js.gz +0 -0
- package/static/admin/assets/index-CfHRKVJR.js +1 -0
- package/static/admin/assets/index-CfHRKVJR.js.gz +0 -0
- package/static/admin/assets/index-ChrWcM7o.js +1 -0
- package/static/admin/assets/index-ChrWcM7o.js.gz +0 -0
- package/static/admin/assets/index-CyGqJLpz.css +1 -0
- package/static/admin/assets/index-Czuq8j-W.js +1 -0
- package/static/admin/assets/index-D5kEXJN3.js +1 -0
- package/static/admin/assets/index-D5kEXJN3.js.gz +0 -0
- package/static/admin/assets/index-D7sjRL--.js +1 -0
- package/static/admin/assets/index-D7sjRL--.js.gz +0 -0
- package/static/admin/assets/index-D9JRAPr4.js +1 -0
- package/static/admin/assets/index-D9JRAPr4.js.gz +0 -0
- package/static/admin/assets/index-DADWjT7Y.js +1 -0
- package/static/admin/assets/index-DADWjT7Y.js.gz +0 -0
- package/static/admin/assets/index-DUTtT4NU.js +1 -0
- package/static/admin/assets/index-DUTtT4NU.js.gz +0 -0
- package/static/admin/assets/index-DZR__uIb.js +1 -0
- package/static/admin/assets/index-DZR__uIb.js.gz +0 -0
- package/static/admin/assets/index-Da2r8G2b.js +1 -0
- package/static/admin/assets/index-Da2r8G2b.js.gz +0 -0
- package/static/admin/assets/index-DakybE_b.js +1 -0
- package/static/admin/assets/index-DakybE_b.js.gz +0 -0
- package/static/admin/assets/index-DdnU2rJ0.css +1 -0
- package/static/admin/assets/index-H21xXZr5.js +60 -0
- package/static/admin/assets/index-H21xXZr5.js.gz +0 -0
- package/static/admin/assets/index-PGDGQEbD.js +1 -0
- package/static/admin/assets/index-PGDGQEbD.js.gz +0 -0
- package/static/admin/assets/index-Rm6qYhrO.js +1 -0
- package/static/admin/assets/index-VG6ZkdYt.js +1 -0
- package/static/admin/assets/index-VG6ZkdYt.js.gz +0 -0
- package/static/admin/assets/index-YVnsjgTq.js +1 -0
- package/static/admin/assets/index-YVnsjgTq.js.gz +0 -0
- package/static/admin/assets/index-t3XJ47us.css +1 -0
- package/static/admin/assets/index-t3XJ47us.css.gz +0 -0
- package/static/admin/assets/index-xfai-fRy.js +1 -0
- package/static/admin/assets/index-xfai-fRy.js.gz +0 -0
- package/static/admin/assets/input-BJoPMnBW.js +1 -0
- package/static/admin/assets/international-CmzG1OHg.js +1 -0
- package/static/admin/assets/international-CmzG1OHg.js.gz +0 -0
- package/static/admin/assets/job-BcmuINx7.js +1 -0
- package/static/admin/assets/job-BcmuINx7.js.gz +0 -0
- package/static/admin/assets/job-COdMvNx2.js +1 -0
- package/static/admin/assets/language-CaW1LMEk.js +1 -0
- package/static/admin/assets/language-CaW1LMEk.js.gz +0 -0
- package/static/admin/assets/link-C93f4PgI.js +1 -0
- package/static/admin/assets/list-C7O8B4zW.js +1 -0
- package/static/admin/assets/list-C7O8B4zW.js.gz +0 -0
- package/static/admin/assets/list-DUaPnccL.js +1 -0
- package/static/admin/assets/list-DUaPnccL.js.gz +0 -0
- package/static/admin/assets/lock-Bexeb9hp.js +1 -0
- package/static/admin/assets/log-CF2F-nSs.js +1 -0
- package/static/admin/assets/log-CF2F-nSs.js.gz +0 -0
- package/static/admin/assets/log-g6qirYnf.js +1 -0
- package/static/admin/assets/log-g6qirYnf.js.gz +0 -0
- package/static/admin/assets/login-1ezV0PC1.css +1 -0
- package/static/admin/assets/login-1ezV0PC1.css.gz +0 -0
- package/static/admin/assets/login-BnkuYS6J.js +22 -0
- package/static/admin/assets/login-BnkuYS6J.js.gz +0 -0
- package/static/admin/assets/login-background-Yn3y1TP_.jpg +0 -0
- package/static/admin/assets/logininfor-Bm9ZYYR7.js +1 -0
- package/static/admin/assets/logininfor-Bm9ZYYR7.js.gz +0 -0
- package/static/admin/assets/logo-BjsPc2xl.png +0 -0
- package/static/admin/assets/menu-BIu3IsSF.js +1 -0
- package/static/admin/assets/message-UkR-VIBB.js +1 -0
- package/static/admin/assets/money-B1qqPuhn.js +1 -0
- package/static/admin/assets/monitor-gwnnVq4l.js +1 -0
- package/static/admin/assets/monitor-gwnnVq4l.js.gz +0 -0
- package/static/admin/assets/nested-B4d5u3hW.js +1 -0
- package/static/admin/assets/number-D4hB_nHC.js +1 -0
- package/static/admin/assets/number-D4hB_nHC.js.gz +0 -0
- package/static/admin/assets/online-C2ZP8pdY.js +1 -0
- package/static/admin/assets/online-C2ZP8pdY.js.gz +0 -0
- package/static/admin/assets/password-DfGvqQpB.js +1 -0
- package/static/admin/assets/password-DfGvqQpB.js.gz +0 -0
- package/static/admin/assets/pay-2ZbgPnxn.png +0 -0
- package/static/admin/assets/pdf-CD9mOGjJ.js +1 -0
- package/static/admin/assets/pdf-CD9mOGjJ.js.gz +0 -0
- package/static/admin/assets/people-CdGMHN63.js +1 -0
- package/static/admin/assets/people-CdGMHN63.js.gz +0 -0
- package/static/admin/assets/peoples-BRYsIqmI.js +1 -0
- package/static/admin/assets/phone-BpAUIz0g.js +1 -0
- package/static/admin/assets/phone-BpAUIz0g.js.gz +0 -0
- package/static/admin/assets/pm2-BkmkkE2A.js +1 -0
- package/static/admin/assets/post-DrLDyPY9.js +1 -0
- package/static/admin/assets/post-DrLDyPY9.js.gz +0 -0
- package/static/admin/assets/profile-DruvkrZU.jpg +0 -0
- package/static/admin/assets/qq-D8j4O83Y.js +1 -0
- package/static/admin/assets/qq-D8j4O83Y.js.gz +0 -0
- package/static/admin/assets/question-CvYWQbyW.js +1 -0
- package/static/admin/assets/question-CvYWQbyW.js.gz +0 -0
- package/static/admin/assets/radio-B0t9wPBQ.js +1 -0
- package/static/admin/assets/radio-B0t9wPBQ.js.gz +0 -0
- package/static/admin/assets/rate-CgnHQvKS.js +1 -0
- package/static/admin/assets/rate-CgnHQvKS.js.gz +0 -0
- package/static/admin/assets/redis-D4ECyT6a.js +1 -0
- package/static/admin/assets/redis-D4ECyT6a.js.gz +0 -0
- package/static/admin/assets/redis-list-BtKGPnqO.js +1 -0
- package/static/admin/assets/redis-list-BtKGPnqO.js.gz +0 -0
- package/static/admin/assets/register-B9RmZvjt.js +1 -0
- package/static/admin/assets/register-B9RmZvjt.js.gz +0 -0
- package/static/admin/assets/register-n3u7gqca.css +1 -0
- package/static/admin/assets/resetPwd-M0EIDnQk.js +1 -0
- package/static/admin/assets/resetPwd-M0EIDnQk.js.gz +0 -0
- package/static/admin/assets/role-XbHkNxnW.js +1 -0
- package/static/admin/assets/role-XbHkNxnW.js.gz +0 -0
- package/static/admin/assets/row-CRXKIHjm.js +1 -0
- package/static/admin/assets/row-CRXKIHjm.js.gz +0 -0
- package/static/admin/assets/search-CUfclCsR.js +1 -0
- package/static/admin/assets/select-DhuHHMxz.js +1 -0
- package/static/admin/assets/select-DhuHHMxz.js.gz +0 -0
- package/static/admin/assets/selectUser-DA_rE9J_.js +1 -0
- package/static/admin/assets/selectUser-DA_rE9J_.js.gz +0 -0
- package/static/admin/assets/server-unS7EyF7.js +1 -0
- package/static/admin/assets/shopping-CU1IRvxM.js +1 -0
- package/static/admin/assets/shopping-CU1IRvxM.js.gz +0 -0
- package/static/admin/assets/size-Cj9fB5Rp.js +1 -0
- package/static/admin/assets/skill-B8f_I4m_.js +1 -0
- package/static/admin/assets/skill-B8f_I4m_.js.gz +0 -0
- package/static/admin/assets/slider-BGfehM6X.js +1 -0
- package/static/admin/assets/star-kST8a72V.js +1 -0
- package/static/admin/assets/store-CX7IRN8X.js +1 -0
- package/static/admin/assets/swagger-BHGXZ2Jt.js +1 -0
- package/static/admin/assets/swagger-BHGXZ2Jt.js.gz +0 -0
- package/static/admin/assets/switch-CvaargRJ.js +1 -0
- package/static/admin/assets/system-DcNSH_Fq.js +1 -0
- package/static/admin/assets/system-DcNSH_Fq.js.gz +0 -0
- package/static/admin/assets/tab-nA3f0aBt.js +1 -0
- package/static/admin/assets/table-5PRh60AQ.js +1 -0
- package/static/admin/assets/test-CEJIIaDM.js +1 -0
- package/static/admin/assets/test-CEJIIaDM.js.gz +0 -0
- package/static/admin/assets/textarea-CJWXlgbJ.js +1 -0
- package/static/admin/assets/theme-CyGq941x.js +1 -0
- package/static/admin/assets/time-BVERp0sU.js +1 -0
- package/static/admin/assets/time-BVERp0sU.js.gz +0 -0
- package/static/admin/assets/time-range-D3dxgtLj.js +1 -0
- package/static/admin/assets/time-range-D3dxgtLj.js.gz +0 -0
- package/static/admin/assets/tool-D8kXk1l-.js +1 -0
- package/static/admin/assets/tool-D8kXk1l-.js.gz +0 -0
- package/static/admin/assets/tree-BCtS3oPD.js +1 -0
- package/static/admin/assets/tree-BCtS3oPD.js.gz +0 -0
- package/static/admin/assets/tree-table-CnOS99I9.js +1 -0
- package/static/admin/assets/tree-table-CnOS99I9.js.gz +0 -0
- package/static/admin/assets/type-BU7MsCG8.js +1 -0
- package/static/admin/assets/upload-BueI-Il1.js +1 -0
- package/static/admin/assets/upload-BueI-Il1.js.gz +0 -0
- package/static/admin/assets/user-DCGYGA9G.js +1 -0
- package/static/admin/assets/user-DCGYGA9G.js.gz +0 -0
- package/static/admin/assets/user-DqMuW5cU.js +1 -0
- package/static/admin/assets/userAvatar-BAmwMY1G.css +1 -0
- package/static/admin/assets/userAvatar-BAmwMY1G.css.gz +0 -0
- package/static/admin/assets/userAvatar-Bax34kaQ.js +7 -0
- package/static/admin/assets/userAvatar-Bax34kaQ.js.gz +0 -0
- package/static/admin/assets/userInfo-OvdBjEQX.js +1 -0
- package/static/admin/assets/userInfo-OvdBjEQX.js.gz +0 -0
- package/static/admin/assets/validCode-COB1iLxa.js +1 -0
- package/static/admin/assets/validCode-COB1iLxa.js.gz +0 -0
- package/static/admin/assets/wechat-lmQOcPZu.js +1 -0
- package/static/admin/assets/wechat-lmQOcPZu.js.gz +0 -0
- package/static/admin/assets/zip-DIOSZc69.js +1 -0
- package/static/admin/assets/zip-DIOSZc69.js.gz +0 -0
- package/static/admin/favicon.ico +0 -0
- package/static/admin/index.html +216 -0
- package/static/admin/index.html.gz +0 -0
- package/store1/README.MD +0 -0
- package/store1/generic.mjs +102 -0
- package/store1/index.mjs +30 -0
- package/store1/monitor.mjs +13 -0
- package/store1/role.mjs +137 -0
- package/store1/store/0/data +0 -0
- package/store1/store/0/index +0 -0
- package/store1/store/0/index.mjs +15 -0
- package/store1/store/1/buffer/464135 +1 -0
- package/store1/store/1/buffer/464587 +1 -0
- package/store1/store/1/data +0 -0
- package/store1/store/1/data-LAPTOP-S8G0S6EH +0 -0
- package/store1/store/1/index +0 -0
- package/store1/store/1/index-LAPTOP-S8G0S6EH +0 -0
- package/store1/store/1/index.mjs +4045 -0
- package/store1/store/1/type.ts +1492 -0
- package/store1/store/index.mjs +23 -0
- package/store1/store2/0/data +0 -0
- package/store1/store2/0/index +0 -0
- package/store1/store2/0/index.mjs +15 -0
- package/store1/store2/1/buffer/464135 +1 -0
- package/store1/store2/1/buffer/464587 +1 -0
- package/store1/store2/1/data +0 -0
- package/store1/store2/1/data-LAPTOP-S8G0S6EH +0 -0
- package/store1/store2/1/index +0 -0
- package/store1/store2/1/index-LAPTOP-S8G0S6EH +0 -0
- package/store1/store2/1/index.mjs +4045 -0
- package/store1/store2/1/type.ts +1492 -0
- package/store1/store2/index.mjs +23 -0
- package/store1/system.mjs +67 -0
- package/store1/tool.mjs +472 -0
- package/store1/user.mjs +228 -0
@@ -0,0 +1,87 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="app-container">
|
3
|
+
<el-row :gutter="20">
|
4
|
+
<el-col :span="6" :xs="24">
|
5
|
+
<el-card class="box-card">
|
6
|
+
<template v-slot:header>
|
7
|
+
<div class="clearfix">
|
8
|
+
<span>个人信息</span>
|
9
|
+
</div>
|
10
|
+
</template>
|
11
|
+
<div>
|
12
|
+
<div class="text-center">
|
13
|
+
<userAvatar />
|
14
|
+
</div>
|
15
|
+
<ul class="list-group list-group-striped">
|
16
|
+
<li class="list-group-item">
|
17
|
+
<svg-icon icon-class="user" />用户名称
|
18
|
+
<div class="pull-right">{{ state.user.userName }}</div>
|
19
|
+
</li>
|
20
|
+
<li class="list-group-item">
|
21
|
+
<svg-icon icon-class="phone" />手机号码
|
22
|
+
<div class="pull-right">{{ state.user.phonenumber }}</div>
|
23
|
+
</li>
|
24
|
+
<li class="list-group-item">
|
25
|
+
<svg-icon icon-class="email" />用户邮箱
|
26
|
+
<div class="pull-right">{{ state.user.email }}</div>
|
27
|
+
</li>
|
28
|
+
<li class="list-group-item">
|
29
|
+
<svg-icon icon-class="tree" />所属部门
|
30
|
+
<div class="pull-right" v-if="state.user.dept">{{ state.user.dept.deptName }} / {{ state.postGroup }}</div>
|
31
|
+
</li>
|
32
|
+
<li class="list-group-item">
|
33
|
+
<svg-icon icon-class="peoples" />所属角色
|
34
|
+
<div class="pull-right">{{ state.roleGroup }}</div>
|
35
|
+
</li>
|
36
|
+
<li class="list-group-item">
|
37
|
+
<svg-icon icon-class="date" />创建日期
|
38
|
+
<div class="pull-right">{{ state.user.createTime }}</div>
|
39
|
+
</li>
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</el-card>
|
43
|
+
</el-col>
|
44
|
+
<el-col :span="18" :xs="24">
|
45
|
+
<el-card>
|
46
|
+
<template v-slot:header>
|
47
|
+
<div class="clearfix">
|
48
|
+
<span>基本资料</span>
|
49
|
+
</div>
|
50
|
+
</template>
|
51
|
+
<el-tabs v-model="activeTab">
|
52
|
+
<el-tab-pane label="基本资料" name="userinfo">
|
53
|
+
<userInfo :user="state.user" />
|
54
|
+
</el-tab-pane>
|
55
|
+
<el-tab-pane label="修改密码" name="resetPwd">
|
56
|
+
<resetPwd />
|
57
|
+
</el-tab-pane>
|
58
|
+
</el-tabs>
|
59
|
+
</el-card>
|
60
|
+
</el-col>
|
61
|
+
</el-row>
|
62
|
+
</div>
|
63
|
+
</template>
|
64
|
+
|
65
|
+
<script setup name="Profile">
|
66
|
+
import userAvatar from "./userAvatar";
|
67
|
+
import userInfo from "./userInfo";
|
68
|
+
import resetPwd from "./resetPwd";
|
69
|
+
import { getUserProfile } from "@/api/system/user";
|
70
|
+
|
71
|
+
const activeTab = ref("userinfo");
|
72
|
+
const state = reactive({
|
73
|
+
user: {},
|
74
|
+
roleGroup: {},
|
75
|
+
postGroup: {}
|
76
|
+
});
|
77
|
+
|
78
|
+
function getUser() {
|
79
|
+
getUserProfile().then(response => {
|
80
|
+
state.user = response.data;
|
81
|
+
state.roleGroup = response.roleGroup;
|
82
|
+
state.postGroup = response.postGroup;
|
83
|
+
});
|
84
|
+
};
|
85
|
+
|
86
|
+
getUser();
|
87
|
+
</script>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form ref="pwdRef" :model="user" :rules="rules" label-width="80px">
|
3
|
+
<el-form-item label="旧密码" prop="oldPassword">
|
4
|
+
<el-input v-model="user.oldPassword" placeholder="请输入旧密码" type="password" show-password />
|
5
|
+
</el-form-item>
|
6
|
+
<el-form-item label="新密码" prop="newPassword">
|
7
|
+
<el-input v-model="user.newPassword" placeholder="请输入新密码" type="password" show-password />
|
8
|
+
</el-form-item>
|
9
|
+
<el-form-item label="确认密码" prop="confirmPassword">
|
10
|
+
<el-input v-model="user.confirmPassword" placeholder="请确认新密码" type="password" show-password/>
|
11
|
+
</el-form-item>
|
12
|
+
<el-form-item>
|
13
|
+
<el-button type="primary" @click="submit">保存</el-button>
|
14
|
+
<el-button type="danger" @click="close">关闭</el-button>
|
15
|
+
</el-form-item>
|
16
|
+
</el-form>
|
17
|
+
</template>
|
18
|
+
|
19
|
+
<script setup>
|
20
|
+
import { updateUserPwd } from "@/api/system/user";
|
21
|
+
|
22
|
+
const { proxy } = getCurrentInstance();
|
23
|
+
|
24
|
+
const user = reactive({
|
25
|
+
oldPassword: undefined,
|
26
|
+
newPassword: undefined,
|
27
|
+
confirmPassword: undefined
|
28
|
+
});
|
29
|
+
|
30
|
+
const equalToPassword = (rule, value, callback) => {
|
31
|
+
if (user.newPassword !== value) {
|
32
|
+
callback(new Error("两次输入的密码不一致"));
|
33
|
+
} else {
|
34
|
+
callback();
|
35
|
+
}
|
36
|
+
};
|
37
|
+
|
38
|
+
const rules = ref({
|
39
|
+
oldPassword: [{ required: true, message: "旧密码不能为空", trigger: "blur" }],
|
40
|
+
newPassword: [{ required: true, message: "新密码不能为空", trigger: "blur" }, { min: 6, max: 20, message: "长度在 6 到 20 个字符", trigger: "blur" }, { pattern: /^[^<>"'|\\]+$/, message: "不能包含非法字符:< > \" ' \\\ |", trigger: "blur" }],
|
41
|
+
confirmPassword: [{ required: true, message: "确认密码不能为空", trigger: "blur" }, { required: true, validator: equalToPassword, trigger: "blur" }]
|
42
|
+
});
|
43
|
+
|
44
|
+
/** 提交按钮 */
|
45
|
+
function submit() {
|
46
|
+
proxy.$refs.pwdRef.validate(valid => {
|
47
|
+
if (valid) {
|
48
|
+
updateUserPwd(user.oldPassword, user.newPassword).then(response => {
|
49
|
+
proxy.$modal.msgSuccess("修改成功");
|
50
|
+
});
|
51
|
+
}
|
52
|
+
});
|
53
|
+
};
|
54
|
+
|
55
|
+
/** 关闭按钮 */
|
56
|
+
function close() {
|
57
|
+
proxy.$tab.closePage();
|
58
|
+
};
|
59
|
+
</script>
|
@@ -0,0 +1,180 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="user-info-head" @click="editCropper()">
|
3
|
+
<img :src="options.img" title="点击上传头像" class="img-circle img-lg" />
|
4
|
+
<el-dialog :title="title" v-model="open" width="800px" append-to-body @opened="modalOpened" @close="closeDialog">
|
5
|
+
<el-row>
|
6
|
+
<el-col :xs="24" :md="12" :style="{ height: '350px' }">
|
7
|
+
<vue-cropper
|
8
|
+
ref="cropper"
|
9
|
+
:img="options.img"
|
10
|
+
:info="true"
|
11
|
+
:autoCrop="options.autoCrop"
|
12
|
+
:autoCropWidth="options.autoCropWidth"
|
13
|
+
:autoCropHeight="options.autoCropHeight"
|
14
|
+
:fixedBox="options.fixedBox"
|
15
|
+
:outputType="options.outputType"
|
16
|
+
@realTime="realTime"
|
17
|
+
v-if="visible"
|
18
|
+
/>
|
19
|
+
</el-col>
|
20
|
+
<el-col :xs="24" :md="12" :style="{ height: '350px' }">
|
21
|
+
<div class="avatar-upload-preview">
|
22
|
+
<img :src="options.previews.url" :style="options.previews.img" />
|
23
|
+
</div>
|
24
|
+
</el-col>
|
25
|
+
</el-row>
|
26
|
+
<br />
|
27
|
+
<el-row>
|
28
|
+
<el-col :lg="2" :md="2">
|
29
|
+
<el-upload
|
30
|
+
action="#"
|
31
|
+
:http-request="requestUpload"
|
32
|
+
:show-file-list="false"
|
33
|
+
:before-upload="beforeUpload"
|
34
|
+
>
|
35
|
+
<el-button>
|
36
|
+
选择
|
37
|
+
<el-icon class="el-icon--right"><Upload /></el-icon>
|
38
|
+
</el-button>
|
39
|
+
</el-upload>
|
40
|
+
</el-col>
|
41
|
+
<el-col :lg="{ span: 1, offset: 2 }" :md="2">
|
42
|
+
<el-button icon="Plus" @click="changeScale(1)"></el-button>
|
43
|
+
</el-col>
|
44
|
+
<el-col :lg="{ span: 1, offset: 1 }" :md="2">
|
45
|
+
<el-button icon="Minus" @click="changeScale(-1)"></el-button>
|
46
|
+
</el-col>
|
47
|
+
<el-col :lg="{ span: 1, offset: 1 }" :md="2">
|
48
|
+
<el-button icon="RefreshLeft" @click="rotateLeft()"></el-button>
|
49
|
+
</el-col>
|
50
|
+
<el-col :lg="{ span: 1, offset: 1 }" :md="2">
|
51
|
+
<el-button icon="RefreshRight" @click="rotateRight()"></el-button>
|
52
|
+
</el-col>
|
53
|
+
<el-col :lg="{ span: 2, offset: 6 }" :md="2">
|
54
|
+
<el-button type="primary" @click="uploadImg()">提 交</el-button>
|
55
|
+
</el-col>
|
56
|
+
</el-row>
|
57
|
+
</el-dialog>
|
58
|
+
</div>
|
59
|
+
</template>
|
60
|
+
|
61
|
+
<script setup>
|
62
|
+
import "vue-cropper/dist/index.css";
|
63
|
+
import { VueCropper } from "vue-cropper";
|
64
|
+
import { uploadAvatar } from "@/api/system/user";
|
65
|
+
import useUserStore from "@/store/modules/user";
|
66
|
+
|
67
|
+
const userStore = useUserStore();
|
68
|
+
const { proxy } = getCurrentInstance();
|
69
|
+
|
70
|
+
const open = ref(false);
|
71
|
+
const visible = ref(false);
|
72
|
+
const title = ref("修改头像");
|
73
|
+
|
74
|
+
//图片裁剪数据
|
75
|
+
const options = reactive({
|
76
|
+
img: userStore.avatar, // 裁剪图片的地址
|
77
|
+
autoCrop: true, // 是否默认生成截图框
|
78
|
+
autoCropWidth: 200, // 默认生成截图框宽度
|
79
|
+
autoCropHeight: 200, // 默认生成截图框高度
|
80
|
+
fixedBox: true, // 固定截图框大小 不允许改变
|
81
|
+
outputType: "png", // 默认生成截图为PNG格式
|
82
|
+
filename: 'avatar', // 文件名称
|
83
|
+
previews: {} //预览数据
|
84
|
+
});
|
85
|
+
|
86
|
+
/** 编辑头像 */
|
87
|
+
function editCropper() {
|
88
|
+
open.value = true;
|
89
|
+
}
|
90
|
+
|
91
|
+
/** 打开弹出层结束时的回调 */
|
92
|
+
function modalOpened() {
|
93
|
+
visible.value = true;
|
94
|
+
}
|
95
|
+
|
96
|
+
/** 覆盖默认上传行为 */
|
97
|
+
function requestUpload() {}
|
98
|
+
|
99
|
+
/** 向左旋转 */
|
100
|
+
function rotateLeft() {
|
101
|
+
proxy.$refs.cropper.rotateLeft();
|
102
|
+
}
|
103
|
+
|
104
|
+
/** 向右旋转 */
|
105
|
+
function rotateRight() {
|
106
|
+
proxy.$refs.cropper.rotateRight();
|
107
|
+
}
|
108
|
+
|
109
|
+
/** 图片缩放 */
|
110
|
+
function changeScale(num) {
|
111
|
+
num = num || 1;
|
112
|
+
proxy.$refs.cropper.changeScale(num);
|
113
|
+
}
|
114
|
+
|
115
|
+
/** 上传预处理 */
|
116
|
+
function beforeUpload(file) {
|
117
|
+
if (file.type.indexOf("image/") == -1) {
|
118
|
+
proxy.$modal.msgError("文件格式错误,请上传图片类型,如:JPG,PNG后缀的文件。");
|
119
|
+
} else {
|
120
|
+
const reader = new FileReader();
|
121
|
+
reader.readAsDataURL(file);
|
122
|
+
reader.onload = () => {
|
123
|
+
options.img = reader.result;
|
124
|
+
options.filename = file.name;
|
125
|
+
};
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
/** 上传图片 */
|
130
|
+
function uploadImg() {
|
131
|
+
proxy.$refs.cropper.getCropBlob(data => {
|
132
|
+
let formData = new FormData();
|
133
|
+
formData.append("avatarfile", data, options.filename);
|
134
|
+
uploadAvatar(formData).then(response => {
|
135
|
+
open.value = false;
|
136
|
+
options.img = import.meta.env.VITE_APP_BASE_API + response.imgUrl;
|
137
|
+
userStore.avatar = options.img;
|
138
|
+
proxy.$modal.msgSuccess("修改成功");
|
139
|
+
visible.value = false;
|
140
|
+
});
|
141
|
+
});
|
142
|
+
}
|
143
|
+
|
144
|
+
/** 实时预览 */
|
145
|
+
function realTime(data) {
|
146
|
+
options.previews = data;
|
147
|
+
}
|
148
|
+
|
149
|
+
/** 关闭窗口 */
|
150
|
+
function closeDialog() {
|
151
|
+
options.img = userStore.avatar;
|
152
|
+
options.visible = false;
|
153
|
+
}
|
154
|
+
</script>
|
155
|
+
|
156
|
+
<style lang='scss' scoped>
|
157
|
+
.user-info-head {
|
158
|
+
position: relative;
|
159
|
+
display: inline-block;
|
160
|
+
height: 120px;
|
161
|
+
}
|
162
|
+
|
163
|
+
.user-info-head:hover:after {
|
164
|
+
content: "+";
|
165
|
+
position: absolute;
|
166
|
+
left: 0;
|
167
|
+
right: 0;
|
168
|
+
top: 0;
|
169
|
+
bottom: 0;
|
170
|
+
color: #eee;
|
171
|
+
background: rgba(0, 0, 0, 0.5);
|
172
|
+
font-size: 24px;
|
173
|
+
font-style: normal;
|
174
|
+
-webkit-font-smoothing: antialiased;
|
175
|
+
-moz-osx-font-smoothing: grayscale;
|
176
|
+
cursor: pointer;
|
177
|
+
line-height: 110px;
|
178
|
+
border-radius: 50%;
|
179
|
+
}
|
180
|
+
</style>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form ref="userRef" :model="form" :rules="rules" label-width="80px">
|
3
|
+
<el-form-item label="用户昵称" prop="nickName">
|
4
|
+
<el-input v-model="form.nickName" maxlength="30" />
|
5
|
+
</el-form-item>
|
6
|
+
<el-form-item label="手机号码" prop="phonenumber">
|
7
|
+
<el-input v-model="form.phonenumber" maxlength="11" />
|
8
|
+
</el-form-item>
|
9
|
+
<el-form-item label="邮箱" prop="email">
|
10
|
+
<el-input v-model="form.email" maxlength="50" />
|
11
|
+
</el-form-item>
|
12
|
+
<el-form-item label="性别">
|
13
|
+
<el-radio-group v-model="form.sex">
|
14
|
+
<el-radio value="0">男</el-radio>
|
15
|
+
<el-radio value="1">女</el-radio>
|
16
|
+
</el-radio-group>
|
17
|
+
</el-form-item>
|
18
|
+
<el-form-item>
|
19
|
+
<el-button type="primary" @click="submit">保存</el-button>
|
20
|
+
<el-button type="danger" @click="close">关闭</el-button>
|
21
|
+
</el-form-item>
|
22
|
+
</el-form>
|
23
|
+
</template>
|
24
|
+
|
25
|
+
<script setup>
|
26
|
+
import { updateUserProfile } from "@/api/system/user";
|
27
|
+
|
28
|
+
const props = defineProps({
|
29
|
+
user: {
|
30
|
+
type: Object
|
31
|
+
}
|
32
|
+
});
|
33
|
+
|
34
|
+
const { proxy } = getCurrentInstance();
|
35
|
+
|
36
|
+
const form = ref({});
|
37
|
+
const rules = ref({
|
38
|
+
nickName: [{ required: true, message: "用户昵称不能为空", trigger: "blur" }],
|
39
|
+
email: [{ required: true, message: "邮箱地址不能为空", trigger: "blur" }, { type: "email", message: "请输入正确的邮箱地址", trigger: ["blur", "change"] }],
|
40
|
+
phonenumber: [{ required: true, message: "手机号码不能为空", trigger: "blur" }, { pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: "请输入正确的手机号码", trigger: "blur" }],
|
41
|
+
});
|
42
|
+
|
43
|
+
/** 提交按钮 */
|
44
|
+
function submit() {
|
45
|
+
proxy.$refs.userRef.validate(valid => {
|
46
|
+
if (valid) {
|
47
|
+
updateUserProfile(form.value).then(response => {
|
48
|
+
proxy.$modal.msgSuccess("修改成功");
|
49
|
+
props.user.phonenumber = form.value.phonenumber;
|
50
|
+
props.user.email = form.value.email;
|
51
|
+
});
|
52
|
+
}
|
53
|
+
});
|
54
|
+
};
|
55
|
+
|
56
|
+
/** 关闭按钮 */
|
57
|
+
function close() {
|
58
|
+
proxy.$tab.closePage();
|
59
|
+
};
|
60
|
+
|
61
|
+
// 回显当前登录用户信息
|
62
|
+
watch(() => props.user, user => {
|
63
|
+
if (user) {
|
64
|
+
form.value = { nickName: user.nickName, phonenumber: user.phonenumber, email: user.email, sex: user.sex };
|
65
|
+
}
|
66
|
+
},{ immediate: true });
|
67
|
+
</script>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form ref="basicInfoForm" :model="info" :rules="rules" label-width="150px">
|
3
|
+
<el-row>
|
4
|
+
<el-col :span="12">
|
5
|
+
<el-form-item label="表名称" prop="tableName">
|
6
|
+
<el-input placeholder="请输入仓库名称" v-model="info.tableName" />
|
7
|
+
</el-form-item>
|
8
|
+
</el-col>
|
9
|
+
<el-col :span="12">
|
10
|
+
<el-form-item label="表描述" prop="tableComment">
|
11
|
+
<el-input placeholder="请输入" v-model="info.tableComment" />
|
12
|
+
</el-form-item>
|
13
|
+
</el-col>
|
14
|
+
<el-col :span="12">
|
15
|
+
<el-form-item label="实体类名称" prop="className">
|
16
|
+
<el-input placeholder="请输入" v-model="info.className" />
|
17
|
+
</el-form-item>
|
18
|
+
</el-col>
|
19
|
+
<el-col :span="12">
|
20
|
+
<el-form-item label="作者" prop="functionAuthor">
|
21
|
+
<el-input placeholder="请输入" v-model="info.functionAuthor" />
|
22
|
+
</el-form-item>
|
23
|
+
</el-col>
|
24
|
+
<el-col :span="24">
|
25
|
+
<el-form-item label="备注" prop="remark">
|
26
|
+
<el-input type="textarea" :rows="3" v-model="info.remark"></el-input>
|
27
|
+
</el-form-item>
|
28
|
+
</el-col>
|
29
|
+
</el-row>
|
30
|
+
</el-form>
|
31
|
+
</template>
|
32
|
+
|
33
|
+
<script setup>
|
34
|
+
defineProps({
|
35
|
+
info: {
|
36
|
+
type: Object,
|
37
|
+
default: null
|
38
|
+
}
|
39
|
+
});
|
40
|
+
|
41
|
+
// 表单校验
|
42
|
+
const rules = ref({
|
43
|
+
tableName: [{ required: true, message: "请输入表名称", trigger: "blur" }],
|
44
|
+
tableComment: [{ required: true, message: "请输入表描述", trigger: "blur" }],
|
45
|
+
className: [{ required: true, message: "请输入实体类名称", trigger: "blur" }],
|
46
|
+
functionAuthor: [{ required: true, message: "请输入作者", trigger: "blur" }]
|
47
|
+
});
|
48
|
+
</script>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
<template>
|
2
|
+
<!-- 创建表 -->
|
3
|
+
<el-dialog title="创建表" v-model="visible" width="800px" top="5vh" append-to-body>
|
4
|
+
<span>创建表语句(支持多个建表语句):</span>
|
5
|
+
<el-input type="textarea" :rows="10" placeholder="请输入文本" v-model="content"></el-input>
|
6
|
+
<template #footer>
|
7
|
+
<div class="dialog-footer">
|
8
|
+
<el-button type="primary" @click="handleImportTable">确 定</el-button>
|
9
|
+
<el-button @click="visible = false">取 消</el-button>
|
10
|
+
</div>
|
11
|
+
</template>
|
12
|
+
</el-dialog>
|
13
|
+
</template>
|
14
|
+
|
15
|
+
<script setup>
|
16
|
+
import { createTable } from "@/api/tool/gen";
|
17
|
+
|
18
|
+
const visible = ref(false);
|
19
|
+
const content = ref("");
|
20
|
+
const { proxy } = getCurrentInstance();
|
21
|
+
const emit = defineEmits(["ok"]);
|
22
|
+
|
23
|
+
/** 显示弹框 */
|
24
|
+
function show() {
|
25
|
+
visible.value = true;
|
26
|
+
}
|
27
|
+
|
28
|
+
/** 导入按钮操作 */
|
29
|
+
function handleImportTable() {
|
30
|
+
if (content.value === "") {
|
31
|
+
proxy.$modal.msgError("请输入建表语句");
|
32
|
+
return;
|
33
|
+
}
|
34
|
+
createTable({ sql: content.value }).then(res => {
|
35
|
+
proxy.$modal.msgSuccess(res.msg);
|
36
|
+
if (res.code === 200) {
|
37
|
+
visible.value = false;
|
38
|
+
emit("ok");
|
39
|
+
}
|
40
|
+
});
|
41
|
+
}
|
42
|
+
|
43
|
+
defineExpose({
|
44
|
+
show,
|
45
|
+
});
|
46
|
+
</script>
|