import{b as u,T as c,a as i}from"./index-434d719f.js";import{j as p}from"./controllerUrls-941681c3.js";import d from"./popupForm-686614f6.js";import{f as m,a4 as b,ai as g}from"./index-ba596ae9.js";import{h as l,y as f,p as o,l as h,k as a,M as y,a4 as k,q as t,t as _,as as z}from"./vue-a39e6937.js";import"./index-7e56a0fa.js";import"./validate-4ecec794.js";import"./index-f0d8af94.js";const q={class:"default-main ba-table-box"},E=l({name:"user/user"}),B=l({...E,setup(I){const{t:e}=m(),s=f(),r=new u(new b(p),{column:[{type:"selection",align:"center",operator:!1},{label:e("id"),prop:"id",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),width:70},{label:e("user.user.User name"),prop:"username",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("user.user.nickname"),prop:"nickname",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("user.user.grouping"),prop:"group.name",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),render:"tag"},{label:e("user.user.head portrait"),prop:"avatar",align:"center",render:"image",operator:!1},{label:e("user.user.Gender"),prop:"gender",align:"center",render:"tag",custom:{0:"info",1:"",2:"success"},replaceValue:{0:e("unknown"),1:e("user.user.male"),2:e("user.user.female")}},{label:e("user.user.mobile"),prop:"mobile",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query")},{label:e("user.user.Last login IP"),prop:"lastloginip",align:"center",operator:"LIKE",operatorPlaceholder:e("Fuzzy query"),render:"tag"},{label:e("user.user.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:{disable:"danger",enable:"success"},replaceValue:{disable:e("Disable"),enable:e("Enable")}},{label:e("operate"),align:"center",width:"100",render:"buttons",buttons:g(["edit","delete"]),operator:!1}],dblClickNotEditColumn:[void 0]},{defaultItems:{gender:0,money:"0",score:"0",status:"enable"}});return r.mount(),r.getIndex(),z("baTable",r),(P,w)=>{const n=_("el-alert");return o(),h("div",q,[a(r).table.remark?(o(),y(n,{key:0,class:"ba-table-alert",title:a(r).table.remark,type:"info","show-icon":""},null,8,["title"])):k("",!0),t(c,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("user.user.User name")+"/"+a(e)("user.user.nickname")})},null,8,["quick-search-placeholder"]),t(i,{ref_key:"tableRef",ref:s},null,512),t(d)])}}});export{B as default};
