1 |
- import{d as H,h as Q,u as I,r as i,e as J,K as L,k as W,aj as X,P as Y,o as m,c as Z,f as a,w as e,a as t,Q as $,m as u,v as c,q as d,N as aa,F as ea,U as ta,z as la,_ as ra,B as oa,C as na,D as sa,G as _a,H as ia,__tla as ma}from"./index-2eab2d23.js";import{_ as ua,__tla as pa}from"./Dialog-c2716df6.js";import{_ as ca,__tla as da}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as fa,__tla as ya}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as ha,__tla as ga}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{D as ba,__tla as ka}from"./dict-1ad71b6f.js";import{d as wa,__tla as Ca}from"./formatTime-41155543.js";import{a as va,d as xa,g as Na,__tla as Sa}from"./index-33fac884.js";import{b as Ua}from"./formCreate-a3356cdc.js";import{u as Va,__tla as Fa}from"./useMessage-171aa63e.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Pa}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as qa}from"./el-card-c558f0ec.js";let q,za=Promise.all([(()=>{try{return ma}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 Fa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return qa}catch{}})()]).then(async()=>{q=H({name:"BpmForm",__name:"index",setup(Ba){const C=Va(),{t:z}=Q(),{currentRoute:B,push:D}=I(),h=i(!0),v=i(0),x=i([]),o=J({pageNo:1,pageSize:10,name:null}),N=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()},K=()=>{N.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 L(()=>B.value,()=>{p()},{immediate:!0}),W(()=>{p()}),(n,r)=>{const T=ta,U=la,k=ra,s=oa,A=na,V=ha,_=sa,E=fa,M=_a,O=ca,R=X("form-create"),j=ua,y=Y("hasPermi"),G=ia;return m(),Z(ea,null,[a(V,null,{default:e(()=>[a(A,{ref_key:"queryFormRef",ref:N,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(U,{label:"\u8868\u5355\u540D",prop:"name"},{default:e(()=>[a(T,{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"}),u(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:K},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:refresh"}),u(" \u91CD\u7F6E ")]),_:1}),c((m(),d(s,{plain:"",type:"primary",onClick:S},{default:e(()=>[a(k,{class:"mr-5px",icon:"ep:plus"}),u(" \u65B0\u589E ")]),_:1})),[[y,["bpm:form:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(V,null,{default:e(()=>[c((m(),d(M,{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(E,{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((m(),d(s,{link:"",type:"primary",onClick:F=>S(l.row.id)},{default:e(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((m(),d(s,{link:"",onClick:F=>(async w=>{const P=await Na(w);Ua(b,P.conf,P.fields),f.value=!0})(l.row.id)},{default:e(()=>[u(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:query"]]]),c((m(),d(s,{link:"",type:"danger",onClick:F=>(async w=>{try{await C.delConfirm(),await xa(w),C.success(z("common.delSuccess")),await p()}catch{}})(l.row.id)},{default:e(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,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(j,{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(R,{option:t(b).option,rule:t(b).rule},null,8,["option","rule"])]),_:1},8,["modelValue"])],64)}}})});export{za as __tla,q as default};
|