text: import{k as e,aI as a,bT as t,bV as s,bs as i,bW as o,bn as r,u as n,r as l,a as m,I as d,K as p,o as u,n as c,P as f,q as j,X as b,s as v}from"./vendor.59fe1062.js";/* empty css              *//* empty css              *//* empty css              */import{ac as I}from"./index.ae3055f9.js";import x from"./FlowDiagramModal.68438e63.js";import y from"./index.8eba674b.js";import{d as L}from"./process.be6a691f.js";import"./useModal.4686da24.js";import"./useWindowSizeFn.cd99a382.js";import"./Viewer.f6103f50.js";import"./PageWrapper.d74cbf9c.js";import"./usePageContext.19f2cd62.js";/* empty css              */import"./onMountedOrActivated.932ae6a7.js";/* empty css              *//* empty css              *//* empty css              */import"./index.cba95b0b.js";var g=e({name:"ApprovalHistory",components:{Button:a,ApartmentOutlined:t,FlowDiagramModal:x,BpmnPreviewModal:y,Timeline:s,TimelineItem:s.Item,List:i,ListItem:i.Item,ListItemMeta:i.Item.Meta,ClockCircleOutlined:o,CollapseContainer:I,Avatar:r},setup(e,{emit:a}){const{currentRoute:t}=n(),s=l([]),i=l(!1),{params:{modelKey:o},query:{taskId:r,procInstId:p}}=m(t);return d((()=>{i.value=!0,L({procInstId:p}).then((e=>{s.value=e})).finally((()=>{i.value=!1}))})),{historyList:s,approvalHistoryLoading:i}}});const M=j("div",{class:"font-bold"},"审批记录",-1),C=j("br",null,null,-1),w={class:"font-bold"};g.render=function(e,a,t,s,i,o){const r=p("Avatar"),n=p("ListItemMeta"),l=p("ListItem"),m=p("List"),d=p("CollapseContainer");return u(),c(d,{canExpan:!0},{title:f((()=>[M])),default:f((()=>[j("div",null,[j(m,{loading:e.approvalHistoryLoading,"item-layout":"horizontal",dataSource:e.historyList},{renderItem:f((({item:e})=>[j(l,null,{default:f((()=>[j(n,null,{description:f((()=>[b(v(e.message||"无"),1),C])),title:f((()=>[j("span",w,v(e.activityName),1),b(" "+v(e.time),1)])),avatar:f((()=>[j(r,null,{default:f((()=>[b(v(e.typeName),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:1},8,["loading","dataSource"])])])),_:1})};export default g;
  