import{_ as y}from"./baseInfo.vue_vue_type_script_setup_true_lang-a72a07f4-1779868775780v=1.0.0.js";import{q as _,r as v}from"./systemManage-d67b09c0-1779868775780v=1.0.0.js";import{u as b}from"./useFormEdit-42a9503c-1779868775780v=1.0.0.js";import{b as R}from"./index-0f3e2c06-1779868775780v=1.0.0.js";import{E as l}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as p,a as m,d as C,ah as T,m as x,M as B,O as A,U as E,u,B as i}from"./vendor-98154105-1779868775780v=1.0.0.js";import"./tabs-e9b8af2b-1779868775780v=1.0.0.js";const L=p({name:"systemDataRoleAdd"}),q=p({...L,setup(P){const{closeCurrent:r}=b(),c=R(),s=m({name:"",reamrk:"",dictTypeSign:c.query.type,mpTypeRolesList:[]}),a=m(!1),d=()=>{r()},f=async t=>{a.value=!0;try{let e="\u65B0\u589E\u6210\u529F";(await _(t)).code===0&&(l({type:"success",message:`${e}!`}),setTimeout(()=>{r()},500)),a.value=!1}catch{a.value=!1}},g=async()=>{let e=await v({});e.code!==0&&l.error(e.msg),s.value.mpTypeRolesList=e.data.mpTypeRolesList};return C(()=>{g()}),(t,e)=>{const n=T("PaIndexPage");return x(),B(n,null,{default:A(()=>[E(y,{value:u(s),"onUpdate:value":e[0]||(e[0]=o=>i(s)?s.value=o:null),loading:u(a),"onUpdate:loading":e[1]||(e[1]=o=>i(a)?a.value=o:null),onCancel:d,onSubmit:f},null,8,["value","loading"])]),_:1})}}});export{q as default};
