import{b as i,T as m,a as c}from"./index-434d719f.js";import{f as u,ai as b,a4 as f}from"./index-ba596ae9.js";import{_ as h}from"./popupForm.vue_vue_type_script_setup_true_lang-ca14c69f.js";import{h as p,y as _,B as g,p as o,l as k,k as a,M as w,a4 as T,q as n,t as q,as as x}from"./vue-a39e6937.js";import"./controllerUrls-941681c3.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const y={class:"default-main ba-table-box"},B=p({name:"department/department"}),M=p({...B,setup(v){const{t:e}=u(),l=_(),s=b(["weigh-sort","edit","delete"]),t=new i(new f("/admin/department.department/"),{pk:"id",expandAll:!0,column:[{type:"selection",align:"center",operator:!1},{label:e("department.department.name"),prop:"name",align:"center",width:200},{label:e("department.department.responsible"),prop:"responsible",align:"center"},{label:e("department.department.phone"),prop:"phone",align:"center",width:130},{label:e("department.department.email"),prop:"email",align:"center",width:200},{label:e("department.department.status"),prop:"status",align:"center",render:"tag",replaceValue:{0:e("department.department.status 0"),1:e("department.department.status 1")},width:100},{label:e("department.department.weigh"),prop:"weigh",align:"center",sortable:"custom",operator:!1},{label:e("department.department.createtime"),prop:"createtime",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("department.department.updatetime"),prop:"updatetime",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("operate"),align:"center",width:140,render:"buttons",buttons:s,operator:!1,fixed:"right"}],dblClickNotEditColumn:[void 0]},{defaultItems:{pid:"0",status:"1",weigh:"0"}});return x("baTable",t),g(()=>{var r;t.table.ref=l.value,t.mount(),(r=t.getIndex())==null||r.then(()=>{t.initSort(),t.dragSort()})}),(r,C)=>{const d=q("el-alert");return o(),k("div",y,[a(t).table.remark?(o(),w(d,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):T("",!0),n(m,{buttons:["refresh","add","edit","delete","unfold","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("department.department.quick Search Fields")})},null,8,["quick-search-placeholder"]),n(c,{ref_key:"tableRef",ref:l,pagination:!1},null,512),n(h)])}}});export{M as default};