import{d as J,Q as K,J as Q,r as n,A as W,b as X,a1 as Z,o as s,c as N,k as e,B as t,a as l,a2 as $,F as R,i as j,dA as D,N as f,g as m,O as d,P as _,a7 as G,S as H,$ as ee,R as ae,U as le,V as te,W as re,X as oe,Y as pe,Z as se}from"./index-BP6bNRoi.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{_ as ie}from"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import{_ as ue}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as ce}from"./formatTime-DwR9f7DP.js";import{P as V}from"./index-BRcqC2Y4.js";import{_ as me}from"./ProcessListenerForm.vue_vue_type_script_setup_true_lang-DiFHzMsr.js";import"./index-BZESAUPP.js";import"./color-DXkOL5Tu.js";import"./el-card-bU92WWV4.js";import"./Dialog.vue_vue_type_style_index_0_lang-DFckl8Er.js";import"./constants-CuOBQ73z.js";const de=J({name:"BpmProcessListener",__name:"index",setup(fe){const w=K(),{t:L}=Q(),y=n(!0),k=n([]),E=n(0),o=W({pageNo:1,pageSize:10,name:void 0,type:void 0,event:void 0}),C=n();n(!1);const i=async()=>{y.value=!0;try{const u=await V.getProcessListenerPage(o);k.value=u.list,E.value=u.total}finally{y.value=!1}},v=()=>{o.pageNo=1,i()},U=()=>{C.value.resetFields(),v()},T=n(),x=(u,r)=>{T.value.open(u,r)};return X(()=>{i()}),(u,r)=>{const O=G,g=H,A=ee,B=ae,b=le,c=te,M=re,h=ue,p=oe,P=ie,Y=pe,z=ne,S=Z("hasPermi"),F=se;return s(),N(R,null,[e(h,null,{default:t(()=>[e(M,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"85px"},{default:t(()=>[e(g,{label:"\u540D\u5B57",prop:"name"},{default:t(()=>[e(O,{modelValue:l(o).name,"onUpdate:modelValue":r[0]||(r[0]=a=>l(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u540D\u5B57",clearable:"",onKeyup:$(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(g,{label:"\u7C7B\u578B",prop:"type"},{default:t(()=>[e(B,{modelValue:l(o).type,"onUpdate:modelValue":r[1]||(r[1]=a=>l(o).type=a),placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:t(()=>[(s(!0),N(R,null,j(l(D)(l(f).BPM_PROCESS_LISTENER_TYPE),a=>(s(),m(A,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:t(()=>[e(c,{onClick:v},{default:t(()=>[e(b,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22")]),_:1}),e(c,{onClick:U},{default:t(()=>[e(b,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E")]),_:1}),_((s(),m(c,{type:"primary",plain:"",onClick:r[2]||(r[2]=a=>x("create"))},{default:t(()=>[e(b,{icon:"ep:plus",class:"mr-5px"}),d(" \u65B0\u589E ")]),_:1})),[[S,["bpm:process-listener:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(h,null,{default:t(()=>[_((s(),m(Y,{data:l(k),stripe:!0,"show-overflow-tooltip":!0},{default:t(()=>[e(p,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(p,{label:"\u540D\u5B57",align:"center",prop:"name"}),e(p,{label:"\u7C7B\u578B",align:"center",prop:"type"},{default:t(a=>[e(P,{type:l(f).BPM_PROCESS_LISTENER_TYPE,value:a.row.type},null,8,["type","value"])]),_:1}),e(p,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(a=>[e(P,{type:l(f).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(p,{label:"\u4E8B\u4EF6",align:"center",prop:"event"}),e(p,{label:"\u503C\u7C7B\u578B",align:"center",prop:"valueType"},{default:t(a=>[e(P,{type:l(f).BPM_PROCESS_LISTENER_VALUE_TYPE,value:a.row.valueType},null,8,["type","value"])]),_:1}),e(p,{label:"\u503C",align:"center",prop:"value"}),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(ce),width:"180px"},null,8,["formatter"]),e(p,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[_((s(),m(c,{link:"",type:"primary",onClick:I=>x("update",a.row.id)},{default:t(()=>[d(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[S,["bpm:process-listener:update"]]]),_((s(),m(c,{link:"",type:"danger",onClick:I=>(async q=>{try{await w.delConfirm(),await V.deleteProcessListener(q),w.success(L("common.delSuccess")),await i()}catch{}})(a.row.id)},{default:t(()=>[d(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[S,["bpm:process-listener:delete"]]])]),_:1})]),_:1},8,["data"])),[[F,l(y)]]),e(z,{total:l(E),page:l(o).pageNo,"onUpdate:page":r[3]||(r[3]=a=>l(o).pageNo=a),limit:l(o).pageSize,"onUpdate:limit":r[4]||(r[4]=a=>l(o).pageSize=a),onPagination:i},null,8,["total","page","limit"])]),_:1}),e(me,{ref_key:"formRef",ref:T,onSuccess:i},null,512)],64)}}});export{de as default};
|