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