|
@@ -211,30 +211,35 @@ export default {
|
|
|
|
|
|
// !isProcess(element) && this.renderComponents.push(ElementBeforeNode);
|
|
|
// !isProcess(element) && this.renderComponents.push(ElementAfterNode);
|
|
|
- switch (this.myProcessType) {
|
|
|
- case "0": //工业类型
|
|
|
- this.renderComponents.push(ElementGenerations); //常规信息
|
|
|
- // !isProcess(element) &&
|
|
|
- // !isStart(element) &&
|
|
|
- // !isEnd(element) &&
|
|
|
- // this.renderComponents.push(ElementAsyncContinuations); //节点前后执行的数据
|
|
|
- !isProcess(element) && this.renderComponents.push(ElementNormalTask); //正常节点
|
|
|
- !isProcess(element) &&
|
|
|
- !isStart(element) &&
|
|
|
- !isEnd(element) &&
|
|
|
- this.renderComponents.push(ElementUnusualTasks); //可处理异常
|
|
|
- isUserTask(element) && this.renderComponents.push(ElementExecuteUser);
|
|
|
- !isProcess(element) &&
|
|
|
- !isStart(element) &&
|
|
|
- !isEnd(element) &&
|
|
|
- this.renderComponents.push(ElementExcuteType); //执行类型
|
|
|
- break;
|
|
|
- case "1": //OA类型
|
|
|
- this.renderComponents.push(ElementGenerations); //常规信息
|
|
|
- !isProcess(element) && this.renderComponents.push(ElementAfterNode);
|
|
|
- default:
|
|
|
- break;
|
|
|
+ if (this.myProcessType == 0) {
|
|
|
+ this.renderComponents.push(ElementGenerations); //常规信息
|
|
|
+ // !isProcess(element) &&
|
|
|
+ // !isStart(element) &&
|
|
|
+ // !isEnd(element) &&
|
|
|
+ // this.renderComponents.push(ElementAsyncContinuations); //节点前后执行的数据
|
|
|
+ !isProcess(element) && this.renderComponents.push(ElementNormalTask); //正常节点
|
|
|
+ !isProcess(element) &&
|
|
|
+ !isStart(element) &&
|
|
|
+ !isEnd(element) &&
|
|
|
+ this.renderComponents.push(ElementUnusualTasks); //可处理异常
|
|
|
+ isUserTask(element) && this.renderComponents.push(ElementExecuteUser);
|
|
|
+ !isProcess(element) &&
|
|
|
+ !isStart(element) &&
|
|
|
+ !isEnd(element) &&
|
|
|
+ this.renderComponents.push(ElementExcuteType); //执行类型
|
|
|
+ } else if (this.myProcessType == 1) {
|
|
|
+ this.renderComponents.push(ElementGenerations); //常规信息
|
|
|
+ !isProcess(element) && this.renderComponents.push(ElementAfterNode);
|
|
|
}
|
|
|
+ // switch (this.myProcessType) {
|
|
|
+ // case 0: //工业类型
|
|
|
+
|
|
|
+ // break;
|
|
|
+ // case 1: //OA类型
|
|
|
+
|
|
|
+ // default:
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
},
|
|
|
// 获取所有脚本列表
|
|
|
async getAllScriptList() {
|