ylyx-cli 1.0.14 → 1.0.16
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 +4 -0
- package/bin/ylyx.js +168 -168
- package/lib/config.js +283 -299
- package/lib/deploy.js +529 -415
- package/lib/generator.js +192 -192
- package/lib/index.js +113 -113
- package/lib/interactive.js +87 -87
- package/lib/remote.js +179 -179
- package/lib/template.js +174 -174
- package/lib/utils.js +148 -148
- package/package.json +5 -5
- package/templates/react-app/files/README.md +23 -23
- package/templates/react-app/files/package.json +28 -28
- package/templates/react-app/files/public/index.html +11 -11
- package/templates/react-app/files/src/App.css +15 -15
- package/templates/react-app/files/src/App.js +15 -15
- package/templates/react-app/files/src/index.css +10 -10
- package/templates/react-app/files/src/index.js +11 -11
- package/templates/react-app/template.json +11 -11
- package/templates/react-component/files/Component.module.css +5 -5
- package/templates/react-component/files/Component.tsx +31 -31
- package/templates/react-component/files/index.ts +2 -2
- package/templates/react-component/template.json +48 -48
- package/templates/vue-app/files/.editorconfig +14 -14
- package/templates/vue-app/files/.env.development +21 -21
- package/templates/vue-app/files/.env.production +18 -18
- package/templates/vue-app/files/.eslintignore +5 -5
- package/templates/vue-app/files/.eslintrc.js +267 -267
- package/templates/vue-app/files/.prettierignore +11 -11
- package/templates/vue-app/files/.travis.yml +5 -5
- package/templates/vue-app/files/.vscode/extensions.json +7 -7
- package/templates/vue-app/files/.vscode/settings.json +39 -39
- package/templates/vue-app/files/LICENSE +191 -191
- package/templates/vue-app/files/README.md +87 -87
- package/templates/vue-app/files/babel.config.js +11 -11
- package/templates/vue-app/files/jest.config.js +24 -24
- package/templates/vue-app/files/package.json +136 -136
- package/templates/vue-app/files/plopfile.js +7 -7
- package/templates/vue-app/files/postcss.config.js +5 -5
- package/templates/vue-app/files/public/default.js +25 -25
- package/templates/vue-app/files/public/index.html +26 -26
- package/templates/vue-app/files/src/App.vue +54 -54
- package/templates/vue-app/files/src/api/bigDataV/index.js +198 -198
- package/templates/vue-app/files/src/api/data.js +42 -42
- package/templates/vue-app/files/src/api/dataArchive/index.js +186 -186
- package/templates/vue-app/files/src/api/generator/genConfig.js +16 -16
- package/templates/vue-app/files/src/api/generator/generator.js +32 -32
- package/templates/vue-app/files/src/api/indexManagement/index.js +39 -39
- package/templates/vue-app/files/src/api/institutionMonitor/index.js +396 -396
- package/templates/vue-app/files/src/api/institutionSet/index.js +120 -120
- package/templates/vue-app/files/src/api/login.js +44 -44
- package/templates/vue-app/files/src/api/selfStatistics/index.js +50 -50
- package/templates/vue-app/files/src/api/system/code.js +15 -15
- package/templates/vue-app/files/src/api/system/dict.js +34 -34
- package/templates/vue-app/files/src/api/system/dictDetail.js +52 -52
- package/templates/vue-app/files/src/api/system/equipment.js +35 -35
- package/templates/vue-app/files/src/api/system/examManage.js +49 -49
- package/templates/vue-app/files/src/api/system/examProject.js +48 -48
- package/templates/vue-app/files/src/api/system/hosModel.js +35 -35
- package/templates/vue-app/files/src/api/system/hospital.js +88 -88
- package/templates/vue-app/files/src/api/system/job.js +40 -40
- package/templates/vue-app/files/src/api/system/menu.js +67 -67
- package/templates/vue-app/files/src/api/system/model.js +42 -42
- package/templates/vue-app/files/src/api/system/risConfig.js +9 -9
- package/templates/vue-app/files/src/api/system/role.js +64 -64
- package/templates/vue-app/files/src/api/system/sysSet.js +19 -19
- package/templates/vue-app/files/src/api/system/timing.js +41 -41
- package/templates/vue-app/files/src/api/system/user.js +121 -121
- package/templates/vue-app/files/src/api/tools/alipay.js +25 -25
- package/templates/vue-app/files/src/api/tools/email.js +24 -24
- package/templates/vue-app/files/src/api/tools/localStorage.js +27 -27
- package/templates/vue-app/files/src/api/tools/qiniu.js +40 -40
- package/templates/vue-app/files/src/assets/css/font-awesome.css +2342 -2342
- package/templates/vue-app/files/src/assets/css/font-awesome.min.css +2336 -2336
- package/templates/vue-app/files/src/assets/fonts/fontawesome-webfont.svg +2671 -2671
- package/templates/vue-app/files/src/assets/icons/index.js +9 -9
- package/templates/vue-app/files/src/assets/icons/svg/hospital.svg +1 -1
- package/templates/vue-app/files/src/assets/icons/svg/hospital1.svg +1 -1
- package/templates/vue-app/files/src/assets/icons/svg/loginOne.svg +35 -35
- package/templates/vue-app/files/src/assets/icons/svg/loginOneWhite.svg +19 -19
- package/templates/vue-app/files/src/assets/icons/svg/loginOr.svg +93 -93
- package/templates/vue-app/files/src/assets/icons/svg/loginUp.svg +96 -96
- package/templates/vue-app/files/src/assets/icons/svg/monitor.svg +1 -1
- package/templates/vue-app/files/src/assets/icons/svg/offline.svg +1 -1
- package/templates/vue-app/files/src/assets/icons/svg/online.svg +1 -1
- package/templates/vue-app/files/src/assets/icons/svg/system.svg +1 -1
- package/templates/vue-app/files/src/assets/icons/svgo.yml +21 -21
- package/templates/vue-app/files/src/assets/styles/btn.scss +103 -103
- package/templates/vue-app/files/src/assets/styles/eladmin.scss +124 -124
- package/templates/vue-app/files/src/assets/styles/element-ui.scss +217 -217
- package/templates/vue-app/files/src/assets/styles/element-variables.scss +31 -31
- package/templates/vue-app/files/src/assets/styles/global.scss +73 -73
- package/templates/vue-app/files/src/assets/styles/index.scss +220 -220
- package/templates/vue-app/files/src/assets/styles/mixin.scss +60 -60
- package/templates/vue-app/files/src/assets/styles/publicStyle.scss +224 -224
- package/templates/vue-app/files/src/assets/styles/sidebar.scss +239 -239
- package/templates/vue-app/files/src/assets/styles/transition.scss +48 -48
- package/templates/vue-app/files/src/assets/styles/variables.scss +44 -44
- package/templates/vue-app/files/src/common/flexible.js +145 -145
- package/templates/vue-app/files/src/components/Breadcrumb/index.vue +87 -87
- package/templates/vue-app/files/src/components/Crud/CRUD.operation.vue +248 -248
- package/templates/vue-app/files/src/components/Crud/Pagination.vue +20 -20
- package/templates/vue-app/files/src/components/Crud/RR.operation.vue +39 -39
- package/templates/vue-app/files/src/components/Crud/UD.operation.vue +106 -106
- package/templates/vue-app/files/src/components/Crud/crud.js +907 -907
- package/templates/vue-app/files/src/components/Crud/user/UR.operation.vue +154 -154
- package/templates/vue-app/files/src/components/DateRangePicker/index.vue +42 -42
- package/templates/vue-app/files/src/components/DateRangePickerProhibitNext/index.vue +42 -42
- package/templates/vue-app/files/src/components/DateRangePickerProhibitTodayNext/index.vue +48 -48
- package/templates/vue-app/files/src/components/Dict/Dict.js +31 -31
- package/templates/vue-app/files/src/components/Dict/index.js +29 -29
- package/templates/vue-app/files/src/components/Doc/index.vue +16 -16
- package/templates/vue-app/files/src/components/Echarts/BarChart.vue +115 -115
- package/templates/vue-app/files/src/components/Echarts/Category.vue +768 -768
- package/templates/vue-app/files/src/components/Echarts/Funnel.vue +120 -120
- package/templates/vue-app/files/src/components/Echarts/Gauge.vue +74 -74
- package/templates/vue-app/files/src/components/Echarts/Graph.vue +101 -101
- package/templates/vue-app/files/src/components/Echarts/HeatMap.vue +301 -301
- package/templates/vue-app/files/src/components/Echarts/Line3D.vue +110 -110
- package/templates/vue-app/files/src/components/Echarts/PieChart.vue +84 -84
- package/templates/vue-app/files/src/components/Echarts/Point.vue +161 -161
- package/templates/vue-app/files/src/components/Echarts/RadarChart.vue +123 -123
- package/templates/vue-app/files/src/components/Echarts/Rich.vue +160 -160
- package/templates/vue-app/files/src/components/Echarts/Sankey.vue +114 -114
- package/templates/vue-app/files/src/components/Echarts/Scatter.vue +192 -192
- package/templates/vue-app/files/src/components/Echarts/Sunburst.vue +127 -127
- package/templates/vue-app/files/src/components/Echarts/ThemeRiver.vue +233 -233
- package/templates/vue-app/files/src/components/Echarts/WordCloud.vue +201 -201
- package/templates/vue-app/files/src/components/GithubCorner/index.vue +55 -55
- package/templates/vue-app/files/src/components/Hamburger/index.vue +44 -44
- package/templates/vue-app/files/src/components/HeaderSearch/index.vue +196 -196
- package/templates/vue-app/files/src/components/IconSelect/index.vue +74 -74
- package/templates/vue-app/files/src/components/IconSelect/requireIcons.js +10 -10
- package/templates/vue-app/files/src/components/Iframe/index.vue +30 -30
- package/templates/vue-app/files/src/components/JavaEdit/index.vue +78 -78
- package/templates/vue-app/files/src/components/Pagination/index.vue +100 -100
- package/templates/vue-app/files/src/components/PanThumb/index.vue +149 -149
- package/templates/vue-app/files/src/components/ParentView/index.vue +3 -3
- package/templates/vue-app/files/src/components/Permission/index.js +13 -13
- package/templates/vue-app/files/src/components/Permission/permission.js +21 -21
- package/templates/vue-app/files/src/components/RightPanel/index.vue +149 -149
- package/templates/vue-app/files/src/components/Screenfull/index.vue +60 -60
- package/templates/vue-app/files/src/components/SizeSelect/index.vue +60 -60
- package/templates/vue-app/files/src/components/SvgIcon/index.vue +66 -66
- package/templates/vue-app/files/src/components/ThemePicker/index.vue +177 -177
- package/templates/vue-app/files/src/components/UploadExcel/index.vue +149 -149
- package/templates/vue-app/files/src/components/WaterMark/setWaterMark.js +68 -68
- package/templates/vue-app/files/src/components/WaterMark/waterMark.vue +69 -69
- package/templates/vue-app/files/src/components/Xgplayer/index.vue +49 -49
- package/templates/vue-app/files/src/components/YamlEdit/index.vue +81 -81
- package/templates/vue-app/files/src/layout/components/AppMain.vue +67 -67
- package/templates/vue-app/files/src/layout/components/Navbar.vue +209 -209
- package/templates/vue-app/files/src/layout/components/Settings/index.vue +125 -125
- package/templates/vue-app/files/src/layout/components/Sidebar/FixiOSBug.js +26 -26
- package/templates/vue-app/files/src/layout/components/Sidebar/Item.vue +29 -29
- package/templates/vue-app/files/src/layout/components/Sidebar/Link.vue +35 -35
- package/templates/vue-app/files/src/layout/components/Sidebar/Logo.vue +93 -93
- package/templates/vue-app/files/src/layout/components/Sidebar/SidebarItem.vue +104 -104
- package/templates/vue-app/files/src/layout/components/Sidebar/index.vue +79 -79
- package/templates/vue-app/files/src/layout/components/TagsView/ScrollPane.vue +90 -90
- package/templates/vue-app/files/src/layout/components/TagsView/index.vue +299 -299
- package/templates/vue-app/files/src/layout/components/index.js +5 -5
- package/templates/vue-app/files/src/layout/index.vue +119 -119
- package/templates/vue-app/files/src/layout/mixin/ResizeHandler.js +45 -45
- package/templates/vue-app/files/src/main.js +89 -89
- package/templates/vue-app/files/src/mixins/crud.js +348 -348
- package/templates/vue-app/files/src/router/index.js +156 -156
- package/templates/vue-app/files/src/router/routers.js +203 -203
- package/templates/vue-app/files/src/settings.js +57 -57
- package/templates/vue-app/files/src/store/getters.js +29 -29
- package/templates/vue-app/files/src/store/index.js +25 -25
- package/templates/vue-app/files/src/store/modules/api.js +33 -33
- package/templates/vue-app/files/src/store/modules/app.js +55 -55
- package/templates/vue-app/files/src/store/modules/permission.js +79 -79
- package/templates/vue-app/files/src/store/modules/register.js +17 -17
- package/templates/vue-app/files/src/store/modules/settings.js +46 -46
- package/templates/vue-app/files/src/store/modules/tagsView.js +168 -168
- package/templates/vue-app/files/src/store/modules/user.js +119 -119
- package/templates/vue-app/files/src/utils/auth.js +18 -18
- package/templates/vue-app/files/src/utils/base64ToFile.js +27 -27
- package/templates/vue-app/files/src/utils/clipboard.js +36 -36
- package/templates/vue-app/files/src/utils/datetime.js +289 -289
- package/templates/vue-app/files/src/utils/getBlobFile.js +10 -10
- package/templates/vue-app/files/src/utils/getTime.js +29 -29
- package/templates/vue-app/files/src/utils/index.js +520 -520
- package/templates/vue-app/files/src/utils/permission.js +29 -29
- package/templates/vue-app/files/src/utils/pinyin.js +450 -450
- package/templates/vue-app/files/src/utils/request.js +139 -139
- package/templates/vue-app/files/src/utils/rsaEncrypt.js +37 -37
- package/templates/vue-app/files/src/utils/shortcuts.js +210 -210
- package/templates/vue-app/files/src/utils/upload.js +12 -12
- package/templates/vue-app/files/src/utils/validate.js +262 -262
- package/templates/vue-app/files/src/views/components/Echarts.vue +124 -124
- package/templates/vue-app/files/src/views/components/Editor.vue +75 -75
- package/templates/vue-app/files/src/views/components/MarkDown.vue +44 -44
- package/templates/vue-app/files/src/views/components/UVideo.vue +37 -37
- package/templates/vue-app/files/src/views/components/YamlEdit.vue +206 -206
- package/templates/vue-app/files/src/views/components/camera/camera.vue +115 -115
- package/templates/vue-app/files/src/views/components/camera/cameraTest.vue +158 -158
- package/templates/vue-app/files/src/views/components/excel/upload-excel.vue +41 -41
- package/templates/vue-app/files/src/views/components/icons/element-icons.js +74 -74
- package/templates/vue-app/files/src/views/components/icons/index.vue +106 -106
- package/templates/vue-app/files/src/views/components/icons/svg-icons.js +10 -10
- package/templates/vue-app/files/src/views/components/scroll/index.vue +107 -107
- package/templates/vue-app/files/src/views/components/scrollFull/index.vue +99 -99
- package/templates/vue-app/files/src/views/dashboard/LineChart.vue +138 -138
- package/templates/vue-app/files/src/views/dashboard/PanelGroup.vue +173 -173
- package/templates/vue-app/files/src/views/dashboard/mixins/resize.js +57 -57
- package/templates/vue-app/files/src/views/dataArchive/delTable.vue +354 -354
- package/templates/vue-app/files/src/views/dataArchive/exportDetail.vue +121 -121
- package/templates/vue-app/files/src/views/dataArchive/exportList.vue +160 -160
- package/templates/vue-app/files/src/views/dataArchive/index.vue +2104 -2104
- package/templates/vue-app/files/src/views/features/401.vue +83 -83
- package/templates/vue-app/files/src/views/features/404.vue +226 -226
- package/templates/vue-app/files/src/views/features/redirect.vue +12 -12
- package/templates/vue-app/files/src/views/generator/config.vue +348 -348
- package/templates/vue-app/files/src/views/generator/index.vue +143 -143
- package/templates/vue-app/files/src/views/generator/preview.vue +39 -39
- package/templates/vue-app/files/src/views/home.vue +80 -80
- package/templates/vue-app/files/src/views/indexManagement/index.vue +422 -422
- package/templates/vue-app/files/src/views/indexManagement/other.vue +286 -286
- package/templates/vue-app/files/src/views/institutionMonitor/components/LineChart.vue +191 -191
- package/templates/vue-app/files/src/views/institutionMonitor/index.scss +339 -339
- package/templates/vue-app/files/src/views/institutionMonitor/index.vue +1385 -1385
- package/templates/vue-app/files/src/views/institutionMonitor/mixins/resize.js +57 -57
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/checkProjectCode.vue +267 -267
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/imageAbnormalMonitor.vue +361 -361
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/index.vue +686 -686
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/leakageAnomaly.vue +270 -270
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/moveMonitore.vue +114 -114
- package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/qualityMonitore.vue +338 -338
- package/templates/vue-app/files/src/views/institutionSet/cloudSet.vue +534 -534
- package/templates/vue-app/files/src/views/institutionSet/index.vue +2550 -2550
- package/templates/vue-app/files/src/views/login.vue +243 -243
- package/templates/vue-app/files/src/views/qualityLogin.vue +280 -280
- package/templates/vue-app/files/src/views/selfStatistics/components/LineChart.vue +296 -296
- package/templates/vue-app/files/src/views/selfStatistics/hospitalDetail/index.vue +533 -533
- package/templates/vue-app/files/src/views/selfStatistics/index.scss +447 -447
- package/templates/vue-app/files/src/views/selfStatistics/index.vue +903 -903
- package/templates/vue-app/files/src/views/selfStatistics/mixins/resize.js +57 -57
- package/templates/vue-app/files/src/views/selfStatistics/monitorDetail/index.vue +285 -285
- package/templates/vue-app/files/src/views/selfStatistics/offlineDetail/index.vue +104 -104
- package/templates/vue-app/files/src/views/selfStatistics/selfActiveDetail/index.vue +104 -104
- package/templates/vue-app/files/src/views/selfStatistics/selfMonitorDetail/index.vue +420 -420
- package/templates/vue-app/files/src/views/selfStatistics/setWaterMark/setWaterMark.js +68 -68
- package/templates/vue-app/files/src/views/selfStatistics/setWaterMark/waterMark.vue +69 -69
- package/templates/vue-app/files/src/views/system/dept/index.vue +144 -144
- package/templates/vue-app/files/src/views/system/dict/dictDetail.vue +146 -146
- package/templates/vue-app/files/src/views/system/dict/index.vue +159 -159
- package/templates/vue-app/files/src/views/system/examModality/index.vue +174 -174
- package/templates/vue-app/files/src/views/system/examPart/index.vue +184 -184
- package/templates/vue-app/files/src/views/system/examProject/index.vue +321 -321
- package/templates/vue-app/files/src/views/system/examine/index.vue +66 -66
- package/templates/vue-app/files/src/views/system/job/index.vue +119 -119
- package/templates/vue-app/files/src/views/system/job/module/form.vue +72 -72
- package/templates/vue-app/files/src/views/system/job/module/header.vue +48 -48
- package/templates/vue-app/files/src/views/system/menu/index.vue +327 -327
- package/templates/vue-app/files/src/views/system/model/index.vue +285 -285
- package/templates/vue-app/files/src/views/system/role/index.vue +434 -434
- package/templates/vue-app/files/src/views/system/sysSet/index.vue +84 -84
- package/templates/vue-app/files/src/views/system/timing/index.vue +289 -289
- package/templates/vue-app/files/src/views/system/timing/log.vue +143 -143
- package/templates/vue-app/files/src/views/system/user/admin.vue +414 -414
- package/templates/vue-app/files/src/views/system/user/center/updateEmail.vue +146 -146
- package/templates/vue-app/files/src/views/system/user/center/updatePass.vue +168 -168
- package/templates/vue-app/files/src/views/system/user/center.vue +140 -140
- package/templates/vue-app/files/src/views/system/user/index.vue +972 -972
- package/templates/vue-app/files/src/views/systemSet/role/index.vue +314 -314
- package/templates/vue-app/files/src/views/systemSet/user/admin.vue +414 -414
- package/templates/vue-app/files/src/views/systemSet/user/center/updateEmail.vue +146 -146
- package/templates/vue-app/files/src/views/systemSet/user/center/updatePass.vue +115 -115
- package/templates/vue-app/files/src/views/systemSet/user/center.vue +351 -351
- package/templates/vue-app/files/src/views/systemSet/user/index.vue +928 -928
- package/templates/vue-app/files/src/views/tools/aliPay/config.vue +102 -102
- package/templates/vue-app/files/src/views/tools/aliPay/index.vue +48 -48
- package/templates/vue-app/files/src/views/tools/aliPay/toPay.vue +91 -91
- package/templates/vue-app/files/src/views/tools/email/config.vue +91 -91
- package/templates/vue-app/files/src/views/tools/email/index.vue +42 -42
- package/templates/vue-app/files/src/views/tools/email/send.vue +159 -159
- package/templates/vue-app/files/src/views/tools/storage/index.vue +35 -35
- package/templates/vue-app/files/src/views/tools/storage/local/index.vue +207 -207
- package/templates/vue-app/files/src/views/tools/storage/qiniu/form.vue +108 -108
- package/templates/vue-app/files/src/views/tools/storage/qiniu/index.vue +241 -241
- package/templates/vue-app/files/src/views/tools/swagger/index.vue +14 -14
- package/templates/vue-app/files/vue.config.js +173 -173
- package/templates/vue-app/template.json +29 -29
package/templates/vue-app/files/src/views/institutionMonitor/monitorDetail/imageAbnormalMonitor.vue
CHANGED
|
@@ -1,361 +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>
|
|
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>
|