OperateLogV2-1f90f5fe.js 1.5 KB

1
  1. import{d as T,o as l,c as _,i as u,w as e,F as h,k as v,l as L,a as s,g as p,av as k,t as c,ak as x,j as i,_ as C,__tla as b}from"./index-af173888.js";import{E as w,a as F,__tla as O}from"./el-timeline-item-4ef8f91a.js";import{f as V,__tla as A}from"./formatTime-8a6f6c49.js";import{b as P,D as m,c as R,__tla as U}from"./dict-093d1dfa.js";let d,j=Promise.all([(()=>{try{return b}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return A}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{let n,o;n={class:"pt-20px"},o={class:"el-timeline-right-content"},d=C(T({name:"OperateLogV2",__name:"OperateLogV2",props:{logList:{type:Array,required:!0,default:()=>[]}},setup(D){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=w,g=F;return l(),_("div",n,[u(g,null,{default:e(()=>[(l(!0),_(h,null,v(r.logList,(a,E)=>(l(),L(y,{key:E,timestamp:s(V)(a.createTime),placement:"top"},{dot:e(()=>[p("span",{style:k({backgroundColor:f(a.userType)}),class:"dot-node-style"},c(s(P)(s(m).USER_TYPE,a.userType)[0]),5)]),default:e(()=>[p("div",o,[u(s(x),{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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/OperateLogV2/src/OperateLogV2.vue"]])});export{d as _,j as __tla};