vue2-client 1.10.32 → 1.10.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +196 -196
  3. package/src/base-client/components/common/XAddNativeForm/demo.vue +43 -43
  4. package/src/base-client/components/common/XAddReport/XAddReport.vue +1 -1
  5. package/src/base-client/components/common/XConversation/XConversation.vue +12 -0
  6. package/src/base-client/components/common/XDataCard/XDataCard.vue +17 -16
  7. package/src/base-client/components/common/XForm/XFormItem.vue +1248 -1286
  8. package/src/base-client/components/common/XFormCol/XFormCol.vue +157 -157
  9. package/src/base-client/components/common/XFormGroup/XFormGroup.vue +301 -301
  10. package/src/base-client/components/common/XFormTable/XFormTable.vue +12 -0
  11. package/src/base-client/components/common/XFormTable/demo.vue +2 -2
  12. package/src/base-client/components/common/XIntervalPicker/XIntervalPicker.vue +121 -0
  13. package/src/base-client/components/common/XReportDrawer/XReportDrawer.vue +1 -1
  14. package/src/base-client/components/common/XReportGrid/XReport.vue +1079 -1070
  15. package/src/base-client/components/common/XReportGrid/XReportDemo.vue +46 -47
  16. package/src/base-client/components/common/XReportGrid/XReportDesign.vue +628 -628
  17. package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +380 -380
  18. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +1104 -1104
  19. package/src/base-client/components/common/XReportGrid/print.js +184 -184
  20. package/src/base-client/components/common/XTab/XTab.vue +57 -25
  21. package/src/components/cache/AKeepAlive.js +11 -4
  22. package/src/layouts/BlankView.vue +59 -3
  23. package/src/pages/ReportGrid/index.vue +76 -76
  24. package/src/router/async/router.map.js +95 -148
  25. package/src/router/guards.js +260 -263
  26. package/src/utils/microAppUtils.js +49 -40
  27. package/src/utils/routerUtil.js +526 -450
@@ -1,76 +1,76 @@
1
- <template>
2
- <div id="test" v-if="showReport">
3
- <XReport
4
- @updateImg="updateImg"
5
- ref="main"
6
- :use-oss-for-img="false"
7
- config-name="medicineMouldCover"
8
- server-name="af-his"
9
- :show-img-in-cell="true"
10
- :display-only="displayOnly"
11
- :edit-mode="false"
12
- :show-save-button="false"
13
- :dont-format="true"/>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport'
19
- // eslint-disable-next-line no-unused-vars
20
- import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
21
-
22
- export default {
23
- name: 'Example',
24
- components: {
25
- XReport
26
- },
27
- mounted () {
28
- console.log(this.$route)
29
- },
30
- data () {
31
- return {
32
- test: {
33
- title: {
34
- type: 'titleKey',
35
- value: 'f_type'
36
- },
37
- designMode: 'json',
38
- },
39
- total: 1,
40
- registerMap: [],
41
- displayOnly: true,
42
- showReport: true
43
- }
44
- },
45
- methods: {
46
- updateImg (data) {
47
- console.warn('demo', data)
48
- },
49
- testExport () {
50
- this.showReport = false
51
- this.displayOnly = true
52
- this.$nextTick(() => {
53
- this.showReport = true
54
- setTimeout(() => {
55
- exportHTMLNodeToPDF('123', '#test')
56
- this.showReport = false
57
- this.displayOnly = false
58
- this.$nextTick(() => {
59
- this.showReport = true
60
- })
61
- }, 500)
62
- })
63
- },
64
- testSave () {
65
- const result = []
66
- this.registerMap.forEach(item => {
67
- result.push(item.exportData())
68
- })
69
- console.warn('save', result)
70
- }
71
- }
72
- }
73
- </script>
74
- <style scoped>
75
-
76
- </style>
1
+ <template>
2
+ <div id="test" v-if="showReport">
3
+ <XReport
4
+ @updateImg="updateImg"
5
+ ref="main"
6
+ :use-oss-for-img="false"
7
+ config-name="medicineMouldCover"
8
+ server-name="af-his"
9
+ :show-img-in-cell="true"
10
+ :display-only="displayOnly"
11
+ :edit-mode="false"
12
+ :show-save-button="false"
13
+ :dont-format="true"/>
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+ import XReport from '@vue2-client/base-client/components/common/XReportGrid/XReport'
19
+ // eslint-disable-next-line no-unused-vars
20
+ import { exportHTMLNodeToPDF } from '@vue2-client/utils/htmlToPDFApi'
21
+
22
+ export default {
23
+ name: 'Example',
24
+ components: {
25
+ XReport
26
+ },
27
+ mounted () {
28
+ console.log(this.$route)
29
+ },
30
+ data () {
31
+ return {
32
+ test: {
33
+ title: {
34
+ type: 'titleKey',
35
+ value: 'f_type'
36
+ },
37
+ designMode: 'json',
38
+ },
39
+ total: 1,
40
+ registerMap: [],
41
+ displayOnly: true,
42
+ showReport: true
43
+ }
44
+ },
45
+ methods: {
46
+ updateImg (data) {
47
+ console.warn('demo', data)
48
+ },
49
+ testExport () {
50
+ this.showReport = false
51
+ this.displayOnly = true
52
+ this.$nextTick(() => {
53
+ this.showReport = true
54
+ setTimeout(() => {
55
+ exportHTMLNodeToPDF('123', '#test')
56
+ this.showReport = false
57
+ this.displayOnly = false
58
+ this.$nextTick(() => {
59
+ this.showReport = true
60
+ })
61
+ }, 500)
62
+ })
63
+ },
64
+ testSave () {
65
+ const result = []
66
+ this.registerMap.forEach(item => {
67
+ result.push(item.exportData())
68
+ })
69
+ console.warn('save', result)
70
+ }
71
+ }
72
+ }
73
+ </script>
74
+ <style scoped>
75
+
76
+ </style>
@@ -1,188 +1,135 @@
1
1
  const { homePage } = require('../../config')
