vue2-client 1.12.55 → 1.12.56

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.
@@ -1,118 +1,118 @@
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 = view.gridView
21
-
22
- // --------------------------------------仪表盘--------------------------------------
23
- routerResource.dashboard = view.blank
24
- // 工作台
25
- routerResource.workplace = () =>
26
- import('@vue2-client/pages/dashboard/workplace')
27
- // --------------------------------------系统配置--------------------------------------
28
- routerResource.system = view.blank
29
- // 字典管理
30
- routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
31
- // 文件管理
32
- routerResource.fileManager = () => import('@vue2-client/pages/system/file')
33
- // 登录日志
34
- routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
35
- // 操作日志
36
- routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
37
- // 系统问题反馈工单
38
- routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
39
- // 通用服务评价
40
- routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
41
- // 系统设置
42
- routerResource.settings = () => import('@vue2-client/pages/system/settings')
43
- // AMIS示例页面
44
- routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
45
- // 页面编辑器
46
- routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
47
- // 数据检索
48
- routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
49
- // 数据检索(新)
50
- routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
51
- // 示例页面
52
- routerResource.example = {
53
- path: 'example',
54
- name: '示例主页面',
55
- // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
56
- // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
57
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
58
- // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
59
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
60
- // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
61
- // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
62
- // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
64
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
65
- // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
66
- // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
67
- // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
68
- // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
69
- // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
70
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
71
- // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
72
- // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
73
- component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
74
- }
75
- // routerResource.example = () =>
76
- // import('@vue2-client/pages/Example')
77
- routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
78
-
79
- routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
80
-
81
- routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
82
-
83
- // 基础路由组件注册
84
- const routerMap = {
85
- login: {
86
- authority: '*',
87
- path: '/login',
88
- component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
89
- ? view.loginv3 : view.login
90
- },
91
- root: {
92
- path: '/',
93
- name: '首页',
94
- redirect: homePage,
95
- component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
96
- },
97
- exp403: {
98
- authority: '*',
99
- name: 'exp403',
100
- path: '403',
101
- component: () =>
102
- import('@vue2-client/pages/exception/403')
103
- },
104
- exp404: {
105
- name: 'exp404',
106
- path: '404',
107
- component: () =>
108
- import('@vue2-client/pages/exception/404')
109
- },
110
- exp500: {
111
- name: 'exp500',
112
- path: '500',
113
- component: () =>
114
- import('@vue2-client/pages/exception/500')
115
- }
116
- }
117
- Object.assign(routerMap, routerResource)
118
- 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 = view.gridView
21
+
22
+ // --------------------------------------仪表盘--------------------------------------
23
+ routerResource.dashboard = view.blank
24
+ // 工作台
25
+ routerResource.workplace = () =>
26
+ import('@vue2-client/pages/dashboard/workplace')
27
+ // --------------------------------------系统配置--------------------------------------
28
+ routerResource.system = view.blank
29
+ // 字典管理
30
+ routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
31
+ // 文件管理
32
+ routerResource.fileManager = () => import('@vue2-client/pages/system/file')
33
+ // 登录日志
34
+ routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
35
+ // 操作日志
36
+ routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
37
+ // 系统问题反馈工单
38
+ routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
39
+ // 通用服务评价
40
+ routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
41
+ // 系统设置
42
+ routerResource.settings = () => import('@vue2-client/pages/system/settings')
43
+ // AMIS示例页面
44
+ routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
45
+ // 页面编辑器
46
+ routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
47
+ // 数据检索
48
+ routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
49
+ // 数据检索(新)
50
+ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
51
+ // 示例页面
52
+ routerResource.example = {
53
+ path: 'example',
54
+ name: '示例主页面',
55
+ // component: () => import('@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'),
56
+ component: () => import('@vue2-client/base-client/components/common/XDataCard/XDataCard.vue'),
57
+ // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
58
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
59
+ // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
60
+ // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
61
+ // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
62
+ // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
63
+ // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
64
+ // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
65
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
66
+ // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
67
+ // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
68
+ // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
69
+ // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
70
+ // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
71
+ // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
72
+ // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
73
+ // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
74
+ }
75
+ // routerResource.example = () =>
76
+ // import('@vue2-client/pages/Example')
77
+ routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
78
+
79
+ routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
80
+
81
+ routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
82
+
83
+ // 基础路由组件注册
84
+ const routerMap = {
85
+ login: {
86
+ authority: '*',
87
+ path: '/login',
88
+ component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
89
+ ? view.loginv3 : view.login
90
+ },
91
+ root: {
92
+ path: '/',
93
+ name: '首页',
94
+ redirect: homePage,
95
+ component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
96
+ },
97
+ exp403: {
98
+ authority: '*',
99
+ name: 'exp403',
100
+ path: '403',
101
+ component: () =>
102
+ import('@vue2-client/pages/exception/403')
103
+ },
104
+ exp404: {
105
+ name: 'exp404',
106
+ path: '404',
107
+ component: () =>
108
+ import('@vue2-client/pages/exception/404')
109
+ },
110
+ exp500: {
111
+ name: 'exp500',
112
+ path: '500',
113
+ component: () =>
114
+ import('@vue2-client/pages/exception/500')
115
+ }
116
+ }
117
+ Object.assign(routerMap, routerResource)
118
+ export default routerMap
@@ -1,47 +1,47 @@
1
- import AMapLoader from '@amap/amap-jsapi-loader'
2
- let Amap
3
- async function GetGDMap (secretKey, key) {
4
- if (!Amap) {
5
- window._AMapSecurityConfig = {
6
- securityJsCode: secretKey
7
- }
8
- // 解决高德地图加载报错 ---> 禁止多种API加载方式混用
9
- AMapLoader.reset()
10
- Amap = await AMapLoader.load({
11
- key: key, // 申请好的Web端开发者Key,首次调用 load 时必填
12
- version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
13
- plugins: ['AMap.IndexCluster', 'AMP.MarkerCluster', 'AMap.InfoWindow', 'AMap.HeatMap', 'AMap.HawkEye', 'AMap.DistrictSearch',
14
- 'AMap.ToolBar', 'AMap.Geolocation', 'AMap.MouseTool',
15
- 'AMap.Geocoder', 'AMap.MarkerClusterer', 'AMap.AutoComplete', 'AMap.Scale'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
16
- AMapUI: {
17
- version: '1.1', // AMapUI 缺省 1.1
18
- plugins: ['misc/PositionPicker'] // 需要加载的 AMapUI ui插件
19
- }
20
- })
21
- }
22
- return Amap
23
- }
24
-
25
- async function getGDMap (address) {
26
- new (await GetGDMap()).Geocoder({
27
- radius: 500 // 范围,默认:500
28
- }).getLocation(address, function (status, result) {
29
- if (status === 'complete' && result.geocodes.length) {
30
- return ({ lng: result.geocodes[0].location.lng, lat: result.geocodes[0].location.lat })
31
- } else {
32
- // eslint-disable-next-line prefer-promise-reject-errors
33
- throw new Error('根据经纬度查询地址失败')
34
- }
35
- })
36
- }
37
-
38
- async function GetLocation (address) {
39
- return new Promise((resolve, reject) => {
40
- try {
41
- resolve(getGDMap(address))
42
- } catch (e) {
43
- reject(e)
44
- }
45
- })
46
- }
47
- export { GetGDMap, GetLocation }
1
+ import AMapLoader from '@amap/amap-jsapi-loader'
2
+ let Amap
3
+ async function GetGDMap (secretKey, key) {
4
+ if (!Amap) {
5
+ window._AMapSecurityConfig = {
6
+ securityJsCode: secretKey
7
+ }
8
+ // 解决高德地图加载报错 ---> 禁止多种API加载方式混用
9
+ AMapLoader.reset()
10
+ Amap = await AMapLoader.load({
11
+ key: key, // 申请好的Web端开发者Key,首次调用 load 时必填
12
+ version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
13
+ plugins: ['AMap.IndexCluster', 'AMP.MarkerCluster', 'AMap.InfoWindow', 'AMap.HeatMap', 'AMap.HawkEye', 'AMap.DistrictSearch',
14
+ 'AMap.ToolBar', 'AMap.Geolocation', 'AMap.MouseTool',
15
+ 'AMap.Geocoder', 'AMap.MarkerClusterer', 'AMap.AutoComplete', 'AMap.Scale'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
16
+ AMapUI: {
17
+ version: '1.1', // AMapUI 缺省 1.1
18
+ plugins: ['misc/PositionPicker'] // 需要加载的 AMapUI ui插件
19
+ }
20
+ })
21
+ }
22
+ return Amap
23
+ }
24
+
25
+ async function getGDMap (address) {
26
+ new (await GetGDMap()).Geocoder({
27
+ radius: 500 // 范围,默认:500
28
+ }).getLocation(address, function (status, result) {
29
+ if (status === 'complete' && result.geocodes.length) {
30
+ return ({ lng: result.geocodes[0].location.lng, lat: result.geocodes[0].location.lat })
31
+ } else {
32
+ // eslint-disable-next-line prefer-promise-reject-errors
33
+ throw new Error('根据经纬度查询地址失败')
34
+ }
35
+ })
36
+ }
37
+
38
+ async function GetLocation (address) {
39
+ return new Promise((resolve, reject) => {
40
+ try {
41
+ resolve(getGDMap(address))
42
+ } catch (e) {
43
+ reject(e)
44
+ }
45
+ })
46
+ }
47
+ export { GetGDMap, GetLocation }