import{_ as g}from"./index.2a3cc40c.js";import{K as w,G as A,H as k,I as y,D as x,C as H,F as N,w as I}from"./element-plus.fa1aa32c.js";import{r as E,f as R}from"./index.0abf9e5c.js";import{d as F,a0 as S,ag as U,o as n,c as q,V as e,M as o,a as i,L as f,S as G,O as L,T as a}from"./@vue.cab01781.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.22a46fd8.js";import"./axios.8058589d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.bbe6f09f.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.5bd363c0.js";import"./color.232115c1.js";import"./clone.8f44c0eb.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.404eaa9c.js";import"./vue-clipboard3.19ab9072.js";import"./clipboard.6fb7c109.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";function T(m){return E.post({url:"/channel/h5/save",params:m})}function K(){return E.get({url:"/channel/h5/detail"})}const M=a("\u5F00\u542F"),O=a("\u5173\u95ED"),j=i("div",{class:"form-tips"},"\u72B6\u6001\u4E3A\u5173\u95ED\u65F6\uFF0C\u5C06\u4E0D\u5BF9\u5916\u63D0\u4F9B\u670D\u52A1\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C",-1),z=a("\u7A7A\u9875\u9762"),J=a("\u81EA\u5B9A\u4E49\u94FE\u63A5"),P={class:"w-80"},Q=a("\u4FDD\u5B58"),W=F({name:"h5Config"}),Ae=F({...W,setup(m){const t=S({status:0,close:0,url:"",accessLink:""}),p=async()=>{const _=await K();for(const u in t)t[u]=_[u]},C=async()=>{await T(t),p(),R.msgSuccess("\u64CD\u4F5C\u6210\u529F")};return p(),(_,u)=>{const B=w,c=y,s=A,d=k,r=x,h=H,D=N,b=I,v=g,V=U("perms");return n(),q("div",null,[e(c,{class:"!border-none",shadow:"never"},{default:o(()=>[e(B,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1AH5\u5546\u57CE\u8BBE\u7F6E",closable:!1,"show-icon":""})]),_:1}),e(c,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[e(D,{ref:"formRef",model:t,"label-width":"160px"},{default:o(()=>[e(r,{label:"\u6E20\u9053\u72B6\u6001",required:"",prop:"status"},{default:o(()=>[i("div",null,[e(d,{modelValue:t.status,"onUpdate:modelValue":u[0]||(u[0]=l=>t.status=l)},{default:o(()=>[e(s,{label:1},{default:o(()=>[M]),_:1}),e(s,{label:0},{default:o(()=>[O]),_:1})]),_:1},8,["modelValue"]),j])]),_:1}),e(r,{label:"\u5173\u95ED\u540E\u8BBF\u95EE\u9875\u9762",prop:"close"},{default:o(()=>[e(d,{modelValue:t.close,"onUpdate:modelValue":u[1]||(u[1]=l=>t.close=l)},{default:o(()=>[e(s,{label:0},{default:o(()=>[z]),_:1}),e(s,{label:1},{default:o(()=>[J]),_:1})]),_:1},8,["modelValue"])]),_:1}),t.close==1?(n(),f(r,{key:0,label:"",prop:"url"},{default:o(()=>[i("div",P,[e(h,{modelValue:t.url,"onUpdate:modelValue":u[2]||(u[2]=l=>t.url=l),placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684url"},null,8,["modelValue"])])]),_:1})):G("",!0)]),_:1},8,["model"])]),_:1}),L((n(),f(v,null,{default:o(()=>[e(b,{type:"primary",onClick:C},{default:o(()=>[Q]),_:1})]),_:1})),[[V,["channel:h5:save"]]])])}}});export{Ae as default};
