ylyx-cli 1.0.16 → 1.1.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.
Files changed (289) hide show
  1. package/README.md +313 -276
  2. package/bin/ylyx.js +176 -168
  3. package/lib/config.js +325 -283
  4. package/lib/deploy.js +509 -529
  5. package/lib/environments.js +111 -0
  6. package/lib/generator.js +192 -192
  7. package/lib/index.js +113 -113
  8. package/lib/interactive.js +87 -87
  9. package/lib/remote.js +179 -179
  10. package/lib/template.js +174 -174
  11. package/lib/utils.js +148 -148
  12. package/package.json +61 -59
  13. package/templates/react-app/files/.gitignore +22 -0
  14. package/templates/react-app/files/README.md +23 -23
  15. package/templates/react-app/files/package.json +28 -28
  16. package/templates/react-app/files/public/index.html +11 -11
  17. package/templates/react-app/files/src/App.css +15 -15
  18. package/templates/react-app/files/src/App.js +15 -15
  19. package/templates/react-app/files/src/index.css +10 -10
  20. package/templates/react-app/files/src/index.js +11 -11
  21. package/templates/react-app/template.json +11 -11
  22. package/templates/react-component/files/Component.module.css +5 -5
  23. package/templates/react-component/files/Component.tsx +31 -31
  24. package/templates/react-component/files/index.ts +2 -2
  25. package/templates/react-component/template.json +48 -48
  26. package/templates/vue-app/files/.editorconfig +14 -14
  27. package/templates/vue-app/files/.env.development +21 -21
  28. package/templates/vue-app/files/.env.production +18 -18
  29. package/templates/vue-app/files/.eslintignore +5 -5
  30. package/templates/vue-app/files/.eslintrc.js +267 -267
  31. package/templates/vue-app/files/.gitignore +24 -0
  32. package/templates/vue-app/files/.prettierignore +11 -11
  33. package/templates/vue-app/files/.travis.yml +5 -5
  34. package/templates/vue-app/files/.vscode/extensions.json +7 -7
  35. package/templates/vue-app/files/.vscode/settings.json +39 -39
  36. package/templates/vue-app/files/LICENSE +191 -191
  37. package/templates/vue-app/files/README.md +87 -87
  38. package/templates/vue-app/files/babel.config.js +11 -11
  39. package/templates/vue-app/files/jest.config.js +24 -24
  40. package/templates/vue-app/files/package.json +136 -136
  41. package/templates/vue-app/files/plopfile.js +7 -7
  42. package/templates/vue-app/files/postcss.config.js +5 -5
  43. package/templates/vue-app/files/public/default.js +25 -25
  44. package/templates/vue-app/files/public/index.html +26 -26
  45. package/templates/vue-app/files/src/App.vue +54 -54
  46. package/templates/vue-app/files/src/api/bigDataV/index.js +198 -198
  47. package/templates/vue-app/files/src/api/data.js +42 -42
  48. package/templates/vue-app/files/src/api/dataArchive/index.js +186 -186
  49. package/templates/vue-app/files/src/api/generator/genConfig.js +16 -16
  50. package/templates/vue-app/files/src/api/generator/generator.js +32 -32
  51. package/templates/vue-app/files/src/api/indexManagement/index.js +39 -39
  52. package/templates/vue-app/files/src/api/institutionMonitor/index.js +396 -396
  53. package/templates/vue-app/files/src/api/institutionSet/index.js +120 -120
  54. package/templates/vue-app/files/src/api/login.js +44 -44
  55. package/templates/vue-app/files/src/api/selfStatistics/index.js +50 -50
  56. package/templates/vue-app/files/src/api/system/code.js +15 -15
  57. package/templates/vue-app/files/src/api/system/dict.js +34 -34
  58. package/templates/vue-app/files/src/api/system/dictDetail.js +52 -52
  59. package/templates/vue-app/files/src/api/system/equipment.js +35 -35
  60. package/templates/vue-app/files/src/api/system/examManage.js +49 -49
  61. package/templates/vue-app/files/src/api/system/examProject.js +48 -48
  62. package/templates/vue-app/files/src/api/system/hosModel.js +35 -35
  63. package/templates/vue-app/files/src/api/system/hospital.js +88 -88
  64. package/templates/vue-app/files/src/api/system/job.js +40 -40
  65. package/templates/vue-app/files/src/api/system/menu.js +67 -67
  66. package/templates/vue-app/files/src/api/system/model.js +42 -42
  67. package/templates/vue-app/files/src/api/system/risConfig.js +9 -9
  68. package/templates/vue-app/files/src/api/system/role.js +64 -64
  69. package/templates/vue-app/files/src/api/system/sysSet.js +19 -19
  70. package/templates/vue-app/files/src/api/system/timing.js +41 -41
  71. package/templates/vue-app/files/src/api/system/user.js +121 -121
  72. package/templates/vue-app/files/src/api/tools/alipay.js +25 -25
  73. package/templates/vue-app/files/src/api/tools/email.js +24 -24
  74. package/templates/vue-app/files/src/api/tools/localStorage.js +27 -27
  75. package/templates/vue-app/files/src/api/tools/qiniu.js +40 -40
  76. package/templates/vue-app/files/src/assets/css/font-awesome.css +2342 -2342
  77. package/templates/vue-app/files/src/assets/css/font-awesome.min.css +2336 -2336
  78. package/templates/vue-app/files/src/assets/fonts/fontawesome-webfont.svg +2671 -2671
  79. package/templates/vue-app/files/src/assets/icons/index.js +9 -9
  80. package/templates/vue-app/files/src/assets/icons/svg/hospital.svg +1 -1
  81. package/templates/vue-app/files/src/assets/icons/svg/hospital1.svg +1 -1
  82. package/templates/vue-app/files/src/assets/icons/svg/loginOne.svg +35 -35
  83. package/templates/vue-app/files/src/assets/icons/svg/loginOneWhite.svg +19 -19
  84. package/templates/vue-app/files/src/assets/icons/svg/loginOr.svg +93 -93
  85. package/templates/vue-app/files/src/assets/icons/svg/loginUp.svg +96 -96
  86. package/templates/vue-app/files/src/assets/icons/svg/monitor.svg +1 -1
  87. package/templates/vue-app/files/src/assets/icons/svg/offline.svg +1 -1
  88. package/templates/vue-app/files/src/assets/icons/svg/online.svg +1 -1
  89. package/templates/vue-app/files/src/assets/icons/svg/system.svg +1 -1
  90. package/templates/vue-app/files/src/assets/icons/svgo.yml +21 -21
  91. package/templates/vue-app/files/src/assets/styles/btn.scss +103 -103
  92. package/templates/vue-app/files/src/assets/styles/eladmin.scss +124 -124
  93. package/templates/vue-app/files/src/assets/styles/element-ui.scss +217 -217
  94. package/templates/vue-app/files/src/assets/styles/element-variables.scss +31 -31
  95. package/templates/vue-app/files/src/assets/styles/global.scss +73 -73
  96. package/templates/vue-app/files/src/assets/styles/index.scss +220 -220
  97. package/templates/vue-app/files/src/assets/styles/mixin.scss +60 -60
  98. package/templates/vue-app/files/src/assets/styles/publicStyle.scss +224 -224
  99. package/templates/vue-app/files/src/assets/styles/sidebar.scss +239 -239
  100. package/templates/vue-app/files/src/assets/styles/transition.scss +48 -48
  101. package/templates/vue-app/files/src/assets/styles/variables.scss +44 -44
  102. package/templates/vue-app/files/src/common/flexible.js +145 -145
  103. package/templates/vue-app/files/src/components/Breadcrumb/index.vue +87 -87
  104. package/templates/vue-app/files/src/components/Crud/CRUD.operation.vue +248 -248
  105. package/templates/vue-app/files/src/components/Crud/Pagination.vue +20 -20
  106. package/templates/vue-app/files/src/components/Crud/RR.operation.vue +39 -39
  107. package/templates/vue-app/files/src/components/Crud/UD.operation.vue +106 -106
  108. package/templates/vue-app/files/src/components/Crud/crud.js +907 -907
  109. package/templates/vue-app/files/src/components/Crud/user/UR.operation.vue +154 -154
  110. package/templates/vue-app/files/src/components/DateRangePicker/index.vue +42 -42
  111. package/templates/vue-app/files/src/components/DateRangePickerProhibitNext/index.vue +42 -42
  112. package/templates/vue-app/files/src/components/DateRangePickerProhibitTodayNext/index.vue +48 -48
  113. package/templates/vue-app/files/src/components/Dict/Dict.js +31 -31
  114. package/templates/vue-app/files/src/components/Dict/index.js +29 -29
  115. package/templates/vue-app/files/src/components/Doc/index.vue +16 -16
  116. package/templates/vue-app/files/src/components/Echarts/BarChart.vue +115 -115
  117. package/templates/vue-app/files/src/components/Echarts/Category.vue +768 -768
  118. package/templates/vue-app/files/src/components/Echarts/Funnel.vue +120 -120
  119. package/templates/vue-app/files/src/components/Echarts/Gauge.vue +74 -74
  120. package/templates/vue-app/files/src/components/Echarts/Graph.vue +101 -101
  121. package/templates/vue-app/files/src/components/Echarts/HeatMap.vue +301 -301
  122. package/templates/vue-app/files/src/components/Echarts/Line3D.vue +110 -110
  123. package/templates/vue-app/files/src/components/Echarts/PieChart.vue +84 -84
  124. package/templates/vue-app/files/src/components/Echarts/Point.vue +161 -161
  125. package/templates/vue-app/files/src/components/Echarts/RadarChart.vue +123 -123
  126. package/templates/vue-app/files/src/components/Echarts/Rich.vue +160 -160
  127. package/templates/vue-app/files/src/components/Echarts/Sankey.vue +114 -114
  128. package/templates/vue-app/files/src/components/Echarts/Scatter.vue +192 -192
  129. package/templates/vue-app/files/src/components/Echarts/Sunburst.vue +127 -127
  130. package/templates/vue-app/files/src/components/Echarts/ThemeRiver.vue +233 -233
  131. package/templates/vue-app/files/src/components/Echarts/WordCloud.vue +201 -201
  132. package/templates/vue-app/files/src/components/GithubCorner/index.vue +55 -55
  133. package/templates/vue-app/files/src/components/Hamburger/index.vue +44 -44
  134. package/templates/vue-app/files/src/components/HeaderSearch/index.vue +196 -196
  135. package/templates/vue-app/files/src/components/IconSelect/index.vue +74 -74
  136. package/templates/vue-app/files/src/components/IconSelect/requireIcons.js +10 -10
  137. package/templates/vue-app/files/src/components/Iframe/index.vue +30 -30
  138. package/templates/vue-app/files/src/components/JavaEdit/index.vue +78 -78
  139. package/templates/vue-app/files/src/components/Pagination/index.vue +100 -100
  140. package/templates/vue-app/files/src/components/PanThumb/index.vue +149 -149
  141. package/templates/vue-app/files/src/components/ParentView/index.vue +3 -3
  142. package/templates/vue-app/files/src/components/Permission/index.js +13 -13
  143. package/templates/vue-app/files/src/components/Permission/permission.js +21 -21
  144. package/templates/vue-app/files/src/components/RightPanel/index.vue +149 -149
  145. package/templates/vue-app/files/src/components/Screenfull/index.vue +60 -60
  146. package/templates/vue-app/files/src/components/SizeSelect/index.vue +60 -60
  147. package/templates/vue-app/files/src/components/SvgIcon/index.vue +66 -66
  148. package/templates/vue-app/files/src/components/ThemePicker/index.vue +177 -177
  149. package/templates/vue-app/files/src/components/UploadExcel/index.vue +149 -149
  150. package/templates/vue-app/files/src/components/WaterMark/setWaterMark.js +68 -68
  151. package/templates/vue-app/files/src/components/WaterMark/waterMark.vue +69 -69
  152. package/templates/vue-app/files/src/components/Xgplayer/index.vue +49 -49
  153. package/templates/vue-app/files/src/components/YamlEdit/index.vue +81 -81
  154. package/templates/vue-app/files/src/layout/components/AppMain.vue +67 -67
  155. package/templates/vue-app/files/src/layout/components/Navbar.vue +209 -209
  156. package/templates/vue-app/files/src/layout/components/Settings/index.vue +125 -125
  157. package/templates/vue-app/files/src/layout/components/Sidebar/FixiOSBug.js +26 -26
  158. package/templates/vue-app/files/src/layout/components/Sidebar/Item.vue +29 -29
  159. package/templates/vue-app/files/src/layout/components/Sidebar/Link.vue +35 -35
  160. package/templates/vue-app/files/src/layout/components/Sidebar/Logo.vue +93 -93
  161. package/templates/vue-app/files/src/layout/components/Sidebar/SidebarItem.vue +104 -104
  162. package/templates/vue-app/files/src/layout/components/Sidebar/index.vue +79 -79
  163. package/templates/vue-app/files/src/layout/components/TagsView/ScrollPane.vue +90 -90
  164. package/templates/vue-app/files/src/layout/components/TagsView/index.vue +299 -299
  165. package/templates/vue-app/files/src/layout/components/index.js +5 -5
  166. package/templates/vue-app/files/src/layout/index.vue +119 -119
  167. package/templates/vue-app/files/src/layout/mixin/ResizeHandler.js +45 -45
  168. package/templates/vue-app/files/src/main.js +89 -89
  169. package/templates/vue-app/files/src/mixins/crud.js +348 -348
  170. package/templates/vue-app/files/src/router/index.js +156 -156
  171. package/templates/vue-app/files/src/router/routers.js +203 -203
  172. package/templates/vue-app/files/src/settings.js +57 -57
  173. package/templates/vue-app/files/src/store/getters.js +29 -29
  174. package/templates/vue-app/files/src/store/index.js +25 -25
  175. package/templates/vue-app/files/src/store/modules/api.js +33 -33
  176. package/templates/vue-app/files/src/store/modules/app.js +55 -55
  177. package/templates/vue-app/files/src/store/modules/permission.js +79 -79
  178. package/templates/vue-app/files/src/store/modules/register.js +17 -17
  179. package/templates/vue-app/files/src/store/modules/settings.js +46 -46
  180. package/templates/vue-app/files/src/store/modules/tagsView.js +168 -168
  181. package/templates/vue-app/files/src/store/modules/user.js +119 -119
  182. package/templates/vue-app/files/src/utils/auth.js +18 -18
  183. package/templates/vue-app/files/src/utils/base64ToFile.js +27 -27
  184. package/templates/vue-app/files/src/utils/clipboard.js +36 -36
  185. package/templates/vue-app/files/src/utils/datetime.js +289 -289
  186. package/templates/vue-app/files/src/utils/getBlobFile.js +10 -10
  187. package/templates/vue-app/files/src/utils/getTime.js +29 -29
  188. package/templates/vue-app/files/src/utils/index.js +520 -520
  189. package/templates/vue-app/files/src/utils/permission.js +29 -29
  190. package/templates/vue-app/files/src/utils/pinyin.js +450 -450
  191. package/templates/vue-app/files/src/utils/request.js +139 -139
  192. package/templates/vue-app/files/src/utils/rsaEncrypt.js +37 -37
  193. package/templates/vue-app/files/src/utils/shortcuts.js +210 -210
  194. package/templates/vue-app/files/src/utils/upload.js +12 -12
  195. package/templates/vue-app/files/src/utils/validate.js +262 -262
  196. package/templates/vue-app/files/src/views/components/Echarts.vue +124 -124
  197. package/templates/vue-app/files/src/views/components/Editor.vue +75 -75
  198. package/templates/vue-app/files/src/views/components/MarkDown.vue +44 -44
  199. package/templates/vue-app/files/src/views/components/UVideo.vue +37 -37
  200. package/templates/vue-app/files/src/views/components/YamlEdit.vue +206 -206
  201. package/templates/vue-app/files/src/views/components/camera/camera.vue +115 -115
  202. package/templates/vue-app/files/src/views/components/camera/cameraTest.vue +158 -158
  203. package/templates/vue-app/files/src/views/components/excel/upload-excel.vue +41 -41
  204. package/templates/vue-app/files/src/views/components/icons/element-icons.js +74 -74
  205. package/templates/vue-app/files/src/views/components/icons/index.vue +106 -106
  206. package/templates/vue-app/files/src/views/components/icons/svg-icons.js +10 -10
  207. package/templates/vue-app/files/src/views/components/scroll/index.vue +107 -107
  208. package/templates/vue-app/files/src/views/components/scrollFull/index.vue +99 -99
  209. package/templates/vue-app/files/src/views/dashboard/LineChart.vue +138 -138
  210. package/templates/vue-app/files/src/views/dashboard/PanelGroup.vue +173 -173
  211. package/templates/vue-app/files/src/views/dashboard/mixins/resize.js +57 -57
  212. package/templates/vue-app/files/src/views/dataArchive/delTable.vue +354 -354
  213. package/templates/vue-app/files/src/views/dataArchive/exportDetail.vue +121 -121
  214. package/templates/vue-app/files/src/views/dataArchive/exportList.vue +160 -160
  215. package/templates/vue-app/files/src/views/dataArchive/index.vue +2104 -2104
  216. package/templates/vue-app/files/src/views/features/401.vue +83 -83
  217. package/templates/vue-app/files/src/views/features/404.vue +226 -226
  218. package/templates/vue-app/files/src/views/features/redirect.vue +12 -12
  219. package/templates/vue-app/files/src/views/generator/config.vue +348 -348
  220. package/templates/vue-app/files/src/views/generator/index.vue +143 -143
  221. package/templates/vue-app/files/src/views/generator/preview.vue +39 -39
  222. package/templates/vue-app/files/src/views/home.vue +80 -80
  223. package/templates/vue-app/files/src/views/indexManagement/index.vue +422 -422
  224. package/templates/vue-app/files/src/views/indexManagement/other.vue +286 -286
  225. package/templates/vue-app/files/src/views/institutionMonitor/components/LineChart.vue +191 -191
  226. package/templates/vue-app/files/src/views/institutionMonitor/index.scss +339 -339
  227. package/templates/vue-app/files/src/views/institutionMonitor/index.vue +1385 -1385
  228. package/templates/vue-app/files/src/views/institutionMonitor/mixins/resize.js +57 -57
  229. package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/checkProjectCode.vue +267 -267
  230. package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/imageAbnormalMonitor.vue +361 -361
  231. package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/index.vue +686 -686
  232. package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/leakageAnomaly.vue +270 -270
  233. package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/moveMonitore.vue +114 -114
  234. package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/qualityMonitore.vue +338 -338
  235. package/templates/vue-app/files/src/views/institutionSet/cloudSet.vue +534 -534
  236. package/templates/vue-app/files/src/views/institutionSet/index.vue +2550 -2550
  237. package/templates/vue-app/files/src/views/login.vue +243 -243
  238. package/templates/vue-app/files/src/views/qualityLogin.vue +280 -280
  239. package/templates/vue-app/files/src/views/selfStatistics/components/LineChart.vue +296 -296
  240. package/templates/vue-app/files/src/views/selfStatistics/hospitalDetail/index.vue +533 -533
  241. package/templates/vue-app/files/src/views/selfStatistics/index.scss +447 -447
  242. package/templates/vue-app/files/src/views/selfStatistics/index.vue +903 -903
  243. package/templates/vue-app/files/src/views/selfStatistics/mixins/resize.js +57 -57
  244. package/templates/vue-app/files/src/views/selfStatistics/monitorDetail/index.vue +285 -285
  245. package/templates/vue-app/files/src/views/selfStatistics/offlineDetail/index.vue +104 -104
  246. package/templates/vue-app/files/src/views/selfStatistics/selfActiveDetail/index.vue +104 -104
  247. package/templates/vue-app/files/src/views/selfStatistics/selfMonitorDetail/index.vue +420 -420
  248. package/templates/vue-app/files/src/views/selfStatistics/setWaterMark/setWaterMark.js +68 -68
  249. package/templates/vue-app/files/src/views/selfStatistics/setWaterMark/waterMark.vue +69 -69
  250. package/templates/vue-app/files/src/views/system/dept/index.vue +144 -144
  251. package/templates/vue-app/files/src/views/system/dict/dictDetail.vue +146 -146
  252. package/templates/vue-app/files/src/views/system/dict/index.vue +159 -159
  253. package/templates/vue-app/files/src/views/system/examModality/index.vue +174 -174
  254. package/templates/vue-app/files/src/views/system/examPart/index.vue +184 -184
  255. package/templates/vue-app/files/src/views/system/examProject/index.vue +321 -321
  256. package/templates/vue-app/files/src/views/system/examine/index.vue +66 -66
  257. package/templates/vue-app/files/src/views/system/job/index.vue +119 -119
  258. package/templates/vue-app/files/src/views/system/job/module/form.vue +72 -72
  259. package/templates/vue-app/files/src/views/system/job/module/header.vue +48 -48
  260. package/templates/vue-app/files/src/views/system/menu/index.vue +327 -327
  261. package/templates/vue-app/files/src/views/system/model/index.vue +285 -285
  262. package/templates/vue-app/files/src/views/system/role/index.vue +434 -434
  263. package/templates/vue-app/files/src/views/system/sysSet/index.vue +84 -84
  264. package/templates/vue-app/files/src/views/system/timing/index.vue +289 -289
  265. package/templates/vue-app/files/src/views/system/timing/log.vue +143 -143
  266. package/templates/vue-app/files/src/views/system/user/admin.vue +414 -414
  267. package/templates/vue-app/files/src/views/system/user/center/updateEmail.vue +146 -146
  268. package/templates/vue-app/files/src/views/system/user/center/updatePass.vue +168 -168
  269. package/templates/vue-app/files/src/views/system/user/center.vue +140 -140
  270. package/templates/vue-app/files/src/views/system/user/index.vue +972 -972
  271. package/templates/vue-app/files/src/views/systemSet/role/index.vue +314 -314
  272. package/templates/vue-app/files/src/views/systemSet/user/admin.vue +414 -414
  273. package/templates/vue-app/files/src/views/systemSet/user/center/updateEmail.vue +146 -146
  274. package/templates/vue-app/files/src/views/systemSet/user/center/updatePass.vue +115 -115
  275. package/templates/vue-app/files/src/views/systemSet/user/center.vue +351 -351
  276. package/templates/vue-app/files/src/views/systemSet/user/index.vue +928 -928
  277. package/templates/vue-app/files/src/views/tools/aliPay/config.vue +102 -102
  278. package/templates/vue-app/files/src/views/tools/aliPay/index.vue +48 -48
  279. package/templates/vue-app/files/src/views/tools/aliPay/toPay.vue +91 -91
  280. package/templates/vue-app/files/src/views/tools/email/config.vue +91 -91
  281. package/templates/vue-app/files/src/views/tools/email/index.vue +42 -42
  282. package/templates/vue-app/files/src/views/tools/email/send.vue +159 -159
  283. package/templates/vue-app/files/src/views/tools/storage/index.vue +35 -35
  284. package/templates/vue-app/files/src/views/tools/storage/local/index.vue +207 -207
  285. package/templates/vue-app/files/src/views/tools/storage/qiniu/form.vue +108 -108
  286. package/templates/vue-app/files/src/views/tools/storage/qiniu/index.vue +241 -241
  287. package/templates/vue-app/files/src/views/tools/swagger/index.vue +14 -14
  288. package/templates/vue-app/files/vue.config.js +173 -173
  289. package/templates/vue-app/template.json +29 -29
