workflow-editor 0.9.67-dw → 0.9.67
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/lib/workflow-editor.css +1 -1
- package/lib/workflow-editor.umd.min.js +10 -10
- package/package.json +2 -2
- package/packages/index.js +34 -0
- package/packages/plugins/formValidatorUtil.js +528 -0
- package/packages/plugins/index.js +8 -0
- package/packages/workflow-editor/index.js +14 -0
- package/packages/workflow-editor/src/api.js +7 -0
- package/packages/workflow-editor/src/assets/wf-editor-icons.js +2 -0
- package/packages/workflow-editor/src/constant.js +8 -0
- package/packages/workflow-editor/src/json-object-templates/copy-task.js +67 -0
- package/packages/workflow-editor/src/json-object-templates/decision.js +11 -0
- package/packages/workflow-editor/src/json-object-templates/end.js +14 -0
- package/packages/workflow-editor/src/json-object-templates/fork.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/human-decision.js +9 -0
- package/packages/workflow-editor/src/json-object-templates/human-task.js +199 -0
- package/packages/workflow-editor/src/json-object-templates/join.js +10 -0
- package/packages/workflow-editor/src/json-object-templates/process.js +98 -0
- package/packages/workflow-editor/src/json-object-templates/start.js +13 -0
- package/packages/workflow-editor/src/json-object-templates/subprocess.js +30 -0
- package/packages/workflow-editor/src/json-object-templates/transition.js +26 -0
- package/packages/workflow-editor/src/main/admin-save-dialog.vue +66 -0
- package/packages/workflow-editor/src/main/canvas.vue +479 -0
- package/packages/workflow-editor/src/main/context-menu.vue +132 -0
- package/packages/workflow-editor/src/main/icon-svg.vue +32 -0
- package/packages/workflow-editor/src/main/selection-region.vue +66 -0
- package/packages/workflow-editor/src/main/tache-history-tooltip.vue +38 -0
- package/packages/workflow-editor/src/main/tache-name-input.vue +19 -0
- package/packages/workflow-editor/src/main/tache-subprocess-history-dialog.vue +35 -0
- package/packages/workflow-editor/src/main/toolbox.vue +60 -0
- package/packages/workflow-editor/src/main/wf-history-canvas.vue +302 -0
- package/packages/workflow-editor/src/process-json.js +622 -0
- package/packages/workflow-editor/src/process-service.js +31 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition-utils.js +531 -0
- package/packages/workflow-editor/src/properties-editors/common/additional-condition.vue +276 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields-utils.js +34 -0
- package/packages/workflow-editor/src/properties-editors/common/auto-filled-fields.vue +239 -0
- package/packages/workflow-editor/src/properties-editors/common/common-notice-tool.vue +47 -0
- package/packages/workflow-editor/src/properties-editors/common/common-user-condition.vue +241 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields-utils.js +23 -0
- package/packages/workflow-editor/src/properties-editors/common/form-fields.vue +116 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-input.vue +75 -0
- package/packages/workflow-editor/src/properties-editors/common/i18n-set-dialog.vue +125 -0
- package/packages/workflow-editor/src/properties-editors/common/notice.vue +98 -0
- package/packages/workflow-editor/src/properties-editors/common/reminder.vue +179 -0
- package/packages/workflow-editor/src/properties-editors/common/select-mail-template.vue +83 -0
- package/packages/workflow-editor/src/properties-editors/common/standard-fields.vue +65 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree-inline.vue +355 -0
- package/packages/workflow-editor/src/properties-editors/common/system-role-tree.vue +63 -0
- package/packages/workflow-editor/src/properties-editors/common/task-title.vue +148 -0
- package/packages/workflow-editor/src/properties-editors/common/transactor-settings.vue +233 -0
- package/packages/workflow-editor/src/properties-editors/common/user-selection.vue +386 -0
- package/packages/workflow-editor/src/properties-editors/common/value-selection-dialog.vue +209 -0
- package/packages/workflow-editor/src/properties-editors/common/variables.vue +135 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/basic-properties.vue +90 -0
- package/packages/workflow-editor/src/properties-editors/copy-task/permission-settings.vue +155 -0
- package/packages/workflow-editor/src/properties-editors/copy-task.vue +80 -0
- package/packages/workflow-editor/src/properties-editors/decision.vue +90 -0
- package/packages/workflow-editor/src/properties-editors/fork.vue +72 -0
- package/packages/workflow-editor/src/properties-editors/human-decision.vue +44 -0
- package/packages/workflow-editor/src/properties-editors/human-task/additional-condition-dialog.vue +60 -0
- package/packages/workflow-editor/src/properties-editors/human-task/basic-properties.vue +156 -0
- package/packages/workflow-editor/src/properties-editors/human-task/componentsConfigUtil.js +291 -0
- package/packages/workflow-editor/src/properties-editors/human-task/custom-actions.vue +249 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-field-setting.vue +392 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-child-fields.vue +241 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-field-selection.vue +220 -0
- package/packages/workflow-editor/src/properties-editors/human-task/editable-fields.vue +204 -0
- package/packages/workflow-editor/src/properties-editors/human-task/events.vue +59 -0
- package/packages/workflow-editor/src/properties-editors/human-task/permission-settings.vue +207 -0
- package/packages/workflow-editor/src/properties-editors/human-task/selection-conditions.vue +390 -0
- package/packages/workflow-editor/src/properties-editors/human-task.vue +103 -0
- package/packages/workflow-editor/src/properties-editors/join.vue +44 -0
- package/packages/workflow-editor/src/properties-editors/process/basic-properties.vue +273 -0
- package/packages/workflow-editor/src/properties-editors/process/events.vue +76 -0
- package/packages/workflow-editor/src/properties-editors/process/notice-settings.vue +60 -0
- package/packages/workflow-editor/src/properties-editors/process/parameter-settings.vue +95 -0
- package/packages/workflow-editor/src/properties-editors/process/permission-settings.vue +28 -0
- package/packages/workflow-editor/src/properties-editors/process/selectPage.vue +81 -0
- package/packages/workflow-editor/src/properties-editors/process.vue +109 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/basic-properties.vue +187 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/events.vue +26 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/field-mappings.vue +206 -0
- package/packages/workflow-editor/src/properties-editors/subprocess/transactor-settings.vue +64 -0
- package/packages/workflow-editor/src/properties-editors/subprocess.vue +79 -0
- package/packages/workflow-editor/src/properties-editors/transition/basic-properties.vue +53 -0
- package/packages/workflow-editor/src/properties-editors/transition.vue +74 -0
- package/packages/workflow-editor/src/properties-editors/user-condition.js +177 -0
- package/packages/workflow-editor/src/store/getters.js +27 -0
- package/packages/workflow-editor/src/store/workflow-editor.js +125 -0
- package/packages/workflow-editor/src/taches/common-methods.js +21 -0
- package/packages/workflow-editor/src/taches/copy-task.vue +99 -0
- package/packages/workflow-editor/src/taches/custom-task.vue +88 -0
- package/packages/workflow-editor/src/taches/decision.vue +102 -0
- package/packages/workflow-editor/src/taches/end.vue +76 -0
- package/packages/workflow-editor/src/taches/fork.vue +102 -0
- package/packages/workflow-editor/src/taches/human-decision.vue +102 -0
- package/packages/workflow-editor/src/taches/human-task.vue +113 -0
- package/packages/workflow-editor/src/taches/join.vue +91 -0
- package/packages/workflow-editor/src/taches/joint.vue +177 -0
- package/packages/workflow-editor/src/taches/start.vue +76 -0
- package/packages/workflow-editor/src/taches/subprocess.vue +99 -0
- package/packages/workflow-editor/src/taches/tache-resizer.vue +80 -0
- package/packages/workflow-editor/src/transitions/broken-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/curve-line.vue +91 -0
- package/packages/workflow-editor/src/transitions/straight-line.vue +26 -0
- package/packages/workflow-editor/src/transitions/transition.vue +212 -0
- package/packages/workflow-editor/src/transitions/virtual-transition.vue +43 -0
- package/packages/workflow-editor/src/util.js +493 -0
- package/packages/workflow-editor/src/workflow-editor.vue +605 -0
- package/packages/workflow-editor/src/workflow-history.vue +153 -0
- package/src/i18n/i18n.js +1 -1
- package/src/i18n/langs/cn.js +6 -1
- package/src/i18n/langs/en.js +6 -1
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
const process = {
|
|
2
|
+
/*
|
|
3
|
+
* 流程属性xml属性
|
|
4
|
+
*/
|
|
5
|
+
process: {
|
|
6
|
+
attr: {
|
|
7
|
+
name: '流程名称',
|
|
8
|
+
code: 'code'
|
|
9
|
+
},
|
|
10
|
+
properties: {
|
|
11
|
+
basicProperties: {
|
|
12
|
+
admin: '刘/测试公司[liudongxia~~branchCode]',
|
|
13
|
+
formVersion: 2,
|
|
14
|
+
formCode: 'ES_EXPENSE_REPORT',
|
|
15
|
+
processTypeCode: 'expense',
|
|
16
|
+
systemCode: 'ems',
|
|
17
|
+
creator: 'test.systemAdmin[branchCode]',
|
|
18
|
+
creatorName: 'systemAdmin/有限公司',
|
|
19
|
+
state: '',
|
|
20
|
+
customType: '任务自定义类别',
|
|
21
|
+
branchName: '有限公司',
|
|
22
|
+
branchCode: 'test',
|
|
23
|
+
processTypeId: 18,
|
|
24
|
+
systemId: 33
|
|
25
|
+
},
|
|
26
|
+
permissionSettings: {
|
|
27
|
+
viewFlowHistory: '${instanceCreator} condition.operator.or ${allHandleTransactors} condition.operator.or ${processAdmin}',
|
|
28
|
+
viewSubscribeResult: '',
|
|
29
|
+
viewVoteResult: ''
|
|
30
|
+
},
|
|
31
|
+
reminder: {
|
|
32
|
+
dueDate: 1,
|
|
33
|
+
dueTimeUnit: 'day',
|
|
34
|
+
repeat: 1,
|
|
35
|
+
containTransferUser: false,
|
|
36
|
+
containNoticeUser: false,
|
|
37
|
+
remindType: 'mail',
|
|
38
|
+
timeUnit: 'day',
|
|
39
|
+
remindTimes: 1,
|
|
40
|
+
noticeType: '',
|
|
41
|
+
noticeUserCondition: '(${user} operator.text.eq "${instanceCreatorName}" condition.operator.or ${department} operator.text.eq "${instanceCreatorDepartment}") condition.operator.or ${department} operator.text.eq "子集团[department-2]"',
|
|
42
|
+
transferUserCondition: ''
|
|
43
|
+
},
|
|
44
|
+
parameterSettings: {
|
|
45
|
+
doTask: {
|
|
46
|
+
url: '/expense-report/process-task.htm',
|
|
47
|
+
parameterName: 'taskId'
|
|
48
|
+
},
|
|
49
|
+
viewForm: {
|
|
50
|
+
url: '/expense-report/input.htm',
|
|
51
|
+
parameterName: 'id'
|
|
52
|
+
},
|
|
53
|
+
startProcess: {
|
|
54
|
+
url: '/engine/delegate-main!view.htm',
|
|
55
|
+
parameterName: 'processName',
|
|
56
|
+
parameterValue: '报销'
|
|
57
|
+
},
|
|
58
|
+
handleEmergency: {
|
|
59
|
+
url: '/expense-report/urgenDonePage.htm',
|
|
60
|
+
parameterName: 'id'
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
events: {
|
|
64
|
+
event: [
|
|
65
|
+
'START_INSTANCE',
|
|
66
|
+
'END_INSTANCE'
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
},
|
|
70
|
+
variables: {
|
|
71
|
+
variable: [
|
|
72
|
+
{
|
|
73
|
+
name: 'key1',
|
|
74
|
+
value: 'value1'
|
|
75
|
+
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'key2',
|
|
79
|
+
value: 'value2'
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
/*
|
|
85
|
+
* 开始环节xml属性
|
|
86
|
+
*/
|
|
87
|
+
start: {
|
|
88
|
+
attr: {
|
|
89
|
+
id: 'start1'
|
|
90
|
+
},
|
|
91
|
+
g: {
|
|
92
|
+
x: 50,
|
|
93
|
+
y: 50,
|
|
94
|
+
width: 48,
|
|
95
|
+
height: 48
|
|
96
|
+
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
/*
|
|
100
|
+
* 任务环节xml属性
|
|
101
|
+
*/
|
|
102
|
+
humanTask: {
|
|
103
|
+
attr: {
|
|
104
|
+
id: 't1',
|
|
105
|
+
name: '新任务'
|
|
106
|
+
},
|
|
107
|
+
g: {
|
|
108
|
+
x: 150,
|
|
109
|
+
y: 50,
|
|
110
|
+
width: 80,
|
|
111
|
+
height: 40
|
|
112
|
+
|
|
113
|
+
},
|
|
114
|
+
basicProperties: {
|
|
115
|
+
processingMode: {
|
|
116
|
+
type: 'EDIT', // APPROVE, COUNTERSIGN, VOTE
|
|
117
|
+
passRate: 0,
|
|
118
|
+
moreTransactor: false,
|
|
119
|
+
actions: {
|
|
120
|
+
action: [
|
|
121
|
+
{
|
|
122
|
+
type: 'SAVE',
|
|
123
|
+
label: '保存',
|
|
124
|
+
visible: true
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
taskCode: '',
|
|
130
|
+
taskTitle: '',
|
|
131
|
+
remark: '',
|
|
132
|
+
mailNotice: false,
|
|
133
|
+
taskUrl: ''
|
|
134
|
+
},
|
|
135
|
+
transactorSettings: {
|
|
136
|
+
userCondition: '${user} operator.text.eq "用户3/测试公司[user3~~test]"',
|
|
137
|
+
additionalCondition: {
|
|
138
|
+
onlyInCreatorDepartment: false,
|
|
139
|
+
withCreatorDepartment: false,
|
|
140
|
+
selectOneFromMultiple: false
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
permissionSettings: {
|
|
144
|
+
editForm: {
|
|
145
|
+
permission: true,
|
|
146
|
+
field: [
|
|
147
|
+
{
|
|
148
|
+
name: 'name',
|
|
149
|
+
constraintRule: 'REQUIRED',
|
|
150
|
+
condition: '${field[code]} operator.text.eq ddd'
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'code',
|
|
154
|
+
constraintRule: 'READ_ONLY',
|
|
155
|
+
condition: ''
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
viewOpinion: {
|
|
160
|
+
permission: false,
|
|
161
|
+
condition: ''
|
|
162
|
+
},
|
|
163
|
+
editOpinion: {
|
|
164
|
+
permission: false,
|
|
165
|
+
condition: ''
|
|
166
|
+
},
|
|
167
|
+
requireOpinion: {
|
|
168
|
+
permission: false,
|
|
169
|
+
condition: ''
|
|
170
|
+
},
|
|
171
|
+
viewMeetingResult: {
|
|
172
|
+
permission: false,
|
|
173
|
+
condition: ''
|
|
174
|
+
},
|
|
175
|
+
viewVoteResult: {
|
|
176
|
+
permission: false,
|
|
177
|
+
condition: ''
|
|
178
|
+
},
|
|
179
|
+
viewFlowHistory: {
|
|
180
|
+
permission: false,
|
|
181
|
+
condition: ''
|
|
182
|
+
},
|
|
183
|
+
printForm: {
|
|
184
|
+
permission: false,
|
|
185
|
+
condition: ''
|
|
186
|
+
},
|
|
187
|
+
officialText: {
|
|
188
|
+
permission: true, // 控制是否设置正文权限,false时就没有后续的create,edit等权限设置了
|
|
189
|
+
create: {
|
|
190
|
+
permission: false,
|
|
191
|
+
condition: '',
|
|
192
|
+
officalTemplate: ''
|
|
193
|
+
},
|
|
194
|
+
edit: {
|
|
195
|
+
permission: false,
|
|
196
|
+
condition: '',
|
|
197
|
+
retainTrace: false,
|
|
198
|
+
viewTrace: false
|
|
199
|
+
},
|
|
200
|
+
delete: {
|
|
201
|
+
permission: false,
|
|
202
|
+
condition: ''
|
|
203
|
+
},
|
|
204
|
+
view: {
|
|
205
|
+
permission: false,
|
|
206
|
+
condition: '',
|
|
207
|
+
viewTrace: false
|
|
208
|
+
},
|
|
209
|
+
download: {
|
|
210
|
+
permission: false,
|
|
211
|
+
condition: ''
|
|
212
|
+
},
|
|
213
|
+
print: {
|
|
214
|
+
permission: false,
|
|
215
|
+
condition: ''
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
attachment: {
|
|
219
|
+
permission: true, // 控制是否设置附件权限,false时就没有后面的add,delete等权限设置了
|
|
220
|
+
add: {
|
|
221
|
+
permission: false,
|
|
222
|
+
condition: ''
|
|
223
|
+
},
|
|
224
|
+
delete: {
|
|
225
|
+
permission: false,
|
|
226
|
+
condition: ''
|
|
227
|
+
},
|
|
228
|
+
download: {
|
|
229
|
+
permission: false,
|
|
230
|
+
condition: ''
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
deleteInstance: {
|
|
234
|
+
userCondition: ''
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
autoFilledFields: {
|
|
238
|
+
field: [
|
|
239
|
+
{
|
|
240
|
+
name: 'name',
|
|
241
|
+
value: '${currentTime}',
|
|
242
|
+
separator: '',
|
|
243
|
+
fillType: 'cover',
|
|
244
|
+
fillTime: 'before'
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: 'code',
|
|
248
|
+
value: 'aaaa',
|
|
249
|
+
separator: '',
|
|
250
|
+
fillType: 'append',
|
|
251
|
+
fillTime: 'after'
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
reminder: {
|
|
256
|
+
dueDate: 1,
|
|
257
|
+
dueTimeUnit: 'day',
|
|
258
|
+
repeat: 1,
|
|
259
|
+
containTransferUser: false,
|
|
260
|
+
containNoticeUser: false,
|
|
261
|
+
remindType: 'mail',
|
|
262
|
+
timeUnit: 'day',
|
|
263
|
+
remindTimes: 0,
|
|
264
|
+
noticeType: '',
|
|
265
|
+
noticeUserCondition: '',
|
|
266
|
+
transferUserCondition: ''
|
|
267
|
+
},
|
|
268
|
+
events: {
|
|
269
|
+
beforeSubmit: {
|
|
270
|
+
url: '/test/',
|
|
271
|
+
errorMessage: '服务器开小差了'
|
|
272
|
+
},
|
|
273
|
+
afterComplete: true
|
|
274
|
+
},
|
|
275
|
+
variables: {
|
|
276
|
+
variable: [
|
|
277
|
+
{
|
|
278
|
+
name: 'key1',
|
|
279
|
+
value: 'value1'
|
|
280
|
+
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: 'key2',
|
|
284
|
+
value: 'value3'
|
|
285
|
+
}
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
/*
|
|
290
|
+
* 子流程环节xml属性
|
|
291
|
+
*/
|
|
292
|
+
subprocess: {
|
|
293
|
+
attr: {
|
|
294
|
+
id: 't2',
|
|
295
|
+
name: '子流程'
|
|
296
|
+
},
|
|
297
|
+
g: {
|
|
298
|
+
x: 250,
|
|
299
|
+
y: 50,
|
|
300
|
+
width: 80,
|
|
301
|
+
height: 40
|
|
302
|
+
|
|
303
|
+
},
|
|
304
|
+
processCode: '',
|
|
305
|
+
processVersion: '',
|
|
306
|
+
events: {
|
|
307
|
+
beforeStart: '',
|
|
308
|
+
end: false
|
|
309
|
+
},
|
|
310
|
+
transactorSettings: {
|
|
311
|
+
userCondition: '${user} operator.text.eq "用户3/测试公司[user3~~test]"',
|
|
312
|
+
additionalCondition: {
|
|
313
|
+
onlyInCreatorDepartment: false,
|
|
314
|
+
withCreatorDepartment: false,
|
|
315
|
+
selectOneFromMultiple: false
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
parameters: {
|
|
319
|
+
field: [
|
|
320
|
+
{
|
|
321
|
+
source: '',
|
|
322
|
+
target: ''
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
result: {
|
|
327
|
+
field: [
|
|
328
|
+
{
|
|
329
|
+
source: '',
|
|
330
|
+
target: ''
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
},
|
|
336
|
+
/*
|
|
337
|
+
* 条件判断环节xml属性
|
|
338
|
+
*/
|
|
339
|
+
decision: {
|
|
340
|
+
attr: {
|
|
341
|
+
id: 't3',
|
|
342
|
+
name: '判断'
|
|
343
|
+
},
|
|
344
|
+
g: {
|
|
345
|
+
x: 200,
|
|
346
|
+
y: 200,
|
|
347
|
+
width: 48,
|
|
348
|
+
height: 48
|
|
349
|
+
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
/*
|
|
353
|
+
* 自定义环节xml属性 暂不考虑
|
|
354
|
+
|
|
355
|
+
customTache:{
|
|
356
|
+
java:{
|
|
357
|
+
name:'',
|
|
358
|
+
g: {
|
|
359
|
+
x: 50,
|
|
360
|
+
y:50,
|
|
361
|
+
width:80,
|
|
362
|
+
height:40
|
|
363
|
+
|
|
364
|
+
},
|
|
365
|
+
method:'java',
|
|
366
|
+
class:'',
|
|
367
|
+
lang:'',
|
|
368
|
+
expr:'',
|
|
369
|
+
var:'',
|
|
370
|
+
}
|
|
371
|
+
},*/
|
|
372
|
+
|
|
373
|
+
/*
|
|
374
|
+
* 分支环节xml属性
|
|
375
|
+
*/
|
|
376
|
+
fork: {
|
|
377
|
+
attr: {
|
|
378
|
+
id: 't4',
|
|
379
|
+
name: '并行分支'
|
|
380
|
+
},
|
|
381
|
+
g: {
|
|
382
|
+
x: 350,
|
|
383
|
+
y: 50,
|
|
384
|
+
width: 48,
|
|
385
|
+
height: 48
|
|
386
|
+
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
/*
|
|
390
|
+
* 汇聚环节xml属性
|
|
391
|
+
*/
|
|
392
|
+
join: {
|
|
393
|
+
attr: {
|
|
394
|
+
id: 't5',
|
|
395
|
+
name: '汇聚'
|
|
396
|
+
},
|
|
397
|
+
g: {
|
|
398
|
+
x: 450,
|
|
399
|
+
y: 50,
|
|
400
|
+
width: 48,
|
|
401
|
+
height: 48
|
|
402
|
+
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
/*
|
|
406
|
+
* 人工判断环节xml属性
|
|
407
|
+
*/
|
|
408
|
+
humanDecision: {
|
|
409
|
+
attr: {
|
|
410
|
+
id: 't6',
|
|
411
|
+
name: '人工判断'
|
|
412
|
+
},
|
|
413
|
+
g: {
|
|
414
|
+
x: 50,
|
|
415
|
+
y: 150,
|
|
416
|
+
width: 48,
|
|
417
|
+
height: 48
|
|
418
|
+
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
/*
|
|
422
|
+
* 自动环节xml属性 暂不考虑
|
|
423
|
+
|
|
424
|
+
autoTache:{
|
|
425
|
+
attr:{
|
|
426
|
+
name:'',
|
|
427
|
+
id:''
|
|
428
|
+
},
|
|
429
|
+
g: {
|
|
430
|
+
x: 50,
|
|
431
|
+
y:50,
|
|
432
|
+
width:80,
|
|
433
|
+
height:40
|
|
434
|
+
|
|
435
|
+
},
|
|
436
|
+
},*/
|
|
437
|
+
/*
|
|
438
|
+
* 抄送环节xml属性
|
|
439
|
+
*/
|
|
440
|
+
copyTask: {
|
|
441
|
+
attr: {
|
|
442
|
+
id: 't7',
|
|
443
|
+
name: '抄送环节'
|
|
444
|
+
},
|
|
445
|
+
g: {
|
|
446
|
+
x: 50,
|
|
447
|
+
y: 250,
|
|
448
|
+
width: 80,
|
|
449
|
+
height: 40
|
|
450
|
+
|
|
451
|
+
},
|
|
452
|
+
basicProperties: {
|
|
453
|
+
taskTitle: '',
|
|
454
|
+
remark: '',
|
|
455
|
+
taskUrl: ''
|
|
456
|
+
},
|
|
457
|
+
transactorSettings: {
|
|
458
|
+
userCondition: '${user} operator.text.eq 用户3/测试公司[user3~~test]',
|
|
459
|
+
moreTransactor: false,
|
|
460
|
+
additionalCondition: {
|
|
461
|
+
onlyInCreatorDepartment: false,
|
|
462
|
+
withCreatorDepartment: false,
|
|
463
|
+
selectOneFromMultiple: false
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
permissionSettings: {
|
|
467
|
+
viewOpinion: {
|
|
468
|
+
permission: false,
|
|
469
|
+
condition: ''
|
|
470
|
+
},
|
|
471
|
+
viewMeetingResult: {
|
|
472
|
+
permission: false,
|
|
473
|
+
condition: ''
|
|
474
|
+
},
|
|
475
|
+
viewVoteResult: {
|
|
476
|
+
permission: false,
|
|
477
|
+
condition: ''
|
|
478
|
+
},
|
|
479
|
+
viewFlowHistory: {
|
|
480
|
+
permission: false,
|
|
481
|
+
condition: ''
|
|
482
|
+
},
|
|
483
|
+
printForm: {
|
|
484
|
+
permission: false,
|
|
485
|
+
condition: ''
|
|
486
|
+
},
|
|
487
|
+
officialText: {
|
|
488
|
+
permission: false // 控制是否设置正文权限,false时就没有后续的create,edit等权限设置了
|
|
489
|
+
},
|
|
490
|
+
attachment: {
|
|
491
|
+
permission: false // 控制是否设置附件权限,false时就没有后面的add,delete等权限设置了
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
/*
|
|
496
|
+
* 特殊结束环节xml属性 暂不考虑
|
|
497
|
+
|
|
498
|
+
specialEnd:{
|
|
499
|
+
state:{
|
|
500
|
+
name:'',
|
|
501
|
+
on:{
|
|
502
|
+
event:start,
|
|
503
|
+
eventListener:{
|
|
504
|
+
class:com.norteksoft.wf.engine.core.ProcessEndListener
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
transition:{
|
|
508
|
+
name:,
|
|
509
|
+
to:,
|
|
510
|
+
extend:{
|
|
511
|
+
graphicInfor:{
|
|
512
|
+
fromJoint:bottom,
|
|
513
|
+
toJoint:up,
|
|
514
|
+
coordinate:234,238:332,336:234,277,100,20,
|
|
515
|
+
lineType:0
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
end:{
|
|
521
|
+
name:,
|
|
522
|
+
g:
|
|
523
|
+
}
|
|
524
|
+
},*/
|
|
525
|
+
/*
|
|
526
|
+
* 标准流向xml属性
|
|
527
|
+
*/
|
|
528
|
+
transition: [{
|
|
529
|
+
attr: {
|
|
530
|
+
id: 's1',
|
|
531
|
+
from: 't1',
|
|
532
|
+
to: 't3'
|
|
533
|
+
},
|
|
534
|
+
g: {
|
|
535
|
+
fromJoint: 'bottom',
|
|
536
|
+
toJoint: 'top',
|
|
537
|
+
coordinate: '640,182:574,202:607,192,80,50',
|
|
538
|
+
lineType: 0
|
|
539
|
+
},
|
|
540
|
+
basicProperties: {
|
|
541
|
+
remark: ''
|
|
542
|
+
}
|
|
543
|
+
}, {
|
|
544
|
+
attr: {
|
|
545
|
+
id: 's2',
|
|
546
|
+
from: 't3',
|
|
547
|
+
to: 't1'
|
|
548
|
+
},
|
|
549
|
+
g: {
|
|
550
|
+
fromJoint: 'right',
|
|
551
|
+
toJoint: 'right',
|
|
552
|
+
coordinate: '640,182:574,202:607,192,80,50',
|
|
553
|
+
lineType: 0
|
|
554
|
+
},
|
|
555
|
+
|
|
556
|
+
basicProperties: {
|
|
557
|
+
remark: '流向上显示的名字',
|
|
558
|
+
isOriginalUser: false,
|
|
559
|
+
condition: '${field[name] operator.text.eq nnnnnn'
|
|
560
|
+
},
|
|
561
|
+
inform: {
|
|
562
|
+
informType: 'mail',
|
|
563
|
+
userCondition: '${instanceCreator} condition.operator.or ${hasHandledTransactor} condition.operator.or ${user} operator.text.eq "张/有限公司[zhd~~test]"',
|
|
564
|
+
subject: '通知标题',
|
|
565
|
+
content: '通知内容'
|
|
566
|
+
},
|
|
567
|
+
autoFilledFields: {
|
|
568
|
+
field: [
|
|
569
|
+
{
|
|
570
|
+
name: 'name',
|
|
571
|
+
value: '${currentTime}',
|
|
572
|
+
separator: '',
|
|
573
|
+
fillType: 'cover',
|
|
574
|
+
fillTime: 'before'
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
name: 'code',
|
|
578
|
+
value: 'aaaa',
|
|
579
|
+
separator: '',
|
|
580
|
+
fillType: 'append',
|
|
581
|
+
fillTime: 'after'
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
},
|
|
585
|
+
onTransit: false // 触发流过事件
|
|
586
|
+
}],
|
|
587
|
+
/*
|
|
588
|
+
* 特事特办流向xml属性
|
|
589
|
+
*/
|
|
590
|
+
specialTransition: {
|
|
591
|
+
attr: {
|
|
592
|
+
id: 's3',
|
|
593
|
+
from: 't3',
|
|
594
|
+
to: 't1'
|
|
595
|
+
},
|
|
596
|
+
g: {
|
|
597
|
+
fromJoint: 'bottom',
|
|
598
|
+
toJoint: 'right',
|
|
599
|
+
coordinate: '640,182:574,202:607,192,80,50',
|
|
600
|
+
lineType: 0
|
|
601
|
+
},
|
|
602
|
+
taskTitle: ''
|
|
603
|
+
},
|
|
604
|
+
/*
|
|
605
|
+
* 结束环节xml属性
|
|
606
|
+
*/
|
|
607
|
+
end: {
|
|
608
|
+
attr: {
|
|
609
|
+
id: 'end1'
|
|
610
|
+
},
|
|
611
|
+
g: {
|
|
612
|
+
x: 50,
|
|
613
|
+
y: 350,
|
|
614
|
+
width: 48,
|
|
615
|
+
height: 48
|
|
616
|
+
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export default process
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
function getStore() {
|
|
3
|
+
return window.$store
|
|
4
|
+
}
|
|
5
|
+
function getHttp() {
|
|
6
|
+
return window.$http
|
|
7
|
+
}
|
|
8
|
+
const processService = {
|
|
9
|
+
fetchFormFields(formCode, formVersion) {
|
|
10
|
+
getHttp().get(Vue.prototype.baseAPI + '/wf-editor/workflow-editors/form-fields?formCode=' + formCode + '&formVersion=' + formVersion).then(resultFields => {
|
|
11
|
+
const formFields = resultFields.formFields
|
|
12
|
+
const subFormFields = resultFields.subFormFields
|
|
13
|
+
getStore().commit('wfEditor/setFormCode', formCode)
|
|
14
|
+
// 数据表字段集合
|
|
15
|
+
getStore().commit('wfEditor/setFormFields', formFields)
|
|
16
|
+
// 数据表字段集合+子表字段集合
|
|
17
|
+
const editFormFiedlds = formFields.concat(subFormFields)
|
|
18
|
+
getStore().commit('wfEditor/setFormFieldsWithSub', editFormFiedlds)
|
|
19
|
+
// 子表权限的相关数据
|
|
20
|
+
const subtableConditionMap = resultFields.subtableConditionMap
|
|
21
|
+
getStore().commit('wfEditor/setSubtableConditionMap', subtableConditionMap)
|
|
22
|
+
// 当前系统下的系统参数设置key集合
|
|
23
|
+
const systemPropSettingList = resultFields.systemPropSettingList
|
|
24
|
+
getStore().commit('wfEditor/setPropSettingKeyList', systemPropSettingList)
|
|
25
|
+
})
|
|
26
|
+
},
|
|
27
|
+
fetchSubprocessFormFields(processCode, processVersion) {
|
|
28
|
+
return getHttp().get(Vue.prototype.baseAPI + '/wf-editor/workflow-editors/form-fields-with-processes?processCode=' + processCode + '&processVersion=' + processVersion)
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export default processService
|