import d from"./BaseForm-8a66d404-1782468512657v=1.0.0.js";import{u as g}from"./useFormEdit-57ddb914-1782468512657v=1.0.0.js";import{u as v}from"./accountPermissionManageApi-2cda4906-1782468512657v=1.0.0.js";import{a as _}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{E as l}from"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import{x as c,r as u,k as F,al as b,y,H as C,I as E,Q as k,u as m,l as i}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import"./eleValidate-846b8983-1782468512657v=1.0.0.js";import"./role-d87c2313-1782468512657v=1.0.0.js";import"./keepAlive-a871c896-1782468512657v=1.0.0.js";const x=c({name:"roleManageEdit"}),U=c({...x,setup(B){const{closeCurrent:n}=g();u(null);const a=u(!1),t=u({}),f=()=>{n()},p=async r=>{a.value=!0;try{let e=v,s="\u4FEE\u6539\u6210\u529F",o=await e(r);o.code==0?(l({type:"success",message:`${s}!`}),n()):l.warning(o.msg),a.value=!1}catch{a.value=!1}};return _(),F(()=>{}),(r,e)=>{const s=b("HZPageLayout");return y(),C(s,{isBack:!0,title:"\u8D26\u53F7\u6743\u9650\u7F16\u8F91"},{default:E(()=>[k(d,{loading:m(a),"onUpdate:loading":e[0]||(e[0]=o=>i(a)?a.value=o:null),value:m(t),"onUpdate:value":e[1]||(e[1]=o=>i(t)?t.value=o:null),tsIdDisable:!0,onCancel:f,onSubmit:p},null,8,["loading","value"])]),_:1})}}});export{U as default};
