WokerTask/public/admin/assets/h5.b3709682.js

2 lines
3.7 KiB
JavaScript

import{_ as k}from"./index.19b93800.js";import{T as x,J as H,H as N,I as R,D as U,C as q,w as I,F as T}from"./element-plus.ff90c99c.js";import{r as C}from"./index.9acc1fa4.js";import{d as b,$ as S,aq as F,o as i,c as G,W as e,Q as t,u,a as p,U as l,P as m,T as J,V as P,R as B}from"./@vue.f8dfc830.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./lodash.ffb5376d.js";import"./axios.f9df025a.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.d1ea016b.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.4e7fd6e6.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";function Q(_){return C.post({url:"/channel.web_page_setting/setConfig",params:_})}function W(){return C.get({url:"/channel.web_page_setting/getConfig"})}const $=p("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={class:"w-80"},z={class:"flex-1 min-w-0 break-words"},K=b({name:"h5Config"}),Nt=b({...K,setup(_){const o=S({status:0,page_status:0,page_url:"",url:""}),d=async()=>{const c=await W();for(const a in o)o[a]=c[a]},D=async()=>{await Q(o),d()};return d(),(c,a)=>{const w=x,f=H,s=N,g=R,n=U,v=q,E=I,V=T,A=k,h=F("copy"),y=F("perms");return i(),G("div",null,[e(f,{class:"!border-none",shadow:"never"},{default:t(()=>[e(w,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1AH5\u8BBE\u7F6E",closable:!1,"show-icon":""})]),_:1}),e(f,{class:"!border-none mt-4",shadow:"never"},{default:t(()=>[e(V,{ref:"formRef",model:u(o),"label-width":"120px"},{default:t(()=>[e(n,{label:"\u6E20\u9053\u72B6\u6001",required:"",prop:"status"},{default:t(()=>[p("div",null,[e(g,{modelValue:u(o).status,"onUpdate:modelValue":a[0]||(a[0]=r=>u(o).status=r)},{default:t(()=>[e(s,{label:1},{default:t(()=>[l("\u5F00\u542F")]),_:1}),e(s,{label:0},{default:t(()=>[l("\u5173\u95ED")]),_:1})]),_:1},8,["modelValue"]),$])]),_:1}),e(n,{label:"\u5173\u95ED\u540E\u8BBF\u95EE\u9875\u9762",prop:"page_status"},{default:t(()=>[e(g,{modelValue:u(o).page_status,"onUpdate:modelValue":a[1]||(a[1]=r=>u(o).page_status=r)},{default:t(()=>[e(s,{label:0},{default:t(()=>[l("\u7A7A\u9875\u9762")]),_:1}),e(s,{label:1},{default:t(()=>[l("\u81EA\u5B9A\u4E49\u94FE\u63A5")]),_:1})]),_:1},8,["modelValue"])]),_:1}),u(o).page_status==1?(i(),m(n,{key:0,label:"",prop:"page_url"},{default:t(()=>[p("div",j,[e(v,{modelValue:u(o).page_url,"onUpdate:modelValue":a[2]||(a[2]=r=>u(o).page_url=r),placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684url"},null,8,["modelValue"])])]),_:1})):J("",!0),e(n,{label:"\u8BBF\u95EE\u94FE\u63A5"},{default:t(()=>[p("div",z,[l(P(u(o).url)+" ",1),B((i(),m(E,null,{default:t(()=>[l("\u590D\u5236")]),_:1})),[[h,u(o).url]])])]),_:1})]),_:1},8,["model"])]),_:1}),B((i(),m(A,null,{default:t(()=>[e(E,{type:"primary",onClick:D},{default:t(()=>[l("\u4FDD\u5B58")]),_:1})]),_:1})),[[y,["channel.web_page_setting/setConfig"]]])])}}});export{Nt as default};