columns.6244b7ef.js 1.1 KB

1
  1. import{E as n,y as a,x as s,ah as p}from"./index.1417328f.js";import{l as i,g as o}from"./status.727086c1.js";function u(){return{columns:n([{type:"selection",width:55,hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u89D2\u8272\u540D\u79F0",prop:"role_name"},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyName"},{label:"\u7B49\u7EA7",prop:"level",cellRenderer:({row:e,props:t})=>a(s("el-tag"),{size:t.size,type:(i.find(l=>l.value==e.level+"")||{}).type||"info",effect:"plain"},{default:()=>[(i.find(l=>l.value==e.level+"")||{}).label||"--"]})},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e,props:t})=>a(s("el-tag"),{size:t.size,type:(o.find(l=>l.value==e.status+"")||{}).type||"info",effect:"plain"},{default:()=>[(o.find(l=>l.value==e.status+"")||{}).label||"--"]})},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",formatter:({addtime:e})=>p(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:145,slot:"operation"}])}}export{u as useColumns};