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