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