TaskSystem/public/admin/assets/pc.551695d9.js
2023-09-14 13:47:56 +08:00

2 lines
4.3 KiB
JavaScript

import{_ as E}from"./index.4a6c0177.js";import{I as b,w as B}from"./element-plus.b64c0a90.js";import P from"./menu.c1f85dec.js";import k from"./preview-pc.6f0ce9e4.js";import{_ as C}from"./attr-setting.vue_vue_type_script_setup_true_lang.897d1b28.js";import"./index.b7675886.js";import{s as I,a as N}from"./decoration.d6e17c90.js";import"./lodash.08438971.js";import{d as v,$ as h,r as d,e as u,w as M,af as S,o as _,c as O,U as i,L as n,a as U,u as p,k as f,M as F,K as J,R}from"./@vue.51d7f2d8.js";import{d as T}from"./index.760285cd.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.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"./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.d0e18524.js";import"./index.faac87da.js";import"./picker.a03ef28f.js";import"./index.8bb6f5eb.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./picker.3283c3e3.js";import"./index.f53f11d9.js";import"./index.vue_vue_type_script_setup_true_lang.a080b28e.js";import"./index.b06f93da.js";import"./index.vue_vue_type_script_setup_true_lang.c4fa43c7.js";import"./usePaging.2ad8e1e6.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.6e431029.js";import"./decoration-img.9730e80f.js";import"./attr.vue_vue_type_script_setup_true_lang.322bd0c5.js";import"./content.70a6068b.js";import"./attr.vue_vue_type_script_setup_true_lang.8e6f4da3.js";import"./add-nav.vue_vue_type_script_setup_true_lang.53d58090.js";import"./content.a32143ae.js";import"./attr.vue_vue_type_script_setup_true_lang.21b3bafd.js";import"./content.vue_vue_type_script_setup_true_lang.340afd05.js";import"./attr.vue_vue_type_script_setup_true_lang.d01577b5.js";import"./content.b9c971ef.js";import"./attr.vue_vue_type_script_setup_true_lang.0fc534ba.js";import"./content.99bbb8f0.js";import"./attr.vue_vue_type_script_setup_true_lang.eb4a01e5.js";import"./content.vue_vue_type_script_setup_true_lang.ad4b79ec.js";import"./attr.vue_vue_type_script_setup_true_lang.00e826d0.js";import"./content.c1e4daef.js";const W={class:"decoration-pages min-w-[1100px]"},$={class:"flex h-full items-start"},H=v({name:"decorationPc"}),K=v({...H,setup(L){let l;(t=>{t.HOME="4"})(l||(l={}));const a=h({[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 N({id:o.value});a[String(t.id)].pageData=JSON.parse(t.data),r.value=m.value.findIndex(e=>!e.disabled)},x=async()=>{await I({...a[o.value],data:JSON.stringify(a[o.value].pageData)}),c()};return M(o,()=>{r.value=m.value.findIndex(t=>!t.disabled),c()},{immediate:!0}),(t,e)=>{const D=b,w=B,y=E,V=S("perms");return _(),O("div",W,[i(D,{shadow:"never",class:"!border-none flex-1 flex","body-style":{flex:1}},{default:n(()=>[U("div",$,[i(P,{modelValue:p(o),"onUpdate:modelValue":e[0]||(e[0]=s=>f(o)?o.value=s:null),menus:p(a)},null,8,["modelValue","menus"]),i(k,{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(C,{class:"flex-1",widget:p(g),type:"pc"},null,8,["widget"])])]),_:1}),F((_(),J(y,{class:"mt-4",fixed:!1},{default:n(()=>[i(w,{type:"primary",onClick:x},{default:n(()=>[R("\u4FDD\u5B58")]),_:1})]),_:1})),[[V,["decorate:pages:save"]]])])}}});const ne=T(K,[["__scopeId","data-v-0627c615"]]);export{ne as default};