1 |
- import{d as X,Q as Y,u as Z,r as i,x as j,w as G,b as H,au as I,a3 as J,o as u,c as L,f as a,B as e,a as t,a4 as $,E as m,k as c,A as d,a2 as aa,F as ea,a8 as ta,V as la,_ as ra,K as oa,W as na,X as sa,Y as _a,Z as ia,__tla as ua}from"./index-e8bff8cb.js";import{_ as ma,__tla as pa}from"./Dialog-4d17ac25.js";import{_ as ca,__tla as da}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{_ as fa,__tla as ya}from"./DictTag.vue_vue_type_script_lang-23f1740b.js";import{_ as ha,__tla as ga}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{D as ba,__tla as ka}from"./dict-4a54e490.js";import{d as wa,__tla as Ca}from"./formatTime-4fdd5566.js";import{a as va,d as xa,g as Va,__tla as Sa}from"./index-a83fb35f.js";import{b as Fa}from"./formCreate-a3356cdc.js";import{u as Na,__tla as Ua}from"./useMessage-de42a595.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as qa}from"./index-35928fe5.js";import"./color-6e929987.js";import{__tla as Pa}from"./el-card-f9558d99.js";let P,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 Ua}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{P=X({name:"BpmForm",__name:"index",setup(Ba){const C=Na(),{t:z}=Y(),{currentRoute:B,push:K}=Z(),h=i(!0),v=i(0),x=i([]),o=j({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()},M=()=>{V.value.resetFields(),g()},S=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),K(r)},f=i(!1),b=i({rule:[],option:{}});return G(()=>B.value,()=>{p()},{immediate:!0}),H(()=>{p()}),(n,r)=>{const R=ta,F=la,k=ra,s=oa,T=na,N=ha,_=sa,A=fa,E=_a,O=ca,D=I("form-create"),Q=ma,y=J("hasPermi"),W=ia;return u(),L(ea,null,[a(N,null,{default:e(()=>[a(T,{ref_key:"queryFormRef",ref:V,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(F,{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(F,null,{default:e(()=>[a(s,{onClick:g},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:search"}),m(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:M},{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(N,null,{default:e(()=>[c((u(),d(E,{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(A,{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:U=>S(l.row.id)},{default:e(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((u(),d(s,{link:"",onClick:U=>(async w=>{const q=await Va(w);Fa(b,q.conf,q.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:U=>(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(O,{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(Q,{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(D,{option:t(b).option,rule:t(b).rule},null,8,["option","rule"])]),_:1},8,["modelValue"])],64)}}})});export{za as __tla,P as default};
|