import{_}from"./TagForm.vue_vue_type_script_setup_true_lang-f56eb976.js";import{_ as g}from"./TagTypeForm.vue_vue_type_script_setup_true_lang-ceca0372.js";import{u as y}from"./useFormEdit-3c660b22.js";import{T as b,K as T}from"./tabs-96386b59.js";import{d as k,O as C,p,f as d,a as s,c as S,e as t,z as f,a4 as n}from"./index-deffec86.js";import"./addNotice-0d8f69a1.js";import"./Imgs-5872fe00.js";const x={class:"card"},j=k({__name:"edit",setup(R){const{closeCurrent:v,setTitle:U,addMethod:B,loading:o,updateMethod:F}=y(),u=C();b(),T();const r=p({personnel_name:"",avatar:"",avatar_url:"",mobile:"",sex:1}),l=p({personnel_name:"",avatar:"",avatar_url:"",mobile:"",sex:1}),c=d(()=>u.query.isType||"");d(()=>u.query.id||"");const i=()=>{v()},m=async()=>{};return(q,e)=>(s(),S("div",x,[t(c)?(s(),f(_,{key:0,ref:"tagFormRef",value:t(r),"onUpdate:value":e[0]||(e[0]=a=>n(r)?r.value=a:null),loading:t(o),"onUpdate:loading":e[1]||(e[1]=a=>n(o)?o.value=a:null),onCancel:i,onSubmit:m},null,8,["value","loading"])):(s(),f(g,{key:1,ref:"tagTypeFormRef",value:t(l),"onUpdate:value":e[2]||(e[2]=a=>n(l)?l.value=a:null),loading:t(o),"onUpdate:loading":e[3]||(e[3]=a=>n(o)?o.value=a:null),onCancel:i,onSubmit:m},null,8,["value","loading"]))]))}});export{j as default};
