@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,335 @@
|
|
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="method">
|
5
|
+
<el-input v-model="queryParams.method"/>
|
6
|
+
</el-form-item>
|
7
|
+
<el-form-item label="备注" prop="remark">
|
8
|
+
<el-input v-model="queryParams.remark"/>
|
9
|
+
</el-form-item>
|
10
|
+
<el-form-item>
|
11
|
+
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
12
|
+
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
13
|
+
</el-form-item>
|
14
|
+
</el-form>
|
15
|
+
|
16
|
+
<el-row :gutter="10" class="mb8">
|
17
|
+
<el-col :span="1.5">
|
18
|
+
<el-button
|
19
|
+
type="primary"
|
20
|
+
plain
|
21
|
+
icon="Plus"
|
22
|
+
@click="handleAdd"
|
23
|
+
v-hasPermi="['system:service:add']"
|
24
|
+
>新增
|
25
|
+
</el-button>
|
26
|
+
</el-col>
|
27
|
+
<el-col :span="1.5">
|
28
|
+
<el-button
|
29
|
+
type="success"
|
30
|
+
plain
|
31
|
+
icon="Edit"
|
32
|
+
:disabled="single"
|
33
|
+
@click="handleUpdate"
|
34
|
+
v-hasPermi="['system:service:edit']"
|
35
|
+
>修改
|
36
|
+
</el-button>
|
37
|
+
</el-col>
|
38
|
+
<el-col :span="1.5">
|
39
|
+
<el-button
|
40
|
+
type="danger"
|
41
|
+
plain
|
42
|
+
icon="Delete"
|
43
|
+
:disabled="multiple"
|
44
|
+
@click="handleDelete"
|
45
|
+
v-hasPermi="['system:service:remove']"
|
46
|
+
>删除
|
47
|
+
</el-button>
|
48
|
+
</el-col>
|
49
|
+
<el-col :span="1.5">
|
50
|
+
<el-button
|
51
|
+
type="warning"
|
52
|
+
plain
|
53
|
+
icon="Download"
|
54
|
+
@click="handleExport"
|
55
|
+
v-hasPermi="['system:service:export']"
|
56
|
+
>导出
|
57
|
+
</el-button>
|
58
|
+
</el-col>
|
59
|
+
<el-col :span="1.5">
|
60
|
+
<el-button
|
61
|
+
type="warning"
|
62
|
+
plain
|
63
|
+
icon="Close"
|
64
|
+
@click="handleClose"
|
65
|
+
>关闭
|
66
|
+
</el-button>
|
67
|
+
</el-col>
|
68
|
+
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
69
|
+
</el-row>
|
70
|
+
|
71
|
+
<el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange">
|
72
|
+
<el-table-column type="selection" width="55" align="center"/>
|
73
|
+
<el-table-column label="方法" align="center" prop="method"/>
|
74
|
+
<el-table-column label="备注">
|
75
|
+
<template #default="scope"><pre>{{getRemark(scope.row.remark)}}</pre></template>
|
76
|
+
</el-table-column>
|
77
|
+
<el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
|
78
|
+
<template #default="scope">
|
79
|
+
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)"
|
80
|
+
v-hasPermi="['system:service:edit']">
|
81
|
+
修改
|
82
|
+
</el-button>
|
83
|
+
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
|
84
|
+
v-hasPermi="['system:service:remove']">删除
|
85
|
+
</el-button>
|
86
|
+
</template>
|
87
|
+
</el-table-column>
|
88
|
+
</el-table>
|
89
|
+
|
90
|
+
<pagination
|
91
|
+
v-show="total > 0"
|
92
|
+
:total="total"
|
93
|
+
v-model:page="queryParams.pageNum"
|
94
|
+
v-model:limit="queryParams.pageSize"
|
95
|
+
@pagination="getList"
|
96
|
+
/>
|
97
|
+
|
98
|
+
<!-- 添加或修改参数配置对话框 -->
|
99
|
+
<el-dialog :title="title" v-model="open" width="666px" append-to-body>
|
100
|
+
<el-form ref="dataRef" :model="form" :rules="rules" label-width="120px">
|
101
|
+
<el-form-item label="方法" prop="method">
|
102
|
+
<el-input v-model="form.method"/>
|
103
|
+
</el-form-item>
|
104
|
+
<el-form-item label="参数类型">
|
105
|
+
<el-input v-model="paramClass" :rows="4" type="textarea"/>
|
106
|
+
</el-form-item>
|
107
|
+
<el-form-item label="返回值类型">
|
108
|
+
<el-input v-model="returnClass" :rows="4" type="textarea"/>
|
109
|
+
</el-form-item>
|
110
|
+
<el-form-item label="备注">
|
111
|
+
<el-input v-model="remark" :rows="4" type="textarea"/>
|
112
|
+
</el-form-item>
|
113
|
+
</el-form>
|
114
|
+
<div class="pre">{{code}}</div>
|
115
|
+
<template #footer>
|
116
|
+
<div class="dialog-footer">
|
117
|
+
<el-button type="primary" @click="submitForm">确 定</el-button>
|
118
|
+
<el-button @click="cancel">取 消</el-button>
|
119
|
+
</div>
|
120
|
+
</template>
|
121
|
+
</el-dialog>
|
122
|
+
</div>
|
123
|
+
</template>
|
124
|
+
|
125
|
+
<script setup name="ServiceData">
|
126
|
+
import {listData, updateData, addData, delData} from "@/api/tool/pm2.js";
|
127
|
+
|
128
|
+
const {proxy} = getCurrentInstance();
|
129
|
+
|
130
|
+
const dataList = ref([]);
|
131
|
+
const open = ref(false);
|
132
|
+
const loading = ref(true);
|
133
|
+
const showSearch = ref(true);
|
134
|
+
const ids = ref([]);
|
135
|
+
const single = ref(true);
|
136
|
+
const multiple = ref(true);
|
137
|
+
const total = ref(0);
|
138
|
+
const title = ref("");
|
139
|
+
const route = useRoute();
|
140
|
+
|
141
|
+
const Name = route.params.name[0].toUpperCase() + route.params.name.substring(1)
|
142
|
+
const paramClass = ref('');
|
143
|
+
const returnClass = ref('');
|
144
|
+
const remark = ref('')
|
145
|
+
|
146
|
+
const getRemark = remark => {
|
147
|
+
const index1 = remark.indexOf('***')
|
148
|
+
const index2 = remark.indexOf('***', index1 + 3)
|
149
|
+
return remark.substring(index2 + 4)
|
150
|
+
}
|
151
|
+
|
152
|
+
const code = computed(() => {
|
153
|
+
if (!form.value.method) return
|
154
|
+
let code = ''
|
155
|
+
const name = form.value.method[0].toUpperCase() + form.value.method.substring(1)
|
156
|
+
if (paramClass.value && paramClass.value.includes(':')) {
|
157
|
+
code += `
|
158
|
+
interface ${Name}${name}Param {
|
159
|
+
${paramClass.value.replace(/\n/g, '\n ')}
|
160
|
+
}
|
161
|
+
`
|
162
|
+
}
|
163
|
+
if (returnClass.value && returnClass.value.includes(':')) {
|
164
|
+
code += `
|
165
|
+
interface ${Name}${name}Return {
|
166
|
+
${returnClass.value.replace(/\n/g, '\n ')}
|
167
|
+
}
|
168
|
+
`
|
169
|
+
}
|
170
|
+
return `
|
171
|
+
${code}
|
172
|
+
export interface Service {
|
173
|
+
...
|
174
|
+
${route.params.name}: {
|
175
|
+
...${remark.value ? `
|
176
|
+
/**
|
177
|
+
* ${remark.value.replace(/\n/g, '\n * ')}
|
178
|
+
*/` : ''}
|
179
|
+
${form.value.method}(${paramClass.value ? paramClass.value.includes(':') ? `_: ${Name}${name}Param` : `_: ${paramClass.value}` : ''
|
180
|
+
}): Promise${returnClass.value ? returnClass.value.includes(':') ? `<${Name}${name}Return>` : `<${returnClass.value}>` : '<any>'}
|
181
|
+
...
|
182
|
+
}
|
183
|
+
...
|
184
|
+
}
|
185
|
+
`
|
186
|
+
})
|
187
|
+
|
188
|
+
const data = reactive({
|
189
|
+
form: {},
|
190
|
+
queryParams: {
|
191
|
+
pageNum: 1,
|
192
|
+
pageSize: 10,
|
193
|
+
method: undefined,
|
194
|
+
remark: undefined,
|
195
|
+
},
|
196
|
+
rules: {
|
197
|
+
method: [{required: true, message: "名称不能为空", trigger: "blur"}],
|
198
|
+
}
|
199
|
+
});
|
200
|
+
|
201
|
+
const {queryParams, form, rules} = toRefs(data);
|
202
|
+
|
203
|
+
/** 查询字典数据列表 */
|
204
|
+
function getList() {
|
205
|
+
loading.value = true;
|
206
|
+
listData({name: route.params.name, ...queryParams.value}).then(response => {
|
207
|
+
dataList.value = response.rows;
|
208
|
+
total.value = response.total;
|
209
|
+
loading.value = false;
|
210
|
+
});
|
211
|
+
}
|
212
|
+
|
213
|
+
/** 取消按钮 */
|
214
|
+
function cancel() {
|
215
|
+
open.value = false;
|
216
|
+
reset();
|
217
|
+
}
|
218
|
+
|
219
|
+
/** 表单重置 */
|
220
|
+
function reset() {
|
221
|
+
form.value = {
|
222
|
+
method: undefined,
|
223
|
+
remark: undefined,
|
224
|
+
};
|
225
|
+
paramClass.value = ''
|
226
|
+
returnClass.value = ''
|
227
|
+
remark.value = ''
|
228
|
+
proxy.resetForm("dataRef");
|
229
|
+
}
|
230
|
+
|
231
|
+
/** 搜索按钮操作 */
|
232
|
+
function handleQuery() {
|
233
|
+
queryParams.value.pageNum = 1;
|
234
|
+
getList();
|
235
|
+
}
|
236
|
+
|
237
|
+
/** 返回按钮操作 */
|
238
|
+
function handleClose() {
|
239
|
+
const obj = {path: "/tool/pm2"};
|
240
|
+
proxy.$tab.closeOpenPage(obj);
|
241
|
+
}
|
242
|
+
|
243
|
+
/** 重置按钮操作 */
|
244
|
+
function resetQuery() {
|
245
|
+
proxy.resetForm("queryRef");
|
246
|
+
handleQuery();
|
247
|
+
}
|
248
|
+
|
249
|
+
/** 新增按钮操作 */
|
250
|
+
function handleAdd() {
|
251
|
+
reset();
|
252
|
+
open.value = true;
|
253
|
+
title.value = "添加数据";
|
254
|
+
}
|
255
|
+
|
256
|
+
/** 多选框选中数据 */
|
257
|
+
function handleSelectionChange(selection) {
|
258
|
+
ids.value = selection.map(item => item.id);
|
259
|
+
single.value = selection.length != 1;
|
260
|
+
multiple.value = !selection.length;
|
261
|
+
}
|
262
|
+
|
263
|
+
/** 修改按钮操作 */
|
264
|
+
function handleUpdate(row) {
|
265
|
+
reset();
|
266
|
+
form.value = row;
|
267
|
+
open.value = true;
|
268
|
+
title.value = "修改数据";
|
269
|
+
const index1 = row.remark.indexOf('***')
|
270
|
+
const index2 = row.remark.indexOf('***', index1 + 3)
|
271
|
+
paramClass.value = row.remark.substring(1, index1 - 1).replace(/\n /g, '\n')
|
272
|
+
returnClass.value = row.remark.substring(index1 + 5, index2 - 1).replace(/\n /g, '\n')
|
273
|
+
remark.value = row.remark.substring(index2 + 4)
|
274
|
+
}
|
275
|
+
|
276
|
+
/** 提交按钮 */
|
277
|
+
function submitForm() {
|
278
|
+
proxy.$refs["dataRef"].validate(valid => {
|
279
|
+
if (valid) {
|
280
|
+
form.value.remark = ` ${paramClass.value.replace(/\n/g, '\n ')}
|
281
|
+
***
|
282
|
+
${returnClass.value.replace(/\n/g, '\n ')}
|
283
|
+
***
|
284
|
+
${remark.value}`
|
285
|
+
console.log(form.value.remark.length)
|
286
|
+
if (form.value.id != undefined) {
|
287
|
+
updateData({name: route.params.name, ...form.value}).then(response => {
|
288
|
+
proxy.$modal.msgSuccess("修改成功");
|
289
|
+
open.value = false;
|
290
|
+
getList();
|
291
|
+
});
|
292
|
+
} else {
|
293
|
+
addData({name: route.params.name, ...form.value}).then(response => {
|
294
|
+
proxy.$modal.msgSuccess("新增成功");
|
295
|
+
open.value = false;
|
296
|
+
getList();
|
297
|
+
});
|
298
|
+
}
|
299
|
+
}
|
300
|
+
});
|
301
|
+
}
|
302
|
+
|
303
|
+
/** 删除按钮操作 */
|
304
|
+
function handleDelete(rows) {
|
305
|
+
const id = rows.id || ids.value;
|
306
|
+
proxy.$modal.confirm('是否确认删除编码为"' + id + '"的数据项?').then(function () {
|
307
|
+
return delData(id);
|
308
|
+
}).then(() => {
|
309
|
+
getList();
|
310
|
+
proxy.$modal.msgSuccess("删除成功");
|
311
|
+
}).catch(() => {
|
312
|
+
});
|
313
|
+
}
|
314
|
+
|
315
|
+
/** 导出按钮操作 */
|
316
|
+
function handleExport() {
|
317
|
+
proxy.download("system/dict/data/export", {
|
318
|
+
...queryParams.value
|
319
|
+
}, `dict_data_${new Date().getTime()}.xlsx`);
|
320
|
+
}
|
321
|
+
|
322
|
+
getList()
|
323
|
+
</script>
|
324
|
+
|
325
|
+
<style scoped>
|
326
|
+
.pre {
|
327
|
+
background: dimgray;
|
328
|
+
border-radius: 6px;
|
329
|
+
padding: 0 12px;
|
330
|
+
color: white;
|
331
|
+
font-family: "Courier New", cursive;
|
332
|
+
white-space: pre-wrap;
|
333
|
+
font-size: 1.2em;
|
334
|
+
}
|
335
|
+
</style>
|
@@ -0,0 +1,343 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="app-container">
|
3
|
+
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
4
|
+
<el-form-item label="名称" prop="name">
|
5
|
+
<el-input
|
6
|
+
v-model="queryParams.name"
|
7
|
+
placeholder="请输入名称"
|
8
|
+
clearable
|
9
|
+
style="width: 240px"
|
10
|
+
@keyup.enter="handleQuery"
|
11
|
+
/>
|
12
|
+
</el-form-item>
|
13
|
+
<el-form-item>
|
14
|
+
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
15
|
+
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
16
|
+
</el-form-item>
|
17
|
+
</el-form>
|
18
|
+
|
19
|
+
<el-row :gutter="10" class="mb8">
|
20
|
+
<el-col :span="1.5">
|
21
|
+
<el-button
|
22
|
+
type="primary"
|
23
|
+
plain
|
24
|
+
icon="Plus"
|
25
|
+
@click="handleAdd"
|
26
|
+
v-hasPermi="['system:store:add']"
|
27
|
+
>新增
|
28
|
+
</el-button>
|
29
|
+
</el-col>
|
30
|
+
<el-col :span="1.5">
|
31
|
+
<el-button
|
32
|
+
type="primary"
|
33
|
+
plain
|
34
|
+
icon="Upload"
|
35
|
+
@click="save"
|
36
|
+
>保存
|
37
|
+
</el-button>
|
38
|
+
</el-col>
|
39
|
+
<el-col :span="1.5">
|
40
|
+
<el-button
|
41
|
+
type="primary"
|
42
|
+
plain
|
43
|
+
icon="Refresh"
|
44
|
+
@click="resurrect"
|
45
|
+
>重新加载
|
46
|
+
</el-button>
|
47
|
+
</el-col>
|
48
|
+
<el-col :span="1.5">
|
49
|
+
<el-button
|
50
|
+
type="success"
|
51
|
+
plain
|
52
|
+
icon="Download"
|
53
|
+
@click="exportMjs"
|
54
|
+
>导出
|
55
|
+
</el-button>
|
56
|
+
</el-col>
|
57
|
+
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
58
|
+
</el-row>
|
59
|
+
|
60
|
+
<el-table v-loading="loading" :data="typeList">
|
61
|
+
<el-table-column label="id" align="center" prop="id" :show-overflow-tooltip="true"/>
|
62
|
+
<el-table-column label="名称" align="center" prop="name" :show-overflow-tooltip="true">
|
63
|
+
<template #default="scope">
|
64
|
+
<router-link v-if="scope.row.type === 1" :to="'/tool/service-data/' + scope.row.name" class="link-type">
|
65
|
+
<span>{{ scope.row.name }}</span>
|
66
|
+
</router-link>
|
67
|
+
<span v-else>{{ scope.row.name }}</span>
|
68
|
+
</template>
|
69
|
+
</el-table-column>
|
70
|
+
<el-table-column label="命名空间" align="center" prop="namespace" :show-overflow-tooltip="true"/>
|
71
|
+
<el-table-column label="pid" align="center" prop="pid" :show-overflow-tooltip="true"/>
|
72
|
+
<el-table-column label="状态" align="center" width="100">
|
73
|
+
<template #default="scope">
|
74
|
+
<el-switch
|
75
|
+
v-model="scope.row.status"
|
76
|
+
:active-value="0"
|
77
|
+
:inactive-value="1"
|
78
|
+
@change="handleStatusChange(scope.row)"
|
79
|
+
></el-switch>
|
80
|
+
</template>
|
81
|
+
</el-table-column>
|
82
|
+
<el-table-column label="cpu" align="center" prop="cpu" :show-overflow-tooltip="true"/>
|
83
|
+
<el-table-column label="模式" align="center" prop="mode" :show-overflow-tooltip="true"/>
|
84
|
+
<el-table-column label="监听" align="center" prop="watching" :show-overflow-tooltip="true"/>
|
85
|
+
<el-table-column label="UDP/TCP服务" align="center" :show-overflow-tooltip="true">
|
86
|
+
<template #default="scope">{{ scope.row.type === 1 ? '是' : '否' }}</template>
|
87
|
+
</el-table-column>
|
88
|
+
<el-table-column label="host" align="center" :show-overflow-tooltip="true">
|
89
|
+
<template #default="scope">{{ scope.row.type === 1 ? scope.row.host : undefined }}</template>
|
90
|
+
</el-table-column>
|
91
|
+
<el-table-column label="port" align="center" :show-overflow-tooltip="true">
|
92
|
+
<template #default="scope">{{ scope.row.type === 1 ? scope.row.port : undefined }}</template>
|
93
|
+
</el-table-column>
|
94
|
+
<el-table-column label="备注" prop="remark" :show-overflow-tooltip="true"/>
|
95
|
+
<el-table-column label="操作" align="center" width="160" class-name="small-padding fixed-width">
|
96
|
+
<template #default="scope">
|
97
|
+
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)"
|
98
|
+
v-hasPermi="['system:store:remove']">删除
|
99
|
+
</el-button>
|
100
|
+
</template>
|
101
|
+
</el-table-column>
|
102
|
+
</el-table>
|
103
|
+
|
104
|
+
<pagination
|
105
|
+
v-show="total > 0"
|
106
|
+
:total="total"
|
107
|
+
v-model:page="queryParams.pageNum"
|
108
|
+
v-model:limit="queryParams.pageSize"
|
109
|
+
@pagination="getList"
|
110
|
+
/>
|
111
|
+
|
112
|
+
<!-- 添加或修改参数配置对话框 -->
|
113
|
+
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
114
|
+
<el-form ref="serviceRef" :model="form" :rules="rules" label-width="80px">
|
115
|
+
<el-form-item label="名称" prop="name">
|
116
|
+
<el-input v-model="form.name" placeholder="请输入名称"/>
|
117
|
+
</el-form-item>
|
118
|
+
<el-form-item label="类型" prop="type">
|
119
|
+
<el-radio-group v-model="form.type" class="ml-4">
|
120
|
+
<el-radio :value="0" size="large">普通</el-radio>
|
121
|
+
<el-radio :value="1" size="large">UDP/TCP</el-radio>
|
122
|
+
</el-radio-group>
|
123
|
+
</el-form-item>
|
124
|
+
<el-form-item label="前置参数" prop="arg1">
|
125
|
+
<el-input v-model="form.arg1" placeholder="请名称"/>
|
126
|
+
</el-form-item>
|
127
|
+
<el-form-item v-if="form.type === 1" label="域名/IP" prop="host">
|
128
|
+
<el-input v-model="form.host" placeholder="请输入"/>
|
129
|
+
</el-form-item>
|
130
|
+
<el-form-item v-if="form.type === 1" label="端口" prop="port">
|
131
|
+
<el-input-number v-model="form.port" placeholder="请输入"/>
|
132
|
+
</el-form-item>
|
133
|
+
<el-form-item label="脚本路径" prop="arg1">
|
134
|
+
<el-select v-model="form.path" filterable clearable placeholder="请输入脚本路径">
|
135
|
+
<el-option
|
136
|
+
v-for="path in pathList"
|
137
|
+
:key="path"
|
138
|
+
:label="path"
|
139
|
+
:value="path"
|
140
|
+
/>
|
141
|
+
</el-select>
|
142
|
+
</el-form-item>
|
143
|
+
<el-form-item label="后置参数" prop="arg2">
|
144
|
+
<el-input v-model="form.arg2" placeholder="请名称"/>
|
145
|
+
</el-form-item>
|
146
|
+
<el-form-item label="状态" prop="status">
|
147
|
+
<el-select v-model="form.status" size="large">
|
148
|
+
<el-option label="启用" :value="0"/>
|
149
|
+
<el-option label="停用" :value="1"/>
|
150
|
+
</el-select>
|
151
|
+
</el-form-item>
|
152
|
+
<el-form-item label="备注" prop="remark">
|
153
|
+
<el-input v-model="form.remark" autosize type="textarea"/>
|
154
|
+
</el-form-item>
|
155
|
+
<div class="code">> pm2 start {{ form.arg1 }} {{ form.path ? form.path + '.mjs' : '' }} {{ form.arg2 }}
|
156
|
+
--name="{{ form.name }}"
|
157
|
+
</div>
|
158
|
+
</el-form>
|
159
|
+
<template #footer>
|
160
|
+
<div class="dialog-footer">
|
161
|
+
<el-button type="primary" @click="submitForm">确 定</el-button>
|
162
|
+
<el-button @click="cancel">取 消</el-button>
|
163
|
+
</div>
|
164
|
+
</template>
|
165
|
+
</el-dialog>
|
166
|
+
</div>
|
167
|
+
</template>
|
168
|
+
|
169
|
+
<script setup name="Pm2">
|
170
|
+
import {
|
171
|
+
addPm2,
|
172
|
+
delPm2,
|
173
|
+
listPath,
|
174
|
+
listPm2,
|
175
|
+
handleStatusChange as changeSrvStatus,
|
176
|
+
handleSave,
|
177
|
+
handleResurrect,
|
178
|
+
} from "@/api/tool/pm2.js";
|
179
|
+
|
180
|
+
const {proxy} = getCurrentInstance();
|
181
|
+
|
182
|
+
const typeList = ref([]);
|
183
|
+
const pathList = ref([]);
|
184
|
+
const open = ref(false);
|
185
|
+
const loading = ref(true);
|
186
|
+
const showSearch = ref(true);
|
187
|
+
const single = ref(true);
|
188
|
+
const multiple = ref(true);
|
189
|
+
const total = ref(0);
|
190
|
+
const title = ref("");
|
191
|
+
|
192
|
+
const data = reactive({
|
193
|
+
form: {},
|
194
|
+
queryParams: {
|
195
|
+
pageNum: 1,
|
196
|
+
pageSize: 10,
|
197
|
+
name: undefined,
|
198
|
+
type: undefined,
|
199
|
+
host: undefined,
|
200
|
+
status: undefined,
|
201
|
+
remark: undefined,
|
202
|
+
},
|
203
|
+
rules: {
|
204
|
+
name: [{required: true, message: "名称不能为空", trigger: "blur"}],
|
205
|
+
host: [{required: true, message: "不能为空", trigger: "blur"}],
|
206
|
+
port: [{required: true, message: "不能为空", trigger: "blur"}],
|
207
|
+
},
|
208
|
+
});
|
209
|
+
|
210
|
+
const {queryParams, form, rules} = toRefs(data);
|
211
|
+
|
212
|
+
function getPathList() {
|
213
|
+
|
214
|
+
listPath().then(response => {
|
215
|
+
|
216
|
+
pathList.value = response.data
|
217
|
+
});
|
218
|
+
}
|
219
|
+
|
220
|
+
/** 查询存储列表 */
|
221
|
+
function getList() {
|
222
|
+
loading.value = true;
|
223
|
+
listPm2(queryParams.value).then(response => {
|
224
|
+
typeList.value = response.rows;
|
225
|
+
total.value = response.total;
|
226
|
+
loading.value = false;
|
227
|
+
});
|
228
|
+
}
|
229
|
+
|
230
|
+
/** 取消按钮 */
|
231
|
+
function cancel() {
|
232
|
+
open.value = false;
|
233
|
+
reset();
|
234
|
+
}
|
235
|
+
|
236
|
+
/** 表单重置 */
|
237
|
+
function reset() {
|
238
|
+
form.value = {
|
239
|
+
name: undefined,
|
240
|
+
type: 0,
|
241
|
+
host: 'localhost',
|
242
|
+
port: undefined,
|
243
|
+
arg1: undefined,
|
244
|
+
arg2: undefined,
|
245
|
+
path: undefined,
|
246
|
+
status: 0,
|
247
|
+
remark: undefined,
|
248
|
+
};
|
249
|
+
proxy.resetForm("serviceRef");
|
250
|
+
}
|
251
|
+
|
252
|
+
/** 搜索按钮操作 */
|
253
|
+
function handleQuery() {
|
254
|
+
queryParams.value.pageNum = 1;
|
255
|
+
getList();
|
256
|
+
}
|
257
|
+
|
258
|
+
/** 重置按钮操作 */
|
259
|
+
function resetQuery() {
|
260
|
+
proxy.resetForm("queryRef");
|
261
|
+
handleQuery();
|
262
|
+
}
|
263
|
+
|
264
|
+
/** 新增按钮操作 */
|
265
|
+
function handleAdd() {
|
266
|
+
reset();
|
267
|
+
getPathList()
|
268
|
+
open.value = true;
|
269
|
+
title.value = "添加服务";
|
270
|
+
}
|
271
|
+
|
272
|
+
/** 提交按钮 */
|
273
|
+
function submitForm() {
|
274
|
+
proxy.$refs["serviceRef"].validate(valid => {
|
275
|
+
if (valid) {
|
276
|
+
addPm2(form.value).then(response => {
|
277
|
+
proxy.$modal.msgSuccess("新增成功");
|
278
|
+
open.value = false;
|
279
|
+
getList();
|
280
|
+
});
|
281
|
+
}
|
282
|
+
});
|
283
|
+
}
|
284
|
+
|
285
|
+
/** 删除按钮操作 */
|
286
|
+
function handleDelete(row) {
|
287
|
+
const name = row.name;
|
288
|
+
proxy.$modal.confirm('是否确认删除编号为"' + name + '"的数据项?').then(function () {
|
289
|
+
return delPm2(name);
|
290
|
+
}).then(() => {
|
291
|
+
getList();
|
292
|
+
proxy.$modal.msgSuccess("删除成功");
|
293
|
+
}).catch(() => {
|
294
|
+
});
|
295
|
+
}
|
296
|
+
|
297
|
+
function handleStatusChange(row) {
|
298
|
+
let text = row.status === 0 ? "启用" : "停用";
|
299
|
+
proxy.$modal.confirm('确认要"' + text + '""' + row.name + '"服务吗?').then(function () {
|
300
|
+
return changeSrvStatus(row.name, row.status);
|
301
|
+
}).then(() => {
|
302
|
+
getList()
|
303
|
+
proxy.$modal.msgSuccess(text + "成功");
|
304
|
+
}).catch(function () {
|
305
|
+
row.status = row.status === "stopped" ? "online" : "stopped";
|
306
|
+
});
|
307
|
+
}
|
308
|
+
|
309
|
+
function save() {
|
310
|
+
|
311
|
+
handleSave().then(() => {
|
312
|
+
getList();
|
313
|
+
proxy.$modal.msgSuccess("保存成功");
|
314
|
+
}).catch(() => {
|
315
|
+
});
|
316
|
+
}
|
317
|
+
|
318
|
+
function resurrect() {
|
319
|
+
|
320
|
+
handleResurrect().then(() => {
|
321
|
+
getList();
|
322
|
+
proxy.$modal.msgSuccess("加载成功");
|
323
|
+
}).catch(() => {
|
324
|
+
});
|
325
|
+
}
|
326
|
+
|
327
|
+
const exportMjs = () => {
|
328
|
+
|
329
|
+
proxy.$download.zip("/tool/pm2/data/export", "service.zip");
|
330
|
+
}
|
331
|
+
|
332
|
+
getList();
|
333
|
+
</script>
|
334
|
+
|
335
|
+
<style scoped lang="scss">
|
336
|
+
.code {
|
337
|
+
background: dimgray;
|
338
|
+
border-radius: 6px;
|
339
|
+
padding: 10px 12px;
|
340
|
+
color: white;
|
341
|
+
font-family: "Courier New", cursive;
|
342
|
+
}
|
343
|
+
</style>
|