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
|
+
};
|
package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/checkProjectCode.vue
ADDED
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="checkProjectCode">
|
|
3
|
+
<div class="warningStyle">
|
|
4
|
+
<div>
|
|
5
|
+
<i class="el-icon-warning warning-icon"></i>
|
|
6
|
+
提示:每日零点汇总监测
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<h4 style="padding: 10px 0; font-size: 15px">
|
|
10
|
+
检查项目编码监测数据
|
|
11
|
+
<el-button size="mini" style="margin-left: 8px" type="primary" @click="refreshAbnormal">
|
|
12
|
+
重新监测
|
|
13
|
+
</el-button>
|
|
14
|
+
</h4>
|
|
15
|
+
<el-form :model="query" inline>
|
|
16
|
+
<el-form-item>
|
|
17
|
+
<el-input
|
|
18
|
+
placeholder="请输入机构检查项目名称"
|
|
19
|
+
v-model="query.hospitalProjectItem"></el-input>
|
|
20
|
+
</el-form-item>
|
|
21
|
+
<el-form-item>
|
|
22
|
+
<el-input
|
|
23
|
+
placeholder="请输入机构检查项目编码"
|
|
24
|
+
v-model="query.hospitalProjectCode"></el-input>
|
|
25
|
+
</el-form-item>
|
|
26
|
+
<el-form-item>
|
|
27
|
+
<el-input placeholder="请输入检查模式" v-model="query.modality"></el-input>
|
|
28
|
+
</el-form-item>
|
|
29
|
+
<el-form-item>
|
|
30
|
+
<el-select placeholder="请选择判断类型" v-model="query.chargeType" @change="crud.toQuery">
|
|
31
|
+
<el-option
|
|
32
|
+
v-for="item in dict.exam_monitor_charge_type"
|
|
33
|
+
:key="item.value"
|
|
34
|
+
:label="item.label"
|
|
35
|
+
:value="item.value">
|
|
36
|
+
</el-option>
|
|
37
|
+
</el-select>
|
|
38
|
+
</el-form-item>
|
|
39
|
+
<el-form-item>
|
|
40
|
+
<el-select placeholder="请选择数据来源" v-model="query.dataSource" @change="crud.toQuery">
|
|
41
|
+
<el-option
|
|
42
|
+
v-for="item in dict.exam_monitor_data_source"
|
|
43
|
+
:key="item.value"
|
|
44
|
+
:label="item.label"
|
|
45
|
+
:value="item.value">
|
|
46
|
+
</el-option>
|
|
47
|
+
</el-select>
|
|
48
|
+
</el-form-item>
|
|
49
|
+
<el-button type="primary" @click="crud.toQuery">查询</el-button>
|
|
50
|
+
<el-button type="primary" plain @click="crud.resetQuery()">重置</el-button>
|
|
51
|
+
<el-button @click="dialogVisible = true">批量删除</el-button>
|
|
52
|
+
<el-button @click="downFile" :loading="downFileLoad">导出</el-button>
|
|
53
|
+
</el-form>
|
|
54
|
+
<el-table
|
|
55
|
+
:data="crud.data"
|
|
56
|
+
ref="machineManageTableref"
|
|
57
|
+
lazy
|
|
58
|
+
v-loading="crud.loading"
|
|
59
|
+
row-key="id"
|
|
60
|
+
:max-height="maxHeight">
|
|
61
|
+
<el-table-column label="序号" width="80px" align="center">
|
|
62
|
+
<template slot-scope="scope">
|
|
63
|
+
<span>
|
|
64
|
+
{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}
|
|
65
|
+
</span>
|
|
66
|
+
</template>
|
|
67
|
+
</el-table-column>
|
|
68
|
+
<el-table-column
|
|
69
|
+
v-for="(item, index) in projectCodeHeader"
|
|
70
|
+
:key="index"
|
|
71
|
+
align="center"
|
|
72
|
+
:label="item.label"
|
|
73
|
+
:prop="item.prop">
|
|
74
|
+
<template slot-scope="scope">
|
|
75
|
+
<span>
|
|
76
|
+
{{ scope.row[item.prop] || '-' }}
|
|
77
|
+
</span>
|
|
78
|
+
</template>
|
|
79
|
+
</el-table-column>
|
|
80
|
+
<el-table-column label="操作" width="160px" align="center" fixed="right">
|
|
81
|
+
<template slot-scope="scope">
|
|
82
|
+
<el-button
|
|
83
|
+
type="text"
|
|
84
|
+
v-if="scope.row.dataSource != 2 || !scope.row.hospitalProjectCode"
|
|
85
|
+
@click="opAbnormal(scope.row, 0)"
|
|
86
|
+
>忽略</el-button
|
|
87
|
+
>
|
|
88
|
+
<el-button type="text" v-if="scope.row.dataSource == 1" @click="opAbnormal(scope.row, 1)"
|
|
89
|
+
>检验</el-button
|
|
90
|
+
>
|
|
91
|
+
<el-button
|
|
92
|
+
type="text"
|
|
93
|
+
v-if="scope.row.dataSource != 2 && scope.row.hospitalProjectCode"
|
|
94
|
+
@click="opAbnormal(scope.row, 2)"
|
|
95
|
+
>添加对照</el-button
|
|
96
|
+
>
|
|
97
|
+
<el-button v-if="scope.row.dataSource == 2 && scope.row.hospitalProjectCode" type="text"
|
|
98
|
+
>---</el-button
|
|
99
|
+
>
|
|
100
|
+
</template>
|
|
101
|
+
</el-table-column>
|
|
102
|
+
</el-table>
|
|
103
|
+
<pagination style="margin-top: 15px" />
|
|
104
|
+
<el-dialog
|
|
105
|
+
title="请选择需要删除的数据类型"
|
|
106
|
+
:visible.sync="dialogVisible"
|
|
107
|
+
width="360px"
|
|
108
|
+
:before-close="handleClose">
|
|
109
|
+
<span>
|
|
110
|
+
<el-checkbox-group v-model="checkList">
|
|
111
|
+
<el-checkbox label="0" value="0">检查编码异常为空</el-checkbox>
|
|
112
|
+
<el-checkbox label="1" value="1">异常数据(归档列表)</el-checkbox>
|
|
113
|
+
</el-checkbox-group>
|
|
114
|
+
</span>
|
|
115
|
+
<span slot="footer" class="dialog-footer">
|
|
116
|
+
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
117
|
+
<el-button
|
|
118
|
+
type="primary"
|
|
119
|
+
:disabled="checkList && checkList.length == 0"
|
|
120
|
+
@click="batchDelAbnormal"
|
|
121
|
+
>确 定</el-button
|
|
122
|
+
>
|
|
123
|
+
</span>
|
|
124
|
+
</el-dialog>
|
|
125
|
+
</div>
|
|
126
|
+
</template>
|
|
127
|
+
<script>
|
|
128
|
+
import CRUD, { crud, form, header, presenter } from '@crud/crud';
|
|
129
|
+
import { refreshAbnormal, opAbnormal, batchDelAbnormal } from '@/api/institutionMonitor/index';
|
|
130
|
+
const defaultForm = {};
|
|
131
|
+
import pagination from '@crud/Pagination';
|
|
132
|
+
// 导出
|
|
133
|
+
import { downloadFile } from '@/utils/index';
|
|
134
|
+
import { download } from '@/api/data';
|
|
135
|
+
export default {
|
|
136
|
+
cruds() {
|
|
137
|
+
return CRUD({
|
|
138
|
+
title: '',
|
|
139
|
+
url: '/examMonitor/list',
|
|
140
|
+
sort: [],
|
|
141
|
+
query: {},
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
mixins: [presenter(), header(), form(defaultForm), crud()],
|
|
145
|
+
components: { pagination },
|
|
146
|
+
dicts: ['exam_monitor_charge_type', 'exam_monitor_data_source'],
|
|
147
|
+
data() {
|
|
148
|
+
return {
|
|
149
|
+
maxHeight: '500px',
|
|
150
|
+
projectCodeHeader: [
|
|
151
|
+
{ label: '机构检查项目名称', prop: 'hospitalProjectItem' },
|
|
152
|
+
{ label: '机构检查项目编码', prop: 'hospitalProjectCode' },
|
|
153
|
+
{ label: '检查模式', prop: 'modality' },
|
|
154
|
+
{ label: '判断类型', prop: 'chargeTypeDesc' },
|
|
155
|
+
{ label: '数据来源', prop: 'dataSourceDesc' },
|
|
156
|
+
],
|
|
157
|
+
downFileLoad: false,
|
|
158
|
+
dialogVisible: false,
|
|
159
|
+
checkList: [],
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
//
|
|
163
|
+
methods: {
|
|
164
|
+
[CRUD.HOOK.afterRefresh]() {
|
|
165
|
+
this.maxHeight = window.innerHeight - 450 + 'px';
|
|
166
|
+
},
|
|
167
|
+
[CRUD.HOOK.beforeRefresh](crud) {
|
|
168
|
+
crud.query.hospitalId = this.$route.params.scenceId;
|
|
169
|
+
},
|
|
170
|
+
|
|
171
|
+
refreshAbnormal() {
|
|
172
|
+
let params = {
|
|
173
|
+
hospitalId: this.$route.params.scenceId,
|
|
174
|
+
};
|
|
175
|
+
refreshAbnormal(params).then(res => {
|
|
176
|
+
console.log(res, 'res');
|
|
177
|
+
this.$message.success(res);
|
|
178
|
+
this.crud.toQuery();
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
opAbnormal(row, value) {
|
|
182
|
+
opAbnormal({ id: row.id, whiteType: value }).then(res => {
|
|
183
|
+
this.$message.success(
|
|
184
|
+
value == 0
|
|
185
|
+
? '忽略成功'
|
|
186
|
+
: value == 0
|
|
187
|
+
? '检验成功'
|
|
188
|
+
: res == 1
|
|
189
|
+
? '添加成功'
|
|
190
|
+
: '添加失败-该检查项目已存在'
|
|
191
|
+
);
|
|
192
|
+
console.log(res, '123');
|
|
193
|
+
this.crud.refresh();
|
|
194
|
+
});
|
|
195
|
+
},
|
|
196
|
+
handleClose() {
|
|
197
|
+
this.dialogVisible = false;
|
|
198
|
+
},
|
|
199
|
+
batchDelAbnormal() {
|
|
200
|
+
batchDelAbnormal({
|
|
201
|
+
hospitalId: this.$route.params.scenceId,
|
|
202
|
+
delType: this.checkList,
|
|
203
|
+
})
|
|
204
|
+
.then(res => {
|
|
205
|
+
console.log(res, 'res');
|
|
206
|
+
if (res) {
|
|
207
|
+
this.$message.success('删除成功');
|
|
208
|
+
this.crud.toQuery();
|
|
209
|
+
} else {
|
|
210
|
+
this.$message.warning('暂无相关数据可删除');
|
|
211
|
+
}
|
|
212
|
+
this.dialogVisible = false;
|
|
213
|
+
this.checkList = [];
|
|
214
|
+
})
|
|
215
|
+
.catch(err => {
|
|
216
|
+
this.dialogVisible = false;
|
|
217
|
+
this.checkList = [];
|
|
218
|
+
});
|
|
219
|
+
return;
|
|
220
|
+
this.$confirm('确定删除机构检查项目编码为空的全部数据?', '提示', {
|
|
221
|
+
confirmButtonText: '确定',
|
|
222
|
+
cancelButtonText: '取消',
|
|
223
|
+
type: 'warning',
|
|
224
|
+
})
|
|
225
|
+
.then(() => {})
|
|
226
|
+
.catch(() => {});
|
|
227
|
+
},
|
|
228
|
+
// 导出
|
|
229
|
+
downFile(row) {
|
|
230
|
+
let query = JSON.parse(JSON.stringify(this.query));
|
|
231
|
+
delete query.size;
|
|
232
|
+
delete query.page;
|
|
233
|
+
this.downFileLoad = true;
|
|
234
|
+
if (this.crud.data.length != 0) {
|
|
235
|
+
download('/examMonitor/abnormalExport', query)
|
|
236
|
+
.then(result => {})
|
|
237
|
+
.catch(data => {
|
|
238
|
+
this.downFileLoad = false;
|
|
239
|
+
downloadFile(data, '检查项目编码监测', 'xlsx');
|
|
240
|
+
});
|
|
241
|
+
} else {
|
|
242
|
+
this.$message.warning('暂无数据,无法导出');
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
</script>
|
|
248
|
+
<style lang="scss" scoped>
|
|
249
|
+
.checkProjectCode {
|
|
250
|
+
.warningStyle {
|
|
251
|
+
height: 34px;
|
|
252
|
+
background-color: #fff7f3;
|
|
253
|
+
font-size: 13px;
|
|
254
|
+
line-height: 34px;
|
|
255
|
+
color: #ff7b35;
|
|
256
|
+
padding: 0 12px;
|
|
257
|
+
display: flex;
|
|
258
|
+
justify-content: space-between;
|
|
259
|
+
align-items: center;
|
|
260
|
+
margin-bottom: 8px;
|
|
261
|
+
|
|
262
|
+
.warning-icon {
|
|
263
|
+
color: #ff7b35;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
</style>
|
package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/imageAbnormalMonitor.vue
ADDED
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="qualityMonitore">
|
|
3
|
+
<div class="warningStyle">
|
|
4
|
+
<div>
|
|
5
|
+
<i class="el-icon-warning warning-icon"></i>
|
|
6
|
+
提示:每天定时监测近一周的数据
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<el-form :inline="true" :model="query" ref="topForm" class="form-inline-hospital" size="small">
|
|
10
|
+
<el-form-item>
|
|
11
|
+
<date-range-picker
|
|
12
|
+
style="width: 300px; height: 34px"
|
|
13
|
+
popper-class="isDisabledDate"
|
|
14
|
+
:clearable="false"
|
|
15
|
+
v-model="query.checkTime"
|
|
16
|
+
valueFormat="yyyy-MM-dd"
|
|
17
|
+
:picker-options="pickerOptions"
|
|
18
|
+
@blur="forceUpdate" />
|
|
19
|
+
</el-form-item>
|
|
20
|
+
<el-button type="primary" @click="crud.toQuery" class="filter-item" size="small"
|
|
21
|
+
>查询</el-button
|
|
22
|
+
>
|
|
23
|
+
<!-- <el-button
|
|
24
|
+
size="small"
|
|
25
|
+
style="margin-left: 8px"
|
|
26
|
+
@click="upload"
|
|
27
|
+
>上传同步
|
|
28
|
+
</el-button> -->
|
|
29
|
+
</el-form>
|
|
30
|
+
<el-table :data="crud.data" v-loading="crud.loading">
|
|
31
|
+
<el-table-column label="序号" width="65px" fixed :show-overflow-tooltip="true">
|
|
32
|
+
<template slot-scope="scope">
|
|
33
|
+
<span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
|
|
34
|
+
</template>
|
|
35
|
+
</el-table-column>
|
|
36
|
+
<el-table-column
|
|
37
|
+
v-for="(item, index) in qualityTable"
|
|
38
|
+
:key="index"
|
|
39
|
+
:label="item.label"
|
|
40
|
+
:prop="item.prop"
|
|
41
|
+
:min-width="item.width">
|
|
42
|
+
<!-- 数据的遍历 scope.row就代表数据的每一个对象-->
|
|
43
|
+
<template slot-scope="scope">
|
|
44
|
+
<div v-if="item.prop == 'artificialStatisticsQuantity'">
|
|
45
|
+
<span v-if="scope.row.status == 1">{{
|
|
46
|
+
numberDeal(scope.row.artificialStatisticsQuantity)
|
|
47
|
+
}}</span>
|
|
48
|
+
<el-input
|
|
49
|
+
v-model="scope.row.inputValue"
|
|
50
|
+
v-else
|
|
51
|
+
placeholder="请输入正整数"
|
|
52
|
+
size="small"
|
|
53
|
+
type="number"
|
|
54
|
+
@change="forceUpdate"
|
|
55
|
+
:min="0"
|
|
56
|
+
oninput="if (value < 0) value = null;"></el-input>
|
|
57
|
+
</div>
|
|
58
|
+
<div v-else>
|
|
59
|
+
{{ numberDeal(scope.row[item.prop]) }}
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
</el-table-column>
|
|
63
|
+
<el-table-column label="操作" width="240" fixed="right">
|
|
64
|
+
<template slot-scope="scope">
|
|
65
|
+
<el-button
|
|
66
|
+
size="mini"
|
|
67
|
+
type="text"
|
|
68
|
+
:disabled="!scope.row.lookPicAbnormalQuantity"
|
|
69
|
+
@click="getLookPicAbnormalInfo(scope.row)"
|
|
70
|
+
style="margin-right: 5px">
|
|
71
|
+
查看详情
|
|
72
|
+
</el-button>
|
|
73
|
+
<div v-if="scope.row.status == 2" style="display: inline-block">
|
|
74
|
+
<el-button size="mini" type="text" @click="sureData(scope.row)"> 确定 </el-button>
|
|
75
|
+
<el-button size="mini" type="text" @click="cancelData(scope.row)"> 取消 </el-button>
|
|
76
|
+
</div>
|
|
77
|
+
<div v-else style="display: inline-block">
|
|
78
|
+
<el-button size="mini" type="text" @click="editData(scope.row)"> 编辑 </el-button>
|
|
79
|
+
<el-button size="mini" type="text" @click="refreshData(scope.row)"> 刷新 </el-button>
|
|
80
|
+
</div>
|
|
81
|
+
<el-button size="mini" type="text" @click="upload(scope.row)" style="margin-left: 5px">
|
|
82
|
+
维护确认
|
|
83
|
+
</el-button>
|
|
84
|
+
</template>
|
|
85
|
+
</el-table-column>
|
|
86
|
+
</el-table>
|
|
87
|
+
<pagination />
|
|
88
|
+
|
|
89
|
+
<!--表单渲染-->
|
|
90
|
+
<el-dialog title="查看详情" :visible.sync="dialogTableVisible" top="5vh" width="750px">
|
|
91
|
+
<el-table :data="picAbnormalInfo" :height="maxHeight">
|
|
92
|
+
<el-table-column label="序号" width="65px" type="index"> </el-table-column>
|
|
93
|
+
<el-table-column
|
|
94
|
+
v-for="(item, index) in picAbnormalInfoTable"
|
|
95
|
+
:key="index"
|
|
96
|
+
:label="item.label"
|
|
97
|
+
:prop="item.prop"
|
|
98
|
+
:min-width="item.width">
|
|
99
|
+
</el-table-column>
|
|
100
|
+
</el-table>
|
|
101
|
+
<!-- picAbnormalInfo -->
|
|
102
|
+
</el-dialog>
|
|
103
|
+
</div>
|
|
104
|
+
</template>
|
|
105
|
+
<script>
|
|
106
|
+
import CRUD, { crud, form, header, presenter } from '@crud/crud';
|
|
107
|
+
const defaultForm = {};
|
|
108
|
+
import {
|
|
109
|
+
uploadHandleDataMonitor,
|
|
110
|
+
updateArtificialStatisticsQuantity,
|
|
111
|
+
refreshLookPicAbnormalMonitorData,
|
|
112
|
+
getLookPicAbnormalInfo,
|
|
113
|
+
} from '@/api/institutionMonitor/index';
|
|
114
|
+
import pagination from '@crud/Pagination';
|
|
115
|
+
import DateRangePicker from '@/components/DateRangePicker';
|
|
116
|
+
import { getDay } from '@/utils/getTime';
|
|
117
|
+
const start = getDay(-30);
|
|
118
|
+
const end = getDay(-1);
|
|
119
|
+
export default {
|
|
120
|
+
cruds() {
|
|
121
|
+
return CRUD({
|
|
122
|
+
title: '机构管理',
|
|
123
|
+
url: '',
|
|
124
|
+
sort: [],
|
|
125
|
+
query: {
|
|
126
|
+
checkTime: [start, end],
|
|
127
|
+
},
|
|
128
|
+
page: {
|
|
129
|
+
page: 0,
|
|
130
|
+
size: 10,
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
mixins: [presenter(), header(), form(defaultForm), crud()],
|
|
136
|
+
dicts: ['monitor_data_type', 'ignore_reason'],
|
|
137
|
+
components: {
|
|
138
|
+
pagination,
|
|
139
|
+
DateRangePicker,
|
|
140
|
+
},
|
|
141
|
+
data() {
|
|
142
|
+
return {
|
|
143
|
+
qualityTable: [
|
|
144
|
+
{ label: '监测时间', prop: 'monitorTime', width: '160px' },
|
|
145
|
+
{ label: '归档量', prop: 'archivedAmount', width: '120px' },
|
|
146
|
+
{ label: '看图监测异常量', prop: 'lookPicAbnormalQuantity', width: '150px' },
|
|
147
|
+
{ label: '患者扫码异常量', prop: 'patientScancodeQuantity', width: '150px' },
|
|
148
|
+
{
|
|
149
|
+
label: '人工统计异常量',
|
|
150
|
+
prop: 'artificialStatisticsQuantity',
|
|
151
|
+
width: '150px',
|
|
152
|
+
status: 2,
|
|
153
|
+
},
|
|
154
|
+
{ label: '异常率', prop: 'abnormalRate', width: '140px' },
|
|
155
|
+
],
|
|
156
|
+
empty: '无',
|
|
157
|
+
currentPage: 0,
|
|
158
|
+
pickerOptions: {
|
|
159
|
+
disabledDate(time) {
|
|
160
|
+
return time.getTime() > Date.now();
|
|
161
|
+
},
|
|
162
|
+
shortcuts: [
|
|
163
|
+
{
|
|
164
|
+
text: '近一周',
|
|
165
|
+
onClick(picker) {
|
|
166
|
+
const end = new Date();
|
|
167
|
+
const start = new Date();
|
|
168
|
+
end.setTime(end.getTime() - 3600 * 1000 * 24);
|
|
169
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
170
|
+
picker.$emit('pick', [start, end]);
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
text: '近一个月',
|
|
175
|
+
onClick(picker) {
|
|
176
|
+
const end = new Date();
|
|
177
|
+
const start = new Date();
|
|
178
|
+
end.setTime(end.getTime() - 3600 * 1000 * 24);
|
|
179
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
180
|
+
picker.$emit('pick', [start, end]);
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
text: '近三个月',
|
|
185
|
+
onClick(picker) {
|
|
186
|
+
const end = new Date();
|
|
187
|
+
const start = new Date();
|
|
188
|
+
end.setTime(end.getTime() - 3600 * 1000 * 24);
|
|
189
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
190
|
+
picker.$emit('pick', [start, end]);
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
text: '最近一年',
|
|
195
|
+
onClick: picker => {
|
|
196
|
+
const end = new Date(); // 当前日期
|
|
197
|
+
const start = new Date(); // 开始日期
|
|
198
|
+
|
|
199
|
+
end.setDate(end.getDate() - 1); // 设置结束日期为昨天
|
|
200
|
+
start.setFullYear(start.getFullYear() - 1); // 设置开始日期为一年前
|
|
201
|
+
|
|
202
|
+
picker.$emit('pick', [start, end]);
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
text: '本年度',
|
|
207
|
+
onClick: picker => {
|
|
208
|
+
const end = new Date(); // 当前日期
|
|
209
|
+
const start = new Date(); // 开始日期
|
|
210
|
+
start.setDate(1);
|
|
211
|
+
end.setDate(end.getDate() - 1); // 设置结束日期为昨天
|
|
212
|
+
start.setMonth(0); // 设置开始日期为今年的1月份
|
|
213
|
+
picker.$emit('pick', [start, end]);
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
picAbnormalInfo: [],
|
|
219
|
+
dialogTableVisible: false,
|
|
220
|
+
picAbnormalInfoTable: [
|
|
221
|
+
{ label: '类型', prop: 'type', width: '160px' },
|
|
222
|
+
{ label: '检查编号', prop: 'accessNumber', width: '120px' },
|
|
223
|
+
{ label: '检查时间', prop: 'patientCheckDate', width: '150px' },
|
|
224
|
+
],
|
|
225
|
+
maxHeight: '500px',
|
|
226
|
+
};
|
|
227
|
+
},
|
|
228
|
+
mounted() {
|
|
229
|
+
this.crud.url = 'monitor/getLookPicAbnormalMonitorList';
|
|
230
|
+
this.crud.toQuery();
|
|
231
|
+
},
|
|
232
|
+
watch: {
|
|
233
|
+
'crud.data': {
|
|
234
|
+
handler(newVal) {},
|
|
235
|
+
deep: true,
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
methods: {
|
|
239
|
+
forceUpdate() {
|
|
240
|
+
this.$forceUpdate();
|
|
241
|
+
},
|
|
242
|
+
numberDeal(value) {
|
|
243
|
+
return value ? value.toLocaleString() : 0;
|
|
244
|
+
},
|
|
245
|
+
// 点击编辑
|
|
246
|
+
editData(row) {
|
|
247
|
+
row.status = 2;
|
|
248
|
+
},
|
|
249
|
+
// 点击取消
|
|
250
|
+
cancelData(row) {
|
|
251
|
+
row.status = 1;
|
|
252
|
+
row.inpuValue = null;
|
|
253
|
+
},
|
|
254
|
+
// 点击刷新
|
|
255
|
+
refreshData(row) {
|
|
256
|
+
let data = {
|
|
257
|
+
hospitalId: this.$route.params.scenceId,
|
|
258
|
+
monitorTime: row.monitorTime,
|
|
259
|
+
};
|
|
260
|
+
refreshLookPicAbnormalMonitorData(data).then(res => {
|
|
261
|
+
this.$message({
|
|
262
|
+
message: res,
|
|
263
|
+
type: res.indexOf('刷新成功') != -1 ? 'success' : 'warning',
|
|
264
|
+
});
|
|
265
|
+
if (res.indexOf('刷新成功') != -1) {
|
|
266
|
+
this.currentPage = this.crud.page.page;
|
|
267
|
+
row.status = 1;
|
|
268
|
+
row.inpuValue = null;
|
|
269
|
+
this.crud.toQuery();
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
// 查看详情
|
|
274
|
+
getLookPicAbnormalInfo(row) {
|
|
275
|
+
let data = {
|
|
276
|
+
hospitalId: this.$route.params.scenceId,
|
|
277
|
+
startDate: row.monitorTime,
|
|
278
|
+
};
|
|
279
|
+
getLookPicAbnormalInfo(data).then(res => {
|
|
280
|
+
this.picAbnormalInfo = res.content;
|
|
281
|
+
this.maxHeight = window.innerHeight - 400 + 'px';
|
|
282
|
+
if (res.content && res.content.length != 0) {
|
|
283
|
+
this.dialogTableVisible = true;
|
|
284
|
+
} else {
|
|
285
|
+
this.$message.warning('暂无详情');
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
},
|
|
289
|
+
// 点击确定
|
|
290
|
+
sureData(row) {
|
|
291
|
+
let data = {
|
|
292
|
+
artificialStatisticsQuantity: row.inputValue,
|
|
293
|
+
hospitalId: this.$route.params.scenceId,
|
|
294
|
+
monitorTime: row.monitorTime,
|
|
295
|
+
};
|
|
296
|
+
updateArtificialStatisticsQuantity(data).then(res => {
|
|
297
|
+
console.log(res);
|
|
298
|
+
this.$message.success('保存成功');
|
|
299
|
+
this.currentPage = this.crud.page.page;
|
|
300
|
+
row.status = 1;
|
|
301
|
+
row.inpuValue = null;
|
|
302
|
+
this.crud.toQuery();
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
upload(row) {
|
|
306
|
+
const params = {
|
|
307
|
+
hospitalId: this.$route.params.scenceId,
|
|
308
|
+
startDate: row.monitorTime,
|
|
309
|
+
endDate: row.monitorTime,
|
|
310
|
+
handleType: 1,
|
|
311
|
+
};
|
|
312
|
+
uploadHandleDataMonitor(params).then(res => {
|
|
313
|
+
this.$message.success('维护成功');
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
[CRUD.HOOK.beforeRefresh](crud) {
|
|
317
|
+
if (this.currentPage != 0) {
|
|
318
|
+
crud.page.page = this.currentPage;
|
|
319
|
+
}
|
|
320
|
+
crud.query.startDate = this.query.checkTime[0];
|
|
321
|
+
crud.query.endDate = this.query.checkTime[1];
|
|
322
|
+
crud.query.hospitalId = this.$route.params.scenceId;
|
|
323
|
+
},
|
|
324
|
+
[CRUD.HOOK.afterRefresh](crud) {
|
|
325
|
+
crud.data.forEach((element, index) => {
|
|
326
|
+
this.$set(crud.data[index], 'status', 1);
|
|
327
|
+
this.$set(crud.data[index], 'inputValue', crud.data[index].artificialStatisticsQuantity);
|
|
328
|
+
// element.status = 1;
|
|
329
|
+
});
|
|
330
|
+
this.currentPage = 0;
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
</script>
|
|
335
|
+
<style lang="scss" scoped>
|
|
336
|
+
.qualityMonitore {
|
|
337
|
+
.warningStyle {
|
|
338
|
+
height: 34px;
|
|
339
|
+
background-color: #fff7f3;
|
|
340
|
+
font-size: 13px;
|
|
341
|
+
line-height: 34px;
|
|
342
|
+
color: #ff7b35;
|
|
343
|
+
padding: 0 12px;
|
|
344
|
+
display: flex;
|
|
345
|
+
justify-content: space-between;
|
|
346
|
+
align-items: center;
|
|
347
|
+
margin-bottom: 8px;
|
|
348
|
+
.warning-icon {
|
|
349
|
+
color: #ff7b35;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
.patientDetail {
|
|
354
|
+
padding: 10px 0;
|
|
355
|
+
|
|
356
|
+
span {
|
|
357
|
+
color: #606266;
|
|
358
|
+
font-weight: bold;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
</style>
|