adtec-core-package 2.0.7 → 2.0.9
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 +3 -1
- package/src/components/workflow/components/ProcessDetailComp.vue +9 -3
- package/src/components/workflow/components/ProcessInstance.vue +3 -3
- package/src/components/workflow/components/ProcessInstanceStep.vue +2 -2
- package/src/config/VxeTableConfig.ts +43 -46
- package/src/interface/ISortList.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adtec-core-package",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"@types/echarts": "^5.0.0",
|
|
19
19
|
"@vueuse/components": "^13.0.0",
|
|
20
20
|
"@vueuse/core": "^13.0.0",
|
|
21
|
+
"@vxe-ui/plugin-export-pdf": "4.2.4",
|
|
21
22
|
"@vxe-ui/plugin-export-xlsx": "4.2.1",
|
|
22
23
|
"@vxe-ui/plugin-render-element": "4.0.10",
|
|
23
24
|
"aieditor": "^1.3.4",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"element-plus": "2.8.7",
|
|
28
29
|
"exceljs": "4.4.0",
|
|
29
30
|
"jsencrypt": "^3.3.2",
|
|
31
|
+
"jspdf": "2.5.2",
|
|
30
32
|
"linq-to-ts": "^1.3.0",
|
|
31
33
|
"pinia": "^2.3.0",
|
|
32
34
|
"pinia-plugin-store": "^2.2.9",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div v-show="isEmpty" class="el-table__empty-block">
|
|
47
47
|
<span class="el-table__empty-text">暂无数据</span>
|
|
48
48
|
</div>
|
|
49
|
-
<process-instance-step v-show="!isEmpty" style="padding-top: 10px" ref="stepRef"></process-instance-step>
|
|
49
|
+
<process-instance-step @view-detail="viewDetail" :source="source" v-show="!isEmpty" style="padding-top: 10px" ref="stepRef"></process-instance-step>
|
|
50
50
|
</el-tab-pane>
|
|
51
51
|
<el-tab-pane label="流程步骤" name="1" style="height: 100%">
|
|
52
52
|
<template #label>
|
|
@@ -77,16 +77,19 @@ const props = withDefaults(
|
|
|
77
77
|
defineProps<{
|
|
78
78
|
businessId: string
|
|
79
79
|
task: IWfTaskVo
|
|
80
|
-
showTitle
|
|
80
|
+
showTitle?: boolean
|
|
81
81
|
showDescriptions: boolean
|
|
82
|
+
source?: string
|
|
82
83
|
}>(),
|
|
83
84
|
{
|
|
84
85
|
task: undefined,
|
|
85
86
|
businessId: undefined,
|
|
86
87
|
showTitle: false,
|
|
87
|
-
showDescriptions: false
|
|
88
|
+
showDescriptions: false,
|
|
89
|
+
source: ''
|
|
88
90
|
},
|
|
89
91
|
)
|
|
92
|
+
const emit = defineEmits(['viewDetail'])
|
|
90
93
|
const activeName = ref('0')
|
|
91
94
|
const loading = ref(false)
|
|
92
95
|
const bpmnRef = ref<InstanceType<typeof ProcessInstance>>()
|
|
@@ -127,6 +130,9 @@ const open = async () => {
|
|
|
127
130
|
ElMessage.warning('缺少必要参数')
|
|
128
131
|
}
|
|
129
132
|
}
|
|
133
|
+
const viewDetail = (task: IWfTaskVo) => {
|
|
134
|
+
emit('viewDetail', task)
|
|
135
|
+
}
|
|
130
136
|
watch(
|
|
131
137
|
[
|
|
132
138
|
() => props.task?.procInsId,
|
|
@@ -15,9 +15,9 @@ import type { IWfProcessInstVo } from '../../../interface/workflow/IWfTaskVo'
|
|
|
15
15
|
import frameworkUtils from '../../../utils/FrameworkUtils.ts'
|
|
16
16
|
const props = withDefaults(
|
|
17
17
|
defineProps<{
|
|
18
|
-
procDefId
|
|
19
|
-
procInstId
|
|
20
|
-
readonly
|
|
18
|
+
procDefId?: string
|
|
19
|
+
procInstId?: string
|
|
20
|
+
readonly?: boolean
|
|
21
21
|
}>(),
|
|
22
22
|
{
|
|
23
23
|
procDefId: '',
|
|
@@ -13,8 +13,8 @@ import documentApi from '../../../api/DocumentApi'
|
|
|
13
13
|
import frameworkUtils from '../../../utils/FrameworkUtils.ts'
|
|
14
14
|
const props = withDefaults(
|
|
15
15
|
defineProps<{
|
|
16
|
-
procInstId
|
|
17
|
-
source
|
|
16
|
+
procInstId?: string
|
|
17
|
+
source?: string
|
|
18
18
|
}>(),
|
|
19
19
|
{
|
|
20
20
|
procInstId: '',
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from 'vxe-table'
|
|
4
|
-
import {
|
|
5
|
-
VxeUI
|
|
6
|
-
} from 'vxe-pc-ui'
|
|
1
|
+
import { VxeGrid } from 'vxe-table'
|
|
2
|
+
import { VxeUI } from 'vxe-pc-ui'
|
|
7
3
|
|
|
8
4
|
import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element'
|
|
9
5
|
import '@vxe-ui/plugin-render-element/dist/style.css'
|
|
@@ -11,20 +7,22 @@ import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx'
|
|
|
11
7
|
import ExcelJS from 'exceljs'
|
|
12
8
|
import 'vxe-pc-ui/lib/style.css'
|
|
13
9
|
import '../css/vxeTableUI/all.scss'
|
|
10
|
+
import VxeUIPluginExportPDF from '@vxe-ui/plugin-export-pdf'
|
|
14
11
|
// 导入默认的语言
|
|
15
12
|
import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
|
|
16
13
|
|
|
17
14
|
/**
|
|
18
15
|
* 局部初始化 vxe-table 插件与配置
|
|
19
16
|
*/
|
|
20
|
-
export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
17
|
+
export function initVxeTableInPage(enableExcel: boolean = false, enablePdf: boolean = false) {
|
|
21
18
|
// 设置语言
|
|
22
19
|
VxeUI.setI18n('zh-CN', zhCN)
|
|
23
20
|
VxeUI.setLanguage('zh-CN')
|
|
24
21
|
|
|
25
22
|
// 局部注册插件
|
|
26
23
|
VxeUI.use(VxeUIPluginRenderElement)
|
|
27
|
-
VxeUI.use(VxeUIPluginExportXLSX, { ExcelJS })
|
|
24
|
+
if (enableExcel) VxeUI.use(VxeUIPluginExportXLSX, { ExcelJS })
|
|
25
|
+
if (enablePdf) VxeUI.use(VxeUIPluginExportPDF, { })
|
|
28
26
|
|
|
29
27
|
// 设置表格配置(可复制你在 VxeTableConfig.ts 中的配置)
|
|
30
28
|
VxeUI.setConfig({
|
|
@@ -38,25 +36,25 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
38
36
|
showFooterOverflow: true,
|
|
39
37
|
cellConfig: {},
|
|
40
38
|
headerCellConfig: {
|
|
41
|
-
height: 41
|
|
39
|
+
height: 41,
|
|
42
40
|
},
|
|
43
41
|
resizeConfig: {
|
|
44
|
-
refreshDelay: 20
|
|
42
|
+
refreshDelay: 20,
|
|
45
43
|
},
|
|
46
44
|
resizableConfig: {
|
|
47
45
|
dragMode: 'auto',
|
|
48
46
|
showDragTip: false,
|
|
49
47
|
isSyncAutoHeight: true,
|
|
50
48
|
isSyncAutoWidth: true,
|
|
51
|
-
minHeight: 18
|
|
49
|
+
minHeight: 18,
|
|
52
50
|
},
|
|
53
51
|
columnDragConfig: {
|
|
54
52
|
showIcon: true,
|
|
55
53
|
showGuidesStatus: false,
|
|
56
|
-
showDragTip: false
|
|
54
|
+
showDragTip: false,
|
|
57
55
|
},
|
|
58
56
|
checkboxConfig: {
|
|
59
|
-
showHeader:true,
|
|
57
|
+
showHeader: true,
|
|
60
58
|
// trigger: 'default',
|
|
61
59
|
strict: true,
|
|
62
60
|
highlight: false,
|
|
@@ -68,7 +66,7 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
68
66
|
autoPos: true,
|
|
69
67
|
message: 'inline',
|
|
70
68
|
msgMode: 'single',
|
|
71
|
-
theme: 'beautify'
|
|
69
|
+
theme: 'beautify',
|
|
72
70
|
},
|
|
73
71
|
columnConfig: {
|
|
74
72
|
maxFixedSize: 4,
|
|
@@ -76,13 +74,13 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
76
74
|
},
|
|
77
75
|
tooltipConfig: {
|
|
78
76
|
enterable: true,
|
|
79
|
-
theme: 'light'
|
|
77
|
+
theme: 'light',
|
|
80
78
|
},
|
|
81
79
|
rowConfig: {
|
|
82
80
|
isCurrent: true,
|
|
83
81
|
},
|
|
84
82
|
footerCellConfig: {
|
|
85
|
-
height: 'unset'
|
|
83
|
+
height: 'unset',
|
|
86
84
|
},
|
|
87
85
|
// menuConfig: {
|
|
88
86
|
// visibleMethod () {}
|
|
@@ -102,14 +100,14 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
102
100
|
mask: true,
|
|
103
101
|
lockView: true,
|
|
104
102
|
resize: true,
|
|
105
|
-
escClosable: true
|
|
103
|
+
escClosable: true,
|
|
106
104
|
},
|
|
107
105
|
drawerOptions: {
|
|
108
106
|
mask: true,
|
|
109
107
|
lockView: true,
|
|
110
108
|
escClosable: true,
|
|
111
|
-
resize: true
|
|
112
|
-
}
|
|
109
|
+
resize: true,
|
|
110
|
+
},
|
|
113
111
|
},
|
|
114
112
|
sortConfig: {
|
|
115
113
|
// remote: false,
|
|
@@ -119,14 +117,14 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
119
117
|
showIcon: true,
|
|
120
118
|
allowClear: true,
|
|
121
119
|
allowBtn: true,
|
|
122
|
-
iconLayout: 'vertical'
|
|
120
|
+
iconLayout: 'vertical',
|
|
123
121
|
},
|
|
124
122
|
filterConfig: {
|
|
125
123
|
// remote: false,
|
|
126
124
|
// filterMethod: null,
|
|
127
125
|
// destroyOnClose: false,
|
|
128
126
|
// isEvery: false,
|
|
129
|
-
showIcon: true
|
|
127
|
+
showIcon: true,
|
|
130
128
|
},
|
|
131
129
|
treeConfig: {
|
|
132
130
|
rowField: 'id',
|
|
@@ -138,41 +136,41 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
138
136
|
transform: true,
|
|
139
137
|
iconOpen: 'vxe-icon-square-minus',
|
|
140
138
|
iconClose: 'vxe-icon-square-plus',
|
|
141
|
-
showIcon: true
|
|
139
|
+
showIcon: true,
|
|
142
140
|
},
|
|
143
141
|
expandConfig: {
|
|
144
142
|
// trigger: 'default',
|
|
145
143
|
showIcon: true,
|
|
146
|
-
mode: 'fixed'
|
|
144
|
+
mode: 'fixed',
|
|
147
145
|
},
|
|
148
146
|
editConfig: {
|
|
149
147
|
// mode: 'cell',
|
|
150
148
|
showIcon: true,
|
|
151
149
|
showAsterisk: true,
|
|
152
|
-
autoFocus: true
|
|
150
|
+
autoFocus: true,
|
|
153
151
|
},
|
|
154
152
|
importConfig: {
|
|
155
153
|
_typeMaps: {
|
|
156
154
|
csv: 1,
|
|
157
155
|
html: 1,
|
|
158
156
|
xml: 1,
|
|
159
|
-
txt: 1
|
|
160
|
-
}
|
|
157
|
+
txt: 1,
|
|
158
|
+
},
|
|
161
159
|
},
|
|
162
160
|
exportConfig: {
|
|
163
161
|
_typeMaps: {
|
|
164
162
|
csv: 1,
|
|
165
163
|
html: 1,
|
|
166
164
|
xml: 1,
|
|
167
|
-
txt: 1
|
|
168
|
-
}
|
|
165
|
+
txt: 1,
|
|
166
|
+
},
|
|
169
167
|
},
|
|
170
168
|
printConfig: {},
|
|
171
169
|
mouseConfig: {
|
|
172
|
-
extension: true
|
|
170
|
+
extension: true,
|
|
173
171
|
},
|
|
174
172
|
keyboardConfig: {
|
|
175
|
-
isEsc: true
|
|
173
|
+
isEsc: true,
|
|
176
174
|
},
|
|
177
175
|
areaConfig: {
|
|
178
176
|
autoClear: true,
|
|
@@ -182,44 +180,44 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
182
180
|
top: true,
|
|
183
181
|
left: true,
|
|
184
182
|
bottom: true,
|
|
185
|
-
right: true
|
|
186
|
-
}
|
|
183
|
+
right: true,
|
|
184
|
+
},
|
|
187
185
|
},
|
|
188
186
|
clipConfig: {
|
|
189
187
|
isCopy: true,
|
|
190
188
|
isCut: true,
|
|
191
|
-
isPaste: true
|
|
189
|
+
isPaste: true,
|
|
192
190
|
},
|
|
193
191
|
fnrConfig: {
|
|
194
192
|
isFind: true,
|
|
195
|
-
isReplace: true
|
|
193
|
+
isReplace: true,
|
|
196
194
|
},
|
|
197
195
|
virtualXConfig: {
|
|
198
196
|
enabled: true,
|
|
199
197
|
gt: 60,
|
|
200
198
|
preSize: 0,
|
|
201
|
-
oSize: 1
|
|
199
|
+
oSize: 1,
|
|
202
200
|
},
|
|
203
201
|
virtualYConfig: {
|
|
204
202
|
enabled: true,
|
|
205
203
|
gt: 100,
|
|
206
204
|
preSize: 1,
|
|
207
|
-
oSize: 2
|
|
205
|
+
oSize: 2,
|
|
208
206
|
},
|
|
209
207
|
scrollbarConfig: {
|
|
210
208
|
// width: 0,
|
|
211
209
|
// height: 0
|
|
212
|
-
}
|
|
210
|
+
},
|
|
213
211
|
},
|
|
214
212
|
grid: {
|
|
215
213
|
formConfig: {
|
|
216
|
-
enabled: true
|
|
214
|
+
enabled: true,
|
|
217
215
|
},
|
|
218
216
|
pagerConfig: {
|
|
219
|
-
enabled: true
|
|
217
|
+
enabled: true,
|
|
220
218
|
},
|
|
221
219
|
toolbarConfig: {
|
|
222
|
-
enabled: true
|
|
220
|
+
enabled: true,
|
|
223
221
|
},
|
|
224
222
|
columnConfig: {
|
|
225
223
|
maxFixedSize: 4,
|
|
@@ -234,16 +232,15 @@ export function initVxeTableInPage(enableExcel: boolean = false) {
|
|
|
234
232
|
list: null,
|
|
235
233
|
result: 'result',
|
|
236
234
|
total: 'page.total',
|
|
237
|
-
message: 'message'
|
|
238
|
-
}
|
|
239
|
-
}
|
|
235
|
+
message: 'message',
|
|
236
|
+
},
|
|
237
|
+
},
|
|
240
238
|
},
|
|
241
|
-
toolbar: {
|
|
242
|
-
}
|
|
239
|
+
toolbar: {},
|
|
243
240
|
})
|
|
244
241
|
}
|
|
245
242
|
|
|
246
243
|
// 导出组件供子应用局部注册
|
|
247
244
|
export const components = {
|
|
248
|
-
VxeGrid
|
|
245
|
+
VxeGrid,
|
|
249
246
|
}
|