import{d as N,u as Y,r as i,A as B,b as P,o as T,c as z,k as e,B as r,a,a2 as A,O as s,P as F,g as q,N as H,D as K,F as O,a7 as R,S as W,T as X,U as Z,V as j,W as G,X as E,Y as J,Z as L}from"./index-BP6bNRoi.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{_ as $}from"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import{_ as ee}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as g,a as ae}from"./formatTime-DwR9f7DP.js";import{i as le}from"./index-CMi8END7.js";import"./index-BZESAUPP.js";import"./color-DXkOL5Tu.js";import"./el-card-bU92WWV4.js";const te=N({name:"BpmManagerTask",__name:"index",setup(re){const{push:k}=Y(),p=i(!0),w=i(0),h=i([]),n=B({pageNo:1,pageSize:10,name:"",createTime:[]}),_=i(),m=async()=>{p.value=!0;try{const u=await le(n);h.value=u.list,w.value=u.total}finally{p.value=!1}},d=()=>{n.pageNo=1,m()},x=()=>{_.value.resetFields(),d()};return P(()=>{m()}),(u,o)=>{const U=R,c=W,M=X,b=Z,f=j,S=G,v=ee,l=E,V=$,D=J,I=Q,C=L;return T(),z(O,null,[e(v,null,{default:r(()=>[e(S,{ref_key:"queryFormRef",ref:_,inline:!0,model:a(n),class:"-mb-15px","label-width":"68px"},{default:r(()=>[e(c,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"name"},{default:r(()=>[e(U,{modelValue:a(n).name,"onUpdate:modelValue":o[0]||(o[0]=t=>a(n).name=t),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",onKeyup:A(d,["enter"])},null,8,["modelValue"])]),_:1}),e(c,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[e(M,{modelValue:a(n).createTime,"onUpdate:modelValue":o[1]||(o[1]=t=>a(n).createTime=t),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),e(c,null,{default:r(()=>[e(f,{onClick:d},{default:r(()=>[e(b,{class:"mr-5px",icon:"ep:search"}),s(" \u641C\u7D22 ")]),_:1}),e(f,{onClick:x},{default:r(()=>[e(b,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(v,null,{default:r(()=>[F((T(),q(D,{data:a(h)},{default:r(()=>[e(l,{align:"center",label:"\u6D41\u7A0B",prop:"processInstance.name",width:"180"}),e(l,{align:"center",label:"\u53D1\u8D77\u4EBA",prop:"processInstance.startUser.nickname",width:"100"}),e(l,{formatter:a(g),align:"center",label:"\u53D1\u8D77\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(l,{align:"center",label:"\u5F53\u524D\u4EFB\u52A1",prop:"name",width:"180"}),e(l,{formatter:a(g),align:"center",label:"\u4EFB\u52A1\u5F00\u59CB\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(l,{formatter:a(g),align:"center",label:"\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4",prop:"endTime",width:"180"},null,8,["formatter"]),e(l,{align:"center",label:"\u5BA1\u6279\u4EBA",prop:"assigneeUser.nickname",width:"100"}),e(l,{align:"center",label:"\u5BA1\u6279\u72B6\u6001",prop:"status",width:"120"},{default:r(t=>[e(V,{type:a(H).BPM_TASK_STATUS,value:t.row.status},null,8,["type","value"])]),_:1}),e(l,{align:"center",label:"\u5BA1\u6279\u5EFA\u8BAE",prop:"reason","min-width":"180"}),e(l,{align:"center",label:"\u8017\u65F6",prop:"durationInMillis",width:"160"},{default:r(t=>[s(K(a(ae)(t.row.durationInMillis)),1)]),_:1}),e(l,{align:"center",label:"\u6D41\u7A0B\u7F16\u53F7",prop:"id","show-overflow-tooltip":!0}),e(l,{align:"center",label:"\u4EFB\u52A1\u7F16\u53F7",prop:"id","show-overflow-tooltip":!0}),e(l,{align:"center",label:"\u64CD\u4F5C",fixed:"right",width:"80"},{default:r(t=>[e(f,{link:"",type:"primary",onClick:ne=>{return y=t.row,void k({name:"BpmProcessInstanceDetail",query:{id:y.processInstance.id}});var y}},{default:r(()=>[s("\u5386\u53F2")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[C,a(p)]]),e(I,{limit:a(n).pageSize,"onUpdate:limit":o[2]||(o[2]=t=>a(n).pageSize=t),page:a(n).pageNo,"onUpdate:page":o[3]||(o[3]=t=>a(n).pageNo=t),total:a(w),onPagination:m},null,8,["limit","page","total"])]),_:1})],64)}}});export{te as default};