import{d as M,u as Y,r as i,A as C,b as P,o as y,c as z,k as e,B as t,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 E,X as G,Y as J,Z as L}from"./index-CHTXMeh8.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{_ as $}from"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import{_ as ee}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{d as g,a as ae}from"./formatTime-DG99nHw2.js";import{h as le}from"./index-vcfoyZY6.js";import"./index-DVe591HI.js";import"./color-DXkOL5Tu.js";import"./el-card-Bdk9qx7q.js";const te=M({name:"BpmTodoTask",__name:"index",setup(re){const{push:k}=Y(),p=i(!0),w=i(0),h=i([]),o=C({pageNo:1,pageSize:10,name:"",createTime:[]}),_=i(),m=async()=>{p.value=!0;try{const u=await le(o);h.value=u.list,w.value=u.total}finally{p.value=!1}},d=()=>{o.pageNo=1,m()},x=()=>{_.value.resetFields(),d()};return P(()=>{m()}),(u,n)=>{const S=R,c=W,U=X,b=Z,f=j,V=E,T=ee,r=G,D=$,I=J,N=Q,B=L;return y(),z(O,null,[e(T,null,{default:t(()=>[e(V,{ref_key:"queryFormRef",ref:_,inline:!0,model:a(o),class:"-mb-15px","label-width":"68px"},{default:t(()=>[e(c,{label:"\u4EFB\u52A1\u540D\u79F0",prop:"name"},{default:t(()=>[e(S,{modelValue:a(o).name,"onUpdate:modelValue":n[0]||(n[0]=l=>a(o).name=l),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:t(()=>[e(U,{modelValue:a(o).createTime,"onUpdate:modelValue":n[1]||(n[1]=l=>a(o).createTime=l),"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:t(()=>[e(f,{onClick:d},{default:t(()=>[e(b,{class:"mr-5px",icon:"ep:search"}),s(" \u641C\u7D22 ")]),_:1}),e(f,{onClick:x},{default:t(()=>[e(b,{class:"mr-5px",icon:"ep:refresh"}),s(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(T,null,{default:t(()=>[F((y(),q(I,{data:a(h)},{default:t(()=>[e(r,{align:"center",label:"\u6D41\u7A0B",prop:"processInstance.name",width:"180"}),e(r,{align:"center",label:"\u53D1\u8D77\u4EBA",prop:"processInstance.startUser.nickname",width:"100"}),e(r,{formatter:a(g),align:"center",label:"\u53D1\u8D77\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(r,{align:"center",label:"\u5F53\u524D\u4EFB\u52A1",prop:"name",width:"180"}),e(r,{formatter:a(g),align:"center",label:"\u4EFB\u52A1\u5F00\u59CB\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),e(r,{formatter:a(g),align:"center",label:"\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4",prop:"endTime",width:"180"},null,8,["formatter"]),e(r,{align:"center",label:"\u5BA1\u6279\u72B6\u6001",prop:"status",width:"120"},{default:t(l=>[e(D,{type:a(H).BPM_TASK_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),e(r,{align:"center",label:"\u5BA1\u6279\u5EFA\u8BAE",prop:"reason","min-width":"180"}),e(r,{align:"center",label:"\u8017\u65F6",prop:"durationInMillis",width:"160"},{default:t(l=>[s(K(a(ae)(l.row.durationInMillis)),1)]),_:1}),e(r,{align:"center",label:"\u6D41\u7A0B\u7F16\u53F7",prop:"id","show-overflow-tooltip":!0}),e(r,{align:"center",label:"\u4EFB\u52A1\u7F16\u53F7",prop:"id","show-overflow-tooltip":!0}),e(r,{align:"center",label:"\u64CD\u4F5C",fixed:"right",width:"80"},{default:t(l=>[e(f,{link:"",type:"primary",onClick:oe=>{return v=l.row,void k({name:"BpmProcessInstanceDetail",query:{id:v.processInstance.id}});var v}},{default:t(()=>[s("\u5386\u53F2")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,a(p)]]),e(N,{limit:a(o).pageSize,"onUpdate:limit":n[2]||(n[2]=l=>a(o).pageSize=l),page:a(o).pageNo,"onUpdate:page":n[3]||(n[3]=l=>a(o).pageNo=l),total:a(w),onPagination:m},null,8,["limit","page","total"])]),_:1})],64)}}});export{te as default};