import{_ as v}from"./BaseForm.vue_vue_type_script_setup_true_lang-3f01c5f1-1782111760424v=1.0.0.js";import{u as b,g as y}from"./dataDictApi-d2fc600e-1782111760424v=1.0.0.js";import{u as D}from"./useFormEdit-61a257a4-1782111760424v=1.0.0.js";import{a as C}from"./index-996f931c-1782111760424v=1.0.0.js";import{E as u}from"./eleVendor-99a45232-1782111760424v=1.0.0.js";import{m as f,a as l,e as w,ai as x,p as E,M as F,O as P,U as q,u as m,D as c}from"./vendor-7f807b9d-1782111760424v=1.0.0.js";import"./tabs-cb939388-1782111760424v=1.0.0.js";const B=f({name:"dataDictEdit"}),N=f({...B,setup(I){const{closeCurrent:i}=D(),d=l(null),s=l({name:"",isEnable:""}),a=l(!1),p=()=>{i()},g=async o=>{a.value=!0;try{let e=b,r="\u66F4\u65B0\u6210\u529F",t=await e(o);t.code==0?u({type:"success",message:`${r}!`}):u.warning(t.msg),a.value=!1,i()}catch{a.value=!1}},n=C(),_=async o=>{let e=await y(o);if(e.code!=0){u.warning(e.msg);return}s.value=e.data};return w(()=>{n.query.id&&(d.value=n.query.id,_(n.query.id))}),(o,e)=>{const r=x("PaIndexPage");return E(),F(r,null,{default:P(()=>[q(v,{value:m(s),"onUpdate:value":e[0]||(e[0]=t=>c(s)?s.value=t:null),loading:m(a),"onUpdate:loading":e[1]||(e[1]=t=>c(a)?a.value=t:null),onCancel:p,onSubmit:g},null,8,["value","loading"])]),_:1})}}});export{N as default};
