import{a5 as c,b as m,u as g,r as f,ah as r,o as b,y as N,q as S,p as w,n as a,aj as y,s as _,bv as z}from"./index.8d733f79.js";import{r as D}from"./collector.4eeb72e6.js";const P=c({name:"AssociateSensor"}),V=Object.assign(P,{setup(h,{expose:p}){m(),g();const s=f(!1),n=r({total:0,tableData:[],columns:[{prop:"channelNo",label:"channelNo",width:100},{prop:"pointPath",label:"linkPoint",showAll:!0}]}),e=r({pageNo:1,pageSize:10});function u(t){s.value=!0,e.factoryId=t.factoryId,e.sensorId=t.sensorId,i()}async function i(){const t=await D(e);n.total=t.data.totalElements,n.tableData=t.data.content}return p({showModal:u}),(t,o)=>{const d=z;return b(),N(d,{title:t.$t("associatedPoint"),modelValue:a(s),"onUpdate:modelValue":o[2]||(o[2]=l=>_(s)?s.value=l:null),width:"600px","align-center":!0,"append-to-body":""},{default:S(()=>[w(a(y),{columns:a(n).columns,tableData:a(n).tableData,total:a(n).total,pageNum:a(e).pageNo,"onUpdate:pageNum":o[0]||(o[0]=l=>a(e).pageNo=l),pageSize:a(e).pageSize,"onUpdate:pageSize":o[1]||(o[1]=l=>a(e).pageSize=l),onPagination:i},null,8,["columns","tableData","total","pageNum","pageSize"])]),_:1},8,["title","modelValue"])}}});export{V as default};
