import{d as x,e as s,w as v,b as z,ae as C,r as N,c as h,V as B,u as a,a as E,p as T,n as t,Q as S,k as V,B as D,o as f,m as l,ar as L,T as U,s as F,x as _,y as R,C as G,t as b}from"./index-DT-14rcZ.js";/* empty css                   */const I={key:0,style:{left:"220px",top:"60px",bottom:"0",right:"0",position:"absolute",overflow:"auto"}},M={class:"work_form__main"},A=x({__name:"Work_Form__Flow",setup(P){const d=s([]),r=s(1),n=s(20),c=s(1),p=s(!1);v(r,u),v(n,u);const m=z();C(()=>{var o;((o=m.user_info)==null?void 0:o.orgType)!=="0"&&u()});async function u(){p.value=!0;var o=await N({baseURL:window.__SYSTEM_CONFIG__.instanceHostAddress,url:"cn.zhixl.workbench/my_create_list_ds.svc",method:"post",data:{page:r.value,pageSize:n.value}});c.value=o.total,d.value=o.data,p.value=!1}return(o,i)=>{var g;const w=U("RouterLink"),y=D,k=S;return((g=a(m).user_info)==null?void 0:g.orgType)!=="0"?(f(),h("div",I,[E("div",M,[T((f(),V(a(L),{style:{"border-radius":"16px","margin-bottom":"16px"}},{default:l(()=>[t(a(F),{data:d.value,size:"large","header-row-style":{color:"#000"}},{default:l(()=>[t(a(_),{label:"标题"},{default:l(e=>[t(w,{to:e.row.route+"?id="+e.row.flowId},{default:l(()=>[t(a(R),{link:"",type:"primary",size:"large"},{default:l(()=>[G(" ["+b(e.row.typeName)+"] "+b(e.row.subject),1)]),_:2},1024)]),_:2},1032,["to"])]),_:1}),t(a(_),{prop:"createUserName",label:"接收人"}),t(a(_),{prop:"typeName",label:"类型"}),t(a(_),{prop:"createDate",label:"接收时间"})]),_:1},8,["data"])]),_:1})),[[k,p.value]]),t(y,{class:"work_form__pagination","current-page":r.value,"onUpdate:currentPage":i[0]||(i[0]=e=>r.value=e),"page-size":n.value,"onUpdate:pageSize":i[1]||(i[1]=e=>n.value=e),size:"large","page-sizes":[10,20,30,40],small:"small",layout:"prev, pager, next, sizes",total:c.value},null,8,["current-page","page-size","total"])])])):B("",!0)}}});export{A as default};
