import{d as p,b as c,T as d,a as m}from"./index-CgMrKa77.js";import u from"./popupForm-jtR-depr.js";import{x as b,w as h,a7 as g}from"./index-fNs72j9w.js";import{B as f,I as _,C as n,D as k,u as t,O as y,W as I,H as r,au as E}from"./vue-DweYBrEc.js";import"./index-DMA3A9_B.js";import"./validate-CEOscgyN.js";import"./index-BlEwok4a.js";const w={class:"default-main ba-table-box"},F=f({name:"auth/admin",__name:"index",setup(z){const{t:e}=b.useI18n(),i=h(),o=p(["edit","delete"]);o[1].display=l=>l.id!=i.id;const a=new c(new g("/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.group"),prop:"group_name_arr",align:"center",operator:!1,render:"tags"},{label:e("auth.admin.avatar"),prop:"avatar",align:"center",render:"image",operator:!1},{label:e("auth.admin.email"),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:{disable:"danger",enable:"success"},replaceValue:{disable:e("Disable"),enable:e("Enable")}},{label:e("Operate"),align:"center",width:"100",render:"buttons",buttons:o,operator:!1}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{status:"enable"}});return E("baTable",a),a.mount(),a.getData(),(l,q)=>{const s=_("el-alert");return n(),k("div",w,[t(a).table.remark?(n(),y(s,{key:0,class:"ba-table-alert",title:t(a).table.remark,type:"info","show-icon":""},null,8,["title"])):I("",!0),r(d,{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(u)])}}});export{F as default};
