WokerTask/public/admin/assets/index.48d1a2c9.js

2 lines
4.6 KiB
JavaScript

import{_ as V}from"./index.43072ec6.js";import{I as b,w as C}from"./element-plus.10e48c93.js";import I from"./menu.1b2792e7.js";import N from"./preview.443c32d4.js";import{_ as P}from"./attr-setting.vue_vue_type_script_setup_true_lang.67495530.js";import{w as S}from"./index.43084455.js";import{s as h,a as k}from"./decoration.14a1713a.js";import{t as F,d as M}from"./index.c35b5194.js";import{d as x,$ as R,r as f,e as g,w as U,af as A,o as v,c as O,U as i,L as l,a as J,u as m,k as D,M as W,K as $,R as H}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.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.40d5feba.js";import"./attr.vue_vue_type_script_setup_true_lang.40b3245e.js";import"./index.ea7307a0.js";import"./picker.98580e01.js";import"./index.e02c2f77.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./picker.af61fc1c.js";import"./index.4f359444.js";import"./index.vue_vue_type_script_setup_true_lang.579ca8f7.js";import"./index.454bbff4.js";import"./index.vue_vue_type_script_setup_true_lang.c7e5e9c8.js";import"./usePaging.60d02673.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.0cb40d3a.js";import"./vue.5de34049.js";import"./sortablejs.ef73fc5c.js";import"./content.vue_vue_type_script_setup_true_lang.b4742734.js";import"./decoration-img.4917a1e9.js";import"./attr.vue_vue_type_script_setup_true_lang.3871a2a8.js";import"./content.11352543.js";import"./attr.vue_vue_type_script_setup_true_lang.996eb886.js";import"./add-nav.vue_vue_type_script_setup_true_lang.1cd10df9.js";import"./content.1ab6c229.js";import"./attr.vue_vue_type_script_setup_true_lang.be4535ab.js";import"./content.vue_vue_type_script_setup_true_lang.8e8ad1b3.js";import"./attr.vue_vue_type_script_setup_true_lang.d01577b5.js";import"./content.c959f350.js";import"./attr.vue_vue_type_script_setup_true_lang.0fc534ba.js";import"./content.3996ff9e.js";import"./attr.vue_vue_type_script_setup_true_lang.9f2e5921.js";import"./content.vue_vue_type_script_setup_true_lang.e1bbe4b8.js";import"./attr.vue_vue_type_script_setup_true_lang.00e826d0.js";import"./content.06b7d251.js";const K={class:"decoration-pages min-w-[1100px]"},L={class:"flex h-full items-start"},j=x({name:"decorationPages"}),q=x({...j,setup(z){let u;(t=>{t.HOME="1",t.USER="2",t.SERVICE="3"})(u||(u={}));const s=t=>t.map(e=>{var p;return{id:F(),...((p=S[e])==null?void 0:p.options())||{}}}),a=R({[1]:{id:1,type:1,name:"\u9996\u9875\u88C5\u4FEE",pageData:s(["search","banner","nav","news"])},[2]:{id:2,type:2,name:"\u4E2A\u4EBA\u4E2D\u5FC3",pageData:s(["user-info","my-service","user-banner"])},[3]:{id:3,type:3,name:"\u5BA2\u670D\u8BBE\u7F6E",pageData:s(["customer-service"])}}),o=f("1"),r=f(-1),c=g(()=>{var t,e;return(e=(t=a[o.value])==null?void 0:t.pageData)!=null?e:[]}),w=g(()=>{var t,e;return(e=(t=a[o.value])==null?void 0:t.pageData[r.value])!=null?e:""}),d=async()=>{const t=await k({id:o.value});a[String(t.id)].pageData=JSON.parse(t.data)},E=async()=>{await h({...a[o.value],data:JSON.stringify(a[o.value].pageData)}),d()};return U(o,()=>{r.value=c.value.findIndex(t=>!t.disabled),d()},{immediate:!0}),(t,e)=>{const _=b,p=C,y=V,B=A("perms");return v(),O("div",K,[i(_,{shadow:"never",class:"!border-none flex-1 flex","body-style":{flex:1}},{default:l(()=>[J("div",L,[i(I,{modelValue:m(o),"onUpdate:modelValue":e[0]||(e[0]=n=>D(o)?o.value=n:null),menus:m(a)},null,8,["modelValue","menus"]),i(N,{modelValue:m(r),"onUpdate:modelValue":e[1]||(e[1]=n=>D(r)?r.value=n:null),pageData:m(c)},null,8,["modelValue","pageData"]),i(P,{class:"flex-1",widget:m(w)},null,8,["widget"])])]),_:1}),W((v(),$(y,{class:"mt-4",fixed:!1},{default:l(()=>[i(p,{type:"primary",onClick:E},{default:l(()=>[H("\u4FDD\u5B58")]),_:1})]),_:1})),[[B,["decorate:pages:save"]]])])}}});const ce=M(q,[["__scopeId","data-v-c84d2462"]]);export{ce as default};