index-1c4002ff.js 4.4 KB

1
  1. import{d as X,P as Y,u as j,r as i,x as G,w as H,b as I,au as L,a3 as Q,o as u,c as Z,f as a,A as e,a as t,a4 as $,D as m,k as c,C as d,a1 as aa,F as ea,a8 as ta,U as la,_ as ra,J as oa,V as na,W as sa,X as _a,Y as ia,__tla as ua}from"./index-a9d538d5.js";import{_ as ma,__tla as pa}from"./Dialog-f354f369.js";import{_ as ca,__tla as da}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{_ as fa,__tla as ya}from"./DictTag.vue_vue_type_script_lang-9e4dd0a0.js";import{_ as ha,__tla as ga}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{D as ba,__tla as ka}from"./dict-0e53af99.js";import{d as wa,__tla as Ca}from"./formatTime-8985a9d0.js";import{a as va,d as xa,g as Va,__tla as Sa}from"./index-c779a687.js";import{b as Ua}from"./formCreate-a3356cdc.js";import{u as Fa,__tla as Na}from"./useMessage-d5cbbfad.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Pa}from"./index-95ad39b3.js";import"./color-6e929987.js";import{__tla as qa}from"./el-card-0ea446a3.js";let q,za=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return qa}catch{}})()]).then(async()=>{q=X({name:"BpmForm",__name:"index",setup(Aa){const C=Fa(),{t:z}=Y(),{currentRoute:A,push:D}=j(),h=i(!0),v=i(0),x=i([]),o=G({pageNo:1,pageSize:10,name:null}),V=i(),p=async()=>{h.value=!0;try{const n=await va(o);x.value=n.list,v.value=n.total}finally{h.value=!1}},g=()=>{o.pageNo=1,p()},O=()=>{V.value.resetFields(),g()},S=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),D(r)},f=i(!1),b=i({rule:[],option:{}});return H(()=>A.value,()=>{p()},{immediate:!0}),I(()=>{p()}),(n,r)=>{const R=ta,U=la,k=ra,s=oa,T=na,F=ha,_=sa,B=fa,J=_a,M=ca,E=L("form-create"),K=ma,y=Q("hasPermi"),W=ia;return u(),Z(ea,null,[a(F,null,{default:e(()=>[a(T,{ref_key:"queryFormRef",ref:V,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(U,{label:"\u8868\u5355\u540D",prop:"name"},{default:e(()=>[a(R,{modelValue:t(o).name,"onUpdate:modelValue":r[0]||(r[0]=l=>t(o).name=l),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8868\u5355\u540D",onKeyup:$(g,["enter"])},null,8,["modelValue"])]),_:1}),a(U,null,{default:e(()=>[a(s,{onClick:g},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:search"}),m(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:O},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:refresh"}),m(" \u91CD\u7F6E ")]),_:1}),c((u(),d(s,{plain:"",type:"primary",onClick:S},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:plus"}),m(" \u65B0\u589E ")]),_:1})),[[y,["bpm:form:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(F,null,{default:e(()=>[c((u(),d(J,{data:t(x)},{default:e(()=>[a(_,{align:"center",label:"\u7F16\u53F7",prop:"id"}),a(_,{align:"center",label:"\u8868\u5355\u540D",prop:"name"}),a(_,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:e(l=>[a(B,{type:t(ba).COMMON_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),a(_,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),a(_,{formatter:t(wa),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},null,8,["formatter"]),a(_,{align:"center",label:"\u64CD\u4F5C"},{default:e(l=>[c((u(),d(s,{link:"",type:"primary",onClick:N=>S(l.row.id)},{default:e(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((u(),d(s,{link:"",onClick:N=>(async w=>{const P=await Va(w);Ua(b,P.conf,P.fields),f.value=!0})(l.row.id)},{default:e(()=>[m(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:query"]]]),c((u(),d(s,{link:"",type:"danger",onClick:N=>(async w=>{try{await C.delConfirm(),await xa(w),C.success(z("common.delSuccess")),await p()}catch{}})(l.row.id)},{default:e(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:delete"]]])]),_:1})]),_:1},8,["data"])),[[W,t(h)]]),a(M,{limit:t(o).pageSize,"onUpdate:limit":r[1]||(r[1]=l=>t(o).pageSize=l),page:t(o).pageNo,"onUpdate:page":r[2]||(r[2]=l=>t(o).pageNo=l),total:t(v),onPagination:p},null,8,["limit","page","total"])]),_:1}),a(K,{modelValue:t(f),"onUpdate:modelValue":r[3]||(r[3]=l=>aa(f)?f.value=l:null),title:"\u8868\u5355\u8BE6\u60C5",width:"800"},{default:e(()=>[a(E,{option:t(b).option,rule:t(b).rule},null,8,["option","rule"])]),_:1},8,["modelValue"])],64)}}})});export{za as __tla,q as default};