# WFRuntimeUI

## 版本更新记录

### 0.0.1
- 提供提交审批选择流程组件

## 使用方法
1. module中从@gsp-wf/rtdevkit导入 WFRuntimeModule
2. 注入Service:WFSubmiteService
3. 调用提交审批方法之后会流程引擎会返回：ExcutionResponse,判断其属性needInteraction是否需要交互：如果不需要交互提交审批完成，执行后续逻辑;否则..
4. 调用Service.excute()


### 0.0.2
- 提供集成审批控件组件
1. npm i @gsp-wf/rtdevkit@Latest
2. 替换node_module/@gsp-wf/rtdevkit 下的文件
3. module中导入WFRuntimeModule
```ts
import { WFRuntimeModule } from '@gsp-wf/rtdevkit';
NgModule({ 
  imports: [WFRuntimeModule]
  })

```
4. 
```html
<wf-workitem-handle [workitemId]="" (actions)="updateActions(actions)" (completed)="completed(success)"></wf-workitem-handle>
```
5. 组件中定义接收btns和完成后事件
```ts
  @ViewChild(WfWorkitemHandleComponent)
  workItemHandle: WfWorkitemHandleComponent;
  /**
   *更新本地操作按钮列表
   */
  updateActions(actions: WorkitemAction) {
    
  }
  /**
   * 审批完成后回调
   */
  completed(sucess: boolean) {
    console.log('审批:' + sucess);
  }

  /**
   * 自定义动作操作
   * @param actionCode 操作编号
   */
   onClick(actionCode: string){
     this.workItemHandle.complete('审批意见');
   }

```