1 |
- import{d as S,B as b,r as c,o as R,k as V,w as o,i as u,a as e,l as h,D as g,R as A,s as D,M as j,_ as z,__tla as C}from"./index-66208f93.js";import{_ as U,__tla as B}from"./Dialog-948825d3.js";import{_ as E,__tla as I}from"./Form-c394334a.js";import{g as P,c as q,u as G,__tla as H}from"./index-963ddc50.js";import{r as J,a as K,__tla as L}from"./account.data-a4d97ef3.js";import{u as N,__tla as O}from"./useMessage-798a77de.js";import{__tla as Q}from"./el-virtual-list-5dd75188.js";import{__tla as T}from"./el-tree-select-18149140.js";import{__tla as W}from"./el-time-select-1a6cfe6c.js";import{__tla as X}from"./InputPassword-b6878da9.js";import{__tla as Y}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-3377cbc9.js";import{__tla as Z}from"./Editor-f3155aea.js";import{__tla as $}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-e54b32e6.js";import{__tla as tt}from"./index-4eee12bb.js";import{__tla as at}from"./el-image-viewer-3d1b9860.js";import{__tla as rt}from"./UploadImg-866c0e44.js";import{__tla as _t}from"./UploadImgs-d50ddd75.js";import{__tla as et}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-d74843b7.js";import{__tla as lt}from"./UploadFile-42f0eb7b.js";import{__tla as ct}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-fc10c60c.js";import{__tla as ot}from"./formatTime-54a7e363.js";import{__tla as st}from"./formRules-f0247544.js";import{__tla as mt}from"./dict-6d253095.js";import{__tla as ut}from"./useCrudSchemas-bb1700e2.js";import"./tree-0af4953a.js";import{__tla as nt}from"./DictTag-2782f106.js";import"./color-6e929987.js";let v,it=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return T}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return X}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{}})()]).then(async()=>{v=z(S({name:"SystemMailAccountForm",__name:"MailAccountForm",emits:["success"],setup(ft,{expose:d,emit:w}){const{t:s}=b(),n=N(),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 P(t);l.value.setValues(m)}finally{r.value=!1}}}});const M=w,k=async()=>{if(l&&await l.value.getElFormRef().validate()){r.value=!0;try{const _=l.value.formModel;f.value==="create"?(await q(_),n.success(s("common.createSuccess"))):(await G(_),n.success(s("common.updateSuccess"))),a.value=!1,M("success")}finally{r.value=!1}}};return(_,t)=>{const m=E,y=D,x=U,F=j;return R(),V(x,{modelValue:e(a),"onUpdate:modelValue":t[1]||(t[1]=p=>A(a)?a.value=p:null),title:e(i)},{footer:o(()=>[u(y,{disabled:e(r),type:"primary",onClick:k},{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(()=>[g(u(m,{ref_key:"formRef",ref:l,rules:e(J),schema:e(K).formSchema},null,8,["rules","schema"]),[[F,e(r)]])]),_:1},8,["modelValue","title"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/mail/account/MailAccountForm.vue"]])});export{it as __tla,v as default};
|