import{b as c,T as u,a as p}from"./index-434d719f.js";import{f as m,ai as b,a4 as h}from"./index-ba596ae9.js";import{_ as g}from"./popupForm.vue_vue_type_script_setup_true_lang-9f2f682d.js";import{h as n,y as f,B as _,p as s,l as y,k as a,M as k,a4 as w,q as o,t as q,as as E}from"./vue-a39e6937.js";import"./controllerUrls-941681c3.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const B={class:"default-main ba-table-box"},N=n({name:"budget"}),z=n({...N,setup(T){const{t:e}=m(),l=f(),d=b(["weigh-sort","edit","delete"]),t=new c(new h("/admin/Budget/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("budget.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("budget.name"),prop:"name",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("budget.weigh"),prop:"weigh",align:"center",operator:"RANGE",sortable:"custom"},{label:e("budget.status"),prop:"status",align:"center",render:"switch",operator:"=",sortable:!1,replaceValue:{0:e("budget.status 0"),1:e("budget.status 1")}},{label:e("budget.admin__username"),prop:"admin.username",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("budget.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("budget.update_time"),prop:"update_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("operate"),align:"center",width:140,render:"buttons",buttons:d,operator:!1}],dblClickNotEditColumn:[void 0,"status"],defaultOrder:{prop:"weigh",order:"desc"}},{defaultItems:{weigh:0,status:"1"}});return E("baTable",t),_(()=>{var r;t.table.ref=l.value,t.mount(),(r=t.getIndex())==null||r.then(()=>{t.initSort(),t.dragSort()})}),(r,M)=>{const i=q("el-alert");return s(),y("div",B,[a(t).table.remark?(s(),k(i,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):w("",!0),o(u,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("budget.quick Search Fields")})},null,8,["quick-search-placeholder"]),o(p,{ref_key:"tableRef",ref:l},null,512),o(g)])}}});export{z as default};
