vue2-client 1.14.97 → 1.15.1

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,149 +1,149 @@
1
- <script setup>
2
- import { onMounted, ref } from 'vue'
3
- import XPageView from '@vue2-client/base-client/components/layout/XPageView'
4
-
5
- const xPageViewRef = ref(null)
6
-
7
- onMounted(() => {
8
- xPageViewRef.value.init({
9
- configValue: {
10
- type: 'page',
11
- onMounted: function (curr) {
12
- console.warn(curr.data)
13
- // 设置Tab配置数据
14
- curr.data.tabData = {
15
- index: 0,
16
- items: [
17
- // 第一组配置
18
- {
19
- tabConfigs: [
20
- { title: '表单列表', type: 'XFormTable', props: { serviceName: 'af-system', queryParamsName: 'crud_dictionary_manage' } },
21
- { title: '新增表单', type: 'XAddNativeForm', props: { serviceName: 'af-system', configName: 'crud_dictionary_manage_add_form' } }
22
- ]
23
- },
24
- // 第二组配置
25
- {
26
- tabConfigs: [
27
- { title: '数据列表', type: 'XFormTable', props: { serviceName: 'af-system', queryParamsName: 'crud_dictionary_manage' } },
28
- { title: '编辑表单', type: 'XAddNativeForm', props: { serviceName: 'af-system', configName: 'crud_dictionary_manage_add_form' } },
29
- { title: '查看记录', type: 'XFormTable', props: { serviceName: 'af-system', queryParamsName: 'crud_dictionary_manage' } }
30
- ]
31
- }
32
- ]
33
- }
34
- console.log('页面初始化完成,全局数据上下文已创建')
35
- },
36
- gutter: [16, 16],
37
- children: [
38
- {
39
- id: 'controlRow',
40
- type: 'row',
41
- gutter: 16,
42
- template: 'card',
43
- children: [
44
- {
45
- id: 'buttonContainer',
46
- span: '24',
47
- type: 'row',
48
- gutter: 8,
49
- children: [
50
- {
51
- id: 'reloadButton',
52
- span: '6',
53
- type: 'a-button',
54
- props: {
55
- type: 'primary',
56
- value: '切换Tab配置'
57
- },
58
- children: [
59
- {
60
- type: 'text',
61
- text: '切换Tab配置'
62
- }
63
- ],
64
- event: {
65
- click: function (e, context) {
66
- // 切换Tab配置
67
- const tabData = context.data.tabData
68
- tabData.index = tabData.index === 0 ? 1 : 0
69
-
70
- // 获取当前配置和Tab组件
71
- const currentConfig = tabData.items[tabData.index]
72
- const tabComponent = context.comps.pageTab
73
-
74
- if (tabComponent) {
75
- // 更新Tab组件配置
76
- tabComponent.$props.data = currentConfig.tabConfigs
77
- console.log('Tab配置已更新,当前配置索引:', tabData.index)
78
-
79
- // 更新状态文本
80
- const statusText = context.comps.statusText
81
- if (statusText && statusText.$el) {
82
- statusText.message = `点击按钮切换不同的Tab配置,当前是第${tabData.index + 1}组配置`
83
- }
84
- }
85
- }
86
- }
87
- },
88
- {
89
- id: 'statusText',
90
- span: '18',
91
- type: 'a-alert',
92
- props: {
93
- message: '点击按钮切换不同的Tab配置,当前是第1组配置',
94
- type: 'success'
95
- }
96
- }
97
- ]
98
- }
99
- ]
100
- },
101
- {
102
- id: 'row2',
103
- type: 'row',
104
- gutter: 16,
105
- template: 'none',
106
- children: [
107
- {
108
- id: 'pageTab',
109
- span: '24',
110
- type: 'XTab',
111
- props: {
112
- showTabBar: true,
113
- data: [
114
- {
115
- title: '表单列表',
116
- type: 'XFormTable',
117
- props: {
118
- serviceName: 'af-system',
119
- queryParamsName: 'crud_dictionary_manage'
120
- }
121
- },
122
- {
123
- title: '新增表单',
124
- type: 'XAddNativeForm',
125
- props: {
126
- serviceName: 'af-system',
127
- configName: 'crud_dictionary_manage_add_form'
128
- }
129
- }
130
- ],
131
- onChange: function (oldKey, newKey, oldTab, newTab) {
132
- console.log('Tab changed:', oldKey, newKey)
133
- }
134
- }
135
- }
136
- ]
137
- }
138
- ]
139
- },
140
- serviceName: 'af-his'
141
- })
142
- })
143
- </script>
144
-
145
- <template>
146
- <div>
147
- <x-page-view ref="xPageViewRef"></x-page-view>
148
- </div>
149
- </template>
1
+ <script setup>
2
+ import { onMounted, ref } from 'vue'
3
+ import XPageView from '@vue2-client/base-client/components/layout/XPageView'
4
+
5
+ const xPageViewRef = ref(null)
6
+
7
+ onMounted(() => {
8
+ xPageViewRef.value.init({
9
+ configValue: {
10
+ type: 'page',
11
+ onMounted: function (curr) {
12
+ console.warn(curr.data)
13
+ // 设置Tab配置数据
14
+ curr.data.tabData = {
15
+ index: 0,
16
+ items: [
17
+ // 第一组配置
18
+ {
19
+ tabConfigs: [
20
+ { title: '表单列表', type: 'XFormTable', props: { serviceName: 'af-system', queryParamsName: 'crud_dictionary_manage' } },
21
+ { title: '新增表单', type: 'XAddNativeForm', props: { serviceName: 'af-system', configName: 'crud_dictionary_manage_add_form' } }
22
+ ]
23
+ },
24
+ // 第二组配置
25
+ {
26
+ tabConfigs: [
27
+ { title: '数据列表', type: 'XFormTable', props: { serviceName: 'af-system', queryParamsName: 'crud_dictionary_manage' } },
28
+ { title: '编辑表单', type: 'XAddNativeForm', props: { serviceName: 'af-system', configName: 'crud_dictionary_manage_add_form' } },
29
+ { title: '查看记录', type: 'XFormTable', props: { serviceName: 'af-system', queryParamsName: 'crud_dictionary_manage' } }
30
+ ]
31
+ }
32
+ ]
33
+ }
34
+ console.log('页面初始化完成,全局数据上下文已创建')
35
+ },
36
+ gutter: [16, 16],
37
+ children: [
38
+ {
39
+ id: 'controlRow',
40
+ type: 'row',
41
+ gutter: 16,
42
+ template: 'card',
43
+ children: [
44
+ {
45
+ id: 'buttonContainer',
46
+ span: '24',
47
+ type: 'row',
48
+ gutter: 8,
49
+ children: [
50
+ {
51
+ id: 'reloadButton',
52
+ span: '6',
53
+ type: 'a-button',
54
+ props: {
55
+ type: 'primary',
56
+ value: '切换Tab配置'
57
+ },
58
+ children: [
59
+ {
60
+ type: 'text',
61
+ text: '切换Tab配置'
62
+ }
63
+ ],
64
+ event: {
65
+ click: function (e, context) {
66
+ // 切换Tab配置
67
+ const tabData = context.data.tabData
68
+ tabData.index = tabData.index === 0 ? 1 : 0
69
+
70
+ // 获取当前配置和Tab组件
71
+ const currentConfig = tabData.items[tabData.index]
72
+ const tabComponent = context.comps.pageTab
73
+
74
+ if (tabComponent) {
75
+ // 更新Tab组件配置
76
+ tabComponent.$props.data = currentConfig.tabConfigs
77
+ console.log('Tab配置已更新,当前配置索引:', tabData.index)
78
+
79
+ // 更新状态文本
80
+ const statusText = context.comps.statusText
81
+ if (statusText && statusText.$el) {
82
+ statusText.message = `点击按钮切换不同的Tab配置,当前是第${tabData.index + 1}组配置`
83
+ }
84
+ }
85
+ }
86
+ }
87
+ },
88
+ {
89
+ id: 'statusText',
90
+ span: '18',
91
+ type: 'a-alert',
92
+ props: {
93
+ message: '点击按钮切换不同的Tab配置,当前是第1组配置',
94
+ type: 'success'
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ },
101
+ {
102
+ id: 'row2',
103
+ type: 'row',
104
+ gutter: 16,
105
+ template: 'none',
106
+ children: [
107
+ {
108
+ id: 'pageTab',
109
+ span: '24',
110
+ type: 'XTab',
111
+ props: {
112
+ showTabBar: true,
113
+ data: [
114
+ {
115
+ title: '表单列表',
116
+ type: 'XFormTable',
117
+ props: {
118
+ serviceName: 'af-system',
119
+ queryParamsName: 'crud_dictionary_manage'
120
+ }
121
+ },
122
+ {
123
+ title: '新增表单',
124
+ type: 'XAddNativeForm',
125
+ props: {
126
+ serviceName: 'af-system',
127
+ configName: 'crud_dictionary_manage_add_form'
128
+ }
129
+ }
130
+ ],
131
+ onChange: function (oldKey, newKey, oldTab, newTab) {
132
+ console.log('Tab changed:', oldKey, newKey)
133
+ }
134
+ }
135
+ }
136
+ ]
137
+ }
138
+ ]
139
+ },
140
+ serviceName: 'af-his'
141
+ })
142
+ })
143
+ </script>
144
+
145
+ <template>
146
+ <div>
147
+ <x-page-view ref="xPageViewRef"></x-page-view>
148
+ </div>
149
+ </template>
@@ -1,127 +1,127 @@
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
- routerResource.businessQuery = view.blank
23
- // 业务查询 - 收费查询
24
- routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
25
- // --------------------------------------仪表盘--------------------------------------
26
- routerResource.dashboard = view.blank
27
- // 工作台
28
- routerResource.workplace = () =>
29
- import('@vue2-client/pages/dashboard/workplace')
30
- // --------------------------------------系统配置--------------------------------------
31
- routerResource.system = view.blank
32
- // 字典管理
33
- routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
34
- // 文件管理
35
- routerResource.fileManager = () => import('@vue2-client/pages/system/file')
36
- // 登录日志
37
- routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
38
- // 操作日志
39
- routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
40
- // 系统问题反馈工单
41
- routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
42
- // 通用服务评价
43
- routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
44
- // 系统设置
45
- routerResource.settings = () => import('@vue2-client/pages/system/settings')
46
- // AMIS示例页面
47
- routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
48
- // 页面编辑器
49
- routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
50
- // 数据检索
51
- routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
52
- // 数据检索(新)
53
- routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
54
- // 示例页面
55
- routerResource.example = {
56
- path: 'example',
57
- name: '示例主页面',
58
- component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
59
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
60
- // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
61
- // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
62
- // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
63
- // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
64
- // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
65
- // component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
66
- // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
67
- // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
68
- // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
69
- // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
70
- // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
71
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
72
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
73
- // component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
74
- // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
75
- // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
76
- // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
77
- // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
78
- // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
79
- // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
80
- // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
81
- // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
82
- // component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
83
- }
84
- // routerResource.example = () =>
85
- // import('@vue2-client/pages/Example')
86
- routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
87
-
88
- routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
89
-
90
- routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
91
-
92
- // 基础路由组件注册
93
- const routerMap = {
94
- login: {
95
- authority: '*',
96
- path: '/login',
97
- component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
98
- ? view.loginv3 : view.login
99
- },
100
- root: {
101
- path: '/',
102
- name: '首页',
103
- redirect: homePage,
104
- component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
105
- },
106
- exp403: {
107
- authority: '*',
108
- name: 'exp403',
109
- path: '403',
110
- component: () =>
111
- import('@vue2-client/pages/exception/403')
112
- },
113
- exp404: {
114
- name: 'exp404',
115
- path: '404',
116
- component: () =>
117
- import('@vue2-client/pages/exception/404')
118
- },
119
- exp500: {
120
- name: 'exp500',
121
- path: '500',
122
- component: () =>
123
- import('@vue2-client/pages/exception/500')
124
- }
125
- }
126
- Object.assign(routerMap, routerResource)
127
- 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
+ routerResource.businessQuery = view.blank
23
+ // 业务查询 - 收费查询
24
+ routerResource.chargeQuery = () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
25
+ // --------------------------------------仪表盘--------------------------------------
26
+ routerResource.dashboard = view.blank
27
+ // 工作台
28
+ routerResource.workplace = () =>
29
+ import('@vue2-client/pages/dashboard/workplace')
30
+ // --------------------------------------系统配置--------------------------------------
31
+ routerResource.system = view.blank
32
+ // 字典管理
33
+ routerResource.dictionaryManage = () => import('@vue2-client/pages/system/dictionary')
34
+ // 文件管理
35
+ routerResource.fileManager = () => import('@vue2-client/pages/system/file')
36
+ // 登录日志
37
+ routerResource.loginInfor = () => import('@vue2-client/pages/system/monitor/loginInfor')
38
+ // 操作日志
39
+ routerResource.operLog = () => import('@vue2-client/pages/system/monitor/operLog')
40
+ // 系统问题反馈工单
41
+ routerResource.submitTicket = () => import('@vue2-client/pages/system/ticket')
42
+ // 通用服务评价
43
+ routerResource.ServiceReview = () => import('@vue2-client/pages/ServiceReview')
44
+ // 系统设置
45
+ routerResource.settings = () => import('@vue2-client/pages/system/settings')
46
+ // AMIS示例页面
47
+ routerResource.amisDemo = () => import('@vue2-client/pages/AMisDemo/AMisDemo')
48
+ // 页面编辑器
49
+ routerResource.editablePage = () => import('@vue2-client/pages/lowCode/lowCodeEditor.vue')
50
+ // 数据检索
51
+ routerResource.dynamicStatistics = () => import('@vue2-client/pages/DynamicStatistics')
52
+ // 数据检索(新)
53
+ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynamicStatistics')
54
+ // 示例页面
55
+ routerResource.example = {
56
+ path: 'example',
57
+ name: '示例主页面',
58
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo2.vue'),
59
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
60
+ // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
61
+ // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
62
+ // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
63
+ // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
64
+ // component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
65
+ component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
66
+ // component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
67
+ // component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
68
+ // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
69
+ // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
70
+ // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
71
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
72
+ // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
73
+ // component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
74
+ // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
75
+ // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
76
+ // component: () => import('@vue2-client/base-client/components/common/XCheckList/XCheckList.vue'),
77
+ // component: () => import('@vue2-client/base-client/components/common/XPrint/Demo.vue'),
78
+ // component: () => import('@vue2-client/base-client/components/AI/demo.vue'),
79
+ // component: () => import('@vue2-client/components/g2Charts/demo.vue'),
80
+ // component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
81
+ // component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
82
+ // component: () => import('@vue2-client/pages/ReportGrid/index.vue'),
83
+ }
84
+ // routerResource.example = () =>
85
+ // import('@vue2-client/pages/Example')
86
+ routerResource.XReportView = () => import('@vue2-client/pages/XReportView')
87
+
88
+ routerResource.XReportGrid = () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
89
+
90
+ routerResource.XTab = () => import('@vue2-client/base-client/components/common/XTab/XTabDemo')
91
+
92
+ // 基础路由组件注册
93
+ const routerMap = {
94
+ login: {
95
+ authority: '*',
96
+ path: '/login',
97
+ component: process.env.VUE_APP_LOGIN_VERSION === 'V3'
98
+ ? view.loginv3 : view.login
99
+ },
100
+ root: {
101
+ path: '/',
102
+ name: '首页',
103
+ redirect: homePage,
104
+ component: process.env.VUE_APP_SINGLE_PAPER === 'TRUE' ? view.blank : view.tabs,
105
+ },
106
+ exp403: {
107
+ authority: '*',
108
+ name: 'exp403',
109
+ path: '403',
110
+ component: () =>
111
+ import('@vue2-client/pages/exception/403')
112
+ },
113
+ exp404: {
114
+ name: 'exp404',
115
+ path: '404',
116
+ component: () =>
117
+ import('@vue2-client/pages/exception/404')
118
+ },
119
+ exp500: {
120
+ name: 'exp500',
121
+ path: '500',
122
+ component: () =>
123
+ import('@vue2-client/pages/exception/500')
124
+ }
125
+ }
126
+ Object.assign(routerMap, routerResource)
127
+ export default routerMap