import{r as a,E as v}from"./index-8184dd63-1780045603901v=1.0.0.js";import{c as f,u as b}from"./tagManage-1b66d64b-1780045603901v=1.0.0.js";const B=(c,n)=>{const s=a(!1),o=a(""),i=a("\u6807\u7B7E");switch(n){case"area_submit_project":i.value="\u9879\u76EE";break}const u=a(""),d=()=>{r.value={name:"",logo:"",imagesList:[],status:1,des:"",tag_group_id:""},o.value="\u65B0\u589E"+i.value,u.value="",s.value=!0},m=e=>{let t={name:e.name,logo:e.logo,imagesList:[],status:e.status,des:e.des,tag_group_id:e.tag_group_id};u.value=e.tag_id,r.value=t,o.value="\u7F16\u8F91"+i.value,s.value=!0},r=a({name:"",logo:"",imagesList:[],status:1,des:"",tag_group_id:""}),l=a(!1);return{dialogVisible:s,dialogTitle:o,handleAdd:d,handleEdit:m,baseform:r,baseformLoading:l,baseformCancel:()=>{s.value=!1},baseformSubmit:async e=>{l.value=!0;try{let t=f,g="\u65B0\u589E\u6210\u529F";u.value&&(e.tag_id=u.value,t=b,g="\u66F4\u65B0\u6210\u529F"),(await t(e)).code==200&&(v({type:"success",message:`${g}!`}),s.value=!1,c()),l.value=!1}catch{l.value=!1}},currenEditId:u}};export{B as u};
