index-47ba3d7e.js 2.3 KB

1
  1. import{b as p,T as m,a as d}from"./index-434d719f.js";import{f as u,ai as b,a4 as y}from"./index-ba596ae9.js";import{_}from"./popupForm.vue_vue_type_script_setup_true_lang-affe3113.js";import{h as s,y as f,B as h,p as i,l as k,k as a,M as F,a4 as g,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 S={class:"default-main ba-table-box"},T=s({name:"storeFacility"}),A=s({...T,setup(w){const{t:e}=u(),l=f(),n=b(["edit","delete"]),t=new p(new y("/admin/StoreFacility/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("storeFacility.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("storeFacility.supplier_store__store_name"),prop:"supplierStore.store_name",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("storeFacility.facility_type__name"),prop:"facilityType.name",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("storeFacility.name"),prop:"name",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("storeFacility.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("storeFacility.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:n,operator:!1}],dblClickNotEditColumn:[void 0]},{defaultItems:{}});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,z)=>{const c=q("el-alert");return i(),k("div",S,[a(t).table.remark?(i(),F(c,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):g("",!0),o(m,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("storeFacility.quick Search Fields")})},null,8,["quick-search-placeholder"]),o(d,{ref_key:"tableRef",ref:l},null,512),o(_)])}}});export{A as default};