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,120 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="className" :style="{ height: height, width: width }" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import echarts from 'echarts';
|
|
7
|
+
|
|
8
|
+
require('echarts/theme/macarons'); // echarts theme
|
|
9
|
+
import { debounce } from '@/utils';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
props: {
|
|
13
|
+
className: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: 'chart',
|
|
16
|
+
},
|
|
17
|
+
width: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: '100%',
|
|
20
|
+
},
|
|
21
|
+
height: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: '300px',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
chart: null,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
mounted() {
|
|
32
|
+
this.initChart();
|
|
33
|
+
this.__resizeHandler = debounce(() => {
|
|
34
|
+
if (this.chart) {
|
|
35
|
+
this.chart.resize();
|
|
36
|
+
}
|
|
37
|
+
}, 100);
|
|
38
|
+
window.addEventListener('resize', this.__resizeHandler);
|
|
39
|
+
},
|
|
40
|
+
beforeDestroy() {
|
|
41
|
+
if (!this.chart) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
window.removeEventListener('resize', this.__resizeHandler);
|
|
45
|
+
this.chart.dispose();
|
|
46
|
+
this.chart = null;
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
initChart() {
|
|
50
|
+
this.chart = echarts.init(this.$el, 'macarons');
|
|
51
|
+
|
|
52
|
+
this.chart.setOption({
|
|
53
|
+
title: {
|
|
54
|
+
text: '漏斗图',
|
|
55
|
+
subtext: '纯属虚构',
|
|
56
|
+
},
|
|
57
|
+
tooltip: {
|
|
58
|
+
trigger: 'item',
|
|
59
|
+
formatter: '{a} <br/>{b} : {c}%',
|
|
60
|
+
},
|
|
61
|
+
toolbox: {
|
|
62
|
+
feature: {
|
|
63
|
+
dataView: { readOnly: false },
|
|
64
|
+
restore: {},
|
|
65
|
+
saveAsImage: {},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
legend: {
|
|
69
|
+
data: ['展现', '点击', '访问', '咨询', '订单'],
|
|
70
|
+
},
|
|
71
|
+
calculable: true,
|
|
72
|
+
series: [
|
|
73
|
+
{
|
|
74
|
+
name: '漏斗图',
|
|
75
|
+
type: 'funnel',
|
|
76
|
+
left: '10%',
|
|
77
|
+
top: 60,
|
|
78
|
+
bottom: 60,
|
|
79
|
+
width: '80%',
|
|
80
|
+
// height: {totalHeight} - y - y2,
|
|
81
|
+
min: 0,
|
|
82
|
+
max: 100,
|
|
83
|
+
minSize: '0%',
|
|
84
|
+
maxSize: '100%',
|
|
85
|
+
sort: 'descending',
|
|
86
|
+
gap: 2,
|
|
87
|
+
label: {
|
|
88
|
+
show: true,
|
|
89
|
+
position: 'inside',
|
|
90
|
+
},
|
|
91
|
+
labelLine: {
|
|
92
|
+
length: 10,
|
|
93
|
+
lineStyle: {
|
|
94
|
+
width: 1,
|
|
95
|
+
type: 'solid',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
itemStyle: {
|
|
99
|
+
borderColor: '#fff',
|
|
100
|
+
borderWidth: 1,
|
|
101
|
+
},
|
|
102
|
+
emphasis: {
|
|
103
|
+
label: {
|
|
104
|
+
fontSize: 20,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
data: [
|
|
108
|
+
{ value: 60, name: '访问' },
|
|
109
|
+
{ value: 40, name: '咨询' },
|
|
110
|
+
{ value: 20, name: '订单' },
|
|
111
|
+
{ value: 80, name: '点击' },
|
|
112
|
+
{ value: 100, name: '展现' },
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
</script>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="className" :style="{ height: height, width: width }" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import echarts from 'echarts';
|
|
7
|
+
|
|
8
|
+
require('echarts/theme/macarons'); // echarts theme
|
|
9
|
+
import { debounce } from '@/utils';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
props: {
|
|
13
|
+
className: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: 'chart',
|
|
16
|
+
},
|
|
17
|
+
width: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: '100%',
|
|
20
|
+
},
|
|
21
|
+
height: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: '300px',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
chart: null,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
mounted() {
|
|
32
|
+
this.initChart();
|
|
33
|
+
this.__resizeHandler = debounce(() => {
|
|
34
|
+
if (this.chart) {
|
|
35
|
+
this.chart.resize();
|
|
36
|
+
}
|
|
37
|
+
}, 100);
|
|
38
|
+
window.addEventListener('resize', this.__resizeHandler);
|
|
39
|
+
},
|
|
40
|
+
beforeDestroy() {
|
|
41
|
+
if (!this.chart) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
window.removeEventListener('resize', this.__resizeHandler);
|
|
45
|
+
this.chart.dispose();
|
|
46
|
+
this.chart = null;
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
initChart() {
|
|
50
|
+
this.chart = echarts.init(this.$el, 'macarons');
|
|
51
|
+
|
|
52
|
+
this.chart.setOption({
|
|
53
|
+
tooltip: {
|
|
54
|
+
formatter: '{a} <br/>{b} : {c}%',
|
|
55
|
+
},
|
|
56
|
+
toolbox: {
|
|
57
|
+
feature: {
|
|
58
|
+
restore: {},
|
|
59
|
+
saveAsImage: {},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
series: [
|
|
63
|
+
{
|
|
64
|
+
name: '业务指标',
|
|
65
|
+
type: 'gauge',
|
|
66
|
+
detail: { formatter: '{value}%' },
|
|
67
|
+
data: [{ value: 50, name: '完成率' }],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
});
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
</script>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="className" :style="{ height: height, width: width }" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import echarts from 'echarts';
|
|
7
|
+
|
|
8
|
+
require('echarts/theme/macarons'); // echarts theme
|
|
9
|
+
import { debounce } from '@/utils';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
props: {
|
|
13
|
+
className: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: 'chart',
|
|
16
|
+
},
|
|
17
|
+
width: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: '100%',
|
|
20
|
+
},
|
|
21
|
+
height: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: '300px',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
chart: null,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
mounted() {
|
|
32
|
+
this.initChart();
|
|
33
|
+
this.__resizeHandler = debounce(() => {
|
|
34
|
+
if (this.chart) {
|
|
35
|
+
this.chart.resize();
|
|
36
|
+
}
|
|
37
|
+
}, 100);
|
|
38
|
+
window.addEventListener('resize', this.__resizeHandler);
|
|
39
|
+
},
|
|
40
|
+
beforeDestroy() {
|
|
41
|
+
if (!this.chart) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
window.removeEventListener('resize', this.__resizeHandler);
|
|
45
|
+
this.chart.dispose();
|
|
46
|
+
this.chart = null;
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
initChart() {
|
|
50
|
+
this.chart = echarts.init(this.$el, 'macarons');
|
|
51
|
+
const axisData = ['周一', '周二', '周三', '很长很长的周四', '周五', '周六', '周日'];
|
|
52
|
+
const data = axisData.map(function (item, i) {
|
|
53
|
+
return Math.round(Math.random() * 1000 * (i + 1));
|
|
54
|
+
});
|
|
55
|
+
const links = data.map(function (item, i) {
|
|
56
|
+
return {
|
|
57
|
+
source: i,
|
|
58
|
+
target: i + 1,
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
links.pop();
|
|
62
|
+
this.chart.setOption({
|
|
63
|
+
title: {
|
|
64
|
+
text: '笛卡尔坐标系上的 Graph',
|
|
65
|
+
},
|
|
66
|
+
tooltip: {},
|
|
67
|
+
xAxis: {
|
|
68
|
+
type: 'category',
|
|
69
|
+
boundaryGap: false,
|
|
70
|
+
data: axisData,
|
|
71
|
+
},
|
|
72
|
+
yAxis: {
|
|
73
|
+
type: 'value',
|
|
74
|
+
},
|
|
75
|
+
series: [
|
|
76
|
+
{
|
|
77
|
+
type: 'graph',
|
|
78
|
+
layout: 'none',
|
|
79
|
+
coordinateSystem: 'cartesian2d',
|
|
80
|
+
symbolSize: 40,
|
|
81
|
+
label: {
|
|
82
|
+
normal: {
|
|
83
|
+
show: true,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
edgeSymbol: ['circle', 'arrow'],
|
|
87
|
+
edgeSymbolSize: [4, 10],
|
|
88
|
+
data: data,
|
|
89
|
+
links: links,
|
|
90
|
+
lineStyle: {
|
|
91
|
+
normal: {
|
|
92
|
+
color: '#2f4554',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
</script>
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="className" :style="{ height: height, width: width }" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import echarts from 'echarts';
|
|
7
|
+
|
|
8
|
+
require('echarts/theme/macarons'); // echarts theme
|
|
9
|
+
import { debounce } from '@/utils';
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
props: {
|
|
13
|
+
className: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: 'chart',
|
|
16
|
+
},
|
|
17
|
+
width: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: '100%',
|
|
20
|
+
},
|
|
21
|
+
height: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: '300px',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
chart: null,
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
mounted() {
|
|
32
|
+
this.initChart();
|
|
33
|
+
this.__resizeHandler = debounce(() => {
|
|
34
|
+
if (this.chart) {
|
|
35
|
+
this.chart.resize();
|
|
36
|
+
}
|
|
37
|
+
}, 100);
|
|
38
|
+
window.addEventListener('resize', this.__resizeHandler);
|
|
39
|
+
},
|
|
40
|
+
beforeDestroy() {
|
|
41
|
+
if (!this.chart) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
window.removeEventListener('resize', this.__resizeHandler);
|
|
45
|
+
this.chart.dispose();
|
|
46
|
+
this.chart = null;
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
initChart() {
|
|
50
|
+
this.chart = echarts.init(this.$el, 'macarons');
|
|
51
|
+
|
|
52
|
+
this.chart.setOption({
|
|
53
|
+
tooltip: {
|
|
54
|
+
position: 'top',
|
|
55
|
+
},
|
|
56
|
+
animation: false,
|
|
57
|
+
grid: {
|
|
58
|
+
height: '50%',
|
|
59
|
+
y: '10%',
|
|
60
|
+
},
|
|
61
|
+
xAxis: {
|
|
62
|
+
type: 'category',
|
|
63
|
+
data: [
|
|
64
|
+
'12a',
|
|
65
|
+
'1a',
|
|
66
|
+
'2a',
|
|
67
|
+
'3a',
|
|
68
|
+
'4a',
|
|
69
|
+
'5a',
|
|
70
|
+
'6a',
|
|
71
|
+
'7a',
|
|
72
|
+
'8a',
|
|
73
|
+
'9a',
|
|
74
|
+
'10a',
|
|
75
|
+
'11a',
|
|
76
|
+
'12p',
|
|
77
|
+
'1p',
|
|
78
|
+
'2p',
|
|
79
|
+
'3p',
|
|
80
|
+
'4p',
|
|
81
|
+
'5p',
|
|
82
|
+
'6p',
|
|
83
|
+
'7p',
|
|
84
|
+
'8p',
|
|
85
|
+
'9p',
|
|
86
|
+
'10p',
|
|
87
|
+
'11p',
|
|
88
|
+
],
|
|
89
|
+
splitArea: {
|
|
90
|
+
show: true,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
yAxis: {
|
|
94
|
+
type: 'category',
|
|
95
|
+
data: ['Saturday', 'Friday', 'Thursday', 'Wednesday', 'Tuesday', 'Monday', 'Sunday'],
|
|
96
|
+
splitArea: {
|
|
97
|
+
show: true,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
visualMap: {
|
|
101
|
+
min: 0,
|
|
102
|
+
max: 10,
|
|
103
|
+
calculable: true,
|
|
104
|
+
orient: 'horizontal',
|
|
105
|
+
left: 'center',
|
|
106
|
+
bottom: '15%',
|
|
107
|
+
},
|
|
108
|
+
series: [
|
|
109
|
+
{
|
|
110
|
+
name: 'Punch Card',
|
|
111
|
+
type: 'heatmap',
|
|
112
|
+
data: [
|
|
113
|
+
[0, 0, 5],
|
|
114
|
+
[0, 1, 1],
|
|
115
|
+
[0, 2, 0],
|
|
116
|
+
[0, 3, 0],
|
|
117
|
+
[0, 4, 0],
|
|
118
|
+
[0, 5, 0],
|
|
119
|
+
[0, 6, 0],
|
|
120
|
+
[0, 7, 0],
|
|
121
|
+
[0, 8, 0],
|
|
122
|
+
[0, 9, 0],
|
|
123
|
+
[0, 10, 0],
|
|
124
|
+
[0, 11, 2],
|
|
125
|
+
[0, 12, 4],
|
|
126
|
+
[0, 13, 1],
|
|
127
|
+
[0, 14, 1],
|
|
128
|
+
[0, 15, 3],
|
|
129
|
+
[0, 16, 4],
|
|
130
|
+
[0, 17, 6],
|
|
131
|
+
[0, 18, 4],
|
|
132
|
+
[0, 19, 4],
|
|
133
|
+
[0, 20, 3],
|
|
134
|
+
[0, 21, 3],
|
|
135
|
+
[0, 22, 2],
|
|
136
|
+
[0, 23, 5],
|
|
137
|
+
[1, 0, 7],
|
|
138
|
+
[1, 1, 0],
|
|
139
|
+
[1, 2, 0],
|
|
140
|
+
[1, 3, 0],
|
|
141
|
+
[1, 4, 0],
|
|
142
|
+
[1, 5, 0],
|
|
143
|
+
[1, 6, 0],
|
|
144
|
+
[1, 7, 0],
|
|
145
|
+
[1, 8, 0],
|
|
146
|
+
[1, 9, 0],
|
|
147
|
+
[1, 10, 5],
|
|
148
|
+
[1, 11, 2],
|
|
149
|
+
[1, 12, 2],
|
|
150
|
+
[1, 13, 6],
|
|
151
|
+
[1, 14, 9],
|
|
152
|
+
[1, 15, 11],
|
|
153
|
+
[1, 16, 6],
|
|
154
|
+
[1, 17, 7],
|
|
155
|
+
[1, 18, 8],
|
|
156
|
+
[1, 19, 12],
|
|
157
|
+
[1, 20, 5],
|
|
158
|
+
[1, 21, 5],
|
|
159
|
+
[1, 22, 7],
|
|
160
|
+
[1, 23, 2],
|
|
161
|
+
[2, 0, 1],
|
|
162
|
+
[2, 1, 1],
|
|
163
|
+
[2, 2, 0],
|
|
164
|
+
[2, 3, 0],
|
|
165
|
+
[2, 4, 0],
|
|
166
|
+
[2, 5, 0],
|
|
167
|
+
[2, 6, 0],
|
|
168
|
+
[2, 7, 0],
|
|
169
|
+
[2, 8, 0],
|
|
170
|
+
[2, 9, 0],
|
|
171
|
+
[2, 10, 3],
|
|
172
|
+
[2, 11, 2],
|
|
173
|
+
[2, 12, 1],
|
|
174
|
+
[2, 13, 9],
|
|
175
|
+
[2, 14, 8],
|
|
176
|
+
[2, 15, 10],
|
|
177
|
+
[2, 16, 6],
|
|
178
|
+
[2, 17, 5],
|
|
179
|
+
[2, 18, 5],
|
|
180
|
+
[2, 19, 5],
|
|
181
|
+
[2, 20, 7],
|
|
182
|
+
[2, 21, 4],
|
|
183
|
+
[2, 22, 2],
|
|
184
|
+
[2, 23, 4],
|
|
185
|
+
[3, 0, 7],
|
|
186
|
+
[3, 1, 3],
|
|
187
|
+
[3, 2, 0],
|
|
188
|
+
[3, 3, 0],
|
|
189
|
+
[3, 4, 0],
|
|
190
|
+
[3, 5, 0],
|
|
191
|
+
[3, 6, 0],
|
|
192
|
+
[3, 7, 0],
|
|
193
|
+
[3, 8, 1],
|
|
194
|
+
[3, 9, 0],
|
|
195
|
+
[3, 10, 5],
|
|
196
|
+
[3, 11, 4],
|
|
197
|
+
[3, 12, 7],
|
|
198
|
+
[3, 13, 14],
|
|
199
|
+
[3, 14, 13],
|
|
200
|
+
[3, 15, 12],
|
|
201
|
+
[3, 16, 9],
|
|
202
|
+
[3, 17, 5],
|
|
203
|
+
[3, 18, 5],
|
|
204
|
+
[3, 19, 10],
|
|
205
|
+
[3, 20, 6],
|
|
206
|
+
[3, 21, 4],
|
|
207
|
+
[3, 22, 4],
|
|
208
|
+
[3, 23, 1],
|
|
209
|
+
[4, 0, 1],
|
|
210
|
+
[4, 1, 3],
|
|
211
|
+
[4, 2, 0],
|
|
212
|
+
[4, 3, 0],
|
|
213
|
+
[4, 4, 0],
|
|
214
|
+
[4, 5, 1],
|
|
215
|
+
[4, 6, 0],
|
|
216
|
+
[4, 7, 0],
|
|
217
|
+
[4, 8, 0],
|
|
218
|
+
[4, 9, 2],
|
|
219
|
+
[4, 10, 4],
|
|
220
|
+
[4, 11, 4],
|
|
221
|
+
[4, 12, 2],
|
|
222
|
+
[4, 13, 4],
|
|
223
|
+
[4, 14, 4],
|
|
224
|
+
[4, 15, 14],
|
|
225
|
+
[4, 16, 12],
|
|
226
|
+
[4, 17, 1],
|
|
227
|
+
[4, 18, 8],
|
|
228
|
+
[4, 19, 5],
|
|
229
|
+
[4, 20, 3],
|
|
230
|
+
[4, 21, 7],
|
|
231
|
+
[4, 22, 3],
|
|
232
|
+
[4, 23, 0],
|
|
233
|
+
[5, 0, 2],
|
|
234
|
+
[5, 1, 1],
|
|
235
|
+
[5, 2, 0],
|
|
236
|
+
[5, 3, 3],
|
|
237
|
+
[5, 4, 0],
|
|
238
|
+
[5, 5, 0],
|
|
239
|
+
[5, 6, 0],
|
|
240
|
+
[5, 7, 0],
|
|
241
|
+
[5, 8, 2],
|
|
242
|
+
[5, 9, 0],
|
|
243
|
+
[5, 10, 4],
|
|
244
|
+
[5, 11, 1],
|
|
245
|
+
[5, 12, 5],
|
|
246
|
+
[5, 13, 10],
|
|
247
|
+
[5, 14, 5],
|
|
248
|
+
[5, 15, 7],
|
|
249
|
+
[5, 16, 11],
|
|
250
|
+
[5, 17, 6],
|
|
251
|
+
[5, 18, 0],
|
|
252
|
+
[5, 19, 5],
|
|
253
|
+
[5, 20, 3],
|
|
254
|
+
[5, 21, 4],
|
|
255
|
+
[5, 22, 2],
|
|
256
|
+
[5, 23, 0],
|
|
257
|
+
[6, 0, 1],
|
|
258
|
+
[6, 1, 0],
|
|
259
|
+
[6, 2, 0],
|
|
260
|
+
[6, 3, 0],
|
|
261
|
+
[6, 4, 0],
|
|
262
|
+
[6, 5, 0],
|
|
263
|
+
[6, 6, 0],
|
|
264
|
+
[6, 7, 0],
|
|
265
|
+
[6, 8, 0],
|
|
266
|
+
[6, 9, 0],
|
|
267
|
+
[6, 10, 1],
|
|
268
|
+
[6, 11, 0],
|
|
269
|
+
[6, 12, 2],
|
|
270
|
+
[6, 13, 1],
|
|
271
|
+
[6, 14, 3],
|
|
272
|
+
[6, 15, 4],
|
|
273
|
+
[6, 16, 0],
|
|
274
|
+
[6, 17, 0],
|
|
275
|
+
[6, 18, 0],
|
|
276
|
+
[6, 19, 0],
|
|
277
|
+
[6, 20, 1],
|
|
278
|
+
[6, 21, 2],
|
|
279
|
+
[6, 22, 2],
|
|
280
|
+
[6, 23, 6],
|
|
281
|
+
].map(function (item) {
|
|
282
|
+
return [item[1], item[0], item[2] || '-'];
|
|
283
|
+
}),
|
|
284
|
+
label: {
|
|
285
|
+
normal: {
|
|
286
|
+
show: true,
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
itemStyle: {
|
|
290
|
+
emphasis: {
|
|
291
|
+
shadowBlur: 10,
|
|
292
|
+
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
|
293
|
+
},
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
});
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
</script>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="className" :style="{ height: height, width: width }" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
import echarts from 'echarts';
|
|
7
|
+
import 'echarts-gl';
|
|
8
|
+
|
|
9
|
+
require('echarts/theme/macarons'); // echarts theme
|
|
10
|
+
import { debounce } from '@/utils';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
props: {
|
|
14
|
+
className: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: 'chart',
|
|
17
|
+
},
|
|
18
|
+
width: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: '100%',
|
|
21
|
+
},
|
|
22
|
+
height: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: '300px',
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
data() {
|
|
28
|
+
return {
|
|
29
|
+
chart: null,
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
mounted() {
|
|
33
|
+
this.initChart();
|
|
34
|
+
this.__resizeHandler = debounce(() => {
|
|
35
|
+
if (this.chart) {
|
|
36
|
+
this.chart.resize();
|
|
37
|
+
}
|
|
38
|
+
}, 100);
|
|
39
|
+
window.addEventListener('resize', this.__resizeHandler);
|
|
40
|
+
},
|
|
41
|
+
beforeDestroy() {
|
|
42
|
+
if (!this.chart) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
window.removeEventListener('resize', this.__resizeHandler);
|
|
46
|
+
this.chart.dispose();
|
|
47
|
+
this.chart = null;
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
initChart() {
|
|
51
|
+
this.chart = echarts.init(this.$el, 'macarons');
|
|
52
|
+
const data = [];
|
|
53
|
+
for (let t = 0; t < 25; t += 0.001) {
|
|
54
|
+
const x = (1 + 0.25 * Math.cos(75 * t)) * Math.cos(t);
|
|
55
|
+
const y = (1 + 0.25 * Math.cos(75 * t)) * Math.sin(t);
|
|
56
|
+
const z = t + 2.0 * Math.sin(75 * t);
|
|
57
|
+
data.push([x, y, z]);
|
|
58
|
+
}
|
|
59
|
+
this.chart.setOption({
|
|
60
|
+
tooltip: {},
|
|
61
|
+
backgroundColor: '#fff',
|
|
62
|
+
visualMap: {
|
|
63
|
+
show: false,
|
|
64
|
+
dimension: 2,
|
|
65
|
+
min: 0,
|
|
66
|
+
max: 30,
|
|
67
|
+
inRange: {
|
|
68
|
+
color: [
|
|
69
|
+
'#313695',
|
|
70
|
+
'#4575b4',
|
|
71
|
+
'#74add1',
|
|
72
|
+
'#abd9e9',
|
|
73
|
+
'#e0f3f8',
|
|
74
|
+
'#ffffbf',
|
|
75
|
+
'#fee090',
|
|
76
|
+
'#fdae61',
|
|
77
|
+
'#f46d43',
|
|
78
|
+
'#d73027',
|
|
79
|
+
'#a50026',
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
xAxis3D: {
|
|
84
|
+
type: 'value',
|
|
85
|
+
},
|
|
86
|
+
yAxis3D: {
|
|
87
|
+
type: 'value',
|
|
88
|
+
},
|
|
89
|
+
zAxis3D: {
|
|
90
|
+
type: 'value',
|
|
91
|
+
},
|
|
92
|
+
grid3D: {
|
|
93
|
+
viewControl: {
|
|
94
|
+
projection: 'orthographic',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
series: [
|
|
98
|
+
{
|
|
99
|
+
type: 'line3D',
|
|
100
|
+
data: data,
|
|
101
|
+
lineStyle: {
|
|
102
|
+
width: 4,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
</script>
|