From 134acc057e145fc3dd13834900047b3b4788b0f2 Mon Sep 17 00:00:00 2001 From: Jam Date: Tue, 22 Nov 2022 14:07:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E6=B5=81=E7=A8=8B=E5=9B=BEli?= =?UTF-8?q?ne-=E5=AE=A1=E6=A0=B8=E5=AE=8C=E6=88=90=E5=90=8E=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BD=93=E5=89=8D=E5=AE=A1=E6=A0=B8=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/component/flow/processFlow.html | 2 +- app/view/page/taskHistoryManagement.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/view/component/flow/processFlow.html b/app/view/component/flow/processFlow.html index a55880c..55e72cc 100644 --- a/app/view/component/flow/processFlow.html +++ b/app/view/component/flow/processFlow.html @@ -431,7 +431,7 @@ endpoint: 'Dot' // 线的类型 }, this.jsplumbConnectOptions); if (connection && connection.getOverlay("label-1")) { - connection.getOverlay("label-1").setLabel(line.type + '-' +line.label); //初始化label + connection.getOverlay("label-1").setLabel((line.operationByUser? `${line.operationByUser}-`: '') + line.type + '-' +line.label); //初始化label } } this.$nextTick(function () { diff --git a/app/view/page/taskHistoryManagement.html b/app/view/page/taskHistoryManagement.html index c10bcfd..a863410 100644 --- a/app/view/page/taskHistoryManagement.html +++ b/app/view/page/taskHistoryManagement.html @@ -236,6 +236,10 @@ new Vue({ this.currentNode = currentNode; this.isAccess = isAccess; this.nextLineList = _.uniqBy(nextLineList, 'type') ; + // 更新操作人到连线 + taskHistoryConfigList.lineList.map(line => { + line.operationByUser = (taskHistoryList.find(taskHistory => taskHistory.taskConfigId == line.from && taskHistory.taskLineTo == line.to) || {}).operationByUser; + }); this.taskHistoryConfigList = taskHistoryConfigList; this.isTableLoading = false; },