Skip to content

Commit bec0199

Browse files
committed
update DESIGN.md
1 parent 529427e commit bec0199

4 files changed

Lines changed: 47 additions & 4 deletions

File tree

designs/view-plugin/DESIGN.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export interface TransferViewPlugin {
102102
}
103103
```
104104

105-
### 流程设计
105+
### 流程设计-节点配置
106106

107107
* 流程条件控制界面
108108
```
@@ -234,4 +234,48 @@ export interface TriggerViewPlugin {
234234
/** 确认回调 */
235235
onChange: (script: string) => void;
236236
}
237+
```
238+
239+
### 流程设计-动作配置
240+
241+
* 自定义按钮触发脚本界面
242+
```
243+
import {ActionSelectOption} from "@/components/script/typings";
244+
245+
export const VIEW_KEY = 'ConditionCustomViewPlugin';
246+
247+
export interface ConditionCustomViewPlugin {
248+
// 当前的脚本
249+
value?: string;
250+
// 脚本更改回掉
251+
onChange?: (value: string) => void;
252+
// 可选择的动作范围
253+
options:ActionSelectOption[];
254+
}
255+
```
256+
257+
* 拒绝动作界面
258+
```
259+
export const VIEW_KEY = 'ConditionRejectViewPlugin';
260+
261+
export interface ConditionRejectViewPlugin {
262+
// 当前节点id
263+
nodeId:string;
264+
// 当前的脚本
265+
value?: string;
266+
// 脚本更改回掉
267+
onChange?: (value: string) => void;
268+
}
269+
```
270+
271+
* 委派/转办/加签/界面 与(节点人员选择界面一致)
272+
```
273+
export const VIEW_KEY = 'OperatorLoadViewPlugin';
274+
275+
export interface OperatorLoadViewPlugin {
276+
/** 当前脚本 */
277+
script: string;
278+
/** 确认回调 */
279+
onChange: (script: string) => void;
280+
}
237281
```

frontend/packages/flow-pc/flow-pc-design/src/components/script/components/action/components/reject.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const RejectActionForm:React.FC<ActionFormProps> = (props)=>{
1212
<Col span={24}>
1313
<Form.Item
1414
name={"script"}
15+
tooltip={"退回的节点,当选择终止时则直接结束当前流程"}
1516
label={"拒绝策略"}
1617
help={"配置拒绝时跳转的节点"}
1718
>

frontend/packages/flow-pc/flow-pc-design/src/components/script/services/action-reject.ts renamed to frontend/packages/flow-pc/flow-pc-design/src/components/script/services/action-reject.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export class ActionRejectService {
2222
options.push({
2323
label: '终止流程',
2424
value: 'TERMINATE',
25-
danger: true,
2625
})
2726
return options;
2827
}

frontend/packages/flow-pc/flow-pc-design/src/components/script/typings/action.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export interface ActionFormProps {
1818
}
1919

2020
export interface ActionSelectOption {
21-
label: string;
21+
label: any;
2222
value: string;
23-
danger?:boolean;
2423
}

0 commit comments

Comments
 (0)