OperateLogV2-b16fb025.js 1.4 KB

1
  1. import{d as C,o as c,c as n,f as p,A as s,F as T,Q as h,C as v,a as e,B as u,aG as x,E as l,av as F,D as m,__tla as L}from"./index-f4562165.js";import{E as A,a as P,__tla as k}from"./el-timeline-item-0d087285.js";import{f as w,__tla as D}from"./formatTime-8e37b4ef.js";import{d as O,D as i,c as R,__tla as S}from"./dict-880709c0.js";import{_ as U}from"./_plugin-vue_export-helper-1b428a4d.js";let d,V=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return k}catch{}})(),(()=>{try{return D}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{let o,_;o={class:"pt-20px"},_={class:"el-timeline-right-content"},d=U(C({name:"OperateLogV2",__name:"OperateLogV2",props:{logList:{default:()=>[]}},setup(Y){const f=r=>{const t=R(i.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=A,g=P;return c(),n("div",o,[p(g,null,{default:s(()=>[(c(!0),n(T,null,h(r.logList,(a,E)=>(c(),v(y,{key:E,timestamp:e(w)(a.createTime),placement:"top"},{dot:s(()=>[u("span",{style:x({backgroundColor:f(a.userType)}),class:"dot-node-style"},l(e(O)(e(i).USER_TYPE,a.userType)[0]),5)]),default:s(()=>[u("div",_,[p(e(F),{class:"mr-10px",type:"success"},{default:s(()=>[m(l(a.userName),1)]),_:2},1024),m(" "+l(a.action),1)])]),_:2},1032,["timestamp"]))),128))]),_:1})])}}}),[["__scopeId","data-v-49d52aec"]])});export{d as _,V as __tla};