Skip to content

Commit 802f710

Browse files
committed
fix form
1 parent b4095bd commit 802f710

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

mobile-ui/src/components/flow/domain/FlowButtonClickContext.ts

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ export class FlowButtonClickContext {
5454
}
5555
}
5656

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+
5769
/**
5870
* 触发指定人提交动作
5971
*/
@@ -251,11 +263,11 @@ export class FlowButtonClickContext {
251263
}
252264

253265
if (button.type === 'SAVE') {
254-
this.handlerSave();
266+
this.handlerSave();
255267
}
256268

257269
if (button.type === "START") {
258-
this.handlerStart();
270+
this.handlerStart();
259271
}
260272
if (button.type === 'SPECIFY_SUBMIT') {
261273
this.handlerSpecifySubmit();
@@ -266,39 +278,39 @@ export class FlowButtonClickContext {
266278
}
267279

268280
if (button.type === 'REJECT') {
269-
this.handlerReject();
281+
this.handlerReject();
270282
}
271283

272284
if (button.type === 'TRY_SUBMIT') {
273-
this.handlerTrySubmit();
285+
this.handlerTrySubmit();
274286
}
275287

276288
if (button.type === 'RECALL') {
277-
this.handlerRecall();
289+
this.handlerRecall();
278290
}
279291

280292
if (button.type === 'REMOVE') {
281-
this.handlerRemove();
293+
this.handlerRemove();
282294
}
283295

284296
if (button.type === 'URGE') {
285-
this.handlerUrge()
297+
this.handlerUrge()
286298
}
287299

288300
if (button.type === 'POSTPONED') {
289-
this.handlerPostponed();
301+
this.handlerPostponed();
290302
}
291303

292304
if (button.type === 'TRANSFER') {
293-
this.handlerTransfer();
305+
this.handlerTransfer();
294306
}
295307

296308
if (button.type === "CUSTOM") {
297309
this.handlerCustom(button.id);
298310
}
299311

300312
if (button.type === 'VIEW') {
301-
this.handlerView(button.eventKey);
313+
this.handlerView(button.eventKey);
302314
}
303315
}
304316
}

0 commit comments

Comments
 (0)