WokerTask/public/admin/assets/pc.a4d202e8.js

2 lines
4.5 KiB
JavaScript

import{_ as b}from"./index.72fdaf75.js";import{J as E,w as P}from"./element-plus.74337649.js";import B from"./menu.a41a9305.js";import C from"./preview-pc.2da32588.js";import{_ as N}from"./attr-setting.vue_vue_type_script_setup_true_lang.8cf04dc1.js";import"./index.ab45a45d.js";import{s as h,a as k}from"./decoration.76ca5972.js";import"./lodash.3e731b89.js";import{d as v,$ as I,r as d,b as u,w as S,aq as J,o as _,c as M,W as i,Q as n,a as O,u as p,j as f,R as U,P as W,U as F}from"./@vue.f8dfc830.js";import{d as R}from"./index.59d2be02.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"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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";import"./attr.vue_vue_type_script_setup_true_lang.f518c645.js";import"./index.7807b630.js";import"./picker.0486d877.js";import"./index.3b74a81e.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./picker.261b95db.js";import"./index.90355fce.js";import"./index.vue_vue_type_script_setup_true_lang.ffdfb4a0.js";import"./index.0b88d40c.js";import"./index.vue_vue_type_script_setup_true_lang.08ef880d.js";import"./usePaging.bd7a7dec.js";import"./vue3-video-play.5592bdaa.js";import"./vuedraggable.99ce9db3.js";import"./vue.80fb6650.js";import"./sortablejs.76b408b5.js";import"./content.vue_vue_type_script_setup_true_lang.283f48e3.js";import"./decoration-img.01d06c75.js";import"./attr.vue_vue_type_script_setup_true_lang.c6487471.js";import"./content.029e9ebc.js";import"./attr.vue_vue_type_script_setup_true_lang.c265ec1d.js";import"./add-nav.vue_vue_type_script_setup_true_lang.e1391610.js";import"./content.4cb4b522.js";import"./attr.vue_vue_type_script_setup_true_lang.e56f2a98.js";import"./content.vue_vue_type_script_setup_true_lang.f78f7f25.js";import"./attr.vue_vue_type_script_setup_true_lang.b806e4c7.js";import"./content.17979c41.js";import"./attr.vue_vue_type_script_setup_true_lang.153369b3.js";import"./content.1a730b0e.js";import"./attr.vue_vue_type_script_setup_true_lang.44c11337.js";import"./content.vue_vue_type_script_setup_true_lang.65d73b15.js";import"./attr.vue_vue_type_script_setup_true_lang.645b3e63.js";import"./content.cd2551b6.js";const T={class:"decoration-pages min-w-[1100px]"},$={class:"flex h-full items-start"},j=v({name:"decorationPc"}),q=v({...j,setup(H){let l;(t=>{t.HOME="4"})(l||(l={}));const a=I({[4]:{id:4,type:4,name:"\u9996\u9875\u88C5\u4FEE",pageData:[]}}),o=d("4"),r=d(0),m=u(()=>{var t,e;return(e=(t=a[o.value])==null?void 0:t.pageData)!=null?e:[]}),g=u(()=>{var t,e;return(e=(t=a[o.value])==null?void 0:t.pageData[r.value])!=null?e:""}),c=async()=>{const t=await k({id:o.value});a[String(t.id)].pageData=JSON.parse(t.data),r.value=m.value.findIndex(e=>!e.disabled)},x=async()=>{await h({...a[o.value],data:JSON.stringify(a[o.value].pageData)}),c()};return S(o,()=>{r.value=m.value.findIndex(t=>!t.disabled),c()},{immediate:!0}),(t,e)=>{const D=E,w=P,y=b,V=J("perms");return _(),M("div",T,[i(D,{shadow:"never",class:"!border-none flex-1 flex","body-style":{flex:1}},{default:n(()=>[O("div",$,[i(B,{modelValue:p(o),"onUpdate:modelValue":e[0]||(e[0]=s=>f(o)?o.value=s:null),menus:p(a)},null,8,["modelValue","menus"]),i(C,{class:"mx-4",modelValue:p(r),"onUpdate:modelValue":e[1]||(e[1]=s=>f(r)?r.value=s:null),pageData:p(m)},null,8,["modelValue","pageData"]),i(N,{class:"flex-1",widget:p(g),type:"pc"},null,8,["widget"])])]),_:1}),U((_(),W(y,{class:"mt-4",fixed:!1},{default:n(()=>[i(w,{type:"primary",onClick:x},{default:n(()=>[F("\u4FDD\u5B58")]),_:1})]),_:1})),[[V,["decorate:pages:save"]]])])}}});const de=R(q,[["__scopeId","data-v-0627c615"]]);export{de as default};