columns.9a861a84.js 934 B

1
  1. import{D as s,w as i,v as o,aW as n}from"./index.3e798c17.js";import{s as a}from"./status.4f7e5409.js";function m(){return{columns:s([{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:"\u771F\u5B9E\u59D3\u540D",prop:"nickname"},{label:"\u7528\u6237\u540D\u79F0",prop:"username"},{label:"\u4E1A\u52A1\u516C\u53F8",prop:"companyName"},{label:"\u72B6\u6001",prop:"status",minWidth:80,cellRenderer:({row:e,props:l})=>i(o("el-tag"),{size:l.size,type:(a.find(t=>t.value==e.status+"")||{}).type||"info",effect:"plain"},{default:()=>[(a.find(t=>t.value==e.status+"")||{}).label||"--"]})},{label:"\u521B\u5EFA\u65F6\u95F4",width:145,prop:"addtime",formatter:({addtime:e})=>n(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:145,slot:"operation"}])}}export{m as useColumns};