@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,128 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form>
|
3
|
+
<el-form-item>
|
4
|
+
<el-radio v-model='radioValue' :value="1">
|
5
|
+
秒,允许的通配符[, - * /]
|
6
|
+
</el-radio>
|
7
|
+
</el-form-item>
|
8
|
+
|
9
|
+
<el-form-item>
|
10
|
+
<el-radio v-model='radioValue' :value="2">
|
11
|
+
周期从
|
12
|
+
<el-input-number v-model='cycle01' :min="0" :max="58" /> -
|
13
|
+
<el-input-number v-model='cycle02' :min="cycle01 + 1" :max="59" /> 秒
|
14
|
+
</el-radio>
|
15
|
+
</el-form-item>
|
16
|
+
|
17
|
+
<el-form-item>
|
18
|
+
<el-radio v-model='radioValue' :value="3">
|
19
|
+
从
|
20
|
+
<el-input-number v-model='average01' :min="0" :max="58" /> 秒开始,每
|
21
|
+
<el-input-number v-model='average02' :min="1" :max="59 - average01" /> 秒执行一次
|
22
|
+
</el-radio>
|
23
|
+
</el-form-item>
|
24
|
+
|
25
|
+
<el-form-item>
|
26
|
+
<el-radio v-model='radioValue' :value="4">
|
27
|
+
指定
|
28
|
+
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple :multiple-limit="10">
|
29
|
+
<el-option v-for="item in 60" :key="item" :label="item - 1" :value="item - 1" />
|
30
|
+
</el-select>
|
31
|
+
</el-radio>
|
32
|
+
</el-form-item>
|
33
|
+
</el-form>
|
34
|
+
</template>
|
35
|
+
|
36
|
+
<script setup>
|
37
|
+
const emit = defineEmits(['update'])
|
38
|
+
const props = defineProps({
|
39
|
+
cron: {
|
40
|
+
type: Object,
|
41
|
+
default: {
|
42
|
+
second: "*",
|
43
|
+
min: "*",
|
44
|
+
hour: "*",
|
45
|
+
day: "*",
|
46
|
+
month: "*",
|
47
|
+
week: "?",
|
48
|
+
year: "",
|
49
|
+
}
|
50
|
+
},
|
51
|
+
check: {
|
52
|
+
type: Function,
|
53
|
+
default: () => {
|
54
|
+
}
|
55
|
+
}
|
56
|
+
})
|
57
|
+
const radioValue = ref(1)
|
58
|
+
const cycle01 = ref(0)
|
59
|
+
const cycle02 = ref(1)
|
60
|
+
const average01 = ref(0)
|
61
|
+
const average02 = ref(1)
|
62
|
+
const checkboxList = ref([])
|
63
|
+
const checkCopy = ref([0])
|
64
|
+
const cycleTotal = computed(() => {
|
65
|
+
cycle01.value = props.check(cycle01.value, 0, 58)
|
66
|
+
cycle02.value = props.check(cycle02.value, cycle01.value + 1, 59)
|
67
|
+
return cycle01.value + '-' + cycle02.value
|
68
|
+
})
|
69
|
+
const averageTotal = computed(() => {
|
70
|
+
average01.value = props.check(average01.value, 0, 58)
|
71
|
+
average02.value = props.check(average02.value, 1, 59 - average01.value)
|
72
|
+
return average01.value + '/' + average02.value
|
73
|
+
})
|
74
|
+
const checkboxString = computed(() => {
|
75
|
+
return checkboxList.value.join(',')
|
76
|
+
})
|
77
|
+
watch(() => props.cron.second, value => changeRadioValue(value))
|
78
|
+
watch([radioValue, cycleTotal, averageTotal, checkboxString], () => onRadioChange())
|
79
|
+
function changeRadioValue(value) {
|
80
|
+
if (value === '*') {
|
81
|
+
radioValue.value = 1
|
82
|
+
} else if (value.indexOf('-') > -1) {
|
83
|
+
const indexArr = value.split('-')
|
84
|
+
cycle01.value = Number(indexArr[0])
|
85
|
+
cycle02.value = Number(indexArr[1])
|
86
|
+
radioValue.value = 2
|
87
|
+
} else if (value.indexOf('/') > -1) {
|
88
|
+
const indexArr = value.split('/')
|
89
|
+
average01.value = Number(indexArr[0])
|
90
|
+
average02.value = Number(indexArr[1])
|
91
|
+
radioValue.value = 3
|
92
|
+
} else {
|
93
|
+
checkboxList.value = [...new Set(value.split(',').map(item => Number(item)))]
|
94
|
+
radioValue.value = 4
|
95
|
+
}
|
96
|
+
}
|
97
|
+
// 单选按钮值变化时
|
98
|
+
function onRadioChange() {
|
99
|
+
switch (radioValue.value) {
|
100
|
+
case 1:
|
101
|
+
emit('update', 'second', '*', 'second')
|
102
|
+
break
|
103
|
+
case 2:
|
104
|
+
emit('update', 'second', cycleTotal.value, 'second')
|
105
|
+
break
|
106
|
+
case 3:
|
107
|
+
emit('update', 'second', averageTotal.value, 'second')
|
108
|
+
break
|
109
|
+
case 4:
|
110
|
+
if (checkboxList.value.length === 0) {
|
111
|
+
checkboxList.value.push(checkCopy.value[0])
|
112
|
+
} else {
|
113
|
+
checkCopy.value = checkboxList.value
|
114
|
+
}
|
115
|
+
emit('update', 'second', checkboxString.value, 'second')
|
116
|
+
break
|
117
|
+
}
|
118
|
+
}
|
119
|
+
</script>
|
120
|
+
|
121
|
+
<style lang="scss" scoped>
|
122
|
+
.el-input-number--small, .el-select, .el-select--small {
|
123
|
+
margin: 0 0.2rem;
|
124
|
+
}
|
125
|
+
.el-select, .el-select--small {
|
126
|
+
width: 18.8rem;
|
127
|
+
}
|
128
|
+
</style>
|
@@ -0,0 +1,197 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form>
|
3
|
+
<el-form-item>
|
4
|
+
<el-radio v-model='radioValue' :value="1">
|
5
|
+
周,允许的通配符[, - * ? / L #]
|
6
|
+
</el-radio>
|
7
|
+
</el-form-item>
|
8
|
+
|
9
|
+
<el-form-item>
|
10
|
+
<el-radio v-model='radioValue' :value="2">
|
11
|
+
不指定
|
12
|
+
</el-radio>
|
13
|
+
</el-form-item>
|
14
|
+
|
15
|
+
<el-form-item>
|
16
|
+
<el-radio v-model='radioValue' :value="3">
|
17
|
+
周期从
|
18
|
+
<el-select clearable v-model="cycle01">
|
19
|
+
<el-option
|
20
|
+
v-for="(item,index) of weekList"
|
21
|
+
:key="index"
|
22
|
+
:label="item.value"
|
23
|
+
:value="item.key"
|
24
|
+
:disabled="item.key === 7"
|
25
|
+
>{{item.value}}</el-option>
|
26
|
+
</el-select>
|
27
|
+
-
|
28
|
+
<el-select clearable v-model="cycle02">
|
29
|
+
<el-option
|
30
|
+
v-for="(item,index) of weekList"
|
31
|
+
:key="index"
|
32
|
+
:label="item.value"
|
33
|
+
:value="item.key"
|
34
|
+
:disabled="item.key <= cycle01"
|
35
|
+
>{{item.value}}</el-option>
|
36
|
+
</el-select>
|
37
|
+
</el-radio>
|
38
|
+
</el-form-item>
|
39
|
+
|
40
|
+
<el-form-item>
|
41
|
+
<el-radio v-model='radioValue' :value="4">
|
42
|
+
第
|
43
|
+
<el-input-number v-model='average01' :min="1" :max="4" /> 周的
|
44
|
+
<el-select clearable v-model="average02">
|
45
|
+
<el-option v-for="item in weekList" :key="item.key" :label="item.value" :value="item.key" />
|
46
|
+
</el-select>
|
47
|
+
</el-radio>
|
48
|
+
</el-form-item>
|
49
|
+
|
50
|
+
<el-form-item>
|
51
|
+
<el-radio v-model='radioValue' :value="5">
|
52
|
+
本月最后一个
|
53
|
+
<el-select clearable v-model="weekday">
|
54
|
+
<el-option v-for="item in weekList" :key="item.key" :label="item.value" :value="item.key" />
|
55
|
+
</el-select>
|
56
|
+
</el-radio>
|
57
|
+
</el-form-item>
|
58
|
+
|
59
|
+
<el-form-item>
|
60
|
+
<el-radio v-model='radioValue' :value="6">
|
61
|
+
指定
|
62
|
+
<el-select class="multiselect" clearable v-model="checkboxList" placeholder="可多选" multiple :multiple-limit="6">
|
63
|
+
<el-option v-for="item in weekList" :key="item.key" :label="item.value" :value="item.key" />
|
64
|
+
</el-select>
|
65
|
+
</el-radio>
|
66
|
+
</el-form-item>
|
67
|
+
|
68
|
+
</el-form>
|
69
|
+
</template>
|
70
|
+
|
71
|
+
<script setup>
|
72
|
+
const emit = defineEmits(['update'])
|
73
|
+
const props = defineProps({
|
74
|
+
cron: {
|
75
|
+
type: Object,
|
76
|
+
default: {
|
77
|
+
second: "*",
|
78
|
+
min: "*",
|
79
|
+
hour: "*",
|
80
|
+
day: "*",
|
81
|
+
month: "*",
|
82
|
+
week: "?",
|
83
|
+
year: ""
|
84
|
+
}
|
85
|
+
},
|
86
|
+
check: {
|
87
|
+
type: Function,
|
88
|
+
default: () => {
|
89
|
+
}
|
90
|
+
}
|
91
|
+
})
|
92
|
+
const radioValue = ref(2)
|
93
|
+
const cycle01 = ref(2)
|
94
|
+
const cycle02 = ref(3)
|
95
|
+
const average01 = ref(1)
|
96
|
+
const average02 = ref(2)
|
97
|
+
const weekday = ref(2)
|
98
|
+
const checkboxList = ref([])
|
99
|
+
const checkCopy = ref([2])
|
100
|
+
const weekList = ref([
|
101
|
+
{key: 1, value: '星期日'},
|
102
|
+
{key: 2, value: '星期一'},
|
103
|
+
{key: 3, value: '星期二'},
|
104
|
+
{key: 4, value: '星期三'},
|
105
|
+
{key: 5, value: '星期四'},
|
106
|
+
{key: 6, value: '星期五'},
|
107
|
+
{key: 7, value: '星期六'}
|
108
|
+
])
|
109
|
+
const cycleTotal = computed(() => {
|
110
|
+
cycle01.value = props.check(cycle01.value, 1, 6)
|
111
|
+
cycle02.value = props.check(cycle02.value, cycle01.value + 1, 7)
|
112
|
+
return cycle01.value + '-' + cycle02.value
|
113
|
+
})
|
114
|
+
const averageTotal = computed(() => {
|
115
|
+
average01.value = props.check(average01.value, 1, 4)
|
116
|
+
average02.value = props.check(average02.value, 1, 7)
|
117
|
+
return average02.value + '#' + average01.value
|
118
|
+
})
|
119
|
+
const weekdayTotal = computed(() => {
|
120
|
+
weekday.value = props.check(weekday.value, 1, 7)
|
121
|
+
return weekday.value + 'L'
|
122
|
+
})
|
123
|
+
const checkboxString = computed(() => {
|
124
|
+
return checkboxList.value.join(',')
|
125
|
+
})
|
126
|
+
watch(() => props.cron.week, value => changeRadioValue(value))
|
127
|
+
watch([radioValue, cycleTotal, averageTotal, weekdayTotal, checkboxString], () => onRadioChange())
|
128
|
+
function changeRadioValue(value) {
|
129
|
+
if (value === "*") {
|
130
|
+
radioValue.value = 1
|
131
|
+
} else if (value === "?") {
|
132
|
+
radioValue.value = 2
|
133
|
+
} else if (value.indexOf("-") > -1) {
|
134
|
+
const indexArr = value.split('-')
|
135
|
+
cycle01.value = Number(indexArr[0])
|
136
|
+
cycle02.value = Number(indexArr[1])
|
137
|
+
radioValue.value = 3
|
138
|
+
} else if (value.indexOf("#") > -1) {
|
139
|
+
const indexArr = value.split('#')
|
140
|
+
average01.value = Number(indexArr[1])
|
141
|
+
average02.value = Number(indexArr[0])
|
142
|
+
radioValue.value = 4
|
143
|
+
} else if (value.indexOf("L") > -1) {
|
144
|
+
const indexArr = value.split("L")
|
145
|
+
weekday.value = Number(indexArr[0])
|
146
|
+
radioValue.value = 5
|
147
|
+
} else {
|
148
|
+
checkboxList.value = [...new Set(value.split(',').map(item => Number(item)))]
|
149
|
+
radioValue.value = 6
|
150
|
+
}
|
151
|
+
}
|
152
|
+
function onRadioChange() {
|
153
|
+
if (radioValue.value === 2 && props.cron.day === '?') {
|
154
|
+
emit('update', 'day', '*', 'week')
|
155
|
+
}
|
156
|
+
if (radioValue.value !== 2 && props.cron.day !== '?') {
|
157
|
+
emit('update', 'day', '?', 'week')
|
158
|
+
}
|
159
|
+
switch (radioValue.value) {
|
160
|
+
case 1:
|
161
|
+
emit('update', 'week', '*', 'week')
|
162
|
+
break
|
163
|
+
case 2:
|
164
|
+
emit('update', 'week', '?', 'week')
|
165
|
+
break
|
166
|
+
case 3:
|
167
|
+
emit('update', 'week', cycleTotal.value, 'week')
|
168
|
+
break
|
169
|
+
case 4:
|
170
|
+
emit('update', 'week', averageTotal.value, 'week')
|
171
|
+
break
|
172
|
+
case 5:
|
173
|
+
emit('update', 'week', weekdayTotal.value, 'week')
|
174
|
+
break
|
175
|
+
case 6:
|
176
|
+
if (checkboxList.value.length === 0) {
|
177
|
+
checkboxList.value.push(checkCopy.value[0])
|
178
|
+
} else {
|
179
|
+
checkCopy.value = checkboxList.value
|
180
|
+
}
|
181
|
+
emit('update', 'week', checkboxString.value, 'week')
|
182
|
+
break
|
183
|
+
}
|
184
|
+
}
|
185
|
+
</script>
|
186
|
+
|
187
|
+
<style lang="scss" scoped>
|
188
|
+
.el-input-number--small, .el-select, .el-select--small {
|
189
|
+
margin: 0 0.5rem;
|
190
|
+
}
|
191
|
+
.el-select, .el-select--small {
|
192
|
+
width: 8rem;
|
193
|
+
}
|
194
|
+
.el-select.multiselect, .el-select--small.multiselect {
|
195
|
+
width: 17.8rem;
|
196
|
+
}
|
197
|
+
</style>
|
@@ -0,0 +1,149 @@
|
|
1
|
+
<template>
|
2
|
+
<el-form>
|
3
|
+
<el-form-item>
|
4
|
+
<el-radio :value="1" v-model='radioValue'>
|
5
|
+
不填,允许的通配符[, - * /]
|
6
|
+
</el-radio>
|
7
|
+
</el-form-item>
|
8
|
+
|
9
|
+
<el-form-item>
|
10
|
+
<el-radio :value="2" v-model='radioValue'>
|
11
|
+
每年
|
12
|
+
</el-radio>
|
13
|
+
</el-form-item>
|
14
|
+
|
15
|
+
<el-form-item>
|
16
|
+
<el-radio :value="3" v-model='radioValue'>
|
17
|
+
周期从
|
18
|
+
<el-input-number v-model='cycle01' :min='fullYear' :max="2098"/> -
|
19
|
+
<el-input-number v-model='cycle02' :min="cycle01 ? cycle01 + 1 : fullYear + 1" :max="2099"/>
|
20
|
+
</el-radio>
|
21
|
+
</el-form-item>
|
22
|
+
|
23
|
+
<el-form-item>
|
24
|
+
<el-radio :value="4" v-model='radioValue'>
|
25
|
+
从
|
26
|
+
<el-input-number v-model='average01' :min='fullYear' :max="2098"/> 年开始,每
|
27
|
+
<el-input-number v-model='average02' :min="1" :max="2099 - average01 || fullYear"/> 年执行一次
|
28
|
+
</el-radio>
|
29
|
+
|
30
|
+
</el-form-item>
|
31
|
+
|
32
|
+
<el-form-item>
|
33
|
+
<el-radio :value="5" v-model='radioValue'>
|
34
|
+
指定
|
35
|
+
<el-select clearable v-model="checkboxList" placeholder="可多选" multiple :multiple-limit="8">
|
36
|
+
<el-option v-for="item in 9" :key="item" :value="item - 1 + fullYear" :label="item -1 + fullYear" />
|
37
|
+
</el-select>
|
38
|
+
</el-radio>
|
39
|
+
</el-form-item>
|
40
|
+
</el-form>
|
41
|
+
</template>
|
42
|
+
|
43
|
+
<script setup>
|
44
|
+
const emit = defineEmits(['update'])
|
45
|
+
const props = defineProps({
|
46
|
+
cron: {
|
47
|
+
type: Object,
|
48
|
+
default: {
|
49
|
+
second: "*",
|
50
|
+
min: "*",
|
51
|
+
hour: "*",
|
52
|
+
day: "*",
|
53
|
+
month: "*",
|
54
|
+
week: "?",
|
55
|
+
year: ""
|
56
|
+
}
|
57
|
+
},
|
58
|
+
check: {
|
59
|
+
type: Function,
|
60
|
+
default: () => {
|
61
|
+
}
|
62
|
+
}
|
63
|
+
})
|
64
|
+
const fullYear = ref(0)
|
65
|
+
const maxFullYear = ref(0)
|
66
|
+
const radioValue = ref(1)
|
67
|
+
const cycle01 = ref(0)
|
68
|
+
const cycle02 = ref(0)
|
69
|
+
const average01 = ref(0)
|
70
|
+
const average02 = ref(1)
|
71
|
+
const checkboxList = ref([])
|
72
|
+
const checkCopy = ref([])
|
73
|
+
const cycleTotal = computed(() => {
|
74
|
+
cycle01.value = props.check(cycle01.value, fullYear.value, maxFullYear.value - 1)
|
75
|
+
cycle02.value = props.check(cycle02.value, cycle01.value + 1, maxFullYear.value)
|
76
|
+
return cycle01.value + '-' + cycle02.value
|
77
|
+
})
|
78
|
+
const averageTotal = computed(() => {
|
79
|
+
average01.value = props.check(average01.value, fullYear.value, maxFullYear.value - 1)
|
80
|
+
average02.value = props.check(average02.value, 1, 10)
|
81
|
+
return average01.value + '/' + average02.value
|
82
|
+
})
|
83
|
+
const checkboxString = computed(() => {
|
84
|
+
return checkboxList.value.join(',')
|
85
|
+
})
|
86
|
+
watch(() => props.cron.year, value => changeRadioValue(value))
|
87
|
+
watch([radioValue, cycleTotal, averageTotal, checkboxString], () => onRadioChange())
|
88
|
+
function changeRadioValue(value) {
|
89
|
+
if (value === '') {
|
90
|
+
radioValue.value = 1
|
91
|
+
} else if (value === "*") {
|
92
|
+
radioValue.value = 2
|
93
|
+
} else if (value.indexOf("-") > -1) {
|
94
|
+
const indexArr = value.split('-')
|
95
|
+
cycle01.value = Number(indexArr[0])
|
96
|
+
cycle02.value = Number(indexArr[1])
|
97
|
+
radioValue.value = 3
|
98
|
+
} else if (value.indexOf("/") > -1) {
|
99
|
+
const indexArr = value.split('/')
|
100
|
+
average01.value = Number(indexArr[1])
|
101
|
+
average02.value = Number(indexArr[0])
|
102
|
+
radioValue.value = 4
|
103
|
+
} else {
|
104
|
+
checkboxList.value = [...new Set(value.split(',').map(item => Number(item)))]
|
105
|
+
radioValue.value = 5
|
106
|
+
}
|
107
|
+
}
|
108
|
+
function onRadioChange() {
|
109
|
+
switch (radioValue.value) {
|
110
|
+
case 1:
|
111
|
+
emit('update', 'year', '', 'year')
|
112
|
+
break
|
113
|
+
case 2:
|
114
|
+
emit('update', 'year', '*', 'year')
|
115
|
+
break
|
116
|
+
case 3:
|
117
|
+
emit('update', 'year', cycleTotal.value, 'year')
|
118
|
+
break
|
119
|
+
case 4:
|
120
|
+
emit('update', 'year', averageTotal.value, 'year')
|
121
|
+
break
|
122
|
+
case 5:
|
123
|
+
if (checkboxList.value.length === 0) {
|
124
|
+
checkboxList.value.push(checkCopy.value[0])
|
125
|
+
} else {
|
126
|
+
checkCopy.value = checkboxList.value
|
127
|
+
}
|
128
|
+
emit('update', 'year', checkboxString.value, 'year')
|
129
|
+
break
|
130
|
+
}
|
131
|
+
}
|
132
|
+
onMounted(() => {
|
133
|
+
fullYear.value = Number(new Date().getFullYear())
|
134
|
+
maxFullYear.value = fullYear.value + 10
|
135
|
+
cycle01.value = fullYear.value
|
136
|
+
cycle02.value = cycle01.value + 1
|
137
|
+
average01.value = fullYear.value
|
138
|
+
checkCopy.value = [fullYear.value]
|
139
|
+
})
|
140
|
+
</script>
|
141
|
+
|
142
|
+
<style lang="scss" scoped>
|
143
|
+
.el-input-number--small, .el-select, .el-select--small {
|
144
|
+
margin: 0 0.2rem;
|
145
|
+
}
|
146
|
+
.el-select, .el-select--small {
|
147
|
+
width: 18.8rem;
|
148
|
+
}
|
149
|
+
</style>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<template v-for="(item, index) in options">
|
4
|
+
<template v-if="values.includes(item.value)">
|
5
|
+
<span
|
6
|
+
v-if="(item.elTagType == 'default' || item.elTagType == '') && (item.elTagClass == '' || item.elTagClass == null)"
|
7
|
+
:key="item.value"
|
8
|
+
:index="index"
|
9
|
+
:class="item.elTagClass"
|
10
|
+
>{{ item.label + " " }}</span>
|
11
|
+
<el-tag
|
12
|
+
v-else
|
13
|
+
:disable-transitions="true"
|
14
|
+
:key="item.value + ''"
|
15
|
+
:index="index"
|
16
|
+
:type="item.elTagType"
|
17
|
+
:class="item.elTagClass"
|
18
|
+
>{{ item.label + " " }}</el-tag>
|
19
|
+
</template>
|
20
|
+
</template>
|
21
|
+
<template v-if="unmatch && showValue">
|
22
|
+
{{ unmatchArray | handleArray }}
|
23
|
+
</template>
|
24
|
+
</div>
|
25
|
+
</template>
|
26
|
+
|
27
|
+
<script setup>
|
28
|
+
// 记录未匹配的项
|
29
|
+
const unmatchArray = ref([]);
|
30
|
+
|
31
|
+
const props = defineProps({
|
32
|
+
// 数据
|
33
|
+
options: {
|
34
|
+
type: Array,
|
35
|
+
default: null,
|
36
|
+
},
|
37
|
+
// 当前的值
|
38
|
+
value: [Number, String, Array],
|
39
|
+
// 当未找到匹配的数据时,显示value
|
40
|
+
showValue: {
|
41
|
+
type: Boolean,
|
42
|
+
default: true,
|
43
|
+
},
|
44
|
+
separator: {
|
45
|
+
type: String,
|
46
|
+
default: ",",
|
47
|
+
}
|
48
|
+
});
|
49
|
+
|
50
|
+
const values = computed(() => {
|
51
|
+
if (props.value === null || typeof props.value === 'undefined' || props.value === '') return [];
|
52
|
+
return Array.isArray(props.value) ? props.value.map(item => '' + item) : String(props.value).split(props.separator);
|
53
|
+
});
|
54
|
+
|
55
|
+
const unmatch = computed(() => {
|
56
|
+
unmatchArray.value = [];
|
57
|
+
// 没有value不显示
|
58
|
+
if (props.value === null || typeof props.value === 'undefined' || props.value === '' || props.options.length === 0) return false
|
59
|
+
// 传入值为数组
|
60
|
+
let unmatch = false // 添加一个标志来判断是否有未匹配项
|
61
|
+
values.value.forEach(item => {
|
62
|
+
if (!props.options.some(v => v.value === item)) {
|
63
|
+
unmatchArray.value.push(item)
|
64
|
+
unmatch = true // 如果有未匹配项,将标志设置为true
|
65
|
+
}
|
66
|
+
})
|
67
|
+
return unmatch // 返回标志的值
|
68
|
+
});
|
69
|
+
|
70
|
+
function handleArray(array) {
|
71
|
+
if (array.length === 0) return "";
|
72
|
+
return array.reduce((pre, cur) => {
|
73
|
+
return pre + " " + cur;
|
74
|
+
});
|
75
|
+
}
|
76
|
+
</script>
|
77
|
+
|
78
|
+
<style scoped>
|
79
|
+
.el-tag + .el-tag {
|
80
|
+
margin-left: 10px;
|
81
|
+
}
|
82
|
+
</style>
|