1 |
- import{_ as N,__tla as P}from"./Dialog-4c960d8c.js";import{d as R,u as T,Z as z,r as _,x as J,b as L,o as p,c as b,f as e,A as l,a as t,D as n,F as v,Q,C as Z,E as j,a1 as G,P as H,_ as I,J as K,a8 as W,U as X,as as Y,at as $,V as aa,__tla as ea}from"./index-1f518666.js";import{_ as ta,__tla as la}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{a as ra,D as sa,__tla as ua}from"./dict-167d9193.js";import{C as oa}from"./constants-c811e5ff.js";import{g as _a,c as ma,u as na,__tla as da}from"./index-4b63675d.js";import{E as ca,__tla as ia}from"./index.es-3771ff98.js";import{s as fa,e as pa,a as ya}from"./formCreate-a3356cdc.js";import{u as ha,__tla as Va}from"./tagsView-5f5ec285.js";import{u as ba,__tla as va}from"./useMessage-633c11d2.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ga}from"./el-card-955661ed.js";let g,ka=Promise.all([(()=>{try{return P}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ga}catch{}})()]).then(async()=>{g=R({name:"BpmFormEditor",__name:"index",setup(wa){const{t:y}=H(),h=ba(),{push:k,currentRoute:w}=T(),{query:x}=z(),{delView:C}=ha(),m=_(),o=_(!1),d=_(!1),s=_({name:"",status:oa.ENABLE,remark:""}),U=J({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"}]}),c=_(),E=()=>{o.value=!0},S=async()=>{if(c&&await c.value.validate()){d.value=!0;try{const u=s.value;u.conf=pa(m),u.fields=ya(m),u.id?(await na(u),h.success(y("common.updateSuccess"))):(await ma(u),h.success(y("common.createSuccess"))),o.value=!1,q()}finally{d.value=!1}}},q=()=>{C(t(w)),k("/bpm/manager/form")};return L(async()=>{const u=x.id;if(!u)return;const a=await _a(u);s.value=a,fa(m,a.conf,a.fields)}),(u,a)=>{const A=I,i=K,D=ta,V=W,f=X,O=Y,B=$,F=aa,M=N;return p(),b(v,null,[e(D,null,{default:l(()=>[e(t(ca),{ref_key:"designer",ref:m,height:"780px"},{handle:l(()=>[e(i,{round:"",size:"small",type:"primary",onClick:E},{default:l(()=>[e(A,{class:"mr-5px",icon:"ep:plus"}),n(" \u4FDD\u5B58 ")]),_:1})]),_:1},512)]),_:1}),e(M,{modelValue:t(o),"onUpdate:modelValue":a[4]||(a[4]=r=>G(o)?o.value=r:null),title:"\u4FDD\u5B58\u8868\u5355",width:"600"},{footer:l(()=>[e(i,{disabled:t(d),type:"primary",onClick:S},{default:l(()=>[n("\u786E \u5B9A")]),_:1},8,["disabled"]),e(i,{onClick:a[3]||(a[3]=r=>o.value=!1)},{default:l(()=>[n("\u53D6 \u6D88")]),_:1})]),default:l(()=>[e(F,{ref_key:"formRef",ref:c,model:t(s),rules:t(U),"label-width":"80px"},{default:l(()=>[e(f,{label:"\u8868\u5355\u540D",prop:"name"},{default:l(()=>[e(V,{modelValue:t(s).name,"onUpdate:modelValue":a[0]||(a[0]=r=>t(s).name=r),placeholder:"\u8BF7\u8F93\u5165\u8868\u5355\u540D"},null,8,["modelValue"])]),_:1}),e(f,{label:"\u72B6\u6001",prop:"status"},{default:l(()=>[e(B,{modelValue:t(s).status,"onUpdate:modelValue":a[1]||(a[1]=r=>t(s).status=r)},{default:l(()=>[(p(!0),b(v,null,Q(t(ra)(t(sa).COMMON_STATUS),r=>(p(),Z(O,{key:r.value,label:r.value},{default:l(()=>[n(j(r.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(f,{label:"\u5907\u6CE8",prop:"remark"},{default:l(()=>[e(V,{modelValue:t(s).remark,"onUpdate:modelValue":a[2]||(a[2]=r=>t(s).remark=r),placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8",type:"textarea"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])],64)}}})});export{ka as __tla,g as default};
|