import v from"./BaseForm-ed400627-1779868775780v=1.0.0.js";import{b as y,g as P}from"./codeManage-8e2aaa3d-1779868775780v=1.0.0.js";import{u as b}from"./useFormEdit-42a9503c-1779868775780v=1.0.0.js";import{b as _}from"./index-0f3e2c06-1779868775780v=1.0.0.js";import{E as u}from"./eleVendor-dbf96bf3-1779868775780v=1.0.0.js";import{l as m,a as i,d as h,ah as C,m as I,M as q,O as E,U,u as c,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 w=m({name:"codeManageEdit"}),V=m({...w,setup(x){const{closeCurrent:l}=b(),a=i({codePushId:"",sign:"",codeUrl:"",channel:"",remark:"",beforeUrl:"",beforeList:[],laterUrl:"",laterList:[],codePushStatusCn:"",auditDesc:""}),o=i(!1),s=_(),f=()=>{l()},g=async r=>{o.value=!0;try{let e=y,t="\u4FEE\u6539\u6210\u529F",n=await e(r);n.code==0?(u({type:"success",message:`${t}!`}),l()):u.warning(n.msg),o.value=!1}catch{o.value=!1}},p=async r=>{let e=await P(r);if(e.code!=0){u.warning(e.msg);return}for(const t in a.value)a.value[t]=e.data[t]};return h(async()=>{s.query.sign&&s.query.sign!="code_manager"&&(a.value.sign=s.query.sign),s.query.codePushId&&(a.value.codePushId=s.query.codePushId,p(s.query.codePushId))}),(r,e)=>{const t=C("PaIndexPage");return I(),q(t,null,{default:E(()=>[U(v,{value:c(a),"onUpdate:value":e[0]||(e[0]=n=>d(a)?a.value=n:null),loading:c(o),"onUpdate:loading":e[1]||(e[1]=n=>d(o)?o.value=n:null),onCancel:f,onSubmit:g},null,8,["value","loading"])]),_:1})}}});export{V as default};
