@@ -54,6 +54,18 @@ export class FlowButtonClickContext {
54
54
}
55
55
}
56
56
57
+ /**
58
+ * 指定人提交流程
59
+ * @param approvalState 审批状态 同意为true 驳回为false
60
+ * @param operatorIds 流程操作人员id
61
+ */
62
+ handlerSpecifyOperatorSubmit ( approvalState :boolean , operatorIds :number [ ] ) {
63
+ this . flowEventContext ?. submitFlow ( true , ( res ) => {
64
+ const flowSubmitResultParser = new FlowSubmitResultParser ( res . data ) ;
65
+ this . flowStateContext . setResult ( flowSubmitResultParser . parser ( ) ) ;
66
+ } , operatorIds ) ;
67
+ }
68
+
57
69
/**
58
70
* 触发指定人提交动作
59
71
*/
@@ -251,11 +263,11 @@ export class FlowButtonClickContext {
251
263
}
252
264
253
265
if ( button . type === 'SAVE' ) {
254
- this . handlerSave ( ) ;
266
+ this . handlerSave ( ) ;
255
267
}
256
268
257
269
if ( button . type === "START" ) {
258
- this . handlerStart ( ) ;
270
+ this . handlerStart ( ) ;
259
271
}
260
272
if ( button . type === 'SPECIFY_SUBMIT' ) {
261
273
this . handlerSpecifySubmit ( ) ;
@@ -266,39 +278,39 @@ export class FlowButtonClickContext {
266
278
}
267
279
268
280
if ( button . type === 'REJECT' ) {
269
- this . handlerReject ( ) ;
281
+ this . handlerReject ( ) ;
270
282
}
271
283
272
284
if ( button . type === 'TRY_SUBMIT' ) {
273
- this . handlerTrySubmit ( ) ;
285
+ this . handlerTrySubmit ( ) ;
274
286
}
275
287
276
288
if ( button . type === 'RECALL' ) {
277
- this . handlerRecall ( ) ;
289
+ this . handlerRecall ( ) ;
278
290
}
279
291
280
292
if ( button . type === 'REMOVE' ) {
281
- this . handlerRemove ( ) ;
293
+ this . handlerRemove ( ) ;
282
294
}
283
295
284
296
if ( button . type === 'URGE' ) {
285
- this . handlerUrge ( )
297
+ this . handlerUrge ( )
286
298
}
287
299
288
300
if ( button . type === 'POSTPONED' ) {
289
- this . handlerPostponed ( ) ;
301
+ this . handlerPostponed ( ) ;
290
302
}
291
303
292
304
if ( button . type === 'TRANSFER' ) {
293
- this . handlerTransfer ( ) ;
305
+ this . handlerTransfer ( ) ;
294
306
}
295
307
296
308
if ( button . type === "CUSTOM" ) {
297
309
this . handlerCustom ( button . id ) ;
298
310
}
299
311
300
312
if ( button . type === 'VIEW' ) {
301
- this . handlerView ( button . eventKey ) ;
313
+ this . handlerView ( button . eventKey ) ;
302
314
}
303
315
}
304
316
}
0 commit comments