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.
- package/README.md +313 -276
- package/bin/ylyx.js +176 -168
- package/lib/config.js +325 -283
- package/lib/deploy.js +509 -529
- package/lib/environments.js +111 -0
- 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 +61 -59
- package/templates/react-app/files/.gitignore +22 -0
- 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/.gitignore +24 -0
- 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
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const plugins = ['@vue/babel-plugin-transform-vue-jsx']
|
|
2
|
-
// 生产环境移除console
|
|
3
|
-
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
plugins.push('transform-remove-console')
|
|
5
|
-
}
|
|
6
|
-
module.exports = {
|
|
7
|
-
plugins: plugins,
|
|
8
|
-
presets: [
|
|
9
|
-
'@vue/app'
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
const plugins = ['@vue/babel-plugin-transform-vue-jsx']
|
|
2
|
+
// 生产环境移除console
|
|
3
|
+
if (process.env.NODE_ENV === 'production') {
|
|
4
|
+
plugins.push('transform-remove-console')
|
|
5
|
+
}
|
|
6
|
+
module.exports = {
|
|
7
|
+
plugins: plugins,
|
|
8
|
+
presets: [
|
|
9
|
+
'@vue/app'
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
|
|
3
|
-
transform: {
|
|
4
|
-
'^.+\\.vue$': 'vue-jest',
|
|
5
|
-
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
|
|
6
|
-
'jest-transform-stub',
|
|
7
|
-
'^.+\\.jsx?$': 'babel-jest'
|
|
8
|
-
},
|
|
9
|
-
moduleNameMapper: {
|
|
10
|
-
'^@/(.*)$': '<rootDir>/src/$1'
|
|
11
|
-
},
|
|
12
|
-
snapshotSerializers: ['jest-serializer-vue'],
|
|
13
|
-
testMatch: [
|
|
14
|
-
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
|
|
15
|
-
],
|
|
16
|
-
collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'],
|
|
17
|
-
coverageDirectory: '<rootDir>/tests/unit/coverage',
|
|
18
|
-
// 'collectCoverage': true,
|
|
19
|
-
'coverageReporters': [
|
|
20
|
-
'lcov',
|
|
21
|
-
'text-summary'
|
|
22
|
-
],
|
|
23
|
-
testURL: 'http://localhost/'
|
|
24
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
|
|
3
|
+
transform: {
|
|
4
|
+
'^.+\\.vue$': 'vue-jest',
|
|
5
|
+
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
|
|
6
|
+
'jest-transform-stub',
|
|
7
|
+
'^.+\\.jsx?$': 'babel-jest'
|
|
8
|
+
},
|
|
9
|
+
moduleNameMapper: {
|
|
10
|
+
'^@/(.*)$': '<rootDir>/src/$1'
|
|
11
|
+
},
|
|
12
|
+
snapshotSerializers: ['jest-serializer-vue'],
|
|
13
|
+
testMatch: [
|
|
14
|
+
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
|
|
15
|
+
],
|
|
16
|
+
collectCoverageFrom: ['src/utils/**/*.{js,vue}', '!src/utils/auth.js', '!src/utils/request.js', 'src/components/**/*.{js,vue}'],
|
|
17
|
+
coverageDirectory: '<rootDir>/tests/unit/coverage',
|
|
18
|
+
// 'collectCoverage': true,
|
|
19
|
+
'coverageReporters': [
|
|
20
|
+
'lcov',
|
|
21
|
+
'text-summary'
|
|
22
|
+
],
|
|
23
|
+
testURL: 'http://localhost/'
|
|
24
|
+
}
|
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cloudpacs",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "影像云后管",
|
|
5
|
-
"author": "Jenay<jenay.lee@hotmail.com>",
|
|
6
|
-
"license": "Apache-2.0",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "vue-cli-service serve --open",
|
|
9
|
-
"build:prod": "vue-cli-service build",
|
|
10
|
-
"build:stage": "vue-cli-service build --mode staging",
|
|
11
|
-
"preview": "node build/index.js --preview",
|
|
12
|
-
"lint": "eslint --ext .js,.vue src",
|
|
13
|
-
"test:unit": "jest --clearCache && vue-cli-service test:unit",
|
|
14
|
-
"svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml",
|
|
15
|
-
"new": "plop"
|
|
16
|
-
},
|
|
17
|
-
"husky": {
|
|
18
|
-
"hooks": {
|
|
19
|
-
"pre-commit": "lint-staged"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"lint-staged": {
|
|
23
|
-
"src/**/*.{js,vue}": [
|
|
24
|
-
"eslint --fix",
|
|
25
|
-
"git add"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "https://github.com/elunez/eladmin-web.git"
|
|
31
|
-
},
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/elunez/eladmin/issues"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@jiaminghi/data-view": "^2.10.0",
|
|
37
|
-
"@riophae/vue-treeselect": "0.4.0",
|
|
38
|
-
"@vue-office/docx": "^1.6.2",
|
|
39
|
-
"@vue-office/pdf": "^2.0.2",
|
|
40
|
-
"@vue/composition-api": "^1.7.2",
|
|
41
|
-
"af-table-column": "^1.0.3",
|
|
42
|
-
"axios": "0.18.1",
|
|
43
|
-
"clipboard": "^2.0.11",
|
|
44
|
-
"codemirror": "^5.49.2",
|
|
45
|
-
"connect": "3.6.6",
|
|
46
|
-
"core-js": "^2.6.12",
|
|
47
|
-
"default-passive-events": "^2.0.0",
|
|
48
|
-
"echarts": "^4.9.0",
|
|
49
|
-
"echarts-gl": "^1.1.1",
|
|
50
|
-
"echarts-wordcloud": "^1.1.3",
|
|
51
|
-
"echarts5": "npm:echarts@^5.1.2",
|
|
52
|
-
"element-ui": "^2.15.6",
|
|
53
|
-
"file-saver": "1.3.8",
|
|
54
|
-
"fuse.js": "3.4.4",
|
|
55
|
-
"js-beautify": "^1.10.2",
|
|
56
|
-
"js-cookie": "2.2.0",
|
|
57
|
-
"jsencrypt": "^3.0.0-rc.1",
|
|
58
|
-
"jszip": "3.1.5",
|
|
59
|
-
"lodash.isequal": "^4.5.0",
|
|
60
|
-
"mavon-editor": "^2.9.0",
|
|
61
|
-
"moment": "^2.29.4",
|
|
62
|
-
"monent": "^0.0.2-security",
|
|
63
|
-
"normalize.css": "7.0.0",
|
|
64
|
-
"nprogress": "0.2.0",
|
|
65
|
-
"path-to-regexp": "2.4.0",
|
|
66
|
-
"qrcodejs2": "^0.0.2",
|
|
67
|
-
"qs": "^6.9.1",
|
|
68
|
-
"screenfull": "4.2.0",
|
|
69
|
-
"sortablejs": "1.8.4",
|
|
70
|
-
"viewerjs": "^1.11.6",
|
|
71
|
-
"vue": "2.6.10",
|
|
72
|
-
"vue-count-to": "^1.0.13",
|
|
73
|
-
"vue-cropper": "0.4.9",
|
|
74
|
-
"vue-demi": "^0.14.10",
|
|
75
|
-
"vue-echarts": "^5.0.0-beta.0",
|
|
76
|
-
"vue-highlightjs": "^1.3.3",
|
|
77
|
-
"vue-image-crop-upload": "^2.5.0",
|
|
78
|
-
"vue-pdf": "^4.3.0",
|
|
79
|
-
"vue-router": "3.0.2",
|
|
80
|
-
"vue-seamless-scroll": "^1.1.23",
|
|
81
|
-
"vue-splitpane": "1.0.4",
|
|
82
|
-
"vuedraggable": "2.20.0",
|
|
83
|
-
"vuex": "3.1.0",
|
|
84
|
-
"wangeditor": "^3.1.1",
|
|
85
|
-
"xlsx": "^0.14.1"
|
|
86
|
-
},
|
|
87
|
-
"devDependencies": {
|
|
88
|
-
"@babel/core": "7.0.0",
|
|
89
|
-
"@babel/parser": "^7.7.4",
|
|
90
|
-
"@babel/register": "7.0.0",
|
|
91
|
-
"@vue/babel-plugin-transform-vue-jsx": "^1.2.1",
|
|
92
|
-
"@vue/cli-plugin-babel": "3.5.3",
|
|
93
|
-
"@vue/cli-plugin-eslint": "^3.9.1",
|
|
94
|
-
"@vue/cli-plugin-unit-jest": "3.5.3",
|
|
95
|
-
"@vue/cli-service": "3.5.3",
|
|
96
|
-
"@vue/test-utils": "1.0.0-beta.29",
|
|
97
|
-
"autoprefixer": "^9.5.1",
|
|
98
|
-
"babel-core": "7.0.0-bridge.0",
|
|
99
|
-
"babel-eslint": "10.0.1",
|
|
100
|
-
"babel-jest": "23.6.0",
|
|
101
|
-
"babel-plugin-dynamic-import-node": "2.3.0",
|
|
102
|
-
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
103
|
-
"chalk": "2.4.2",
|
|
104
|
-
"chokidar": "2.1.5",
|
|
105
|
-
"compression-webpack-plugin": "^1.1.12",
|
|
106
|
-
"connect": "3.6.6",
|
|
107
|
-
"eslint": "5.15.3",
|
|
108
|
-
"eslint-plugin-vue": "5.2.2",
|
|
109
|
-
"html-webpack-plugin": "3.2.0",
|
|
110
|
-
"http-proxy-middleware": "^0.19.1",
|
|
111
|
-
"husky": "1.3.1",
|
|
112
|
-
"lint-staged": "8.1.5",
|
|
113
|
-
"plop": "2.3.0",
|
|
114
|
-
"prettier": "^3.7.4",
|
|
115
|
-
"runjs": "^4.3.2",
|
|
116
|
-
"sass": "^1.26.10",
|
|
117
|
-
"sass-loader": "^7.1.0",
|
|
118
|
-
"script-ext-html-webpack-plugin": "2.1.3",
|
|
119
|
-
"script-loader": "0.7.2",
|
|
120
|
-
"serve-static": "^1.13.2",
|
|
121
|
-
"svg-sprite-loader": "4.1.3",
|
|
122
|
-
"svgo": "1.2.0",
|
|
123
|
-
"vue-codemirror": "^3.0.0",
|
|
124
|
-
"vue-template-compiler": "2.6.10",
|
|
125
|
-
"webpack-bundle-analyzer": "^4.4.2",
|
|
126
|
-
"xgplayer-vue": "^1.1.5"
|
|
127
|
-
},
|
|
128
|
-
"engines": {
|
|
129
|
-
"node": ">=8.9",
|
|
130
|
-
"npm": ">= 3.0.0"
|
|
131
|
-
},
|
|
132
|
-
"browserslist": [
|
|
133
|
-
"> 1%",
|
|
134
|
-
"last 2 versions"
|
|
135
|
-
]
|
|
136
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "cloudpacs",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "影像云后管",
|
|
5
|
+
"author": "Jenay<jenay.lee@hotmail.com>",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"dev": "vue-cli-service serve --open",
|
|
9
|
+
"build:prod": "vue-cli-service build",
|
|
10
|
+
"build:stage": "vue-cli-service build --mode staging",
|
|
11
|
+
"preview": "node build/index.js --preview",
|
|
12
|
+
"lint": "eslint --ext .js,.vue src",
|
|
13
|
+
"test:unit": "jest --clearCache && vue-cli-service test:unit",
|
|
14
|
+
"svgo": "svgo -f src/assets/icons/svg --config=src/assets/icons/svgo.yml",
|
|
15
|
+
"new": "plop"
|
|
16
|
+
},
|
|
17
|
+
"husky": {
|
|
18
|
+
"hooks": {
|
|
19
|
+
"pre-commit": "lint-staged"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"lint-staged": {
|
|
23
|
+
"src/**/*.{js,vue}": [
|
|
24
|
+
"eslint --fix",
|
|
25
|
+
"git add"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/elunez/eladmin-web.git"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/elunez/eladmin/issues"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@jiaminghi/data-view": "^2.10.0",
|
|
37
|
+
"@riophae/vue-treeselect": "0.4.0",
|
|
38
|
+
"@vue-office/docx": "^1.6.2",
|
|
39
|
+
"@vue-office/pdf": "^2.0.2",
|
|
40
|
+
"@vue/composition-api": "^1.7.2",
|
|
41
|
+
"af-table-column": "^1.0.3",
|
|
42
|
+
"axios": "0.18.1",
|
|
43
|
+
"clipboard": "^2.0.11",
|
|
44
|
+
"codemirror": "^5.49.2",
|
|
45
|
+
"connect": "3.6.6",
|
|
46
|
+
"core-js": "^2.6.12",
|
|
47
|
+
"default-passive-events": "^2.0.0",
|
|
48
|
+
"echarts": "^4.9.0",
|
|
49
|
+
"echarts-gl": "^1.1.1",
|
|
50
|
+
"echarts-wordcloud": "^1.1.3",
|
|
51
|
+
"echarts5": "npm:echarts@^5.1.2",
|
|
52
|
+
"element-ui": "^2.15.6",
|
|
53
|
+
"file-saver": "1.3.8",
|
|
54
|
+
"fuse.js": "3.4.4",
|
|
55
|
+
"js-beautify": "^1.10.2",
|
|
56
|
+
"js-cookie": "2.2.0",
|
|
57
|
+
"jsencrypt": "^3.0.0-rc.1",
|
|
58
|
+
"jszip": "3.1.5",
|
|
59
|
+
"lodash.isequal": "^4.5.0",
|
|
60
|
+
"mavon-editor": "^2.9.0",
|
|
61
|
+
"moment": "^2.29.4",
|
|
62
|
+
"monent": "^0.0.2-security",
|
|
63
|
+
"normalize.css": "7.0.0",
|
|
64
|
+
"nprogress": "0.2.0",
|
|
65
|
+
"path-to-regexp": "2.4.0",
|
|
66
|
+
"qrcodejs2": "^0.0.2",
|
|
67
|
+
"qs": "^6.9.1",
|
|
68
|
+
"screenfull": "4.2.0",
|
|
69
|
+
"sortablejs": "1.8.4",
|
|
70
|
+
"viewerjs": "^1.11.6",
|
|
71
|
+
"vue": "2.6.10",
|
|
72
|
+
"vue-count-to": "^1.0.13",
|
|
73
|
+
"vue-cropper": "0.4.9",
|
|
74
|
+
"vue-demi": "^0.14.10",
|
|
75
|
+
"vue-echarts": "^5.0.0-beta.0",
|
|
76
|
+
"vue-highlightjs": "^1.3.3",
|
|
77
|
+
"vue-image-crop-upload": "^2.5.0",
|
|
78
|
+
"vue-pdf": "^4.3.0",
|
|
79
|
+
"vue-router": "3.0.2",
|
|
80
|
+
"vue-seamless-scroll": "^1.1.23",
|
|
81
|
+
"vue-splitpane": "1.0.4",
|
|
82
|
+
"vuedraggable": "2.20.0",
|
|
83
|
+
"vuex": "3.1.0",
|
|
84
|
+
"wangeditor": "^3.1.1",
|
|
85
|
+
"xlsx": "^0.14.1"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@babel/core": "7.0.0",
|
|
89
|
+
"@babel/parser": "^7.7.4",
|
|
90
|
+
"@babel/register": "7.0.0",
|
|
91
|
+
"@vue/babel-plugin-transform-vue-jsx": "^1.2.1",
|
|
92
|
+
"@vue/cli-plugin-babel": "3.5.3",
|
|
93
|
+
"@vue/cli-plugin-eslint": "^3.9.1",
|
|
94
|
+
"@vue/cli-plugin-unit-jest": "3.5.3",
|
|
95
|
+
"@vue/cli-service": "3.5.3",
|
|
96
|
+
"@vue/test-utils": "1.0.0-beta.29",
|
|
97
|
+
"autoprefixer": "^9.5.1",
|
|
98
|
+
"babel-core": "7.0.0-bridge.0",
|
|
99
|
+
"babel-eslint": "10.0.1",
|
|
100
|
+
"babel-jest": "23.6.0",
|
|
101
|
+
"babel-plugin-dynamic-import-node": "2.3.0",
|
|
102
|
+
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
103
|
+
"chalk": "2.4.2",
|
|
104
|
+
"chokidar": "2.1.5",
|
|
105
|
+
"compression-webpack-plugin": "^1.1.12",
|
|
106
|
+
"connect": "3.6.6",
|
|
107
|
+
"eslint": "5.15.3",
|
|
108
|
+
"eslint-plugin-vue": "5.2.2",
|
|
109
|
+
"html-webpack-plugin": "3.2.0",
|
|
110
|
+
"http-proxy-middleware": "^0.19.1",
|
|
111
|
+
"husky": "1.3.1",
|
|
112
|
+
"lint-staged": "8.1.5",
|
|
113
|
+
"plop": "2.3.0",
|
|
114
|
+
"prettier": "^3.7.4",
|
|
115
|
+
"runjs": "^4.3.2",
|
|
116
|
+
"sass": "^1.26.10",
|
|
117
|
+
"sass-loader": "^7.1.0",
|
|
118
|
+
"script-ext-html-webpack-plugin": "2.1.3",
|
|
119
|
+
"script-loader": "0.7.2",
|
|
120
|
+
"serve-static": "^1.13.2",
|
|
121
|
+
"svg-sprite-loader": "4.1.3",
|
|
122
|
+
"svgo": "1.2.0",
|
|
123
|
+
"vue-codemirror": "^3.0.0",
|
|
124
|
+
"vue-template-compiler": "2.6.10",
|
|
125
|
+
"webpack-bundle-analyzer": "^4.4.2",
|
|
126
|
+
"xgplayer-vue": "^1.1.5"
|
|
127
|
+
},
|
|
128
|
+
"engines": {
|
|
129
|
+
"node": ">=8.9",
|
|
130
|
+
"npm": ">= 3.0.0"
|
|
131
|
+
},
|
|
132
|
+
"browserslist": [
|
|
133
|
+
"> 1%",
|
|
134
|
+
"last 2 versions"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const viewGenerator = require('./plop-templates/view/prompt');
|
|
2
|
-
const componentGenerator = require('./plop-templates/component/prompt');
|
|
3
|
-
|
|
4
|
-
module.exports = function (plop) {
|
|
5
|
-
plop.setGenerator('view', viewGenerator);
|
|
6
|
-
plop.setGenerator('component', componentGenerator);
|
|
7
|
-
};
|
|
1
|
+
const viewGenerator = require('./plop-templates/view/prompt');
|
|
2
|
+
const componentGenerator = require('./plop-templates/component/prompt');
|
|
3
|
+
|
|
4
|
+
module.exports = function (plop) {
|
|
5
|
+
plop.setGenerator('view', viewGenerator);
|
|
6
|
+
plop.setGenerator('component', componentGenerator);
|
|
7
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
plugins: {
|
|
3
|
-
autoprefixer: {}
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
plugins: {
|
|
3
|
+
autoprefixer: {}
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
let isDev = true; // dev=true 为研发环境;prod 环境用 isDev=false 表示
|
|
2
|
-
let AUTO_ORIGIN = window.location.origin;
|
|
3
|
-
|
|
4
|
-
// 研发环境
|
|
5
|
-
if (isDev) {
|
|
6
|
-
AUTO_ORIGIN = "http://172.17.28.216:8088";
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
let baseUrl = `${AUTO_ORIGIN}/cloud_routeService/outsideImageCloud`;
|
|
10
|
-
let menuUrl = `${AUTO_ORIGIN}/iu_sso`;
|
|
11
|
-
let loginUrl = `${AUTO_ORIGIN}/sso/#/login`;
|
|
12
|
-
let sysLogin = `${AUTO_ORIGIN}/sso/#/sys_login`;
|
|
13
|
-
let hospitalUrl = `${AUTO_ORIGIN}/cloud_routeService/ousdie-admin-hospital`;
|
|
14
|
-
|
|
15
|
-
window.config = {
|
|
16
|
-
VUE_APP_BASE_API: baseUrl,
|
|
17
|
-
VUE_APP_PUBLIC_URL: "/EXTERNAL_HOSPITAL/",
|
|
18
|
-
VUE_APP_MENU_URL: menuUrl,
|
|
19
|
-
VUE_APP_LOGIN_URL: loginUrl,
|
|
20
|
-
VUE_APP_SYSLOGIN_URL: sysLogin,
|
|
21
|
-
IS_DEV: isDev,
|
|
22
|
-
SYS_ID: "282",
|
|
23
|
-
VUE_PROJECT_TITLE: "宜宾市云影像平台后管",
|
|
24
|
-
VUE_APP_HOSPITAL_URL: hospitalUrl
|
|
25
|
-
};
|
|
1
|
+
let isDev = true; // dev=true 为研发环境;prod 环境用 isDev=false 表示
|
|
2
|
+
let AUTO_ORIGIN = window.location.origin;
|
|
3
|
+
|
|
4
|
+
// 研发环境
|
|
5
|
+
if (isDev) {
|
|
6
|
+
AUTO_ORIGIN = "http://172.17.28.216:8088";
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let baseUrl = `${AUTO_ORIGIN}/cloud_routeService/outsideImageCloud`;
|
|
10
|
+
let menuUrl = `${AUTO_ORIGIN}/iu_sso`;
|
|
11
|
+
let loginUrl = `${AUTO_ORIGIN}/sso/#/login`;
|
|
12
|
+
let sysLogin = `${AUTO_ORIGIN}/sso/#/sys_login`;
|
|
13
|
+
let hospitalUrl = `${AUTO_ORIGIN}/cloud_routeService/ousdie-admin-hospital`;
|
|
14
|
+
|
|
15
|
+
window.config = {
|
|
16
|
+
VUE_APP_BASE_API: baseUrl,
|
|
17
|
+
VUE_APP_PUBLIC_URL: "/EXTERNAL_HOSPITAL/",
|
|
18
|
+
VUE_APP_MENU_URL: menuUrl,
|
|
19
|
+
VUE_APP_LOGIN_URL: loginUrl,
|
|
20
|
+
VUE_APP_SYSLOGIN_URL: sysLogin,
|
|
21
|
+
IS_DEV: isDev,
|
|
22
|
+
SYS_ID: "282",
|
|
23
|
+
VUE_PROJECT_TITLE: "宜宾市云影像平台后管",
|
|
24
|
+
VUE_APP_HOSPITAL_URL: hospitalUrl
|
|
25
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
6
|
-
<meta name="renderer" content="webkit">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
8
|
-
<link rel="icon" href="<%= BASE_URL %>/favicon.ico">
|
|
9
|
-
<title><%= webpackConfig.name %></title>
|
|
10
|
-
<script type="text/javascript" src="./default.js"></script>
|
|
11
|
-
<script type="text/javascript">
|
|
12
|
-
window.PUBLIC_URL = '<%= VUE_APP_PUBLIC_URL %>';
|
|
13
|
-
var version = '<%= VUE_APP_VERSION %>',cacheVersionKey = window.PUBLIC_URL + 'version';
|
|
14
|
-
var cacheVersion = localStorage.getItem(cacheVersionKey);
|
|
15
|
-
if(cacheVersion != version){
|
|
16
|
-
localStorage.clear();
|
|
17
|
-
sessionStorage.clear();
|
|
18
|
-
localStorage.setItem(cacheVersionKey, version);
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
</head>
|
|
22
|
-
<body>
|
|
23
|
-
<div id="app"></div>
|
|
24
|
-
<!-- built files will be auto injected -->
|
|
25
|
-
</body>
|
|
26
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
6
|
+
<meta name="renderer" content="webkit">
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
8
|
+
<link rel="icon" href="<%= BASE_URL %>/favicon.ico">
|
|
9
|
+
<title><%= webpackConfig.name %></title>
|
|
10
|
+
<script type="text/javascript" src="./default.js"></script>
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
window.PUBLIC_URL = '<%= VUE_APP_PUBLIC_URL %>';
|
|
13
|
+
var version = '<%= VUE_APP_VERSION %>',cacheVersionKey = window.PUBLIC_URL + 'version';
|
|
14
|
+
var cacheVersion = localStorage.getItem(cacheVersionKey);
|
|
15
|
+
if(cacheVersion != version){
|
|
16
|
+
localStorage.clear();
|
|
17
|
+
sessionStorage.clear();
|
|
18
|
+
localStorage.setItem(cacheVersionKey, version);
|
|
19
|
+
}
|
|
20
|
+
</script>
|
|
21
|
+
</head>
|
|
22
|
+
<body>
|
|
23
|
+
<div id="app"></div>
|
|
24
|
+
<!-- built files will be auto injected -->
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="app">
|
|
3
|
-
<router-view />
|
|
4
|
-
<WaterMark :waterMarkProp="waterMarkProp" />
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import { mapGetters } from 'vuex';
|
|
10
|
-
import WaterMark from '@/components/WaterMark/waterMark';
|
|
11
|
-
|
|
12
|
-
export default {
|
|
13
|
-
name: 'App',
|
|
14
|
-
components: {
|
|
15
|
-
WaterMark,
|
|
16
|
-
},
|
|
17
|
-
data() {
|
|
18
|
-
return {
|
|
19
|
-
waterMarkProp: {
|
|
20
|
-
zIndex: 1,
|
|
21
|
-
devicePixelRatio: 2,
|
|
22
|
-
text: '',
|
|
23
|
-
showTime: true,
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
computed: {
|
|
28
|
-
...mapGetters(['user']),
|
|
29
|
-
},
|
|
30
|
-
watch: {
|
|
31
|
-
$route(to, from) {
|
|
32
|
-
this.$nextTick(function () {
|
|
33
|
-
const user = JSON.parse(localStorage.getItem('user'));
|
|
34
|
-
this.waterMarkProp.text = user.name;
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
// mounted() {
|
|
39
|
-
// this.$nextTick(() => {
|
|
40
|
-
// this.waterMarkProp.text = this.user.name;
|
|
41
|
-
// })
|
|
42
|
-
// },
|
|
43
|
-
};
|
|
44
|
-
</script>
|
|
45
|
-
<style lang="scss">
|
|
46
|
-
// 针对医院档案管理中上传样式不生效
|
|
47
|
-
.uploadDisabled {
|
|
48
|
-
.el-upload.el-upload--picture-card {
|
|
49
|
-
display: none !important;
|
|
50
|
-
visibility: hidden;
|
|
51
|
-
background-color: #ff0000 !important;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<router-view />
|
|
4
|
+
<WaterMark :waterMarkProp="waterMarkProp" />
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
import { mapGetters } from 'vuex';
|
|
10
|
+
import WaterMark from '@/components/WaterMark/waterMark';
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
name: 'App',
|
|
14
|
+
components: {
|
|
15
|
+
WaterMark,
|
|
16
|
+
},
|
|
17
|
+
data() {
|
|
18
|
+
return {
|
|
19
|
+
waterMarkProp: {
|
|
20
|
+
zIndex: 1,
|
|
21
|
+
devicePixelRatio: 2,
|
|
22
|
+
text: '',
|
|
23
|
+
showTime: true,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
computed: {
|
|
28
|
+
...mapGetters(['user']),
|
|
29
|
+
},
|
|
30
|
+
watch: {
|
|
31
|
+
$route(to, from) {
|
|
32
|
+
this.$nextTick(function () {
|
|
33
|
+
const user = JSON.parse(localStorage.getItem('user'));
|
|
34
|
+
this.waterMarkProp.text = user.name;
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
// mounted() {
|
|
39
|
+
// this.$nextTick(() => {
|
|
40
|
+
// this.waterMarkProp.text = this.user.name;
|
|
41
|
+
// })
|
|
42
|
+
// },
|
|
43
|
+
};
|
|
44
|
+
</script>
|
|
45
|
+
<style lang="scss">
|
|
46
|
+
// 针对医院档案管理中上传样式不生效
|
|
47
|
+
.uploadDisabled {
|
|
48
|
+
.el-upload.el-upload--picture-card {
|
|
49
|
+
display: none !important;
|
|
50
|
+
visibility: hidden;
|
|
51
|
+
background-color: #ff0000 !important;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
</style>
|