ss-component-new 1.3.49 → 1.3.50

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.
Files changed (100) hide show
  1. package/dist/{MTLLoader-D-urUdrf.cjs → MTLLoader-CEOtxyh2.cjs} +1 -1
  2. package/dist/{MTLLoader-EdMOXCr9.js → MTLLoader-GkOcupU3.js} +40 -40
  3. package/dist/{OrbitControls-Bqm95jie.js → OrbitControls-BFsEQ8wY.js} +1 -1
  4. package/dist/{OrbitControls-CsZhoVbh.cjs → OrbitControls-Cg-eGwSp.cjs} +1 -1
  5. package/dist/{URDFLoader-Dv2_yu9H.cjs → URDFLoader-VqEU-Bt0.cjs} +1 -1
  6. package/dist/{URDFLoader-Dj_qDDyi.js → URDFLoader-ehXmhBFT.js} +200 -200
  7. package/dist/{animationData-B3clqdCz.js → animationData-5o0D2SPA.js} +18 -18
  8. package/dist/{animationData-j8q9GL9s.cjs → animationData-h3_OEBhG.cjs} +1 -1
  9. package/dist/{array-DBmb_dbA.cjs → array-DN-yv0nl.cjs} +1 -1
  10. package/dist/{array-CuxW2kDp.js → array-_E6SKuKJ.js} +4 -4
  11. package/dist/{iconfont-CNymCHn6.cjs → iconfont-D0Cr9kuj.cjs} +1 -1
  12. package/dist/{iconfont-CvYchHEP.js → iconfont-DCFi7bPb.js} +46 -46
  13. package/dist/{index-CNydDYrN.cjs → index-B-1umMBk.cjs} +1 -1
  14. package/dist/{index-DQQGHkNg.cjs → index-B1U12Kov.cjs} +1 -1
  15. package/dist/{index-CISOplCk.js → index-B2iB_sIJ.js} +7 -8
  16. package/dist/{index-C2uQtrJb.js → index-B6jDYtpC.js} +8 -8
  17. package/dist/{index-BU_tmMwb.js → index-B7QR-Lou.js} +2 -2
  18. package/dist/index-BEQHIheQ.cjs +1 -0
  19. package/dist/{index-BeljvnZD.cjs → index-BFKHCjkd.cjs} +1 -1
  20. package/dist/{index-DAMlyIHp.js → index-BFMsMcD8.js} +4936 -5119
  21. package/dist/{index-C--Cb4yz.cjs → index-BJWrNIga.cjs} +1 -1
  22. package/dist/index-BJac5xKn.cjs +1 -0
  23. package/dist/{index-DOMPCPNk.js → index-BQSHrnLz.js} +3 -3
  24. package/dist/{index-Dqqp33r1.cjs → index-BZST7lPo.cjs} +11 -11
  25. package/dist/{index-COudEqtW.js → index-B_4AbtRg.js} +7 -7
  26. package/dist/{index-DVccu9rG.js → index-BdgLWDfL.js} +2111 -2353
  27. package/dist/{index-XroQ9gxP.js → index-BfEF_JC6.js} +7 -7
  28. package/dist/{index-CS4i2VJg.js → index-BgDSEEhr.js} +7 -7
  29. package/dist/{index-BRRItZG6.js → index-BnlicLlu.js} +2 -2
  30. package/dist/{index-N47WYmXL.cjs → index-C0KanvaS.cjs} +1 -1
  31. package/dist/{index-DvkpICHb.js → index-C1QaJ_Nu.js} +3 -3
  32. package/dist/{index-BvlEnbTN.js → index-CFn5-3eu.js} +2 -2
  33. package/dist/index-CGchY9n4.cjs +1 -0
  34. package/dist/{index-DQdNqcDC.js → index-CJIRsR3f.js} +2 -2
  35. package/dist/{index-CwhxnRyA.js → index-CX12hzsx.js} +1545 -1510
  36. package/dist/{index-D7dH9fVy.js → index-ClKAqw9M.js} +8 -8
  37. package/dist/{index-Dnry90NJ.js → index-CnKvPKWE.js} +3 -3
  38. package/dist/{index-CW3QZYd0.cjs → index-Cw_ZOIg_.cjs} +1 -1
  39. package/dist/{index-CaQxsLai.js → index-CwiUgaGI.js} +5 -5
  40. package/dist/index-D3MoBe24.cjs +15 -0
  41. package/dist/index-D6D9SCPa.cjs +1 -0
  42. package/dist/{index-DfcsvIY5.cjs → index-DB8oLdoK.cjs} +1 -1
  43. package/dist/{index-B94M9CMw.cjs → index-DLPQoVA6.cjs} +1 -1
  44. package/dist/{index-D3_jq7cX.cjs → index-DQJPWEqk.cjs} +1 -1
  45. package/dist/{index-9nY56-QR.cjs → index-DYQ5ZvYh.cjs} +1 -1
  46. package/dist/{index-CVLV7-M9.js → index-DYSziVz4.js} +9 -9
  47. package/dist/{index-BKrkAcBB.cjs → index-DcLb0XZD.cjs} +1 -1
  48. package/dist/{index-C9K9NG79.cjs → index-Dg5D5xCR.cjs} +1 -1
  49. package/dist/{index-DO_oafZe.js → index-Dg8irIqw.js} +5 -5
  50. package/dist/{index-DECdW2FW.js → index-DgVgB13t.js} +1 -1
  51. package/dist/{index-7G6RnWL-.js → index-DnkflWQf.js} +1 -1
  52. package/dist/{index-DLsU_7sc.js → index-DrFxQ8Ki.js} +2 -2
  53. package/dist/{index-D1TGlpbP.cjs → index-DwaW_eAE.cjs} +1 -1
  54. package/dist/{index-CGAzwavt.js → index-DzkWy2PD.js} +638 -639
  55. package/dist/{index-osT7gQ0k.cjs → index-F3XHv6p-.cjs} +1 -1
  56. package/dist/{index-DaObODQd.cjs → index-FrwJsit5.cjs} +1 -1
  57. package/dist/{index-CebyFRzl.cjs → index-KJ5I6heb.cjs} +1 -1
  58. package/dist/{index-CVhEAMxc.cjs → index-WSa1Enje.cjs} +1 -1
  59. package/dist/{index-C4Y_0Pqx.js → index-Wkp3bFzx.js} +1 -1
  60. package/dist/{index-MtuCSFch.js → index-XyzV8czh.js} +3 -3
  61. package/dist/{index-BBpfH3U5.cjs → index-aliiazw8.cjs} +1 -1
  62. package/dist/{index-B_ab3YNj.js → index-hkchRNAV.js} +10 -11
  63. package/dist/{index-CZ_1yrbo.cjs → index-tADecIkG.cjs} +1 -1
  64. package/dist/{index-DhdGSuCy.cjs → index-z2md-yku.cjs} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dim6PXfX.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCz-I5jm.js} +27358 -26694
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BimFR8f6.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DD10WrJ2.cjs} +392 -382
  67. package/dist/{index.vue_vue_type_style_index_1_lang-DlkNXxzZ.cjs → index.vue_vue_type_style_index_1_lang-CdWzb_V-.cjs} +1 -1
  68. package/dist/{index.vue_vue_type_style_index_1_lang-RJi0lv4v.js → index.vue_vue_type_style_index_1_lang-LDqCgKnI.js} +57 -57
  69. package/dist/{main-aZoig-Ic.cjs → main-Bv2Plrj7.cjs} +1 -1
  70. package/dist/{main-CKRcAjah.js → main-CsLazQpe.js} +4 -4
  71. package/dist/{menuIndex-BOUigvDC.cjs → menuIndex-CnGLkky9.cjs} +1 -1
  72. package/dist/{menuIndex-C1JdgI18.js → menuIndex-I5ECgNWt.js} +1 -1
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.js +15 -15
  75. package/dist/ss-component2.cjs +1 -1
  76. package/dist/ss-component2.js +11 -11
  77. package/dist/{threeModel-BZ92nN2I.js → threeModel-Cnyc_Xfm.js} +45 -45
  78. package/dist/{threeModel-DocL2Wps.cjs → threeModel-Dy7yCJzh.cjs} +1 -1
  79. package/dist/{threePreview-Bg9IDV16.js → threePreview-CAXTHct3.js} +137 -137
  80. package/dist/{threePreview-rZ-Mn3yx.cjs → threePreview-rc0Y3L69.cjs} +1 -1
  81. package/dist/{threeSceneView-D9GroZ9j.cjs → threeSceneView-BUb8pd-o.cjs} +1 -1
  82. package/dist/{threeSceneView-FqQJ7ZrG.js → threeSceneView-DsioOlOb.js} +137 -137
  83. package/dist/{threeSceneViewForCPMPIP-WugeC6sT.cjs → threeSceneViewForCPMPIP-D6en-lGr.cjs} +1 -1
  84. package/dist/{threeSceneViewForCPMPIP-BKeIA1xt.js → threeSceneViewForCPMPIP-vG44vNGe.js} +8 -8
  85. package/dist/{threeTrackPathView-Dx18ZIwF.js → threeTrackPathView-BaONHAhM.js} +56 -56
  86. package/dist/{threeTrackPathView-BE28zw_v.cjs → threeTrackPathView-CZTeW2Pq.cjs} +1 -1
  87. package/dist/{threeViewerHost-Dn4RvDFi.js → threeViewerHost-CLtCJAE_.js} +14 -14
  88. package/dist/{threeViewerHost-ZjhprZMr.cjs → threeViewerHost-DO4F_9O0.cjs} +1 -1
  89. package/dist/{urdfTree-C_IB0S4H.cjs → urdfTree-CnCpOTGQ.cjs} +1 -1
  90. package/dist/{urdfTree-D4JGxfMF.js → urdfTree-DrdQVTXa.js} +1 -1
  91. package/dist/{workpieceTreePanel-Di9vo3vC.cjs → workpieceTreePanel-BFPaqDJD.cjs} +1 -1
  92. package/dist/{workpieceTreePanel-jgqhd2py.js → workpieceTreePanel-BLpxZYf-.js} +72 -72
  93. package/package.json +1 -1
  94. package/dist/index-3m8kfH7_.js +0 -38
  95. package/dist/index-BM--4cI-.cjs +0 -1
  96. package/dist/index-DX9jk8Sp.cjs +0 -11
  97. package/dist/index-Dc1Bh93L.cjs +0 -1
  98. package/dist/index-LEeC_fJN.cjs +0 -1
  99. package/dist/index-syxWjmqB.cjs +0 -15
  100. package/dist/index-ytduJbtp.cjs +0 -1
