1 |
- import{d as I,i as J,u as K,r as _,f as j,M as L,l as Q,al as X,R as Y,o as m,c as Z,g as a,w as e,a as t,S as $,n as u,y as c,x as d,P as aa,F as ea,W as ta,B as la,q as ra,D as oa,G as na,H as sa,I as ia,J as _a,_ as ma,__tla as ua}from"./index-52b99925.js";import{_ as pa,__tla as ca}from"./Dialog-01a79427.js";import{_ as da,__tla as fa}from"./index-34771a13.js";import{_ as ya,__tla as ga}from"./DictTag-559e7235.js";import{_ as ha,__tla as ba}from"./ContentWrap-b4eafcae.js";import{D as wa,__tla as ka}from"./dict-954b1420.js";import{d as va,__tla as xa}from"./formatTime-16b790f5.js";import{a as Ca,d as Sa,g as Va,__tla as za}from"./index-4c8ce7dc.js";import{b as Fa}from"./formCreate-a3356cdc.js";import{u as Na,__tla as Ua}from"./useMessage-c41e583e.js";import{__tla as qa}from"./index-af0729b2.js";import"./color-6e929987.js";import{__tla as Ma}from"./el-card-1538e136.js";let q,Pa=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ma}catch{}})()]).then(async()=>{q=ma(I({name:"BpmForm",__name:"index",setup(Ra){const v=Na(),{t:M}=J(),{currentRoute:P,push:R}=K(),g=_(!0),x=_(0),C=_([]),o=j({pageNo:1,pageSize:10,name:null}),S=_(),p=async()=>{g.value=!0;try{const n=await Ca(o);C.value=n.list,x.value=n.total}finally{g.value=!1}},h=()=>{o.pageNo=1,p()},B=()=>{S.value.resetFields(),h()},V=n=>{const r={name:"BpmFormEditor"};typeof n=="number"&&(r.query={id:n}),R(r)},f=_(!1),b=_({rule:[],option:{}});return L(()=>P.value,()=>{p()},{immediate:!0}),Q(()=>{p()}),(n,r)=>{const D=ta,z=la,w=ra,s=oa,T=na,F=ha,i=sa,A=ya,E=ia,O=da,W=X("form-create"),G=pa,y=Y("hasPermi"),H=_a;return m(),Z(ea,null,[a(F,null,{default:e(()=>[a(T,{ref_key:"queryFormRef",ref:S,inline:!0,model:t(o),class:"-mb-15px","label-width":"68px"},{default:e(()=>[a(z,{label:"\u8868\u5355\u540D",prop:"name"},{default:e(()=>[a(D,{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:$(h,["enter"])},null,8,["modelValue"])]),_:1}),a(z,null,{default:e(()=>[a(s,{onClick:h},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:search"}),u(" \u641C\u7D22 ")]),_:1}),a(s,{onClick:B},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:refresh"}),u(" \u91CD\u7F6E ")]),_:1}),c((m(),d(s,{plain:"",type:"primary",onClick:V},{default:e(()=>[a(w,{class:"mr-5px",icon:"ep:plus"}),u(" \u65B0\u589E ")]),_:1})),[[y,["bpm:form:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(F,null,{default:e(()=>[c((m(),d(E,{data:t(C)},{default:e(()=>[a(i,{align:"center",label:"\u7F16\u53F7",prop:"id"}),a(i,{align:"center",label:"\u8868\u5355\u540D",prop:"name"}),a(i,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:e(l=>[a(A,{type:t(wa).COMMON_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),a(i,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),a(i,{formatter:t(va),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},null,8,["formatter"]),a(i,{align:"center",label:"\u64CD\u4F5C"},{default:e(l=>[c((m(),d(s,{link:"",type:"primary",onClick:N=>V(l.row.id)},{default:e(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:update"]]]),c((m(),d(s,{link:"",onClick:N=>(async k=>{const U=await Va(k);Fa(b,U.conf,U.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:N=>(async k=>{try{await v.delConfirm(),await Sa(k),v.success(M("common.delSuccess")),await p()}catch{}})(l.row.id)},{default:e(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["bpm:form:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,t(g)]]),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(x),onPagination:p},null,8,["limit","page","total"])]),_:1}),a(G,{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(W,{option:t(b).option,rule:t(b).rule},null,8,["option","rule"])]),_:1},8,["modelValue"])],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/form/index.vue"]])});export{Pa as __tla,q as default};
|