import g from"./BaseForm-ed400627-1779868775780v=1.0.0.js";import{a as v}from"./codeManage-8e2aaa3d-1779868775780v=1.0.0.js";import{u as _}from"./useFormEdit-42a9503c-1779868775780v=1.0.0.js";import{b}from"./index-0f3e2c06-1779868775780v=1.0.0.js";import{E as m}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as c,a as r,d as C,ah as y,m as P,M as U,O as x,U as B,u as i,B as d}from"./vendor-98154105-1779868775780v=1.0.0.js";import"./Imgs-fee891de-1779868775780v=1.0.0.js";import"./upload-a2386bf9-1779868775780v=1.0.0.js";import"./_plugin-vue_export-helper-8c5478df-1779868775780v=1.0.0.js";import"./tabs-e9b8af2b-1779868775780v=1.0.0.js";const E=c({name:"codeManageAdd"}),D=c({...E,setup(F){const{closeCurrent:l}=_(),t=b(),s=r({codePushId:"",sign:"",codeUrl:"",channel:"",remark:"",beforeUrl:"",beforeList:[],laterUrl:"",laterList:[],codePushStatusCn:"",auditDesc:""}),a=r(!1),f=()=>{l()};r("");const p=async u=>{a.value=!0;try{let e=v,n="\u65B0\u589E\u6210\u529F",o=await e(u);o.code==0?(m({type:"success",message:`${n}!`}),l()):m.warning(o.msg),a.value=!1}catch{a.value=!1}};return C(async()=>{t.query.sign&&t.query.sign!="code_manager"&&(s.value.sign=t.query.sign)}),(u,e)=>{const n=y("PaIndexPage");return P(),U(n,null,{default:x(()=>[B(g,{value:i(s),"onUpdate:value":e[0]||(e[0]=o=>d(s)?s.value=o:null),loading:i(a),"onUpdate:loading":e[1]||(e[1]=o=>d(a)?a.value=o:null),onCancel:f,onSubmit:p},null,8,["value","loading"])]),_:1})}}});export{D as default};
