(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22cbc5"],{f500:function(e,t,n){"use strict";n.r(t);n("6762"),n("2fdb");var i=function(){var e=this,t=e._self._c;return t("el-row",{attrs:{type:"flex"}},[t("el-timeline",[e._l(e.flow,(function(n){return[["candidate","sequenceFlow"].includes(n.historyActivityType)?e._e():t("el-timeline-item",{key:n.id,attrs:{timestamp:n.endTime||n.createTime,placement:"top"}},[t("el-card",{attrs:{shadow:"never"}},[t("p",[e._v(e._s(n.assigneeName)+" 在 ["+e._s(n.createTime)+"] 开始处理 ["+e._s("endEvent"==n.historyActivityType?"结束":n.historyActivityName||"未命名")+"] 环节")]),n.historyActivityDurationTime?t("p",[e._v("任务历时 ["+e._s(n.historyActivityDurationTime)+"]")]):e._e(),n.comments?e._l(n.comments,(function(i,s){return t("p",{key:s},[s<1?[e.commentMap[i.type]?t("span",[e._v(e._s(e.commentMap[i.type])+": ["+e._s(i.fullMessage)+"]")]):e._e(),n.comments.length>1?t("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(e._s(e.toggleText)+" "),t("i",{class:[e.isFlag?"el-icon-arrow-up":"el-icon-arrow-down"]})]):e._e(),i.time?t("p",{staticStyle:{color:"gray","font-size":"14px"}},[e._v(e._s(i.time))]):e._e()]:e._e(),s>0&&e.isFlag?[e.commentMap[i.type]?t("span",[e._v(e._s(e.commentMap[i.type])+": ["+e._s(i.fullMessage)+"]")]):e._e(),i.time?t("p",{staticStyle:{color:"gray","font-size":"14px"}},[e._v(e._s(i.time))]):e._e()]:e._e()],2)})):e._e(),n.endTime?t("p",[e._v("结束时间: ["+e._s(n.endTime)+"]")]):e._e()],2)],1)]}))],2)],1)},s=[],a={name:"wf-flow",props:{flow:{type:Array,default:function(){return[]}}},data:function(){return{isFlag:!1,toggleText:"展开",commentMap:{assigneeComment:"变更审核人",dispatchComment:"调度",transferComment:"转办",delegateComment:"委托",rollbackComment:"驳回意见",terminateComment:"作废意见",addMultiInstanceComment:"加签",deleteMultiInstanceComment:"减签",comment:"审批意见"}}},methods:{handleClick:function(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"收起":"展开"}}},o=a,l=n("2877"),m=Object(l["a"])(o,i,s,!1,null,null,null);t["default"]=m.exports}}]);