@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,447 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="app-container">
|
3
|
+
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
|
4
|
+
<el-form-item label="菜单名称" prop="menuName">
|
5
|
+
<el-input
|
6
|
+
v-model="queryParams.menuName"
|
7
|
+
placeholder="请输入菜单名称"
|
8
|
+
clearable
|
9
|
+
style="width: 200px"
|
10
|
+
@keyup.enter="handleQuery"
|
11
|
+
/>
|
12
|
+
</el-form-item>
|
13
|
+
<el-form-item label="状态" prop="status">
|
14
|
+
<el-select v-model="queryParams.status" placeholder="菜单状态" clearable style="width: 200px">
|
15
|
+
<el-option
|
16
|
+
v-for="dict in sys_normal_disable"
|
17
|
+
:key="dict.value"
|
18
|
+
:label="dict.label"
|
19
|
+
:value="dict.value"
|
20
|
+
/>
|
21
|
+
</el-select>
|
22
|
+
</el-form-item>
|
23
|
+
<el-form-item>
|
24
|
+
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
25
|
+
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
26
|
+
</el-form-item>
|
27
|
+
</el-form>
|
28
|
+
|
29
|
+
<el-row :gutter="10" class="mb8">
|
30
|
+
<el-col :span="1.5">
|
31
|
+
<el-button
|
32
|
+
type="primary"
|
33
|
+
plain
|
34
|
+
icon="Plus"
|
35
|
+
@click="handleAdd"
|
36
|
+
v-hasPermi="['system:menu:add']"
|
37
|
+
>新增</el-button>
|
38
|
+
</el-col>
|
39
|
+
<el-col :span="1.5">
|
40
|
+
<el-button
|
41
|
+
type="info"
|
42
|
+
plain
|
43
|
+
icon="Sort"
|
44
|
+
@click="toggleExpandAll"
|
45
|
+
>展开/折叠</el-button>
|
46
|
+
</el-col>
|
47
|
+
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
48
|
+
</el-row>
|
49
|
+
|
50
|
+
<el-table
|
51
|
+
v-if="refreshTable"
|
52
|
+
v-loading="loading"
|
53
|
+
:data="menuList"
|
54
|
+
row-key="menuId"
|
55
|
+
:default-expand-all="isExpandAll"
|
56
|
+
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
57
|
+
>
|
58
|
+
<el-table-column prop="menuName" label="菜单名称" :show-overflow-tooltip="true" width="160"></el-table-column>
|
59
|
+
<el-table-column prop="icon" label="图标" align="center" width="100">
|
60
|
+
<template #default="scope">
|
61
|
+
<svg-icon :icon-class="scope.row.icon" />
|
62
|
+
</template>
|
63
|
+
</el-table-column>
|
64
|
+
<el-table-column prop="orderNum" label="排序" width="60"></el-table-column>
|
65
|
+
<el-table-column prop="perms" label="权限标识" :show-overflow-tooltip="true"></el-table-column>
|
66
|
+
<el-table-column prop="component" label="组件路径" :show-overflow-tooltip="true"></el-table-column>
|
67
|
+
<el-table-column prop="status" label="状态" width="80">
|
68
|
+
<template #default="scope">
|
69
|
+
<dict-tag :options="sys_normal_disable" :value="scope.row.status" />
|
70
|
+
</template>
|
71
|
+
</el-table-column>
|
72
|
+
<el-table-column label="创建时间" align="center" width="160" prop="createTime">
|
73
|
+
<template #default="scope">
|
74
|
+
<span>{{ parseTime(scope.row.createTime) }}</span>
|
75
|
+
</template>
|
76
|
+
</el-table-column>
|
77
|
+
<el-table-column label="操作" align="center" width="210" class-name="small-padding fixed-width">
|
78
|
+
<template #default="scope">
|
79
|
+
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:menu:edit']">修改</el-button>
|
80
|
+
<el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['system:menu:add']">新增</el-button>
|
81
|
+
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:menu:remove']">删除</el-button>
|
82
|
+
</template>
|
83
|
+
</el-table-column>
|
84
|
+
</el-table>
|
85
|
+
|
86
|
+
<!-- 添加或修改菜单对话框 -->
|
87
|
+
<el-dialog :title="title" v-model="open" width="680px" append-to-body>
|
88
|
+
<el-form ref="menuRef" :model="form" :rules="rules" label-width="100px">
|
89
|
+
<el-row>
|
90
|
+
<el-col :span="24">
|
91
|
+
<el-form-item label="上级菜单">
|
92
|
+
<el-tree-select
|
93
|
+
v-model="form.parentId"
|
94
|
+
:data="menuOptions"
|
95
|
+
:props="{ value: 'menuId', label: 'menuName', children: 'children' }"
|
96
|
+
value-key="menuId"
|
97
|
+
placeholder="选择上级菜单"
|
98
|
+
check-strictly
|
99
|
+
/>
|
100
|
+
</el-form-item>
|
101
|
+
</el-col>
|
102
|
+
<el-col :span="24">
|
103
|
+
<el-form-item label="菜单类型" prop="menuType">
|
104
|
+
<el-radio-group v-model="form.menuType">
|
105
|
+
<el-radio label="M">目录</el-radio>
|
106
|
+
<el-radio label="C">菜单</el-radio>
|
107
|
+
<el-radio label="F">按钮</el-radio>
|
108
|
+
</el-radio-group>
|
109
|
+
</el-form-item>
|
110
|
+
</el-col>
|
111
|
+
<el-col :span="24" v-if="form.menuType != 'F'">
|
112
|
+
<el-form-item label="菜单图标" prop="icon">
|
113
|
+
<el-popover
|
114
|
+
placement="bottom-start"
|
115
|
+
:width="540"
|
116
|
+
trigger="click"
|
117
|
+
>
|
118
|
+
<template #reference>
|
119
|
+
<el-input v-model="form.icon" placeholder="点击选择图标" @blur="showSelectIcon" readonly>
|
120
|
+
<template #prefix>
|
121
|
+
<svg-icon
|
122
|
+
v-if="form.icon"
|
123
|
+
:icon-class="form.icon"
|
124
|
+
class="el-input__icon"
|
125
|
+
style="height: 32px;width: 16px;"
|
126
|
+
/>
|
127
|
+
<el-icon v-else style="height: 32px;width: 16px;"><search /></el-icon>
|
128
|
+
</template>
|
129
|
+
</el-input>
|
130
|
+
</template>
|
131
|
+
<icon-select ref="iconSelectRef" @selected="selected" :active-icon="form.icon" />
|
132
|
+
</el-popover>
|
133
|
+
</el-form-item>
|
134
|
+
</el-col>
|
135
|
+
<el-col :span="12">
|
136
|
+
<el-form-item label="菜单名称" prop="menuName">
|
137
|
+
<el-input v-model="form.menuName" placeholder="请输入菜单名称" />
|
138
|
+
</el-form-item>
|
139
|
+
</el-col>
|
140
|
+
<el-col :span="12">
|
141
|
+
<el-form-item label="显示排序" prop="orderNum">
|
142
|
+
<el-input-number v-model="form.orderNum" controls-position="right" :min="0" />
|
143
|
+
</el-form-item>
|
144
|
+
</el-col>
|
145
|
+
<el-col :span="12" v-if="form.menuType != 'F'">
|
146
|
+
<el-form-item>
|
147
|
+
<template #label>
|
148
|
+
<span>
|
149
|
+
<el-tooltip content="选择是外链则路由地址需要以`http(s)://`开头" placement="top">
|
150
|
+
<el-icon><question-filled /></el-icon>
|
151
|
+
</el-tooltip>是否外链
|
152
|
+
</span>
|
153
|
+
</template>
|
154
|
+
<el-radio-group v-model="form.isFrame">
|
155
|
+
<el-radio label="0">是</el-radio>
|
156
|
+
<el-radio label="1">否</el-radio>
|
157
|
+
</el-radio-group>
|
158
|
+
</el-form-item>
|
159
|
+
</el-col>
|
160
|
+
<el-col :span="12" v-if="form.menuType != 'F'">
|
161
|
+
<el-form-item prop="path">
|
162
|
+
<template #label>
|
163
|
+
<span>
|
164
|
+
<el-tooltip content="访问的路由地址,如:`user`,如外网地址需内链访问则以`http(s)://`开头" placement="top">
|
165
|
+
<el-icon><question-filled /></el-icon>
|
166
|
+
</el-tooltip>
|
167
|
+
路由地址
|
168
|
+
</span>
|
169
|
+
</template>
|
170
|
+
<el-input v-model="form.path" placeholder="请输入路由地址" />
|
171
|
+
</el-form-item>
|
172
|
+
</el-col>
|
173
|
+
<el-col :span="12" v-if="form.menuType == 'C'">
|
174
|
+
<el-form-item prop="component">
|
175
|
+
<template #label>
|
176
|
+
<span>
|
177
|
+
<el-tooltip content="访问的组件路径,如:`system/user/index`,默认在`views`目录下" placement="top">
|
178
|
+
<el-icon><question-filled /></el-icon>
|
179
|
+
</el-tooltip>
|
180
|
+
组件路径
|
181
|
+
</span>
|
182
|
+
</template>
|
183
|
+
<el-select v-model="form.component" filterable placeholder="请输入组件路径">
|
184
|
+
<el-option
|
185
|
+
v-for="path in cList"
|
186
|
+
:key="path"
|
187
|
+
:label="path"
|
188
|
+
:value="path"
|
189
|
+
/>
|
190
|
+
</el-select>
|
191
|
+
</el-form-item>
|
192
|
+
</el-col>
|
193
|
+
<el-col :span="12" v-if="form.menuType != 'M'">
|
194
|
+
<el-form-item>
|
195
|
+
<el-input v-model="form.perms" placeholder="请输入权限标识" maxlength="100" />
|
196
|
+
<template #label>
|
197
|
+
<span>
|
198
|
+
<el-tooltip content="控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasPermi('system:user:list')`)" placement="top">
|
199
|
+
<el-icon><question-filled /></el-icon>
|
200
|
+
</el-tooltip>
|
201
|
+
权限字符
|
202
|
+
</span>
|
203
|
+
</template>
|
204
|
+
</el-form-item>
|
205
|
+
</el-col>
|
206
|
+
<el-col :span="12" v-if="form.menuType == 'C'">
|
207
|
+
<el-form-item>
|
208
|
+
<el-input v-model="form.query" placeholder="请输入路由参数" maxlength="255" />
|
209
|
+
<template #label>
|
210
|
+
<span>
|
211
|
+
<el-tooltip content='访问路由的默认传递参数,如:`{"id": 1, "name": "ry"}`' placement="top">
|
212
|
+
<el-icon><question-filled /></el-icon>
|
213
|
+
</el-tooltip>
|
214
|
+
路由参数
|
215
|
+
</span>
|
216
|
+
</template>
|
217
|
+
</el-form-item>
|
218
|
+
</el-col>
|
219
|
+
<el-col :span="12" v-if="form.menuType == 'C'">
|
220
|
+
<el-form-item>
|
221
|
+
<template #label>
|
222
|
+
<span>
|
223
|
+
<el-tooltip content="选择是则会被`keep-alive`缓存,需要匹配组件的`name`和地址保持一致" placement="top">
|
224
|
+
<el-icon><question-filled /></el-icon>
|
225
|
+
</el-tooltip>
|
226
|
+
是否缓存
|
227
|
+
</span>
|
228
|
+
</template>
|
229
|
+
<el-radio-group v-model="form.isCache">
|
230
|
+
<el-radio label="0">缓存</el-radio>
|
231
|
+
<el-radio label="1">不缓存</el-radio>
|
232
|
+
</el-radio-group>
|
233
|
+
</el-form-item>
|
234
|
+
</el-col>
|
235
|
+
<el-col :span="12" v-if="form.menuType != 'F'">
|
236
|
+
<el-form-item>
|
237
|
+
<template #label>
|
238
|
+
<span>
|
239
|
+
<el-tooltip content="选择隐藏则路由将不会出现在侧边栏,但仍然可以访问" placement="top">
|
240
|
+
<el-icon><question-filled /></el-icon>
|
241
|
+
</el-tooltip>
|
242
|
+
显示状态
|
243
|
+
</span>
|
244
|
+
</template>
|
245
|
+
<el-radio-group v-model="form.visible">
|
246
|
+
<el-radio
|
247
|
+
v-for="dict in sys_show_hide"
|
248
|
+
:key="dict.value"
|
249
|
+
:label="dict.value"
|
250
|
+
>{{ dict.label }}</el-radio>
|
251
|
+
</el-radio-group>
|
252
|
+
</el-form-item>
|
253
|
+
</el-col>
|
254
|
+
<el-col :span="12">
|
255
|
+
<el-form-item>
|
256
|
+
<template #label>
|
257
|
+
<span>
|
258
|
+
<el-tooltip content="选择停用则路由将不会出现在侧边栏,也不能被访问" placement="top">
|
259
|
+
<el-icon><question-filled /></el-icon>
|
260
|
+
</el-tooltip>
|
261
|
+
菜单状态
|
262
|
+
</span>
|
263
|
+
</template>
|
264
|
+
<el-radio-group v-model="form.status">
|
265
|
+
<el-radio
|
266
|
+
v-for="dict in sys_normal_disable"
|
267
|
+
:key="dict.value"
|
268
|
+
:label="dict.value"
|
269
|
+
>{{ dict.label }}</el-radio>
|
270
|
+
</el-radio-group>
|
271
|
+
</el-form-item>
|
272
|
+
</el-col>
|
273
|
+
</el-row>
|
274
|
+
</el-form>
|
275
|
+
<template #footer>
|
276
|
+
<div class="dialog-footer">
|
277
|
+
<el-button type="primary" @click="submitForm">确 定</el-button>
|
278
|
+
<el-button @click="cancel">取 消</el-button>
|
279
|
+
</div>
|
280
|
+
</template>
|
281
|
+
</el-dialog>
|
282
|
+
</div>
|
283
|
+
</template>
|
284
|
+
|
285
|
+
<script setup name="Menu">
|
286
|
+
import {addMenu, delMenu, getMenu, listComponent, listMenu, updateMenu} from "@/api/system/menu";
|
287
|
+
import SvgIcon from "@/components/SvgIcon";
|
288
|
+
import IconSelect from "@/components/IconSelect";
|
289
|
+
|
290
|
+
const { proxy } = getCurrentInstance();
|
291
|
+
const { sys_show_hide, sys_normal_disable } = proxy.useDict("sys_show_hide", "sys_normal_disable");
|
292
|
+
|
293
|
+
const menuList = ref([]);
|
294
|
+
const open = ref(false);
|
295
|
+
const loading = ref(true);
|
296
|
+
const showSearch = ref(true);
|
297
|
+
const title = ref("");
|
298
|
+
const menuOptions = ref([]);
|
299
|
+
const isExpandAll = ref(false);
|
300
|
+
const refreshTable = ref(true);
|
301
|
+
const iconSelectRef = ref(null);
|
302
|
+
|
303
|
+
const data = reactive({
|
304
|
+
form: {},
|
305
|
+
queryParams: {
|
306
|
+
menuName: undefined,
|
307
|
+
visible: undefined
|
308
|
+
},
|
309
|
+
rules: {
|
310
|
+
menuName: [{ required: true, message: "菜单名称不能为空", trigger: "blur" }],
|
311
|
+
orderNum: [{ required: true, message: "菜单顺序不能为空", trigger: "blur" }],
|
312
|
+
path: [{ required: true, message: "路由地址不能为空", trigger: "blur" }]
|
313
|
+
},
|
314
|
+
});
|
315
|
+
|
316
|
+
const { queryParams, form, rules } = toRefs(data);
|
317
|
+
|
318
|
+
let cList = ref([])
|
319
|
+
|
320
|
+
/** 查询菜单列表 */
|
321
|
+
function getList() {
|
322
|
+
loading.value = true;
|
323
|
+
listMenu(queryParams.value).then(response => {
|
324
|
+
menuList.value = proxy.handleTree(response.data, "menuId");
|
325
|
+
loading.value = false;
|
326
|
+
});
|
327
|
+
}
|
328
|
+
/** 查询菜单下拉树结构 */
|
329
|
+
function getTreeselect() {
|
330
|
+
menuOptions.value = [];
|
331
|
+
listMenu().then(response => {
|
332
|
+
const menu = { menuId: 0, menuName: "主类目", children: [] };
|
333
|
+
menu.children = proxy.handleTree(response.data, "menuId");
|
334
|
+
menuOptions.value.push(menu);
|
335
|
+
});
|
336
|
+
}
|
337
|
+
/** 取消按钮 */
|
338
|
+
function cancel() {
|
339
|
+
open.value = false;
|
340
|
+
reset();
|
341
|
+
}
|
342
|
+
/** 表单重置 */
|
343
|
+
function reset() {
|
344
|
+
form.value = {
|
345
|
+
menuId: undefined,
|
346
|
+
parentId: 0,
|
347
|
+
menuName: undefined,
|
348
|
+
icon: undefined,
|
349
|
+
menuType: "M",
|
350
|
+
orderNum: undefined,
|
351
|
+
isFrame: "1",
|
352
|
+
isCache: "0",
|
353
|
+
visible: "0",
|
354
|
+
status: "0"
|
355
|
+
};
|
356
|
+
proxy.resetForm("menuRef");
|
357
|
+
}
|
358
|
+
/** 展示下拉图标 */
|
359
|
+
function showSelectIcon() {
|
360
|
+
iconSelectRef.value.reset();
|
361
|
+
}
|
362
|
+
/** 选择图标 */
|
363
|
+
function selected(name) {
|
364
|
+
form.value.icon = name;
|
365
|
+
}
|
366
|
+
/** 搜索按钮操作 */
|
367
|
+
function handleQuery() {
|
368
|
+
getList();
|
369
|
+
}
|
370
|
+
/** 重置按钮操作 */
|
371
|
+
function resetQuery() {
|
372
|
+
proxy.resetForm("queryRef");
|
373
|
+
handleQuery();
|
374
|
+
}
|
375
|
+
/** 新增按钮操作 */
|
376
|
+
function handleAdd(row) {
|
377
|
+
reset();
|
378
|
+
getTreeselect();
|
379
|
+
getComponentList();
|
380
|
+
if (row != null && row.menuId) {
|
381
|
+
form.value.parentId = row.menuId;
|
382
|
+
} else {
|
383
|
+
form.value.parentId = 0;
|
384
|
+
}
|
385
|
+
open.value = true;
|
386
|
+
title.value = "添加菜单";
|
387
|
+
}
|
388
|
+
/** 展开/折叠操作 */
|
389
|
+
function toggleExpandAll() {
|
390
|
+
refreshTable.value = false;
|
391
|
+
isExpandAll.value = !isExpandAll.value;
|
392
|
+
nextTick(() => {
|
393
|
+
refreshTable.value = true;
|
394
|
+
});
|
395
|
+
}
|
396
|
+
|
397
|
+
function getComponentList() {
|
398
|
+
|
399
|
+
listComponent().then(response => {
|
400
|
+
|
401
|
+
cList.value = response.data
|
402
|
+
});
|
403
|
+
}
|
404
|
+
|
405
|
+
/** 修改按钮操作 */
|
406
|
+
async function handleUpdate(row) {
|
407
|
+
reset();
|
408
|
+
await getTreeselect();
|
409
|
+
getComponentList();
|
410
|
+
getMenu(row.menuId).then(response => {
|
411
|
+
form.value = response.data;
|
412
|
+
open.value = true;
|
413
|
+
title.value = "修改菜单";
|
414
|
+
});
|
415
|
+
}
|
416
|
+
/** 提交按钮 */
|
417
|
+
function submitForm() {
|
418
|
+
proxy.$refs["menuRef"].validate(valid => {
|
419
|
+
if (valid) {
|
420
|
+
if (form.value.menuId != undefined) {
|
421
|
+
updateMenu(form.value).then(response => {
|
422
|
+
proxy.$modal.msgSuccess("修改成功");
|
423
|
+
open.value = false;
|
424
|
+
getList();
|
425
|
+
});
|
426
|
+
} else {
|
427
|
+
addMenu(form.value).then(response => {
|
428
|
+
proxy.$modal.msgSuccess("新增成功");
|
429
|
+
open.value = false;
|
430
|
+
getList();
|
431
|
+
});
|
432
|
+
}
|
433
|
+
}
|
434
|
+
});
|
435
|
+
}
|
436
|
+
/** 删除按钮操作 */
|
437
|
+
function handleDelete(row) {
|
438
|
+
proxy.$modal.confirm('是否确认删除名称为"' + row.menuName + '"的数据项?').then(function() {
|
439
|
+
return delMenu(row.menuId);
|
440
|
+
}).then(() => {
|
441
|
+
getList();
|
442
|
+
proxy.$modal.msgSuccess("删除成功");
|
443
|
+
}).catch(() => {});
|
444
|
+
}
|
445
|
+
|
446
|
+
getList();
|
447
|
+
</script>
|
package/files/pm2.js
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
import request from '@/utils/request.js'
|
2
|
+
|
3
|
+
// 列表
|
4
|
+
export function listPm2(query) {
|
5
|
+
return request({
|
6
|
+
url: '/tool/pm2/list',
|
7
|
+
method: 'get',
|
8
|
+
params: query
|
9
|
+
})
|
10
|
+
}
|
11
|
+
|
12
|
+
export function addPm2(data) {
|
13
|
+
return request({
|
14
|
+
url: '/tool/pm2',
|
15
|
+
method: 'post',
|
16
|
+
data
|
17
|
+
})
|
18
|
+
}
|
19
|
+
|
20
|
+
export function delPm2(name) {
|
21
|
+
return request({
|
22
|
+
url: '/tool/pm2/' + name,
|
23
|
+
method: 'delete'
|
24
|
+
})
|
25
|
+
}
|
26
|
+
|
27
|
+
export function handleStatusChange(name, status) {
|
28
|
+
return request({
|
29
|
+
url: '/tool/pm2/changeStatus',
|
30
|
+
method: 'put',
|
31
|
+
data: {
|
32
|
+
name,
|
33
|
+
status
|
34
|
+
}
|
35
|
+
})
|
36
|
+
}
|
37
|
+
|
38
|
+
export function handleSave() {
|
39
|
+
return request({
|
40
|
+
url: '/tool/pm2/save',
|
41
|
+
method: 'put'
|
42
|
+
})
|
43
|
+
}
|
44
|
+
|
45
|
+
export function handleResurrect() {
|
46
|
+
return request({
|
47
|
+
url: '/tool/pm2/resurrect',
|
48
|
+
method: 'put'
|
49
|
+
})
|
50
|
+
}
|
51
|
+
|
52
|
+
export function listPath() {
|
53
|
+
return request({
|
54
|
+
url: '/system/path/mjs',
|
55
|
+
method: 'get'
|
56
|
+
})
|
57
|
+
}
|
58
|
+
|
59
|
+
export function listData(query) {
|
60
|
+
return request({
|
61
|
+
url: '/tool/pm2/data/list',
|
62
|
+
method: 'get',
|
63
|
+
params: query
|
64
|
+
})
|
65
|
+
}
|
66
|
+
|
67
|
+
export function addData(data) {
|
68
|
+
return request({
|
69
|
+
url: '/tool/pm2/data',
|
70
|
+
method: 'post',
|
71
|
+
data: data
|
72
|
+
})
|
73
|
+
}
|
74
|
+
|
75
|
+
export function updateData(data) {
|
76
|
+
return request({
|
77
|
+
url: '/tool/pm2/data',
|
78
|
+
method: 'put',
|
79
|
+
data
|
80
|
+
})
|
81
|
+
}
|
82
|
+
|
83
|
+
export function delData(ids) {
|
84
|
+
return request({
|
85
|
+
url: '/tool/pm2/data/' + ids,
|
86
|
+
method: 'delete'
|
87
|
+
})
|
88
|
+
}
|