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,57 @@
|
|
|
1
|
+
import { debounce } from '@/utils';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
data() {
|
|
5
|
+
return {
|
|
6
|
+
$_sidebarElm: null,
|
|
7
|
+
$_resizeHandler: null,
|
|
8
|
+
};
|
|
9
|
+
},
|
|
10
|
+
mounted() {
|
|
11
|
+
this.$_resizeHandler = debounce(() => {
|
|
12
|
+
if (this.chart) {
|
|
13
|
+
this.chart.resize();
|
|
14
|
+
}
|
|
15
|
+
}, 100);
|
|
16
|
+
this.$_initResizeEvent();
|
|
17
|
+
this.$_initSidebarResizeEvent();
|
|
18
|
+
},
|
|
19
|
+
beforeDestroy() {
|
|
20
|
+
this.$_destroyResizeEvent();
|
|
21
|
+
this.$_destroySidebarResizeEvent();
|
|
22
|
+
},
|
|
23
|
+
// to fixed bug when cached by keep-alive
|
|
24
|
+
// https://github.com/PanJiaChen/vue-element-admin/issues/2116
|
|
25
|
+
activated() {
|
|
26
|
+
this.$_initResizeEvent();
|
|
27
|
+
this.$_initSidebarResizeEvent();
|
|
28
|
+
},
|
|
29
|
+
deactivated() {
|
|
30
|
+
this.$_destroyResizeEvent();
|
|
31
|
+
this.$_destroySidebarResizeEvent();
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
// use $_ for mixins properties
|
|
35
|
+
// https://vuejs.org/v2/style-guide/index.html#Private-property-names-essential
|
|
36
|
+
$_initResizeEvent() {
|
|
37
|
+
window.addEventListener('resize', this.$_resizeHandler);
|
|
38
|
+
},
|
|
39
|
+
$_destroyResizeEvent() {
|
|
40
|
+
window.removeEventListener('resize', this.$_resizeHandler);
|
|
41
|
+
},
|
|
42
|
+
$_sidebarResizeHandler(e) {
|
|
43
|
+
if (e.propertyName === 'width') {
|
|
44
|
+
this.$_resizeHandler();
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
$_initSidebarResizeEvent() {
|
|
48
|
+
this.$_sidebarElm = document.getElementsByClassName('sidebar-container')[0];
|
|
49
|
+
this.$_sidebarElm &&
|
|
50
|
+
this.$_sidebarElm.addEventListener('transitionend', this.$_sidebarResizeHandler);
|
|
51
|
+
},
|
|
52
|
+
$_destroySidebarResizeEvent() {
|
|
53
|
+
this.$_sidebarElm &&
|
|
54
|
+
this.$_sidebarElm.removeEventListener('transitionend', this.$_sidebarResizeHandler);
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="table-Data">
|
|
4
|
+
<!-- <div class="exploreFlex">
|
|
5
|
+
<el-button :downloadLoading="downloadLoading" @click="explore" type="primary" size="small">导出</el-button>
|
|
6
|
+
</div> -->
|
|
7
|
+
<el-form
|
|
8
|
+
:inline="true"
|
|
9
|
+
:model="query"
|
|
10
|
+
ref="topForm"
|
|
11
|
+
class="form-inline-hospital"
|
|
12
|
+
size="small">
|
|
13
|
+
<el-form-item prop="softwareType">
|
|
14
|
+
<el-select
|
|
15
|
+
v-model="query.softwareType"
|
|
16
|
+
clearable
|
|
17
|
+
@change="crud.toQuery"
|
|
18
|
+
placeholder="软件类型"
|
|
19
|
+
class="filter-item"
|
|
20
|
+
style="width: 160px">
|
|
21
|
+
<el-option v-for="item in softData" :key="item" :label="item" :value="item" />
|
|
22
|
+
</el-select>
|
|
23
|
+
</el-form-item>
|
|
24
|
+
<!-- 医院等级 -->
|
|
25
|
+
<el-form-item>
|
|
26
|
+
<el-select
|
|
27
|
+
v-model="query.modality"
|
|
28
|
+
clearable
|
|
29
|
+
multiple
|
|
30
|
+
@change="crud.toQuery"
|
|
31
|
+
placeholder="检查模式"
|
|
32
|
+
class="filter-item"
|
|
33
|
+
style="width: 160px">
|
|
34
|
+
<el-option
|
|
35
|
+
v-for="item in dict.machine_moshi"
|
|
36
|
+
:key="item.value"
|
|
37
|
+
:label="item.label"
|
|
38
|
+
:value="item.label" />
|
|
39
|
+
</el-select>
|
|
40
|
+
</el-form-item>
|
|
41
|
+
|
|
42
|
+
<el-button @click="crud.toQuery()" class="filter-item" size="small">查询 </el-button>
|
|
43
|
+
<el-button @click="resetForm" class="filter-item" size="small">重置 </el-button>
|
|
44
|
+
<!-- <div class="exploreFlex"> -->
|
|
45
|
+
<el-button :loading="downloadLoading" @click="explore" class="filter-item" size="small"
|
|
46
|
+
>导出</el-button
|
|
47
|
+
>
|
|
48
|
+
<!-- </div> -->
|
|
49
|
+
</el-form>
|
|
50
|
+
<!-- 表格 -->
|
|
51
|
+
<el-table :data="crud.data" ref="cloudTable" v-loading="crud.loading">
|
|
52
|
+
<el-table-column label="序号" width="60px">
|
|
53
|
+
<template slot-scope="scope">
|
|
54
|
+
<span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
|
|
55
|
+
</template>
|
|
56
|
+
</el-table-column>
|
|
57
|
+
<el-table-column
|
|
58
|
+
v-for="(item, index) in headerTable"
|
|
59
|
+
:key="index.key"
|
|
60
|
+
:label="item.label"
|
|
61
|
+
:prop="item.prop"
|
|
62
|
+
:show-overflow-tooltip="true"
|
|
63
|
+
:min-width="item.width">
|
|
64
|
+
<template slot-scope="scope">
|
|
65
|
+
<div v-if="item.prop == 'realMachineStatus'">
|
|
66
|
+
{{ scope.row.realMachineStatus == 1 ? '是' : '否' }}
|
|
67
|
+
</div>
|
|
68
|
+
<div v-else>{{ scope.row[item.prop] || omitData }}</div>
|
|
69
|
+
</template>
|
|
70
|
+
</el-table-column>
|
|
71
|
+
<el-table-column label="操作" width="80" fixed="right">
|
|
72
|
+
<template slot-scope="scope">
|
|
73
|
+
<el-button
|
|
74
|
+
size="mini"
|
|
75
|
+
:disabled="scope.row.realMachineStatus == 1"
|
|
76
|
+
type="text"
|
|
77
|
+
@click="deletData(scope.row)"
|
|
78
|
+
>删除
|
|
79
|
+
</el-button>
|
|
80
|
+
</template>
|
|
81
|
+
</el-table-column>
|
|
82
|
+
</el-table>
|
|
83
|
+
<p>打印次数总计:{{ getTotal() }}</p>
|
|
84
|
+
<!--分页组件-->
|
|
85
|
+
<pagination />
|
|
86
|
+
<div class="warningStyle">
|
|
87
|
+
<div>
|
|
88
|
+
<i class="el-icon-warning warning-icon"></i>
|
|
89
|
+
注明:该列表只展示该时间段活跃的自助机信息
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
|
|
96
|
+
<script>
|
|
97
|
+
import pagination from '@crud/Pagination';
|
|
98
|
+
import CRUD, { presenter, header, crud } from '@crud/crud';
|
|
99
|
+
import { removeMachine } from '@/api/selfStatistics/index.js';
|
|
100
|
+
import { codemirror } from 'vue-codemirror';
|
|
101
|
+
import 'codemirror/theme/idea.css';
|
|
102
|
+
import 'codemirror/mode/sql/sql.js';
|
|
103
|
+
import 'codemirror/mode/xml/xml';
|
|
104
|
+
import 'codemirror/theme/monokai.css';
|
|
105
|
+
import { mapGetters } from 'vuex';
|
|
106
|
+
import { downloadFile } from '@/utils/index';
|
|
107
|
+
import { download } from '@/api/data';
|
|
108
|
+
|
|
109
|
+
export default {
|
|
110
|
+
name: 'cloudSet',
|
|
111
|
+
components: {
|
|
112
|
+
pagination,
|
|
113
|
+
codemirror,
|
|
114
|
+
},
|
|
115
|
+
props: {
|
|
116
|
+
// cloudDetail: {
|
|
117
|
+
// type: Object,
|
|
118
|
+
// required: true,
|
|
119
|
+
// },
|
|
120
|
+
},
|
|
121
|
+
cruds() {
|
|
122
|
+
return CRUD({
|
|
123
|
+
title: '医院管理',
|
|
124
|
+
url: '',
|
|
125
|
+
sort: [],
|
|
126
|
+
query: {},
|
|
127
|
+
});
|
|
128
|
+
},
|
|
129
|
+
dicts: ['machine_moshi'],
|
|
130
|
+
|
|
131
|
+
mixins: [presenter(), header(), crud()],
|
|
132
|
+
data() {
|
|
133
|
+
return {
|
|
134
|
+
omitData: '-',
|
|
135
|
+
headerTable: [
|
|
136
|
+
{ label: 'MAC', prop: 'machineId', width: '150px' },
|
|
137
|
+
{ label: '所属科室', prop: 'departmentName', width: '150px' },
|
|
138
|
+
{ label: '具体位置', prop: 'specificLocation', width: '150px' },
|
|
139
|
+
{ label: '软件类型', prop: 'softwareType', width: '100px' },
|
|
140
|
+
{ label: '硬件厂家', prop: 'factory', width: '150px' },
|
|
141
|
+
{ label: '自助机编号', prop: 'serialNumber', width: '150px' },
|
|
142
|
+
{ label: '打印报告量', prop: 'printTimes', width: '120px' },
|
|
143
|
+
{ label: '是否为真实自助机', prop: 'realMachineStatus', width: '140px' },
|
|
144
|
+
],
|
|
145
|
+
softData: ['影联'],
|
|
146
|
+
currentDetail: {},
|
|
147
|
+
downloadLoading: false,
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
created() {
|
|
152
|
+
this.tableInit();
|
|
153
|
+
},
|
|
154
|
+
activated() {
|
|
155
|
+
this.tableInit();
|
|
156
|
+
},
|
|
157
|
+
computed: {
|
|
158
|
+
...mapGetters(['user', 'cloutSetDetail']),
|
|
159
|
+
},
|
|
160
|
+
watch: {
|
|
161
|
+
// cloudDetail: {
|
|
162
|
+
// // 对对象进行深度监听
|
|
163
|
+
// handler(val) {
|
|
164
|
+
// if (val.hospitalId) {
|
|
165
|
+
// this.query = {};
|
|
166
|
+
// this.currentDetail = val;
|
|
167
|
+
// this.query.softwareType = val.softwareType;
|
|
168
|
+
// this.crud.toQuery();
|
|
169
|
+
// }
|
|
170
|
+
// },
|
|
171
|
+
// immediate: true,
|
|
172
|
+
// deep: true,
|
|
173
|
+
// },
|
|
174
|
+
},
|
|
175
|
+
methods: {
|
|
176
|
+
getCloudDetail(val) {
|
|
177
|
+
if (val.hospitalId) {
|
|
178
|
+
this.crud.url = 'machine/getHospitalTableDetailData';
|
|
179
|
+
this.query = {};
|
|
180
|
+
this.currentDetail = val;
|
|
181
|
+
this.query.softwareType = val.softwareType;
|
|
182
|
+
this.crud.toQuery();
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
getTotal() {
|
|
186
|
+
return this.crud.data.reduce((total, obj) => total + obj.printTimes, 0);
|
|
187
|
+
},
|
|
188
|
+
forceUpdate() {
|
|
189
|
+
this.$forceUpdate(); // 强制刷新
|
|
190
|
+
},
|
|
191
|
+
deletData(row) {
|
|
192
|
+
this.$confirm(
|
|
193
|
+
'是否确定删除该条数据?确定删除后,该MAC及MAC相关的所有打印数据会同步删除',
|
|
194
|
+
'提示',
|
|
195
|
+
{
|
|
196
|
+
confirmButtonText: '确定',
|
|
197
|
+
cancelButtonText: '取消',
|
|
198
|
+
type: 'warning',
|
|
199
|
+
}
|
|
200
|
+
).then(() => {
|
|
201
|
+
let data = {
|
|
202
|
+
machineId: row.machineId,
|
|
203
|
+
hospitalId: this.currentDetail.hospitalId,
|
|
204
|
+
};
|
|
205
|
+
removeMachine(data).then(res => {
|
|
206
|
+
this.crud.toQuery();
|
|
207
|
+
this.$message({
|
|
208
|
+
type: 'success',
|
|
209
|
+
message: '删除成功!',
|
|
210
|
+
});
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
},
|
|
214
|
+
[CRUD.HOOK.beforeRefresh](crud) {
|
|
215
|
+
crud.query = {
|
|
216
|
+
...this.query,
|
|
217
|
+
hospitalId: this.currentDetail.hospitalId,
|
|
218
|
+
hospitalName: this.currentDetail.hospitalName,
|
|
219
|
+
startTime: this.currentDetail.startTime,
|
|
220
|
+
endTime: this.currentDetail.endTime,
|
|
221
|
+
};
|
|
222
|
+
Object.keys(this.query).map(key => {
|
|
223
|
+
if (typeof this.query[key] == 'string') {
|
|
224
|
+
this.query[key] = this.query[key].trim();
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
return true;
|
|
228
|
+
},
|
|
229
|
+
tableInit() {
|
|
230
|
+
this.$nextTick(() => {
|
|
231
|
+
// myTable是表格的ref属性值
|
|
232
|
+
if (this.$refs.cloudTable && this.$refs.cloudTable.doLayout) {
|
|
233
|
+
this.$refs.cloudTable.doLayout();
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
},
|
|
237
|
+
resetForm() {
|
|
238
|
+
Object.keys(this.query).map(key => {
|
|
239
|
+
this.query[key] = '';
|
|
240
|
+
});
|
|
241
|
+
this.crud.toQuery();
|
|
242
|
+
},
|
|
243
|
+
//导出按钮
|
|
244
|
+
explore() {
|
|
245
|
+
this.downloadLoading = true;
|
|
246
|
+
// let hospitalId=this.currentDetail.hospitalId
|
|
247
|
+
// let hospitalName=this.currentDetail.hospitalName,
|
|
248
|
+
let data = {
|
|
249
|
+
...this.query,
|
|
250
|
+
hospitalId: this.currentDetail.hospitalId,
|
|
251
|
+
hospitalName: this.currentDetail.hospitalName,
|
|
252
|
+
startTime: this.currentDetail.startTime,
|
|
253
|
+
endTime: this.currentDetail.endTime,
|
|
254
|
+
};
|
|
255
|
+
download('machine/downloadHospitalTableDetailData', data)
|
|
256
|
+
.then(result => {
|
|
257
|
+
this.downloadLoading = false;
|
|
258
|
+
})
|
|
259
|
+
.catch(e => {
|
|
260
|
+
let isCn = false;
|
|
261
|
+
let str = '';
|
|
262
|
+
if (this.currentDetail.startTime) {
|
|
263
|
+
str = this.currentDetail.startTime + '至' + this.currentDetail.endTime;
|
|
264
|
+
}
|
|
265
|
+
downloadFile(e, `${this.currentDetail.hospitalName} ${str}`, 'xlsx', isCn);
|
|
266
|
+
this.downloadLoading = false;
|
|
267
|
+
});
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
</script>
|
|
272
|
+
<style>
|
|
273
|
+
.cm-s-monokai.CodeMirror {
|
|
274
|
+
height: calc(100vh - 380px);
|
|
275
|
+
}
|
|
276
|
+
</style>
|
|
277
|
+
<style scoped lang="scss">
|
|
278
|
+
.exploreFlex {
|
|
279
|
+
padding: 8px;
|
|
280
|
+
text-align: right;
|
|
281
|
+
}
|
|
282
|
+
.warningStyle {
|
|
283
|
+
color: #ff7b35;
|
|
284
|
+
}
|
|
285
|
+
</style>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="table-Data">
|
|
3
|
+
<!-- 表格 -->
|
|
4
|
+
<el-table :data="crud.data" ref="offlineTable" v-loading="crud.loading">
|
|
5
|
+
<el-table-column label="序号" width="60px">
|
|
6
|
+
<template slot-scope="scope">
|
|
7
|
+
<span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
|
|
8
|
+
</template>
|
|
9
|
+
</el-table-column>
|
|
10
|
+
<el-table-column
|
|
11
|
+
v-for="(item, index) in headerTable"
|
|
12
|
+
:key="index.key"
|
|
13
|
+
:label="item.label"
|
|
14
|
+
:prop="item.prop"
|
|
15
|
+
:min-width="item.width">
|
|
16
|
+
<template slot-scope="scope">
|
|
17
|
+
<div v-if="item.prop == 'printTimes'">
|
|
18
|
+
{{ scope.row.printTimes || 0 }}
|
|
19
|
+
</div>
|
|
20
|
+
<div v-else>{{ scope.row[item.prop] || omitData }}</div>
|
|
21
|
+
</template>
|
|
22
|
+
</el-table-column>
|
|
23
|
+
</el-table>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import CRUD, { presenter, header, crud } from '@crud/crud';
|
|
29
|
+
import { mapGetters } from 'vuex';
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: 'cloudSet',
|
|
33
|
+
components: {},
|
|
34
|
+
cruds() {
|
|
35
|
+
return CRUD({
|
|
36
|
+
title: '医院管理',
|
|
37
|
+
url: '',
|
|
38
|
+
sort: [],
|
|
39
|
+
query: {},
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
props: {
|
|
43
|
+
data: {
|
|
44
|
+
type: Object,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
watch: {
|
|
48
|
+
data(newVal, old) {
|
|
49
|
+
console.log(newVal);
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
mixins: [presenter(), header(), crud()],
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
omitData: '-',
|
|
56
|
+
headerTable: [
|
|
57
|
+
{ label: '医院名称', prop: 'hospitalName', width: '150px' },
|
|
58
|
+
{ label: '影联客户端总量', prop: 'machineTotal', width: '120px' },
|
|
59
|
+
{ label: '客户端离线量', prop: 'offLine', width: '120px' },
|
|
60
|
+
{ label: '位置', prop: 'location', width: '300px' },
|
|
61
|
+
],
|
|
62
|
+
currentDetail: {},
|
|
63
|
+
downloadLoading: false,
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
created() {
|
|
67
|
+
this.tableInit();
|
|
68
|
+
},
|
|
69
|
+
activated() {
|
|
70
|
+
this.tableInit();
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
toQuery() {
|
|
74
|
+
this.crud.url = 'machine/getOffLineList';
|
|
75
|
+
this.crud.toQuery();
|
|
76
|
+
},
|
|
77
|
+
[CRUD.HOOK.beforeRefresh](crud) {
|
|
78
|
+
console.log(crud);
|
|
79
|
+
crud.query = {
|
|
80
|
+
...this.data,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
tableInit() {
|
|
84
|
+
this.$nextTick(() => {
|
|
85
|
+
// myTable是表格的ref属性值
|
|
86
|
+
if (this.$refs.offlineTable && this.$refs.offlineTable.doLayout) {
|
|
87
|
+
this.$refs.offlineTable.doLayout();
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
</script>
|
|
94
|
+
<style>
|
|
95
|
+
.cm-s-monokai.CodeMirror {
|
|
96
|
+
height: calc(100vh - 380px);
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
99
|
+
<style scoped lang="scss">
|
|
100
|
+
.table-Data {
|
|
101
|
+
max-height: 60vh;
|
|
102
|
+
overflow: auto;
|
|
103
|
+
}
|
|
104
|
+
</style>
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tableData">
|
|
3
|
+
<!-- 表格 -->
|
|
4
|
+
<el-table :data="crud.data" ref="offlineTable" v-loading="crud.loading">
|
|
5
|
+
<el-table-column label="序号" width="60px">
|
|
6
|
+
<template slot-scope="scope">
|
|
7
|
+
<span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
|
|
8
|
+
</template>
|
|
9
|
+
</el-table-column>
|
|
10
|
+
<el-table-column
|
|
11
|
+
v-for="(item, index) in headerTable"
|
|
12
|
+
:key="index.key"
|
|
13
|
+
:label="item.label"
|
|
14
|
+
:prop="item.prop"
|
|
15
|
+
:min-width="item.width">
|
|
16
|
+
<template slot-scope="scope">
|
|
17
|
+
<div v-if="item.prop == 'printTimes'">
|
|
18
|
+
{{ scope.row.printTimes || 0 }}
|
|
19
|
+
</div>
|
|
20
|
+
<div v-else>{{ scope.row[item.prop] || omitData }}</div>
|
|
21
|
+
</template>
|
|
22
|
+
</el-table-column>
|
|
23
|
+
</el-table>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import CRUD, { presenter, header, crud } from '@crud/crud';
|
|
29
|
+
import { mapGetters } from 'vuex';
|
|
30
|
+
|
|
31
|
+
export default {
|
|
32
|
+
name: 'cloudSet',
|
|
33
|
+
components: {},
|
|
34
|
+
cruds() {
|
|
35
|
+
return CRUD({
|
|
36
|
+
title: '医院管理',
|
|
37
|
+
url: '',
|
|
38
|
+
sort: [],
|
|
39
|
+
query: {},
|
|
40
|
+
});
|
|
41
|
+
},
|
|
42
|
+
props: {
|
|
43
|
+
data: {
|
|
44
|
+
type: Object,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
watch: {
|
|
48
|
+
data(newVal, old) {
|
|
49
|
+
console.log(newVal);
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
mixins: [presenter(), header(), crud()],
|
|
53
|
+
data() {
|
|
54
|
+
return {
|
|
55
|
+
omitData: '-',
|
|
56
|
+
headerTable: [
|
|
57
|
+
{ label: '医院名称', prop: 'hospitalName', width: '150px' },
|
|
58
|
+
{ label: '影联客户端总量', prop: 'machineTotal', width: '120px' },
|
|
59
|
+
{ label: '客户端离线量', prop: 'offLine', width: '120px' },
|
|
60
|
+
{ label: '位置', prop: 'location', width: '300px' },
|
|
61
|
+
],
|
|
62
|
+
currentDetail: {},
|
|
63
|
+
downloadLoading: false,
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
created() {
|
|
67
|
+
this.tableInit();
|
|
68
|
+
},
|
|
69
|
+
activated() {
|
|
70
|
+
this.tableInit();
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
toQuery() {
|
|
74
|
+
this.crud.url = 'machine/getOffLineList';
|
|
75
|
+
this.crud.toQuery();
|
|
76
|
+
},
|
|
77
|
+
[CRUD.HOOK.beforeRefresh](crud) {
|
|
78
|
+
console.log(crud);
|
|
79
|
+
crud.query = {
|
|
80
|
+
...this.data,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
tableInit() {
|
|
84
|
+
this.$nextTick(() => {
|
|
85
|
+
// myTable是表格的ref属性值
|
|
86
|
+
if (this.$refs.offlineTable && this.$refs.offlineTable.doLayout) {
|
|
87
|
+
this.$refs.offlineTable.doLayout();
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
</script>
|
|
94
|
+
<style>
|
|
95
|
+
.cm-s-monokai.CodeMirror {
|
|
96
|
+
height: calc(100vh - 380px);
|
|
97
|
+
}
|
|
98
|
+
</style>
|
|
99
|
+
<style scoped lang="scss">
|
|
100
|
+
.tableData {
|
|
101
|
+
max-height: 60vh;
|
|
102
|
+
overflow: auto;
|
|
103
|
+
}
|
|
104
|
+
</style>
|