import{x as c,r,k as _,al as v,y,H as C,I as F,Q as b,u as m,l as f}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import w from"./BaseForm-3574c1fc-1783405707921v=1.0.0.js";import{u as h,g as k}from"./roleConfApi-83d611e3-1783405707921v=1.0.0.js";import{u as x}from"./useFormEdit-38c2c94d-1783405707921v=1.0.0.js";import{a as B,_ as L}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{E as u}from"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./keepAlive-6cb682d1-1783405707921v=1.0.0.js";const E=c({name:"roleConfEdit"}),R=c({...E,setup(D){const{closeCurrent:l}=x();r(null);const a=r({roleName:"",startTime:"",rightList:[]}),t=r(!1),d=()=>{l()},p=async s=>{t.value=!0;try{let e=h,n="\u66F4\u65B0\u6210\u529F",o=await e(s);o.code==200?u({type:"success",message:`${n}!`}):u.warning(o.msg||o.message),t.value=!1,l()}catch{t.value=!1}},i=B(),g=async s=>{let e=await k({identity_code:s});if(e.code!=200){u.warning(e.msg);return}a.value.rightList=e.data};return _(()=>{i.query.identity_code&&g(i.query.identity_code)}),(s,e)=>{const n=v("HZPageLayout");return y(),C(n,{isBack:!0,title:"\u7F16\u8F91\u89D2\u8272"},{default:F(()=>[b(w,{value:m(a),"onUpdate:value":e[0]||(e[0]=o=>f(a)?a.value=o:null),loading:m(t),"onUpdate:loading":e[1]||(e[1]=o=>f(t)?t.value=o:null),onCancel:d,onSubmit:p},null,8,["value","loading"])]),_:1})}}}),S=L(R,[["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/roleConf/roleConf/edit.vue"]]);export{S as default};
