import{b as i,T as p,a as s}from"./index-434d719f.js";import{a as c}from"./controllerUrls-941681c3.js";import m from"./popupForm-fb23e790.js";import{f as d,a4 as u,ai as b}from"./index-ba596ae9.js";import{h as l,p as o,l as h,k as r,M as g,a4 as f,q as t,t as y,as as _}from"./vue-a39e6937.js";import"./index-7e56a0fa.js";import"./validate-4ecec794.js";import"./index-f0d8af94.js";const k={class:"default-main ba-table-box"},z=l({name:"auth/admin"}),C=l({...z,setup(q){const{t:e}=d(),a=new i(new u(c),{column:[{type:"selection",align:"center",operator:!1},{label:e("id"),prop:"id",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),width:70},{label:e("auth.admin.username"),prop:"username",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("auth.admin.nickname"),prop:"nickname",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("department.department.department"),prop:"department.name",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("department.jobs.jobs"),prop:"jobs.name",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("auth.admin.grouping"),prop:"group_name_arr",align:"center",operator:!1,render:"tags"},{label:e("auth.admin.head portrait"),prop:"avatar",align:"center",render:"image",operator:!1},{label:e("auth.admin.mailbox"),prop:"email",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("auth.admin.mobile"),prop:"mobile",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("auth.admin.Last login"),prop:"lastlogintime",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("createtime"),prop:"createtime",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("state"),prop:"status",align:"center",render:"tag",custom:{0:"danger",1:"success"},replaceValue:{0:e("Disable"),1:e("Enable")}},{label:e("operate"),align:"center",width:"100",render:"buttons",buttons:b(["edit","delete"]),operator:!1}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{status:"1"}});return _("baTable",a),a.mount(),a.getIndex(),(E,I)=>{const n=y("el-alert");return o(),h("div",k,[r(a).table.remark?(o(),g(n,{key:0,class:"ba-table-alert",title:r(a).table.remark,type:"info","show-icon":""},null,8,["title"])):f("",!0),t(p,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":r(e)("quick Search Placeholder",{fields:r(e)("auth.admin.username")+"/"+r(e)("auth.admin.nickname")})},null,8,["quick-search-placeholder"]),t(s),t(m)])}}});export{C as default};
