import{b as p,T as d,a as u}from"./index-434d719f.js";import{f as m,ai as b,a4 as f}from"./index-ba596ae9.js";import{_ as h}from"./popupForm.vue_vue_type_script_setup_true_lang-562ce5e4.js";import{h as i,y as _,B as g,p as n,l as k,k as a,M as w,a4 as y,q as r,t as T,as as q}from"./vue-a39e6937.js";import"./controllerUrls-941681c3.js";import"./index-7e56a0fa.js";import"./index-f0d8af94.js";import"./validate-4ecec794.js";const B={class:"default-main ba-table-box"},N=i({name:"routine/notice"}),M=i({...N,setup(S){const{t:e}=m(),l=_(),c=b(["weigh-sort","edit","delete"]),t=new p(new f("/admin/routine.notice/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("routine.notice.id"),prop:"id",align:"center",width:70,sortable:"custom",operator:"RANGE"},{label:e("routine.notice.title"),prop:"title",align:"center"},{label:e("routine.notice.type"),prop:"type",align:"center",render:"tag",replaceValue:{0:e("routine.notice.type 0"),1:e("routine.notice.type 1")}},{label:e("routine.notice.weigh"),prop:"weigh",align:"center",sortable:"custom",operator:!1},{label:e("routine.notice.updatetime"),prop:"updatetime",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("routine.notice.createtime"),prop:"createtime",align:"center",render:"datetime",sortable:"custom",operator:"RANGE",width:160},{label:e("operate"),align:"center",width:140,render:"buttons",buttons:c,operator:!1}],dblClickNotEditColumn:[void 0],defaultOrder:{prop:"weigh",order:"desc"}},{defaultItems:{type:"0",weigh:"0"}});return q("baTable",t),g(()=>{var o;t.table.ref=l.value,t.mount(),(o=t.getIndex())==null||o.then(()=>{t.initSort(),t.dragSort()})}),(o,v)=>{const s=T("el-alert");return n(),k("div",B,[a(t).table.remark?(n(),w(s,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):y("",!0),r(d,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("quick Search Placeholder",{fields:a(e)("routine.notice.quick Search Fields")})},null,8,["quick-search-placeholder"]),r(u,{ref_key:"tableRef",ref:l},null,512),r(h)])}}});export{M as default};
