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