File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
admin-ui/src/components/Flow/flow Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export const registerEvents = (id: string,
86
86
87
87
88
88
// 发起并提交流程
89
- const handlerStartAndSubmitFlow = ( callback : ( res : any ) => void ) => {
89
+ const handlerStartAndSubmitFlow = ( callback : ( res : any ) => void , operatorIds ?: any [ ] ) => {
90
90
setRequestLoading ( true ) ;
91
91
const advice = adviceForm . getFieldValue ( 'advice' ) ;
92
92
const flowData = data . getFlowData ( ) ;
@@ -107,6 +107,7 @@ export const registerEvents = (id: string,
107
107
const submitBody = {
108
108
recordId : newRecordId ,
109
109
advice : advice ,
110
+ operatorIds : operatorIds ,
110
111
success : true ,
111
112
formData : {
112
113
...flowData ,
@@ -320,7 +321,8 @@ export const registerEvents = (id: string,
320
321
321
322
return ( button : {
322
323
type : string ,
323
- id ?: string
324
+ id ?: string ,
325
+ params ?:any
324
326
} ) => {
325
327
switch ( button . type ) {
326
328
case 'RELOAD' : {
@@ -380,7 +382,7 @@ export const registerEvents = (id: string,
380
382
closeFlow : true ,
381
383
result : flowSubmitResultBuilder . builder ( )
382
384
} ) ) ;
383
- } ) ;
385
+ } , button . params ) ;
384
386
} else {
385
387
handlerStartAndSubmitFlow ( ( res ) => {
386
388
const flowSubmitResultBuilder = new FlowSubmitResultBuilder ( res . data ) ;
@@ -399,7 +401,7 @@ export const registerEvents = (id: string,
399
401
closeFlow : true ,
400
402
result : flowSubmitResultBuilder . builder ( )
401
403
} ) ) ;
402
- } ) ;
404
+ } , button . params ) ;
403
405
break ;
404
406
}
405
407
case 'TRY_SUBMIT' : {
Original file line number Diff line number Diff line change @@ -39,8 +39,12 @@ export interface FlowFormViewProps {
39
39
flowData ?: FlowData ;
40
40
// 流程交互操作
41
41
handlerClick ?: ( item : {
42
+ // 按钮类型
42
43
type : CustomButtonType ;
44
+ // 按钮的Id
43
45
id ?: string ;
46
+ // 操作参数,对应提交时指定人员数组,例如[1,2,3]
47
+ params ?: any ;
44
48
} ) => void ;
45
49
46
50
// 请求数据加载
You can’t perform that action at this time.
0 commit comments