engineering/public/admin/assets/index.8836f3b4.js
2024-04-19 12:13:39 +08:00

2 lines
4.4 KiB
JavaScript

import{_ as B}from"./index.c54f0be5.js";import{C as E,w as V}from"./element-plus.c5968462.js";import b from"./menu.a86f8a89.js";import C from"./preview.f95af62e.js";import{_ as h}from"./attr-setting.vue_vue_type_script_setup_true_lang.35ea99cc.js";import{e as N}from"./index.9770634d.js";import{s as P,a as k}from"./decoration.5ed544e3.js";import{p as F,_ as I}from"./index.9aa949ed.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.9bff6341.js";import"./dayjs.920ed704.js";import"./axios.fd7895df.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.f060c5ce.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.89a2cd6d.js";import"./color.f7f12e1b.js";import"./clone.3f99ce25.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.7ca60bdd.js";import"./ms.a9ae1d6d.js";import"./nprogress.2d805d1c.js";import"./vue-clipboard3.f9b015dd.js";import"./clipboard.84da4513.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.d5323004.js";import"./index.cebc7196.js";import"./picker.0692af68.js";import"./index.4450cf90.js";import"./picker.1fd2412d.js";import"./index.3122dc6e.js";import"./index.vue_vue_type_script_setup_true_lang.963b6450.js";import"./index.vue_vue_type_script_setup_true_lang.2a28bc4f.js";import"./usePaging.5a1a0ff2.js";import"./vue3-video-play.b66b1487.js";import"./vuedraggable.d13e0c8d.js";import"./vue.02f2c22a.js";import"./sortablejs.98b634a0.js";import"./content.vue_vue_type_script_setup_true_lang.0f1bf299.js";import"./decoration-img.13f44da6.js";import"./attr.vue_vue_type_script_setup_true_lang.111d7ec8.js";import"./content.27ba8722.js";import"./attr.vue_vue_type_script_setup_true_lang.6bc63bb9.js";import"./add-nav.vue_vue_type_script_setup_true_lang.b1199b38.js";import"./content.f18f6e80.js";import"./attr.vue_vue_type_script_setup_true_lang.8ca45ed5.js";import"./content.vue_vue_type_script_setup_true_lang.9ae94b4d.js";import"./attr.vue_vue_type_script_setup_true_lang.d4a01b37.js";import"./content.d60f6231.js";import"./attr.vue_vue_type_script_setup_true_lang.d755c81f.js";import"./content.b5e295af.js";import"./attr.vue_vue_type_script_setup_true_lang.45b44844.js";import"./content.vue_vue_type_script_setup_true_lang.45dddf5c.js";import"./attr.vue_vue_type_script_setup_true_lang.8af8a080.js";import"./content.3f95a8d7.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 se=I(z,[["__scopeId","data-v-c84d2462"]]);export{se as default};