index-FfpGNIW3.js 2.3 KB

1
  1. import{d as c,a2 as p,a as d,av as m,o as u,K as b,e as s,f,u as a,y as h,C as g,j as r}from"./vue-A59npLRR.js";import{_}from"./popupForm.vue_vue_type_script_setup_true_lang-eNfdIBTX.js";import{a1 as y}from"./index-EwE51S_X.js";import{d as k,b as E,T}from"./baTable-MdxYOkAk.js";import{T as q}from"./index-K8IR974I.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./echarts-cxb9vJr1.js";import"./index-XALue448.js";const w={class:"default-main ba-table-box"},A=c({name:"asset/group",__name:"index",setup(C){const{t:e}=p(),l=d(),n=k(["edit","delete"]),t=new E(new y("/admin/asset.Group/"),{filter:{order:"id,asc",limit:20},pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("Id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("asset.group.belonging_category"),prop:"belonging_category",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("asset.group.model"),prop:"model",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("asset.group.specification"),prop:"specification",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("Update time"),prop:"update_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("Create time"),prop:"create_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:{model:null,belonging_category:null,delete_time:null}});return m("baTable",t),u(()=>{var o;t.table.ref=l.value,t.mount(),(o=t.getIndex())==null||o.then(()=>{t.initSort(),t.dragSort()})}),(o,I)=>{const i=b("el-alert");return s(),f("div",w,[a(t).table.remark?(s(),h(i,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):g("",!0),r(q,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("Quick search placeholder",{fields:a(e)("asset.group.quick Search Fields")})},null,8,["quick-search-placeholder"]),r(T,{ref_key:"tableRef",ref:l},null,512),r(_)])}}});export{A as default};