suyuan/public/admin/assets/h5.f83fd8b4.js

2 lines
3.5 KiB
JavaScript
Raw Normal View History

2023-11-27 12:00:26 +08:00
import{_ as y}from"./index.ec6930be.js";import{P as k,H as x,N,O as H,C as R,B as U,w as S,D as q}from"./element-plus.c4a2af8a.js";import{r as B}from"./index.c9d608d6.js";import{d as C,$ as I,af as E,o as n,c as T,U as e,L as t,M as F,K as _,a as i,R as G,S as a,T as K}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.ff93117e.js";import"./axios.eb055ccc.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.ec5da75f.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.fa64f2fc.js";import"./vue-clipboard3.be0dfeee.js";import"./clipboard.824ba320.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";function L(p){return B.post({url:"/channel.web_page_setting/setConfig",params:p})}function M(){return B.get({url:"/channel.web_page_setting/getConfig"})}const O=a("\u5F00\u542F"),P=a("\u5173\u95ED"),$=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),j=a("\u7A7A\u9875\u9762"),z=a("\u81EA\u5B9A\u4E49\u94FE\u63A5"),J={class:"w-80"},Q={class:"flex-1 min-w-0 break-words"},W=a("\u590D\u5236"),X=a("\u4FDD\u5B58"),Y=C({name:"h5Config"}),Ut=C({...Y,setup(p){const o=I({status:0,page_status:0,page_url:"",url:""}),m=async()=>{const d=await M();for(const u in o)o[u]=d[u]},b=async()=>{await L(o),m()};return m(),(d,u)=>{const D=k,c=x,s=N,f=H,r=R,h=U,g=S,w=q,v=y,V=E("copy"),A=E("perms");return n(),T("div",null,[e(c,{class:"!border-none",shadow:"never"},{default:t(()=>[e(D,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1AH5\u8BBE\u7F6E",closable:!1,"show-icon":""})]),_:1}),e(c,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[e(w,{ref:"formRef",model:o,"label-width":"120px"},{default:t(()=>[e(r,{label:"\u6E20\u9053\u72B6\u6001",required:"",prop:"status"},{default:t(()=>[i("div",null,[e(f,{modelValue:o.status,"onUpdate:modelValue":u[0]||(u[0]=l=>o.status=l)},{default:t(()=>[e(s,{label:1},{default:t(()=>[O]),_:1}),e(s,{label:0},{default:t(()=>[P]),_:1})]),_:1},8,["modelValue"]),$])]),_:1}),e(r,{label:"\u5173\u95ED\u540E\u8BBF\u95EE\u9875\u9762",prop:"page_status"},{default:t(()=>[e(f,{modelValue:o.page_status,"onUpdate:modelValue":u[1]||(u[1]=l=>o.page_status=l)},{default:t(()=>[e(s,{label:0},{default:t(()=>[j]),_:1}),e(s,{label:1},{default:t(()=>[z]),_:1})]),_:1},8,["modelValue"])]),_:1}),o.page_status==1?(n(),_(r,{key:0,label:"",prop:"page_url"},{default:t(()=>[i("div",J,[e(h,{modelValue:o.page_url,"onUpdate:modelValue":u[2]||(u[2]=l=>o.page_url=l),placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684url"},null,8,["modelValue"])])]),_:1})):G("",!0),e(r,{label:"\u8BBF\u95EE\u94FE\u63A5"},{default:t(()=>[i("div",Q,[a(K(o.url)+" ",1),F((n(),_(g,null,{default:t(()=>[W]),_:1})),[[V,o.url]])])]),_:1})]),_:1},8,["model"])]),_:1}),F((n(),_(v,null,{default:t(()=>[e(g,{type:"primary",onClick:b},{default:t(()=>[X]),_:1})]),_:1})),[[A,["channel.web_page_setting/setConfig"]]])])}}});export{Ut as default};