MailLogDetail-9d41b9c3.js 3.3 KB

1
  1. import{_ as D,__tla as Y}from"./Dialog-3207cd36.js";import{_ as v,__tla as w}from"./Descriptions-5e40389c.js";import{aA as u,x,d as C,r as t,a4 as P,o as H,C as A,A as f,f as E,a as s,k as F,B as I,a2 as L,_ as k,__tla as z}from"./index-0b2503c4.js";import{d as p,__tla as U}from"./formatTime-9069dda3.js";import{b as V,__tla as j}from"./index-7985293e.js";import{D as b,__tla as N}from"./dict-0f5a88e6.js";import{u as O,__tla as B}from"./useCrudSchemas-3bbe736b.js";let i,r,y,T,R=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return w}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return B}catch{}})()]).then(async()=>{let m,o;T=async d=>await u.get({url:"/system/mail-log/page",params:d}),m=await V(),o=x([{label:"\u7F16\u53F7",field:"id"},{label:"\u53D1\u9001\u65F6\u95F4",field:"sendTime",formatter:p,search:{show:!0,component:"DatePicker",componentProps:{valueFormat:"YYYY-MM-DD HH:mm:ss",type:"daterange",defaultTime:[new Date("1 00:00:00"),new Date("1 23:59:59")]}},detail:{dateFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"\u63A5\u6536\u90AE\u7BB1",field:"toMail"},{label:"\u7528\u6237\u7F16\u53F7",field:"userId",isSearch:!0,isTable:!1},{label:"\u7528\u6237\u7C7B\u578B",field:"userType",dictType:b.USER_TYPE,dictClass:"number",isSearch:!0,isTable:!1},{label:"\u90AE\u4EF6\u6807\u9898",field:"templateTitle"},{label:"\u90AE\u4EF6\u5185\u5BB9",field:"templateContent",isTable:!1},{label:"\u90AE\u7BB1\u53C2\u6570",field:"templateParams",isTable:!1},{label:"\u53D1\u9001\u72B6\u6001",field:"sendStatus",dictType:b.SYSTEM_MAIL_SEND_STATUS,dictClass:"string",isSearch:!0},{label:"\u90AE\u7BB1\u8D26\u53F7",field:"accountId",isTable:!1,search:{show:!0,component:"Select",api:()=>m,componentProps:{optionsAlias:{labelField:"mail",valueField:"id"}}}},{label:"\u53D1\u9001\u90AE\u7BB1\u5730\u5740",field:"fromMail",table:{label:"\u90AE\u7BB1\u8D26\u53F7"}},{label:"\u6A21\u677F\u7F16\u53F7",field:"templateId",isSearch:!0},{label:"\u6A21\u677F\u7F16\u7801",field:"templateCode",isTable:!1},{label:"\u6A21\u7248\u53D1\u9001\u4EBA\u540D\u79F0",field:"templateNickname",isTable:!1},{label:"\u53D1\u9001\u8FD4\u56DE\u7684\u6D88\u606F\u7F16\u53F7",field:"sendMessageId",isTable:!1},{label:"\u53D1\u9001\u5F02\u5E38",field:"sendException",isTable:!1},{label:"\u521B\u5EFA\u65F6\u95F4",field:"createTime",isTable:!1,formatter:p,detail:{dateFormat:"YYYY-MM-DD HH:mm:ss"}},{label:"\u64CD\u4F5C",field:"action",isDetail:!1}]),{allSchemas:r}=O(o),i=k(C({name:"SystemMailLogDetail",__name:"MailLogDetail",setup(d,{expose:h}){const e=t(!1),n=t(!1),_=t();return h({open:async c=>{e.value=!0,n.value=!0;try{_.value=await(async a=>await u.get({url:"/system/mail-log/get?id="+a}))(c)}finally{n.value=!1}}}),(c,a)=>{const g=v,S=D,M=P("dompurify-html");return H(),A(S,{modelValue:s(e),"onUpdate:modelValue":a[0]||(a[0]=l=>L(e)?e.value=l:null),"max-height":500,scroll:!0,title:"\u8BE6\u60C5"},{default:f(()=>[E(g,{data:s(_),schema:s(r).detailSchema},{templateContent:f(({row:l})=>[F(I("div",null,null,512),[[M,l.templateContent]])]),_:1},8,["data","schema"])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/mail/log/MailLogDetail.vue"]]),y=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))});export{i as M,R as __tla,r as a,y as b,T as g};