import{a as c,r as t,q as g,aj as r,J as h,o as C,K as k,S as i,L as w,H as O,u as b,T as x}from"./vue.YrNK8sx4.js";import{k as R}from"./index.BKEMpsLA.js";import{G as S,c as B}from"./crud.CFNn8jYr.js";import{h as P}from"./columnPermission.BZw343bd.js";import{_ as y}from"./index.vue_vue_type_script_setup_true_lang.SIBe_Fjn.js";import"./authFunction.DqglRaEG.js";const G=c({name:"devicemaintenance"}),J=c({...G,setup(I){const o=t(!1),e=t(null),l=()=>{n.doRefresh()},{crudBinding:u,crudRef:d,crudExpose:n,crudOptions:p,resetCrudOptions:f}=R({createCrudOptions:s=>B({...s,dialogId:e,dialogVisible:o})});return console.log("dialogId:::",e),g(async()=>{const s=await P(S,p);f(s),n.doRefresh()}),(s,a)=>{const m=r("fs-crud"),_=r("fs-page");return C(),h(_,null,{default:k(()=>[i(m,O({ref_key:"crudRef",ref:d},b(u)),null,16),w(i(y,{id:e.value,visible:o.value,"onUpdate:visible":a[0]||(a[0]=v=>o.value=v),onSuccess:l},null,8,["id","visible"]),[[x,e.value!==null]])]),_:1})}}});export{J as default};
