MailAccountForm-0857a956.js 3.7 KB

1
  1. import{d as S,h as C,r as c,o as R,v as V,w as o,f as u,a as e,n as h,x as b,O as g,C as A,I as U,_ as j,__tla as I}from"./index-11e4820e.js";import{_ as z,__tla as D}from"./Dialog-bbfaf85c.js";import{_ as E,__tla as H}from"./Form-bdf04c6b.js";import{g as O,c as P,u as X,__tla as q}from"./index-ff491970.js";import{r as B,a as G,__tla as J}from"./account.data-65421fb7.js";import{u as K,__tla as L}from"./useMessage-06ddf735.js";import{__tla as N}from"./el-virtual-list-5114e5c2.js";import{__tla as Q}from"./el-tree-select-beee4f04.js";import{__tla as T}from"./el-time-select-92a99e05.js";import{__tla as W}from"./InputPassword-2273b9ca.js";import{__tla as Y}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-fd75f8c7.js";import{__tla as Z}from"./Editor-0f5cadc2.js";import{__tla as $}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-8854a0f2.js";import{__tla as tt}from"./index-4203485c.js";import{__tla as at}from"./el-image-viewer-c4f5814f.js";import{__tla as rt}from"./UploadImg-a1807be8.js";import{__tla as _t}from"./UploadImgs-0c26a9a3.js";import{__tla as et}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-fafbf7e3.js";import{__tla as lt}from"./UploadFile-1c802daa.js";import{__tla as ct}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-bab9318f.js";import{__tla as ot}from"./fixed-size-list-9d501189.js";import{__tla as st}from"./formatTime-f6a2c881.js";import{__tla as mt}from"./formRules-a3633e47.js";import{__tla as ut}from"./dict-4072dcec.js";import{__tla as nt}from"./useCrudSchemas-06af04e6.js";import"./tree-0af4953a.js";import{__tla as it}from"./DictTag-e41ec8de.js";import"./color-6e929987.js";let v,ft=Promise.all([(()=>{try{return I}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return J}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return at}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return it}catch{}})()]).then(async()=>{v=j(S({name:"SystemMailAccountForm",__name:"MailAccountForm",emits:["success"],setup(yt,{expose:d,emit:w}){const{t:s}=C(),n=K(),a=c(!1),i=c(""),r=c(!1),f=c(""),l=c();d({open:async(_,t)=>{if(a.value=!0,i.value=s("action."+_),f.value=_,t){r.value=!0;try{const m=await O(t);l.value.setValues(m)}finally{r.value=!1}}}});const k=w,x=async()=>{if(l&&await l.value.getElFormRef().validate()){r.value=!0;try{const _=l.value.formModel;f.value==="create"?(await P(_),n.success(s("common.createSuccess"))):(await X(_),n.success(s("common.updateSuccess"))),a.value=!1,k("success")}finally{r.value=!1}}};return(_,t)=>{const m=E,y=A,F=z,M=U;return R(),V(F,{modelValue:e(a),"onUpdate:modelValue":t[1]||(t[1]=p=>g(a)?a.value=p:null),title:e(i)},{footer:o(()=>[u(y,{disabled:e(r),type:"primary",onClick:x},{default:o(()=>[h("\u786E \u5B9A")]),_:1},8,["disabled"]),u(y,{onClick:t[0]||(t[0]=p=>a.value=!1)},{default:o(()=>[h("\u53D6 \u6D88")]),_:1})]),default:o(()=>[b(u(m,{ref_key:"formRef",ref:l,rules:e(B),schema:e(G).formSchema},null,8,["rules","schema"]),[[M,e(r)]])]),_:1},8,["modelValue","title"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/system/mail/account/MailAccountForm.vue"]])});export{ft as __tla,v as default};