OperateLogV2-7a457bde.js 1.4 KB

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