index-S-U7rDT7.js 2.4 KB

1
  1. import{_ as u}from"./popupForm.vue_vue_type_script_setup_true_lang-URU8eNXm.js";import{b as s,d as c,T as p}from"./baTable-MdxYOkAk.js";import{T as d}from"./index-K8IR974I.js";import{d as m,a2 as f,a as b,av as h,o as _,K as g,e as o,f as k,u as l,y as w,C as y,j as r}from"./vue-A59npLRR.js";import{a1 as v}from"./index-EwE51S_X.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./index-XALue448.js";import"./echarts-cxb9vJr1.js";const x={class:"default-main ba-table-box"},V=m({name:"auth/rule",__name:"index",setup(T){const{t:e}=f(),n=b(),t=new s(new v("/admin/auth.Rule/"),{expandAll:!1,dblClickNotEditColumn:[void 0,"keepalive","status"],column:[{type:"selection",align:"center"},{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",button:"info"},replaceValue:{menu:e("auth.rule.type menu"),menu_dir:e("auth.rule.type menu_dir"),button:e("auth.rule.type button")}},{label:e("auth.rule.cache"),prop:"keepalive",align:"center",width:"80",render:"switch"},{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("Operate"),align:"center",width:"130",render:"buttons",buttons:c()}],dragSortLimitField:"pid"},{defaultItems:{type:"menu",menu_type:"tab",extend:"none",keepalive:0,status:"1",icon:"fa fa-circle-o"}},{getIndex:()=>{var a;t.table.expandAll=!!((a=t.table.filter)!=null&&a.quickSearch)},requestEdit:()=>{t.form.items&&!t.form.items.icon&&(t.form.items.icon="fa fa-circle-o")}});return h("baTable",t),_(()=>{var a;t.table.ref=n.value,t.mount(),(a=t.getIndex())==null||a.then(()=>{t.dragSort()})}),(a,C)=>{const i=g("el-alert");return o(),k("div",x,[l(t).table.remark?(o(),w(i,{key:0,class:"ba-table-alert",title:l(t).table.remark,type:"info","show-icon":""},null,8,["title"])):y("",!0),r(d,{buttons:["refresh","add","edit","delete","unfold","quickSearch","columnDisplay"],"quick-search-placeholder":l(e)("Quick search placeholder",{fields:l(e)("auth.rule.title")})},null,8,["quick-search-placeholder"]),r(p,{ref_key:"tableRef",ref:n,pagination:!1},null,512),r(u)])}}});export{V as default};