@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 @@
|
|
1
|
+
import{r as m,u as fe,C as _e,J as ge,d as u,G as J,o as n,c as S,H as h,I as K,h as e,e as r,f as a,K as E,L as j,l as d,n as M,p as _,D as W,m as he,B as ve,v as be}from"./index-BYiWbDzj.js";import{g as ye,l as Ve,u as Ce,a as ke,d as Ue}from"./store-CX7IRN8X.js";const we={class:"app-container"},Se={class:"dialog-footer"},De=ve({name:"StoreData"}),$e=Object.assign(De,{setup(xe){const{proxy:g}=be(),B=m([]),v=m(!1),D=m(!0),k=m(!0),X=m([]),x=m([]),U=m(null),w=m({}),O=m(!0),q=m(!0),N=m(0),R=m(""),y=fe(),Y=_e({form:{},queryParams:{pageNum:1,pageSize:10,filter:{}},rules:{}}),{queryParams:s,form:c,rules:Z}=ge(Y),F=l=>["id","int","uInt","bigUint","bigint","float","byte"].includes(l);function ee(l){ye(l).then(i=>{w.value=i.struct,b()})}function b(){D.value=!0,Ve({name:y.params.name,...s.value}).then(l=>{B.value=l.rows,N.value=l.total,D.value=!1})}function te(){v.value=!1,$()}function $(){c.value={dictCode:void 0},U.value=null,g.resetForm("dataRef")}function L(){s.value.pageNum=1,b()}function le(){const l={path:"/tool/store"};g.$tab.closeOpenPage(l)}function ae(){g.resetForm("queryRef"),s.value.filter={},L()}function ne(){$(),v.value=!0,R.value="添加数据",c.value.dictType=s.value.dictType}function oe(l){X.value=l.map(i=>i.dictCode),x.value=l,O.value=l.length!=1,q.value=!l.length}function z(l){l instanceof Event&&(l=x.value[0]),$(),U.value={...l},c.value=l,v.value=!0,R.value="修改数据"}function re(){g.$refs.dataRef.validate(l=>{l&&(U.value!==null?Ce({name:y.params.name,new:c.value,old:U.value}).then(i=>{g.$modal.msgSuccess("修改成功"),v.value=!1,b()}):ke({name:y.params.name,data:c.value}).then(i=>{g.$modal.msgSuccess("新增成功"),v.value=!1,b()}))})}function I(l){l instanceof Event?l=x.value:l=[l],g.$modal.confirm("是否确认删除这 "+l.length+" 条数据?").then(function(){return Ue({name:y.params.name,list:l})}).then(()=>{b(),g.$modal.msgSuccess("删除成功")}).catch(()=>{})}function se(){g.download("system/dict/data/export",{...s.value},`dict_data_${new Date().getTime()}.xlsx`)}return ee(y.params&&y.params.name),(l,i)=>{const Q=u("el-input-number"),A=u("el-input"),G=u("el-date-picker"),P=u("el-form-item"),p=u("el-button"),H=u("el-form"),C=u("el-col"),de=u("right-toolbar"),ie=u("el-row"),T=u("el-table-column"),ue=u("el-table"),ce=u("pagination"),me=u("el-dialog"),V=J("hasPermi"),pe=J("loading");return n(),S("div",we,[h(r(H,{model:e(s),ref:"queryRef",inline:!0},{default:a(()=>[(n(!0),S(E,null,j(Object.entries(e(w)),([t,o])=>(n(),d(P,{label:o.remark||t,prop:t},{default:a(()=>[F(o.type)?(n(),d(Q,{key:0,modelValue:e(s).filter[t],"onUpdate:modelValue":f=>e(s).filter[t]=f,placeholder:o.remark},null,8,["modelValue","onUpdate:modelValue","placeholder"])):o.type==="string"?(n(),d(A,{key:1,modelValue:e(s).filter[t],"onUpdate:modelValue":f=>e(s).filter[t]=f,placeholder:o.remark},null,8,["modelValue","onUpdate:modelValue","placeholder"])):o.type==="time"?(n(),d(G,{key:2,modelValue:e(s).filter[t],"onUpdate:modelValue":f=>e(s).filter[t]=f,type:"datetime",placeholder:o.remark},null,8,["modelValue","onUpdate:modelValue","placeholder"])):M("",!0)]),_:2},1032,["label","prop"]))),256)),r(P,null,{default:a(()=>[r(p,{type:"primary",icon:"Search",onClick:L},{default:a(()=>[_("搜索")]),_:1}),r(p,{icon:"Refresh",onClick:ae},{default:a(()=>[_("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[K,e(k)]]),r(ie,{gutter:10,class:"mb8"},{default:a(()=>[r(C,{span:1.5},{default:a(()=>[h((n(),d(p,{type:"primary",plain:"",icon:"Plus",onClick:ne},{default:a(()=>[_("新增 ")]),_:1})),[[V,["system:store:add"]]])]),_:1}),r(C,{span:1.5},{default:a(()=>[h((n(),d(p,{type:"success",plain:"",icon:"Edit",disabled:e(O),onClick:z},{default:a(()=>[_("修改 ")]),_:1},8,["disabled"])),[[V,["system:store:edit"]]])]),_:1}),r(C,{span:1.5},{default:a(()=>[h((n(),d(p,{type:"danger",plain:"",icon:"Delete",disabled:e(q),onClick:I},{default:a(()=>[_("删除 ")]),_:1},8,["disabled"])),[[V,["system:store:remove"]]])]),_:1}),r(C,{span:1.5},{default:a(()=>[h((n(),d(p,{type:"warning",plain:"",icon:"Download",onClick:se},{default:a(()=>[_("导出 ")]),_:1})),[[V,["system:store:export"]]])]),_:1}),r(C,{span:1.5},{default:a(()=>[r(p,{type:"warning",plain:"",icon:"Close",onClick:le},{default:a(()=>[_("关闭 ")]),_:1})]),_:1}),r(de,{showSearch:e(k),"onUpdate:showSearch":i[0]||(i[0]=t=>W(k)?k.value=t:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),h((n(),d(ue,{data:e(B),onSelectionChange:oe},{default:a(()=>[r(T,{type:"selection",width:"55",align:"center"}),(n(!0),S(E,null,j(Object.entries(e(w)),([t,o])=>(n(),d(T,{label:o.remark||t,align:"center",prop:t},null,8,["label","prop"]))),256)),r(T,{label:"操作",align:"center",width:"160","class-name":"small-padding fixed-width"},{default:a(t=>[h((n(),d(p,{link:"",type:"primary",icon:"Edit",onClick:o=>z(t.row)},{default:a(()=>[_(" 修改 ")]),_:2},1032,["onClick"])),[[V,["system:store:edit"]]]),h((n(),d(p,{link:"",type:"primary",icon:"Delete",onClick:o=>I(t.row)},{default:a(()=>[_("删除 ")]),_:2},1032,["onClick"])),[[V,["system:store:remove"]]])]),_:1})]),_:1},8,["data"])),[[pe,e(D)]]),h(r(ce,{total:e(N),page:e(s).pageNum,"onUpdate:page":i[1]||(i[1]=t=>e(s).pageNum=t),limit:e(s).pageSize,"onUpdate:limit":i[2]||(i[2]=t=>e(s).pageSize=t),onPagination:b},null,8,["total","page","limit"]),[[K,e(N)>0]]),r(me,{title:e(R),modelValue:e(v),"onUpdate:modelValue":i[3]||(i[3]=t=>W(v)?v.value=t:null),width:"500px","append-to-body":""},{footer:a(()=>[he("div",Se,[r(p,{type:"primary",onClick:re},{default:a(()=>[_("确 定")]),_:1}),r(p,{onClick:te},{default:a(()=>[_("取 消")]),_:1})])]),default:a(()=>[r(H,{ref:"dataRef",model:e(c),rules:e(Z),"label-width":"80px"},{default:a(()=>[(n(!0),S(E,null,j(Object.entries(e(w)),([t,o])=>(n(),d(P,{label:o.remark||t},{default:a(()=>[F(o.type)?(n(),d(Q,{key:0,modelValue:e(c)[t],"onUpdate:modelValue":f=>e(c)[t]=f,placeholder:o.remark},null,8,["modelValue","onUpdate:modelValue","placeholder"])):o.type==="string"?(n(),d(A,{key:1,modelValue:e(c)[t],"onUpdate:modelValue":f=>e(c)[t]=f,placeholder:o.remark},null,8,["modelValue","onUpdate:modelValue","placeholder"])):o.type==="time"?(n(),d(G,{key:2,modelValue:e(c)[t],"onUpdate:modelValue":f=>e(c)[t]=f,type:"datetime",placeholder:o.remark},null,8,["modelValue","onUpdate:modelValue","placeholder"])):M("",!0)]),_:2},1032,["label"]))),256))]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}});export{$e as default};
|
Binary file
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import{_ as ie,r as i,u as me,y as ce,C as pe,J as fe,d as p,G as L,o as y,c as ve,H as _,I as A,h as n,e as a,f as l,p as f,l as $,D as w,m as q,z as G,B as _e,v as ge}from"./index-BYiWbDzj.js";import{l as he,u as ye,a as be,d as ke}from"./pm2-BkmkkE2A.js";const $e={class:"app-container"},xe={class:"pre"},Ce={class:"dialog-footer"},Ve=_e({name:"ServiceData"}),we=Object.assign(Ve,{setup(Se){const{proxy:v}=ge(),B=i([]),g=i(!1),R=i(!0),S=i(!0),z=i([]),E=i(!0),F=i(!0),P=i(0),N=i(""),x=me(),D=x.params.name[0].toUpperCase()+x.params.name.substring(1),u=i(""),r=i(""),h=i(""),H=t=>{const e=t.indexOf("***"),m=t.indexOf("***",e+3);return t.substring(m+4)},J=ce(()=>{if(!s.value.method)return;let t="";const e=s.value.method[0].toUpperCase()+s.value.method.substring(1);return u.value&&u.value.includes(":")&&(t+=`
|
2
|
+
interface ${D}${e}Param {
|
3
|
+
${u.value.replace(/\n/g,`
|
4
|
+
`)}
|
5
|
+
}
|
6
|
+
`),r.value&&r.value.includes(":")&&(t+=`
|
7
|
+
interface ${D}${e}Return {
|
8
|
+
${r.value.replace(/\n/g,`
|
9
|
+
`)}
|
10
|
+
}
|
11
|
+
`),`
|
12
|
+
${t}
|
13
|
+
export interface Service {
|
14
|
+
...
|
15
|
+
${x.params.name}: {
|
16
|
+
...${h.value?`
|
17
|
+
/**
|
18
|
+
* ${h.value.replace(/\n/g,`
|
19
|
+
* `)}
|
20
|
+
*/`:""}
|
21
|
+
${s.value.method}(${u.value?u.value.includes(":")?`_: ${D}${e}Param`:`_: ${u.value}`:""}): Promise${r.value?r.value.includes(":")?`<${D}${e}Return>`:`<${r.value}>`:"<any>"}
|
22
|
+
...
|
23
|
+
}
|
24
|
+
...
|
25
|
+
}
|
26
|
+
`}),K=pe({form:{},queryParams:{pageNum:1,pageSize:10,method:void 0,remark:void 0},rules:{method:[{required:!0,message:"名称不能为空",trigger:"blur"}]}}),{queryParams:d,form:s,rules:M}=fe(K);function b(){R.value=!0,he({name:x.params.name,...d.value}).then(t=>{B.value=t.rows,P.value=t.total,R.value=!1})}function W(){g.value=!1,O()}function O(){s.value={method:void 0,remark:void 0},u.value="",r.value="",h.value="",v.resetForm("dataRef")}function I(){d.value.pageNum=1,b()}function X(){const t={path:"/tool/pm2"};v.$tab.closeOpenPage(t)}function Y(){v.resetForm("queryRef"),I()}function Z(){O(),g.value=!0,N.value="添加数据"}function ee(t){z.value=t.map(e=>e.id),E.value=t.length!=1,F.value=!t.length}function Q(t){O(),s.value=t,g.value=!0,N.value="修改数据";const e=t.remark.indexOf("***"),m=t.remark.indexOf("***",e+3);u.value=t.remark.substring(1,e-1).replace(/\n /g,`
|
27
|
+
`),r.value=t.remark.substring(e+5,m-1).replace(/\n /g,`
|
28
|
+
`),h.value=t.remark.substring(m+4)}function ae(){v.$refs.dataRef.validate(t=>{t&&(s.value.remark=` ${u.value.replace(/\n/g,`
|
29
|
+
`)}
|
30
|
+
***
|
31
|
+
${r.value.replace(/\n/g,`
|
32
|
+
`)}
|
33
|
+
***
|
34
|
+
${h.value}`,console.log(s.value.remark.length),s.value.id!=null?ye({name:x.params.name,...s.value}).then(e=>{v.$modal.msgSuccess("修改成功"),g.value=!1,b()}):be({name:x.params.name,...s.value}).then(e=>{v.$modal.msgSuccess("新增成功"),g.value=!1,b()}))})}function T(t){const e=t.id||z.value;v.$modal.confirm('是否确认删除编码为"'+e+'"的数据项?').then(function(){return ke(e)}).then(()=>{b(),v.$modal.msgSuccess("删除成功")}).catch(()=>{})}function le(){v.download("system/dict/data/export",{...d.value},`dict_data_${new Date().getTime()}.xlsx`)}return b(),(t,e)=>{const m=p("el-input"),k=p("el-form-item"),c=p("el-button"),j=p("el-form"),V=p("el-col"),te=p("right-toolbar"),ne=p("el-row"),U=p("el-table-column"),oe=p("el-table"),se=p("pagination"),ue=p("el-dialog"),C=L("hasPermi"),re=L("loading");return y(),ve("div",$e,[_(a(j,{model:n(d),ref:"queryRef",inline:!0},{default:l(()=>[a(k,{label:"方法",prop:"method"},{default:l(()=>[a(m,{modelValue:n(d).method,"onUpdate:modelValue":e[0]||(e[0]=o=>n(d).method=o)},null,8,["modelValue"])]),_:1}),a(k,{label:"备注",prop:"remark"},{default:l(()=>[a(m,{modelValue:n(d).remark,"onUpdate:modelValue":e[1]||(e[1]=o=>n(d).remark=o)},null,8,["modelValue"])]),_:1}),a(k,null,{default:l(()=>[a(c,{type:"primary",icon:"Search",onClick:I},{default:l(()=>[f("搜索")]),_:1}),a(c,{icon:"Refresh",onClick:Y},{default:l(()=>[f("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[A,n(S)]]),a(ne,{gutter:10,class:"mb8"},{default:l(()=>[a(V,{span:1.5},{default:l(()=>[_((y(),$(c,{type:"primary",plain:"",icon:"Plus",onClick:Z},{default:l(()=>[f("新增 ")]),_:1})),[[C,["system:service:add"]]])]),_:1}),a(V,{span:1.5},{default:l(()=>[_((y(),$(c,{type:"success",plain:"",icon:"Edit",disabled:n(E),onClick:Q},{default:l(()=>[f("修改 ")]),_:1},8,["disabled"])),[[C,["system:service:edit"]]])]),_:1}),a(V,{span:1.5},{default:l(()=>[_((y(),$(c,{type:"danger",plain:"",icon:"Delete",disabled:n(F),onClick:T},{default:l(()=>[f("删除 ")]),_:1},8,["disabled"])),[[C,["system:service:remove"]]])]),_:1}),a(V,{span:1.5},{default:l(()=>[_((y(),$(c,{type:"warning",plain:"",icon:"Download",onClick:le},{default:l(()=>[f("导出 ")]),_:1})),[[C,["system:service:export"]]])]),_:1}),a(V,{span:1.5},{default:l(()=>[a(c,{type:"warning",plain:"",icon:"Close",onClick:X},{default:l(()=>[f("关闭 ")]),_:1})]),_:1}),a(te,{showSearch:n(S),"onUpdate:showSearch":e[2]||(e[2]=o=>w(S)?S.value=o:null),onQueryTable:b},null,8,["showSearch"])]),_:1}),_((y(),$(oe,{data:n(B),onSelectionChange:ee},{default:l(()=>[a(U,{type:"selection",width:"55",align:"center"}),a(U,{label:"方法",align:"center",prop:"method"}),a(U,{label:"备注"},{default:l(o=>[q("pre",null,G(H(o.row.remark)),1)]),_:1}),a(U,{label:"操作",align:"center",width:"160","class-name":"small-padding fixed-width"},{default:l(o=>[_((y(),$(c,{link:"",type:"primary",icon:"Edit",onClick:de=>Q(o.row)},{default:l(()=>[f(" 修改 ")]),_:2},1032,["onClick"])),[[C,["system:service:edit"]]]),_((y(),$(c,{link:"",type:"primary",icon:"Delete",onClick:de=>T(o.row)},{default:l(()=>[f("删除 ")]),_:2},1032,["onClick"])),[[C,["system:service:remove"]]])]),_:1})]),_:1},8,["data"])),[[re,n(R)]]),_(a(se,{total:n(P),page:n(d).pageNum,"onUpdate:page":e[3]||(e[3]=o=>n(d).pageNum=o),limit:n(d).pageSize,"onUpdate:limit":e[4]||(e[4]=o=>n(d).pageSize=o),onPagination:b},null,8,["total","page","limit"]),[[A,n(P)>0]]),a(ue,{title:n(N),modelValue:n(g),"onUpdate:modelValue":e[9]||(e[9]=o=>w(g)?g.value=o:null),width:"666px","append-to-body":""},{footer:l(()=>[q("div",Ce,[a(c,{type:"primary",onClick:ae},{default:l(()=>[f("确 定")]),_:1}),a(c,{onClick:W},{default:l(()=>[f("取 消")]),_:1})])]),default:l(()=>[a(j,{ref:"dataRef",model:n(s),rules:n(M),"label-width":"120px"},{default:l(()=>[a(k,{label:"方法",prop:"method"},{default:l(()=>[a(m,{modelValue:n(s).method,"onUpdate:modelValue":e[5]||(e[5]=o=>n(s).method=o)},null,8,["modelValue"])]),_:1}),a(k,{label:"参数类型"},{default:l(()=>[a(m,{modelValue:n(u),"onUpdate:modelValue":e[6]||(e[6]=o=>w(u)?u.value=o:null),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),a(k,{label:"返回值类型"},{default:l(()=>[a(m,{modelValue:n(r),"onUpdate:modelValue":e[7]||(e[7]=o=>w(r)?r.value=o:null),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1}),a(k,{label:"备注"},{default:l(()=>[a(m,{modelValue:n(h),"onUpdate:modelValue":e[8]||(e[8]=o=>w(h)?h.value=o:null),rows:4,type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"]),q("div",xe,G(n(J)),1)]),_:1},8,["title","modelValue"])])}}}),Re=ie(we,[["__scopeId","data-v-f8205591"]]);export{Re as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
.pre[data-v-f8205591]{background:#696969;border-radius:6px;padding:0 12px;color:#fff;font-family:Courier New,cursive;white-space:pre-wrap;font-size:1.2em}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as c,u as Ve,C as we,J as he,d as u,G as H,o as i,c as w,H as v,I as J,h as t,e as l,f as a,K as S,L as D,l as m,k as ke,p as r,D as M,z as L,M as Te,m as W,B as Se,v as De,N as Le,O as xe,P as Ue,Q as B,R as Re,S as Ne}from"./index-BYiWbDzj.js";import{g as $e,o as Pe}from"./type-BU7MsCG8.js";const qe={class:"app-container"},ze={key:0},Be={class:"dialog-footer"},Oe=Se({name:"Data"}),Qe=Object.assign(Oe,{setup(Ee){const{proxy:_}=De(),{sys_normal_disable:x}=_.useDict("sys_normal_disable"),O=c([]),g=c(!1),U=c(!0),T=c(!0),R=c([]),E=c(!0),F=c(!0),N=c(0),$=c(""),I=c(""),Q=c([]),K=Ve(),X=c([{value:"default",label:"默认"},{value:"primary",label:"主要"},{value:"success",label:"成功"},{value:"info",label:"信息"},{value:"warning",label:"警告"},{value:"danger",label:"危险"}]),Y=we({form:{},queryParams:{pageNum:1,pageSize:10,dictType:void 0,dictLabel:void 0,status:void 0},rules:{dictLabel:[{required:!0,message:"数据标签不能为空",trigger:"blur"}],dictValue:[{required:!0,message:"数据键值不能为空",trigger:"blur"}],dictSort:[{required:!0,message:"数据顺序不能为空",trigger:"blur"}]}}),{queryParams:d,form:n,rules:Z}=he(Y);function ee(s){$e(s).then(o=>{d.value.dictType=o.data.dictType,I.value=o.data.dictType,y()})}function le(){Pe().then(s=>{Q.value=s.data})}function y(){U.value=!0,Le(d.value).then(s=>{O.value=s.rows,N.value=s.total,U.value=!1})}function te(){g.value=!1,P()}function P(){n.value={dictCode:void 0,dictLabel:void 0,dictValue:void 0,cssClass:void 0,listClass:"default",dictSort:0,status:"0",remark:void 0},_.resetForm("dataRef")}function q(){d.value.pageNum=1,y()}function ae(){const s={path:"/system/dict"};_.$tab.closeOpenPage(s)}function oe(){_.resetForm("queryRef"),d.value.dictType=I.value,q()}function ne(){P(),g.value=!0,$.value="添加字典数据",n.value.dictType=d.value.dictType}function de(s){R.value=s.map(o=>o.dictCode),E.value=s.length!=1,F.value=!s.length}function j(s){P();const o=s.dictCode||R.value;xe(o).then(h=>{n.value=h.data,g.value=!0,$.value="修改字典数据"})}function se(){_.$refs.dataRef.validate(s=>{s&&(n.value.dictCode!=null?Ue(n.value).then(o=>{B().removeDict(d.value.dictType),_.$modal.msgSuccess("修改成功"),g.value=!1,y()}):Re(n.value).then(o=>{B().removeDict(d.value.dictType),_.$modal.msgSuccess("新增成功"),g.value=!1,y()}))})}function A(s){const o=s.dictCode||R.value;_.$modal.confirm('是否确认删除字典编码为"'+o+'"的数据项?').then(function(){return Ne(o)}).then(()=>{y(),_.$modal.msgSuccess("删除成功"),B().removeDict(d.value.dictType)}).catch(()=>{})}function ue(){_.download("system/dict/data/export",{...d.value},`dict_data_${new Date().getTime()}.xlsx`)}return ee(K.params&&K.params.dictId),le(),(s,o)=>{const h=u("el-option"),z=u("el-select"),p=u("el-form-item"),C=u("el-input"),f=u("el-button"),G=u("el-form"),k=u("el-col"),ie=u("right-toolbar"),re=u("el-row"),b=u("el-table-column"),pe=u("el-tag"),ce=u("dict-tag"),me=u("el-table"),fe=u("pagination"),_e=u("el-input-number"),be=u("el-radio"),ve=u("el-radio-group"),ge=u("el-dialog"),V=H("hasPermi"),ye=H("loading");return i(),w("div",qe,[v(l(G,{model:t(d),ref:"queryRef",inline:!0},{default:a(()=>[l(p,{label:"字典名称",prop:"dictType"},{default:a(()=>[l(z,{modelValue:t(d).dictType,"onUpdate:modelValue":o[0]||(o[0]=e=>t(d).dictType=e),style:{width:"200px"}},{default:a(()=>[(i(!0),w(S,null,D(t(Q),e=>(i(),m(h,{key:e.dictId,label:e.dictName,value:e.dictType},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"字典标签",prop:"dictLabel"},{default:a(()=>[l(C,{modelValue:t(d).dictLabel,"onUpdate:modelValue":o[1]||(o[1]=e=>t(d).dictLabel=e),placeholder:"请输入字典标签",clearable:"",style:{width:"200px"},onKeyup:ke(q,["enter"])},null,8,["modelValue"])]),_:1}),l(p,{label:"状态",prop:"status"},{default:a(()=>[l(z,{modelValue:t(d).status,"onUpdate:modelValue":o[2]||(o[2]=e=>t(d).status=e),placeholder:"数据状态",clearable:"",style:{width:"200px"}},{default:a(()=>[(i(!0),w(S,null,D(t(x),e=>(i(),m(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,null,{default:a(()=>[l(f,{type:"primary",icon:"Search",onClick:q},{default:a(()=>[r("搜索")]),_:1}),l(f,{icon:"Refresh",onClick:oe},{default:a(()=>[r("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[J,t(T)]]),l(re,{gutter:10,class:"mb8"},{default:a(()=>[l(k,{span:1.5},{default:a(()=>[v((i(),m(f,{type:"primary",plain:"",icon:"Plus",onClick:ne},{default:a(()=>[r("新增")]),_:1})),[[V,["system:dict:add"]]])]),_:1}),l(k,{span:1.5},{default:a(()=>[v((i(),m(f,{type:"success",plain:"",icon:"Edit",disabled:t(E),onClick:j},{default:a(()=>[r("修改")]),_:1},8,["disabled"])),[[V,["system:dict:edit"]]])]),_:1}),l(k,{span:1.5},{default:a(()=>[v((i(),m(f,{type:"danger",plain:"",icon:"Delete",disabled:t(F),onClick:A},{default:a(()=>[r("删除")]),_:1},8,["disabled"])),[[V,["system:dict:remove"]]])]),_:1}),l(k,{span:1.5},{default:a(()=>[v((i(),m(f,{type:"warning",plain:"",icon:"Download",onClick:ue},{default:a(()=>[r("导出")]),_:1})),[[V,["system:dict:export"]]])]),_:1}),l(k,{span:1.5},{default:a(()=>[l(f,{type:"warning",plain:"",icon:"Close",onClick:ae},{default:a(()=>[r("关闭")]),_:1})]),_:1}),l(ie,{showSearch:t(T),"onUpdate:showSearch":o[3]||(o[3]=e=>M(T)?T.value=e:null),onQueryTable:y},null,8,["showSearch"])]),_:1}),v((i(),m(me,{data:t(O),onSelectionChange:de},{default:a(()=>[l(b,{type:"selection",width:"55",align:"center"}),l(b,{label:"字典编码",align:"center",prop:"dictCode"}),l(b,{label:"字典标签",align:"center",prop:"dictLabel"},{default:a(e=>[(e.row.listClass==""||e.row.listClass=="default")&&(e.row.cssClass==""||e.row.cssClass==null)?(i(),w("span",ze,L(e.row.dictLabel),1)):(i(),m(pe,{key:1,type:e.row.listClass=="primary"?"":e.row.listClass,class:Te(e.row.cssClass)},{default:a(()=>[r(L(e.row.dictLabel),1)]),_:2},1032,["type","class"]))]),_:1}),l(b,{label:"字典键值",align:"center",prop:"dictValue"}),l(b,{label:"字典排序",align:"center",prop:"dictSort"}),l(b,{label:"状态",align:"center",prop:"status"},{default:a(e=>[l(ce,{options:t(x),value:e.row.status},null,8,["options","value"])]),_:1}),l(b,{label:"备注",align:"center",prop:"remark","show-overflow-tooltip":!0}),l(b,{label:"创建时间",align:"center",prop:"createTime",width:"180"},{default:a(e=>[W("span",null,L(s.parseTime(e.row.createTime)),1)]),_:1}),l(b,{label:"操作",align:"center",width:"160","class-name":"small-padding fixed-width"},{default:a(e=>[v((i(),m(f,{link:"",type:"primary",icon:"Edit",onClick:Ce=>j(e.row)},{default:a(()=>[r("修改")]),_:2},1032,["onClick"])),[[V,["system:dict:edit"]]]),v((i(),m(f,{link:"",type:"primary",icon:"Delete",onClick:Ce=>A(e.row)},{default:a(()=>[r("删除")]),_:2},1032,["onClick"])),[[V,["system:dict:remove"]]])]),_:1})]),_:1},8,["data"])),[[ye,t(U)]]),v(l(fe,{total:t(N),page:t(d).pageNum,"onUpdate:page":o[4]||(o[4]=e=>t(d).pageNum=e),limit:t(d).pageSize,"onUpdate:limit":o[5]||(o[5]=e=>t(d).pageSize=e),onPagination:y},null,8,["total","page","limit"]),[[J,t(N)>0]]),l(ge,{title:t($),modelValue:t(g),"onUpdate:modelValue":o[14]||(o[14]=e=>M(g)?g.value=e:null),width:"500px","append-to-body":""},{footer:a(()=>[W("div",Be,[l(f,{type:"primary",onClick:se},{default:a(()=>[r("确 定")]),_:1}),l(f,{onClick:te},{default:a(()=>[r("取 消")]),_:1})])]),default:a(()=>[l(G,{ref:"dataRef",model:t(n),rules:t(Z),"label-width":"80px"},{default:a(()=>[l(p,{label:"字典类型"},{default:a(()=>[l(C,{modelValue:t(n).dictType,"onUpdate:modelValue":o[6]||(o[6]=e=>t(n).dictType=e),disabled:!0},null,8,["modelValue"])]),_:1}),l(p,{label:"数据标签",prop:"dictLabel"},{default:a(()=>[l(C,{modelValue:t(n).dictLabel,"onUpdate:modelValue":o[7]||(o[7]=e=>t(n).dictLabel=e),placeholder:"请输入数据标签"},null,8,["modelValue"])]),_:1}),l(p,{label:"数据键值",prop:"dictValue"},{default:a(()=>[l(C,{modelValue:t(n).dictValue,"onUpdate:modelValue":o[8]||(o[8]=e=>t(n).dictValue=e),placeholder:"请输入数据键值"},null,8,["modelValue"])]),_:1}),l(p,{label:"样式属性",prop:"cssClass"},{default:a(()=>[l(C,{modelValue:t(n).cssClass,"onUpdate:modelValue":o[9]||(o[9]=e=>t(n).cssClass=e),placeholder:"请输入样式属性"},null,8,["modelValue"])]),_:1}),l(p,{label:"显示排序",prop:"dictSort"},{default:a(()=>[l(_e,{modelValue:t(n).dictSort,"onUpdate:modelValue":o[10]||(o[10]=e=>t(n).dictSort=e),"controls-position":"right",min:0},null,8,["modelValue"])]),_:1}),l(p,{label:"回显样式",prop:"listClass"},{default:a(()=>[l(z,{modelValue:t(n).listClass,"onUpdate:modelValue":o[11]||(o[11]=e=>t(n).listClass=e)},{default:a(()=>[(i(!0),w(S,null,D(t(X),e=>(i(),m(h,{key:e.value,label:e.label+"("+e.value+")",value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"状态",prop:"status"},{default:a(()=>[l(ve,{modelValue:t(n).status,"onUpdate:modelValue":o[12]||(o[12]=e=>t(n).status=e)},{default:a(()=>[(i(!0),w(S,null,D(t(x),e=>(i(),m(be,{key:e.value,label:e.value},{default:a(()=>[r(L(e.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"备注",prop:"remark"},{default:a(()=>[l(C,{modelValue:t(n).remark,"onUpdate:modelValue":o[13]||(o[13]=e=>t(n).remark=e),type:"textarea",placeholder:"请输入内容"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue"])])}}});export{Qe as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1577186573535'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1068'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='81'%20height='81'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M479.85714249%20608.42857168h64.28571502c19.28571417%200%2032.14285751-12.85714249%2032.14285664-32.14285751s-12.85714249-32.14285751-32.14285664-32.14285664h-64.28571504c-19.28571417%200-32.14285751%2012.85714249-32.14285664%2032.14285662s12.85714249%2032.14285751%2032.14285664%2032.14285753z%20m-2e-8%20122.14285665h64.28571504c19.28571417%200%2032.14285751-12.85714249%2032.14285664-32.14285665s-12.85714249-32.14285751-32.14285664-32.14285751h-64.28571504c-19.28571417%200-32.14285751%2012.85714249-32.14285664%2032.14285751s12.85714249%2032.14285751%2032.14285664%2032.14285664z%20m353.57142921-559.28571416h-128.57142921v-32.14285664c0-19.28571417-12.85714249-32.14285751-32.14285664-32.14285753s-32.14285751%2012.85714249-32.14285751%2032.14285753v32.14285664h-257.14285665v-32.14285664c0-19.28571417-12.85714249-32.14285751-32.14285752-32.14285753s-32.14285751%2012.85714249-32.14285664%2032.14285753v32.14285664h-128.57142919c-70.71428585%200-128.57142832%2057.85714249-128.57142832%20122.14285751v501.42857081c0%2070.71428585%2057.85714249%20128.57142832%20128.57142832%20122.14285751h642.85714335c70.71428585%200%20128.57142832-57.85714249%20128.57142833-122.14285751v-501.42857081c0-70.71428585-57.85714249-122.14285753-128.57142833-122.14285751z%20m64.28571415%20623.57142832c0%2032.14285751-32.14285751%2064.28571415-64.28571416%2064.28571504h-642.85714335c-32.14285751%200-64.28571415-25.71428583-64.28571417-64.28571504v-372.85714249h771.42857168v372.85714249z%20m0-437.14285664h-771.42857168v-64.28571417c0-32.14285751%2032.14285751-64.28571415%2064.28571417-64.28571415h128.57142919v32.14285664c0%2019.28571417%2012.85714249%2032.14285751%2032.14285664%2032.14285751s32.14285751-12.85714249%2032.14285753-32.14285751v-32.14285664h257.14285665v32.14285664c0%2019.28571417%2012.85714249%2032.14285751%2032.1428575%2032.14285751s32.14285751-12.85714249%2032.14285664-32.14285751v-32.14285664h128.57142921c32.14285751%200%2064.28571415%2025.71428583%2064.28571415%2064.28571415v64.28571417z%20m-610.71428583%20372.85714247h64.28571415c19.28571417%200%2032.14285751-12.85714249%2032.14285753-32.14285664s-12.85714249-32.14285751-32.14285753-32.14285751h-64.28571415c-19.28571417%200-32.14285751%2012.85714249-32.14285751%2032.14285751s12.85714249%2032.14285751%2032.14285751%2032.14285665z%20m385.71428583-122.14285664h64.28571417c19.28571417%200%2032.14285751-12.85714249%2032.14285751-32.14285751s-12.85714249-32.14285751-32.14285751-32.14285664h-64.28571415c-19.28571417%200-32.14285751%2012.85714249-32.14285753%2032.14285664s12.85714249%2032.14285751%2032.14285753%2032.14285751z%20m-385.71428583%200h64.28571415c19.28571417%200%2032.14285751-12.85714249%2032.14285753-32.14285751s-12.85714249-32.14285751-32.14285753-32.14285664h-64.28571415c-19.28571417%200-32.14285751%2012.85714249-32.14285751%2032.14285664s12.85714249%2032.14285751%2032.14285751%2032.14285751z%20m385.71428583%20122.14285665h64.28571417c19.28571417%200%2032.14285751-12.85714249%2032.14285751-32.14285665s-12.85714249-32.14285751-32.14285751-32.14285751h-64.28571415c-19.28571417%200-32.14285751%2012.85714249-32.14285753%2032.14285751s12.85714249%2032.14285751%2032.14285753%2032.14285665z'%20p-id='1069'%3e%3c/path%3e%3c/svg%3e";export{c as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1579774833889'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1376'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M887.466667%20192.853333h-100.693334V119.466667c0-10.24-6.826667-17.066667-17.066666-17.066667s-17.066667%206.826667-17.066667%2017.066667v73.386666H303.786667V119.466667c0-10.24-6.826667-17.066667-17.066667-17.066667s-17.066667%206.826667-17.066667%2017.066667v73.386666H168.96c-46.08%200-85.333333%2037.546667-85.333333%2085.333334V836.266667c0%2046.08%2037.546667%2085.333333%2085.333333%2085.333333H887.466667c46.08%200%2085.333333-37.546667%2085.333333-85.333333V278.186667c0-47.786667-37.546667-85.333333-85.333333-85.333334z%20m-718.506667%2034.133334h100.693333v66.56c0%2010.24%206.826667%2017.066667%2017.066667%2017.066666s17.066667-6.826667%2017.066667-17.066666v-66.56h450.56v66.56c0%2010.24%206.826667%2017.066667%2017.066666%2017.066666s17.066667-6.826667%2017.066667-17.066666v-66.56H887.466667c27.306667%200%2051.2%2022.186667%2051.2%2051.2v88.746666H117.76v-88.746666c0-29.013333%2022.186667-51.2%2051.2-51.2zM887.466667%20887.466667H168.96c-27.306667%200-51.2-22.186667-51.2-51.2V401.066667H938.666667V836.266667c0%2027.306667-22.186667%2051.2-51.2%2051.2z'%20p-id='1377'%3e%3c/path%3e%3cpath%20d='M858.453333%20493.226667H327.68c-10.24%200-17.066667%206.826667-17.066667%2017.066666v114.346667h-116.053333c-10.24%200-17.066667%206.826667-17.066667%2017.066667v133.12c0%2010.24%206.826667%2017.066667%2017.066667%2017.066666H460.8c10.24%200%2017.066667-6.826667%2017.066667-17.066666v-114.346667h380.586666c10.24%200%2017.066667-6.826667%2017.066667-17.066667v-133.12c0-10.24-6.826667-17.066667-17.066667-17.066666z%20m-413.013333%2034.133333v97.28h-98.986667v-97.28h98.986667z%20m-230.4%20131.413333h98.986667v98.986667h-98.986667v-98.986667z%20m131.413333%2097.28v-97.28h98.986667v97.28h-98.986667z%20m133.12-228.693333h97.28v98.986667h-97.28v-98.986667z%20m131.413334%200h98.986666v98.986667h-98.986666v-98.986667z%20m230.4%2097.28h-98.986667v-98.986667h98.986667v98.986667z'%20p-id='1378'%3e%3c/path%3e%3c/svg%3e";export{c as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1566035680909'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3601'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M1002.0848%20744.672l-33.568%2010.368c0.96%207.264%202.144%2014.304%202.144%2021.76%200%207.328-1.184%2014.432-2.368%2021.568l33.792%2010.56c7.936%202.24%2014.496%207.616%2018.336%2014.752%203.84%207.328%204.672%2015.808%201.952%2023.552-5.376%2016-23.168%2024.672-39.936%2019.68l-34.176-10.624c-7.136%2012.8-15.776%2024.672-26.208%2035.2l20.8%2027.488a28.96%2028.96%200%200%201%205.824%2022.816%2029.696%2029.696%200%200%201-12.704%2019.616%2032.544%2032.544%200%200%201-44.416-6.752l-20.8-27.552c-13.696%206.56-28.192%2011.2-43.008%2013.888v33.632c0%2016.736-14.112%2030.432-31.648%2030.432-17.6%200-31.872-13.696-31.872-30.432v-33.632a167.616%20167.616%200%200%201-42.88-13.888l-20.928%2027.552c-10.72%2013.76-30.08%2016.64-44.288%206.752a29.632%2029.632%200%200%201-12.704-19.616%2029.28%2029.28%200%200%201%205.696-22.816l20.896-27.808a166.72%20166.72%200%200%201-27.008-34.688l-33.376%2010.432c-16.8%205.184-34.56-3.552-39.936-19.616a29.824%2029.824%200%200%201%2020.224-38.24l33.472-10.432c-0.8-7.264-2.016-14.304-2.016-21.824%200-7.36%201.184-14.496%202.304-21.632l-33.792-10.368c-16.672-5.376-25.632-22.496-20.224-38.432%205.376-16%2023.136-24.672%2039.936-19.68l34.016%2010.752c7.328-12.672%2015.84-24.8%2026.336-35.328l-20.8-27.552a29.44%2029.44%200%200%201%206.944-42.432%2032.704%2032.704%200%200%201%2044.384%206.752l20.832%2027.616c13.696-6.432%2028.224-11.2%2043.104-13.952v-33.568c0-16.736%2014.048-30.432%2031.648-30.432%2017.536%200%2031.808%2013.568%2031.808%2030.432v33.504c15.072%202.688%2029.344%207.808%2042.848%2014.016l20.992-27.616a32.48%2032.48%200%200%201%2044.224-6.752%2029.568%2029.568%200%200%201%207.136%2042.432l-21.024%2027.808c10.432%2010.432%2019.872%2021.888%2027.04%2034.752l33.376-10.432c16.768-5.12%2034.56%203.68%2039.936%2019.68%205.536%2015.936-3.712%2033.056-20.32%2038.304z%20m-206.016-74.432c-61.344%200-111.136%2047.808-111.136%20106.56%200%2058.88%2049.792%20106.496%20111.136%20106.496%2061.312%200%20111.104-47.616%20111.104-106.496%200-58.752-49.792-106.56-111.104-106.56z'%20p-id='3602'%3e%3c/path%3e%3cpath%20d='M802.7888%2057.152h-76.448c0-22.08-21.024-38.24-42.848-38.24H39.3968a39.68%2039.68%200%200%200-39.36%2040.032v795.616s41.888%20120.192%20110.752%20120.192H673.2848a227.488%20227.488%200%200%201-107.04-97.44H117.6368s-40.608-13.696-40.608-41.248l470.304-0.256%201.664%203.36a227.68%20227.68%200%200%201-12.64-73.632c0-60.576%2024-118.624%2066.88-161.44a228.352%20228.352%200%200%201%20123.552-63.392l-3.2%200.288%202.144-424.672h38.208l0.576%20421.024c27.04%200%2052.672%204.8%2076.64%2013.344V101.536c0.032%200-6.304-44.384-38.368-44.384zM149.7648%20514.336H72.3888v-77.408H149.7648v77.408z%20m0-144.32H72.3888v-77.44H149.7648v77.44z%20m0-137.248H72.3888v-77.44H149.7648v77.44z%20m501.856%20281.568H206.0848v-77.408h445.536v77.408z%20m0-144.32H206.0848v-77.44h445.536v77.44z%20m0-137.248H206.0848v-77.44h445.536v77.44z'%20p-id='3603'%3e%3c/path%3e%3c/svg%3e";export{c as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const t="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M71.984%2044.815H115.9L71.984%209.642v35.173zM16.094.05h63.875l47.906%2038.37v76.74c0%203.392-1.682%206.645-4.677%209.044-2.995%202.399-7.056%203.746-11.292%203.746H16.094c-4.236%200-8.297-1.347-11.292-3.746-2.995-2.399-4.677-5.652-4.677-9.044V12.84C.125%205.742%207.23.05%2016.094.05zm71.86%20102.32V89.58h-71.86v12.79h71.86zm23.952-25.58V64H16.094v12.79h95.812z'/%3e%3c/svg%3e";export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const e="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1569915748289'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3062'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M768.35456%20416a256%20256%200%201%200-512%200%20192%20192%200%201%200%200%20384v64a256%20256%200%200%201-58.88-505.216%20320.128%20320.128%200%200%201%20629.76%200A256.128%20256.128%200%200%201%20768.35456%20864v-64a192%20192%200%200%200%200-384z%20m-512%20384h64v64H256.35456v-64z%20m448%200h64v64h-64v-64z'%20fill='%23333333'%20p-id='3063'%3e%3c/path%3e%3cpath%20d='M539.04256%20845.248V512.192a32.448%2032.448%200%200%200-32-32.192c-17.664%200-32%2014.912-32%2032.192v333.056l-36.096-36.096a32.192%2032.192%200%200%200-45.056%200.192%2031.616%2031.616%200%200%200-0.192%2045.056l90.88%2090.944a31.36%2031.36%200%200%200%2022.528%209.088%2030.08%2030.08%200%200%200%2022.4-9.088l90.88-90.88a32.192%2032.192%200%200%200-0.192-45.12%2031.616%2031.616%200%200%200-45.056-0.192l-36.096%2036.096z'%20fill='%23333333'%20p-id='3064'%3e%3c/path%3e%3c/svg%3e";export{e as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const h="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M73.137%2029.08h-9.209%2029.7L63.886.093%2034.373%2029.08h20.49v27.035H27.238v17.948h27.625v27.133h18.274V74.063h27.41V56.115h-27.41V29.08zm-9.245%2098.827l27.518-26.711H36.59l27.302%2026.71zM.042%2064.982l27.196%2027.029V38.167L.042%2064.982zm100.505-26.815V92.01l27.41-27.029-27.41-26.815z'/%3e%3c/svg%3e";export{h as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const e="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1566036347051'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5853'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M832%20128H192a64.19%2064.19%200%200%200-64%2064v640a64.19%2064.19%200%200%200%2064%2064h640a64.19%2064.19%200%200%200%2064-64V192a64.19%2064.19%200%200%200-64-64z%20m0%20703.89l-0.11%200.11H192.11l-0.11-0.11V768h640zM832%20544H720L605.6%20696.54%20442.18%20435.07%20333.25%20544H192v-64h114.75l147.07-147.07L610.4%20583.46%20688%20480h144z%20m0-288H192v-63.89l0.11-0.11h639.78l0.11%200.11z'%20p-id='5854'%3e%3c/path%3e%3c/svg%3e";export{e as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M106.133%2067.2a4.797%204.797%200%200%200-4.8%204.8c0%20.187.014.36.027.533h-.027V118.4H9.6V26.667h50.133c2.654%200%204.8-2.147%204.8-4.8%200-2.654-2.146-4.8-4.8-4.8H9.6a9.594%209.594%200%200%200-9.6%209.6V118.4c0%205.307%204.293%209.6%209.6%209.6h91.733c5.307%200%209.6-4.293%209.6-9.6V72.533h-.026c.013-.173.026-.346.026-.533%200-2.653-2.146-4.8-4.8-4.8z'/%3e%3cpath%20d='M125.16%2013.373L114.587%202.8c-3.747-3.747-9.854-3.72-13.6.027l-52.96%2052.96a4.264%204.264%200%200%200-.907%201.36L33.813%2088.533c-.746%201.76-.226%203.534.907%204.68%201.133%201.147%202.92%201.667%204.693.92l31.4-13.293c.507-.213.96-.52%201.36-.907l52.96-52.96c3.747-3.746%203.774-9.853.027-13.6zM66.107%2072.4l-18.32%207.76%207.76-18.32L92.72%2024.667l10.56%2010.56L66.107%2072.4zm52.226-52.227l-8.266%208.267-10.56-10.56%208.266-8.267.027-.026%2010.56%2010.56-.027.026z'/%3e%3c/svg%3e";export{c as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{g as j,u as q}from"./gen-DLNrNhtb.js";import{o as P}from"./type-BU7MsCG8.js";import R from"./basicInfoForm-Cqv-g0Vq.js";import G from"./genInfoForm-CMDsV5QX.js";import{u as O,r as p,d,o as g,l as x,f as o,e,h as r,D as S,c as K,K as Q,L as z,m as h,z as E,p as N,B as H,v as M}from"./index-BYiWbDzj.js";import"./menu-BIu3IsSF.js";const W={style:{float:"left"}},J={style:{float:"right",color:"#8492a6","font-size":"13px"}},A={style:{"text-align":"center","margin-left":"-100px","margin-top":"10px"}},X=H({name:"GenEdit"}),ne=Object.assign(X,{setup(Y){const v=O(),{proxy:c}=M(),V=p("columnInfo"),C=p(document.documentElement.scrollHeight-245+"px"),y=p([]),w=p([]),U=p([]),i=p({});function B(){const m=c.$refs.basicInfo.$refs.basicInfoForm,n=c.$refs.genInfo.$refs.genInfoForm;Promise.all([m,n].map($)).then(b=>{if(b.every(s=>!!s)){const s=Object.assign({},i.value);s.columns=w.value,s.params={treeCode:i.value.treeCode,treeName:i.value.treeName,treeParentCode:i.value.treeParentCode,parentMenuId:i.value.parentMenuId},q(s).then(a=>{c.$modal.msgSuccess(a.msg),a.code===200&&T()})}else c.$modal.msgError("表单校验未通过,请重新检查提交内容")})}function $(m){return new Promise(n=>{m.validate(b=>{n(b)})})}function T(){const m={path:"/tool/gen",query:{t:Date.now(),pageNum:v.query.pageNum}};c.$tab.closeOpenPage(m)}return(()=>{const m=v.params&&v.params.tableId;m&&(j(m).then(n=>{w.value=n.data.rows,i.value=n.data.info,y.value=n.data.tables}),P().then(n=>{U.value=n.data}))})(),(m,n)=>{const b=d("el-tab-pane"),u=d("el-table-column"),s=d("el-input"),a=d("el-option"),_=d("el-select"),f=d("el-checkbox"),k=d("el-table"),L=d("el-tabs"),I=d("el-button"),D=d("el-form"),F=d("el-card");return g(),x(F,null,{default:o(()=>[e(L,{modelValue:r(V),"onUpdate:modelValue":n[0]||(n[0]=l=>S(V)?V.value=l:null)},{default:o(()=>[e(b,{label:"基本信息",name:"basic"},{default:o(()=>[e(r(R),{ref:"basicInfo",info:r(i)},null,8,["info"])]),_:1}),e(b,{label:"字段信息",name:"columnInfo"},{default:o(()=>[e(k,{ref:"dragTable",data:r(w),"row-key":"columnId","max-height":r(C)},{default:o(()=>[e(u,{label:"序号",type:"index","min-width":"5%"}),e(u,{label:"字段列名",prop:"columnName","min-width":"10%","show-overflow-tooltip":!0}),e(u,{label:"字段描述","min-width":"10%"},{default:o(l=>[e(s,{modelValue:l.row.columnComment,"onUpdate:modelValue":t=>l.row.columnComment=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"物理类型",prop:"columnType","min-width":"10%","show-overflow-tooltip":!0}),e(u,{label:"Java类型","min-width":"11%"},{default:o(l=>[e(_,{modelValue:l.row.javaType,"onUpdate:modelValue":t=>l.row.javaType=t},{default:o(()=>[e(a,{label:"Long",value:"Long"}),e(a,{label:"String",value:"String"}),e(a,{label:"Integer",value:"Integer"}),e(a,{label:"Double",value:"Double"}),e(a,{label:"BigDecimal",value:"BigDecimal"}),e(a,{label:"Date",value:"Date"}),e(a,{label:"Boolean",value:"Boolean"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"java属性","min-width":"10%"},{default:o(l=>[e(s,{modelValue:l.row.javaField,"onUpdate:modelValue":t=>l.row.javaField=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"插入","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isInsert,"onUpdate:modelValue":t=>l.row.isInsert=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"编辑","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isEdit,"onUpdate:modelValue":t=>l.row.isEdit=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"列表","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isList,"onUpdate:modelValue":t=>l.row.isList=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"查询","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isQuery,"onUpdate:modelValue":t=>l.row.isQuery=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"查询方式","min-width":"10%"},{default:o(l=>[e(_,{modelValue:l.row.queryType,"onUpdate:modelValue":t=>l.row.queryType=t},{default:o(()=>[e(a,{label:"=",value:"EQ"}),e(a,{label:"!=",value:"NE"}),e(a,{label:">",value:"GT"}),e(a,{label:">=",value:"GTE"}),e(a,{label:"<",value:"LT"}),e(a,{label:"<=",value:"LTE"}),e(a,{label:"LIKE",value:"LIKE"}),e(a,{label:"BETWEEN",value:"BETWEEN"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"必填","min-width":"5%"},{default:o(l=>[e(f,{"true-label":"1","false-label":"0",modelValue:l.row.isRequired,"onUpdate:modelValue":t=>l.row.isRequired=t},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"显示类型","min-width":"12%"},{default:o(l=>[e(_,{modelValue:l.row.htmlType,"onUpdate:modelValue":t=>l.row.htmlType=t},{default:o(()=>[e(a,{label:"文本框",value:"input"}),e(a,{label:"文本域",value:"textarea"}),e(a,{label:"下拉框",value:"select"}),e(a,{label:"单选框",value:"radio"}),e(a,{label:"复选框",value:"checkbox"}),e(a,{label:"日期控件",value:"datetime"}),e(a,{label:"图片上传",value:"imageUpload"}),e(a,{label:"文件上传",value:"fileUpload"}),e(a,{label:"富文本控件",value:"editor"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),e(u,{label:"字典类型","min-width":"12%"},{default:o(l=>[e(_,{modelValue:l.row.dictType,"onUpdate:modelValue":t=>l.row.dictType=t,clearable:"",filterable:"",placeholder:"请选择"},{default:o(()=>[(g(!0),K(Q,null,z(r(U),t=>(g(),x(a,{key:t.dictType,label:t.dictName,value:t.dictType},{default:o(()=>[h("span",W,E(t.dictName),1),h("span",J,E(t.dictType),1)]),_:2},1032,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1})]),_:1},8,["data","max-height"])]),_:1}),e(b,{label:"生成信息",name:"genInfo"},{default:o(()=>[e(r(G),{ref:"genInfo",info:r(i),tables:r(y)},null,8,["info","tables"])]),_:1})]),_:1},8,["modelValue"]),e(D,{"label-width":"100px"},{default:o(()=>[h("div",A,[e(I,{type:"primary",onClick:n[1]||(n[1]=l=>B())},{default:o(()=>[N("提交")]),_:1}),e(I,{onClick:n[2]||(n[2]=l=>T())},{default:o(()=>[N("返回")]),_:1})])]),_:1})]),_:1})}}});export{ne as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M88.883%20119.565c-7.284%200-19.434%202.495-21.333%208.25v.127c-4.232.13-5.222%200-7.108%200-1.895-5.76-14.045-8.256-21.333-8.256H0V0h42.523c9.179%200%2017.109%205.47%2021.47%2013.551C68.352%205.475%2076.295%200%2085.478%200H128v119.57l-39.113-.005h-.004zM60.442%2024.763c0-9.651-8.978-16.507-17.777-16.507H7.108V111.43H39.11c7.054-.14%2018.177.082%2021.333%206.12v-4.628c-.134-5.722-.004-13.522%200-13.832V27.413l.004-2.655-.004.005zm60.442-16.517h-35.55c-8.802%200-17.78%206.856-17.78%2016.493v74.259c.004.32.138%208.115%200%2013.813v4.627c3.155-6.022%2014.279-6.26%2021.333-6.114h32V8.25l-.003-.005z'/%3e%3c/svg%3e";export{c as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const t="data:image/svg+xml,%3csvg%20width='128'%20height='96'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M64.125%2056.975L120.188.912A12.476%2012.476%200%200%200%20115.5%200h-103c-1.588%200-3.113.3-4.513.838l56.138%2056.137z'/%3e%3cpath%20d='M64.125%2068.287l-62.3-62.3A12.42%2012.42%200%200%200%200%2012.5v71C0%2090.4%205.6%2096%2012.5%2096h103c6.9%200%2012.5-5.6%2012.5-12.5v-71a12.47%2012.47%200%200%200-1.737-6.35L64.125%2068.287z'/%3e%3c/svg%3e";export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const a="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M96.258%2057.462h31.421C124.794%2027.323%20100.426%202.956%2070.287.07v31.422a32.856%2032.856%200%200%201%2025.971%2025.97zm-38.796-25.97V.07C27.323%202.956%202.956%2027.323.07%2057.462h31.422a32.856%2032.856%200%200%201%2025.97-25.97zm12.825%2064.766v31.421c30.46-2.885%2054.507-27.253%2057.713-57.712H96.579c-2.886%2013.466-13.146%2023.726-26.292%2026.291zM31.492%2070.287H.07c2.886%2030.46%2027.253%2054.507%2057.713%2057.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z'/%3e%3c/svg%3e";export{a as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const h="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M78.208%2016.576v8.384h38.72v5.376h-38.72v8.704h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.512h38.72v5.376h-38.72v11.136H128v-94.72H78.208zM0%20114.368L72.128%20128V0L0%2013.632v100.736z'/%3e%3cpath%20d='M28.672%2082.56h-11.2l14.784-23.488-14.08-22.592h11.52l8.192%2014.976%208.448-14.976h11.136l-14.08%2022.208L58.368%2082.56H46.656l-8.768-15.68z'/%3e%3c/svg%3e";export{h as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M49.217%2041.329l-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866%202.303-4.806%205.016l.152%2019.164-24.151-23.79a6.698%206.698%200%200%200-9.499%200%206.76%206.76%200%200%200%200%209.526l23.93%2023.713-18.345.074c-2.712-.069-5.228%201.813-5.64%205.02v3.462c.069%202.721%202.31%204.97%205.022%205.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626%204.626%200%200%200%203.436-1.38c.88-.874%201.205-2.096%201.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523%2051.212l18.32-.073c2.713.06%205.224-1.609%205.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053%200-.086-.021-.138-.021l-2.451-.06a4.64%204.64%200%200%200-3.445%201.381c-.885.868-1.201%202.094-1.174%203.46l.27%202.46c.005.06-.177.095-.177.141l.141%2034.697c.069%202.713%202.31%204.338%205.022%204.397l3.45.006c2.705.062%204.867-2.31%204.8-5.026l-.153-18.752%2024.151%2023.946a6.69%206.69%200%200%200%209.494%200%206.747%206.747%200%200%200%200-9.523L101.74%2092.54v.001zM48.125%2080.662a4.636%204.636%200%200%200-3.437-1.382l-2.457.06c-.05%200-.082.022-.137.022l-35.025-.21c-2.712.07-4.957%202.318-5.022%205.04v3.462c.409%203.206%202.925%204.874%205.633%204.814l18.554.06-24.132%2023.928c-2.62%202.626-2.62%206.89%200%209.524a6.694%206.694%200%200%200%209.496%200l24.155-23.79-.155%2018.866c-.06%202.722%202.094%205.093%204.801%205.025h3.65c2.72-.069%204.962-1.685%205.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08%2047.397a4.62%204.62%200%200%200%203.443%201.374l2.45-.054c.055%200%20.088-.02.143-.028l35.08.21c2.712-.062%204.953-2.312%205.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073%2023.917-23.715c2.63-2.623%202.63-6.879.008-9.513a6.691%206.691%200%200%200-9.494%200L92.251%2026.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954%201.693-5.022%204.406l-.139%2035.247c0%20.054.18.088.18.136l-.267%202.465c-.028%201.366.288%202.588%201.174%203.463v.001z'/%3e%3c/svg%3e";export{c as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3csvg%20width='128'%20height='64'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M127.072%207.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586%2032.382-55.74%2032.382-29.24%200-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17%203.086-.399%206.275%201.2%208.238c.457.736%205.94%207.36%2014.62%2014.72L4.17%2035.96c-1.828%201.963-1.6%205.152.228%206.87.457.98%201.6%201.471%202.742%201.471s2.284-.49%203.198-1.472l12.564-13.983c5.94%204.416%2013.021%208.587%2020.788%2011.53l-4.797%2017.418c-.685%202.699.686%205.397%203.198%206.133h1.37c2.057%200%203.884-1.472%204.341-3.68L52.6%2042.83c3.655.736%207.538%201.227%2011.422%201.227%203.883%200%207.767-.49%2011.422-1.227l4.797%2017.173c.457%202.208%202.513%203.68%204.34%203.68.457%200%20.914%200%201.143-.246%202.513-.736%203.883-3.434%203.198-6.133l-4.797-17.172c7.767-2.944%2014.848-7.114%2020.788-11.53l12.336%2013.738c.913.981%202.056%201.472%203.198%201.472s2.284-.49%203.198-1.472c1.828-1.963%201.828-4.906.228-6.87l-11.65-13.001c9.366-7.36%2014.849-14.474%2014.849-14.474z'/%3e%3c/svg%3e";export{c as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const t="data:image/svg+xml,%3csvg%20class='icon'%20viewBox='0%200%201024%201024'%20xmlns='http://www.w3.org/2000/svg'%20width='128'%20height='128'%3e%3cdefs%3e%3cstyle/%3e%3c/defs%3e%3cpath%20d='M512%20128q69.675%200%20135.51%2021.163t115.498%2054.997%2093.483%2074.837%2073.685%2082.006%2051.67%2074.837%2032.17%2054.827L1024%20512q-2.347%204.992-6.315%2013.483T998.87%20560.17t-31.658%2051.669-44.331%2059.99-56.832%2064.34-69.504%2060.16-82.347%2051.5-94.848%2034.687T512%20896q-69.675%200-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0%20513.707q2.347-4.992%206.315-13.483t18.816-34.816%2031.658-51.84%2044.331-60.33%2056.832-64.683%2069.504-60.331%2082.347-51.84%2094.848-34.816T512%20128.085zm0%2085.333q-46.677%200-91.648%2012.331t-81.152%2031.83-70.656%2047.146-59.648%2054.485-48.853%2057.686-37.675%2052.821-26.325%2043.99q12.33%2021.674%2026.325%2043.52t37.675%2052.351%2048.853%2057.003%2059.648%2053.845T339.2%20767.02t81.152%2031.488T512%20810.667t91.648-12.331%2081.152-31.659%2070.656-46.848%2059.648-54.186%2048.853-57.344%2037.675-52.651T927.957%20512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512%20213.334zm0%20128q70.656%200%20120.661%2050.006T682.667%20512%20632.66%20632.661%20512%20682.667%20391.339%20632.66%20341.333%20512t50.006-120.661T512%20341.333zm0%2085.334q-35.328%200-60.33%2025.002T426.666%20512t25.002%2060.33T512%20597.334t60.33-25.002T597.334%20512t-25.002-60.33T512%20426.666z'/%3e%3c/svg%3e";export{t as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M84.068%2023.784c-1.02%200-1.877-.32-2.572-.96a8.588%208.588%200%200%201-1.738-2.237%2011.524%2011.524%200%200%201-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834%200%201.622.085%202.363.256.742.17%201.645.575%202.711%201.214%201.066.64%202.363%201.535%203.892%202.686%201.53%201.15%203.453%202.664%205.77%204.54%202.502%202.045%204.494%203.771%205.977%205.178%201.483%201.406%202.618%202.6%203.406%203.58.787.98%201.274%201.812%201.46%202.494.185.682.277%201.278.277%201.79v2.046H84.068zM127.3%2084.01c.278.682.464%201.535.556%202.558.093%201.023-.37%202.003-1.39%202.94-.463.427-.88.832-1.25%201.215-.372.384-.696.704-.974.96a6.69%206.69%200%200%201-.973.767l-11.816-10.741a44.331%2044.331%200%200%200%201.877-1.535%2031.028%2031.028%200%200%201%201.737-1.406c1.112-.938%202.317-1.343%203.615-1.215%201.297.128%202.363.405%203.197.83.927.427%201.923%201.173%202.989%202.239%201.065%201.065%201.876%202.195%202.432%203.388zM78.23%2095.902c2.038%200%203.752-.511%205.143-1.534l-26.969%2025.83H18.037c-1.761%200-3.684-.47-5.77-1.407a24.549%2024.549%200%200%201-5.838-3.709%2021.373%2021.373%200%200%201-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665%201.32-5.626A18.41%2018.41%200%200%201%205.04%205.562a21.798%2021.798%200%200%201%205.213-3.964C12.198.533%2014.237%200%2016.37%200h53.24v15.984c0%201.62.278%203.367.834%205.242a16.704%2016.704%200%200%200%202.572%205.179c1.159%201.577%202.665%202.898%204.518%203.964%201.853%201.066%204.078%201.598%206.673%201.598h20.295v42.325L85.458%2092.45c1.02-1.364%201.529-2.856%201.529-4.476%200-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409%200-4.448.789-6.116%202.366-1.668%201.577-2.502%203.474-2.502%205.69%200%202.217.834%204.092%202.502%205.626%201.668%201.535%203.707%202.302%206.117%202.302h52.13zM26.1%2047.951c-2.41%200-4.449.789-6.117%202.366-1.668%201.577-2.502%203.473-2.502%205.69%200%202.216.834%204.092%202.502%205.626%201.668%201.534%203.707%202.302%206.117%202.302h52.13c2.409%200%204.47-.768%206.185-2.302%201.715-1.534%202.572-3.41%202.572-5.626%200-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407%2064.063l1.807-1.663%203.476-3.196a479.75%20479.75%200%200%200%204.587-4.284%20500.757%20500.757%200%200%201%205.004-4.667c3.985-3.666%208.48-7.758%2013.485-12.276l11.677%2010.741-13.485%2012.404-5.004%204.603-4.587%204.22a179.46%20179.46%200%200%200-3.267%203.068c-.88.853-1.367%201.322-1.46%201.407-.463.341-.973.703-1.529%201.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5%2083.5%200%200%201-3.545%201.087%2072.2%2072.2%200%200%201-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157%2010.157%200%200%201%202.224-2.941z'/%3e%3c/svg%3e";export{c as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const l="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M38.47%2052L52%2038.462l-23.648-23.67L43.209%200H.035L0%2043.137l14.757-14.865L38.47%2052zm74.773%2047.726L89.526%2076%2076%2089.536l23.648%2023.672L84.795%20128h43.174L128%2084.863l-14.757%2014.863zM89.538%2052l23.668-23.648L128%2043.207V.038L84.866%200%2099.73%2014.76%2076%2038.472%2089.538%2052zM38.46%2076L14.792%2099.651%200%2084.794v43.173l43.137.033-14.865-14.757L52%2089.53%2038.46%2076z'/%3e%3c/svg%3e";export{l as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{T as t}from"./index-BYiWbDzj.js";function n(e){return t({url:"/tool/gen/list",method:"get",params:e})}function r(e){return t({url:"/tool/gen/db/list",method:"get",params:e})}function l(e){return t({url:"/tool/gen/"+e,method:"get"})}function a(e){return t({url:"/tool/gen",method:"put",data:e})}function u(e){return t({url:"/tool/gen/importTable",method:"post",params:e})}function s(e){return t({url:"/tool/gen/createTable",method:"post",params:e})}function i(e){return t({url:"/tool/gen/preview/"+e,method:"get"})}function g(e){return t({url:"/tool/gen/"+e,method:"delete"})}function d(e){return t({url:"/tool/gen/genCode/"+e,method:"get"})}function m(e){return t({url:"/tool/gen/synchDb/"+e,method:"get"})}export{n as a,d as b,s as c,g as d,l as g,u as i,r as l,i as p,m as s,a as u};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as k,w as P,d as u,o as f,l as N,f as l,e,p as o,h as w,n as U,c as y,K as v,H,L as _,I as K,m as q,v as $}from"./index-BYiWbDzj.js";import{l as G}from"./menu-BIu3IsSF.js";const J=q("i",{class:"el-icon-arrow-down el-icon--right"},null,-1),Q=q("h4",{class:"form-header"},"其他信息",-1),R=q("h4",{class:"form-header"},"关联信息",-1),Z={__name:"genInfoForm",props:{info:{type:Object,default:null},tables:{type:Array,default:null}},setup(t){const I=k([]),F=k([]),{proxy:x}=$(),c=t,S=k({tplCategory:[{required:!0,message:"请选择生成模板",trigger:"blur"}],packageName:[{required:!0,message:"请输入生成包路径",trigger:"blur"}],moduleName:[{required:!0,message:"请输入生成模块名",trigger:"blur"}],businessName:[{required:!0,message:"请输入生成业务名",trigger:"blur"}],functionName:[{required:!0,message:"请输入生成功能名",trigger:"blur"}]});function W(b){c.info.subTableFkName=""}function j(b){b!=="sub"&&(c.info.subTableName="",c.info.subTableFkName="")}function B(b){for(var a in c.tables){const i=c.tables[a].tableName;if(b===i){I.value=c.tables[a].columns;break}}}function E(){G().then(b=>{F.value=x.handleTree(b.data,"menuId")})}return P(()=>c.info.subTableName,b=>{B(b)}),P(()=>c.info.tplWebType,b=>{b===""&&(c.info.tplWebType="element-plus")}),E(),(b,a)=>{const i=u("el-option"),g=u("el-select"),d=u("el-form-item"),m=u("el-col"),r=u("question-filled"),s=u("el-icon"),p=u("el-tooltip"),C=u("el-input"),M=u("el-radio"),h=u("tree-select"),z=u("el-button"),L=u("el-dropdown-item"),O=u("el-dropdown-menu"),A=u("el-dropdown"),T=u("el-row"),D=u("el-form");return f(),N(D,{ref:"genInfoForm",model:t.info,rules:w(S),"label-width":"150px"},{default:l(()=>[e(T,null,{default:l(()=>[e(m,{span:12},{default:l(()=>[e(d,{prop:"tplCategory"},{label:l(()=>[o("生成模板")]),default:l(()=>[e(g,{modelValue:t.info.tplCategory,"onUpdate:modelValue":a[0]||(a[0]=n=>t.info.tplCategory=n),onChange:j},{default:l(()=>[e(i,{label:"对象访问(MySql)",value:"obj"}),e(i,{label:"语句查询(MySql)",value:"sql"}),e(i,{label:"其他",value:"other"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,{prop:"tplWebType"},{label:l(()=>[o("前端类型")]),default:l(()=>[e(g,{modelValue:t.info.tplWebType,"onUpdate:modelValue":a[1]||(a[1]=n=>t.info.tplWebType=n)},{default:l(()=>[e(i,{label:"Vue2 Element UI 模版",value:"element-ui"}),e(i,{label:"Vue3 Element Plus 模版",value:"element-plus"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,{prop:"packageName"},{label:l(()=>[o(" 生成包路径 "),e(p,{content:"生成在哪个java包下,例如 com.ruoyi.system",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.packageName,"onUpdate:modelValue":a[2]||(a[2]=n=>t.info.packageName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,{prop:"moduleName"},{label:l(()=>[o(" 生成模块名 "),e(p,{content:"可理解为子系统名,例如 system",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.moduleName,"onUpdate:modelValue":a[3]||(a[3]=n=>t.info.moduleName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,{prop:"businessName"},{label:l(()=>[o(" 生成业务名 "),e(p,{content:"可理解为功能英文名,例如 user",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.businessName,"onUpdate:modelValue":a[4]||(a[4]=n=>t.info.businessName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,{prop:"functionName"},{label:l(()=>[o(" 生成功能名 "),e(p,{content:"用作类描述,例如 用户",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.functionName,"onUpdate:modelValue":a[5]||(a[5]=n=>t.info.functionName=n)},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,{prop:"genType"},{label:l(()=>[o(" 生成代码方式 "),e(p,{content:"默认为zip压缩包下载,也可以自定义生成路径",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(M,{modelValue:t.info.genType,"onUpdate:modelValue":a[6]||(a[6]=n=>t.info.genType=n),label:"0"},{default:l(()=>[o("zip压缩包")]),_:1},8,["modelValue"]),e(M,{modelValue:t.info.genType,"onUpdate:modelValue":a[7]||(a[7]=n=>t.info.genType=n),label:"1"},{default:l(()=>[o("自定义路径")]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,null,{label:l(()=>[o(" 上级菜单 "),e(p,{content:"分配到指定菜单下,例如 系统管理",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(h,{value:t.info.parentMenuId,"onUpdate:value":a[8]||(a[8]=n=>t.info.parentMenuId=n),options:w(F),objMap:{value:"menuId",label:"menuName",children:"children"},placeholder:"请选择系统菜单"},null,8,["value","options"])]),_:1})]),_:1}),t.info.genType=="1"?(f(),N(m,{key:0,span:24},{default:l(()=>[e(d,{prop:"genPath"},{label:l(()=>[o(" 自定义路径 "),e(p,{content:"填写磁盘绝对路径,若不填写,则生成到当前Web项目下",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(C,{modelValue:t.info.genPath,"onUpdate:modelValue":a[10]||(a[10]=n=>t.info.genPath=n)},{append:l(()=>[e(A,null,{dropdown:l(()=>[e(O,null,{default:l(()=>[e(L,{onClick:a[9]||(a[9]=n=>t.info.genPath="/")},{default:l(()=>[o("恢复默认的生成基础路径")]),_:1})]),_:1})]),default:l(()=>[e(z,{type:"primary"},{default:l(()=>[o(" 最近路径快速选择 "),J]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})):U("",!0)]),_:1}),t.info.tplCategory=="tree"?(f(),y(v,{key:0},[Q,H(e(T,null,{default:l(()=>[e(m,{span:12},{default:l(()=>[e(d,null,{label:l(()=>[o(" 树编码字段 "),e(p,{content:"树显示的编码字段名, 如:dept_id",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(g,{modelValue:t.info.treeCode,"onUpdate:modelValue":a[11]||(a[11]=n=>t.info.treeCode=n),placeholder:"请选择"},{default:l(()=>[(f(!0),y(v,null,_(t.info.columns,(n,V)=>(f(),N(i,{key:V,label:n.columnName+":"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,null,{label:l(()=>[o(" 树父编码字段 "),e(p,{content:"树显示的父编码字段名, 如:parent_Id",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(g,{modelValue:t.info.treeParentCode,"onUpdate:modelValue":a[12]||(a[12]=n=>t.info.treeParentCode=n),placeholder:"请选择"},{default:l(()=>[(f(!0),y(v,null,_(t.info.columns,(n,V)=>(f(),N(i,{key:V,label:n.columnName+":"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,null,{label:l(()=>[o(" 树名称字段 "),e(p,{content:"树节点的显示名称字段名, 如:dept_name",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(g,{modelValue:t.info.treeName,"onUpdate:modelValue":a[13]||(a[13]=n=>t.info.treeName=n),placeholder:"请选择"},{default:l(()=>[(f(!0),y(v,null,_(t.info.columns,(n,V)=>(f(),N(i,{key:V,label:n.columnName+":"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},512),[[K,t.info.tplCategory=="tree"]])],64)):U("",!0),t.info.tplCategory=="sub"?(f(),y(v,{key:1},[R,e(T,null,{default:l(()=>[e(m,{span:12},{default:l(()=>[e(d,null,{label:l(()=>[o(" 关联子表的表名 "),e(p,{content:"关联子表的表名, 如:sys_user",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(g,{modelValue:t.info.subTableName,"onUpdate:modelValue":a[14]||(a[14]=n=>t.info.subTableName=n),placeholder:"请选择",onChange:W},{default:l(()=>[(f(!0),y(v,null,_(t.tables,(n,V)=>(f(),N(i,{key:V,label:n.tableName+":"+n.tableComment,value:n.tableName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:12},{default:l(()=>[e(d,null,{label:l(()=>[o(" 子表关联的外键名 "),e(p,{content:"子表关联的外键名, 如:user_id",placement:"top"},{default:l(()=>[e(s,null,{default:l(()=>[e(r)]),_:1})]),_:1})]),default:l(()=>[e(g,{modelValue:t.info.subTableFkName,"onUpdate:modelValue":a[15]||(a[15]=n=>t.info.subTableFkName=n),placeholder:"请选择"},{default:l(()=>[(f(!0),y(v,null,_(w(I),(n,V)=>(f(),N(i,{key:V,label:n.columnName+":"+n.columnComment,value:n.columnName},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64)):U("",!0)]),_:1},8,["model","rules"])}}};export{Z as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const e="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1581238998885'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4187'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cdefs%3e%3cstyle%20type='text/css'%3e%3c/style%3e%3c/defs%3e%3cpath%20d='M511.542857%2014.057143C228.914286%2013.942857%200%20242.742857%200%20525.142857%200%20748.457143%20143.2%20938.285714%20342.628571%201008c26.857143%206.742857%2022.742857-12.342857%2022.742858-25.371429v-88.571428c-155.085714%2018.171429-161.371429-84.457143-171.771429-101.6C172.571429%20756.571429%20122.857143%20747.428571%20137.714286%20730.285714c35.314286-18.171429%2071.314286%204.571429%20113.028571%2066.171429%2030.171429%2044.685714%2089.028571%2037.142857%20118.857143%2029.714286%206.514286-26.857143%2020.457143-50.857143%2039.657143-69.485715-160.685714-28.8-227.657143-126.857143-227.657143-243.428571%200-56.571429%2018.628571-108.571429%2055.2-150.514286-23.314286-69.142857%202.171429-128.342857%205.6-137.142857%2066.4-5.942857%20135.428571%2047.542857%20140.8%2051.771429%2037.714286-10.171429%2080.8-15.542857%20129.028571-15.542858%2048.457143%200%2091.657143%205.6%20129.714286%2015.885715%2012.914286-9.828571%2076.914286-55.771429%20138.628572-50.171429%203.314286%208.8%2028.228571%2066.628571%206.285714%20134.857143%2037.028571%2042.057143%2055.885714%2094.514286%2055.885714%20151.2%200%20116.8-67.428571%20214.971429-228.571428%20243.314286a145.714286%20145.714286%200%200%201%2043.542857%20104v128.571428c0.914286%2010.285714%200%2020.457143%2017.142857%2020.457143%20202.4-68.228571%20348.114286-259.428571%20348.114286-484.685714%200-282.514286-229.028571-511.2-511.428572-511.2z'%20p-id='4188'%3e%3c/path%3e%3c/svg%3e";export{e as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
const t="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.482%2070.131l36.204%2016.18%2069.932-65.485-61.38%2070.594%2046.435%2018.735c1.119.425%202.397-.17%202.797-1.363v-.085L127.998.047%201.322%2065.874c-1.12.597-1.519%201.959-1.04%203.151.32.511.72.937%201.2%201.107zm44.676%2057.821L64.22%20107.26l-18.062-7.834v28.527z'/%3e%3c/svg%3e";export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const c="data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M115.147.062a13%2013%200%200%201%204.94.945c1.55.63%202.907%201.526%204.069%202.688a13.148%2013.148%200%200%201%202.761%204.069c.678%201.55%201.017%203.245%201.017%205.086v102.3c0%203.681-1.187%206.733-3.56%209.155-2.373%202.422-5.352%203.633-8.937%203.633H12.992c-3.875%200-7-1.26-9.373-3.779-2.373-2.518-3.56-5.667-3.56-9.445V12.704c0-3.39%201.163-6.345%203.488-8.863C5.872%201.32%208.972.062%2012.847.062h102.3zM81.434%20109.047c1.744%200%203.003-.412%203.778-1.235.775-.824%201.163-1.914%201.163-3.27%200-1.26-.388-2.325-1.163-3.197-.775-.872-2.034-1.307-3.778-1.307H72.57c.097-.194.145-.485.145-.872V27.09h9.01c1.743%200%202.954-.436%203.633-1.308.678-.872%201.017-1.938%201.017-3.197%200-1.26-.34-2.325-1.017-3.197-.679-.872-1.89-1.308-3.633-1.308H46.268c-1.743%200-2.954.436-3.632%201.308-.678.872-1.018%201.938-1.018%203.197%200%201.26.34%202.325%201.018%203.197.678.872%201.889%201.308%203.632%201.308h8.138v72.075c0%20.193.024.339.073.436.048.096.072.242.072.436H46.56c-1.744%200-3.003.435-3.778%201.307-.775.872-1.163%201.938-1.163%203.197%200%201.356.388%202.446%201.163%203.27.775.823%202.034%201.235%203.778%201.235h34.875z'/%3e%3c/svg%3e";export{c as default};
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as u,C as I,d as m,o as K,l as L,f as a,m as P,e as t,p as b,h as o,k as N,H as Q,I as j,D as E,v as F}from"./index-BYiWbDzj.js";import{l as H,i as A}from"./gen-DLNrNhtb.js";const G={class:"dialog-footer"},W={__name:"importTable",emits:["ok"],setup(J,{expose:h,emit:V}){const _=u(0),r=u(!1),p=u(!1),w=u([]),C=u([]),{proxy:d}=F(),n=I({pageNum:1,pageSize:10,tableName:void 0,tableComment:void 0}),k=V;function S(l){g(l),r.value=!0}function x(l){d.$refs.table.toggleRowSelection(l)}function T(l){w.value=l.map(e=>e.tableName)}function g(l){p.value=l,H({...n,other:l}).then(e=>{C.value=e.rows,_.value=e.total})}function f(){n.pageNum=1,g(p.value)}function R(){d.resetForm("queryRef"),f()}function U(){const l=w.value.join(",");if(l==""){d.$modal.msgError("请选择要导入的表");return}A({tables:l,other:p.value}).then(e=>{d.$modal.msgSuccess(e.msg),e.code===200&&(r.value=!1,k("ok"))})}return h({show:S}),(l,e)=>{const y=m("el-input"),v=m("el-form-item"),c=m("el-button"),$=m("el-form"),s=m("el-table-column"),D=m("el-table"),q=m("pagination"),z=m("el-row"),B=m("el-dialog");return K(),L(B,{title:"导入表",modelValue:o(r),"onUpdate:modelValue":e[6]||(e[6]=i=>E(r)?r.value=i:null),width:"800px",top:"5vh","append-to-body":""},{footer:a(()=>[P("div",G,[t(c,{type:"primary",onClick:U},{default:a(()=>[b("确 定")]),_:1}),t(c,{onClick:e[5]||(e[5]=i=>r.value=!1)},{default:a(()=>[b("取 消")]),_:1})])]),default:a(()=>[t($,{model:o(n),ref:"queryRef",inline:!0},{default:a(()=>[t(v,{label:"表名称",prop:"tableName"},{default:a(()=>[t(y,{modelValue:o(n).tableName,"onUpdate:modelValue":e[0]||(e[0]=i=>o(n).tableName=i),placeholder:"请输入表名称",clearable:"",onKeyup:N(f,["enter"])},null,8,["modelValue"])]),_:1}),t(v,{label:"表描述",prop:"tableComment"},{default:a(()=>[t(y,{modelValue:o(n).tableComment,"onUpdate:modelValue":e[1]||(e[1]=i=>o(n).tableComment=i),placeholder:"请输入表描述",clearable:"",onKeyup:N(f,["enter"])},null,8,["modelValue"])]),_:1}),t(v,null,{default:a(()=>[t(c,{type:"primary",icon:"Search",onClick:f},{default:a(()=>[b("搜索")]),_:1}),t(c,{icon:"Refresh",onClick:R},{default:a(()=>[b("重置")]),_:1})]),_:1})]),_:1},8,["model"]),t(z,null,{default:a(()=>[t(D,{onRowClick:x,ref:"table",data:o(C),onSelectionChange:T,height:"260px"},{default:a(()=>[t(s,{type:"selection",width:"55"}),t(s,{prop:"tableName",label:"表名称","show-overflow-tooltip":!0}),t(s,{prop:"tableComment",label:"表描述","show-overflow-tooltip":!0}),t(s,{prop:"createTime",label:"创建时间"}),t(s,{prop:"updateTime",label:"更新时间"})]),_:1},8,["data"]),Q(t(q,{total:o(_),page:o(n).pageNum,"onUpdate:page":e[2]||(e[2]=i=>o(n).pageNum=i),limit:o(n).pageSize,"onUpdate:limit":e[3]||(e[3]=i=>o(n).pageSize=i),onPagination:e[4]||(e[4]=i=>g(o(p)))},null,8,["total","page","limit"]),[[j,o(_)>0]])]),_:1})]),_:1},8,["modelValue"])}}};export{W as default};
|
Binary file
|