import{a5 as b,ah as c,e as _,l as h,c as y,v as m,x as i,p as l,q as p,n as t,o as N,P as g,aj as v,u as k}from"./index.8d733f79.js";import{b as S}from"./deviceGroup.8eaffc4c.js";const C={class:"page-content"},z={class:"page-title"},D={style:{"text-align":"right","margin-bottom":"20px"}},w=b({name:"deviceGroupList"}),B=Object.assign(w,{setup(x){const r=k(),n=c({total:0,tableData:[],columns:[{prop:"name",label:"dataAuth"},{prop:"remark",label:"remark"},{label:"action",type:"action",width:180,fixed:"right"}]}),s=c({name:"",pageNo:1,pageSize:10});_(()=>{u()});async function u(){const a=await S(s);n.total=a.data.totalElements,n.tableData=a.data.content}const f=a=>{r.push({path:"/sysConfig/dataAuth/edit",query:{str:JSON.stringify(a)}})};return(a,e)=>{const d=h;return N(),y("div",C,[m("div",z,i(a.$t("dataAuth")),1),m("div",D,[l(d,{onClick:e[0]||(e[0]=o=>t(r).push("/"))},{default:p(()=>[g(i(a.$t("quitConfig")),1)]),_:1})]),l(t(v),{class:"f-h",columns:t(n).columns,tableData:t(n).tableData,total:t(n).total,pageNum:t(s).pageNo,"onUpdate:pageNum":e[1]||(e[1]=o=>t(s).pageNo=o),pageSize:t(s).pageSize,"onUpdate:pageSize":e[2]||(e[2]=o=>t(s).pageSize=o),onPagination:u},{action:p(({scope:o})=>[l(d,{link:"",type:"primary",onClick:$=>f(o.row)},{default:p(()=>[g(i(a.$t("view")),1)]),_:2},1032,["onClick"])]),_:1},8,["columns","tableData","total","pageNum","pageSize"])])}}});export{B as default};
