OperateLogV2-5c976695.js 1.2 KB

1
  1. import{d as g,o,c,i as p,w as e,F as E,A as y,j as T,a as t,k as m,av as C,t as n,aj as v,m as l}from"./index-df709923.js";import{E as w,a as x}from"./el-timeline-item-e42986c8.js";import{f as F}from"./formatTime-c6262bd7.js";import{e as L,D as i,b as j}from"./dict-017bf708.js";import{_ as k}from"./_plugin-vue_export-helper-1b428a4d.js";const A={class:"pt-20px"},b={class:"el-timeline-right-content"},h=k(g({name:"OperateLogV2",__name:"OperateLogV2",props:{logList:{default:()=>[]}},setup(O){const u=r=>{const a=j(i.USER_TYPE,r);switch(a==null?void 0:a.colorType){case"success":return"#67C23A";case"info":return"#909399";case"warning":return"#E6A23C";case"danger":return"#F56C6C"}return"#409EFF"};return(r,a)=>{const d=w,f=x;return o(),c("div",A,[p(f,null,{default:e(()=>[(o(!0),c(E,null,y(r.logList,(s,_)=>(o(),T(d,{key:_,timestamp:t(F)(s.createTime),placement:"top"},{dot:e(()=>[m("span",{style:C({backgroundColor:u(s.userType)}),class:"dot-node-style"},n(t(L)(t(i).USER_TYPE,s.userType)[0]),5)]),default:e(()=>[m("div",b,[p(t(v),{class:"mr-10px",type:"success"},{default:e(()=>[l(n(s.userName),1)]),_:2},1024),l(" "+n(s.action),1)])]),_:2},1032,["timestamp"]))),128))]),_:1})])}}}),[["__scopeId","data-v-66d48991"]]);export{h as _};