import{ah as I,r as b,o as p,c as $,v as f,x as r,p as l,q as s,n as i,P as c,y as v,f9 as h,fa as k,bM as w,j as C,k as N,m as V,l as B,D as E}from"./index.8d733f79.js";const S={class:"page-content"},x={class:"page-title"},U={class:"content-wrap"},j={__name:"index",setup(F){const o=I({remindInfo:"",status:""}),{proxy:g}=E(),a=b();(async()=>{const e=await h();o.remindInfo=e.data.remindInfo,a.value=e.data.status})();const u=e=>{!g.$refs.formRef||g.$refs.formRef.validate(t=>{t?(o.status=e,k(o).then(_=>{if(a.value=o.status,a.value!==0){const d={show:a.value===1,info:o.remindInfo};w().changeUpgradeStatus(d)}})):console.log("error submit!")})};return(e,t)=>{const _=C,d=N,y=V,m=B;return p(),$("div",S,[f("div",x,r(e.$t("upgradeNote")),1),f("div",U,[l(y,{ref:"formRef",model:i(o)},{default:s(()=>[l(d,{label:e.$t("upgradeNote"),prop:"remindInfo",style:{height:"auto","margin-bottom":"30px"},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5347\u7EA7\u63D0\u9192",trigger:"blur"}]},{default:s(()=>[l(_,{modelValue:i(o).remindInfo,"onUpdate:modelValue":t[0]||(t[0]=n=>i(o).remindInfo=n),maxlength:"200",rows:"5","show-word-limit":"",type:"textarea",placeholder:e.$t("upgradeNoteP")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model"])]),f("div",null,[l(m,{type:"primary",onClick:t[1]||(t[1]=n=>u(0))},{default:s(()=>[c(r(e.$t("save")),1)]),_:1}),i(a)===1?(p(),v(m,{key:0,type:"primary",onClick:t[2]||(t[2]=n=>u(2))},{default:s(()=>[c(r(e.$t("stopPublish")),1)]),_:1})):(p(),v(m,{key:1,type:"primary",onClick:t[3]||(t[3]=n=>u(1))},{default:s(()=>[c(r(e.$t("publish")),1)]),_:1}))])])}}};export{j as default};
