OperateLogV2-ef62ed19.js 1.5 KB

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