1 |
- var M=Object.defineProperty;var y=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var d=(t,a,r)=>a in t?M(t,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[a]=r,g=(t,a)=>{for(var r in a||(a={}))R.call(a,r)&&d(t,r,a[r]);if(y)for(var r of y(a))T.call(a,r)&&d(t,r,a[r]);return t};var n=(t,a,r)=>new Promise((e,s)=>{var l=_=>{try{c(r.next(_))}catch(m){s(m)}},i=_=>{try{c(r.throw(_))}catch(m){s(m)}},c=_=>_.done?e(_.value):Promise.resolve(_.value).then(l,i);c((r=r.apply(t,a)).next())});import{B as A,u as L,__tla as q}from"./index-016fd85f.js";import{B as x,a as C,__tla as O}from"./index-5eb30ce0.js";import{d as V,r as P,u as f,A as N,a4 as U,E as $,_ as E,y as b,o as G,c as W,w as j,e as z,P as H,__tla as J}from"./index-b5895273.js";import{g as K,p as Q,a as X,__tla as Y}from"./CadreDeptController-6c80066c.js";import{__tla as Z}from"./index-2a8c0b19.js";import{__tla as tt}from"./index-f35bbafa.js";import{__tla as rt}from"./index-7fb58e79.js";import{__tla as at}from"./index-7914b44e.js";import{__tla as _t}from"./index-bbe22d68.js";import{__tla as ot}from"./min-03eb9ce8.js";import{__tla as et}from"./sum-f551e4a9.js";import{__tla as lt}from"./useScript-ab5d4580.js";import{__tla as ct}from"./index-83eefeb2.js";import{__tla as mt}from"./download-801edd56.js";import"./base64Conver-39fc0d26.js";import{__tla as st}from"./index-339f95d8.js";import{__tla as it}from"./useCountdown-fd9786ef.js";import{__tla as nt}from"./index-67f9e311.js";import{__tla as pt}from"./Tree-6c35f2c0.js";import{__tla as ut}from"./useContextMenu-c4ffe073.js";import{__tla as ft}from"./difference-9954c5db.js";import{__tla as ht}from"./Index-281ee613.js";import{__tla as yt}from"./UserCard-5a5e66ad.js";import{__tla as dt}from"./index-3862eebd.js";import{__tla as gt}from"./Upload-bceb0d3c.js";import{__tla as Pt}from"./index-c53afdf5.js";import{__tla as bt}from"./upload-887cb82a.js";import"./base64-912b9db4.js";import{__tla as wt}from"./formPermission-5236f629.js";import"./workflowEnum-a2efed5c.js";import{__tla as Bt}from"./designHelper-fedad396.js";import{__tla as Ft}from"./index-1c9ab88b.js";import{__tla as vt}from"./design-f3e25317.js";import{__tla as Dt}from"./set-b89b8dc5.js";import{__tla as It}from"./_isIterateeCall-61185d8a.js";import{__tla as St}from"./uniqBy-b68717e0.js";import{__tla as kt}from"./index-2c5e4dd6.js";import{__tla as Mt}from"./index-9f9c48fd.js";import{__tla as Rt}from"./index-dc94981a.js";import{__tla as Tt}from"./onMountedOrActivated-6125a24a.js";import{__tla as At}from"./index-3705f1a8.js";import{__tla as Lt}from"./useWindowSizeFn-a59bee15.js";import{__tla as qt}from"./useContentViewHeight-cd147d02.js";import"./sortable.esm-de7debe0.js";import{__tla as xt}from"./RedoOutlined-105a0bcb.js";import{__tla as Ct}from"./FullscreenOutlined-012b5e27.js";import{__tla as Ot}from"./index-9d2b78f3.js";import{__tla as Vt}from"./index-49a1c061.js";import{__tla as Nt}from"./index-76a8e61b.js";import{__tla as Ut}from"./index-8ae648d6.js";import{__tla as $t}from"./index-bd1f1fae.js";let w,h,Et=Promise.all([(()=>{try{return q}catch(t){}})(),(()=>{try{return O}catch(t){}})(),(()=>{try{return J}catch(t){}})(),(()=>{try{return Y}catch(t){}})(),(()=>{try{return Z}catch(t){}})(),(()=>{try{return tt}catch(t){}})(),(()=>{try{return rt}catch(t){}})(),(()=>{try{return at}catch(t){}})(),(()=>{try{return _t}catch(t){}})(),(()=>{try{return ot}catch(t){}})(),(()=>{try{return et}catch(t){}})(),(()=>{try{return lt}catch(t){}})(),(()=>{try{return ct}catch(t){}})(),(()=>{try{return mt}catch(t){}})(),(()=>{try{return st}catch(t){}})(),(()=>{try{return it}catch(t){}})(),(()=>{try{return nt}catch(t){}})(),(()=>{try{return pt}catch(t){}})(),(()=>{try{return ut}catch(t){}})(),(()=>{try{return ft}catch(t){}})(),(()=>{try{return ht}catch(t){}})(),(()=>{try{return yt}catch(t){}})(),(()=>{try{return dt}catch(t){}})(),(()=>{try{return gt}catch(t){}})(),(()=>{try{return Pt}catch(t){}})(),(()=>{try{return bt}catch(t){}})(),(()=>{try{return wt}catch(t){}})(),(()=>{try{return Bt}catch(t){}})(),(()=>{try{return Ft}catch(t){}})(),(()=>{try{return vt}catch(t){}})(),(()=>{try{return Dt}catch(t){}})(),(()=>{try{return It}catch(t){}})(),(()=>{try{return St}catch(t){}})(),(()=>{try{return kt}catch(t){}})(),(()=>{try{return Mt}catch(t){}})(),(()=>{try{return Rt}catch(t){}})(),(()=>{try{return Tt}catch(t){}})(),(()=>{try{return At}catch(t){}})(),(()=>{try{return Lt}catch(t){}})(),(()=>{try{return qt}catch(t){}})(),(()=>{try{return xt}catch(t){}})(),(()=>{try{return Ct}catch(t){}})(),(()=>{try{return Ot}catch(t){}})(),(()=>{try{return Vt}catch(t){}})(),(()=>{try{return Nt}catch(t){}})(),(()=>{try{return Ut}catch(t){}})(),(()=>{try{return $t}catch(t){}})()]).then(()=>n(void 0,null,function*(){let t,a;({t}=U()),h=[{field:"name",label:t("\u90E8\u95E8\u540D\u79F0"),component:"Input",required:!0,colProps:{lg:24,md:24}},{field:"code",label:t("\u90E8\u95E8\u7F16\u7801"),component:"Input",rules:[{max:10,message:t("\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC710"),trigger:"blur",required:!0}],componentProps:{},colProps:{lg:24,md:24}},{field:"parentId",label:t("\u4E0A\u7EA7\u7EC4\u7EC7"),component:"TreeSelect",defaultValue:"0",componentProps:{fieldNames:{label:"name",key:"id",value:"id"},getPopupContainer:()=>document.body},colProps:{lg:24,md:24}},{field:"remark",label:t("\u5907\u6CE8"),component:"InputTextArea",colProps:{lg:24,md:24}}],a=V({name:"DeptDrawer",components:{BasicModal:x,BasicForm:A},emits:["success","register"],setup(e,{emit:s}){const l=P(!0),{notification:i}=$(),c=P(""),[_,{resetFields:m,setFieldsValue:p,updateSchema:B,validate:F}]=L({labelWidth:100,schemas:h,showActionButtonGroup:!1,baseColProps:{lg:12,md:24}}),[v,{setModalProps:u,closeModal:D}]=C(o=>n(this,null,function*(){m(),u({confirmLoading:!1}),l.value=!!(o!=null&&o.isUpdate);const k=yield K({});B({field:"parentId",componentProps:{treeData:k}}),f(l)&&(c.value=o.record.id,p(g({},o.record)))})),I=N(()=>f(l)?t("\u7F16\u8F91\u7EC4\u7EC7"):t("\u65B0\u589E\u7EC4\u7EC7"));function S(){return n(this,null,function*(){try{const o=yield F();u({confirmLoading:!0}),f(l)?(o.id=c.value,yield X(o),i.success({message:t("\u63D0\u793A"),description:t("\u7F16\u8F91\u6210\u529F")})):(yield Q(o),i.success({message:t("\u63D0\u793A"),description:t("\u65B0\u589E\u6210\u529F")})),D(),s("success")}catch(o){u({confirmLoading:!1})}})}return{registerDrawer:v,registerForm:_,getTitle:I,handleSubmit:S}}});function r(e,s,l,i,c,_){const m=b("BasicForm"),p=b("BasicModal");return G(),W(p,H(e.$attrs,{onRegister:e.registerDrawer,showFooter:"",title:e.getTitle,width:"50%",onOk:e.handleSubmit}),{default:j(()=>[z(m,{onRegister:e.registerForm},null,8,["onRegister"])]),_:1},16,["onRegister","title","onOk"])}w=E(a,[["render",r]])}));export{Et as __tla,w as default,h as formSchema};
|