ss-component-new 1.2.70 → 1.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MTLLoader-BjmWyviD.js → MTLLoader-K11XHLAM.js} +1 -1
- package/dist/{MTLLoader-DBBidgmx.cjs → MTLLoader-ikqYcjAo.cjs} +1 -1
- package/dist/{OrbitControls-DxV_6hpG.cjs → OrbitControls-CS8gOWAT.cjs} +1 -1
- package/dist/{OrbitControls-DXmNlVYH.js → OrbitControls-Cw_tl6K1.js} +1 -1
- package/dist/{URDFLoader-Cco_Lcwb.cjs → URDFLoader-BhEBwb_Y.cjs} +1 -1
- package/dist/{URDFLoader-CcBxQ1c0.js → URDFLoader-Dlh2X0Iv.js} +2 -2
- package/dist/{animationData-Uoa72jZ_.js → animationData-C0Dh4mjP.js} +1 -1
- package/dist/{animationData-2jq1YxE6.cjs → animationData-D_zroenU.cjs} +1 -1
- package/dist/{array-CYRaUJ1t.cjs → array-Dkcb0MKV.cjs} +1 -1
- package/dist/{array-JcPpBayM.js → array-eASasGM2.js} +2 -2
- package/dist/{iconfont-DUxgt1se.cjs → iconfont-77OhOwxs.cjs} +1 -1
- package/dist/{iconfont-j0Nysio3.js → iconfont-T0wWnxgR.js} +2 -2
- package/dist/{index-DcP7YN6o.cjs → index-5ngo1Jl7.cjs} +1 -1
- package/dist/{index-CoG5ETzW.cjs → index-BGdo0lqx.cjs} +1 -1
- package/dist/{index-Bont3QS5.js → index-BHb9mdSS.js} +1 -1
- package/dist/{index-Bpswj9pH.js → index-BKZZqxv8.js} +8 -8
- package/dist/{index-Cv6yN4sX.js → index-BMwOfyZG.js} +1 -1
- package/dist/{index-BkUBCWJp.cjs → index-BUxE-JUG.cjs} +1 -1
- package/dist/{index-CjsgHn_-.cjs → index-BVHMMDYj.cjs} +1 -1
- package/dist/{index-wa-KcD0x.js → index-BVsUXckx.js} +5 -5
- package/dist/{index-CnHvgwHp.js → index-BWjhL8R0.js} +122 -118
- package/dist/{index-BTjm91Vy.js → index-BYc9jyiE.js} +2 -2
- package/dist/{index-Dh_4l8VQ.cjs → index-Bd3cJhSh.cjs} +1 -1
- package/dist/index-BsynnP1m.js +2853 -0
- package/dist/{index-Cqafg-Dj.js → index-BtmfheCs.js} +1 -1
- package/dist/{index-Bs5Qn2CE.cjs → index-Bw5o8WK1.cjs} +1 -1
- package/dist/{index-JPzhvq_L.cjs → index-C0TESDF4.cjs} +1 -1
- package/dist/{index-G0M5BHaR.js → index-C5AMx3DP.js} +1 -1
- package/dist/{index-DrFpWuel.cjs → index-C6Hq4npG.cjs} +1 -1
- package/dist/{index-rawFAPBx.js → index-C7_zXFBB.js} +2 -2
- package/dist/{index-DNbT4lhP.cjs → index-CLJYSvkY.cjs} +1 -1
- package/dist/{index-DtJNBd93.js → index-CTnokPli.js} +5 -5
- package/dist/{index-HjQKPdcM.cjs → index-Cf-44FjK.cjs} +1 -1
- package/dist/{index-BCteAWvZ.js → index-CnUzzOAg.js} +2 -2
- package/dist/{index-DHxcjKwh.js → index-Cyiwumzg.js} +2 -2
- package/dist/{index-BmUcSRI3.cjs → index-D77fb8YT.cjs} +1 -1
- package/dist/index-D907HeIK.cjs +1 -0
- package/dist/{index-z42AJ-1l.js → index-D9iPLSwS.js} +1 -1
- package/dist/{index-CvyYBi73.js → index-DBmvCes2.js} +2 -2
- package/dist/{index-CiTW8KaP.cjs → index-DClp_CE2.cjs} +1 -1
- package/dist/{index-CunKHiRY.js → index-DJIYiX7n.js} +4 -4
- package/dist/{index-DEg3SYFk.js → index-DMSzQRai.js} +2 -2
- package/dist/{index-BaWiLzpY.cjs → index-DTFPueRJ.cjs} +1 -1
- package/dist/{index-DOq4yWxs.js → index-DVdauMYc.js} +1 -1
- package/dist/{index-fmOKsPMg.cjs → index-DcRnbkgF.cjs} +1 -1
- package/dist/{index-CxUHJyzF.cjs → index-DeBHVrj0.cjs} +8 -8
- package/dist/{index-BaEWbMSn.cjs → index-Dgu3YiKg.cjs} +1 -1
- package/dist/{index-Curm849s.cjs → index-Di9z9n0o.cjs} +1 -1
- package/dist/{index-SO9EFGi9.js → index-Dj4SVmPC.js} +5 -5
- package/dist/{index-BXsIGK-B.js → index-Dm78GSsI.js} +2 -2
- package/dist/{index-IE2Uria8.cjs → index-Ds1y6Uqe.cjs} +1 -1
- package/dist/{index-BONDASGh.js → index-DvMLV6_i.js} +2 -2
- package/dist/{index-CQbo2kEK.cjs → index-DzDFCtjN.cjs} +1 -1
- package/dist/{index-BwXUkfCd.cjs → index-ECG5cq2t.cjs} +1 -1
- package/dist/{index-_yRWJD4L.cjs → index-GBag8JpT.cjs} +1 -1
- package/dist/{index-3PJxn2WQ.cjs → index-HiZw37CZ.cjs} +1 -1
- package/dist/{index-BB7O7Rte.cjs → index-K-uL8YOH.cjs} +1 -1
- package/dist/{index-DfQLRst9.js → index-O38XeeGF.js} +19 -19
- package/dist/{index-BTZ3Pq6e.js → index-YWsdowCe.js} +2 -2
- package/dist/{index-D3sqTSa-.js → index-Z5WfIite.js} +3 -3
- package/dist/{index-wyImPEww.js → index-ZM_5Mf9f.js} +3 -3
- package/dist/{index-B3s_4mdp.cjs → index-a4k6bdxV.cjs} +1 -1
- package/dist/{index-duy78Se4.js → index-jz3YasSY.js} +1 -1
- package/dist/{index-D3M8fQ4y.js → index-svORarJa.js} +10 -10
- package/dist/{index-DUJAQZQ_.cjs → index-vUsExAu6.cjs} +1 -1
- package/dist/{index-DUHVLIj4.cjs → index-wKj5dGSc.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DobE6Kxy.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BlnK_yzI.js} +7989 -7989
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Dkmm1LDr.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BzQaSUrd.cjs} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BXBIXUC2.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B8vp1IiT.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DtPGaddg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BqQqbKuV.js} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Dz4nCqvT.js +343 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Ptcjn9Ky.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-anh9YB-q.cjs → index.vue_vue_type_style_index_1_lang-BSiAbU7c.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CNhpv89t.js → index.vue_vue_type_style_index_1_lang-BwRYUsPu.js} +4 -4
- package/dist/{main-CByXRt0H.cjs → main-DYDt57Qc.cjs} +1 -1
- package/dist/{main-CdCAHd8p.js → main-DhuYYLjy.js} +4 -4
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-BFg5IKxj.cjs → threeModel-5wvGy8S9.cjs} +1 -1
- package/dist/{threeModel-CGnw4nlf.js → threeModel-CcHi1GT0.js} +4 -4
- package/dist/{threePreview-BRp-vNQ4.js → threePreview-DjrtURuf.js} +3 -3
- package/dist/{threePreview-DK3UPu_o.cjs → threePreview-unSCDqCQ.cjs} +1 -1
- package/dist/{threeSceneView-_zm5H9TM.js → threeSceneView-DhSHXsQI.js} +10 -10
- package/dist/{threeSceneView-BmXUoJXD.cjs → threeSceneView-o0KAzZ_q.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BR86xSRr.cjs → threeSceneViewForCPMPIP-5KiGagRG.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-6xf7Qyr7.js → threeSceneViewForCPMPIP-CX3biKW2.js} +7 -7
- package/dist/{threeTrackPathView-CvXUecFw.cjs → threeTrackPathView-ChRPHpPb.cjs} +1 -1
- package/dist/{threeTrackPathView-DpderxqO.js → threeTrackPathView-DxGKpAp8.js} +3 -3
- package/dist/{threeViewerHost-CwSjbBmp.cjs → threeViewerHost-BGIjs6Rt.cjs} +1 -1
- package/dist/{threeViewerHost-BQ81ASnp.js → threeViewerHost-CzYaQhEH.js} +3 -3
- package/dist/{urdfTree-Vh6Oy_BA.js → urdfTree-CJmO7Y4d.js} +1 -1
- package/dist/{urdfTree-CCkUOAkZ.cjs → urdfTree-DSu_fNLS.cjs} +1 -1
- package/dist/{workpieceTreePanel-Ox8IiCtW.js → workpieceTreePanel-CMuekYhH.js} +4 -4
- package/dist/{workpieceTreePanel-313k4lC2.cjs → workpieceTreePanel-Cnr0mMqr.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BaOJkZDg.cjs +0 -1
- package/dist/index-CqV07DKI.js +0 -2878
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BOLDF7ZW.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-cOKt3tH5.js +0 -343
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
|
|
2
|
-
import { U as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { U as _ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BqQqbKuV.js";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const z = {
|
|
5
5
|
__name: "index",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as $o, a as Mo, f as Ro, g as Lo, u as Fo, s as jo } from "./index-
|
|
1
|
+
import { b as $o, a as Mo, f as Ro, g as Lo, u as Fo, s as jo } from "./index-BsynnP1m.js";
|
|
2
2
|
import { computed as Xt, ref as de, watch as wt, onUnmounted as Ko, resolveComponent as Ut, createElementBlock as et, openBlock as Ee, createVNode as Se, createBlock as Ot, createCommentVNode as fa, withCtx as $e, createElementVNode as ie, Fragment as Ht, renderList as Jt, toDisplayString as bt, nextTick as qa, createTextVNode as It, defineComponent as ma, resolveDynamicComponent as nn, onMounted as Rn, unref as Tt, reactive as ja, renderSlot as zn, createSlots as Uo, mergeProps as vr, normalizeStyle as cn, withModifiers as Nn, getCurrentInstance as No, inject as _l, shallowRef as Wo, toRef as Vo, onBeforeMount as gr, watchEffect as Ho, onBeforeUnmount as yr, normalizeClass as Cl, getCurrentScope as qo, onScopeDispose as Go, provide as Sl, toRefs as El, withDirectives as Xo, vShow as Yo } from "vue";
|
|
3
3
|
import { bP as Jo, k as oi, bQ as Qo, bR as Zo, bS as es, s as Zt, p as Yt, u as Bi, c as g, E as Wt, b as qi, g as va, d as Gi, bK as $n, bI as qn, e as fn, bJ as Xi, f as mr, bT as ts } from "./index-Ai5OAXHo.js";
|
|
4
|
-
import { c as ca, a as dl, d as br, E as kr, e as xr, f as as, b as ns, i as mi } from "./index-
|
|
5
|
-
import { u as $i, F as is, A as Yi, I as Ji, g as na, S as ls, B as fl, C as Qi, D as ha, E as Vn, G as an, H as On, J as Ki, l as rs, K as os, L as ss, M as Dl, N as us, O as bi, P as cs, Q as ds, R as fs, T as ps, n as hs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
-
import { s as pa } from "./index-
|
|
7
|
-
import { a as vs, T as gs } from "./threeViewerHost-
|
|
8
|
-
import { a as Ln, u as Xn, E as Ga, ac as ys } from "./index-
|
|
4
|
+
import { c as ca, a as dl, d as br, E as kr, e as xr, f as as, b as ns, i as mi } from "./index-BVsUXckx.js";
|
|
5
|
+
import { u as $i, F as is, A as Yi, I as Ji, g as na, S as ls, B as fl, C as Qi, D as ha, E as Vn, G as an, H as On, J as Ki, l as rs, K as os, L as ss, M as Dl, N as us, O as bi, P as cs, Q as ds, R as fs, T as ps, n as hs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BqQqbKuV.js";
|
|
6
|
+
import { s as pa } from "./index-jz3YasSY.js";
|
|
7
|
+
import { a as vs, T as gs } from "./threeViewerHost-CzYaQhEH.js";
|
|
8
|
+
import { a as Ln, u as Xn, E as Ga, ac as ys } from "./index-BWjhL8R0.js";
|
|
9
9
|
import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { i as Tl } from "./isString-8mN8gX27.js";
|
|
11
11
|
import { _ as Il } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
|
-
import { a as ms, s as bs } from "./index-
|
|
12
|
+
import { a as ms, s as bs } from "./index-Z5WfIite.js";
|
|
13
13
|
import wr from "./index-rlStojTL.js";
|
|
14
|
-
import { s as ks } from "./index-
|
|
14
|
+
import { s as ks } from "./index-BHb9mdSS.js";
|
|
15
15
|
var xs = /\s/;
|
|
16
16
|
function ws(a) {
|
|
17
17
|
for (var r = a.length; r-- && xs.test(a.charAt(r)); )
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("vue"),q=require("./index-CxUHJyzF.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index-BaOJkZDg.cjs"),A=q.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=q.useMenuState(i.pinia),{menus:ee,configMenu:H,activeMenuPath:_,cacheStructures:E}=i.storeToRefs(I),$=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),j=g.ref([]),x=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:x.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:j.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),R=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),O=e=>{var t;J.value=e?(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):R.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;$.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?x.value.splice(0):(x.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":O(null),await I.setConfigMenu(null);break;case"update":O(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=H.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&(j.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),$.value=!1},B=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(B(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(B(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(B(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),q.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&j.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...H.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...H.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:O,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:$,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
|
|
1
|
+
"use strict";const g=require("vue"),q=require("./index-DeBHVrj0.cjs"),i=require("./index-C8qRkCgn.cjs"),pe=require("./index-D907HeIK.cjs"),A=q.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=q.useMenuState(i.pinia),{menus:ee,configMenu:H,activeMenuPath:_,cacheStructures:E}=i.storeToRefs(I),$=g.ref(!1),te=g.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=i.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),j=g.ref([]),x=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:x.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:j.value}]),J=g.ref([]),k=g.ref({}),de=g.ref({}),R=g.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),O=e=>{var t;J.value=e?(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):R.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await i.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;$.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?x.value.splice(0):(x.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":O(null),await I.setConfigMenu(null);break;case"update":O(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=R.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);A.setItemData(a),I.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return i.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=H.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&(j.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),$.value=!1},B=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{i.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(B(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(B(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(B(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await g.nextTick();const a=(n=(u=(l=E.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=E.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),q.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&j.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...H.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...H.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:O,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:$,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-DzDFCtjN.cjs"),r=require("./index-C8qRkCgn.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as G, resolveComponent as X, createBlock as j, openBlock as b, createCommentVNode as i0, createSlots as B2, withCtx as I, renderSlot as f0, defineComponent as h2, onMounted as re, createVNode as Q, createElementVNode as o0, createElementBlock as A, Fragment as _0, renderList as C0, createTextVNode as E2, toDisplayString as W0, reactive as c1, h as Be, Transition as $r, withDirectives as dt, vShow as Ut, createApp as jr, toRefs as M4, nextTick as S2, isRef as Wr, watch as r2, computed as t0, onBeforeUnmount as On, normalizeStyle as X0, normalizeClass as X3, resolveDynamicComponent as Ft, normalizeProps as Ur, guardReactiveProps as Fr, mergeProps as h1, withModifiers as T4, inject as qr, watchEffect as we, onUnmounted as d1, unref as nt, resolveDirective as Yr } from "vue";
|
|
2
2
|
import { S as ut } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { av as Kr, D as z4, m as Je, b as Xr, S as ms, c as P4, aw as Qr, ax as Jr, ay as Zr, az as e8, d as t8, aA as vs, aB as ws } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { av as Kr, D as z4, m as Je, b as Xr, S as ms, c as P4, aw as Qr, ax as Jr, ay as Zr, az as e8, d as t8, aA as vs, aB as ws } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BqQqbKuV.js";
|
|
4
4
|
import { _ as P0 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { bR as A4, bS as V4, cf as i8, cg as xs, bG as n8, b8 as t3, U as s8, ae as E4, aJ as kt, b7 as bs, Z as B4, ch as o8, E as B3, p as i3, s as n3, c as Y2, a as L4, ci as l8, aW as r8, aw as a8, cj as c8, b as h8, b2 as d8 } from "./index-Ai5OAXHo.js";
|
|
6
6
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
|
-
import { a as Dn, u as H4 } from "./index-
|
|
8
|
-
import { s as Mn } from "./index-
|
|
9
|
-
import { T as _s, a as u8 } from "./threeViewerHost-
|
|
10
|
-
import { s as f8 } from "./index-
|
|
7
|
+
import { a as Dn, u as H4 } from "./index-BWjhL8R0.js";
|
|
8
|
+
import { s as Mn } from "./index-jz3YasSY.js";
|
|
9
|
+
import { T as _s, a as u8 } from "./threeViewerHost-CzYaQhEH.js";
|
|
10
|
+
import { s as f8 } from "./index-DVdauMYc.js";
|
|
11
11
|
var p8 = "[object Date]";
|
|
12
12
|
function g8(n) {
|
|
13
13
|
return A4(n) && V4(n) == p8;
|