1 |
- import{d as m,a2 as u,a as p,av as d,o as c,K as b,e as l,f as _,u as a,y as f,C as y,j as n}from"./vue-A59npLRR.js";import{_ as h}from"./popupForm.vue_vue_type_script_setup_true_lang-IMBJLN65.js";import{a1 as I}from"./index-EwE51S_X.js";import{d as k,b as g,T as v}from"./baTable-MdxYOkAk.js";import{T as w}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"},F=m({name:"instrument/display",__name:"index",setup(N){const{t:e}=u(),s=p(),o=k(["edit","delete"]),t=new g(new I("/admin/instrument.display/"),{pk:"id",column:[{type:"selection",align:"center",operator:!1},{label:e("instrument.display.id"),prop:"id",align:"center",width:70,operator:"RANGE",sortable:"custom"},{label:e("instrument.display.Instrument_name"),prop:"Instrument_name",align:"center",operatorPlaceholder:e("Fuzzy query"),operator:"LIKE",sortable:!1},{label:e("instrument.display.Instrument_picture"),prop:"Instrument_picture",align:"center",render:"image",operator:!1},{label:e("instrument.display.Instrument_value"),prop:"Instrument_value",align:"center",operator:"RANGE",sortable:!1},{label:e("instrument.display.Instrument_num"),prop:"Instrument_num",align:"center",operator:"RANGE",sortable:!1},{label:e("instrument.display.Instrument_status"),prop:"Instrument_status",align:"center",render:"switch",operator:"eq",sortable:!1,replaceValue:{0:e("instrument.display.Instrument_status 0"),1:e("instrument.display.Instrument_status 1")}},{label:e("instrument.display.update_time"),prop:"update_time",align:"center",render:"datetime",operator:"RANGE",sortable:"custom",width:160,timeFormat:"yyyy-mm-dd hh:MM:ss"},{label:e("instrument.display.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:o,operator:!1}],dblClickNotEditColumn:[void 0,"Instrument_status"]},{defaultItems:{Instrument_value:0,Instrument_num:0,Instrument_status:"1"}});return d("baTable",t),c(()=>{var r;t.table.ref=s.value,t.mount(),(r=t.getIndex())==null||r.then(()=>{t.initSort(),t.dragSort()})}),(r,T)=>{const i=b("el-alert");return l(),_("div",E,[a(t).table.remark?(l(),f(i,{key:0,class:"ba-table-alert",title:a(t).table.remark,type:"info","show-icon":""},null,8,["title"])):y("",!0),n(w,{buttons:["refresh","add","edit","delete","comSearch","quickSearch","columnDisplay"],"quick-search-placeholder":a(e)("Quick search placeholder",{fields:a(e)("instrument.display.quick Search Fields")})},null,8,["quick-search-placeholder"]),n(v,{ref_key:"tableRef",ref:s},null,512),n(h)])}}});export{F as default};
|