ylyx-cli 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +184 -0
- package/bin/ylyx.js +95 -0
- package/lib/generator.js +192 -0
- package/lib/index.js +113 -0
- package/lib/interactive.js +87 -0
- package/lib/remote.js +179 -0
- package/lib/template.js +174 -0
- package/lib/utils.js +134 -0
- package/package.json +56 -0
- package/templates/react-app/files/README.md +23 -0
- package/templates/react-app/files/package.json +29 -0
- package/templates/react-app/files/public/index.html +11 -0
- package/templates/react-app/files/src/App.css +15 -0
- package/templates/react-app/files/src/App.js +15 -0
- package/templates/react-app/files/src/index.css +10 -0
- package/templates/react-app/files/src/index.js +11 -0
- package/templates/react-app/template.json +12 -0
- package/templates/react-component/files/Component.module.css +5 -0
- package/templates/react-component/files/Component.tsx +31 -0
- package/templates/react-component/files/index.ts +2 -0
- package/templates/react-component/template.json +49 -0
- package/templates/vue-app/files/.editorconfig +14 -0
- package/templates/vue-app/files/.env.development +21 -0
- package/templates/vue-app/files/.env.production +18 -0
- package/templates/vue-app/files/.eslintignore +5 -0
- package/templates/vue-app/files/.eslintrc.js +267 -0
- package/templates/vue-app/files/.prettierignore +12 -0
- package/templates/vue-app/files/.travis.yml +5 -0
- package/templates/vue-app/files/.vscode/extensions.json +7 -0
- package/templates/vue-app/files/.vscode/settings.json +39 -0
- package/templates/vue-app/files/LICENSE +191 -0
- package/templates/vue-app/files/README.md +87 -0
- package/templates/vue-app/files/babel.config.js +11 -0
- package/templates/vue-app/files/jest.config.js +24 -0
- package/templates/vue-app/files/package.json +136 -0
- package/templates/vue-app/files/plopfile.js +7 -0
- package/templates/vue-app/files/postcss.config.js +5 -0
- package/templates/vue-app/files/prettier.config.js +36 -0
- package/templates/vue-app/files/public/default.js +26 -0
- package/templates/vue-app/files/public/favicon.ico +0 -0
- package/templates/vue-app/files/public/index.html +26 -0
- package/templates/vue-app/files/src/App.vue +54 -0
- package/templates/vue-app/files/src/api/bigDataV/index.js +198 -0
- package/templates/vue-app/files/src/api/data.js +42 -0
- package/templates/vue-app/files/src/api/dataArchive/index.js +186 -0
- package/templates/vue-app/files/src/api/generator/genConfig.js +16 -0
- package/templates/vue-app/files/src/api/generator/generator.js +32 -0
- package/templates/vue-app/files/src/api/indexManagement/index.js +39 -0
- package/templates/vue-app/files/src/api/institutionMonitor/index.js +396 -0
- package/templates/vue-app/files/src/api/institutionSet/index.js +120 -0
- package/templates/vue-app/files/src/api/login.js +44 -0
- package/templates/vue-app/files/src/api/selfStatistics/index.js +50 -0
- package/templates/vue-app/files/src/api/system/code.js +15 -0
- package/templates/vue-app/files/src/api/system/dict.js +34 -0
- package/templates/vue-app/files/src/api/system/dictDetail.js +52 -0
- package/templates/vue-app/files/src/api/system/equipment.js +35 -0
- package/templates/vue-app/files/src/api/system/examManage.js +49 -0
- package/templates/vue-app/files/src/api/system/examProject.js +48 -0
- package/templates/vue-app/files/src/api/system/hosModel.js +35 -0
- package/templates/vue-app/files/src/api/system/hospital.js +88 -0
- package/templates/vue-app/files/src/api/system/job.js +40 -0
- package/templates/vue-app/files/src/api/system/menu.js +67 -0
- package/templates/vue-app/files/src/api/system/model.js +42 -0
- package/templates/vue-app/files/src/api/system/risConfig.js +9 -0
- package/templates/vue-app/files/src/api/system/role.js +64 -0
- package/templates/vue-app/files/src/api/system/sysSet.js +19 -0
- package/templates/vue-app/files/src/api/system/timing.js +41 -0
- package/templates/vue-app/files/src/api/system/user.js +121 -0
- package/templates/vue-app/files/src/api/tools/alipay.js +25 -0
- package/templates/vue-app/files/src/api/tools/email.js +24 -0
- package/templates/vue-app/files/src/api/tools/localStorage.js +27 -0
- package/templates/vue-app/files/src/api/tools/qiniu.js +40 -0
- package/templates/vue-app/files/src/assets/401_images/401.gif +0 -0
- package/templates/vue-app/files/src/assets/404_images/404.png +0 -0
- package/templates/vue-app/files/src/assets/404_images/404_cloud.png +0 -0
- package/templates/vue-app/files/src/assets/css/font-awesome.css +2342 -0
- package/templates/vue-app/files/src/assets/css/font-awesome.min.css +2336 -0
- package/templates/vue-app/files/src/assets/fonts/FontAwesome.otf +0 -0
- package/templates/vue-app/files/src/assets/fonts/fontawesome-webfont.eot +0 -0
- package/templates/vue-app/files/src/assets/fonts/fontawesome-webfont.svg +2671 -0
- package/templates/vue-app/files/src/assets/fonts/fontawesome-webfont.ttf +0 -0
- package/templates/vue-app/files/src/assets/fonts/fontawesome-webfont.woff +0 -0
- package/templates/vue-app/files/src/assets/fonts/fontawesome-webfont.woff2 +0 -0
- package/templates/vue-app/files/src/assets/icons/index.js +9 -0
- package/templates/vue-app/files/src/assets/icons/svg/Steve-Jobs.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/achive.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/alipay.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/anq.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/app.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/archive.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/backup.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/chain.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/chart.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/codeConsole.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/dashboard.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/database.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/date.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/deploy.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/dept.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/dev.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/develop.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/dictionary.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/doc.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/download.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/edit.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/education.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/email.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/equSet.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/error.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/exit-fullscreen.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/fullscreen.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/fwb.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/github.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/goBack.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/gonggao.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/hospital.svg +2 -0
- package/templates/vue-app/files/src/assets/icons/svg/hospital1.svg +2 -0
- package/templates/vue-app/files/src/assets/icons/svg/hospitalTotal.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/icon.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/image.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/index.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/international.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/ipvisits.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/java.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/link.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/list.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/lock.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/log.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/login.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/loginOne.svg +35 -0
- package/templates/vue-app/files/src/assets/icons/svg/loginOneWhite.svg +19 -0
- package/templates/vue-app/files/src/assets/icons/svg/loginOr.svg +93 -0
- package/templates/vue-app/files/src/assets/icons/svg/loginUp.svg +96 -0
- package/templates/vue-app/files/src/assets/icons/svg/markdown.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/menu.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/message.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/mnt.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/money.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/monitor.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/nested.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/network.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/offline.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/online.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/password.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/people.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/peoples.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/perSet.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/permission.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/phone.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/piechart.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/qiniu.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/redis.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/resetpassword.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/resetpassword1.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/role.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/search.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/server.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/shopping.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/size.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/skill.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/source.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/sqlMonitor.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/statistical.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/swagger.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/sys-tools.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/system.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/system1.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/tab.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/teams.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/theme.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/timing.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/tools.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/tree-table.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/tree.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/unlock.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/user.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/user1.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/validCode.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/visits.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/web.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/wechat.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/weixin.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svg/zujian.svg +1 -0
- package/templates/vue-app/files/src/assets/icons/svgo.yml +21 -0
- package/templates/vue-app/files/src/assets/images/archive.png +0 -0
- package/templates/vue-app/files/src/assets/images/archive_icon.png +0 -0
- package/templates/vue-app/files/src/assets/images/avatar.png +0 -0
- package/templates/vue-app/files/src/assets/images/background.jpg +0 -0
- package/templates/vue-app/files/src/assets/images/bg.png +0 -0
- package/templates/vue-app/files/src/assets/images/gongan.png +0 -0
- package/templates/vue-app/files/src/assets/images/hospital_icon.png +0 -0
- package/templates/vue-app/files/src/assets/images/location.png +0 -0
- package/templates/vue-app/files/src/assets/images/logintitle.jpg +0 -0
- package/templates/vue-app/files/src/assets/images/logo-copy1.png +0 -0
- package/templates/vue-app/files/src/assets/images/logo.png +0 -0
- package/templates/vue-app/files/src/assets/images/logoBg.png +0 -0
- package/templates/vue-app/files/src/assets/images/offline-bg.png +0 -0
- package/templates/vue-app/files/src/assets/images/position.png +0 -0
- package/templates/vue-app/files/src/assets/images/qualityBg.jpg +0 -0
- package/templates/vue-app/files/src/assets/images/self-bg.png +0 -0
- package/templates/vue-app/files/src/assets/images/self-bg2.png +0 -0
- package/templates/vue-app/files/src/assets/images/triAngel.png +0 -0
- package/templates/vue-app/files/src/assets/images/triAngelNormal.png +0 -0
- package/templates/vue-app/files/src/assets/styles/btn.scss +103 -0
- package/templates/vue-app/files/src/assets/styles/eladmin.scss +124 -0
- package/templates/vue-app/files/src/assets/styles/element-ui.scss +217 -0
- package/templates/vue-app/files/src/assets/styles/element-variables.scss +31 -0
- package/templates/vue-app/files/src/assets/styles/global.scss +73 -0
- package/templates/vue-app/files/src/assets/styles/index.scss +220 -0
- package/templates/vue-app/files/src/assets/styles/mixin.scss +60 -0
- package/templates/vue-app/files/src/assets/styles/publicStyle.scss +224 -0
- package/templates/vue-app/files/src/assets/styles/sidebar.scss +239 -0
- package/templates/vue-app/files/src/assets/styles/transition.scss +48 -0
- package/templates/vue-app/files/src/assets/styles/variables.scss +44 -0
- package/templates/vue-app/files/src/common/flexible.js +145 -0
- package/templates/vue-app/files/src/components/Breadcrumb/index.vue +87 -0
- package/templates/vue-app/files/src/components/Crud/CRUD.operation.vue +248 -0
- package/templates/vue-app/files/src/components/Crud/Pagination.vue +20 -0
- package/templates/vue-app/files/src/components/Crud/RR.operation.vue +39 -0
- package/templates/vue-app/files/src/components/Crud/UD.operation.vue +106 -0
- package/templates/vue-app/files/src/components/Crud/crud.js +907 -0
- package/templates/vue-app/files/src/components/Crud/user/UR.operation.vue +154 -0
- package/templates/vue-app/files/src/components/DateRangePicker/index.vue +42 -0
- package/templates/vue-app/files/src/components/DateRangePickerProhibitNext/index.vue +42 -0
- package/templates/vue-app/files/src/components/DateRangePickerProhibitTodayNext/index.vue +48 -0
- package/templates/vue-app/files/src/components/Dict/Dict.js +31 -0
- package/templates/vue-app/files/src/components/Dict/index.js +29 -0
- package/templates/vue-app/files/src/components/Doc/index.vue +16 -0
- package/templates/vue-app/files/src/components/Echarts/BarChart.vue +115 -0
- package/templates/vue-app/files/src/components/Echarts/Category.vue +768 -0
- package/templates/vue-app/files/src/components/Echarts/Funnel.vue +120 -0
- package/templates/vue-app/files/src/components/Echarts/Gauge.vue +74 -0
- package/templates/vue-app/files/src/components/Echarts/Graph.vue +101 -0
- package/templates/vue-app/files/src/components/Echarts/HeatMap.vue +301 -0
- package/templates/vue-app/files/src/components/Echarts/Line3D.vue +110 -0
- package/templates/vue-app/files/src/components/Echarts/PieChart.vue +84 -0
- package/templates/vue-app/files/src/components/Echarts/Point.vue +161 -0
- package/templates/vue-app/files/src/components/Echarts/RadarChart.vue +123 -0
- package/templates/vue-app/files/src/components/Echarts/Rich.vue +160 -0
- package/templates/vue-app/files/src/components/Echarts/Sankey.vue +114 -0
- package/templates/vue-app/files/src/components/Echarts/Scatter.vue +192 -0
- package/templates/vue-app/files/src/components/Echarts/Sunburst.vue +127 -0
- package/templates/vue-app/files/src/components/Echarts/ThemeRiver.vue +233 -0
- package/templates/vue-app/files/src/components/Echarts/WordCloud.vue +201 -0
- package/templates/vue-app/files/src/components/GithubCorner/index.vue +55 -0
- package/templates/vue-app/files/src/components/Hamburger/index.vue +44 -0
- package/templates/vue-app/files/src/components/HeaderSearch/index.vue +196 -0
- package/templates/vue-app/files/src/components/IconSelect/index.vue +74 -0
- package/templates/vue-app/files/src/components/IconSelect/requireIcons.js +10 -0
- package/templates/vue-app/files/src/components/Iframe/index.vue +30 -0
- package/templates/vue-app/files/src/components/JavaEdit/index.vue +78 -0
- package/templates/vue-app/files/src/components/Pagination/index.vue +100 -0
- package/templates/vue-app/files/src/components/PanThumb/index.vue +149 -0
- package/templates/vue-app/files/src/components/ParentView/index.vue +3 -0
- package/templates/vue-app/files/src/components/Permission/index.js +13 -0
- package/templates/vue-app/files/src/components/Permission/permission.js +21 -0
- package/templates/vue-app/files/src/components/RightPanel/index.vue +149 -0
- package/templates/vue-app/files/src/components/Screenfull/index.vue +60 -0
- package/templates/vue-app/files/src/components/SizeSelect/index.vue +60 -0
- package/templates/vue-app/files/src/components/SvgIcon/index.vue +66 -0
- package/templates/vue-app/files/src/components/ThemePicker/index.vue +177 -0
- package/templates/vue-app/files/src/components/UploadExcel/index.vue +149 -0
- package/templates/vue-app/files/src/components/WaterMark/setWaterMark.js +68 -0
- package/templates/vue-app/files/src/components/WaterMark/waterMark.vue +69 -0
- package/templates/vue-app/files/src/components/Xgplayer/index.vue +49 -0
- package/templates/vue-app/files/src/components/YamlEdit/index.vue +81 -0
- package/templates/vue-app/files/src/layout/components/AppMain.vue +67 -0
- package/templates/vue-app/files/src/layout/components/Navbar.vue +209 -0
- package/templates/vue-app/files/src/layout/components/Settings/index.vue +125 -0
- package/templates/vue-app/files/src/layout/components/Sidebar/FixiOSBug.js +26 -0
- package/templates/vue-app/files/src/layout/components/Sidebar/Item.vue +29 -0
- package/templates/vue-app/files/src/layout/components/Sidebar/Link.vue +35 -0
- package/templates/vue-app/files/src/layout/components/Sidebar/Logo.vue +93 -0
- package/templates/vue-app/files/src/layout/components/Sidebar/SidebarItem.vue +104 -0
- package/templates/vue-app/files/src/layout/components/Sidebar/index.vue +79 -0
- package/templates/vue-app/files/src/layout/components/TagsView/ScrollPane.vue +90 -0
- package/templates/vue-app/files/src/layout/components/TagsView/index.vue +299 -0
- package/templates/vue-app/files/src/layout/components/index.js +5 -0
- package/templates/vue-app/files/src/layout/index.vue +119 -0
- package/templates/vue-app/files/src/layout/mixin/ResizeHandler.js +45 -0
- package/templates/vue-app/files/src/main.js +89 -0
- package/templates/vue-app/files/src/mixins/crud.js +348 -0
- package/templates/vue-app/files/src/router/index.js +156 -0
- package/templates/vue-app/files/src/router/routers.js +203 -0
- package/templates/vue-app/files/src/settings.js +57 -0
- package/templates/vue-app/files/src/store/getters.js +29 -0
- package/templates/vue-app/files/src/store/index.js +25 -0
- package/templates/vue-app/files/src/store/modules/api.js +33 -0
- package/templates/vue-app/files/src/store/modules/app.js +55 -0
- package/templates/vue-app/files/src/store/modules/permission.js +79 -0
- package/templates/vue-app/files/src/store/modules/register.js +17 -0
- package/templates/vue-app/files/src/store/modules/settings.js +46 -0
- package/templates/vue-app/files/src/store/modules/tagsView.js +168 -0
- package/templates/vue-app/files/src/store/modules/user.js +119 -0
- package/templates/vue-app/files/src/utils/auth.js +18 -0
- package/templates/vue-app/files/src/utils/base64ToFile.js +27 -0
- package/templates/vue-app/files/src/utils/clipboard.js +36 -0
- package/templates/vue-app/files/src/utils/datetime.js +289 -0
- package/templates/vue-app/files/src/utils/getBlobFile.js +10 -0
- package/templates/vue-app/files/src/utils/getTime.js +29 -0
- package/templates/vue-app/files/src/utils/index.js +520 -0
- package/templates/vue-app/files/src/utils/permission.js +29 -0
- package/templates/vue-app/files/src/utils/pinyin.js +450 -0
- package/templates/vue-app/files/src/utils/request.js +139 -0
- package/templates/vue-app/files/src/utils/rsaEncrypt.js +37 -0
- package/templates/vue-app/files/src/utils/shortcuts.js +210 -0
- package/templates/vue-app/files/src/utils/upload.js +12 -0
- package/templates/vue-app/files/src/utils/validate.js +262 -0
- package/templates/vue-app/files/src/views/components/Echarts.vue +124 -0
- package/templates/vue-app/files/src/views/components/Editor.vue +75 -0
- package/templates/vue-app/files/src/views/components/MarkDown.vue +44 -0
- package/templates/vue-app/files/src/views/components/UVideo.vue +37 -0
- package/templates/vue-app/files/src/views/components/YamlEdit.vue +206 -0
- package/templates/vue-app/files/src/views/components/camera/camera.vue +115 -0
- package/templates/vue-app/files/src/views/components/camera/cameraTest.vue +158 -0
- package/templates/vue-app/files/src/views/components/excel/upload-excel.vue +41 -0
- package/templates/vue-app/files/src/views/components/icons/element-icons.js +74 -0
- package/templates/vue-app/files/src/views/components/icons/index.vue +106 -0
- package/templates/vue-app/files/src/views/components/icons/svg-icons.js +10 -0
- package/templates/vue-app/files/src/views/components/scroll/index.vue +107 -0
- package/templates/vue-app/files/src/views/components/scrollFull/index.vue +99 -0
- package/templates/vue-app/files/src/views/dashboard/LineChart.vue +138 -0
- package/templates/vue-app/files/src/views/dashboard/PanelGroup.vue +173 -0
- package/templates/vue-app/files/src/views/dashboard/mixins/resize.js +57 -0
- package/templates/vue-app/files/src/views/dataArchive/delTable.vue +354 -0
- package/templates/vue-app/files/src/views/dataArchive/exportDetail.vue +121 -0
- package/templates/vue-app/files/src/views/dataArchive/exportList.vue +160 -0
- package/templates/vue-app/files/src/views/dataArchive/index.vue +2104 -0
- package/templates/vue-app/files/src/views/features/401.vue +83 -0
- package/templates/vue-app/files/src/views/features/404.vue +226 -0
- package/templates/vue-app/files/src/views/features/redirect.vue +12 -0
- package/templates/vue-app/files/src/views/generator/config.vue +348 -0
- package/templates/vue-app/files/src/views/generator/index.vue +143 -0
- package/templates/vue-app/files/src/views/generator/preview.vue +39 -0
- package/templates/vue-app/files/src/views/home.vue +80 -0
- package/templates/vue-app/files/src/views/indexManagement/index.vue +422 -0
- package/templates/vue-app/files/src/views/indexManagement/other.vue +286 -0
- package/templates/vue-app/files/src/views/institutionMonitor/components/LineChart.vue +191 -0
- package/templates/vue-app/files/src/views/institutionMonitor/index.scss +339 -0
- package/templates/vue-app/files/src/views/institutionMonitor/index.vue +1385 -0
- package/templates/vue-app/files/src/views/institutionMonitor/mixins/resize.js +57 -0
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/checkProjectCode.vue +267 -0
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/imageAbnormalMonitor.vue +361 -0
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/index.vue +686 -0
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/leakageAnomaly.vue +270 -0
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/moveMonitore.vue +114 -0
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/qualityMonitore.vue +338 -0
- package/templates/vue-app/files/src/views/institutionSet/cloudSet.vue +534 -0
- package/templates/vue-app/files/src/views/institutionSet/index.vue +2550 -0
- package/templates/vue-app/files/src/views/login.vue +243 -0
- package/templates/vue-app/files/src/views/qualityLogin.vue +280 -0
- package/templates/vue-app/files/src/views/selfStatistics/components/LineChart.vue +296 -0
- package/templates/vue-app/files/src/views/selfStatistics/hospitalDetail/index.vue +533 -0
- package/templates/vue-app/files/src/views/selfStatistics/index.scss +447 -0
- package/templates/vue-app/files/src/views/selfStatistics/index.vue +903 -0
- package/templates/vue-app/files/src/views/selfStatistics/mixins/resize.js +57 -0
- package/templates/vue-app/files/src/views/selfStatistics/monitorDetail/index.vue +285 -0
- package/templates/vue-app/files/src/views/selfStatistics/offlineDetail/index.vue +104 -0
- package/templates/vue-app/files/src/views/selfStatistics/selfActiveDetail/index.vue +104 -0
- package/templates/vue-app/files/src/views/selfStatistics/selfMonitorDetail/index.vue +420 -0
- package/templates/vue-app/files/src/views/selfStatistics/setWaterMark/setWaterMark.js +68 -0
- package/templates/vue-app/files/src/views/selfStatistics/setWaterMark/waterMark.vue +69 -0
- package/templates/vue-app/files/src/views/system/dept/index.vue +144 -0
- package/templates/vue-app/files/src/views/system/dict/dictDetail.vue +146 -0
- package/templates/vue-app/files/src/views/system/dict/index.vue +159 -0
- package/templates/vue-app/files/src/views/system/examModality/index.vue +174 -0
- package/templates/vue-app/files/src/views/system/examPart/index.vue +184 -0
- package/templates/vue-app/files/src/views/system/examProject/index.vue +321 -0
- package/templates/vue-app/files/src/views/system/examine/index.vue +66 -0
- package/templates/vue-app/files/src/views/system/job/index.vue +119 -0
- package/templates/vue-app/files/src/views/system/job/module/form.vue +72 -0
- package/templates/vue-app/files/src/views/system/job/module/header.vue +48 -0
- package/templates/vue-app/files/src/views/system/menu/index.vue +327 -0
- package/templates/vue-app/files/src/views/system/model/index.vue +285 -0
- package/templates/vue-app/files/src/views/system/role/index.vue +434 -0
- package/templates/vue-app/files/src/views/system/sysSet/index.vue +84 -0
- package/templates/vue-app/files/src/views/system/timing/index.vue +289 -0
- package/templates/vue-app/files/src/views/system/timing/log.vue +143 -0
- package/templates/vue-app/files/src/views/system/user/admin.vue +414 -0
- package/templates/vue-app/files/src/views/system/user/center/updateEmail.vue +146 -0
- package/templates/vue-app/files/src/views/system/user/center/updatePass.vue +168 -0
- package/templates/vue-app/files/src/views/system/user/center.vue +140 -0
- package/templates/vue-app/files/src/views/system/user/index.vue +972 -0
- package/templates/vue-app/files/src/views/systemSet/role/index.vue +314 -0
- package/templates/vue-app/files/src/views/systemSet/user/admin.vue +414 -0
- package/templates/vue-app/files/src/views/systemSet/user/center/updateEmail.vue +146 -0
- package/templates/vue-app/files/src/views/systemSet/user/center/updatePass.vue +115 -0
- package/templates/vue-app/files/src/views/systemSet/user/center.vue +351 -0
- package/templates/vue-app/files/src/views/systemSet/user/index.vue +928 -0
- package/templates/vue-app/files/src/views/tools/aliPay/config.vue +102 -0
- package/templates/vue-app/files/src/views/tools/aliPay/index.vue +48 -0
- package/templates/vue-app/files/src/views/tools/aliPay/toPay.vue +91 -0
- package/templates/vue-app/files/src/views/tools/email/config.vue +91 -0
- package/templates/vue-app/files/src/views/tools/email/index.vue +42 -0
- package/templates/vue-app/files/src/views/tools/email/send.vue +159 -0
- package/templates/vue-app/files/src/views/tools/storage/index.vue +35 -0
- package/templates/vue-app/files/src/views/tools/storage/local/index.vue +207 -0
- package/templates/vue-app/files/src/views/tools/storage/qiniu/form.vue +108 -0
- package/templates/vue-app/files/src/views/tools/storage/qiniu/index.vue +241 -0
- package/templates/vue-app/files/src/views/tools/swagger/index.vue +14 -0
- package/templates/vue-app/files/vue.config.js +173 -0
- package/templates/vue-app/template.json +30 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import JSEncrypt from 'jsencrypt/bin/jsencrypt.min';
|
|
2
|
+
|
|
3
|
+
// 密钥对生成 http://web.chacuo.net/netrsakeypair
|
|
4
|
+
|
|
5
|
+
const publicKey =
|
|
6
|
+
'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCL6kGjJBIF3jO0iJ/\n' +
|
|
7
|
+
'A+4BuP+TFt2fVo6nweR2KqmHqjzmwj4/0/h2VkIvx73iC6+EFR55PJ9tAdymTIldkbCWJTJ4yBFLDNLhcL7bb/\n' +
|
|
8
|
+
'kN2FyxkUKkpNdYE89KDjQfI7LtZXHelm4teVGETbt7nRsnycj6LCbtSWMDXxt8MhHRz1wIDAQAB';
|
|
9
|
+
|
|
10
|
+
const privateKey =
|
|
11
|
+
'MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAIvqQaMkEgXeM7SIn8D7gG4/5MW3Z9Wj\n' +
|
|
12
|
+
'qfB5HYqqYeqPObCPj/T+HZWQi/\n' +
|
|
13
|
+
'HveILr4QVHnk8n20B3KZMiV2RsJYlMnjIEUsM0uFwvttv+Q3YXLGRQqSk11gTz0oONB8jsu1lcd6Wbi1\n' +
|
|
14
|
+
'5UYRNu3udGyfJyPosJu1JYwNfG3wyEdHPXAgMBAAECgYBht/\n' +
|
|
15
|
+
'6Xvn2H86URFcrdscoFNkLFhE7U+zWZaj2jt1Qjylx0YBAe/8wRxZ64HpSAe9XxJg//\n' +
|
|
16
|
+
'IMsUvyUeSgHXdWDQ931pmcAHJBI50wVQvEA0800gzEx1fv14/U/\n' +
|
|
17
|
+
'vKU+8RG7DPiVnJpa42SiKjNnymQ0PClHwn51uz3djR4L8EU1FIQJBAL8xsRIPdjBZHnQA8PWLBNE1Av7\n' +
|
|
18
|
+
'vswzR93jIVcL7pcCEFyI+dbXJF4xdFM0y2HiZ+FF23nPqDpzTdGLea5CA1XFMCQQC7VvnZFedQhJGqQ/\n' +
|
|
19
|
+
'UunOsikAWnetbUP6eJENSmQhxHeafnt6AZtmrLz3/+hLEgei0wsAhh3p2Ie64QMXUUkrntAkAeAII0v1\n' +
|
|
20
|
+
'BgjduFgJBPN51t5s+tiSGonwe6/DpQ+vipdere/mkqQWU9RZKjOwDIMYionCN5/\n' +
|
|
21
|
+
'CbE2N0EEr4xf64ZAkAgRGLUWUl2PN86DGp2lOCLG3Nd3XKTLEOXACcgW9KzHOkmqCITS7ApWpwZIpG/\n' +
|
|
22
|
+
'nkuaTzeiY82ObH8Wmu4nlP4hAkB7+RWa7DERSSIIb4+r6RcKxLLF5AtrHNQOaAq9aitdT5GfcjMPSTSK\n' +
|
|
23
|
+
'ovdXpDsUeDea1T4g3wORZExMHzqeH8Lb';
|
|
24
|
+
|
|
25
|
+
// 加密
|
|
26
|
+
export function encrypt(txt) {
|
|
27
|
+
const encryptor = new JSEncrypt();
|
|
28
|
+
encryptor.setPublicKey(publicKey); // 设置公钥
|
|
29
|
+
return encryptor.encrypt(txt); // 对需要加密的数据进行加密
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// 解密
|
|
33
|
+
export function decrypt(txt) {
|
|
34
|
+
const encryptor = new JSEncrypt();
|
|
35
|
+
encryptor.setPrivateKey(privateKey);
|
|
36
|
+
return encryptor.decrypt(txt);
|
|
37
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import Date from './datetime.js';
|
|
2
|
+
let endTime = new Date(new Date(dateToStr(new Date())).getTime() + 1000 * 60 * 60 * 24 - 1);
|
|
3
|
+
// 选择过去时间包含今天
|
|
4
|
+
export const calendarBaseShortcuts = [
|
|
5
|
+
{
|
|
6
|
+
text: '今天',
|
|
7
|
+
onClick(picker) {
|
|
8
|
+
const date = new Date(dateToStr(new Date()));
|
|
9
|
+
picker.$emit('pick', [date, endTime]);
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
text: '昨天',
|
|
14
|
+
onClick(picker) {
|
|
15
|
+
const start = new Date(dateToStr(new Date())).daysAgo(1);
|
|
16
|
+
picker.$emit('pick', [start, endTime.daysAgo(1)]);
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
text: '最近一周',
|
|
21
|
+
onClick(picker) {
|
|
22
|
+
const start = new Date(dateToStr(new Date())).daysAgo(6);
|
|
23
|
+
picker.$emit('pick', [start, endTime]);
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
text: '最近30天',
|
|
28
|
+
onClick(picker) {
|
|
29
|
+
const start = new Date(dateToStr(new Date())).daysAgo(29);
|
|
30
|
+
picker.$emit('pick', [start, endTime]);
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
text: '这个月',
|
|
35
|
+
onClick(picker) {
|
|
36
|
+
const start = new Date(dateToStr(new Date())).monthBegin();
|
|
37
|
+
picker.$emit('pick', [start, endTime]);
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: '本季度',
|
|
42
|
+
onClick(picker) {
|
|
43
|
+
const start = new Date(dateToStr(new Date())).quarterBegin();
|
|
44
|
+
picker.$emit('pick', [start, endTime]);
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
export const calendarMoveShortcuts = [
|
|
50
|
+
{
|
|
51
|
+
text: '‹ 往前一天 ',
|
|
52
|
+
onClick(picker) {
|
|
53
|
+
console.log(picker.value);
|
|
54
|
+
if (picker.value === undefined) {
|
|
55
|
+
picker.value = [new Date(dateToStr(new Date())), endTime];
|
|
56
|
+
}
|
|
57
|
+
const start = picker.value[0].daysAgo(1);
|
|
58
|
+
const end = picker.value[1].daysAgo(1);
|
|
59
|
+
picker.$emit('pick', [start, end]);
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
text: ' 往后一天 ›',
|
|
64
|
+
onClick(picker) {
|
|
65
|
+
let start = new Date(dateToStr(new Date()));
|
|
66
|
+
let end = endTime;
|
|
67
|
+
if (picker.value === undefined) {
|
|
68
|
+
picker.value = [start, end];
|
|
69
|
+
}
|
|
70
|
+
if (picker.value.length > 0) {
|
|
71
|
+
if (end - picker.value[1] > 8.64e7) {
|
|
72
|
+
start = picker.value[0].daysAgo(-1);
|
|
73
|
+
end = picker.value[1].daysAgo(-1);
|
|
74
|
+
} else {
|
|
75
|
+
start = picker.value[0];
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
picker.$emit('pick', [start, end]);
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
text: '« 往前一周 ',
|
|
83
|
+
onClick(picker) {
|
|
84
|
+
if (picker.value.length === 0) {
|
|
85
|
+
picker.value = [new Date(dateToStr(new Date())).daysAgo(7), endTime];
|
|
86
|
+
}
|
|
87
|
+
const start = picker.value[0].daysAgo(7);
|
|
88
|
+
const end = picker.value[1].daysAgo(7);
|
|
89
|
+
picker.$emit('pick', [start, end]);
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
text: ' 往后一周 »',
|
|
94
|
+
onClick(picker) {
|
|
95
|
+
let start = new Date(dateToStr(new Date())).daysAgo(7);
|
|
96
|
+
let end = endTime;
|
|
97
|
+
if (picker.value.length > 0) {
|
|
98
|
+
if (end - picker.value[1] > 8.64e7) {
|
|
99
|
+
start = picker.value[0].daysAgo(-7);
|
|
100
|
+
end = picker.value[1].daysAgo(-7);
|
|
101
|
+
} else {
|
|
102
|
+
start = picker.value[0];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
picker.$emit('pick', [start, end]);
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
export const calendarShortcuts = [
|
|
111
|
+
...calendarBaseShortcuts,
|
|
112
|
+
//...calendarMoveShortcuts
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
//日期格式转换
|
|
116
|
+
function dateToStr(datetime) {
|
|
117
|
+
var year = datetime.getFullYear();
|
|
118
|
+
var month = datetime.getMonth();
|
|
119
|
+
var month1 = datetime.getMonth() + 1; //js从0开始取
|
|
120
|
+
var date = datetime.getDate();
|
|
121
|
+
|
|
122
|
+
if (month < 10) {
|
|
123
|
+
month = '0' + month;
|
|
124
|
+
}
|
|
125
|
+
if (month1 < 10) {
|
|
126
|
+
month1 = '0' + month1;
|
|
127
|
+
}
|
|
128
|
+
if (date < 10) {
|
|
129
|
+
date = '0' + date;
|
|
130
|
+
}
|
|
131
|
+
return year + '/' + month1 + '/' + date;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// 禁止选择未来时间
|
|
135
|
+
|
|
136
|
+
// 选择过去时间包含今天
|
|
137
|
+
export const calendarBaseShortcutsProhibitTodayNext = [
|
|
138
|
+
{
|
|
139
|
+
text: '近一周',
|
|
140
|
+
onClick(picker) {
|
|
141
|
+
const end = new Date();
|
|
142
|
+
const start = new Date();
|
|
143
|
+
end.setTime(end.getTime() - 3600 * 1000 * 24);
|
|
144
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
145
|
+
picker.$emit('pick', [start, end]);
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
text: '近一个月',
|
|
150
|
+
onClick(picker) {
|
|
151
|
+
const end = new Date();
|
|
152
|
+
const start = new Date();
|
|
153
|
+
end.setTime(end.getTime() - 3600 * 1000 * 24);
|
|
154
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
155
|
+
picker.$emit('pick', [start, end]);
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
text: '近三个月',
|
|
160
|
+
onClick(picker) {
|
|
161
|
+
const end = new Date();
|
|
162
|
+
const start = new Date();
|
|
163
|
+
end.setTime(end.getTime() - 3600 * 1000 * 24);
|
|
164
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
165
|
+
picker.$emit('pick', [start, end]);
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
text: '最近一年',
|
|
170
|
+
onClick: picker => {
|
|
171
|
+
const end = new Date(); // 当前日期
|
|
172
|
+
const start = new Date(); // 开始日期
|
|
173
|
+
|
|
174
|
+
end.setDate(end.getDate() - 1); // 设置结束日期为昨天
|
|
175
|
+
start.setFullYear(start.getFullYear() - 1); // 设置开始日期为一年前
|
|
176
|
+
|
|
177
|
+
picker.$emit('pick', [start, end]);
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
text: '本年度',
|
|
182
|
+
onClick: picker => {
|
|
183
|
+
const end = new Date(); // 当前日期
|
|
184
|
+
const start = new Date(); // 开始日期
|
|
185
|
+
start.setDate(1);
|
|
186
|
+
end.setDate(end.getDate() - 1); // 设置结束日期为昨天
|
|
187
|
+
start.setMonth(0); // 设置开始日期为今年的1月份
|
|
188
|
+
picker.$emit('pick', [start, end]);
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
];
|
|
192
|
+
|
|
193
|
+
export const calendarShortcutsProhibitTodayNext = [...calendarBaseShortcutsProhibitTodayNext];
|
|
194
|
+
|
|
195
|
+
// 禁止选择包含今天未来
|
|
196
|
+
export const calendarDisabledDateProhibitTodayNext = time => {
|
|
197
|
+
const today = new Date();
|
|
198
|
+
return time.getTime() >= today.setHours(0, 0, 0, 0); // (Date.now() ) ; // 不可选未来日期
|
|
199
|
+
// defaultTime 没有设置,且valueFormat 格式为 yyyy-MM-dd
|
|
200
|
+
// return time.getTime() >= (Date.now() ) ; // 不可选未来日期
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
// 禁止选择未来时间 不包含今天
|
|
204
|
+
export const calendarDisabledDateProhibitNext = time => {
|
|
205
|
+
// defaultTime 设置范围 且 valueFormat 格式为 yyyy-MM-dd HH:mm:ss
|
|
206
|
+
const today = new Date(new Date().setDate(new Date().getDate() + 1));
|
|
207
|
+
return time.getTime() >= today.setHours(0, 0, 0, 0); // (Date.now() ) ; // 不可选未来日期
|
|
208
|
+
// defaultTime 没有设置,且valueFormat 格式为 yyyy-MM-dd
|
|
209
|
+
// return time.getTime() >= (Date.now() ) ; // 不可选未来日期
|
|
210
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
import { getToken } from '@/utils/auth';
|
|
3
|
+
|
|
4
|
+
export function upload(api, file, fileName) {
|
|
5
|
+
var data = new FormData();
|
|
6
|
+
data.append('file', file);
|
|
7
|
+
data.append('prefix', fileName);
|
|
8
|
+
const config = {
|
|
9
|
+
headers: { Authorization: getToken() },
|
|
10
|
+
};
|
|
11
|
+
return axios.post(api, data, config);
|
|
12
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by PanJiaChen on 16/11/18.
|
|
3
|
+
*/
|
|
4
|
+
import { checkUserName } from '@/api/system/role';
|
|
5
|
+
/**
|
|
6
|
+
* @param {string} path
|
|
7
|
+
* @returns {Boolean}
|
|
8
|
+
*/
|
|
9
|
+
export function isExternal(path) {
|
|
10
|
+
return /^(https?:|mailto:|tel:)/.test(path);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} str
|
|
15
|
+
* @returns {Boolean}
|
|
16
|
+
*/
|
|
17
|
+
export function validUsername(str) {
|
|
18
|
+
const valid_map = ['admin', 'editor'];
|
|
19
|
+
return valid_map.indexOf(str.trim()) >= 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @param {string} url
|
|
24
|
+
* @returns {Boolean}
|
|
25
|
+
*/
|
|
26
|
+
export function validURL(url) {
|
|
27
|
+
const reg =
|
|
28
|
+
/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;
|
|
29
|
+
return reg.test(url);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @param {string} str
|
|
34
|
+
* @returns {Boolean}
|
|
35
|
+
*/
|
|
36
|
+
export function validLowerCase(str) {
|
|
37
|
+
const reg = /^[a-z]+$/;
|
|
38
|
+
return reg.test(str);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @param {string} str
|
|
43
|
+
* @returns {Boolean}
|
|
44
|
+
*/
|
|
45
|
+
export function validUpperCase(str) {
|
|
46
|
+
const reg = /^[A-Z]+$/;
|
|
47
|
+
return reg.test(str);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @param {string} str
|
|
52
|
+
* @returns {Boolean}
|
|
53
|
+
*/
|
|
54
|
+
export function validAlphabets(str) {
|
|
55
|
+
const reg = /^[A-Za-z]+$/;
|
|
56
|
+
return reg.test(str);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param {string} email
|
|
61
|
+
* @returns {Boolean}
|
|
62
|
+
*/
|
|
63
|
+
export function validEmail(email) {
|
|
64
|
+
const reg =
|
|
65
|
+
/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
66
|
+
return reg.test(email);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function isvalidPhone(phone) {
|
|
70
|
+
const reg = /^1[3|6|4|5|7|8|9][0-9]\d{8}$/;
|
|
71
|
+
return reg.test(phone);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function validatePassword(password) {
|
|
75
|
+
const reg = /^(?![a-z0-9\W]+$)(?![A-Za-z\W]+$)(?![A-Z0-9\W]+$)[a-zA-Z0-9\W]{8,}$/;
|
|
76
|
+
return reg.test(password);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @param {string} str
|
|
81
|
+
* @returns {Boolean}
|
|
82
|
+
*/
|
|
83
|
+
export function isString(str) {
|
|
84
|
+
if (typeof str === 'string' || str instanceof String) {
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @param {Array} arg
|
|
92
|
+
* @returns {Boolean}
|
|
93
|
+
*/
|
|
94
|
+
export function isArray(arg) {
|
|
95
|
+
if (typeof Array.isArray === 'undefined') {
|
|
96
|
+
return Object.prototype.toString.call(arg) === '[object Array]';
|
|
97
|
+
}
|
|
98
|
+
return Array.isArray(arg);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* 是否合法IP地址
|
|
103
|
+
* @param rule
|
|
104
|
+
* @param value
|
|
105
|
+
* @param callback
|
|
106
|
+
*/
|
|
107
|
+
export function validateIP(rule, value, callback) {
|
|
108
|
+
if (value === '' || value === undefined || value == null) {
|
|
109
|
+
callback();
|
|
110
|
+
} else {
|
|
111
|
+
const reg =
|
|
112
|
+
/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;
|
|
113
|
+
if (!reg.test(value) && value !== '') {
|
|
114
|
+
callback(new Error('请输入正确的IP地址'));
|
|
115
|
+
} else {
|
|
116
|
+
callback();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* 是否手机号码或者固话*/
|
|
122
|
+
export function validatePhoneTwo(rule, value, callback) {
|
|
123
|
+
const reg = /^((0\d{2,3}-\d{7,8})|(1[345789]\d{9}))$/;
|
|
124
|
+
if (value === '' || value === undefined || value == null) {
|
|
125
|
+
callback();
|
|
126
|
+
} else {
|
|
127
|
+
if (!reg.test(value) && value !== '') {
|
|
128
|
+
callback(new Error('请输入联系方式'));
|
|
129
|
+
} else {
|
|
130
|
+
callback();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* 是否固话*/
|
|
136
|
+
export function validateTelephone(rule, value, callback) {
|
|
137
|
+
const reg = /0\d{2}-\d{7,8}/;
|
|
138
|
+
if (value === '' || value === undefined || value == null) {
|
|
139
|
+
callback();
|
|
140
|
+
} else {
|
|
141
|
+
if (!reg.test(value) && value !== '') {
|
|
142
|
+
callback(new Error('请输入正确的固话(格式:区号+号码,如010-1234567)'));
|
|
143
|
+
} else {
|
|
144
|
+
callback();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* 是否手机号码*/
|
|
150
|
+
export function validatePhone(rule, value, callback) {
|
|
151
|
+
const reg = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
|
|
152
|
+
if (!value) {
|
|
153
|
+
callback(new Error('请输入手机号'));
|
|
154
|
+
} else if (!reg.test(value) && value !== '') {
|
|
155
|
+
callback(new Error('请输入正确的手机号'));
|
|
156
|
+
} else {
|
|
157
|
+
callback();
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* 是否身份证号码*/
|
|
162
|
+
export function validateIdNo(rule, value, callback) {
|
|
163
|
+
const reg =
|
|
164
|
+
/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
|
165
|
+
if (value === '' || value === undefined || value == null) {
|
|
166
|
+
// callback()
|
|
167
|
+
callback(new Error('请输入身份证号码'));
|
|
168
|
+
} else {
|
|
169
|
+
if (!reg.test(value) && value !== '') {
|
|
170
|
+
callback(new Error('请输入正确的身份证号码'));
|
|
171
|
+
} else {
|
|
172
|
+
callback();
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* 是否为数字(年龄校验)*/
|
|
178
|
+
export function isNum(rule, value, callback) {
|
|
179
|
+
if (!value) {
|
|
180
|
+
return callback(new Error('请输入患者年龄'));
|
|
181
|
+
}
|
|
182
|
+
function isNumber(s) {
|
|
183
|
+
var regu = '^[0-9]+\.?[0-9]*$';
|
|
184
|
+
// var regu = "^[0-9]*$";
|
|
185
|
+
var re = new RegExp(regu);
|
|
186
|
+
if (re.test(s)) {
|
|
187
|
+
return true;
|
|
188
|
+
} else {
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
setTimeout(() => {
|
|
193
|
+
if (!isNumber(value)) {
|
|
194
|
+
callback(new Error('请输入数字值'));
|
|
195
|
+
} else {
|
|
196
|
+
callback();
|
|
197
|
+
}
|
|
198
|
+
}, 1000);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* 整数且保留两位小数*/
|
|
202
|
+
// export function isNumWithFloat(rule, value, callback)
|
|
203
|
+
// {
|
|
204
|
+
// function isNumWithFloat( s )
|
|
205
|
+
// {
|
|
206
|
+
// var regu = "/^\d+(\.\d{0,2})?$/";
|
|
207
|
+
// var re = new RegExp(regu);
|
|
208
|
+
// if (re.test(s))
|
|
209
|
+
// {
|
|
210
|
+
// return true;
|
|
211
|
+
// }
|
|
212
|
+
// else
|
|
213
|
+
// {
|
|
214
|
+
// return false;
|
|
215
|
+
// }
|
|
216
|
+
// }
|
|
217
|
+
// }
|
|
218
|
+
|
|
219
|
+
export function isNumWithFloat(rule, value, callback) {
|
|
220
|
+
const regu = /^[1-9]+\d*(\.\d{0,2})?$|^0?\.\d{0,2}$/;
|
|
221
|
+
// var regu = "^[0-9]*$";
|
|
222
|
+
var re = new RegExp(regu);
|
|
223
|
+
if (value === '' || value === undefined || value == null) {
|
|
224
|
+
callback();
|
|
225
|
+
} else {
|
|
226
|
+
if (!re.test(value) && value !== '') {
|
|
227
|
+
callback(new Error('请输入数字'));
|
|
228
|
+
} else {
|
|
229
|
+
callback();
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export function checkUserNameValidate(rule, value, callback, id) {
|
|
234
|
+
if (value == '') {
|
|
235
|
+
callback(new Error('请输入用户名'));
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const params = {
|
|
239
|
+
username: value,
|
|
240
|
+
id: id,
|
|
241
|
+
};
|
|
242
|
+
checkUserName(params)
|
|
243
|
+
.then(res => {
|
|
244
|
+
// console.log(res)
|
|
245
|
+
// if (res) {
|
|
246
|
+
// callback(new Error('用户名已存在'))
|
|
247
|
+
// }else{return
|
|
248
|
+
// callback()
|
|
249
|
+
// }
|
|
250
|
+
console.log(res);
|
|
251
|
+
if (res === undefined) {
|
|
252
|
+
callback();
|
|
253
|
+
}
|
|
254
|
+
})
|
|
255
|
+
.catch(res => {
|
|
256
|
+
if (res.code === 50003) {
|
|
257
|
+
callback('用户名已存在');
|
|
258
|
+
} else {
|
|
259
|
+
callback('网络异常');
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="dashboard-container">
|
|
3
|
+
<div class="dashboard-editor-container">
|
|
4
|
+
<el-row style="background: #fff; padding: 16px 16px 0; margin-bottom: 32px">
|
|
5
|
+
<heat-map />
|
|
6
|
+
</el-row>
|
|
7
|
+
<el-row :gutter="32">
|
|
8
|
+
<el-col :xs="24" :sm="24" :lg="8">
|
|
9
|
+
<div class="chart-wrapper">
|
|
10
|
+
<radar-chart />
|
|
11
|
+
</div>
|
|
12
|
+
</el-col>
|
|
13
|
+
<el-col :xs="24" :sm="24" :lg="8">
|
|
14
|
+
<div class="chart-wrapper">
|
|
15
|
+
<sunburst />
|
|
16
|
+
</div>
|
|
17
|
+
</el-col>
|
|
18
|
+
<el-col :xs="24" :sm="24" :lg="8">
|
|
19
|
+
<div class="chart-wrapper">
|
|
20
|
+
<gauge />
|
|
21
|
+
</div>
|
|
22
|
+
</el-col>
|
|
23
|
+
</el-row>
|
|
24
|
+
<el-row :gutter="12">
|
|
25
|
+
<el-col :span="12">
|
|
26
|
+
<div class="chart-wrapper">
|
|
27
|
+
<rich />
|
|
28
|
+
</div>
|
|
29
|
+
</el-col>
|
|
30
|
+
<el-col :span="12">
|
|
31
|
+
<div class="chart-wrapper">
|
|
32
|
+
<theme-river />
|
|
33
|
+
</div>
|
|
34
|
+
</el-col>
|
|
35
|
+
</el-row>
|
|
36
|
+
<el-row :gutter="32">
|
|
37
|
+
<el-col :xs="24" :sm="24" :lg="8">
|
|
38
|
+
<div class="chart-wrapper">
|
|
39
|
+
<graph />
|
|
40
|
+
</div>
|
|
41
|
+
</el-col>
|
|
42
|
+
<el-col :xs="24" :sm="24" :lg="8">
|
|
43
|
+
<div class="chart-wrapper">
|
|
44
|
+
<sankey />
|
|
45
|
+
</div>
|
|
46
|
+
</el-col>
|
|
47
|
+
<el-col :xs="24" :sm="24" :lg="8">
|
|
48
|
+
<div class="chart-wrapper">
|
|
49
|
+
<line3-d />
|
|
50
|
+
</div>
|
|
51
|
+
</el-col>
|
|
52
|
+
</el-row>
|
|
53
|
+
<el-row :gutter="12">
|
|
54
|
+
<el-col :span="12">
|
|
55
|
+
<div class="chart-wrapper">
|
|
56
|
+
<scatter />
|
|
57
|
+
</div>
|
|
58
|
+
</el-col>
|
|
59
|
+
<el-col :span="12">
|
|
60
|
+
<div class="chart-wrapper">
|
|
61
|
+
<point />
|
|
62
|
+
</div>
|
|
63
|
+
</el-col>
|
|
64
|
+
</el-row>
|
|
65
|
+
<el-row style="background: #fff; padding: 16px 16px 0; margin-bottom: 32px">
|
|
66
|
+
<div class="chart-wrapper">
|
|
67
|
+
<word-cloud />
|
|
68
|
+
</div>
|
|
69
|
+
</el-row>
|
|
70
|
+
<el-row style="background: #fff; padding: 16px 16px 0; margin-bottom: 32px">
|
|
71
|
+
<div class="chart-wrapper">
|
|
72
|
+
<category />
|
|
73
|
+
</div>
|
|
74
|
+
</el-row>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<script>
|
|
80
|
+
import RadarChart from '@/components/Echarts/RadarChart';
|
|
81
|
+
import HeatMap from '@/components/Echarts/HeatMap';
|
|
82
|
+
import Gauge from '@/components/Echarts/Gauge';
|
|
83
|
+
import Rich from '@/components/Echarts/Rich';
|
|
84
|
+
import ThemeRiver from '@/components/Echarts/ThemeRiver';
|
|
85
|
+
import Sunburst from '@/components/Echarts/Sunburst';
|
|
86
|
+
import Graph from '@/components/Echarts/Graph';
|
|
87
|
+
import Sankey from '@/components/Echarts/Sankey';
|
|
88
|
+
import Scatter from '@/components/Echarts/Scatter';
|
|
89
|
+
import Line3D from '@/components/Echarts/Line3D';
|
|
90
|
+
import Category from '@/components/Echarts/Category';
|
|
91
|
+
import Point from '@/components/Echarts/Point';
|
|
92
|
+
import WordCloud from '@/components/Echarts/WordCloud';
|
|
93
|
+
|
|
94
|
+
export default {
|
|
95
|
+
name: 'Echarts',
|
|
96
|
+
components: {
|
|
97
|
+
Point,
|
|
98
|
+
Category,
|
|
99
|
+
Graph,
|
|
100
|
+
HeatMap,
|
|
101
|
+
RadarChart,
|
|
102
|
+
Sunburst,
|
|
103
|
+
Gauge,
|
|
104
|
+
Rich,
|
|
105
|
+
ThemeRiver,
|
|
106
|
+
Sankey,
|
|
107
|
+
Line3D,
|
|
108
|
+
Scatter,
|
|
109
|
+
WordCloud,
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
</script>
|
|
113
|
+
|
|
114
|
+
<style rel="stylesheet/scss" lang="scss" scoped>
|
|
115
|
+
.dashboard-editor-container {
|
|
116
|
+
padding: 18px 22px 22px 22px;
|
|
117
|
+
background-color: rgb(240, 242, 245);
|
|
118
|
+
.chart-wrapper {
|
|
119
|
+
background: #fff;
|
|
120
|
+
padding: 16px 16px 0;
|
|
121
|
+
margin-bottom: 32px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
</style>
|