@@ -1,15 +1,15 @@
1
- import { _ as Et, s as Bt, g as Lt } from "./index-CGAzwavt.js";
1
+ import { _ as Et, s as Bt, g as Lt } from "./index-DzkWy2PD.js";
2
2
  import { defineComponent as Ft, defineProps as Ut, ref as z, computed as Ge, onMounted as jt, watch as At, reactive as Pt, resolveComponent as te, createElementBlock as q, openBlock as O, Fragment as Ne, createVNode as J, createCommentVNode as Je, withCtx as V, normalizeStyle as $t, toDisplayString as lt, createElementVNode as We, renderList as st, createTextVNode as at, createBlock as Rt, resolveDynamicComponent as Ot } from "vue";
3
- import { u as zt, a as qt, p as ot, b as Jt, s as Qe, c as xe } from "./index-CwhxnRyA.js";
4
- import { s as Wt } from "./index-7G6RnWL-.js";
5
- import { b as Gt } from "./index-DAMlyIHp.js";
3
+ import { u as zt, a as qt, p as ot, b as Jt, s as Qe, c as xe } from "./index-CX12hzsx.js";
4
+ import { s as Wt } from "./index-DnkflWQf.js";
5
+ import { b as Gt } from "./index-BFMsMcD8.js";
6
6
  import { useRouter as Nt } from "vue-router";
7
7
  import { a as Qt, e as Xt, f as Yt, g as Zt, h as xt } from "./index-CAPx0_D4.js";
8
8
  import { g as $e, u as Xe, e as it, f as Vt, d as rt } from "./index-B8HqIYd5.js";
