import{d as p,b as d,T as m}from"./baTable-MdxYOkAk.js";import c from"./popupForm-yPDNU4Fu.js";import{T as u}from"./index-K8IR974I.js";import{a as b,a1 as h}from"./index-EwE51S_X.js";import{d as f,a2 as g,av as _,K as k,e as n,f as y,u as t,y as I,C as E,j as r}from"./vue-A59npLRR.js";import"./validate-_EUdkMt3.js";import"./index-r6iTpmP6.js";import"./index-XALue448.js";import"./echarts-cxb9vJr1.js";const z={class:"default-main ba-table-box"},L=f({name:"auth/admin",__name:"index",setup(T){const{t:e}=g(),i=b(),o=p(["edit","delete"]);o[1].display=l=>l.id!=i.id;const a=new d(new h("/admin/auth.Admin/"),{column:[{type:"selection",align:"center",operator:!1},{label:e("Id"),prop:"id",align:"center",operator:"=",operatorPlaceholder:e("Id"),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("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:"last_login_time",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("Create time"),prop:"create_time",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:o,operator:!1}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{status:"1"}});return _("baTable",a),a.mount(),a.getIndex(),(l,q)=>{const s=k("el-alert");return n(),y("div",z,[t(a).table.remark?(n(),I(s,{key:0,class:"ba-table-alert",title:t(a).table.remark,type:"info","show-icon":""},null,8,["title"])):E("",!0),r(u,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":t(e)("Quick search placeholder",{fields:t(e)("auth.admin.username")+"/"+t(e)("auth.admin.nickname")})},null,8,["quick-search-placeholder"]),r(m),r(c)])}}});export{L as default};