@@ -1,686 +1,686 @@
1
- <template>
2
- <div class="app-container">
3
- <!-- 统计模块 -->
4
- <div class="hospitalName">
5
- <img src="~@/assets/images/location.png" alt="" />
6
- <span>{{ hospitalName }}</span>
7
- </div>
8
- <el-tabs v-loading="loading" type="border-card" v-model="Monitore" @tab-click="handleClick">
9
- <el-tab-pane name="imageMonitore" label="看图监测">
10
- <div class="warningStyle" v-show="lookPicMonitor == '1'">
11
- <div>
12
- <i class="el-icon-warning warning-icon"></i>
13
- 提示:该机构系统看图监测机制:每天11点,15点,19点,22点,抽取{{
14
- abnormalDataInfo.lookPicHourTime
15
- }}个小时内五例数据,但不抽近{{ abnormalDataInfo.lookPicMinuteTime }}分钟的数据
16
- </div>
17
- </div>
18
- <span style="font-size: 15px; font-weight: bold">看图情况:</span>
19
- <span style="font-size: 15px" :class="{ red: isNormal == '异常' }">{{ isNormal }}</span>
20
-
21
- <h4 style="padding: 25px 0 10px; font-size: 15px">
22
- 看图异常数据
23
- <el-button
24
- @click="lookMonitor"
25
- size="mini"
26
- style="margin-left: 8px"
27
- type="primary"
28
- :disabled="isStatus"
29
- >重新监测
30
- </el-button>
31
- </h4>
32
- <el-table
33
- v-loading="lookPhotoLoading"
34
- element-loading-text="正在监测..."
35
- :data="lookPhotoAbnormal">
36
- <template slot="empty">
37
- <span>{{ emptyText }}</span>
38
- </template>
39
- <el-table-column label="序号" width="65px" fixed :show-overflow-tooltip="true">
40
- <template slot-scope="scope">
41
- <span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
42
- </template>
43
- </el-table-column>
44
- <el-table-column
45
- v-for="(item, index) in checkTable"
46
- :key="index"
47
- :label="item.label"
48
- :prop="item.prop"
49
- :width="item.width">
50
- <!-- 数据的遍历 scope.row就代表数据的每一个对象-->
51
- <template slot-scope="scope">
52
- <span v-if="item.prop == 'patientSex'">
53
- {{ scope.row.patientSex ? (scope.row.patientSex == '1' ? '男' : '女') : '-' }}
54
- </span>
55
- <span v-else-if="item.prop == 'remark'">
56
- <el-tooltip
57
- popper-class="tooltipAbnormal"
58
- :content="scope.row.remark"
59
- placement="top">
60
- <p class="showOverTooltip">{{ scope.row.remark }}</p>
61
- </el-tooltip>
62
- </span>
63
- <span v-else>
64
- {{ scope.row[item.prop] || '-' }}
65
- </span>
66
- </template>
67
- </el-table-column>
68
- <el-table-column label="操作" width="100" fixed="right">
69
- <template slot-scope="scope">
70
- <el-button size="mini" type="text" @click="ignoreFn(scope.row)">忽略</el-button>
71
- </template>
72
- </el-table-column>
73
- </el-table>
74
- </el-tab-pane>
75
-
76
- <el-tab-pane name="imageAbnormalMonitor" label="看图异常监测">
77
- <image-abnormal-monitor v-if="Monitore == 'imageAbnormalMonitor'"></image-abnormal-monitor>
78
- </el-tab-pane>
79
-
80
- <el-tab-pane name="leakageMonitor" label="漏图监测">
81
- <leakage-anomaly
82
- v-if="Monitore == 'leakageMonitor'"
83
- :hospitalName="hospitalName"></leakage-anomaly>
84
- </el-tab-pane>
85
- <el-tab-pane name="qualityMonitore" label="数据质量监测">
86
- <qualityMonitore v-if="Monitore == 'qualityMonitore'"> </qualityMonitore>
87
- </el-tab-pane>
88
- <el-tab-pane name="moveMonitore" label="客户端运行监测">
89
- <moveMonitore v-if="Monitore == 'moveMonitore'"> </moveMonitore>
90
- </el-tab-pane>
91
- <el-tab-pane name="fileMonitore" label="日报上传监测" :lazy="true">
92
- <div class="warningStyle" v-show="dayDataMonitor == '1'">
93
- <div>
94
- <i class="el-icon-warning warning-icon"></i>
95
- 提示:日报上传监测逻辑为每日归档量和日报上传量不相同则为异常
96
- </div>
97
- </div>
98
- <span style="font-size: 15px; font-weight: bold">日报上传监测情况:</span>
99
- <span style="font-size: 15px" :class="{ red: dayDataMonitorIsNormal == '异常' }">{{
100
- dayDataMonitorIsNormal
101
- }}</span>
102
- <el-button @click="dayMonitorSituation" style="margin-left: 8px" type="primary"
103
- >重新监测
104
- </el-button>
105
- <h4 style="padding: 25px 0 10px; font-size: 15px">
106
- 日报上传监测数据
107
- <DateRangePickerProhibitTodayNext
108
- v-model="dailyTime"
109
- type="daterange"
110
- class="date-item"
111
- value-format="yyyy-MM-dd"
112
- @input="dailyTimeChange"
113
- unlink-panels
114
- :clearable="false" />
115
- <!-- <date-range-picker
116
-
117
- /> -->
118
- <el-button size="small" type="primary" @click="crud.toQuery">查询</el-button>
119
- <el-button
120
- @click="dayMonitor"
121
- style="margin-left: 8px"
122
- type="primary"
123
- plain
124
- :disabled="dayDataMonitor == '0'"
125
- >刷新
126
- </el-button>
127
- <el-button style="margin-left: 8px" @click="upload">上传同步 </el-button>
128
- </h4>
129
- <div class="echarts" v-show="dayDataMonitor == '1'">
130
- <!-- 日期选择器 -->
131
-
132
- <el-row style="background: #fff; padding: 16px 16px 0">
133
- <el-col :span="24">
134
- <el-tabs v-model="activeName" @tab-click="tableHandleChange">
135
- <el-tab-pane label="表格" name="second">
136
- <el-table
137
- :data="crud.data"
138
- :row-class-name="tableRowClassName"
139
- ref="workstationManageTableref"
140
- lazy
141
- v-loading="crud.loading"
142
- class="table-fixed"
143
- row-key="id"
144
- min-height="600px">
145
- <!-- fixed="left" -->
146
- <el-table-column
147
- label="序号"
148
- width="80px"
149
- align="center"
150
- :show-overflow-tooltip="true">
151
- <template slot-scope="scope">
152
- <span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
153
- <!-- <span>{{ scope.$index + 1 }}</span> -->
154
- </template>
155
- </el-table-column>
156
- <el-table-column
157
- v-for="(item, index) in projectHeader"
158
- :key="index"
159
- align="center"
160
- :label="item.label"
161
- :prop="item.prop"
162
- :min-width="item.width">
163
- <template slot-scope="scope">
164
- <span>
165
- {{ scope.row[item.prop] }}
166
- </span>
167
- </template>
168
- </el-table-column>
169
- <el-table-column label="操作" width="120px">
170
- <template slot-scope="scope">
171
- <el-button
172
- type="text"
173
- size="small"
174
- @click="monitorInfoPageRefresh(scope.row)"
175
- v-if="scope.row.pigCount != scope.row.checkCount"
176
- >刷新</el-button
177
- >
178
- <el-button type="text" size="small" @click="deleteData(scope.row)"
179
- >删除</el-button
180
- >
181
- </template>
182
- </el-table-column>
183
- </el-table>
184
- <pagination />
185
- </el-tab-pane>
186
- <el-tab-pane label="折线图" name="first">
187
- <line-chart
188
- :height="`400px`"
189
- :className="'lineChart'"
190
- :chart-data="achiveChartData"
191
- :x-data="dayTime" />
192
- </el-tab-pane>
193
- </el-tabs>
194
- </el-col>
195
- </el-row>
196
- </div>
197
- </el-tab-pane>
198
- <el-tab-pane name="checkProjectCode" label="检查项目编码监测" :lazy="true">
199
- <checkProjectCode v-if="Monitore == 'checkProjectCode'" />
200
- </el-tab-pane>
201
- </el-tabs>
202
-
203
- <el-dialog title="选择忽略原因" :visible.sync="ingoreDialogVisible" width="350px">
204
- <h4 style="margin: 8px 0">忽略后,该数据不再进入监测范围</h4>
205
- <el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm">
206
- <el-form-item label="" prop="delReson">
207
- <el-select
208
- v-model="ruleForm.delReson"
209
- clearable
210
- placeholder="选择忽略原因"
211
- class="filter-item"
212
- style="width: 320px">
213
- <el-option
214
- v-for="item in dict.delete_reason"
215
- :key="item.value"
216
- :label="item.label"
217
- :value="item.label" />
218
- </el-select>
219
- </el-form-item>
220
- </el-form>
221
- <span slot="footer" class="dialog-footer">
222
- <el-button @click="ingoreDialogVisible = false">取 消</el-button>
223
- <el-button type="primary" @click="ignoreResonBtn">确 定</el-button>
224
- </span>
225
- </el-dialog>
226
- </div>
227
- </template>
228
-
229
- <script>
230
- import LineChart from '../components/LineChart.vue';
231
- import qualityMonitore from './qualityMonitore.vue';
232
- import moveMonitore from './moveMonitore.vue';
233
-
234
- import institutionMonitor, {
235
- deleteRecord,
236
- qualityDataMonitorConfigInfo,
237
- monitorInfoPageRefresh,
238
- dayMonitorAgain,
239
- removeDayDataByHosAndDate,
240
- uploadHandleDataMonitor,
241
- dayMonitorRefresh,
242
- } from '@/api/institutionMonitor/index';
243
- import DateRangePicker from '@/components/DateRangePicker';
244
- import DateRangePickerProhibitTodayNext from '@/components/DateRangePickerProhibitTodayNext';
245
- import CRUD, { presenter, header, crud } from '@crud/crud';
246
- import pagination from '@crud/Pagination';
247
- import { getDay } from '@/utils/getTime';
248
- import imageAbnormalMonitor from './imageAbnormalMonitor.vue';
249
- import leakageAnomaly from './leakageAnomaly.vue';
250
- import checkProjectCode from './checkProjectCode.vue';
251
- const start = getDay(-7);
252
- const end = getDay(-1);
253
- export default {
254
- cruds() {
255
- return CRUD({
256
- title: '机构管理',
257
- url: '',
258
- sort: ['updateTime,desc'],
259
- query: {
260
- startTime: start,
261
- endTime: end,
262
- },
263
- });
264
- },
265
- dicts: ['delete_reason'],
266
- // name: "monitorDetail",
267
- components: {
268
- LineChart,
269
- qualityMonitore,
270
- moveMonitore,
271
- DateRangePicker,
272
- pagination,
273
- imageAbnormalMonitor,
274
- leakageAnomaly,
275
- checkProjectCode,
276
- DateRangePickerProhibitTodayNext,
277
- },
278
- mixins: [presenter(), header(), crud()],
279
- data() {
280
- return {
281
- Monitore: 'imageMonitore', //'imageMonitore' ,
282
- // 日期选中
283
- time: [],
284
- dailyTime: [],
285
- // 存取图表数据
286
- achiveChartData: {
287
- // 日均检查量
288
- dayAverageCount: [],
289
- // 每日检查量
290
- dayMonitorInfo: [],
291
- dayuploadCount: [],
292
- },
293
- // 存取归档总量
294
- archiveTotalData: {
295
- archiveTotal: 0,
296
- todayArchiveCount: 0,
297
- },
298
- // 存取图表时间
299
- dayTime: [],
300
- hospitalName: '',
301
- hospitalNameId: '',
302
- hospitalId: '',
303
- lookPicMonitor: '',
304
- dayDataMonitor: '',
305
- takePhotoAbnormal: [],
306
- lookPhotoAbnormal: [],
307
- checkTable: [
308
- { label: '检查编号', prop: 'accessNumber', width: '120px' },
309
- { label: '姓名', prop: 'patientName', width: '120px' },
310
- { label: '性别', prop: 'patientSex', width: '80px' },
311
- { label: '年龄', prop: 'patientAge', width: '80px' },
312
- { label: 'studyUid', prop: 'studyUid', minWidth: '140px' },
313
- { label: '检查时间', prop: 'patientCheckDate', width: '150px' },
314
- { label: '监测时间', prop: 'monitorTime', width: '150px' },
315
- { label: '错误原因', prop: 'remark', minWidth: '250px' },
316
- ],
317
- lookPhotoLoading: false,
318
- takePhotoLoading: false,
319
- loading: false,
320
- isStatus: '',
321
- emptyText: '',
322
- isNormal: '',
323
- dayDataMonitorIsNormal: '',
324
- activeName: 'second',
325
- lineData: [],
326
- projectHeader: [
327
- { label: '日期', prop: 'patientCheckDate', width: '120px' },
328
- { label: '归档量', prop: 'pigCount', width: '100px' },
329
- { label: '日报上传量', prop: 'checkCount', width: '100px' },
330
- { label: '异常数据', prop: 'accessNumbers', width: '340px' },
331
- ],
332
- formatEmpty: '-',
333
- abnormalDataInfo: {},
334
- ingoreDialogVisible: false,
335
- chargeAmountRate: 0,
336
- chargeAmountStatus: '',
337
- machineInfoStatus: '',
338
- chargeAmountMonitor: '',
339
- machineInfoMonitor: '',
340
- currentRow: {},
341
- scenceId: '',
342
- delReson: '',
343
- ruleForm: {
344
- delReson: '',
345
- },
346
- rules: {
347
- delReson: [{ required: true, message: '请选择忽略原因', trigger: 'change' }],
348
- },
349
- };
350
- },
351
- created() {
352
- // 默认选中一周时间
353
- // this.loading = true;
354
- this.getTimeFn();
355
- this.crud.url = '/monitor/monitorInfoPage';
356
- this.scenceId = this.$route.params.scenceId;
357
- // this.hospitalName = this.$route.params.hospitalName;
358
- // this.hospitalNameId = this.$route.params.hospitalId;
359
- // this.hospitalId = this.$route.params.hospitalId;
360
- this.qualityDataMonitorConfigInfo();
361
- this.getAbnormalData();
362
- },
363
- mounted() {},
364
- methods: {
365
- qualityDataMonitorConfigInfo() {
366
- qualityDataMonitorConfigInfo({
367
- scenceId: this.$route.params.scenceId,
368
- }).then(res => {
369
- this.dayDataMonitorIsNormal =
370
- res.dayDataStatus == 1 ? '异常' : res.dayDataStatus == 2 ? '正常' : '-';
371
- this.hospitalName = res.hospitalName;
372
- this.hospitalNameId = res.hospitalId;
373
- this.hospitalId = res.hospitalId;
374
- this.lookPicMonitor = res.lookPicMonitor; // 看图监测
375
- this.dayDataMonitor = res.dayDataMonitor;
376
- this.chargeAmountRate = res.chargeAmountRate; // 收费量监测
377
- this.chargeAmountStatus = res.chargeAmountStatus; // 收费量监测情况1异常2正常
378
- this.chargeAmountMonitor = res.chargeAmountMonitor; // 收费量监测是否开启0否1是
379
- this.machineInfoStatus = res.machineInfoStatus; // 自助机监测状态 1异常2正常
380
- this.machineInfoMonitor = res.machineInfoMonitor; // 自助机监测是否开启0否1是
381
- this.crud.toQuery();
382
- });
383
- },
384
- // 日报监测删除
385
- deleteData(row) {
386
- this.$confirm('是否删除此条数据, 是否继续?', '提示', {
387
- confirmButtonText: '确定',
388
- cancelButtonText: '取消',
389
- type: 'warning',
390
- })
391
- .then(() => {
392
- let data = {
393
- hospitalId: this.$route.params.scenceId,
394
- date: row.patientCheckDate,
395
- };
396
- removeDayDataByHosAndDate(data).then(res => {
397
- this.$message({
398
- type: 'success',
399
- message: '删除成功!',
400
- });
401
- });
402
- })
403
- .catch(() => {
404
- this.$message({
405
- type: 'info',
406
- message: '已取消删除',
407
- });
408
- });
409
- },
410
- tableRowClassName({ row, rowIndex }) {
411
- if (row.pigCount != row.checkCount) {
412
- return 'rowRed';
413
- }
414
- return '';
415
- },
416
- // 忽略
417
- ignoreFn(row) {
418
- this.ruleForm.delReson = '';
419
- this.currentRow = row;
420
- this.ingoreDialogVisible = true;
421
- },
422
- ignoreResonBtn() {
423
- this.$refs.ruleForm.validate(valid => {
424
- if (valid) {
425
- const { patientId, scenceId } = this.currentRow;
426
- let data = [{ patientId, scenceId, deleteReason: this.ruleForm.delReson }];
427
- deleteRecord(data).then(res => {
428
- this.$message.success('忽略成功!');
429
- this.getAbnormalData();
430
- this.ingoreDialogVisible = false;
431
- });
432
- } else {
433
- console.log('error submit!!');
434
- return false;
435
- }
436
- });
437
- },
438
- getTimeFn() {
439
- const end = new Date();
440
- const start = new Date();
441
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
442
- end.setTime(end.getTime() - 3600 * 1000 * 24 * 1);
443
- this.time[0] = this.formatDate(start);
444
- this.time[1] = this.formatDate(end);
445
- },
446
- formatDate(date) {
447
- var myyear = date.getFullYear();
448
- var mymonth = date.getMonth() + 1;
449
- var myweekday = date.getDate();
450
-
451
- if (mymonth < 10) {
452
- mymonth = '0' + mymonth;
453
- }
454
- if (myweekday < 10) {
455
- myweekday = '0' + myweekday;
456
- }
457
- return myyear + '-' + mymonth + '-' + myweekday;
458
- },
459
- getMonitorDetail(row) {
460
- this.loading = true;
461
- // 置空图表数据
462
- this.achiveChartData = {
463
- dayAverageCount: [],
464
- dayMonitorInfo: [],
465
- dayuploadCount: [],
466
- };
467
- this.dayTime = [];
468
- // 调用接口
469
- institutionMonitor
470
- .monitorDetail({
471
- scenceId: this.scenceId,
472
- hospitalId: this.hospitalId,
473
- startTime: this.time ? this.time[0] : null,
474
- endTime: this.time ? this.time[1] : null,
475
- })
476
- .then(res => {
477
- // if (row) this.Monitore = "imageMonitore";
478
- this.loading = false;
479
- this.archiveTotalData.archiveTotal = res.archiveTotal;
480
- this.archiveTotalData.todayArchiveCount = res.todayArchiveCount;
481
- this.lineData = res.dayMonitorInfo;
482
- let dayMonitorInfo = res.dayMonitorInfo;
483
- let dayAverageCount = res.dayAverageCount;
484
- for (let list of dayMonitorInfo) {
485
- // dayMonitorInfo 每日 dayArchiveCount 归档
486
- this.achiveChartData.dayMonitorInfo.push(list.dayCheckCount);
487
- this.achiveChartData.dayAverageCount.push(list.dayArchiveCount);
488
- this.achiveChartData.dayuploadCount.push(list.dayuploadCount);
489
- this.dayTime.push(list.dayTime);
490
- }
491
- });
492
- },
493
- handleClick(val, event) {
494
- if (val.name == 'fileMonitore') {
495
- if ((this.dailyTime && this.dailyTime.length == 0) || !this.dailyTime) {
496
- this.dailyTime = [getDay(-7), getDay(-1)];
497
- this.crud.query.startTime = this.dailyTime[0];
498
- this.crud.query.endTime = this.dailyTime[1];
499
- }
500
- console.log(this.crud.query, 'this.crud.query');
501
- this.crud.toQuery();
502
- }
503
- },
504
- tableHandleChange(val, event) {
505
- if (val.name == 'first') {
506
- this.getMonitorDetail(true);
507
- }
508
- },
509
- dailyTimeChange(e) {
510
- if (e && e.length != 0) {
511
- this.crud.query.startTime = this.dailyTime[0];
512
- this.crud.query.endTime = this.dailyTime[1];
513
- }
514
- this.$forceUpdate();
515
- },
516
- // 日期改变调用接口
517
- timeChange(e) {
518
- this.$nextTick(() => {
519
- this.getMonitorDetail();
520
- setTimeout(() => {
521
- this.crud.toQuery();
522
- }, 500);
523
- });
524
- },
525
- takeMonitor() {
526
- this.takePhotoLoading = true;
527
- setTimeout(() => {
528
- this.takePhotoLoading = false;
529
- this.$message.success('监测完成');
530
- }, 10000);
531
- },
532
- // 看图异常
533
- getAbnormalData(row) {
534
- institutionMonitor.getAbnormalData({ scenceId: this.scenceId }).then(res => {
535
- this.abnormalDataInfo = res;
536
- this.lookPhotoAbnormal = res.abnormalData;
537
- this.isStatus = res.lookPicMonitor == 0;
538
- this.isNormal = res.lookPicStatus == 1 ? '异常' : res.lookPicStatus == 2 ? '正常' : '-';
539
- if (res.lookPicStatus == 1 && res.abnormalData.length == 0) {
540
- this.emptyText = '数据不足5例';
541
- } else if (res.lookPicStatus == '-') {
542
- this.emptyText = '暂无数据';
543
- this.lookPhotoAbnormal = [];
544
- } else {
545
- this.emptyText = '暂无数据';
546
- }
547
- if (row) {
548
- this.lookPhotoLoading = false;
549
- this.$message.success('监测完成');
550
- }
551
- });
552
- },
553
- dayMonitor() {
554
- dayMonitorAgain({
555
- scenceId: this.scenceId,
556
- startTime: this.dailyTime[0],
557
- endTime: this.dailyTime[1],
558
- }).then(res => {
559
- this.$message.success('刷新成功');
560
- this.qualityDataMonitorConfigInfo();
561
- });
562
- },
563
- dayMonitorSituation() {
564
- dayMonitorRefresh({ scenceId: this.scenceId }).then(res => {
565
- this.$message.success('监测完成');
566
- this.qualityDataMonitorConfigInfo();
567
- });
568
- },
569
- // 刷新状态
570
- monitoreClick(str) {
571
- this.qualityDataMonitorConfigInfo();
572
- this.$message.success(str);
573
- },
574
- lookMonitor() {
575
- this.qualityDataMonitorConfigInfo();
576
- this.lookPhotoLoading = true;
577
- institutionMonitor.monitorAgain({ scenceId: this.scenceId, type: 2 }).then(res => {
578
- if (res) {
579
- this.getAbnormalData(res);
580
- }
581
- });
582
- },
583
- getMonitorInfoPage() {
584
- let data = {
585
- startTime: this.time ? `${this.time[0]}` : undefined,
586
- endTime: this.time ? `${this.time[1]}` : undefined,
587
- scenceId: this.scenceId,
588
- hospitalId: this.hospitalId,
589
- };
590
- console.log('data', data);
591
- institutionMonitor.monitorInfoPage(data).then(res => {});
592
- },
593
-
594
- monitorInfoPageRefresh(row) {
595
- let data = {
596
- hospitalId: this.scenceId,
597
- checkDate: row.patientCheckDate,
598
- };
599
- monitorInfoPageRefresh(data).then(res => {
600
- this.$message.success('刷新成功');
601
- this.crud.toQuery();
602
- });
603
- },
604
- upload() {
605
- const params = {
606
- hospitalId: this.scenceId,
607
- startDate: this.dailyTime[0],
608
- endDate: this.dailyTime[1],
609
- handleType: 2,
610
- };
611
- uploadHandleDataMonitor(params).then(res => {
612
- this.$message.success('上传同步成功');
613
- });
614
- },
615
- [CRUD.HOOK.beforeRefresh](crud) {
616
- // crud.query = {
617
- // // startTime: this.time[0] ? `${this.time[0]}` : start,
618
- // // endTime: this.time[1] ? `${this.time[1]}` : end,
619
- // hospitalId: this.scenceId,
620
- // // hospitalId: this.hospitalId,
621
- // };
622
- crud.query.hospitalId = this.scenceId;
623
- },
624
- [CRUD.HOOK.afterRefresh](crud) {},
625
- },
626
- };
627
- </script>
628
- <style>
629
- .tooltipAbnormal {
630
- /* max-height: 60vh;
631
- overflow: auto; */
632
- }
633
- </style>
634
- <style rel="stylesheet/scss" lang="scss" scoped>
635
- ::v-deep .el-table .rowRed td {
636
- color: red;
637
- }
638
-
639
- .red {
640
- color: red;
641
- }
642
-
643
- .hospitalName {
644
- display: flex;
645
- align-items: center;
646
- margin-bottom: 15px;
647
-
648
- img {
649
- margin-right: 8px;
650
- width: 12px;
651
- height: 16px;
652
- }
653
-
654
- span {
655
- font-size: 14px;
656
- }
657
- }
658
-
659
- .echarts {
660
- background-color: #fff;
661
- margin-top: 0.5rem;
662
- border: 1px solid #dcdfe6;
663
- width: 100% !important;
664
- }
665
-
666
- .date {
667
- padding: 1rem;
668
- }
669
-
670
- ::v-deep .el-date-editor--daterange.el-input__inner {
671
- width: 280px;
672
- }
673
-
674
- ::v-deep .el-date-editor .el-range-separator {
675
- width: 10%;
676
- }
677
-
678
- .showOverTooltip {
679
- display: -webkit-box;
680
- text-overflow: ellipsis;
681
- overflow: hidden;
682
- /*这里是3行*/
683
- -webkit-line-clamp: 3;
684
- -webkit-box-orient: vertical;
685
- }
686
- </style>
1
+ <template>
2
+ <div class="app-container">
3
+ <!-- 统计模块 -->
4
+ <div class="hospitalName">
5
+ <img src="~@/assets/images/location.png" alt="" />
6
+ <span>{{ hospitalName }}</span>
7
+ </div>
8
+ <el-tabs v-loading="loading" type="border-card" v-model="Monitore" @tab-click="handleClick">
9
+ <el-tab-pane name="imageMonitore" label="看图监测">
10
+ <div class="warningStyle" v-show="lookPicMonitor == '1'">
11
+ <div>
12
+ <i class="el-icon-warning warning-icon"></i>
13
+ 提示:该机构系统看图监测机制:每天11点,15点,19点,22点,抽取{{
14
+ abnormalDataInfo.lookPicHourTime
15
+ }}个小时内五例数据,但不抽近{{ abnormalDataInfo.lookPicMinuteTime }}分钟的数据
16
+ </div>
17
+ </div>
18
+ <span style="font-size: 15px; font-weight: bold">看图情况:</span>
19
+ <span style="font-size: 15px" :class="{ red: isNormal == '异常' }">{{ isNormal }}</span>
20
+
21
+ <h4 style="padding: 25px 0 10px; font-size: 15px">
22
+ 看图异常数据
23
+ <el-button
24
+ @click="lookMonitor"
25
+ size="mini"
26
+ style="margin-left: 8px"
27
+ type="primary"
28
+ :disabled="isStatus"
29
+ >重新监测
30
+ </el-button>
31
+ </h4>
32
+ <el-table
33
+ v-loading="lookPhotoLoading"
34
+ element-loading-text="正在监测..."
35
+ :data="lookPhotoAbnormal">
36
+ <template slot="empty">
37
+ <span>{{ emptyText }}</span>
38
+ </template>
39
+ <el-table-column label="序号" width="65px" fixed :show-overflow-tooltip="true">
40
+ <template slot-scope="scope">
41
+ <span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
42
+ </template>
43
+ </el-table-column>
44
+ <el-table-column
45
+ v-for="(item, index) in checkTable"
46
+ :key="index"
47
+ :label="item.label"
48
+ :prop="item.prop"
49
+ :width="item.width">
50
+ <!-- 数据的遍历 scope.row就代表数据的每一个对象-->
51
+ <template slot-scope="scope">
52
+ <span v-if="item.prop == 'patientSex'">
53
+ {{ scope.row.patientSex ? (scope.row.patientSex == '1' ? '男' : '女') : '-' }}
54
+ </span>
55
+ <span v-else-if="item.prop == 'remark'">
56
+ <el-tooltip
57
+ popper-class="tooltipAbnormal"
58
+ :content="scope.row.remark"
59
+ placement="top">
60
+ <p class="showOverTooltip">{{ scope.row.remark }}</p>
61
+ </el-tooltip>
62
+ </span>
63
+ <span v-else>
64
+ {{ scope.row[item.prop] || '-' }}
65
+ </span>
66
+ </template>
67
+ </el-table-column>
68
+ <el-table-column label="操作" width="100" fixed="right">
69
+ <template slot-scope="scope">
70
+ <el-button size="mini" type="text" @click="ignoreFn(scope.row)">忽略</el-button>
71
+ </template>
72
+ </el-table-column>
73
+ </el-table>
74
+ </el-tab-pane>
75
+
76
+ <el-tab-pane name="imageAbnormalMonitor" label="看图异常监测">
77
+ <image-abnormal-monitor v-if="Monitore == 'imageAbnormalMonitor'"></image-abnormal-monitor>
78
+ </el-tab-pane>
79
+
80
+ <el-tab-pane name="leakageMonitor" label="漏图监测">
81
+ <leakage-anomaly
82
+ v-if="Monitore == 'leakageMonitor'"
83
+ :hospitalName="hospitalName"></leakage-anomaly>
84
+ </el-tab-pane>
85
+ <el-tab-pane name="qualityMonitore" label="数据质量监测">
86
+ <qualityMonitore v-if="Monitore == 'qualityMonitore'"> </qualityMonitore>
87
+ </el-tab-pane>
88
+ <el-tab-pane name="moveMonitore" label="客户端运行监测">
89
+ <moveMonitore v-if="Monitore == 'moveMonitore'"> </moveMonitore>
90
+ </el-tab-pane>
91
+ <el-tab-pane name="fileMonitore" label="日报上传监测" :lazy="true">
92
+ <div class="warningStyle" v-show="dayDataMonitor == '1'">
93
+ <div>
94
+ <i class="el-icon-warning warning-icon"></i>
95
+ 提示:日报上传监测逻辑为每日归档量和日报上传量不相同则为异常
96
+ </div>
97
+ </div>
98
+ <span style="font-size: 15px; font-weight: bold">日报上传监测情况:</span>
99
+ <span style="font-size: 15px" :class="{ red: dayDataMonitorIsNormal == '异常' }">{{
100
+ dayDataMonitorIsNormal
101
+ }}</span>
102
+ <el-button @click="dayMonitorSituation" style="margin-left: 8px" type="primary"
103
+ >重新监测
104
+ </el-button>
105
+ <h4 style="padding: 25px 0 10px; font-size: 15px">
106
+ 日报上传监测数据
107
+ <DateRangePickerProhibitTodayNext
108
+ v-model="dailyTime"
109
+ type="daterange"
110
+ class="date-item"
111
+ value-format="yyyy-MM-dd"
112
+ @input="dailyTimeChange"
113
+ unlink-panels
114
+ :clearable="false" />
115
+ <!-- <date-range-picker
116
+
117
+ /> -->
118
+ <el-button size="small" type="primary" @click="crud.toQuery">查询</el-button>
119
+ <el-button
120
+ @click="dayMonitor"
121
+ style="margin-left: 8px"
122
+ type="primary"
123
+ plain
124
+ :disabled="dayDataMonitor == '0'"
125
+ >刷新
126
+ </el-button>
127
+ <el-button style="margin-left: 8px" @click="upload">上传同步 </el-button>
128
+ </h4>
129
+ <div class="echarts" v-show="dayDataMonitor == '1'">
130
+ <!-- 日期选择器 -->
131
+
132
+ <el-row style="background: #fff; padding: 16px 16px 0">
133
+ <el-col :span="24">
134
+ <el-tabs v-model="activeName" @tab-click="tableHandleChange">
135
+ <el-tab-pane label="表格" name="second">
136
+ <el-table
137
+ :data="crud.data"
138
+ :row-class-name="tableRowClassName"
139
+ ref="workstationManageTableref"
140
+ lazy
141
+ v-loading="crud.loading"
142
+ class="table-fixed"
143
+ row-key="id"
144
+ min-height="600px">
145
+ <!-- fixed="left" -->
146
+ <el-table-column
147
+ label="序号"
148
+ width="80px"
149
+ align="center"
150
+ :show-overflow-tooltip="true">
151
+ <template slot-scope="scope">
152
+ <span>{{ (crud.page.page - 1) * crud.page.size + scope.$index + 1 }}</span>
153
+ <!-- <span>{{ scope.$index + 1 }}</span> -->
154
+ </template>
155
+ </el-table-column>
156
+ <el-table-column
157
+ v-for="(item, index) in projectHeader"
158
+ :key="index"
159
+ align="center"
160
+ :label="item.label"
161
+ :prop="item.prop"
162
+ :min-width="item.width">
163
+ <template slot-scope="scope">
164
+ <span>
165
+ {{ scope.row[item.prop] }}
166
+ </span>
167
+ </template>
168
+ </el-table-column>
169
+ <el-table-column label="操作" width="120px">
170
+ <template slot-scope="scope">
171
+ <el-button
172
+ type="text"
173
+ size="small"
174
+ @click="monitorInfoPageRefresh(scope.row)"
175
+ v-if="scope.row.pigCount != scope.row.checkCount"
176
+ >刷新</el-button
177
+ >
178
+ <el-button type="text" size="small" @click="deleteData(scope.row)"
179
+ >删除</el-button
180
+ >
181
+ </template>
182
+ </el-table-column>
183
+ </el-table>
184
+ <pagination />
185
+ </el-tab-pane>
186
+ <el-tab-pane label="折线图" name="first">
187
+ <line-chart
188
+ :height="`400px`"
189
+ :className="'lineChart'"
190
+ :chart-data="achiveChartData"
191
+ :x-data="dayTime" />
192
+ </el-tab-pane>
193
+ </el-tabs>
194
+ </el-col>
195
+ </el-row>
196
+ </div>
197
+ </el-tab-pane>
198
+ <el-tab-pane name="checkProjectCode" label="检查项目编码监测" :lazy="true">
199
+ <checkProjectCode v-if="Monitore == 'checkProjectCode'" />
200
+ </el-tab-pane>
201
+ </el-tabs>
202
+
203
+ <el-dialog title="选择忽略原因" :visible.sync="ingoreDialogVisible" width="350px">
204
+ <h4 style="margin: 8px 0">忽略后,该数据不再进入监测范围</h4>
205
+ <el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm">
206
+ <el-form-item label="" prop="delReson">
207
+ <el-select
208
+ v-model="ruleForm.delReson"
209
+ clearable
210
+ placeholder="选择忽略原因"
211
+ class="filter-item"
212
+ style="width: 320px">
213
+ <el-option
214
+ v-for="item in dict.delete_reason"
215
+ :key="item.value"
216
+ :label="item.label"
217
+ :value="item.label" />
218
+ </el-select>
219
+ </el-form-item>
220
+ </el-form>
221
+ <span slot="footer" class="dialog-footer">
222
+ <el-button @click="ingoreDialogVisible = false">取 消</el-button>
223
+ <el-button type="primary" @click="ignoreResonBtn">确 定</el-button>
224
+ </span>
225
+ </el-dialog>
226
+ </div>
227
+ </template>
228
+
229
+ <script>
230
+ import LineChart from '../components/LineChart.vue';
231
+ import qualityMonitore from './qualityMonitore.vue';
232
+ import moveMonitore from './moveMonitore.vue';
233
+
234
+ import institutionMonitor, {
235
+ deleteRecord,
236
+ qualityDataMonitorConfigInfo,
237
+ monitorInfoPageRefresh,
238
+ dayMonitorAgain,
239
+ removeDayDataByHosAndDate,
240
+ uploadHandleDataMonitor,
241
+ dayMonitorRefresh,
242
+ } from '@/api/institutionMonitor/index';
243
+ import DateRangePicker from '@/components/DateRangePicker';
244
+ import DateRangePickerProhibitTodayNext from '@/components/DateRangePickerProhibitTodayNext';
245
+ import CRUD, { presenter, header, crud } from '@crud/crud';
246
+ import pagination from '@crud/Pagination';
247
+ import { getDay } from '@/utils/getTime';
248
+ import imageAbnormalMonitor from './imageAbnormalMonitor.vue';
249
+ import leakageAnomaly from './leakageAnomaly.vue';
250
+ import checkProjectCode from './checkProjectCode.vue';
251
+ const start = getDay(-7);
252
+ const end = getDay(-1);
253
+ export default {
254
+ cruds() {
255
+ return CRUD({
256
+ title: '机构管理',
257
+ url: '',
258
+ sort: ['updateTime,desc'],
259
+ query: {
260
+ startTime: start,
261
+ endTime: end,
262
+ },
263
+ });
264
+ },
265
+ dicts: ['delete_reason'],
266
+ // name: "monitorDetail",
267
+ components: {
268
+ LineChart,
269
+ qualityMonitore,
270
+ moveMonitore,
271
+ DateRangePicker,
272
+ pagination,
273
+ imageAbnormalMonitor,
274
+ leakageAnomaly,
275
+ checkProjectCode,
276
+ DateRangePickerProhibitTodayNext,
277
+ },
278
+ mixins: [presenter(), header(), crud()],
279
+ data() {
280
+ return {
281
+ Monitore: 'imageMonitore', //'imageMonitore' ,
282
+ // 日期选中
283
+ time: [],
284
+ dailyTime: [],
285
+ // 存取图表数据
286
+ achiveChartData: {
287
+ // 日均检查量
288
+ dayAverageCount: [],
289
+ // 每日检查量
290
+ dayMonitorInfo: [],
291
+ dayuploadCount: [],
292
+ },
293
+ // 存取归档总量
294
+ archiveTotalData: {
295
+ archiveTotal: 0,
296
+ todayArchiveCount: 0,
297
+ },
298
+ // 存取图表时间
299
+ dayTime: [],
300
+ hospitalName: '',
301
+ hospitalNameId: '',
302
+ hospitalId: '',
303
+ lookPicMonitor: '',
304
+ dayDataMonitor: '',
305
+ takePhotoAbnormal: [],
306
+ lookPhotoAbnormal: [],
307
+ checkTable: [
308
+ { label: '检查编号', prop: 'accessNumber', width: '120px' },
309
+ { label: '姓名', prop: 'patientName', width: '120px' },
310
+ { label: '性别', prop: 'patientSex', width: '80px' },
311
+ { label: '年龄', prop: 'patientAge', width: '80px' },
312
+ { label: 'studyUid', prop: 'studyUid', minWidth: '140px' },
313
+ { label: '检查时间', prop: 'patientCheckDate', width: '150px' },
314
+ { label: '监测时间', prop: 'monitorTime', width: '150px' },
315
+ { label: '错误原因', prop: 'remark', minWidth: '250px' },
316
+ ],
317
+ lookPhotoLoading: false,
318
+ takePhotoLoading: false,
319
+ loading: false,
320
+ isStatus: '',
321
+ emptyText: '',
322
+ isNormal: '',
323
+ dayDataMonitorIsNormal: '',
324
+ activeName: 'second',
325
+ lineData: [],
326
+ projectHeader: [
327
+ { label: '日期', prop: 'patientCheckDate', width: '120px' },
328
+ { label: '归档量', prop: 'pigCount', width: '100px' },
329
+ { label: '日报上传量', prop: 'checkCount', width: '100px' },
330
+ { label: '异常数据', prop: 'accessNumbers', width: '340px' },
331
+ ],
332
+ formatEmpty: '-',
333
+ abnormalDataInfo: {},
334
+ ingoreDialogVisible: false,
335
+ chargeAmountRate: 0,
336
+ chargeAmountStatus: '',
337
+ machineInfoStatus: '',
338
+ chargeAmountMonitor: '',
339
+ machineInfoMonitor: '',
340
+ currentRow: {},
341
+ scenceId: '',
342
+ delReson: '',
343
+ ruleForm: {
344
+ delReson: '',
345
+ },
346
+ rules: {
347
+ delReson: [{ required: true, message: '请选择忽略原因', trigger: 'change' }],
348
+ },
349
+ };
350
+ },
351
+ created() {
352
+ // 默认选中一周时间
353
+ // this.loading = true;
354
+ this.getTimeFn();
355
+ this.crud.url = '/monitor/monitorInfoPage';
356
+ this.scenceId = this.$route.params.scenceId;
357
+ // this.hospitalName = this.$route.params.hospitalName;
358
+ // this.hospitalNameId = this.$route.params.hospitalId;
359
+ // this.hospitalId = this.$route.params.hospitalId;
360
+ this.qualityDataMonitorConfigInfo();
361
+ this.getAbnormalData();
362
+ },
363
+ mounted() {},
364
+ methods: {
365
+ qualityDataMonitorConfigInfo() {
366
+ qualityDataMonitorConfigInfo({
367
+ scenceId: this.$route.params.scenceId,
368
+ }).then(res => {
369
+ this.dayDataMonitorIsNormal =
370
+ res.dayDataStatus == 1 ? '异常' : res.dayDataStatus == 2 ? '正常' : '-';
371
+ this.hospitalName = res.hospitalName;
372
+ this.hospitalNameId = res.hospitalId;
373
+ this.hospitalId = res.hospitalId;
374
+ this.lookPicMonitor = res.lookPicMonitor; // 看图监测
375
+ this.dayDataMonitor = res.dayDataMonitor;
376
+ this.chargeAmountRate = res.chargeAmountRate; // 收费量监测
377
+ this.chargeAmountStatus = res.chargeAmountStatus; // 收费量监测情况1异常2正常
378
+ this.chargeAmountMonitor = res.chargeAmountMonitor; // 收费量监测是否开启0否1是
379
+ this.machineInfoStatus = res.machineInfoStatus; // 自助机监测状态 1异常2正常
380
+ this.machineInfoMonitor = res.machineInfoMonitor; // 自助机监测是否开启0否1是
381
+ this.crud.toQuery();
382
+ });
383
+ },
384
+ // 日报监测删除
385
+ deleteData(row) {
386
+ this.$confirm('是否删除此条数据, 是否继续?', '提示', {
387
+ confirmButtonText: '确定',
388
+ cancelButtonText: '取消',
389
+ type: 'warning',
390
+ })
391
+ .then(() => {
392
+ let data = {
393
+ hospitalId: this.$route.params.scenceId,
394
+ date: row.patientCheckDate,
395
+ };
396
+ removeDayDataByHosAndDate(data).then(res => {
397
+ this.$message({
398
+ type: 'success',
399
+ message: '删除成功!',
400
+ });
401
+ });
402
+ })
403
+ .catch(() => {
404
+ this.$message({
405
+ type: 'info',
406
+ message: '已取消删除',
407
+ });
408
+ });
409
+ },
410
+ tableRowClassName({ row, rowIndex }) {
411
+ if (row.pigCount != row.checkCount) {
412
+ return 'rowRed';
413
+ }
414
+ return '';
415
+ },
416
+ // 忽略
417
+ ignoreFn(row) {
418
+ this.ruleForm.delReson = '';
419
+ this.currentRow = row;
420
+ this.ingoreDialogVisible = true;
421
+ },
422
+ ignoreResonBtn() {
423
+ this.$refs.ruleForm.validate(valid => {
424
+ if (valid) {
425
+ const { patientId, scenceId } = this.currentRow;
426
+ let data = [{ patientId, scenceId, deleteReason: this.ruleForm.delReson }];
427
+ deleteRecord(data).then(res => {
428
+ this.$message.success('忽略成功!');
429
+ this.getAbnormalData();
430
+ this.ingoreDialogVisible = false;
431
+ });
432
+ } else {
433
+ console.log('error submit!!');
434
+ return false;
435
+ }
436
+ });
437
+ },
438
+ getTimeFn() {
439
+ const end = new Date();
440
+ const start = new Date();
441
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
442
+ end.setTime(end.getTime() - 3600 * 1000 * 24 * 1);
443
+ this.time[0] = this.formatDate(start);
444
+ this.time[1] = this.formatDate(end);
445
+ },
446
+ formatDate(date) {
447
+ var myyear = date.getFullYear();
448
+ var mymonth = date.getMonth() + 1;
449
+ var myweekday = date.getDate();
450
+
451
+ if (mymonth < 10) {
452
+ mymonth = '0' + mymonth;
453
+ }
454
+ if (myweekday < 10) {
455
+ myweekday = '0' + myweekday;
456
+ }
457
+ return myyear + '-' + mymonth + '-' + myweekday;
458
+ },
459
+ getMonitorDetail(row) {
460
+ this.loading = true;
461
+ // 置空图表数据
462
+ this.achiveChartData = {
463
+ dayAverageCount: [],
464
+ dayMonitorInfo: [],
465
+ dayuploadCount: [],
466
+ };
467
+ this.dayTime = [];
468
+ // 调用接口
469
+ institutionMonitor
470
+ .monitorDetail({
471
+ scenceId: this.scenceId,
472
+ hospitalId: this.hospitalId,
473
+ startTime: this.time ? this.time[0] : null,
474
+ endTime: this.time ? this.time[1] : null,
475
+ })
476
+ .then(res => {
477
+ // if (row) this.Monitore = "imageMonitore";
478
+ this.loading = false;
479
+ this.archiveTotalData.archiveTotal = res.archiveTotal;
480
+ this.archiveTotalData.todayArchiveCount = res.todayArchiveCount;
481
+ this.lineData = res.dayMonitorInfo;
482
+ let dayMonitorInfo = res.dayMonitorInfo;
483
+ let dayAverageCount = res.dayAverageCount;
484
+ for (let list of dayMonitorInfo) {
485
+ // dayMonitorInfo 每日 dayArchiveCount 归档
486
+ this.achiveChartData.dayMonitorInfo.push(list.dayCheckCount);
487
+ this.achiveChartData.dayAverageCount.push(list.dayArchiveCount);
488
+ this.achiveChartData.dayuploadCount.push(list.dayuploadCount);
489
+ this.dayTime.push(list.dayTime);
490
+ }
491
+ });
492
+ },
493
+ handleClick(val, event) {
494
+ if (val.name == 'fileMonitore') {
495
+ if ((this.dailyTime && this.dailyTime.length == 0) || !this.dailyTime) {
496
+ this.dailyTime = [getDay(-7), getDay(-1)];
497
+ this.crud.query.startTime = this.dailyTime[0];
498
+ this.crud.query.endTime = this.dailyTime[1];
499
+ }
500
+ console.log(this.crud.query, 'this.crud.query');
501
+ this.crud.toQuery();
502
+ }
503
+ },
504
+ tableHandleChange(val, event) {
505
+ if (val.name == 'first') {
506
+ this.getMonitorDetail(true);
507
+ }
508
+ },
509
+ dailyTimeChange(e) {
510
+ if (e && e.length != 0) {
511
+ this.crud.query.startTime = this.dailyTime[0];
512
+ this.crud.query.endTime = this.dailyTime[1];
513
+ }
514
+ this.$forceUpdate();
515
+ },
516
+ // 日期改变调用接口
517
+ timeChange(e) {
518
+ this.$nextTick(() => {
519
+ this.getMonitorDetail();
520
+ setTimeout(() => {
521
+ this.crud.toQuery();
522
+ }, 500);
523
+ });
524
+ },
525
+ takeMonitor() {
526
+ this.takePhotoLoading = true;
527
+ setTimeout(() => {
528
+ this.takePhotoLoading = false;
529
+ this.$message.success('监测完成');
530
+ }, 10000);
531
+ },
532
+ // 看图异常
533
+ getAbnormalData(row) {
534
+ institutionMonitor.getAbnormalData({ scenceId: this.scenceId }).then(res => {
535
+ this.abnormalDataInfo = res;
536
+ this.lookPhotoAbnormal = res.abnormalData;
537
+ this.isStatus = res.lookPicMonitor == 0;
538
+ this.isNormal = res.lookPicStatus == 1 ? '异常' : res.lookPicStatus == 2 ? '正常' : '-';
539
+ if (res.lookPicStatus == 1 && res.abnormalData.length == 0) {
540
+ this.emptyText = '数据不足5例';
541
+ } else if (res.lookPicStatus == '-') {
542
+ this.emptyText = '暂无数据';
543
+ this.lookPhotoAbnormal = [];
544
+ } else {
545
+ this.emptyText = '暂无数据';
546
+ }
547
+ if (row) {
548
+ this.lookPhotoLoading = false;
549
+ this.$message.success('监测完成');
550
+ }
551
+ });
552
+ },
553
+ dayMonitor() {
554
+ dayMonitorAgain({
555
+ scenceId: this.scenceId,
556
+ startTime: this.dailyTime[0],
557
+ endTime: this.dailyTime[1],
558
+ }).then(res => {
559
+ this.$message.success('刷新成功');
560
+ this.qualityDataMonitorConfigInfo();
561
+ });
562
+ },
563
+ dayMonitorSituation() {
564
+ dayMonitorRefresh({ scenceId: this.scenceId }).then(res => {
565
+ this.$message.success('监测完成');
566
+ this.qualityDataMonitorConfigInfo();
567
+ });
568
+ },
569
+ // 刷新状态
570
+ monitoreClick(str) {
571
+ this.qualityDataMonitorConfigInfo();
572
+ this.$message.success(str);
573
+ },
574
+ lookMonitor() {
575
+ this.qualityDataMonitorConfigInfo();
576
+ this.lookPhotoLoading = true;
577
+ institutionMonitor.monitorAgain({ scenceId: this.scenceId, type: 2 }).then(res => {
578
+ if (res) {
579
+ this.getAbnormalData(res);
580
+ }
581
+ });
582
+ },
583
+ getMonitorInfoPage() {
584
+ let data = {
585
+ startTime: this.time ? `${this.time[0]}` : undefined,
586
+ endTime: this.time ? `${this.time[1]}` : undefined,
587
+ scenceId: this.scenceId,
588
+ hospitalId: this.hospitalId,
589
+ };
590
+ console.log('data', data);
591
+ institutionMonitor.monitorInfoPage(data).then(res => {});
592
+ },
593
+
594
+ monitorInfoPageRefresh(row) {
595
+ let data = {
596
+ hospitalId: this.scenceId,
597
+ checkDate: row.patientCheckDate,
598
+ };
599
+ monitorInfoPageRefresh(data).then(res => {
600
+ this.$message.success('刷新成功');
601
+ this.crud.toQuery();
602
+ });
603
+ },
604
+ upload() {
605
+ const params = {
606
+ hospitalId: this.scenceId,
607
+ startDate: this.dailyTime[0],
608
+ endDate: this.dailyTime[1],
609
+ handleType: 2,
610
+ };
611
+ uploadHandleDataMonitor(params).then(res => {
612
+ this.$message.success('上传同步成功');
613
+ });
614
+ },
615
+ [CRUD.HOOK.beforeRefresh](crud) {
616
+ // crud.query = {
617
+ // // startTime: this.time[0] ? `${this.time[0]}` : start,
618
+ // // endTime: this.time[1] ? `${this.time[1]}` : end,
619
+ // hospitalId: this.scenceId,
620
+ // // hospitalId: this.hospitalId,
621
+ // };
622
+ crud.query.hospitalId = this.scenceId;
623
+ },
624
+ [CRUD.HOOK.afterRefresh](crud) {},
625
+ },
626
+ };
627
+ </script>
628
+ <style>
629
+ .tooltipAbnormal {
630
+ /* max-height: 60vh;
631
+ overflow: auto; */
632
+ }
633
+ </style>
634
+ <style rel="stylesheet/scss" lang="scss" scoped>
635
+ ::v-deep .el-table .rowRed td {
636
+ color: red;
637
+ }
638
+
639
+ .red {
640
+ color: red;
641
+ }
642
+
643
+ .hospitalName {
644
+ display: flex;
645
+ align-items: center;
646
+ margin-bottom: 15px;
647
+
648
+ img {
649
+ margin-right: 8px;
650
+ width: 12px;
651
+ height: 16px;
652
+ }
653
+
654
+ span {
655
+ font-size: 14px;
656
+ }
657
+ }
658
+
659
+ .echarts {
660
+ background-color: #fff;
661
+ margin-top: 0.5rem;
662
+ border: 1px solid #dcdfe6;
663
+ width: 100% !important;
664
+ }
665
+
666
+ .date {
667
+ padding: 1rem;
668
+ }
669
+
670
+ ::v-deep .el-date-editor--daterange.el-input__inner {
671
+ width: 280px;
672
+ }
673
+
674
+ ::v-deep .el-date-editor .el-range-separator {
675
+ width: 10%;
676
+ }
677
+
678
+ .showOverTooltip {
679
+ display: -webkit-box;
680
+ text-overflow: ellipsis;
681
+ overflow: hidden;
682
+ /*这里是3行*/
683
+ -webkit-line-clamp: 3;
684
+ -webkit-box-orient: vertical;
685
+ }
686
+ </style>