2
- // 视图组件
2
+ // 视图组件
3
3
  const view = {
4
- tabs: () =>
5
- import('@vue2-client/layouts/tabs'),
6
- blank: () =>
7
- import('@vue2-client/layouts/BlankView'),
8
- page: () =>
9
- import('@vue2-client/layouts/PageView'),
10
- // his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
11
- gridView: () =>
12
- import('@vue2-client/layouts/GridView'),
13
- login: () =>
14
- import('@vue2-client/pages/login/Login'),
15
- loginv3: () =>
16
- import('@vue2-client/pages/login/LoginV3')
17
- }
18
- // 动态路由对象定义
4
+ tabs: () =>
5
+ import('@vue2-client/layouts/tabs'),
6
+ blank: () =>
7
+ import('@vue2-client/layouts/BlankView'),
8
+ page: () =>
9
+ import('@vue2-client/layouts/PageView'),
10
+ // his-web$ceshiGrid?type=GridView&configName=RxPreparedMed
11
+ gridView: () =>
12
+ import('@vue2-client/layouts/GridView'),
13
+ login: () =>
14
+ import('@vue2-client/pages/login/Login'),
15
+ loginv3: () =>
16
+ import('@vue2-client/pages/login/LoginV3')
17
+ }
18
+ // 动态路由对象定义
19
19
  const routerResource = {}
20
- // --------------------------------------基本视图组件--------------------------------------
21
- // 空白视图
20
+ // --------------------------------------基本视图组件--------------------------------------
21
+ // 空白视图
22
22
  routerResource.blank = view.blank
23
- // 单页面视图
23
+ // 单页面视图
24
24
  routerResource.singlePage = view.blank
25
- // 栅格配置视图
25
+ // 栅格配置视图
26
26
  routerResource.gridView = view.gridView
27
27
 
28
28
  // --------------------------------------仪表盘--------------------------------------
29
29
  routerResource.dashboard = view.blank
30
- // 工作台
30
+ // 工作台
31
31
  routerResource.workplace = () =>
32
- import('@vue2-client/pages/dashboard/workplace')
33
- // --------------------------------------系统配置--------------------------------------
32
+ import('@vue2-client/pages/dashboard/workplace')
33
+ // --------------------------------------系统配置--------------------------------------
34
34
  routerResource.system = view.blank
35
- // 字典管理
35
+ // 字典管理
36
36
  routerResource.dictionaryManage = () =>
37
- import('@vue2-client/pages/system/dictionary')
38
- // 文件管理
37
+ import('@vue2-client/pages/system/dictionary')
38
+ // 文件管理
39
39
  routerResource.fileManager = () =>
40
- import('@vue2-client/pages/system/file')
41
- // 登录日志
40
+ import('@vue2-client/pages/system/file')
41
+ // 登录日志
42
42
  routerResource.loginInfor = () =>
43
- import('@vue2-client/pages/system/monitor/loginInfor')
44
- // 操作日志
43
+ import('@vue2-client/pages/system/monitor/loginInfor')
44
+ // 操作日志
45
45
  routerResource.operLog = () =>
46
- import('@vue2-client/pages/system/monitor/operLog')
47
- // 系统问题反馈工单
46
+ import('@vue2-client/pages/system/monitor/operLog')
47
+ // 系统问题反馈工单
48
48
  routerResource.submitTicket = () =>
49
- import('@vue2-client/pages/system/ticket')
50
- // 通用服务评价
49
+ import('@vue2-client/pages/system/ticket')
50
+ // 通用服务评价
51
51
  routerResource.ServiceReview = () =>
52
- import('@vue2-client/pages/ServiceReview')
53
- // 系统设置
52
+ import('@vue2-client/pages/ServiceReview')
53
+ // 系统设置
54
54
  routerResource.settings = () =>
55
- import('@vue2-client/pages/system/settings')
56
- // AMIS示例页面
55
+ import('@vue2-client/pages/system/settings')
56
+ // AMIS示例页面
57
57
  routerResource.amisDemo = () =>
58
- import('@vue2-client/pages/AMisDemo/AMisDemo')
59
- // 页面编辑器
58
+ import('@vue2-client/pages/AMisDemo/AMisDemo')
59
+ // 页面编辑器
60
60
  routerResource.editablePage = () =>
