|
@@ -81,6 +81,7 @@ export default {
|
|
currentElementId: undefined,
|
|
currentElementId: undefined,
|
|
customTranslate,
|
|
customTranslate,
|
|
renderComponents: [],
|
|
renderComponents: [],
|
|
|
|
+ waitingComponents: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
provide() {
|
|
provide() {
|
|
@@ -128,7 +129,18 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
myProcessType: {
|
|
myProcessType: {
|
|
handler(val) {
|
|
handler(val) {
|
|
- console.log(val, 1111);
|
|
|
|
|
|
+ //0:工业类型 1:OA类型
|
|
|
|
+ switch (val) {
|
|
|
|
+ case "0":
|
|
|
|
+ // this.waitingComponents.splice(0, this.waitingComponents.length); // 清空
|
|
|
|
+ this.waitingComponents = [ElementGenerations];
|
|
|
|
+ break;
|
|
|
|
+ case "1":
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
immediate: true,
|
|
immediate: true,
|
|
deep: true,
|
|
deep: true,
|
|
@@ -181,7 +193,6 @@ export default {
|
|
setCurrentComponents(element) {
|
|
setCurrentComponents(element) {
|
|
this.renderComponents.splice(0, this.renderComponents.length); // 清空
|
|
this.renderComponents.splice(0, this.renderComponents.length); // 清空
|
|
// 重设
|
|
// 重设
|
|
- this.renderComponents.push(ElementGenerations);
|
|
|
|
// this.renderComponents.push(ElementDocumentations); //附加文档
|
|
// this.renderComponents.push(ElementDocumentations); //附加文档
|
|
// isCanbeConditional(element) &&
|
|
// isCanbeConditional(element) &&
|
|
// this.renderComponents.push(ElementConditional);
|
|
// this.renderComponents.push(ElementConditional);
|
|
@@ -191,29 +202,36 @@ export default {
|
|
// isExecutable(element) &&
|
|
// isExecutable(element) &&
|
|
// this.renderComponents.push(ElementExecutionListeners);
|
|
// this.renderComponents.push(ElementExecutionListeners);
|
|
// isAsynchronous(element) &&
|
|
// isAsynchronous(element) &&
|
|
- !isProcess(element) &&
|
|
|
|
- !isStart(element) &&
|
|
|
|
- !isEnd(element) &&
|
|
|
|
- this.renderComponents.push(ElementAsyncContinuations); //节点前后执行的数据
|
|
|
|
// isStartInitializable(element) &&
|
|
// isStartInitializable(element) &&
|
|
// this.renderComponents.push(ElementStartInitiator);
|
|
// this.renderComponents.push(ElementStartInitiator);
|
|
// this.renderComponents.push(ElementExtensionField);
|
|
// this.renderComponents.push(ElementExtensionField);
|
|
// 添加执行表单
|
|
// 添加执行表单
|
|
// isTaskOrUserTask(element) &&
|
|
// isTaskOrUserTask(element) &&
|
|
// this.renderComponents.push(ElementExecuteForm);//执行表单
|
|
// this.renderComponents.push(ElementExecuteForm);//执行表单
|
|
- !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);
|
|
|
|
|
|
|
|
// !isProcess(element) && this.renderComponents.push(ElementBeforeNode);
|
|
// !isProcess(element) && this.renderComponents.push(ElementBeforeNode);
|
|
// !isProcess(element) && this.renderComponents.push(ElementAfterNode);
|
|
// !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;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 获取所有脚本列表
|
|
// 获取所有脚本列表
|
|
async getAllScriptList() {
|
|
async getAllScriptList() {
|