2 lines
4.5 KiB
JavaScript
2 lines
4.5 KiB
JavaScript
import{_ as B}from"./index.29a1c54c.js";import{C as E,w as V}from"./element-plus.258bf9e7.js";import b from"./menu.def323af.js";import C from"./preview.a4ec29a8.js";import{_ as h}from"./attr-setting.vue_vue_type_script_setup_true_lang.2a80dffe.js";import{e as N}from"./index.d1e0494b.js";import{s as P,a as k}from"./decoration.7c0854a6.js";import{o as F,_ as I}from"./index.96d7cfe4.js";import{d as v,a0 as S,r as d,e as _,w as A,ai as M,o as f,c as O,V as r,M as n,O as W,L as J,a as T,u as g,T as U}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./attr.vue_vue_type_script_setup_true_lang.abe5ce47.js";import"./index.b9e1e3f4.js";import"./picker.e2148f7f.js";import"./index.d922571c.js";import"./picker.04abd0db.js";import"./index.a00a5ddc.js";import"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import"./index.vue_vue_type_script_setup_true_lang.84fcd2ee.js";import"./usePaging.f6660143.js";import"./file.vue_vue_type_style_index_0_scoped_5ccc0f84_lang.e4e8877b.js";import"./vue3-video-play.b66b1487.js";import"./vuedraggable.05ef589e.js";import"./vue.6436c619.js";import"./sortablejs.81b741d7.js";import"./content.vue_vue_type_script_setup_true_lang.69c73838.js";import"./decoration-img.b0fc7a1a.js";import"./attr.vue_vue_type_script_setup_true_lang.de3ab574.js";import"./content.243441b3.js";import"./attr.vue_vue_type_script_setup_true_lang.18a7ed7e.js";import"./add-nav.vue_vue_type_script_setup_true_lang.56bc3153.js";import"./content.13a5a780.js";import"./attr.vue_vue_type_script_setup_true_lang.1d307f0d.js";import"./content.vue_vue_type_script_setup_true_lang.7a789b3b.js";import"./attr.vue_vue_type_script_setup_true_lang.d4a01b37.js";import"./content.2467d768.js";import"./attr.vue_vue_type_script_setup_true_lang.d755c81f.js";import"./content.e3f6c89d.js";import"./attr.vue_vue_type_script_setup_true_lang.f0c771b6.js";import"./content.vue_vue_type_script_setup_true_lang.f3684df5.js";import"./attr.vue_vue_type_script_setup_true_lang.8af8a080.js";import"./content.a2093036.js";const L={class:"decoration-pages min-w-[1100px]"},$={class:"flex h-full items-start"},j=U("\u4FDD\u5B58"),q=v({name:"decorationPages"}),z=v({...q,setup(G){const m=t=>t.map(e=>{var p;return{id:F(),...((p=N[e])==null?void 0:p.options())||{}}}),a=S({[1]:{id:1,type:1,name:"\u9996\u9875\u88C5\u4FEE",pageData:m(["search","banner","nav","news"])},[2]:{id:2,type:2,name:"\u4E2A\u4EBA\u4E2D\u5FC3",pageData:m(["user-info","my-service","user-banner"])},[3]:{id:3,type:3,name:"\u5BA2\u670D\u8BBE\u7F6E",pageData:m(["customer-service"])}}),o=d("1"),i=d(-1),l=_(()=>{var t,e;return(e=(t=a[o.value])==null?void 0:t.pageData)!=null?e:[]}),D=_(()=>{var t,e;return(e=(t=a[o.value])==null?void 0:t.pageData[i.value])!=null?e:""}),u=async()=>{const t=await k({id:o.value});a[String(t.id)].pageData=JSON.parse(t.data)},x=async()=>{await P({...a[o.value],data:JSON.stringify(a[o.value].pageData)}),u()};return A(o,()=>{i.value=l.value.findIndex(t=>!t.disabled),u()},{immediate:!0}),(t,e)=>{const c=E,p=V,w=B,y=M("perms");return f(),O("div",L,[r(c,{shadow:"never",class:"!border-none flex-1 flex","body-style":{flex:1}},{default:n(()=>[T("div",$,[r(b,{modelValue:o.value,"onUpdate:modelValue":e[0]||(e[0]=s=>o.value=s),menus:a},null,8,["modelValue","menus"]),r(C,{modelValue:i.value,"onUpdate:modelValue":e[1]||(e[1]=s=>i.value=s),pageData:g(l)},null,8,["modelValue","pageData"]),r(h,{class:"flex-1",widget:g(D)},null,8,["widget"])])]),_:1}),W((f(),J(w,{class:"mt-4",fixed:!1},{default:n(()=>[r(p,{type:"primary",onClick:x},{default:n(()=>[j]),_:1})]),_:1})),[[y,["decorate:pages:save"]]])])}}});const ne=I(z,[["__scopeId","data-v-c84d2462"]]);export{ne as default};
|