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