import{x as c,a7 as i}from"./index-fNs72j9w.js";import{_ as p}from"./popupForm.vue_vue_type_script_setup_true_lang-Kb8LBIkv.js";import{d,b as u,T as m,a as f}from"./index-CgMrKa77.js";import{B as _,a8 as k,o as h,I as g,C as n,D as y,u as t,O as R,W as E,H as l,au as w}from"./vue-DweYBrEc.js";import"./index-BlEwok4a.js";import"./validate-CEOscgyN.js";import"./index-DMA3A9_B.js";const N={class:"default-main ba-table-box"},I=_({name:"bank",__name:"index",setup(x){const{t:e}=c.useI18n(),o=k("tableRef"),s=d(["weigh-sort","edit","delete"]),a=new u(new i("/admin/Bank/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("bank.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("bank.weigh"),prop:"weigh",align:"center",operator:"RANGE",sortable:"custom"},{label:e("bank.bank_name"),prop:"bank_name",align:"center",operatorPlaceholder:e("Fuzzy query"),sortable:!1,operator:"LIKE"},{label:e("bank.bank_account"),prop:"bank_account",align:"center",operatorPlaceholder:e("Fuzzy query"),sortable:!1,operator:"LIKE"},{label:e("bank.safe_alert"),prop:"safe_alert",align:"center",operator:"eq",sortable:!1,render:"tag",replaceValue:{0:e("bank.safe_alert 0"),1:e("bank.safe_alert 1"),2:e("bank.safe_alert 2"),3:e("bank.safe_alert 3"),4:e("bank.safe_alert 4"),5:e("bank.safe_alert 5"),6:e("bank.safe_alert 6")}},{label:e("bank.tx_in"),prop:"tx_in",align:"center",sortable:!1,operator:"RANGE"},{label:e("bank.tx_out"),prop:"tx_out",align:"center",sortable:!1,operator:"RANGE"},{label:e("bank.fund_in"),prop:"fund_in",align:"center",sortable:!1,operator:"RANGE"},{label:e("bank.fund_out"),prop:"fund_out",align:"center",sortable:!1,operator:"RANGE"},{label:e("bank.label_color"),prop:"label_color",align:"center",render:"color",operator:!1},{label:e("bank.status"),prop:"status",align:"center",operator:"eq",sortable:!1,render:"switch",replaceValue:{0:e("bank.status 0"),1:e("bank.status 1")}},{label:e("bank.create_time"),prop:"create_time",align:"center",render:"datetime",operator:"RANGE",comSearchRender:"datetime",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("bank.update_time"),prop:"update_time",align:"center",render:"datetime",operator:"RANGE",comSearchRender:"datetime",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("Operate"),align:"center",width:140,render:"buttons",buttons:s,operator:!1}],dblClickNotEditColumn:[void 0,"status"]},{defaultItems:{safe_alert:"0",status:"1"}});return w("baTable",a),h(()=>{var r;a.table.ref=o.value,a.mount(),(r=a.getData())==null||r.then(()=>{a.initSort(),a.dragSort()})}),(r,A)=>{const b=g("el-alert");return n(),y("div",N,[t(a).table.remark?(n(),R(b,{key:0,class:"ba-table-alert",title:t(a).table.remark,type:"info","show-icon":""},null,8,["title"])):E("",!0),l(m,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":t(e)("Quick search placeholder",{fields:t(e)("bank.quick Search Fields")})},null,8,["quick-search-placeholder"]),l(f,{ref_key:"tableRef",ref:o},null,512),l(p)])}}});export{I as default};
