index-r_fAyDx0.js 2.3 KB

1
  1. import{d as u,a2 as i,a as c,av as p,o as m,K as b,e as l,f,u as a,y as _,C as h,j as o}from"./vue-A59npLRR.js";import{_ as y}from"./popupForm.vue_vue_type_script_setup_true_lang-9gfI5noQ.js";import{a1 as k}from"./index-EwE51S_X.js";import{d as g,b as w,T as q}from"./baTable-MdxYOkAk.js";import{T as x}from"./index-K8IR974I.js";import"./index-r6iTpmP6.js";import"./validate-_EUdkMt3.js";import"./echarts-cxb9vJr1.js";import"./index-XALue448.js";const E={class:"default-main ba-table-box"},K=u({name:"student",__name:"index",setup(T){const{t:e}=i(),s=c(),n=g(["edit","delete"]),t=new w(new k("/admin/Student/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("student.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("student.student_id"),prop:"student_id",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("student.student_name"),prop:"student_name",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("student.student_wxid"),prop:"student_wxid",align:"center",operator:"RANGE",sortable:!1},{label:e("student.password"),prop:"password",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("student.status"),prop:"status",align:"center",render:"tag",operator:"eq",sortable:!1,replaceValue:{0:e("student.status 0"),1:e("student.status 1")}},{label:e("student.create_time"),prop:"create_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:n,operator:!1}],dblClickNotEditColumn:[void 0]},{defaultItems:{student_name:"''",student_wxid:0,password:"''",status:"1"}});return p("baTable",t),m(()=>{var r;t.table.ref=s.value,t.mount(),(r=t.getIndex())==null||r.then(()=>{t.initSort(),t.dragSort()})}),(r,v)=>{const d=b("el-alert");return l(),f("div",E,[a(t).table.remark?(l(),_(d,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):h("",!0),o(x,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("Quick search placeholder",{fields:a(e)("student.quick Search Fields")})},null,8,["quick-search-placeholder"]),o(q,{ref_key:"tableRef",ref:s},null,512),o(y)])}}});export{K as default};