ss-component-new 1.3.78 → 1.3.80

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 (80) hide show
  1. package/dist/{MTLLoader-Bkr7rTJW.js → MTLLoader-DcC1T2R-.js} +1 -1
  2. package/dist/{OrbitControls-goGQ9Lfs.js → OrbitControls-cVaf6msP.js} +1 -1
  3. package/dist/{URDFLoader-d1AzVQ5F.js → URDFLoader-CQ8lAP5N.js} +2 -2
  4. package/dist/{animationData-Sok20fOI.js → animationData-CTeDjcic.js} +2 -2
  5. package/dist/{array-CCxIPliQ.cjs → array-8_OZbk2v.cjs} +1 -1
  6. package/dist/{array-BkHYCyls.js → array-CEU-aUH0.js} +5 -5
  7. package/dist/{iconfont-CJoblcL2.js → iconfont-CEG9Z6Me.js} +2 -2
  8. package/dist/{index-Dld88iXe.js → index-6BIWxNNp.js} +1 -1
  9. package/dist/{index-M_FLMoBh.cjs → index-6WBJezE7.cjs} +1 -1
  10. package/dist/{index-BIbLwf-J.cjs → index-8Z4IsZZv.cjs} +1 -1
  11. package/dist/{index-CNLUhFlr.js → index-B7VdpJDk.js} +2 -2
  12. package/dist/{index-Bj7H-CHU.js → index-BCWnEKxi.js} +3 -3
  13. package/dist/{index-DmeZpSGM.js → index-BG8jt-Mj.js} +5 -5
  14. package/dist/{index-BQWGBLrD.cjs → index-BjWZWOgD.cjs} +1 -1
  15. package/dist/{index-KEXDCkKc.js → index-BlB_bACw.js} +560 -556
  16. package/dist/{index-CGpIY6jB.js → index-BqR1xrMr.js} +2052 -2047
  17. package/dist/{index-AHbRUQqE.cjs → index-Btrq5Gn1.cjs} +1 -1
  18. package/dist/{index-CIGrCpB_.js → index-BuBXET-y.js} +7 -7
  19. package/dist/{index-BVh3Ylgt.cjs → index-BzFG5s7n.cjs} +1 -1
  20. package/dist/index-C1Uh8jCE.js +12930 -0
  21. package/dist/index-CA1feDx6.cjs +1 -0
  22. package/dist/{index-CWY9HxrG.js → index-CA7UCEkN.js} +1 -1
  23. package/dist/{index-rCV_Ea-P.js → index-CGBpbw73.js} +1 -1
  24. package/dist/{index-BgKqiFcg.cjs → index-CKURWd0H.cjs} +1 -1
  25. package/dist/{index-t9jd4l9Q.js → index-C_cT03gR.js} +2 -2
  26. package/dist/{index-DaWzSNzm.js → index-ChQ73kWT.js} +1 -1
  27. package/dist/{index-JAXzKk2F.js → index-Clipar8b.js} +27 -27
  28. package/dist/index-CpRVq-cP.cjs +19 -0
  29. package/dist/{index-BysdHzB7.cjs → index-CqJbR7xA.cjs} +1 -1
  30. package/dist/{index-DLGxv8po.js → index-CqNjbufe.js} +3 -3
  31. package/dist/{index-ChiYyt8L.js → index-CutRrd-B.js} +2 -2
  32. package/dist/{index-DBh4mbmL.js → index-Cy0n69Vx.js} +874 -873
  33. package/dist/{index-DnMPqjrX.js → index-D-EzCf3J.js} +2 -2
  34. package/dist/{index-B7cNKrrU.cjs → index-DEoAMOtQ.cjs} +1 -1
  35. package/dist/{index-DsymuEzu.cjs → index-DFEHKFcd.cjs} +8 -8
  36. package/dist/{index-CST5bbhY.js → index-DL6GoCQo.js} +5 -5
  37. package/dist/{index-oJEY_fSN.js → index-DQFYF-JT.js} +1 -1
  38. package/dist/{index-DilZmA-l.cjs → index-DQuoAY25.cjs} +1 -1
  39. package/dist/{index-EtZh1qtq.js → index-DW_PZTFF.js} +1 -1
  40. package/dist/index-DYHt5wp1.cjs +11 -0
  41. package/dist/index-DZC_X4jJ.cjs +1 -0
  42. package/dist/{index-cKFeu5XW.cjs → index-DdwdkIUV.cjs} +1 -1
  43. package/dist/{index-BPmWhs0O.js → index-Dl3xjXba.js} +1 -1
  44. package/dist/index-DsNF-9jb.cjs +1 -0
  45. package/dist/{index-BRPLPxlx.cjs → index-DuEbn5K9.cjs} +1 -1
  46. package/dist/index-DzB3yFdI.js +466 -0
  47. package/dist/index-DzrSNzlY.js +19 -0
  48. package/dist/{index-G0nsjixB.js → index-FNrh3w2p.js} +1 -1
  49. package/dist/{index-BAelm3VG.cjs → index-GUrkhRB4.cjs} +1 -1
  50. package/dist/{index-CI8pzqx6.js → index-PL_DwseC.js} +5 -5
  51. package/dist/{index-DijK6RWK.js → index-PdNfeHpP.js} +6 -6
  52. package/dist/{index-XSETNP_T.js → index-eEPkBH_J.js} +1 -1
  53. package/dist/{index-2B1wHje0.cjs → index-vUyKT8gH.cjs} +1 -1
  54. package/dist/{index-5CdDKPk6.js → index-yhgYB2mn.js} +2 -2
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js → index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js} +1 -1
  56. package/dist/{index.vue_vue_type_style_index_1_lang-DDUoM--M.js → index.vue_vue_type_style_index_1_lang-B-i2NlLm.js} +4 -4
  57. package/dist/{main-DDI-kRzh.cjs → main-BGQ7ZbRn.cjs} +1 -1
  58. package/dist/{main-DKugsEJQ.js → main-vDQTmc2j.js} +4 -4
  59. package/dist/{menuIndex-BvSKgV5f.js → menuIndex-C-vOSUnB.js} +1 -1
  60. package/dist/ss-component.cjs +1 -1
  61. package/dist/ss-component.css +2 -2
  62. package/dist/ss-component.js +10 -10
  63. package/dist/ss-component2.cjs +1 -1
  64. package/dist/ss-component2.js +12 -12
  65. package/dist/{threeModel-BC_JZ1RV.cjs → threeModel-BFRYVMqO.cjs} +1 -1
  66. package/dist/{threeModel-BwWSWObs.js → threeModel-DFtMuwnG.js} +5 -5
  67. package/dist/{threePreview-CfyAicAQ.js → threePreview-zWwjj8dj.js} +4 -4
  68. package/dist/{threeSceneView-Dbr2KLMM.js → threeSceneView-DUBgUbZa.js} +10 -10
  69. package/dist/{threeSceneViewForCPMPIP-tPswynXd.js → threeSceneViewForCPMPIP-Bk0ih2-7.js} +8 -8
  70. package/dist/{threeTrackPathView-CZt3mY2y.js → threeTrackPathView-CoWPetyS.js} +4 -4
  71. package/dist/{threeViewerHost-D2qSyCw-.js → threeViewerHost-BaZw0MrX.js} +3 -3
  72. package/dist/{urdfTree-BCj0sPXo.js → urdfTree-CGAeYKn8.js} +1 -1
  73. package/dist/{workpieceTreePanel-CrpY18jo.js → workpieceTreePanel-BwtqOOAo.js} +4 -4
  74. package/package.json +1 -1
  75. package/dist/index-BFvOrU__.cjs +0 -19
  76. package/dist/index-BQ5LLLCI.cjs +0 -1
  77. package/dist/index-CM8Na0Nb.js +0 -12905
  78. package/dist/index-CjCqvZ07.cjs +0 -11
  79. package/dist/index-Cuw9DLEb.cjs +0 -1
  80. package/dist/index-D0aKEqnU.js +0 -476
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const je=require("./index-CjCqvZ07.cjs"),t=require("vue"),P=require("./index-fwa9LBX5.cjs"),ht=require("./index-eUZKu-7F.cjs"),yt=require("./index-DsymuEzu.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-C5pQXH0_.cjs"),gt=require("./menuIndex-BVHXKOLk.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Ceq-4YAl.cjs"),Pe=require("./index-D8DcUSsZ.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-DYHt5wp1.cjs"),t=require("vue"),P=require("./index-fwa9LBX5.cjs"),ht=require("./index-eUZKu-7F.cjs"),yt=require("./index-DFEHKFcd.cjs"),vt=require("vue-router"),Le=require("./index-9hspBVrQ.cjs"),U=require("./index-C5pQXH0_.cjs"),gt=require("./menuIndex-BVHXKOLk.cjs"),kt=require("./index-BpPyaNFa.cjs"),m=require("./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-Ceq-4YAl.cjs"),Pe=require("./index-D8DcUSsZ.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,8 +1,8 @@
1
1
  import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
2
- import { c as J, s as be, u as he, a as Ce, p as U, h as Ie } from "./index-JAXzKk2F.js";
3
- import { u as ke } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-DljCMBcU.js";
2
+ import { c as J, s as be, u as he, a as Ce, p as U, h as Ie } from "./index-Clipar8b.js";
3
+ import { u as ke } from "./index.vue_vue_type_style_index_0_scoped_afbdd7b2_lang-CP92dvJu.js";
4
4
  import { g as $, E as S, e as ae, u as oe, n as Te, f as Me } from "./index-K1n-pA4G.js";
5
- import { a as Se } from "./menuIndex-BvSKgV5f.js";
5
+ import { a as Se } from "./menuIndex-C-vOSUnB.js";
6
6
  const F = Ce(U), ne = ke(U), C = he(U), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
7
7
  var e, t;
8
8
  return [
@@ -1,6 +1,6 @@
1
1
  import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
2
- import { s as b } from "./index-CWY9HxrG.js";
3
- import { c as s } from "./index-JAXzKk2F.js";
2
+ import { s as b } from "./index-CA7UCEkN.js";
3
+ import { c as s } from "./index-Clipar8b.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = (t, n, a) => {
6
6
  var r, d, p, m;