1 |
- import{_ as F,__tla as H}from"./Dialog-82c2009c.js";import{d as J,u as M,O as N,r as _,f as T,B as j,o as p,c as b,i as e,w as t,a as l,j as n,F as V,k as K,l as L,t as P,y as X,n as G,v as I,J as Q,U as W,H as Y,ag as Z,ah as $,K as aa,_ as ea,__tla as la}from"./index-afaf388d.js";import{_ as ta,__tla as ra}from"./ContentWrap-abe0694e.js";import{a as sa,D as ua,__tla as oa}from"./dict-0449a0a1.js";import{C as _a}from"./constants-a1da293a.js";import{g as ma,c as na,u as da,__tla as ia}from"./index-b37fa3b3.js";import{E as ca,__tla as fa}from"./index.es-e701d955.js";import{s as pa,e as ya,a as ha}from"./formCreate-a3356cdc.js";import{u as va,__tla as ba}from"./tagsView-ea7887b8.js";import{u as Va,__tla as ka}from"./useMessage-a290df31.js";import{__tla as ga}from"./el-card-9c18d881.js";let k,wa=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return ga}catch{}})()]).then(async()=>{k=ea(J({name:"BpmFormEditor",__name:"index",setup(xa){const{t:y}=G(),h=Va(),{push:g,currentRoute:w}=M(),{query:x}=N(),{delView:C}=va(),m=_(),o=_(!1),d=_(!1),s=_({name:"",status:_a.ENABLE,remark:""}),U=T({name:[{required:!0,message:"\u8868\u5355\u540D\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}],status:[{required:!0,message:"\u5F00\u542F\u72B6\u6001\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),i=_(),q=()=>{o.value=!0},B=async()=>{if(i&&await i.value.validate()){d.value=!0;try{const u=s.value;u.conf=ya(m),u.fields=ha(m),u.id?(await da(u),h.success(y("common.updateSuccess"))):(await na(u),h.success(y("common.createSuccess"))),o.value=!1,E()}finally{d.value=!1}}},E=()=>{C(l(w)),g("/bpm/manager/form")};return j(async()=>{const u=x.id;if(!u)return;const a=await ma(u);s.value=a,pa(m,a.conf,a.fields)}),(u,a)=>{const S=I,c=Q,z=ta,v=W,f=Y,O=Z,R=$,A=aa,D=F;return p(),b(V,null,[e(z,null,{default:t(()=>[e(l(ca),{ref_key:"designer",ref:m,height:"780px"},{handle:t(()=>[e(c,{round:"",size:"small",type:"primary",onClick:q},{default:t(()=>[e(S,{class:"mr-5px",icon:"ep:plus"}),n(" \u4FDD\u5B58 ")]),_:1})]),_:1},512)]),_:1}),e(D,{modelValue:l(o),"onUpdate:modelValue":a[4]||(a[4]=r=>X(o)?o.value=r:null),title:"\u4FDD\u5B58\u8868\u5355",width:"600"},{footer:t(()=>[e(c,{disabled:l(d),type:"primary",onClick:B},{default:t(()=>[n("\u786E \u5B9A")]),_:1},8,["disabled"]),e(c,{onClick:a[3]||(a[3]=r=>o.value=!1)},{default:t(()=>[n("\u53D6 \u6D88")]),_:1})]),default:t(()=>[e(A,{ref_key:"formRef",ref:i,model:l(s),rules:l(U),"label-width":"80px"},{default:t(()=>[e(f,{label:"\u8868\u5355\u540D",prop:"name"},{default:t(()=>[e(v,{modelValue:l(s).name,"onUpdate:modelValue":a[0]||(a[0]=r=>l(s).name=r),placeholder:"\u8BF7\u8F93\u5165\u8868\u5355\u540D"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(R,{modelValue:l(s).status,"onUpdate:modelValue":a[1]||(a[1]=r=>l(s).status=r)},{default:t(()=>[(p(!0),b(V,null,K(l(sa)(l(ua).COMMON_STATUS),r=>(p(),L(O,{key:r.value,label:r.value},{default:t(()=>[n(P(r.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u5907\u6CE8",prop:"remark"},{default:t(()=>[e(v,{modelValue:l(s).remark,"onUpdate:modelValue":a[2]||(a[2]=r=>l(s).remark=r),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/form/editor/index.vue"]])});export{wa as __tla,k as default};
|