OperateLogV2-e3ff6db3.js 1.5 KB

1
  1. import{d as h,o as l,c as _,f as p,A as e,F as x,R as C,C as L,a as s,B as u,aH as T,E as c,aw as v,D as i,_ as A,__tla as w}from"./index-f6fb8e95.js";import{E as F,a as O,__tla as V}from"./el-timeline-item-4391c2d1.js";import{f as b,__tla as D}from"./formatTime-ddd96ac8.js";import{d as P,D as m,c as R,__tla as k}from"./dict-c9a7f6a4.js";let d,z=Promise.all([(()=>{try{return w}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return k}catch{}})()]).then(async()=>{let n,o;n={class:"pt-20px"},o={class:"el-timeline-right-content"},d=A(h({name:"OperateLogV2",__name:"OperateLogV2",props:{logList:{type:Array,required:!0,default:()=>[]}},setup(S){const f=r=>{const t=R(m.USER_TYPE,r);switch(t==null?void 0:t.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"};return(r,t)=>{const y=F,g=O;return l(),_("div",n,[p(g,null,{default:e(()=>[(l(!0),_(x,null,C(r.logList,(a,E)=>(l(),L(y,{key:E,timestamp:s(b)(a.createTime),placement:"top"},{dot:e(()=>[u("span",{style:T({backgroundColor:f(a.userType)}),class:"dot-node-style"},c(s(P)(s(m).USER_TYPE,a.userType)[0]),5)]),default:e(()=>[u("div",o,[p(s(v),{class:"mr-10px",type:"success"},{default:e(()=>[i(c(a.userName),1)]),_:2},1024),i(" "+c(a.action),1)])]),_:2},1032,["timestamp"]))),128))]),_:1})])}}}),[["__scopeId","data-v-4b4a23db"],["__file","D:/zx/mall-newfeifan-zx-admin/src/components/OperateLogV2/src/OperateLogV2.vue"]])});export{d as _,z as __tla};