diff --git a/app/view/component/flow/processFlow.html b/app/view/component/flow/processFlow.html index 8f95084..b8be6bb 100644 --- a/app/view/component/flow/processFlow.html +++ b/app/view/component/flow/processFlow.html @@ -198,15 +198,11 @@ Vue.component("process-flow", { editType: 'flow', //编辑的类型 displayModeIndex: 1, // 'complex'、'simple' displayMode: 'complex', // 'complex'、'simple' - mode: "mode", isAddNodeMenuShown: false, activeMenuIndex: -1, }; }, watch: { - mode() { - this.logicFlow.clearData(); - }, workflowConfig: { handler: async function (val) { // 初始化起点和终点 @@ -548,21 +544,6 @@ Vue.component("process-flow", { logicFlow.on("edge:add", (e) => { const {data} = e; const {id, sourceNodeId, targetNodeId, properties} = data; - // 并行模式不允许多条流程线 - if (this.mode == 'parallel') { - const sourceNodeEdges = logicFlow.getNodeEdges(sourceNodeId); - const targetNodeEdges = logicFlow.getNodeEdges(targetNodeId); - if ( - sourceNodeEdges.filter(edge => edge.sourceNodeId == sourceNodeId).length > 1 || - sourceNodeEdges.filter(edge => edge.targetNodeId == sourceNodeId).length > 1 || - targetNodeEdges.filter(edge => edge.sourceNodeId == targetNodeId).length > 1 || - targetNodeEdges.filter(edge => edge.targetNodeId == targetNodeId).length > 1 - ) { - window.vtoast.fail("并行模式不允许多条流程线"); - logicFlow.deleteEdge(id); - return; - } - } let line = { from: sourceNodeId, to: targetNodeId, diff --git a/app/view/page/workflowManagement.html b/app/view/page/workflowManagement.html index 06d053b..c17e6a9 100644 --- a/app/view/page/workflowManagement.html +++ b/app/view/page/workflowManagement.html @@ -303,6 +303,7 @@ // ---------- <<<<<<<<<< 申请项目审核 -------- async prepareCreateFormData(funObj) { + console.log('prepareCreateFormData', funObj); const { workflowForm, workflowPersonList, workflowId } = funObj; this.currentWorkflowForm = workflowForm; this.currentWorkflowPersonList = workflowPersonList;