9
- import { f as Ht } from "./menuIndex-C1JdgI18.js";
9
+ import { f as Ht } from "./menuIndex-I5ECgNWt.js";
10
10
  import { S as ut } from "./index-BHtNKL1L.js";
11
- import { g as Ye, c as pt, n as mt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dim6PXfX.js";
12
- import { v as Ze } from "./index-CISOplCk.js";
11
+ import { g as Ye, c as pt, q as mt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCz-I5jm.js";
12
+ import { v as Ze } from "./index-B2iB_sIJ.js";
13
13
  import { _ as el } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const ct = (c, p, E = 0) => {
15
15
  let n = c;
@@ -1,7 +1,7 @@
1
- import { ref as l, watch as m, defineComponent as b, reactive as y, onMounted as g, createElementBlock as i, openBlock as D, createVNode as f } from "vue";
2
- import { s as h } from "./index-COudEqtW.js";
1
+ import { ref as l, watch as d, defineComponent as b, reactive as y, onMounted as g, createElementBlock as D, openBlock as i, createVNode as f } from "vue";
2
+ import { s as h } from "./index-B_4AbtRg.js";
3
3
  import { g as C } from "./index-B8HqIYd5.js";
4
- import { g as k, h as _, a as S, s as c, u as A, i as T } from "./index-CwhxnRyA.js";
4
+ import { m as k, k as _, a as S, s as c, u as A, n as T } from "./index-CX12hzsx.js";
5
5
  const B = S(), { itemData: I } = c(B), u = l(0), P = l([
6
6
  {
7
7
  label: "机构名称",
@@ -99,8 +99,8 @@ const B = S(), { itemData: I } = c(B), u = l(0), P = l([
99
99
  var o;
100
100
  if (Array.isArray(a == null ? void 0 : a.tableData)) {
101
101
  let s = { id: a.id };
102
- return (o = a == null ? void 0 : a.tableData) == null || o.forEach((p, d) => {
103
- s[`a${d}`] = p;
102
+ return (o = a == null ? void 0 : a.tableData) == null || o.forEach((p, m) => {
103
+ s[`a${m}`] = p;
104
104
  }), s;
105
105
  } else
106
106
  return {
@@ -124,7 +124,7 @@ const B = S(), { itemData: I } = c(B), u = l(0), P = l([
124
124
  }
125
125
  ]
126
126
  };
127
- m(() => I.value, (e) => {
127
+ d(() => I.value, (e) => {
128
128
  var t;
129
129
  e && (e == null ? void 0 : e.length) > 0 && (r.value = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.compData);
130
130
  });
@@ -145,7 +145,7 @@ const v = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
145
145
  const t = y({ ...v }), n = A(), { activeMenuPath: a } = c(n);
146
146
  return g(async () => {
147
147
  t.structureId = await T(a.value);
148
- }), (o, s) => (D(), i("div", null, [
148
+ }), (o, s) => (i(), D("div", null, [
149
149
  f(h, {
150
150
  itemData: t.pageData,
151
151
  onChange: t.handleItemDataChange
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
2
- import { S as m } from "./index-C4Y_0Pqx.js";
3
- import { s as _ } from "./index-COudEqtW.js";
2
+ import { S as m } from "./index-Wkp3bFzx.js";
3
+ import { s as _ } from "./index-B_4AbtRg.js";
4
4
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
6
6
  __name: "index",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./index-LEeC_fJN.cjs"),t=require("vue"),P=require("./index-Dqqp33r1.cjs"),ht=require("./index-DfcsvIY5.cjs"),yt=require("./index-syxWjmqB.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-C5pQXH0_.cjs"),gt=require("./menuIndex-BOUigvDC.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BimFR8f6.cjs"),Pe=require("./index-ytduJbtp.cjs"),Ct=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=(n,p,K=0)=>{let y=n;return y!=null&&y.every(r=>Array.isArray(r))&&(y!=null&&y.every(r=>Array.isArray(r)&&r.length===1)?y=y==null?void 0:y.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[K])):y=y==null?void 0:y.map(r=>{if(r!=null&&r.find(o=>o===(p==null?void 0:p[K]))&&(p==null?void 0:p.length)!==1){let o=P.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(o==null?void 0:o[K])),T=K+1,x=Re(c,o,T),B=[];B.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{B.push(I)}),r=B}return r})),y},Oe=(n,p,K,y=0)=>{let r=n;return r!=null&&r.every(o=>Array.isArray(o))&&(r!=null&&r.every(o=>Array.isArray(o)&&o.length===1)?r.push([K]):r=r==null?void 0:r.map(o=>{if(o!=null&&o.find(c=>c===(p==null?void 0:p[y]))&&(p==null?void 0:p.length)!==1){let c=P.cloneDeep(p),T=o==null?void 0:o.filter(V=>V!==(c==null?void 0:c[y])),x=y+1,B=Oe(T,c,K,x),I=[];I.push(o==null?void 0:o[0]),B==null||B.forEach(V=>{I.push(V)}),o=I}return o})),r},ue=(n,p,K,y,r=0)=>{let o=n;return o!=null&&o.every(c=>Array.isArray(c))&&(o!=null&&o.every(c=>Array.isArray(c)&&c.length===1)?o=o==null?void 0:o.map(c=>((c==null?void 0:c[0])===K&&(c=[y]),c)):o=o==null?void 0:o.map(c=>{if(c!=null&&c.find(T=>T===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let T=P.cloneDeep(p),x=c==null?void 0:c.filter(R=>R!==(T==null?void 0:T[r])),B=r+1,I=ue(x,T,K,y,B),V=[];V.push(c==null?void 0:c[0]),I==null||I.forEach(R=>{V.push(R)}),c=V}return c})),o};function Ye(n="menu"){return{name:n,components:{SvgIcon:kt.SvgIcon,ssMenu:je.ssMenu,DynamicIcon:je._sfc_main,ssDialog:ht.ssDialog,ssInput:yt._sfc_main$2},setup(p,{emit:K}){const y=t.defineProps({mode:{type:String,default:"vertical"}}),r=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),o=P.useMenuState(),c=P.useModelComp(P.pinia),T=P.useLoginState(P.pinia),{loginUserInfo:x}=P.storeToRefs(T),B=t.ref(0),I=vt.useRouter(),V=t.ref(),{asideMenus:R,menuTriggerType:s,platform:Ne}=P.storeToRefs(o),{fixMenuStatus:qe}=P.storeToRefs(c),Ue=t.computed(()=>y==null?void 0:y.mode),ee=l=>l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),A=t.computed(()=>{let l=[...R.value];if((l==null?void 0:l.length)===0)return I.push("/"),[];const a=et(l,me.value);return a.isFlag||(l=a==null?void 0:a.data),l=l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),l}),ze=async(l,a)=>{c.setRouteToChildPath(""),o.setMenuTriggerType("click"),o.setActiveMenuPath(l==null?void 0:l.path),o.setActiveAsideMenu(l),l.isRouter?I.push(l.path):I.push("/"),K("node-click",l,a)},Ze=async l=>{const a=gt.findNodeByPropInTree(A.value,"path",l);o.setActiveAsideMenu(a),c.setRouteToChildPath(""),qe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?B.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):o.setActiveMenuPath(l):Z.value||(o.setMenuTriggerType("click"),o.setActiveMenuPath(l))),l!=null&&l.startsWith("/")?I.push(l):I.push("/"),B.value++},He=l=>{Z.value||o.setActiveMenuPath(l)},X=l=>{const a=document.documentElement;l==null||l.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{B.value=1});const me=t.computed(()=>{const l=sessionStorage.getItem("authority");return l?JSON.parse(l):[]});t.watch(()=>Ne.value,l=>{l==="browser"?X(Le.browserVerticalMenuClasses):l==="client"?(X(Le.clientHorizontalMenuClasses),X(Le.clientVerticalMenuClasses)):l==="three"&&(X(Le.threeHorizontalMenuClasses),X(Le.threeVerticalMenuClasses))},{immediate:!0});const et=(l,a)=>({isFlag:!0}),O=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),tt=l=>je.getComponent(l),lt=t.ref({}),ot=t.ref([]),te=t.ref({}),Y=t.ref({}),at=l=>{switch(l){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),st=l=>{o.setCacheInputMenu({type:O.type,data:l}),o.setIsRefreshMenus(!0)},it=async(l,a,e)=>{var k,C,_,z,E,H,j,le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae,h,F,L,b;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=M==null?void 0:M.data)==null?void 0:k.result)==null?void 0:C[0],J=(_=S==null?void 0:S.value)==null?void 0:_.pageData;J.compData=(z=J.compData)==null?void 0:z.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Oe(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),d)),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let N=(H=(E=e==null?void 0:e.path)==null?void 0:E.split("/"))==null?void 0:H.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}),q=await m.getItemData((oe=(le=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:le.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:oe.join("/"),sessionStorage.getItem("systemKey"),"");if(N.push(d),N=N==null?void 0:N.join("/"),(q==null?void 0:q.length)>0){let i=q==null?void 0:q[0],f=(se=(ae=i==null?void 0:i.compData)==null?void 0:ae.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:se.contents;if(((ie=f==null?void 0:f[0])==null?void 0:ie.directiveLabel)==="#isMain"){let g=(re=f==null?void 0:f[0])==null?void 0:re.prop,D=(pe=(ce=i==null?void 0:i.compData)==null?void 0:ce.find(w=>(w==null?void 0:w.key)==="tableContents"))==null?void 0:pe.contents,W;D==null||D.forEach(w=>{var G,u;if(w.length===1)((G=w==null?void 0:w[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=w==null?void 0:w[0],W[g]=d);else{let Q=(u=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:u.map($=>$==null?void 0:$.prop),$e=w==null?void 0:w.filter($=>!($!=null&&$.id)),Fe=m.getValueToObjectValue($e,Q);Fe[g]=d,W=Fe}}),await U.createInsofDataApi({key:{type:"data",pageKey:(fe=(de=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:de.filter((w,G)=>{var u,Q;return G!==((Q=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:Q.length)-1}))==null?void 0:fe.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(he=x.value)==null?void 0:he.id,createUserLayer:((ye=x.value)==null?void 0:ye.dept)||((ve=x.value)==null?void 0:ve.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,N),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((Ce=(ke=(ge=e==null?void 0:e.path)==null?void 0:ge.split("/"))==null?void 0:ke.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ce.join("/")),o.setActiveTopMenuPath((Ie=(De=e==null?void 0:e.path)==null?void 0:De.split("/"))==null?void 0:Ie[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}else if(a==="update")V.value=e;else if(a==="delete"){let d=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(_e=(Se=M==null?void 0:M.data)==null?void 0:Se.result)==null?void 0:_e[0],J=(be=S==null?void 0:S.value)==null?void 0:be.pageData;if(J.compData=(we=J.compData)==null?void 0:we.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Re(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((Be=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Be.length)>0){let i=(Me=(Ee=d==null?void 0:d.data)==null?void 0:Ee.result)==null?void 0:Me.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await U.batchDeleteInsofDataApi({ids:i})}let N=await m.getItemData((Ve=(xe=(Ke=e==null?void 0:e.path)==null?void 0:Ke.split("/"))==null?void 0:xe.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ve.join("/"),sessionStorage.getItem("systemKey"),""),q=[];(N==null?void 0:N.length)>0&&(N==null||N.forEach(i=>{var g,D,W,w,G,u,Q,$e,Fe,$,We;let f=(w=(W=(D=(g=i==null?void 0:i.compData)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:D.contents)==null?void 0:W[0])==null?void 0:w.prop;(($e=(Q=(u=(G=i==null?void 0:i.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:u.contents)==null?void 0:Q[0])==null?void 0:$e.directiveLabel)==="#isMain"&&((We=($=(Fe=i==null?void 0:i.compData)==null?void 0:Fe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:$.contents)==null||We.forEach(v=>{var Ge,Qe,Xe;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&q.push((Ge=v==null?void 0:v[0])==null?void 0:Ge.id):((Qe=v==null?void 0:v[0])==null?void 0:Qe[f])===(e==null?void 0:e.title)&&q.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(q==null?void 0:q.length)>0&&await U.batchDeleteInsofDataApi({ids:q}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((F=(h=(Ae=e==null?void 0:e.path)==null?void 0:Ae.split("/"))==null?void 0:h.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:F.join("/")),o.setActiveTopMenuPath((b=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:b[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}},rt=async(l,a)=>{var le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae;let e=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(le=e==null?void 0:e.data)==null?void 0:le.result)==null?void 0:oe[0],C=(ae=k==null?void 0:k.value)==null?void 0:ae.pageData;C.compData=(se=C.compData)==null?void 0:se.map(h=>{var F,L;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=ue(h.contents,(F=a==null?void 0:a.path)==null?void 0:F.split("/"),a==null?void 0:a.title,(L=l==null?void 0:l.target)==null?void 0:L.value)),h}),k!=null&&k.id&&await U.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(re=(ie=a==null?void 0:a.path)==null?void 0:ie.split("/"))==null?void 0:re.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}),z=_==null?void 0:_.join("/");_.push((ce=l==null?void 0:l.target)==null?void 0:ce.value),_=_==null?void 0:_.join("/");let E=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((he=(fe=(de=(ne=(pe=E==null?void 0:E[0])==null?void 0:pe.compData)==null?void 0:ne.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:de.contents)==null?void 0:fe[0])==null?void 0:he.directiveLabel)==="#isMain"){let h=(Ce=(ke=(ge=(ve=(ye=E==null?void 0:E[0])==null?void 0:ye.compData)==null?void 0:ve.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ge.contents)==null?void 0:ke[0])==null?void 0:Ce.prop,F=(Se=(Ie=(De=E==null?void 0:E[0])==null?void 0:De.compData)==null?void 0:Ie.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Se.contents,L=(Te=(we=(be=(_e=E==null?void 0:E[0])==null?void 0:_e.compData)==null?void 0:be.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:we.contents)==null?void 0:Te.map(d=>d==null?void 0:d.prop),b;if(F==null||F.forEach(d=>{var S;let M=m.getValueToObjectValue(d,L);(M==null?void 0:M[h])===a.title&&(b=M,b[h]=(S=l==null?void 0:l.target)==null?void 0:S.value)}),b){let d={};for(let S in b)S!=="id"&&(d[S]=b==null?void 0:b[S]);let M=[{id:b==null?void 0:b.id,value:{tableData:d}}];await U.batchUpdateInsofDataApi({dataList:M})}}let H=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Ee=(Be=H==null?void 0:H.data)==null?void 0:Be.result)==null?void 0:Ee.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));j=j==null?void 0:j.map(h=>(h.key.pageKey=_,h)),(j==null?void 0:j.length)>0&&await U.batchUpdateInsofDataApi({dataList:j}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((xe=(Ke=(Me=a==null?void 0:a.path)==null?void 0:Me.split("/"))==null?void 0:Ke.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}))==null?void 0:xe.join("/")),o.setActiveTopMenuPath((Ae=(Ve=a==null?void 0:a.path)==null?void 0:Ve.split("/"))==null?void 0:Ae[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0),V.value=void 0},ct=async(l,a)=>{O.type=at(a==null?void 0:a.operateType),await it(a,O.type,l),Y.value=l,Je.value=a},pt=()=>{O.show=!1},nt=l=>l==null?void 0:l.filter(a=>a.allowInherit),dt=()=>{var e,k,C,_,z;let l;O.type==="create"&&(l=((e=Y.value)==null?void 0:e.path)+"/"+te.value[(k=te.value)==null?void 0:k.prop]),O.type==="update"&&(l=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:nt((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:te.value[(z=te.value)==null?void 0:z.prop],path:l};console.log("clickSubmitForm",Je.value,Y.value,a),st(a),O.show=!1},ft=l=>{var e,k;const a=(e=l==null?void 0:l.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(te.value=(k=a==null?void 0:a.contents)==null?void 0:k.reduce((C,_)=>(C[_.key]=_.value,C.prop=_.key,C),{}))},Z=t.ref(!1);return{isCollapse:Z,handleMenuCollapse:()=>{Z.value=!Z.value},handleCompChange:ft,dialogForm:lt,dialogRenderComps:ot,getComponents:tt,clickSubmitForm:dt,dialogInfo:O,beforeDialogDestroy:pt,clickMenuIcon:ct,mode:Ue,renderMenuList:A,clickMenu:ze,openMenu:Ze,closeMenu:He,changeMenuStyle:X,fixElement:V,onBlur:rt}}}}const Dt=t.defineComponent(Ye()),It=["title"],St={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},_t={key:2,class:"menu-operate-icon"},bt={class:"menu-config-wrap"},wt=["onClick"],Tt={class:"module-dialog-content"};function Bt(n,p,K,y,r,o){var R;const c=t.resolveComponent("ss-input"),T=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),B=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),V=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(B,{class:"vertical-menu",mode:n.mode,menuList:n.renderMenuList,isCollapse:n.isCollapse,uniqueOpened:!0,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:t.withCtx(({menu:s})=>{var Ne,qe,Ue,ee;return[!n.fixElement||(s==null?void 0:s.path)!==((Ne=n.fixElement)==null?void 0:Ne.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((qe=s==null?void 0:s.config)==null?void 0:qe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,It)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Ue=n.fixElement)==null?void 0:Ue.path)?(t.openBlock(),t.createElementBlock("span",St,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((ee=s==null?void 0:s.config)==null?void 0:ee.length)>0?(t.openBlock(),t.createElementBlock("span",_t,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s==null?void 0:s.config,A=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:A.id,onClick:ze=>n.clickMenuIcon(s,A)},[t.createVNode(T,{name:A==null?void 0:A.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(A==null?void 0:A.operateType),1)],8,wt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((R=n.renderMenuList)==null?void 0:R.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:p[0]||(p[0]=(...s)=>n.handleMenuCollapse&&n.handleMenuCollapse(...s))},[t.createVNode(T,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(V,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.dialogRenderComps,s=>(t.openBlock(),t.createElementBlock("div",{key:s.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.getComponents((s==null?void 0:s.comp)??"Input")),{itemData:s==null?void 0:s.compData,key:s==null?void 0:s.id,content:(s==null?void 0:s.contents)??[],config:s==null?void 0:s.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(I,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:t.withCtx(()=>p[1]||(p[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(I,{id:"themeButton",onClick:n.clickSubmitForm},{default:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Et=Ct._export_sfc(Dt,[["render",Bt],["__scopeId","data-v-20f284c2"]]);exports.addSelectMenu=Oe;exports.default=Et;exports.deleteSelectMenu=Re;exports.fixSelectMenu=ue;exports.setComponent=Ye;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./index-D6D9SCPa.cjs"),t=require("vue"),P=require("./index-BZST7lPo.cjs"),ht=require("./index-DB8oLdoK.cjs"),yt=require("./index-D3MoBe24.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-C5pQXH0_.cjs"),gt=require("./menuIndex-CnGLkky9.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DD10WrJ2.cjs"),Pe=require("./index-BEQHIheQ.cjs"),Ct=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Re=(n,p,K=0)=>{let y=n;return y!=null&&y.every(r=>Array.isArray(r))&&(y!=null&&y.every(r=>Array.isArray(r)&&r.length===1)?y=y==null?void 0:y.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[K])):y=y==null?void 0:y.map(r=>{if(r!=null&&r.find(o=>o===(p==null?void 0:p[K]))&&(p==null?void 0:p.length)!==1){let o=P.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(o==null?void 0:o[K])),T=K+1,x=Re(c,o,T),B=[];B.push(r==null?void 0:r[0]),x==null||x.forEach(I=>{B.push(I)}),r=B}return r})),y},Oe=(n,p,K,y=0)=>{let r=n;return r!=null&&r.every(o=>Array.isArray(o))&&(r!=null&&r.every(o=>Array.isArray(o)&&o.length===1)?r.push([K]):r=r==null?void 0:r.map(o=>{if(o!=null&&o.find(c=>c===(p==null?void 0:p[y]))&&(p==null?void 0:p.length)!==1){let c=P.cloneDeep(p),T=o==null?void 0:o.filter(V=>V!==(c==null?void 0:c[y])),x=y+1,B=Oe(T,c,K,x),I=[];I.push(o==null?void 0:o[0]),B==null||B.forEach(V=>{I.push(V)}),o=I}return o})),r},ue=(n,p,K,y,r=0)=>{let o=n;return o!=null&&o.every(c=>Array.isArray(c))&&(o!=null&&o.every(c=>Array.isArray(c)&&c.length===1)?o=o==null?void 0:o.map(c=>((c==null?void 0:c[0])===K&&(c=[y]),c)):o=o==null?void 0:o.map(c=>{if(c!=null&&c.find(T=>T===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let T=P.cloneDeep(p),x=c==null?void 0:c.filter(R=>R!==(T==null?void 0:T[r])),B=r+1,I=ue(x,T,K,y,B),V=[];V.push(c==null?void 0:c[0]),I==null||I.forEach(R=>{V.push(R)}),c=V}return c})),o};function Ye(n="menu"){return{name:n,components:{SvgIcon:kt.SvgIcon,ssMenu:je.ssMenu,DynamicIcon:je._sfc_main,ssDialog:ht.ssDialog,ssInput:yt._sfc_main$2},setup(p,{emit:K}){const y=t.defineProps({mode:{type:String,default:"vertical"}}),r=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),o=P.useMenuState(),c=P.useModelComp(P.pinia),T=P.useLoginState(P.pinia),{loginUserInfo:x}=P.storeToRefs(T),B=t.ref(0),I=vt.useRouter(),V=t.ref(),{asideMenus:R,menuTriggerType:s,platform:Ne}=P.storeToRefs(o),{fixMenuStatus:qe}=P.storeToRefs(c),Ue=t.computed(()=>y==null?void 0:y.mode),ee=l=>l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),A=t.computed(()=>{let l=[...R.value];if((l==null?void 0:l.length)===0)return I.push("/"),[];const a=et(l,me.value);return a.isFlag||(l=a==null?void 0:a.data),l=l==null?void 0:l.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=ee(e.children)),e}),l}),ze=async(l,a)=>{c.setRouteToChildPath(""),o.setMenuTriggerType("click"),o.setActiveMenuPath(l==null?void 0:l.path),o.setActiveAsideMenu(l),l.isRouter?I.push(l.path):I.push("/"),K("node-click",l,a)},Ze=async l=>{const a=gt.findNodeByPropInTree(A.value,"path",l);o.setActiveAsideMenu(a),c.setRouteToChildPath(""),qe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?B.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):o.setActiveMenuPath(l):Z.value||(o.setMenuTriggerType("click"),o.setActiveMenuPath(l))),l!=null&&l.startsWith("/")?I.push(l):I.push("/"),B.value++},He=l=>{Z.value||o.setActiveMenuPath(l)},X=l=>{const a=document.documentElement;l==null||l.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{B.value=1});const me=t.computed(()=>{const l=sessionStorage.getItem("authority");return l?JSON.parse(l):[]});t.watch(()=>Ne.value,l=>{l==="browser"?X(Le.browserVerticalMenuClasses):l==="client"?(X(Le.clientHorizontalMenuClasses),X(Le.clientVerticalMenuClasses)):l==="three"&&(X(Le.threeHorizontalMenuClasses),X(Le.threeVerticalMenuClasses))},{immediate:!0});const et=(l,a)=>({isFlag:!0}),O=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),tt=l=>je.getComponent(l),lt=t.ref({}),ot=t.ref([]),te=t.ref({}),Y=t.ref({}),at=l=>{switch(l){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},Je=t.ref({}),st=l=>{o.setCacheInputMenu({type:O.type,data:l}),o.setIsRefreshMenus(!0)},it=async(l,a,e)=>{var k,C,_,z,E,H,j,le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae,h,F,L,b;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=M==null?void 0:M.data)==null?void 0:k.result)==null?void 0:C[0],J=(_=S==null?void 0:S.value)==null?void 0:_.pageData;J.compData=(z=J.compData)==null?void 0:z.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Oe(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),d)),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let N=(H=(E=e==null?void 0:e.path)==null?void 0:E.split("/"))==null?void 0:H.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}),q=await m.getItemData((oe=(le=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:le.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:oe.join("/"),sessionStorage.getItem("systemKey"),"");if(N.push(d),N=N==null?void 0:N.join("/"),(q==null?void 0:q.length)>0){let i=q==null?void 0:q[0],f=(se=(ae=i==null?void 0:i.compData)==null?void 0:ae.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:se.contents;if(((ie=f==null?void 0:f[0])==null?void 0:ie.directiveLabel)==="#isMain"){let g=(re=f==null?void 0:f[0])==null?void 0:re.prop,D=(pe=(ce=i==null?void 0:i.compData)==null?void 0:ce.find(w=>(w==null?void 0:w.key)==="tableContents"))==null?void 0:pe.contents,W;D==null||D.forEach(w=>{var G,u;if(w.length===1)((G=w==null?void 0:w[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=w==null?void 0:w[0],W[g]=d);else{let Q=(u=f==null?void 0:f.filter($=>$!=="操作"))==null?void 0:u.map($=>$==null?void 0:$.prop),$e=w==null?void 0:w.filter($=>!($!=null&&$.id)),Fe=m.getValueToObjectValue($e,Q);Fe[g]=d,W=Fe}}),await U.createInsofDataApi({key:{type:"data",pageKey:(fe=(de=(ne=e==null?void 0:e.path)==null?void 0:ne.split("/"))==null?void 0:de.filter((w,G)=>{var u,Q;return G!==((Q=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:Q.length)-1}))==null?void 0:fe.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(he=x.value)==null?void 0:he.id,createUserLayer:((ye=x.value)==null?void 0:ye.dept)||((ve=x.value)==null?void 0:ve.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,N),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((Ce=(ke=(ge=e==null?void 0:e.path)==null?void 0:ge.split("/"))==null?void 0:ke.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ce.join("/")),o.setActiveTopMenuPath((Ie=(De=e==null?void 0:e.path)==null?void 0:De.split("/"))==null?void 0:Ie[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}else if(a==="update")V.value=e;else if(a==="delete"){let d=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),M=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(_e=(Se=M==null?void 0:M.data)==null?void 0:Se.result)==null?void 0:_e[0],J=(be=S==null?void 0:S.value)==null?void 0:be.pageData;if(J.compData=(we=J.compData)==null?void 0:we.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Re(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),i}),await U.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((Be=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Be.length)>0){let i=(Me=(Ee=d==null?void 0:d.data)==null?void 0:Ee.result)==null?void 0:Me.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await U.batchDeleteInsofDataApi({ids:i})}let N=await m.getItemData((Ve=(xe=(Ke=e==null?void 0:e.path)==null?void 0:Ke.split("/"))==null?void 0:xe.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:Ve.join("/"),sessionStorage.getItem("systemKey"),""),q=[];(N==null?void 0:N.length)>0&&(N==null||N.forEach(i=>{var g,D,W,w,G,u,Q,$e,Fe,$,We;let f=(w=(W=(D=(g=i==null?void 0:i.compData)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:D.contents)==null?void 0:W[0])==null?void 0:w.prop;(($e=(Q=(u=(G=i==null?void 0:i.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:u.contents)==null?void 0:Q[0])==null?void 0:$e.directiveLabel)==="#isMain"&&((We=($=(Fe=i==null?void 0:i.compData)==null?void 0:Fe.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:$.contents)==null||We.forEach(v=>{var Ge,Qe,Xe;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&q.push((Ge=v==null?void 0:v[0])==null?void 0:Ge.id):((Qe=v==null?void 0:v[0])==null?void 0:Qe[f])===(e==null?void 0:e.title)&&q.push((Xe=v==null?void 0:v[0])==null?void 0:Xe.id)}))})),(q==null?void 0:q.length)>0&&await U.batchDeleteInsofDataApi({ids:q}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((F=(h=(Ae=e==null?void 0:e.path)==null?void 0:Ae.split("/"))==null?void 0:h.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:F.join("/")),o.setActiveTopMenuPath((b=(L=e==null?void 0:e.path)==null?void 0:L.split("/"))==null?void 0:b[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0)}},rt=async(l,a)=>{var le,oe,ae,se,ie,re,ce,pe,ne,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,be,we,Te,Be,Ee,Me,Ke,xe,Ve,Ae;let e=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(le=e==null?void 0:e.data)==null?void 0:le.result)==null?void 0:oe[0],C=(ae=k==null?void 0:k.value)==null?void 0:ae.pageData;C.compData=(se=C.compData)==null?void 0:se.map(h=>{var F,L;return(h==null?void 0:h.key)==="menuContents"&&(h.contents=ue(h.contents,(F=a==null?void 0:a.path)==null?void 0:F.split("/"),a==null?void 0:a.title,(L=l==null?void 0:l.target)==null?void 0:L.value)),h}),k!=null&&k.id&&await U.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(re=(ie=a==null?void 0:a.path)==null?void 0:ie.split("/"))==null?void 0:re.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}),z=_==null?void 0:_.join("/");_.push((ce=l==null?void 0:l.target)==null?void 0:ce.value),_=_==null?void 0:_.join("/");let E=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((he=(fe=(de=(ne=(pe=E==null?void 0:E[0])==null?void 0:pe.compData)==null?void 0:ne.find(h=>(h==null?void 0:h.key)==="header"))==null?void 0:de.contents)==null?void 0:fe[0])==null?void 0:he.directiveLabel)==="#isMain"){let h=(Ce=(ke=(ge=(ve=(ye=E==null?void 0:E[0])==null?void 0:ye.compData)==null?void 0:ve.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ge.contents)==null?void 0:ke[0])==null?void 0:Ce.prop,F=(Se=(Ie=(De=E==null?void 0:E[0])==null?void 0:De.compData)==null?void 0:Ie.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Se.contents,L=(Te=(we=(be=(_e=E==null?void 0:E[0])==null?void 0:_e.compData)==null?void 0:be.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:we.contents)==null?void 0:Te.map(d=>d==null?void 0:d.prop),b;if(F==null||F.forEach(d=>{var S;let M=m.getValueToObjectValue(d,L);(M==null?void 0:M[h])===a.title&&(b=M,b[h]=(S=l==null?void 0:l.target)==null?void 0:S.value)}),b){let d={};for(let S in b)S!=="id"&&(d[S]=b==null?void 0:b[S]);let M=[{id:b==null?void 0:b.id,value:{tableData:d}}];await U.batchUpdateInsofDataApi({dataList:M})}}let H=await U.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),j=(Ee=(Be=H==null?void 0:H.data)==null?void 0:Be.result)==null?void 0:Ee.map(h=>({id:h==null?void 0:h.id,key:h==null?void 0:h.key}));j=j==null?void 0:j.map(h=>(h.key.pageKey=_,h)),(j==null?void 0:j.length)>0&&await U.batchUpdateInsofDataApi({dataList:j}),o.setUpdateMenuStatus(!1),await Pe.verifyStructureDataToStore(),o.setActiveMenuPath((xe=(Ke=(Me=a==null?void 0:a.path)==null?void 0:Me.split("/"))==null?void 0:Ke.filter((h,F)=>{var L,b;return F!==((b=(L=a==null?void 0:a.path)==null?void 0:L.split("/"))==null?void 0:b.length)-1}))==null?void 0:xe.join("/")),o.setActiveTopMenuPath((Ae=(Ve=a==null?void 0:a.path)==null?void 0:Ve.split("/"))==null?void 0:Ae[0]),o.setIsRefreshMenus(!1),o.setIsRefreshMenus(!0),V.value=void 0},ct=async(l,a)=>{O.type=at(a==null?void 0:a.operateType),await it(a,O.type,l),Y.value=l,Je.value=a},pt=()=>{O.show=!1},nt=l=>l==null?void 0:l.filter(a=>a.allowInherit),dt=()=>{var e,k,C,_,z;let l;O.type==="create"&&(l=((e=Y.value)==null?void 0:e.path)+"/"+te.value[(k=te.value)==null?void 0:k.prop]),O.type==="update"&&(l=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:nt((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:te.value[(z=te.value)==null?void 0:z.prop],path:l};console.log("clickSubmitForm",Je.value,Y.value,a),st(a),O.show=!1},ft=l=>{var e,k;const a=(e=l==null?void 0:l.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(te.value=(k=a==null?void 0:a.contents)==null?void 0:k.reduce((C,_)=>(C[_.key]=_.value,C.prop=_.key,C),{}))},Z=t.ref(!1);return{isCollapse:Z,handleMenuCollapse:()=>{Z.value=!Z.value},handleCompChange:ft,dialogForm:lt,dialogRenderComps:ot,getComponents:tt,clickSubmitForm:dt,dialogInfo:O,beforeDialogDestroy:pt,clickMenuIcon:ct,mode:Ue,renderMenuList:A,clickMenu:ze,openMenu:Ze,closeMenu:He,changeMenuStyle:X,fixElement:V,onBlur:rt}}}}const Dt=t.defineComponent(Ye()),It=["title"],St={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},_t={key:2,class:"menu-operate-icon"},bt={class:"menu-config-wrap"},wt=["onClick"],Tt={class:"module-dialog-content"};function Bt(n,p,K,y,r,o){var R;const c=t.resolveComponent("ss-input"),T=t.resolveComponent("svg-icon"),x=t.resolveComponent("el-popover"),B=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),V=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(B,{class:"vertical-menu",mode:n.mode,menuList:n.renderMenuList,isCollapse:n.isCollapse,uniqueOpened:!0,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:t.withCtx(({menu:s})=>{var Ne,qe,Ue,ee;return[!n.fixElement||(s==null?void 0:s.path)!==((Ne=n.fixElement)==null?void 0:Ne.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((qe=s==null?void 0:s.config)==null?void 0:qe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,It)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Ue=n.fixElement)==null?void 0:Ue.path)?(t.openBlock(),t.createElementBlock("span",St,[t.createVNode(c,{value:s.title,onBlur:A=>n.onBlur(A,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((ee=s==null?void 0:s.config)==null?void 0:ee.length)>0?(t.openBlock(),t.createElementBlock("span",_t,[t.createVNode(x,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(T,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",bt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s==null?void 0:s.config,A=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:A.id,onClick:ze=>n.clickMenuIcon(s,A)},[t.createVNode(T,{name:A==null?void 0:A.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(A==null?void 0:A.operateType),1)],8,wt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((R=n.renderMenuList)==null?void 0:R.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:p[0]||(p[0]=(...s)=>n.handleMenuCollapse&&n.handleMenuCollapse(...s))},[t.createVNode(T,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(V,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.dialogRenderComps,s=>(t.openBlock(),t.createElementBlock("div",{key:s.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.getComponents((s==null?void 0:s.comp)??"Input")),{itemData:s==null?void 0:s.compData,key:s==null?void 0:s.id,content:(s==null?void 0:s.contents)??[],config:s==null?void 0:s.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(I,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:t.withCtx(()=>p[1]||(p[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(I,{id:"themeButton",onClick:n.clickSubmitForm},{default:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Et=Ct._export_sfc(Dt,[["render",Bt],["__scopeId","data-v-20f284c2"]]);exports.addSelectMenu=Oe;exports.default=Et;exports.deleteSelectMenu=Re;exports.fixSelectMenu=ue;exports.setComponent=Ye;
@@ -1,9 +1,9 @@
1
1
  import { ref as s, watch as d, defineComponent as m, reactive as y, onMounted as i, createElementBlock as g, openBlock as D, createVNode as f } from "vue";
2
2
  import "./index-BHtNKL1L.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dim6PXfX.js";
4
- import { g as h, h as C, a as _, s as c, u as k, i as S } from "./index-CwhxnRyA.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCz-I5jm.js";
4
+ import { m as h, k as C, a as _, s as c, u as k, n as S } from "./index-CX12hzsx.js";
5
5
  import { g as v } from "./index-B8HqIYd5.js";
6
- import { s as T } from "./index-COudEqtW.js";
6
+ import { s as T } from "./index-B_4AbtRg.js";
7
7
  const A = _(), { itemData: B } = c(A), u = s(0), I = s([
8
8
  {
9
9
  label: "机构名称",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
- import { u as h, p as k, s as x, c as m } from "./index-CwhxnRyA.js";
3
- import { s as M } from "./index-COudEqtW.js";
2
+ import { u as h, p as k, s as x, c as m } from "./index-CX12hzsx.js";
3
+ import { s as M } from "./index-B_4AbtRg.js";
4
4
  import { a as D, d as T, f as S } from "./index-DFBXEIIr.js";
5
5
  import { g as w } from "./index-B8HqIYd5.js";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";