import{b as p,T as d,a as m}from"./index-434d719f.js";import{f as u,ai as b,a4 as y}from"./index-ba596ae9.js";import{_ as h}from"./popupForm.vue_vue_type_script_setup_true_lang-c13a6d55.js";import{h as i,y as v,B as f,p as s,l as _,k as a,M as T,a4 as g,q as l,t as k,as as w}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"},E=i({name:"serviceType"}),x=i({...E,setup(N){const{t:e}=u(),o=v(),c=b(["weigh-sort","edit","delete"]),r=new p(new y("/admin/ServiceType/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("serviceType.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("serviceType.service_type__name"),prop:"serviceType.name",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("serviceType.name"),prop:"name",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("serviceType.level"),prop:"level",align:"center",render:"tag",operator:"=",sortable:!1,replaceValue:{一级:e("serviceType.level 一级"),二级:e("serviceType.level 二级"),三级:e("serviceType.level 三级")}},{label:e("serviceType.weigh"),prop:"weigh",align:"center",operator:"RANGE",sortable:"custom"},{label:e("serviceType.status"),prop:"status",align:"center",render:"switch",operator:"=",sortable:!1,replaceValue:{0:e("serviceType.status 0"),1:e("serviceType.status 1")}},{label:e("serviceType.admin__username"),prop:"admin.username",align:"center",operatorPlaceholder:e("Fuzzy query"),render:"tags",operator:"LIKE"},{label:e("serviceType.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("serviceType.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:140,render:"buttons",buttons:c,operator:!1}],dblClickNotEditColumn:[void 0,"status"],defaultOrder:{prop:"weigh",order:"desc"}},{defaultItems:{level:"一级",weigh:0,status:"1"}});return w("baTable",r),f(()=>{var t;r.table.ref=o.value,r.mount(),(t=r.getIndex())==null||t.then(()=>{r.initSort(),r.dragSort()})}),(t,S)=>{const n=k("el-alert");return s(),_("div",q,[a(r).table.remark?(s(),T(n,{key:0,class:"ba-table-alert",title:a(r).table.remark,type:"info","show-icon":""},null,8,["title"])):g("",!0),l(d,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("serviceType.quick Search Fields")})},null,8,["quick-search-placeholder"]),l(m,{ref_key:"tableRef",ref:o},null,512),l(h)])}}});export{x as default};
