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