import{b as u,d as s,T as m}from"./baTable-MdxYOkAk.js";import c from"./popupForm-kPZQqOTs.js";import{T as p}from"./index-K8IR974I.js";import{a1 as d}from"./index-EwE51S_X.js";import{d as f,a2 as b,a as _,av as h,o as g,K as k,e as o,f as v,u as a,y as w,C as y,j as l}from"./vue-A59npLRR.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./index-XALue448.js";import"./echarts-cxb9vJr1.js";const T={class:"default-main ba-table-box"},V=f({name:"user/rule",__name:"index",setup(x){const{t:e}=b(),n=_(),t=new u(new d("/admin/user.Rule/"),{expandAll:!1,column:[{type:"selection",align:"center",operator:!1},{label:e("auth.rule.title"),prop:"title",align:"left",width:"200"},{label:e("auth.rule.Icon"),prop:"icon",align:"center",width:"60",render:"icon",default:"fa fa-circle-o"},{label:e("auth.rule.name"),prop:"name",align:"center",showOverflowTooltip:!0},{label:e("auth.rule.type"),prop:"type",align:"center",render:"tag",custom:{menu:"danger",menu_dir:"success",route:"info"},replaceValue:{menu:e("user.rule.Member center menu items"),menu_dir:e("user.rule.Member center menu contents"),route:e("user.rule.Normal routing"),nav:e("user.rule.Top bar menu items"),button:e("user.rule.Page button"),nav_user_menu:e("user.rule.Top bar user dropdown")}},{label:e("State"),prop:"status",align:"center",width:"80",render:"switch"},{label:e("Update time"),prop:"update_time",align:"center",width:"160",render:"datetime"},{label:e("Create time"),prop:"create_time",align:"center",width:"160",render:"datetime"},{label:e("Operate"),align:"center",width:"130",render:"buttons",buttons:s()}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{type:"route",menu_type:"tab",extend:"none",no_login_valid:"0",keepalive:0,status:"1",icon:"fa fa-circle-o"}},{requestEdit:()=>{t.form.items&&!t.form.items.icon&&(t.form.items.icon="fa fa-circle-o")},onSubmit:()=>{t.form.items.type=="route"?t.form.items.menu_type="tab":["menu","menu_dir","nav_user_menu"].includes(t.form.items.type)&&(t.form.items.no_login_valid="0")}});return h("baTable",t),g(()=>{var r;t.table.ref=n.value,t.mount(),(r=t.getIndex())==null||r.then(()=>{t.dragSort()})}),(r,C)=>{const i=k("el-alert");return o(),v("div",T,[a(t).table.remark?(o(),w(i,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):y("",!0),l(p,{buttons:["refresh","add","edit","delete","unfold","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("Quick search placeholder",{fields:a(e)("auth.rule.Rule title")})},null,8,["quick-search-placeholder"]),l(m,{ref_key:"tableRef",ref:n,pagination:!1},null,512),l(c)])}}});export{V as default};