import{x as p,r,y as c,H as _,u as m,l as u}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import g from"./BaseForm-61edfd6e-1783405707921v=1.0.0.js";import{a as v}from"./roleManageApi-18d4d92d-1783405707921v=1.0.0.js";import{u as b}from"./useFormEdit-38c2c94d-1783405707921v=1.0.0.js";import{E as i}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import{_ as M}from"./index-71d7b18c-1783405707921v=1.0.0.js";import"./BaseInfo-1e0846cd-1783405707921v=1.0.0.js";import"./role-ca48e7dd-1783405707921v=1.0.0.js";import"./AuthInfo-c5d8678b-1783405707921v=1.0.0.js";import"./keepAlive-6cb682d1-1783405707921v=1.0.0.js";const x=p({name:"roleManageAdd"}),y=p({...x,setup(B){const{closeCurrent:n}=b(),s=r({role_id:"",mp_name:"",role_name:"",role_desc:"",role_status:""}),a=r(!1),d=()=>{n()};r("");const f=async t=>{a.value=!0;try{let e=v,o="\u65B0\u589E\u6210\u529F",l=await e(t);l.code==0?(i({type:"success",message:`${o}!`}),n()):i.warning(l.msg),a.value=!1}catch{a.value=!1}};return(t,e)=>(c(),_(g,{value:m(s),"onUpdate:value":e[0]||(e[0]=o=>u(s)?s.value=o:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=o=>u(a)?a.value=o:null),onCancel:d,onSubmit:f},null,8,["value","loading"]))}}),A=M(y,[["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/roleManage/roleManage/add.vue"]]);export{A as default};
