OperateLogV2-ec83cee0.js 1.5 KB

1
  1. import{d as E,o as n,c as _,f as p,w as e,F as x,q as C,v as L,a as s,g as u,au as T,t as l,al as v,n as i,_ as b,__tla as w}from"./index-bd9277a1.js";import{E as F,a as O,__tla as V}from"./el-timeline-item-ee30bc55.js";import{f as A,__tla as P}from"./formatTime-8639ba1a.js";import{b as k,D as m,c as q,__tla as z}from"./dict-4b2e9fd3.js";let d,D=Promise.all([(()=>{try{return w}catch{}})(),(()=>{try{return V}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return z}catch{}})()]).then(async()=>{let c,o;c={class:"pt-20px"},o={class:"el-timeline-right-content"},d=b(E({name:"OperateLogV2",__name:"OperateLogV2",props:{logList:{type:Array,required:!0,default:()=>[]}},setup(R){const f=r=>{const t=q(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 n(),_("div",c,[p(g,null,{default:e(()=>[(n(!0),_(x,null,C(r.logList,(a,h)=>(n(),L(y,{key:h,timestamp:s(A)(a.createTime),placement:"top"},{dot:e(()=>[u("span",{style:T({backgroundColor:f(a.userType)}),class:"dot-node-style"},l(s(k)(s(m).USER_TYPE,a.userType)[0]),5)]),default:e(()=>[u("div",o,[p(s(v),{class:"mr-10px",type:"success"},{default:e(()=>[i(l(a.userName),1)]),_:2},1024),i(" "+l(a.action),1)])]),_:2},1032,["timestamp"]))),128))]),_:1})])}}}),[["__scopeId","data-v-4b4a23db"],["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/components/OperateLogV2/src/OperateLogV2.vue"]])});export{d as _,D as __tla};