@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,22 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<svg-icon :icon-class="isFullscreen ? 'exit-fullscreen' : 'fullscreen'" @click="toggle" />
|
4
|
+
</div>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script setup>
|
8
|
+
import { useFullscreen } from '@vueuse/core'
|
9
|
+
|
10
|
+
const { isFullscreen, enter, exit, toggle } = useFullscreen();
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<style lang='scss' scoped>
|
14
|
+
.screenfull-svg {
|
15
|
+
display: inline-block;
|
16
|
+
cursor: pointer;
|
17
|
+
fill: #5a5e66;
|
18
|
+
width: 20px;
|
19
|
+
height: 20px;
|
20
|
+
vertical-align: 10px;
|
21
|
+
}
|
22
|
+
</style>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<el-dropdown trigger="click" @command="handleSetSize">
|
4
|
+
<div class="size-icon--style">
|
5
|
+
<svg-icon class-name="size-icon" icon-class="size" />
|
6
|
+
</div>
|
7
|
+
<template #dropdown>
|
8
|
+
<el-dropdown-menu>
|
9
|
+
<el-dropdown-item v-for="item of sizeOptions" :key="item.value" :disabled="size === item.value" :command="item.value">
|
10
|
+
{{ item.label }}
|
11
|
+
</el-dropdown-item>
|
12
|
+
</el-dropdown-menu>
|
13
|
+
</template>
|
14
|
+
</el-dropdown>
|
15
|
+
</div>
|
16
|
+
</template>
|
17
|
+
|
18
|
+
<script setup>
|
19
|
+
import useAppStore from "@/store/modules/app";
|
20
|
+
|
21
|
+
const appStore = useAppStore();
|
22
|
+
const size = computed(() => appStore.size);
|
23
|
+
const route = useRoute();
|
24
|
+
const router = useRouter();
|
25
|
+
const { proxy } = getCurrentInstance();
|
26
|
+
const sizeOptions = ref([
|
27
|
+
{ label: "较大", value: "large" },
|
28
|
+
{ label: "默认", value: "default" },
|
29
|
+
{ label: "稍小", value: "small" },
|
30
|
+
]);
|
31
|
+
|
32
|
+
function handleSetSize(size) {
|
33
|
+
proxy.$modal.loading("正在设置布局大小,请稍候...");
|
34
|
+
appStore.setSize(size);
|
35
|
+
setTimeout("window.location.reload()", 1000);
|
36
|
+
}
|
37
|
+
</script>
|
38
|
+
|
39
|
+
<style lang='scss' scoped>
|
40
|
+
.size-icon--style {
|
41
|
+
font-size: 18px;
|
42
|
+
line-height: 50px;
|
43
|
+
padding-right: 7px;
|
44
|
+
}
|
45
|
+
</style>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<template>
|
2
|
+
<svg :class="svgClass" aria-hidden="true">
|
3
|
+
<use :xlink:href="iconName" :fill="color" />
|
4
|
+
</svg>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
export default defineComponent({
|
9
|
+
props: {
|
10
|
+
iconClass: {
|
11
|
+
type: String,
|
12
|
+
required: true
|
13
|
+
},
|
14
|
+
className: {
|
15
|
+
type: String,
|
16
|
+
default: ''
|
17
|
+
},
|
18
|
+
color: {
|
19
|
+
type: String,
|
20
|
+
default: ''
|
21
|
+
},
|
22
|
+
},
|
23
|
+
setup(props) {
|
24
|
+
return {
|
25
|
+
iconName: computed(() => `#icon-${props.iconClass}`),
|
26
|
+
svgClass: computed(() => {
|
27
|
+
if (props.className) {
|
28
|
+
return `svg-icon ${props.className}`
|
29
|
+
}
|
30
|
+
return 'svg-icon'
|
31
|
+
})
|
32
|
+
}
|
33
|
+
}
|
34
|
+
})
|
35
|
+
</script>
|
36
|
+
|
37
|
+
<style scope lang="scss">
|
38
|
+
.sub-el-icon,
|
39
|
+
.nav-icon {
|
40
|
+
display: inline-block;
|
41
|
+
font-size: 15px;
|
42
|
+
margin-right: 12px;
|
43
|
+
position: relative;
|
44
|
+
}
|
45
|
+
|
46
|
+
.svg-icon {
|
47
|
+
width: 1em;
|
48
|
+
height: 1em;
|
49
|
+
position: relative;
|
50
|
+
fill: currentColor;
|
51
|
+
vertical-align: -2px;
|
52
|
+
}
|
53
|
+
</style>
|
@@ -0,0 +1,214 @@
|
|
1
|
+
<template>
|
2
|
+
<el-menu
|
3
|
+
:default-active="activeMenu"
|
4
|
+
mode="horizontal"
|
5
|
+
@select="handleSelect"
|
6
|
+
:ellipsis="false"
|
7
|
+
>
|
8
|
+
<template v-for="(item, index) in topMenus">
|
9
|
+
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber">
|
10
|
+
<svg-icon
|
11
|
+
v-if="item.meta && item.meta.icon && item.meta.icon !== '#'"
|
12
|
+
:icon-class="item.meta.icon"/>
|
13
|
+
{{ item.meta.title }}
|
14
|
+
</el-menu-item>
|
15
|
+
</template>
|
16
|
+
|
17
|
+
<!-- 顶部菜单超出数量折叠 -->
|
18
|
+
<el-sub-menu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber">
|
19
|
+
<template #title>更多菜单</template>
|
20
|
+
<template v-for="(item, index) in topMenus">
|
21
|
+
<el-menu-item
|
22
|
+
:index="item.path"
|
23
|
+
:key="index"
|
24
|
+
v-if="index >= visibleNumber">
|
25
|
+
<svg-icon
|
26
|
+
v-if="item.meta && item.meta.icon && item.meta.icon !== '#'"
|
27
|
+
:icon-class="item.meta.icon"/>
|
28
|
+
{{ item.meta.title }}
|
29
|
+
</el-menu-item>
|
30
|
+
</template>
|
31
|
+
</el-sub-menu>
|
32
|
+
</el-menu>
|
33
|
+
</template>
|
34
|
+
|
35
|
+
<script setup>
|
36
|
+
import { constantRoutes } from "@/router"
|
37
|
+
import { isHttp } from '@/utils/validate'
|
38
|
+
import useAppStore from '@/store/modules/app'
|
39
|
+
import useSettingsStore from '@/store/modules/settings'
|
40
|
+
import usePermissionStore from '@/store/modules/permission'
|
41
|
+
|
42
|
+
// 顶部栏初始数
|
43
|
+
const visibleNumber = ref(null);
|
44
|
+
// 当前激活菜单的 index
|
45
|
+
const currentIndex = ref(null);
|
46
|
+
// 隐藏侧边栏路由
|
47
|
+
const hideList = ['/index', '/user/profile'];
|
48
|
+
|
49
|
+
const appStore = useAppStore()
|
50
|
+
const settingsStore = useSettingsStore()
|
51
|
+
const permissionStore = usePermissionStore()
|
52
|
+
const route = useRoute();
|
53
|
+
const router = useRouter();
|
54
|
+
|
55
|
+
// 主题颜色
|
56
|
+
const theme = computed(() => settingsStore.theme);
|
57
|
+
// 所有的路由信息
|
58
|
+
const routers = computed(() => permissionStore.topbarRouters);
|
59
|
+
|
60
|
+
// 顶部显示菜单
|
61
|
+
const topMenus = computed(() => {
|
62
|
+
let topMenus = [];
|
63
|
+
routers.value.map((menu) => {
|
64
|
+
if (menu.hidden !== true) {
|
65
|
+
// 兼容顶部栏一级菜单内部跳转
|
66
|
+
if (menu.path === "/") {
|
67
|
+
topMenus.push(menu.children[0]);
|
68
|
+
} else {
|
69
|
+
topMenus.push(menu);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
})
|
73
|
+
return topMenus;
|
74
|
+
})
|
75
|
+
|
76
|
+
// 设置子路由
|
77
|
+
const childrenMenus = computed(() => {
|
78
|
+
let childrenMenus = [];
|
79
|
+
routers.value.map((router) => {
|
80
|
+
for (let item in router.children) {
|
81
|
+
if (router.children[item].parentPath === undefined) {
|
82
|
+
if(router.path === "/") {
|
83
|
+
router.children[item].path = "/" + router.children[item].path;
|
84
|
+
} else {
|
85
|
+
if(!isHttp(router.children[item].path)) {
|
86
|
+
router.children[item].path = router.path + "/" + router.children[item].path;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
router.children[item].parentPath = router.path;
|
90
|
+
}
|
91
|
+
childrenMenus.push(router.children[item]);
|
92
|
+
}
|
93
|
+
})
|
94
|
+
return constantRoutes.concat(childrenMenus);
|
95
|
+
})
|
96
|
+
|
97
|
+
// 默认激活的菜单
|
98
|
+
const activeMenu = computed(() => {
|
99
|
+
const path = route.path;
|
100
|
+
let activePath = path;
|
101
|
+
if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
|
102
|
+
const tmpPath = path.substring(1, path.length);
|
103
|
+
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
|
104
|
+
if (!route.meta.link) {
|
105
|
+
appStore.toggleSideBarHide(false);
|
106
|
+
}
|
107
|
+
} else if(!route.children) {
|
108
|
+
activePath = path;
|
109
|
+
appStore.toggleSideBarHide(true);
|
110
|
+
}
|
111
|
+
activeRoutes(activePath);
|
112
|
+
return activePath;
|
113
|
+
})
|
114
|
+
|
115
|
+
function setVisibleNumber() {
|
116
|
+
const width = document.body.getBoundingClientRect().width / 3;
|
117
|
+
visibleNumber.value = parseInt(width / 85);
|
118
|
+
}
|
119
|
+
|
120
|
+
function handleSelect(key, keyPath) {
|
121
|
+
currentIndex.value = key;
|
122
|
+
const route = routers.value.find(item => item.path === key);
|
123
|
+
if (isHttp(key)) {
|
124
|
+
// http(s):// 路径新窗口打开
|
125
|
+
window.open(key, "_blank");
|
126
|
+
} else if (!route || !route.children) {
|
127
|
+
// 没有子路由路径内部打开
|
128
|
+
const routeMenu = childrenMenus.value.find(item => item.path === key);
|
129
|
+
if (routeMenu && routeMenu.query) {
|
130
|
+
let query = JSON.parse(routeMenu.query);
|
131
|
+
router.push({ path: key, query: query });
|
132
|
+
} else {
|
133
|
+
router.push({ path: key });
|
134
|
+
}
|
135
|
+
appStore.toggleSideBarHide(true);
|
136
|
+
} else {
|
137
|
+
// 显示左侧联动菜单
|
138
|
+
activeRoutes(key);
|
139
|
+
appStore.toggleSideBarHide(false);
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
function activeRoutes(key) {
|
144
|
+
let routes = [];
|
145
|
+
if (childrenMenus.value && childrenMenus.value.length > 0) {
|
146
|
+
childrenMenus.value.map((item) => {
|
147
|
+
if (key == item.parentPath || (key == "index" && "" == item.path)) {
|
148
|
+
routes.push(item);
|
149
|
+
}
|
150
|
+
});
|
151
|
+
}
|
152
|
+
if(routes.length > 0) {
|
153
|
+
permissionStore.setSidebarRouters(routes);
|
154
|
+
} else {
|
155
|
+
appStore.toggleSideBarHide(true);
|
156
|
+
}
|
157
|
+
return routes;
|
158
|
+
}
|
159
|
+
|
160
|
+
onMounted(() => {
|
161
|
+
window.addEventListener('resize', setVisibleNumber)
|
162
|
+
})
|
163
|
+
onBeforeUnmount(() => {
|
164
|
+
window.removeEventListener('resize', setVisibleNumber)
|
165
|
+
})
|
166
|
+
|
167
|
+
onMounted(() => {
|
168
|
+
setVisibleNumber()
|
169
|
+
})
|
170
|
+
</script>
|
171
|
+
|
172
|
+
<style lang="scss">
|
173
|
+
.topmenu-container.el-menu--horizontal > .el-menu-item {
|
174
|
+
float: left;
|
175
|
+
height: 50px !important;
|
176
|
+
line-height: 50px !important;
|
177
|
+
color: #999093 !important;
|
178
|
+
padding: 0 5px !important;
|
179
|
+
margin: 0 10px !important;
|
180
|
+
}
|
181
|
+
|
182
|
+
.topmenu-container.el-menu--horizontal > .el-menu-item.is-active, .el-menu--horizontal > .el-sub-menu.is-active .el-submenu__title {
|
183
|
+
border-bottom: 2px solid #{'var(--theme)'} !important;
|
184
|
+
color: #303133;
|
185
|
+
}
|
186
|
+
|
187
|
+
/* sub-menu item */
|
188
|
+
.topmenu-container.el-menu--horizontal > .el-sub-menu .el-sub-menu__title {
|
189
|
+
float: left;
|
190
|
+
height: 50px !important;
|
191
|
+
line-height: 50px !important;
|
192
|
+
color: #999093 !important;
|
193
|
+
padding: 0 5px !important;
|
194
|
+
margin: 0 10px !important;
|
195
|
+
}
|
196
|
+
|
197
|
+
/* 背景色隐藏 */
|
198
|
+
.topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, .topmenu-container.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover, .topmenu-container.el-menu--horizontal>.el-submenu .el-submenu__title:hover {
|
199
|
+
background-color: #ffffff !important;
|
200
|
+
}
|
201
|
+
|
202
|
+
/* 图标右间距 */
|
203
|
+
.topmenu-container .svg-icon {
|
204
|
+
margin-right: 4px;
|
205
|
+
}
|
206
|
+
|
207
|
+
/* topmenu more arrow */
|
208
|
+
.topmenu-container .el-sub-menu .el-sub-menu__icon-arrow {
|
209
|
+
position: static;
|
210
|
+
vertical-align: middle;
|
211
|
+
margin-left: 8px;
|
212
|
+
margin-top: 0px;
|
213
|
+
}
|
214
|
+
</style>
|
@@ -0,0 +1,156 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="el-tree-select">
|
3
|
+
<el-select
|
4
|
+
style="width: 100%"
|
5
|
+
v-model="valueId"
|
6
|
+
ref="treeSelect"
|
7
|
+
:filterable="true"
|
8
|
+
:clearable="true"
|
9
|
+
@clear="clearHandle"
|
10
|
+
:filter-method="selectFilterData"
|
11
|
+
:placeholder="placeholder"
|
12
|
+
>
|
13
|
+
<el-option :value="valueId" :label="valueTitle">
|
14
|
+
<el-tree
|
15
|
+
id="tree-option"
|
16
|
+
ref="selectTree"
|
17
|
+
:accordion="accordion"
|
18
|
+
:data="options"
|
19
|
+
:props="objMap"
|
20
|
+
:node-key="objMap.value"
|
21
|
+
:expand-on-click-node="false"
|
22
|
+
:default-expanded-keys="defaultExpandedKey"
|
23
|
+
:filter-node-method="filterNode"
|
24
|
+
@node-click="handleNodeClick"
|
25
|
+
></el-tree>
|
26
|
+
</el-option>
|
27
|
+
</el-select>
|
28
|
+
</div>
|
29
|
+
</template>
|
30
|
+
|
31
|
+
<script setup>
|
32
|
+
|
33
|
+
const { proxy } = getCurrentInstance();
|
34
|
+
|
35
|
+
const props = defineProps({
|
36
|
+
/* 配置项 */
|
37
|
+
objMap: {
|
38
|
+
type: Object,
|
39
|
+
default: () => {
|
40
|
+
return {
|
41
|
+
value: 'id', // ID字段名
|
42
|
+
label: 'label', // 显示名称
|
43
|
+
children: 'children' // 子级字段名
|
44
|
+
}
|
45
|
+
}
|
46
|
+
},
|
47
|
+
/* 自动收起 */
|
48
|
+
accordion: {
|
49
|
+
type: Boolean,
|
50
|
+
default: () => {
|
51
|
+
return false
|
52
|
+
}
|
53
|
+
},
|
54
|
+
/**当前双向数据绑定的值 */
|
55
|
+
value: {
|
56
|
+
type: [String, Number],
|
57
|
+
default: ''
|
58
|
+
},
|
59
|
+
/**当前的数据 */
|
60
|
+
options: {
|
61
|
+
type: Array,
|
62
|
+
default: () => []
|
63
|
+
},
|
64
|
+
/**输入框内部的文字 */
|
65
|
+
placeholder: {
|
66
|
+
type: String,
|
67
|
+
default: ''
|
68
|
+
}
|
69
|
+
})
|
70
|
+
|
71
|
+
const emit = defineEmits(['update:value']);
|
72
|
+
|
73
|
+
const valueId = computed({
|
74
|
+
get: () => props.value,
|
75
|
+
set: (val) => {
|
76
|
+
emit('update:value', val)
|
77
|
+
}
|
78
|
+
});
|
79
|
+
const valueTitle = ref('');
|
80
|
+
const defaultExpandedKey = ref([]);
|
81
|
+
|
82
|
+
function initHandle() {
|
83
|
+
nextTick(() => {
|
84
|
+
const selectedValue = valueId.value;
|
85
|
+
if(selectedValue !== null && typeof (selectedValue) !== 'undefined') {
|
86
|
+
const node = proxy.$refs.selectTree.getNode(selectedValue)
|
87
|
+
if (node) {
|
88
|
+
valueTitle.value = node.data[props.objMap.label]
|
89
|
+
proxy.$refs.selectTree.setCurrentKey(selectedValue) // 设置默认选中
|
90
|
+
defaultExpandedKey.value = [selectedValue] // 设置默认展开
|
91
|
+
}
|
92
|
+
} else {
|
93
|
+
clearHandle()
|
94
|
+
}
|
95
|
+
})
|
96
|
+
}
|
97
|
+
function handleNodeClick(node) {
|
98
|
+
valueTitle.value = node[props.objMap.label]
|
99
|
+
valueId.value = node[props.objMap.value];
|
100
|
+
defaultExpandedKey.value = [];
|
101
|
+
proxy.$refs.treeSelect.blur()
|
102
|
+
selectFilterData('')
|
103
|
+
}
|
104
|
+
function selectFilterData(val) {
|
105
|
+
proxy.$refs.selectTree.filter(val)
|
106
|
+
}
|
107
|
+
function filterNode(value, data) {
|
108
|
+
if (!value) return true
|
109
|
+
return data[props.objMap['label']].indexOf(value) !== -1
|
110
|
+
}
|
111
|
+
function clearHandle() {
|
112
|
+
valueTitle.value = ''
|
113
|
+
valueId.value = ''
|
114
|
+
defaultExpandedKey.value = [];
|
115
|
+
clearSelected()
|
116
|
+
}
|
117
|
+
function clearSelected() {
|
118
|
+
const allNode = document.querySelectorAll('#tree-option .el-tree-node')
|
119
|
+
allNode.forEach((element) => element.classList.remove('is-current'))
|
120
|
+
}
|
121
|
+
|
122
|
+
onMounted(() => {
|
123
|
+
initHandle()
|
124
|
+
})
|
125
|
+
|
126
|
+
watch(valueId, () => {
|
127
|
+
initHandle();
|
128
|
+
})
|
129
|
+
</script>
|
130
|
+
|
131
|
+
<style lang='scss' scoped>
|
132
|
+
@import "@/assets/styles/variables.module.scss";
|
133
|
+
.el-scrollbar .el-scrollbar__view .el-select-dropdown__item {
|
134
|
+
padding: 0;
|
135
|
+
background-color: #fff;
|
136
|
+
height: auto;
|
137
|
+
}
|
138
|
+
|
139
|
+
.el-select-dropdown__item.selected {
|
140
|
+
font-weight: normal;
|
141
|
+
}
|
142
|
+
|
143
|
+
ul li .el-tree .el-tree-node__content {
|
144
|
+
height: auto;
|
145
|
+
padding: 0 20px;
|
146
|
+
box-sizing: border-box;
|
147
|
+
}
|
148
|
+
|
149
|
+
:deep(.el-tree-node__content:hover),
|
150
|
+
:deep(.el-tree-node__content:active),
|
151
|
+
:deep(.is-current > div:first-child),
|
152
|
+
:deep(.el-tree-node__content:focus) {
|
153
|
+
background-color: mix(#fff, $--color-primary, 90%);
|
154
|
+
color: $--color-primary;
|
155
|
+
}
|
156
|
+
</style>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<template>
|
2
|
+
<div v-loading="loading" :style="'height:' + height">
|
3
|
+
<iframe
|
4
|
+
:src="url"
|
5
|
+
frameborder="no"
|
6
|
+
style="width: 100%; height: 100%"
|
7
|
+
scrolling="auto" />
|
8
|
+
</div>
|
9
|
+
</template>
|
10
|
+
|
11
|
+
<script setup>
|
12
|
+
const props = defineProps({
|
13
|
+
src: {
|
14
|
+
type: String,
|
15
|
+
required: true
|
16
|
+
}
|
17
|
+
})
|
18
|
+
|
19
|
+
const height = ref(document.documentElement.clientHeight - 94.5 + "px;")
|
20
|
+
const loading = ref(true)
|
21
|
+
const url = computed(() => props.src)
|
22
|
+
|
23
|
+
onMounted(() => {
|
24
|
+
setTimeout(() => {
|
25
|
+
loading.value = false;
|
26
|
+
}, 300);
|
27
|
+
window.onresize = function temp() {
|
28
|
+
height.value = document.documentElement.clientHeight - 94.5 + "px;";
|
29
|
+
};
|
30
|
+
})
|
31
|
+
</script>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/**
|
2
|
+
* v-copyText 复制文本内容
|
3
|
+
* Copyright (c) 2022 ruoyi
|
4
|
+
*/
|
5
|
+
|
6
|
+
export default {
|
7
|
+
beforeMount(el, { value, arg }) {
|
8
|
+
if (arg === "callback") {
|
9
|
+
el.$copyCallback = value;
|
10
|
+
} else {
|
11
|
+
el.$copyValue = value;
|
12
|
+
const handler = () => {
|
13
|
+
copyTextToClipboard(el.$copyValue);
|
14
|
+
if (el.$copyCallback) {
|
15
|
+
el.$copyCallback(el.$copyValue);
|
16
|
+
}
|
17
|
+
};
|
18
|
+
el.addEventListener("click", handler);
|
19
|
+
el.$destroyCopy = () => el.removeEventListener("click", handler);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
function copyTextToClipboard(input, { target = document.body } = {}) {
|
25
|
+
const element = document.createElement('textarea');
|
26
|
+
const previouslyFocusedElement = document.activeElement;
|
27
|
+
|
28
|
+
element.value = input;
|
29
|
+
|
30
|
+
// Prevent keyboard from showing on mobile
|
31
|
+
element.setAttribute('readonly', '');
|
32
|
+
|
33
|
+
element.style.contain = 'strict';
|
34
|
+
element.style.position = 'absolute';
|
35
|
+
element.style.left = '-9999px';
|
36
|
+
element.style.fontSize = '12pt'; // Prevent zooming on iOS
|
37
|
+
|
38
|
+
const selection = document.getSelection();
|
39
|
+
const originalRange = selection.rangeCount > 0 && selection.getRangeAt(0);
|
40
|
+
|
41
|
+
target.append(element);
|
42
|
+
element.select();
|
43
|
+
|
44
|
+
// Explicit selection workaround for iOS
|
45
|
+
element.selectionStart = 0;
|
46
|
+
element.selectionEnd = input.length;
|
47
|
+
|
48
|
+
let isSuccess = false;
|
49
|
+
try {
|
50
|
+
isSuccess = document.execCommand('copy');
|
51
|
+
} catch { }
|
52
|
+
|
53
|
+
element.remove();
|
54
|
+
|
55
|
+
if (originalRange) {
|
56
|
+
selection.removeAllRanges();
|
57
|
+
selection.addRange(originalRange);
|
58
|
+
}
|
59
|
+
|
60
|
+
// Get the focus back on the previously focused element, if any
|
61
|
+
if (previouslyFocusedElement) {
|
62
|
+
previouslyFocusedElement.focus();
|
63
|
+
}
|
64
|
+
|
65
|
+
return isSuccess;
|
66
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import hasRole from './permission/hasRole'
|
2
|
+
import hasPermi from './permission/hasPermi'
|
3
|
+
import copyText from './common/copyText'
|
4
|
+
|
5
|
+
export default function directive(app){
|
6
|
+
app.directive('hasRole', hasRole)
|
7
|
+
app.directive('hasPermi', hasPermi)
|
8
|
+
app.directive('copyText', copyText)
|
9
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* v-hasPermi 操作权限处理
|
3
|
+
* Copyright (c) 2019 ruoyi
|
4
|
+
*/
|
5
|
+
|
6
|
+
import useUserStore from '@/store/modules/user'
|
7
|
+
|
8
|
+
export default {
|
9
|
+
mounted(el, binding, vnode) {
|
10
|
+
const { value } = binding
|
11
|
+
const all_permission = "*:*:*";
|
12
|
+
const permissions = useUserStore().permissions
|
13
|
+
|
14
|
+
if (value && value instanceof Array && value.length > 0) {
|
15
|
+
const permissionFlag = value
|
16
|
+
|
17
|
+
const hasPermissions = permissions.some(permission => {
|
18
|
+
return all_permission === permission || permissionFlag.includes(permission)
|
19
|
+
})
|
20
|
+
|
21
|
+
if (!hasPermissions) {
|
22
|
+
el.parentNode && el.parentNode.removeChild(el)
|
23
|
+
}
|
24
|
+
} else {
|
25
|
+
throw new Error(`请设置操作权限标签值`)
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* v-hasRole 角色权限处理
|
3
|
+
* Copyright (c) 2019 ruoyi
|
4
|
+
*/
|
5
|
+
|
6
|
+
import useUserStore from '@/store/modules/user'
|
7
|
+
|
8
|
+
export default {
|
9
|
+
mounted(el, binding, vnode) {
|
10
|
+
const { value } = binding
|
11
|
+
const super_admin = "admin";
|
12
|
+
const roles = useUserStore().roles
|
13
|
+
|
14
|
+
if (value && value instanceof Array && value.length > 0) {
|
15
|
+
const roleFlag = value
|
16
|
+
|
17
|
+
const hasRole = roles.some(role => {
|
18
|
+
return super_admin === role || roleFlag.includes(role)
|
19
|
+
})
|
20
|
+
|
21
|
+
if (!hasRole) {
|
22
|
+
el.parentNode && el.parentNode.removeChild(el)
|
23
|
+
}
|
24
|
+
} else {
|
25
|
+
throw new Error(`请设置角色权限标签值`)
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|