import{T as C}from"./TableV2Empty-b6abe229.js";import{a as f}from"./index-d6ee182a.js";import{u as x,r as a,B as b,o as D,C as A,f as c,G as K,a as d,c as T,g as r,w as h,H as B,k as I}from"./index-ad591d72.js";import{_ as U}from"./_plugin-vue_export-helper-c27b6911.js";import"./request-2786ead7.js";import"./axios-4a70c6fc.js";const z={class:"tablev2-container shadow"},E=25,H={__name:"chipCheckData",setup(M){const{t,locale:_}=x(),o=a(!1),i=a(null),l=a([{key:"index",dataKey:"ID",title:t("equipmentManagement.index"),align:"center",width:50},{key:"ChipCode",dataKey:"ChipCode",title:t("data.ChipCode"),align:"center",width:140},{key:"CreatedAt",dataKey:"CreatedAt",title:t("data.CreatedAt"),align:"left",width:250},{key:"UpdatedAt",dataKey:"UpdatedAt",title:t("data.UpdatedAt"),align:"center",width:250}]);b(()=>_.value,()=>{l.value=l.value.map(e=>({title:t(`data.${e.key}`),key:e.key,dataKey:e.dataKey,align:e.align,width:e.width}))});const s=a([]),n=a(0),u=({rowIndex:e})=>{if(e===n.value)return"highlight-row"},p={onClick(e){n.value=e.rowIndex}},v=()=>{o.value=!0,f().then(e=>{console.log(e),s.value=e.Records,o.value=!1})};return D(()=>{v()}),A(()=>{i.value.scrollToTop(25*n.value)}),(e,N)=>{const g=c("el-table-v2"),m=c("el-auto-resizer"),w=K("loading");return d(),T("div",z,[r(m,null,{default:h(({height:y,width:k})=>[B((d(),I(g,{fixed:"","element-loading-text":"","element-loading-background":"rgba(122, 122, 122, 0.8)","row-event-handlers":p,ref_key:"myTable",ref:i,"row-key":"index","row-class":u,columns:l.value,data:s.value,"header-height":44,"row-height":E,width:k,height:y,style:{cursor:"pointer"}},{empty:h(()=>[r(C)]),_:2},1032,["columns","data","width","height"])),[[w,o.value]])]),_:1})])}}},F=U(H,[["__scopeId","data-v-b221ae83"]]);export{F as default};