61
61
  import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
62
- // 数据检索
62
+ // 数据检索
63
63
  routerResource.dynamicStatistics = () =>
64
- import('@vue2-client/pages/DynamicStatistics')
65
- // 数据检索(新)
64
+ import('@vue2-client/pages/DynamicStatistics')
65
+ // 数据检索(新)
66
66
  routerResource.newDynamicStatistics = () =>
67
67
  import('@vue2-client/pages/NewDynamicStatistics')
68
- // 示例页面
68
+ // 示例页面
69
69
  routerResource.example = {
70
- path: 'example',
71
- name: '示例主页面',
72
- component: () => import('@vue2-client/pages/Example'),
73
- children: [
74
- {
75
- path: '',
76
- name: '示例页面2',
77
- redirect: 'default',
78
- meta: {
79
- // 菜单中不显示
80
- invisible: true,
81
- }
82
- },
83
- {
84
- path: 'default',
85
- name: '示例页面',
86
- // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
87
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
88
- component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
89
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
90
- // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
91
- // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
92
- // component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
93
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
94
- // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
95
- // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
96
- // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
97
- // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
98
- // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
99
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
100
- // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
101
- meta: {
102
- // 菜单中不显示
103
- invisible: true,
104
- }
105
- },
106
- {
107
- path: 'sub-example',
108
- name: '示例页面1',
109
- component: () => import('@vue2-client/pages/SubExample'),
110
- meta: {
111
- // 菜单中不显示
112
- invisible: true,
113
- // 跳转不打开新页签
114
- noPusTabs: true
115
- }
116
- },
117
- {
118
- path: 'x-tree-one-pro-example',
119
- name: 'TreeView布局示例',
120
- component: () => import('@vue2-client/pages/XTreeOneProExample'),
121
- meta: {
122
- // 菜单中不显示
123
- invisible: true,
124
- // 跳转不打开新页签
125
- noPusTabs: true
126
- }
127
- },
128
- {
129
- path: 'page-view-example',
130
- name: 'PageView示例',
131
- component: () => import('@vue2-client/pages/XPageViewExample'),
132
- meta: {
133
- // 菜单中不显示
134
- invisible: true,
135
- // 跳转不打开新页签
136
- noPusTabs: true
137
- }
138
- },
139
- ]
70
+ name: '示例页面',
71
+ path: 'example',
72
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/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/XFormTable/demo.vue'),
76
+ // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
77
+ // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
78
+ component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
79
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
80
+ // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
81
+ // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
82
+ // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
83
+ // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
84
+ // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
85
+ // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
86
+ // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
140
87
  }
141
88
  // routerResource.example = () =>
142
89
  // import('@vue2-client/pages/Example')
143
90
  routerResource.XReportView = () =>
144
- import('@vue2-client/pages/XReportView')
91
+ import('@vue2-client/pages/XReportView')
145
92
 
146
93
  routerResource.XReportGrid = () =>
147
- import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
94
+ import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
148
95
 
149
96
  routerResource.XTab = () =>
150
97
  import('@vue2-client/base-client/components/common/XTab/XTabDemo')
151
98
 
152
99
  console.log(process.env)
153
- // 基础路由组件注册
100
+ // 基础路由组件注册
154
101
  const routerMap = {
155
- login: {
156
- authority: '*',
157
- path: '/login',
158
- component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
159
- ? view.loginv3 : view.login
160
- },
161
- root: {
162
- path: '/',
163
- name: '首页',
164
- redirect: homePage,
165
- component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
166
- },
167
- exp403: {
168
- authority: '*',
169
- name: 'exp403',
170
- path: '403',
171
- component: () =>
172
- import('@vue2-client/pages/exception/403')
173
- },
174
- exp404: {
175
- name: 'exp404',
176
- path: '404',
177
- component: () =>
178
- import('@vue2-client/pages/exception/404')
179
- },
180
- exp500: {
181
- name: 'exp500',
182
- path: '500',
183
- component: () =>
184
- import('@vue2-client/pages/exception/500')
185
- }
102
+ login: {
103
+ authority: '*',
104
+ path: '/login',
105
+ component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
106
+ ? view.loginv3 : view.login
107
+ },
108
+ root: {
109
+ path: '/',
110
+ name: '首页',
111
+ redirect: homePage,
112
+ component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
113
+ },
114
+ exp403: {
115
+ authority: '*',
116
+ name: 'exp403',
117
+ path: '403',
118
+ component: () =>
119
+ import('@vue2-client/pages/exception/403')
120
+ },
121
+ exp404: {
122
+ name: 'exp404',
123
+ path: '404',
124
+ component: () =>
125
+ import('@vue2-client/pages/exception/404')
126
+ },
127
+ exp500: {
128
+ name: 'exp500',
129
+ path: '500',
130
+ component: () =>
131
+ import('@vue2-client/pages/exception/500')
132
+ }
186
133
  }
187
134
  Object.assign(routerMap, routerResource)
188
135
  export default routerMap