vue2-client 1.20.76 → 1.20.78
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/.claude/settings.local.json +30 -30
- package/.eslintrc.js +74 -74
- package/.idea/git_toolbox_blame.xml +6 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/inspectionProfiles/Project_Default.xml +0 -18
- package/.idea/modules.xml +1 -1
- package/Components.md +60 -60
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.setup.js +7 -7
- package/package.json +1 -1
- package/src/assets/img/querySlotDemo.svg +15 -15
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Tree/index.js +2 -2
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
- package/src/base-client/components/common/XDataDrawer/index.js +3 -3
- package/src/base-client/components/common/XDataDrawer/index.md +41 -41
- package/src/base-client/components/common/XDescriptions/XDescriptionsGroup.vue +673 -673
- package/src/base-client/components/common/XDescriptions/index.js +3 -3
- package/src/base-client/components/common/XDescriptions/index.md +382 -382
- package/src/base-client/components/common/XForm/XFormItem.vue +6 -0
- package/src/base-client/components/common/XForm/index.md +178 -178
- package/src/base-client/components/common/XFormTable/demo.vue +17 -1
- package/src/base-client/components/common/XReportGrid/XReport.vue +1288 -1286
- package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
- package/src/base-client/components/common/XStepView/index.js +3 -3
- package/src/base-client/components/common/XStepView/index.md +31 -31
- package/src/base-client/components/common/XTable/XTableWrapper.vue +1 -1
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/his/XTitle/README.md +110 -113
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/plugins/Config.js +19 -19
- package/src/base-client/plugins/tabs-page-plugin.js +39 -39
- package/src/components/Charts/Bar.vue +62 -62
- package/src/components/Charts/ChartCard.vue +134 -134
- package/src/components/Charts/Liquid.vue +67 -67
- package/src/components/Charts/MiniArea.vue +39 -39
- package/src/components/Charts/MiniBar.vue +39 -39
- package/src/components/Charts/MiniProgress.vue +75 -75
- package/src/components/Charts/MiniSmoothArea.vue +40 -40
- package/src/components/Charts/Radar.vue +68 -68
- package/src/components/Charts/RankList.vue +77 -77
- package/src/components/Charts/TagCloud.vue +113 -113
- package/src/components/Charts/TransferBar.vue +64 -64
- package/src/components/Charts/Trend.vue +82 -82
- package/src/components/Charts/chart.less +12 -12
- package/src/components/Charts/smooth.area.less +13 -13
- package/src/components/NumberInfo/NumberInfo.vue +54 -54
- package/src/components/NumberInfo/index.js +3 -3
- package/src/components/NumberInfo/index.less +54 -54
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/STable/index.js +3 -3
- package/src/components/card/ChartCard.vue +79 -79
- package/src/components/chart/Bar.vue +60 -60
- package/src/components/chart/MiniArea.vue +67 -67
- package/src/components/chart/MiniBar.vue +59 -59
- package/src/components/chart/MiniProgress.vue +57 -57
- package/src/components/chart/Radar.vue +80 -80
- package/src/components/chart/RankingList.vue +60 -60
- package/src/components/chart/Trend.vue +79 -79
- package/src/components/chart/index.less +9 -9
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/input/IInput.vue +66 -66
- package/src/components/menu/SideMenu.vue +75 -75
- package/src/components/menu/menu.js +273 -273
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/layouts/CommonLayout.vue +56 -56
- package/src/lib.js +1 -1
- package/src/mock/extend/index.js +84 -84
- package/src/mock/goods/index.js +108 -108
- package/src/pages/ReportGrid/index.vue +80 -76
- package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
- package/src/pages/system/dictionary/index.vue +44 -44
- package/src/pages/system/monitor/loginInfor/index.vue +37 -37
- package/src/pages/system/monitor/operLog/index.vue +37 -37
- package/src/pages/userInfoDetailManage/TransferRecordQuery/index.vue +1 -2
- package/src/router/async/router.map.js +140 -140
- package/src/services/api/cas.js +79 -79
- package/src/store/modules/setting.js +119 -119
- package/src/utils/errorCode.js +6 -6
- package/vue.config.js +4 -4
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
- package/.idea/MarsCodeWorkspaceAppSettings.xml +0 -7
- package/.idea/google-java-format.xml +0 -6
- package/.vscode/settings.json +0 -28
- /package/.idea/{vue2-client.iml → af-vue2-client.iml} +0 -0
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
const { homePage } = require('../../config')
|
|
2
|
-
// 视图组件
|
|
3
|
-
const view = {
|
|
4
|
-
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
5
|
-
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
6
|
-
page: () => import('@vue2-client/layouts/PageView'),
|
|
7
|
-
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
|
8
|
-
gridView: () => import('@vue2-client/layouts/GridView'),
|
|
9
|
-
login: () => import('@vue2-client/pages/login/Login'),
|
|
10
|
-
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
|
11
|
-
}
|
|
12
|
-
// 动态路由对象定义
|
|
13
|
-
const routerResource = {}
|
|
14
|
-
// --------------------------------------基本视图组件--------------------------------------
|
|
15
|
-
// 空白视图
|
|
16
|
-
routerResource.blank = view.blank
|
|
17
|
-
// 单页面视图
|
|
18
|
-
routerResource.singlePage = view.blank
|
|
19
|
-
// 栅格配置视图
|
|
20
|
-
routerResource.gridView = () => import('@vue2-client/layouts/GridView')
|
|
21
|
-
// VuePage视图
|
|
22
|
-
routerResource.vuePage = () => import('@vue2-client/layouts/VuePage')
|
|
23
|
-
// 测试
|
|
24
|
-
routerResource.businessQuery = view.blank
|
|
25
|
-
// 业务查询 - 收费查询
|
|
26
|
-
routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
27
|
-
// --------------------------------------仪表盘--------------------------------------
|
|
28
|
-
routerResource.dashboard = view.blank
|
|
29
|
-
// 工作台
|
|
30
|
-
routerResource.workplace = () => import('@vue2-client/pages/dashboard/workplace')
|
|
31
|
-
// --------------------------------------系统配置--------------------------------------
|
|
32
|
-
routerResource.system = view.blank
|
|
33
|
-
// 字典管理
|
|
34
|
-
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
|
35
|
-
// 文件管理
|
|
36
|
-
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
|
37
|
-
// 登录日志
|
|
38
|
-
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
|
39
|
-
// 操作日志
|
|
40
|
-
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
|
41
|
-
// 系统问题反馈工单
|
|
42
|
-
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
43
|
-
// 通用服务评价
|
|
44
|
-
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
|
45
|
-
// 系统设置
|
|
46
|
-
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
47
|
-
// 页面编辑器
|
|
48
|
-
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
49
|
-
// 数据检索
|
|
50
|
-
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
51
|
-
// 数据检索(新)
|
|
52
|
-
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
53
|
-
|
|
54
|
-
routerResource.machineHand = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
55
|
-
// 示例页面
|
|
56
|
-
routerResource.example = {
|
|
57
|
-
path: 'example',
|
|
58
|
-
name: '示例主页面',
|
|
59
|
-
// component: () => import('@vue2-client/pages/
|
|
60
|
-
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue')
|
|
61
|
-
// component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
|
|
62
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
63
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
64
|
-
// component: () => import('@vue2-client/base-client/components/common/AfMap/demo.vue')
|
|
65
|
-
// component: () => import('@vue2-client/base-client/components/common/ImagePreviewModal/demo.vue'),
|
|
66
|
-
// component: () => import('@vue2-client/base-client/components/common/XImagePreview/demo.vue'),
|
|
67
|
-
// component: () => import('@vue2-client/components/xScrollBox/example.vue'),
|
|
68
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
69
|
-
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
|
70
|
-
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
71
|
-
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue')
|
|
72
|
-
// component: () => import('@vue2-client/base-client/components/common/XInspectionDetailDrawer/demo.vue')
|
|
73
|
-
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue')
|
|
74
|
-
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
75
|
-
// component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
76
|
-
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
77
|
-
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
78
|
-
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
79
|
-
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
|
80
|
-
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
|
81
|
-
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
|
82
|
-
// component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
|
|
83
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
84
|
-
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
85
|
-
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
|
86
|
-
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
87
|
-
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
|
88
|
-
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
|
89
|
-
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
|
90
|
-
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
|
91
|
-
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
92
|
-
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
93
|
-
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
|
94
|
-
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
|
95
|
-
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
96
|
-
}
|
|
97
|
-
// routerResource.example = () =>
|
|
98
|
-
// import('@vue2-client/pages/Example')
|
|
99
|
-
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
|
100
|
-
|
|
101
|
-
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
|
102
|
-
|
|
103
|
-
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XInspectionDetailDrawer/demo.vue')
|
|
104
|
-
routerResource.addressManage = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
105
|
-
// 大屏界面, 放行登录
|
|
106
|
-
routerResource.bigDashboard = () => import('@vue2-client/pages/dashboard/index.vue')
|
|
107
|
-
|
|
108
|
-
// 基础路由组件注册
|
|
109
|
-
const routerMap = {
|
|
110
|
-
login: {
|
|
111
|
-
authority: '*',
|
|
112
|
-
path: '/login',
|
|
113
|
-
component: process.env.VUE_APP_LOGIN_VERSION === 'V3' ? view.loginv3 : view.login
|
|
114
|
-
},
|
|
115
|
-
root: {
|
|
116
|
-
path: '/',
|
|
117
|
-
name: '首页',
|
|
118
|
-
// 只有在非微前端环境下才进行重定向,或者通过环境变量控制
|
|
119
|
-
redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
|
|
120
|
-
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs
|
|
121
|
-
},
|
|
122
|
-
exp403: {
|
|
123
|
-
authority: '*',
|
|
124
|
-
name: 'exp403',
|
|
125
|
-
path: '403',
|
|
126
|
-
component: () => import('@vue2-client/pages/exception/403')
|
|
127
|
-
},
|
|
128
|
-
exp404: {
|
|
129
|
-
name: 'exp404',
|
|
130
|
-
path: '404',
|
|
131
|
-
component: () => import('@vue2-client/pages/exception/404')
|
|
132
|
-
},
|
|
133
|
-
exp500: {
|
|
134
|
-
name: 'exp500',
|
|
135
|
-
path: '500',
|
|
136
|
-
component: () => import('@vue2-client/pages/exception/500')
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
Object.assign(routerMap, routerResource)
|
|
140
|
-
export default routerMap
|
|
1
|
+
const { homePage } = require('../../config')
|
|
2
|
+
// 视图组件
|
|
3
|
+
const view = {
|
|
4
|
+
tabs: () => import('@vue2-client/layouts/tabs'),
|
|
5
|
+
blank: () => import('@vue2-client/layouts/BlankView'),
|
|
6
|
+
page: () => import('@vue2-client/layouts/PageView'),
|
|
7
|
+
// his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
|
|
8
|
+
gridView: () => import('@vue2-client/layouts/GridView'),
|
|
9
|
+
login: () => import('@vue2-client/pages/login/Login'),
|
|
10
|
+
loginv3: () => import('@vue2-client/pages/login/LoginV3')
|
|
11
|
+
}
|
|
12
|
+
// 动态路由对象定义
|
|
13
|
+
const routerResource = {}
|
|
14
|
+
// --------------------------------------基本视图组件--------------------------------------
|
|
15
|
+
// 空白视图
|
|
16
|
+
routerResource.blank = view.blank
|
|
17
|
+
// 单页面视图
|
|
18
|
+
routerResource.singlePage = view.blank
|
|
19
|
+
// 栅格配置视图
|
|
20
|
+
routerResource.gridView = () => import('@vue2-client/layouts/GridView')
|
|
21
|
+
// VuePage视图
|
|
22
|
+
routerResource.vuePage = () => import('@vue2-client/layouts/VuePage')
|
|
23
|
+
// 测试
|
|
24
|
+
routerResource.businessQuery = view.blank
|
|
25
|
+
// 业务查询 - 收费查询
|
|
26
|
+
routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
27
|
+
// --------------------------------------仪表盘--------------------------------------
|
|
28
|
+
routerResource.dashboard = view.blank
|
|
29
|
+
// 工作台
|
|
30
|
+
routerResource.workplace = () => import('@vue2-client/pages/dashboard/workplace')
|
|
31
|
+
// --------------------------------------系统配置--------------------------------------
|
|
32
|
+
routerResource.system = view.blank
|
|
33
|
+
// 字典管理
|
|
34
|
+
routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
|
|
35
|
+
// 文件管理
|
|
36
|
+
routerResource.fileManager = () => import('@vue2-client/pages/system/file')
|
|
37
|
+
// 登录日志
|
|
38
|
+
routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
|
|
39
|
+
// 操作日志
|
|
40
|
+
routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
|
|
41
|
+
// 系统问题反馈工单
|
|
42
|
+
routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
|
|
43
|
+
// 通用服务评价
|
|
44
|
+
routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
|
|
45
|
+
// 系统设置
|
|
46
|
+
routerResource.settings = () => import('@vue2-client/pages/system/settings')
|
|
47
|
+
// 页面编辑器
|
|
48
|
+
routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
|
|
49
|
+
// 数据检索
|
|
50
|
+
routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
|
|
51
|
+
// 数据检索(新)
|
|
52
|
+
routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
|
|
53
|
+
|
|
54
|
+
routerResource.machineHand = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
55
|
+
// 示例页面
|
|
56
|
+
routerResource.example = {
|
|
57
|
+
path: 'example',
|
|
58
|
+
name: '示例主页面',
|
|
59
|
+
// component: () => import('@vue2-client/pages/userInfoDetailManage/TransferRecordQuery/index.vue')
|
|
60
|
+
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue')
|
|
61
|
+
// component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
|
|
62
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
63
|
+
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
64
|
+
// component: () => import('@vue2-client/base-client/components/common/AfMap/demo.vue')
|
|
65
|
+
// component: () => import('@vue2-client/base-client/components/common/ImagePreviewModal/demo.vue'),
|
|
66
|
+
// component: () => import('@vue2-client/base-client/components/common/XImagePreview/demo.vue'),
|
|
67
|
+
// component: () => import('@vue2-client/components/xScrollBox/example.vue'),
|
|
68
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
69
|
+
// component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
|
|
70
|
+
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
|
|
71
|
+
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue')
|
|
72
|
+
// component: () => import('@vue2-client/base-client/components/common/XInspectionDetailDrawer/demo.vue')
|
|
73
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue')
|
|
74
|
+
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
75
|
+
// component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
76
|
+
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
77
|
+
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
|
78
|
+
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
79
|
+
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
|
80
|
+
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
|
81
|
+
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
|
82
|
+
// component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
|
|
83
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
84
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
85
|
+
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
|
86
|
+
// component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
|
|
87
|
+
// component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
|
|
88
|
+
// component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
|
|
89
|
+
// component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
|
|
90
|
+
// component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
|
|
91
|
+
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
92
|
+
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
93
|
+
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
|
94
|
+
// component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
|
|
95
|
+
// component: () => import('@vue2-client/base-client/components/common/HIS/demo.vue'),
|
|
96
|
+
}
|
|
97
|
+
// routerResource.example = () =>
|
|
98
|
+
// import('@vue2-client/pages/Example')
|
|
99
|
+
routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
|
|
100
|
+
|
|
101
|
+
routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
|
102
|
+
|
|
103
|
+
routerResource.XTab = () => import('@vue2-client/base-client/components/common/XInspectionDetailDrawer/demo.vue')
|
|
104
|
+
routerResource.addressManage = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
105
|
+
// 大屏界面, 放行登录
|
|
106
|
+
routerResource.bigDashboard = () => import('@vue2-client/pages/dashboard/index.vue')
|
|
107
|
+
|
|
108
|
+
// 基础路由组件注册
|
|
109
|
+
const routerMap = {
|
|
110
|
+
login: {
|
|
111
|
+
authority: '*',
|
|
112
|
+
path: '/login',
|
|
113
|
+
component: process.env.VUE_APP_LOGIN_VERSION === 'V3' ? view.loginv3 : view.login
|
|
114
|
+
},
|
|
115
|
+
root: {
|
|
116
|
+
path: '/',
|
|
117
|
+
name: '首页',
|
|
118
|
+
// 只有在非微前端环境下才进行重定向,或者通过环境变量控制
|
|
119
|
+
redirect: window.__MICRO_APP_ENVIRONMENT__ ? undefined : homePage,
|
|
120
|
+
component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs
|
|
121
|
+
},
|
|
122
|
+
exp403: {
|
|
123
|
+
authority: '*',
|
|
124
|
+
name: 'exp403',
|
|
125
|
+
path: '403',
|
|
126
|
+
component: () => import('@vue2-client/pages/exception/403')
|
|
127
|
+
},
|
|
128
|
+
exp404: {
|
|
129
|
+
name: 'exp404',
|
|
130
|
+
path: '404',
|
|
131
|
+
component: () => import('@vue2-client/pages/exception/404')
|
|
132
|
+
},
|
|
133
|
+
exp500: {
|
|
134
|
+
name: 'exp500',
|
|
135
|
+
path: '500',
|
|
136
|
+
component: () => import('@vue2-client/pages/exception/500')
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
Object.assign(routerMap, routerResource)
|
|
140
|
+
export default routerMap
|
package/src/services/api/cas.js
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
import { post } from '@vue2-client/services/api/restTools'
|
|
2
|
-
import notification from 'ant-design-vue/lib/notification'
|
|
3
|
-
import { logout } from '@vue2-client/services/user'
|
|
4
|
-
import Cookie from 'js-cookie'
|
|
5
|
-
|
|
6
|
-
const casApi = {
|
|
7
|
-
// 根据用户信息校验服务访问权限并生成ST
|
|
8
|
-
createSTByUserInfo: '/api/af-sso/logic/createSTByUserInfo',
|
|
9
|
-
// 根据TGC生成ST
|
|
10
|
-
createSTByTGC: '/api/af-sso/logic/createSTByTGC',
|
|
11
|
-
// 验证ST
|
|
12
|
-
serviceValidate: '/api/af-sso/logic/openapi/serviceValidate',
|
|
13
|
-
// 其他验证
|
|
14
|
-
otherValidate: '/api/af-sso/logic'
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function setTGTCookie (cookie) {
|
|
18
|
-
return Cookie.set('TGT-Cookie', cookie)
|
|
19
|
-
}
|
|
20
|
-
function removeTGTCookie () {
|
|
21
|
-
return Cookie.remove('TGT-Cookie')
|
|
22
|
-
}
|
|
23
|
-
export function getTGTCookie () {
|
|
24
|
-
return Cookie.get('TGT-Cookie')
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function CASLoginByAuth (serviceKey) {
|
|
28
|
-
return new Promise((resolve, reject) => {
|
|
29
|
-
post(casApi.createSTByUserInfo, {
|
|
30
|
-
serviceKey: serviceKey
|
|
31
|
-
}).then(res => {
|
|
32
|
-
setTGTCookie(res.tgc)
|
|
33
|
-
resolve(res)
|
|
34
|
-
}).catch(msg => {
|
|
35
|
-
reject(msg)
|
|
36
|
-
})
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function CASLogin (serviceKey, inner) {
|
|
41
|
-
// 从第三方跳转登录
|
|
42
|
-
const tgc = getTGTCookie()
|
|
43
|
-
if (tgc && !inner) {
|
|
44
|
-
return new Promise((resolve, reject) => {
|
|
45
|
-
post(casApi.createSTByTGC, {
|
|
46
|
-
serviceKey: serviceKey,
|
|
47
|
-
tgc: tgc
|
|
48
|
-
}).then(res => {
|
|
49
|
-
resolve(res)
|
|
50
|
-
}).catch(msg => {
|
|
51
|
-
if (msg === '当前操作没有权限') {
|
|
52
|
-
removeTGTCookie()
|
|
53
|
-
notification.error({
|
|
54
|
-
message: '授权已过期,请重新登录',
|
|
55
|
-
description: '2秒后自动跳转回登陆页面'
|
|
56
|
-
})
|
|
57
|
-
logout().then(() => {
|
|
58
|
-
setTimeout(() => {
|
|
59
|
-
window.location.href = '/login?serviceKey=' + serviceKey
|
|
60
|
-
}, 1500)
|
|
61
|
-
})
|
|
62
|
-
} else {
|
|
63
|
-
reject(msg)
|
|
64
|
-
}
|
|
65
|
-
})
|
|
66
|
-
})
|
|
67
|
-
} else {
|
|
68
|
-
return CASLoginByAuth(serviceKey)
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function doOtherValidate (logicName, st, serviceKey) {
|
|
73
|
-
return post(casApi.otherValidate + '/' + logicName, {
|
|
74
|
-
st: st,
|
|
75
|
-
serviceKey: serviceKey
|
|
76
|
-
}, null)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export default casApi
|
|
1
|
+
import { post } from '@vue2-client/services/api/restTools'
|
|
2
|
+
import notification from 'ant-design-vue/lib/notification'
|
|
3
|
+
import { logout } from '@vue2-client/services/user'
|
|
4
|
+
import Cookie from 'js-cookie'
|
|
5
|
+
|
|
6
|
+
const casApi = {
|
|
7
|
+
// 根据用户信息校验服务访问权限并生成ST
|
|
8
|
+
createSTByUserInfo: '/api/af-sso/logic/createSTByUserInfo',
|
|
9
|
+
// 根据TGC生成ST
|
|
10
|
+
createSTByTGC: '/api/af-sso/logic/createSTByTGC',
|
|
11
|
+
// 验证ST
|
|
12
|
+
serviceValidate: '/api/af-sso/logic/openapi/serviceValidate',
|
|
13
|
+
// 其他验证
|
|
14
|
+
otherValidate: '/api/af-sso/logic'
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function setTGTCookie (cookie) {
|
|
18
|
+
return Cookie.set('TGT-Cookie', cookie)
|
|
19
|
+
}
|
|
20
|
+
function removeTGTCookie () {
|
|
21
|
+
return Cookie.remove('TGT-Cookie')
|
|
22
|
+
}
|
|
23
|
+
export function getTGTCookie () {
|
|
24
|
+
return Cookie.get('TGT-Cookie')
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function CASLoginByAuth (serviceKey) {
|
|
28
|
+
return new Promise((resolve, reject) => {
|
|
29
|
+
post(casApi.createSTByUserInfo, {
|
|
30
|
+
serviceKey: serviceKey
|
|
31
|
+
}).then(res => {
|
|
32
|
+
setTGTCookie(res.tgc)
|
|
33
|
+
resolve(res)
|
|
34
|
+
}).catch(msg => {
|
|
35
|
+
reject(msg)
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function CASLogin (serviceKey, inner) {
|
|
41
|
+
// 从第三方跳转登录
|
|
42
|
+
const tgc = getTGTCookie()
|
|
43
|
+
if (tgc && !inner) {
|
|
44
|
+
return new Promise((resolve, reject) => {
|
|
45
|
+
post(casApi.createSTByTGC, {
|
|
46
|
+
serviceKey: serviceKey,
|
|
47
|
+
tgc: tgc
|
|
48
|
+
}).then(res => {
|
|
49
|
+
resolve(res)
|
|
50
|
+
}).catch(msg => {
|
|
51
|
+
if (msg === '当前操作没有权限') {
|
|
52
|
+
removeTGTCookie()
|
|
53
|
+
notification.error({
|
|
54
|
+
message: '授权已过期,请重新登录',
|
|
55
|
+
description: '2秒后自动跳转回登陆页面'
|
|
56
|
+
})
|
|
57
|
+
logout().then(() => {
|
|
58
|
+
setTimeout(() => {
|
|
59
|
+
window.location.href = '/login?serviceKey=' + serviceKey
|
|
60
|
+
}, 1500)
|
|
61
|
+
})
|
|
62
|
+
} else {
|
|
63
|
+
reject(msg)
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
} else {
|
|
68
|
+
return CASLoginByAuth(serviceKey)
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function doOtherValidate (logicName, st, serviceKey) {
|
|
73
|
+
return post(casApi.otherValidate + '/' + logicName, {
|
|
74
|
+
st: st,
|
|
75
|
+
serviceKey: serviceKey
|
|
76
|
+
}, null)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export default casApi
|