fuliqi
2025-01-03 f84ce5767570a5bad83f2729a95277ac5ce847b5
src/components/Process/viewer/index.vue
@@ -7,6 +7,7 @@
          <div class="finish">已办理</div>
          <div class="processing">处理中</div>
          <div class="todo">未进行</div>
          <div class="willOvertime">即将超时</div>
          <div class="overtime">已超时</div>
        </div>
        <!-- 流程图显示 -->
@@ -110,8 +111,10 @@
        if (n.$type === 'bpmn:UserTask') {
          if (completeTask) {
            canvas.addMarker(n.id, completeTask.completed ? 'highlight' : 'highlight-todo')
            if(completeTask.overtime){
            if(completeTask.overtime && completeTask.overtime==='red'){
              canvas.addMarker(n.id,  'highlight-overtime')
            }else if(completeTask.overtime && completeTask.overtime==='yellow'){
              canvas.addMarker(n.id,  'highlight-willOvertime')
            }
            n.outgoing?.forEach(nn => {
              const targetTask = nodeData.find(m => m.key === nn.targetRef.id)