import{k as y,n as k}from"./index.BKEMpsLA.js";import{createCrudOptions as C}from"./crud.BHYfw7HT.js";import{a as s,q as g,aj as a,J as x,o as B,K as t,S as o,H as w,u as b,P as r}from"./vue.YrNK8sx4.js";import"./api.BT1AK3Px.js";import"./authFunction.DqglRaEG.js";import"./dictionary.BKmP-zGJ.js";const h=s({name:"device"}),q=s({...h,setup(v){const{crudBinding:d,crudRef:p,crudExpose:l,crudOptions:O,resetCrudOptions:R}=y({createCrudOptions:C}),i=()=>{},m=()=>{},u=async()=>{k({url:"/api/system/device/download_template/",method:"get",filename:"设备模板"})};function c(){}return g(async()=>{l.doRefresh()}),(D,e)=>{const n=a("el-button"),f=a("fs-crud"),_=a("fs-page");return B(),x(_,null,{default:t(()=>[o(f,w({ref_key:"crudRef",ref:p},b(d)),{"actionbar-right":t(()=>[o(n,{type:"primary",onClick:i},{default:t(()=>e[0]||(e[0]=[r("批量导入")])),_:1}),o(n,{type:"primary",onClick:m},{default:t(()=>e[1]||(e[1]=[r("批量导出")])),_:1}),o(n,{type:"primary",onClick:u},{default:t(()=>e[2]||(e[2]=[r("下载模板")])),_:1}),o(n,{type:"danger",onClick:c},{default:t(()=>e[3]||(e[3]=[r("批量删除")])),_:1})]),_:1},16)]),_:1})}}});export{q as default};
