vue2-client 1.10.35 → 1.11.2
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/package.json +1 -1
- package/src/base-client/components/common/XAddReport/XAddReport.vue +207 -207
- package/src/base-client/components/common/XConversation/XConversation.vue +275 -275
- package/src/base-client/components/common/XForm/XForm.vue +2 -2
- package/src/base-client/components/common/XFormTable/XFormTable.vue +868 -868
- package/src/base-client/components/common/XReportDrawer/XReportDrawer.vue +201 -201
- package/src/base-client/components/common/XTab/XTab.vue +233 -233
- package/src/base-client/components/common/XTable/XTable.vue +114 -195
- package/src/base-client/components/common/XTable/XTableWrapper.vue +240 -0
- package/src/base-client/components/layout/XPageView/RenderRow.vue +12 -11
- package/src/components/STable/index.js +12 -12
- package/src/router/async/router.map.js +148 -95
- package/src/utils/indexedDB.js +234 -263
- package/vue.config.js +6 -5
|
@@ -3,22 +3,23 @@
|
|
|
3
3
|
<a-row type="flex">
|
|
4
4
|
<!-- 对于row类型,需要遍历children -->
|
|
5
5
|
<a-col :key="`page-col-${col.id}`" v-for="col in (row.type === 'row' ? row.children : [row])" :span="col.span ? col.span : 24">
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
<template v-if="col.type === 'row'">
|
|
7
|
+
<render-row
|
|
8
|
+
v-for="(nestedRow, index) in col.children"
|
|
9
|
+
:row="nestedRow"
|
|
10
|
+
:key="`page-col-${col.id}-${index}`" />
|
|
11
|
+
</template>
|
|
11
12
|
<component
|
|
12
13
|
v-if="col.type !== 'row'"
|
|
13
14
|
:ref="setRef(col.id)"
|
|
14
15
|
:is="getComponentType(col.type)"
|
|
15
16
|
v-bind="col.props">
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
<template v-if="col.children">
|
|
18
|
+
<render-row
|
|
19
|
+
v-for="(nestedRow, index) in col.children"
|
|
20
|
+
:row="nestedRow"
|
|
21
|
+
:key="`page-col-${col.id}-${index}`" />
|
|
22
|
+
</template>
|
|
22
23
|
</component>
|
|
23
24
|
</a-col>
|
|
24
25
|
</a-row>
|
|
@@ -14,7 +14,9 @@ export default {
|
|
|
14
14
|
localPagination: Object.assign({}, this.pagination),
|
|
15
15
|
|
|
16
16
|
sortField: undefined,
|
|
17
|
-
sortOrder: undefined
|
|
17
|
+
sortOrder: undefined,
|
|
18
|
+
pageNum: 1,
|
|
19
|
+
pageSize: 10
|
|
18
20
|
}
|
|
19
21
|
},
|
|
20
22
|
props: Object.assign({}, T.props, {
|
|
@@ -30,14 +32,6 @@ export default {
|
|
|
30
32
|
type: Function,
|
|
31
33
|
required: true
|
|
32
34
|
},
|
|
33
|
-
pageNum: {
|
|
34
|
-
type: Number,
|
|
35
|
-
default: 1
|
|
36
|
-
},
|
|
37
|
-
pageSize: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 10
|
|
40
|
-
},
|
|
41
35
|
showSizeChanger: {
|
|
42
36
|
type: Boolean,
|
|
43
37
|
default: true
|
|
@@ -46,6 +40,10 @@ export default {
|
|
|
46
40
|
type: Boolean,
|
|
47
41
|
default: false
|
|
48
42
|
},
|
|
43
|
+
selectRowMode: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: 'default'
|
|
46
|
+
},
|
|
49
47
|
size: {
|
|
50
48
|
type: String,
|
|
51
49
|
default: 'default'
|
|
@@ -108,8 +106,10 @@ export default {
|
|
|
108
106
|
})
|
|
109
107
|
// change pagination, reset total data
|
|
110
108
|
this.needTotalList = this.initTotalList(this.columns)
|
|
111
|
-
this.
|
|
112
|
-
|
|
109
|
+
if (this.selectRowMode === 'default') {
|
|
110
|
+
this.selectedRowKeys = []
|
|
111
|
+
this.selectedRows = []
|
|
112
|
+
}
|
|
113
113
|
},
|
|
114
114
|
pageNum (val) {
|
|
115
115
|
Object.assign(this.localPagination, {
|
|
@@ -381,7 +381,7 @@ export default {
|
|
|
381
381
|
|
|
382
382
|
return (
|
|
383
383
|
<div class="table-wrapper">
|
|
384
|
-
{showAlert && this.showSelected ? this.renderAlert() : null}
|
|
384
|
+
{showAlert && this.showSelected && this.selectRowMode === 'default' ? this.renderAlert() : null}
|
|
385
385
|
{table}
|
|
386
386
|
{!this.hidePagination ? pagination : null}
|
|
387
387
|
</div>
|
|
@@ -1,135 +1,188 @@
|
|
|
1
1
|
const { homePage } = require('../../config')
|
|
2
|
-
// 视图组件
|
|
2
|
+
// 视图组件
|
|
3
3
|
const view = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
33
|
-
// --------------------------------------系统配置--------------------------------------
|
|
32
|
+
import('@vue2-client/pages/dashboard/workplace')
|
|
33
|
+
// --------------------------------------系统配置--------------------------------------
|
|
34
34
|
routerResource.system = view.blank
|
|
35
|
-
// 字典管理
|
|
35
|
+
// 字典管理
|
|
36
36
|
routerResource.dictionaryManage = () =>
|
|
37
|
-
|
|
38
|
-
// 文件管理
|
|
37
|
+
import('@vue2-client/pages/system/dictionary')
|
|
38
|
+
// 文件管理
|
|
39
39
|
routerResource.fileManager = () =>
|
|
40
|
-
|
|
41
|
-
// 登录日志
|
|
40
|
+
import('@vue2-client/pages/system/file')
|
|
41
|
+
// 登录日志
|
|
42
42
|
routerResource.loginInfor = () =>
|
|
43
|
-
|
|
44
|
-
// 操作日志
|
|
43
|
+
import('@vue2-client/pages/system/monitor/loginInfor')
|
|
44
|
+
// 操作日志
|
|
45
45
|
routerResource.operLog = () =>
|
|
46
|
-
|
|
47
|
-
// 系统问题反馈工单
|
|
46
|
+
import('@vue2-client/pages/system/monitor/operLog')
|
|
47
|
+
// 系统问题反馈工单
|
|
48
48
|
routerResource.submitTicket = () =>
|
|
49
|
-
|
|
50
|
-
// 通用服务评价
|
|
49
|
+
import('@vue2-client/pages/system/ticket')
|
|
50
|
+
// 通用服务评价
|
|
51
51
|
routerResource.ServiceReview = () =>
|
|
52
|
-
|
|
53
|
-
// 系统设置
|
|
52
|
+
import('@vue2-client/pages/ServiceReview')
|
|
53
|
+
// 系统设置
|
|
54
54
|
routerResource.settings = () =>
|
|
55
|
-
|
|
56
|
-
// AMIS示例页面
|
|
55
|
+
import('@vue2-client/pages/system/settings')
|
|
56
|
+
// AMIS示例页面
|
|
57
57
|
routerResource.amisDemo = () =>
|
|
58
|
-
|
|
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
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
+
]
|
|
87
140
|
}
|
|
88
141
|
// routerResource.example = () =>
|
|
89
142
|
// import('@vue2-client/pages/Example')
|
|
90
143
|
routerResource.XReportView = () =>
|
|
91
|
-
|
|
144
|
+
import('@vue2-client/pages/XReportView')
|
|
92
145
|
|
|
93
146
|
routerResource.XReportGrid = () =>
|
|
94
|
-
|
|
147
|
+
import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo')
|
|
95
148
|
|
|
96
149
|
routerResource.XTab = () =>
|
|
97
150
|
import('@vue2-client/base-client/components/common/XTab/XTabDemo')
|
|
98
151
|
|
|
99
152
|
console.log(process.env)
|
|
100
|
-
// 基础路由组件注册
|
|
153
|
+
// 基础路由组件注册
|
|
101
154
|
const routerMap = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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
|
+
}
|
|
133
186
|
}
|
|
134
187
|
Object.assign(routerMap, routerResource)
|
|
135
188
|
export default routerMap
|