ss-component-new 1.3.381 → 1.3.382

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 (67) hide show
  1. package/dist/{MTLLoader-CouNkhB-.js → MTLLoader-COQzSlop.js} +1 -1
  2. package/dist/{MTLLoader-SZ9nK9pb.cjs → MTLLoader-DAuK2Puz.cjs} +1 -1
  3. package/dist/{OrbitControls-vNDhaPEy.js → OrbitControls-BSpF9hj8.js} +1 -1
  4. package/dist/{OrbitControls-Bv8DKsCj.cjs → OrbitControls-knTPRn96.cjs} +1 -1
  5. package/dist/{URDFLoader-n9tvO4H5.cjs → URDFLoader-D6_CEpHZ.cjs} +1 -1
  6. package/dist/{URDFLoader-Cid_YBEL.js → URDFLoader-kbmOvMIB.js} +2 -2
  7. package/dist/{animationData-DbGJrxLY.js → animationData-DbE8xWWf.js} +1 -1
  8. package/dist/{animationData-f98gtFCx.cjs → animationData-DmjEvene.cjs} +1 -1
  9. package/dist/{array-DbI7x1gk.js → array-BSUZ99oH.js} +2 -2
  10. package/dist/{array-JIrX0GIJ.cjs → array-BvQOaFxO.cjs} +1 -1
  11. package/dist/{iconfont-TJpNQwsM.js → iconfont-D72sm9Jm.js} +2 -2
  12. package/dist/{iconfont-BhO8tNid.cjs → iconfont-DDZGPkz5.cjs} +1 -1
  13. package/dist/{index-B16HfNp_.cjs → index--l3tMF8l.cjs} +1 -1
  14. package/dist/{index-O5mjHfOm.js → index-Adu9r9O6.js} +2 -2
  15. package/dist/{index-BwRChHRT.cjs → index-B2-ME7I0.cjs} +1 -1
  16. package/dist/{index-DBByjSX_.js → index-BZCpc5VL.js} +1 -1
  17. package/dist/{index-DFtr-Rqk.cjs → index-BZWiTy-K.cjs} +1 -1
  18. package/dist/{index-DSHPqp_r.js → index-BjuzVLIW.js} +1 -1
  19. package/dist/{index-DcB1WeLn.cjs → index-BvPKncXn.cjs} +1 -1
  20. package/dist/{index-B4oQTb1-.cjs → index-Bx95j-0r.cjs} +1 -1
  21. package/dist/{index-0vconzxX.js → index-CGQcujDu.js} +1 -1
  22. package/dist/{index-CA6lILlp.cjs → index-CKcz17VF.cjs} +1 -1
  23. package/dist/{index-BfWWUVum.js → index-COvTB4A8.js} +10 -10
  24. package/dist/{index-BPRPhFKg.js → index-CyCYlmRK.js} +1 -1
  25. package/dist/{index-B-0kQqoF.cjs → index-D-CWxIQ_.cjs} +1 -1
  26. package/dist/{index-DkH6V7gi.js → index-D32grlvH.js} +3 -3
  27. package/dist/{index-Bq2LI4JT.cjs → index-DFGJd-mG.cjs} +1 -1
  28. package/dist/{index-BmWpBd41.cjs → index-DMmOKrQZ.cjs} +1 -1
  29. package/dist/{index-Cew0H5zr.cjs → index-DPpm7s-I.cjs} +1 -1
  30. package/dist/{index-CK9mwVar.js → index-DntOrygq.js} +3 -3
  31. package/dist/{index-C6IAzcud.js → index-DnwmGvcp.js} +7 -7
  32. package/dist/{index-CD8AMroA.js → index-DtAHjBND.js} +1 -1
  33. package/dist/{index-BUiS73zF.js → index-DvSKkDLq.js} +1 -1
  34. package/dist/{index-ep35KwpZ.js → index-DxRhIGgJ.js} +2 -2
  35. package/dist/{index-3eSTQmuv.cjs → index-E8q1Dd5H.cjs} +1 -1
  36. package/dist/{index-DPQAH04o.cjs → index-IiRA9o9r.cjs} +1 -1
  37. package/dist/{index-CftazBOW.cjs → index-MaP8ZSc8.cjs} +1 -1
  38. package/dist/{index-v5aVopat.js → index-P8lg86z4.js} +4 -4
  39. package/dist/{index-A-cywgje.cjs → index-WnDj_ILy.cjs} +1 -1
  40. package/dist/{index-DE350ag-.js → index-eh2g6__P.js} +1 -1
  41. package/dist/{index-Cg8alE6E.cjs → index-meO4_UNB.cjs} +1 -1
  42. package/dist/{index-BmKjfH-J.js → index-ziWPnxXp.js} +3 -3
  43. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DDL5j5xG.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-1iUOnCnG.cjs} +1 -1
  44. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D82JTXol.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CvrpCION.js} +2 -2
  45. package/dist/{main-o4Ggv7-Q.js → main-8ogz4WPH.js} +2 -2
  46. package/dist/{main-BXXG7rRP.cjs → main-CRDks8iO.cjs} +1 -1
  47. package/dist/ss-component.cjs +1 -1
  48. package/dist/ss-component.js +8 -8
  49. package/dist/ss-component2.cjs +1 -1
  50. package/dist/ss-component2.js +8 -8
  51. package/dist/{threeModel-DxUBCHV3.js → threeModel-BltK6ahE.js} +3 -3
  52. package/dist/{threeModel-CN2pt8VX.cjs → threeModel-pBCJbJUj.cjs} +1 -1
  53. package/dist/{threePreview-CgtHy09Z.cjs → threePreview-LzLgioUW.cjs} +1 -1
  54. package/dist/{threePreview-pnyFOQnV.js → threePreview-qDH9f8Ts.js} +3 -3
  55. package/dist/{threeSceneView-Dzd-Rmzz.cjs → threeSceneView-Dj7Ei0tl.cjs} +1 -1
  56. package/dist/{threeSceneView-ojzIcGrk.js → threeSceneView-lpkLya7B.js} +8 -8
  57. package/dist/{threeSceneViewForCPMPIP-CHKX5Vs4.cjs → threeSceneViewForCPMPIP-CWy6aopm.cjs} +1 -1
  58. package/dist/{threeSceneViewForCPMPIP-BSn9TBTx.js → threeSceneViewForCPMPIP-u6-wkzf5.js} +7 -7
  59. package/dist/{threeTrackPathView-Cq5zTcgQ.cjs → threeTrackPathView-B9p_9ESK.cjs} +1 -1
  60. package/dist/{threeTrackPathView-BMgH3Ve4.js → threeTrackPathView-ChBJzHaY.js} +3 -3
  61. package/dist/{threeViewerHost-SWo6c3G8.cjs → threeViewerHost-CSn-5XgQ.cjs} +1 -1
  62. package/dist/{threeViewerHost-C58MsBbt.js → threeViewerHost-DuJdDO8l.js} +2 -2
  63. package/dist/{urdfTree-B5U6O9l5.js → urdfTree-CHqT5mZW.js} +1 -1
  64. package/dist/{urdfTree-BTPz9Uya.cjs → urdfTree-CPWlk_zb.cjs} +1 -1
  65. package/dist/{workpieceTreePanel-DdBK1CNV.cjs → workpieceTreePanel-6yKh6IEH.cjs} +1 -1
  66. package/dist/{workpieceTreePanel-C2xARmZ-.js → workpieceTreePanel-BtXiR5Fg.js} +4 -4
  67. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  import { defineAsyncComponent as yt, computed as we, onMounted as Ne, resolveComponent as N, createBlock as Le, openBlock as F, withCtx as q, resolveDynamicComponent as Qe, defineComponent as gt, defineProps as Ct, ref as O, watch as Re, reactive as kt, nextTick as _t, createElementBlock as K, Fragment as Be, createVNode as $, createCommentVNode as Te, normalizeStyle as Dt, toDisplayString as Ke, createElementVNode as Me, renderList as $e, createTextVNode as ze } from "vue";
2
2
  import { u as It, a as St, p as xe, b as bt, s as Ee, c as je, v as Fe } from "./index-CTMMHmwj.js";
3
3
  import { S as Tt } from "./index-BHtNKL1L.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D82JTXol.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CvrpCION.js";
5
5
  import { I as Mt } from "./request-CbksSN84.js";
6
6
  import { s as wt } from "./index-BQ9pPu8K.js";
7
- import { c as ut } from "./index-DkH6V7gi.js";
7
+ import { c as ut } from "./index-D32grlvH.js";
8
8
  import { useRouter as At } from "vue-router";
9
9
  import { a as Bt, e as Et, f as Ft, g as Lt, h as Ut } from "./index-C2UiLe43.js";
10
10
  import { g as qe, u as jt, b as Je, c as Pt, a as Ot } from "./index-CIGlEa5l.js";
11
- import { g as Rt } from "./index-C6IAzcud.js";
11
+ import { g as Rt } from "./index-DnwmGvcp.js";
12
12
  import { f as Kt } from "./menuIndex-DUFFnrEE.js";
13
13
  import { c as We, d as Ge, n as $t } from "./index-QpJbzLNb.js";
14
14
  import { u as zt } from "./index-DIfJQHZp.js";
15
15
  import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Ue = yt(() => import("./index-DkH6V7gi.js").then((i) => i.n));
16
+ const Ue = yt(() => import("./index-D32grlvH.js").then((i) => i.n));
17
17
  Ue.install = (i) => {
18
18
  i.component("ssMenu", Ue);
19
19
  };
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),w=require("./index-BEli6-9O.cjs"),Ze=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DDL5j5xG.cjs");const He=require("./request-BC2w2vGr.cjs"),me=require("./index-BOkUwKV5.cjs"),et=require("./index-Cg8alE6E.cjs"),tt=require("vue-router"),ge=require("./index-RoXicHV9.cjs"),K=require("./index-CW4qJdP8.cjs"),ot=require("./index-CftazBOW.cjs"),lt=require("./menuIndex-4akJxcU5.cjs"),ke=require("./index-BrBW7tRO.cjs"),st=require("./index-Ff9cJTW6.cjs"),it=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Cg8alE6E.cjs")).then(r=>r.index));Se.install=r=>{r.component("ssMenu",Se)};const Me={__name:"index",props:{name:String},setup(r){const c=r,S=t.computed(()=>He.Icons[c.name]);return t.onMounted(()=>{}),(h,a)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value)))]),_:1})}}},Ee=(r,c,S=0)=>{let h=r;return h!=null&&h.every(a=>Array.isArray(a))&&(h!=null&&h.every(a=>Array.isArray(a)&&a.length===1)?h=h==null?void 0:h.filter(a=>(a==null?void 0:a[0])!==(c==null?void 0:c[S])):h=h==null?void 0:h.map(a=>{if(a!=null&&a.find(l=>l===(c==null?void 0:c[S]))&&(c==null?void 0:c.length)!==1){let l=w.cloneDeep(c),n=a==null?void 0:a.filter(C=>C!==(l==null?void 0:l[S])),I=S+1,M=Ee(n,l,I),b=[];b.push(a==null?void 0:a[0]),M==null||M.forEach(C=>{b.push(C)}),a=b}return a})),h},xe=(r,c,S,h=0)=>{let a=r;return a!=null&&a.every(l=>Array.isArray(l))&&(a!=null&&a.every(l=>Array.isArray(l)&&l.length===1)?a.push([S]):a=a==null?void 0:a.map(l=>{if(l!=null&&l.find(n=>n===(c==null?void 0:c[h]))&&(c==null?void 0:c.length)!==1){let n=w.cloneDeep(c),I=l==null?void 0:l.filter(E=>E!==(n==null?void 0:n[h])),M=h+1,b=xe(I,n,S,M),C=[];C.push(l==null?void 0:l[0]),b==null||b.forEach(E=>{C.push(E)}),l=C}return l})),a},be=(r,c,S,h,a=0)=>{let l=r;return l!=null&&l.every(n=>Array.isArray(n))&&(l!=null&&l.every(n=>Array.isArray(n)&&n.length===1)?l=l==null?void 0:l.map(n=>((n==null?void 0:n[0])===S&&(n=[h]),n)):l=l==null?void 0:l.map(n=>{if(n!=null&&n.find(I=>I===(c==null?void 0:c[a]))&&(c==null?void 0:c.length)!==1){let I=w.cloneDeep(c),M=n==null?void 0:n.filter(L=>L!==(I==null?void 0:I[a])),b=a+1,C=be(M,I,S,h,b),E=[];E.push(n==null?void 0:n[0]),C==null||C.forEach(L=>{E.push(L)}),n=E}return n})),l};function qe(r="menu"){return{name:r,components:{SvgIcon:Ze.SvgIcon,ssMenu:Se,DynamicIcon:Me,ssDialog:me.ssDialog,ssInput:et.ssInput},setup(c,{emit:S}){const h=t.defineProps({mode:{type:String,default:"vertical"}}),a=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=w.useMenuState(),n=w.useModelComp(w.pinia),I=w.useLoginState(w.pinia),{loginUserInfo:M}=w.storeToRefs(I),b=t.ref(0),C=tt.useRouter(),E=t.ref(),{asideMenus:L,menuTriggerType:i,platform:ue}=w.storeToRefs(l),{fixMenuStatus:De}=w.storeToRefs(n),{isSuperAdmin:_e}=st.useRole(),Ie=t.computed(()=>h==null?void 0:h.mode),x=o=>o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),Be=t.computed(()=>{let o=[...L.value];if((o==null?void 0:o.length)===0)return C.push("/"),[];const s=Le(o,$e.value);return s.isFlag||(o=s==null?void 0:s.data),o=o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),o}),Ae=async(o,s)=>{n.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?C.push(o.path):C.push("/"),S("node-click",o,s)},Fe=async o=>{const s=lt.findNodeByPropInTree(Be.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),De.value?n.setFixMenuStatus(!1):(W.value&&(i.value="open"),i.value==="click"?l.setActiveMenuPath(o):W.value||(l.setMenuTriggerType("click"),l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?C.push(o):C.push("/"),b.value++},Ne=o=>{W.value||l.setActiveMenuPath(o)},z=o=>{const s=document.documentElement;o==null||o.forEach(e=>{s.style.setProperty(e.name,e.value)})};t.onMounted(()=>{b.value=1});const $e=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>ue.value,o=>{o==="browser"?z(ge.browserVerticalMenuClasses):o==="client"?(z(ge.clientHorizontalMenuClasses),z(ge.clientVerticalMenuClasses)):o==="three"&&(z(ge.threeHorizontalMenuClasses),z(ge.threeVerticalMenuClasses))},{immediate:!0});const Le=(o,s)=>({isFlag:!0}),U=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Ue=o=>ot.getComponent(o),je=t.ref({}),Re=t.ref([]),Y=t.ref({}),J=t.ref({}),Pe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},we=t.ref({}),Oe=o=>{l.setCacheInputMenu({type:U.type,data:o}),l.setIsRefreshMenus(!0)},Ke=async(o,s,e)=>{var p,v,k,R,B,G,A,Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce;if(s==="create"){let F=(e==null?void 0:e.title)+"(1)",$=(v=(p=e==null?void 0:e.path)==null?void 0:p.split("/"))==null?void 0:v.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}),N=await ke.getItemData((B=(R=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:R.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:B.join("/"),sessionStorage.getItem("systemKey"),"");if($.push(F),$=$==null?void 0:$.join("/"),(N==null?void 0:N.length)>0){let D=N==null?void 0:N[0],y=(A=(G=D==null?void 0:D.compData)==null?void 0:G.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:A.contents;if(((Z=y==null?void 0:y[0])==null?void 0:Z.directiveLabel)==="#isMain"){let u=(H=y==null?void 0:y[0])==null?void 0:H.prop,T=(ee=(m=D==null?void 0:D.compData)==null?void 0:m.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:ee.contents,P;T==null||T.forEach(_=>{var O,j;if(_.length===1)((O=_==null?void 0:_[0])==null?void 0:O[u])===(e==null?void 0:e.title)&&(P=_==null?void 0:_[0],P[u]=F);else{let d=(j=y==null?void 0:y.filter(f=>f!=="操作"))==null?void 0:j.map(f=>f==null?void 0:f.prop),V=_==null?void 0:_.filter(f=>!(f!=null&&f.id)),q=ke.getValueToObjectValue(V,d);q[u]=F,P=q}}),await K.createInsofDataApi({key:{type:"data",pageKey:(le=(oe=(te=e==null?void 0:e.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((_,O)=>{var j,d;return O!==((d=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:d.length)-1}))==null?void 0:le.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(se=M.value)==null?void 0:se.id,createUserLayer:((ie=M.value)==null?void 0:ie.dept)||((ae=M.value)==null?void 0:ae.部门名称)},value:{tableData:P}})}}await ke.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ce=(ne=(re=e==null?void 0:e.path)==null?void 0:re.split("/"))==null?void 0:ne.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:ce.join("/")),l.setActiveTopMenuPath((de=(pe=e==null?void 0:e.path)==null?void 0:pe.split("/"))==null?void 0:de[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(s==="update")E.value=e;else if(s==="delete"){let F=[];(F==null?void 0:F.length)>0&&await K.batchDeleteInsofDataApi({ids:F}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ve=(fe=(he=e==null?void 0:e.path)==null?void 0:he.split("/"))==null?void 0:fe.filter(($,N)=>{var D,y;return N!==((y=(D=e==null?void 0:e.path)==null?void 0:D.split("/"))==null?void 0:y.length)-1}))==null?void 0:ve.join("/")),l.setActiveTopMenuPath((Ce=(ye=e==null?void 0:e.path)==null?void 0:ye.split("/"))==null?void 0:Ce[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},ze=async(o,s)=>{var Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,F,$,N,D,y,u,T,P,_,O,j;let e=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(H=(Z=e==null?void 0:e.data)==null?void 0:Z.result)==null?void 0:H[0],v=(m=p==null?void 0:p.value)==null?void 0:m.pageData;v.compData=(ee=v.compData)==null?void 0:ee.map(d=>{var V,q;return(d==null?void 0:d.key)==="menuContents"&&(d.contents=be(d.contents,(V=s==null?void 0:s.path)==null?void 0:V.split("/"),s==null?void 0:s.title,(q=o==null?void 0:o.target)==null?void 0:q.value)),d}),p!=null&&p.id&&await K.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:v}});let k=(oe=(te=s==null?void 0:s.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}),R=k==null?void 0:k.join("/");k.push((le=o==null?void 0:o.target)==null?void 0:le.value),k=k==null?void 0:k.join("/");let B=await ke.getItemData(R,sessionStorage.getItem("systemKey"),"");if(((ne=(re=(ae=(ie=(se=B==null?void 0:B[0])==null?void 0:se.compData)==null?void 0:ie.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ae.contents)==null?void 0:re[0])==null?void 0:ne.directiveLabel)==="#isMain"){let d=(fe=(he=(de=(pe=(ce=B==null?void 0:B[0])==null?void 0:ce.compData)==null?void 0:pe.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:de.contents)==null?void 0:he[0])==null?void 0:fe.prop,V=(Ce=(ye=(ve=B==null?void 0:B[0])==null?void 0:ve.compData)==null?void 0:ye.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:Ce.contents,q=(D=(N=($=(F=B==null?void 0:B[0])==null?void 0:F.compData)==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:N.contents)==null?void 0:D.map(g=>g==null?void 0:g.prop),f;if(V==null||V.forEach(g=>{var X;let Q=ke.getValueToObjectValue(g,q);(Q==null?void 0:Q[d])===s.title&&(f=Q,f[d]=(X=o==null?void 0:o.target)==null?void 0:X.value)}),f){let g={};for(let X in f)X!=="id"&&(g[X]=f==null?void 0:f[X]);let Q=[{id:f==null?void 0:f.id,value:{tableData:g}}];await K.batchUpdateInsofDataApi({dataList:Q})}}let G=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),A=(u=(y=G==null?void 0:G.data)==null?void 0:y.result)==null?void 0:u.map(d=>({id:d==null?void 0:d.id,key:d==null?void 0:d.key}));A=A==null?void 0:A.map(d=>(d.key.pageKey=k,d)),(A==null?void 0:A.length)>0&&await K.batchUpdateInsofDataApi({dataList:A}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((_=(P=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:P.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((j=(O=s==null?void 0:s.path)==null?void 0:O.split("/"))==null?void 0:j[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),E.value=void 0},Je=async(o,s)=>{U.type=Pe(s==null?void 0:s.operateType),await Ke(s,U.type,o),J.value=o,we.value=s},We=()=>{U.show=!1},Ge=o=>o==null?void 0:o.filter(s=>s.allowInherit),Qe=()=>{var e,p,v,k,R;let o;U.type==="create"&&(o=((e=J.value)==null?void 0:e.path)+"/"+Y.value[(p=Y.value)==null?void 0:p.prop]),U.type==="update"&&(o=(v=J.value)==null?void 0:v.path);const s={...J.value,config:Ge((k=J.value)==null?void 0:k.config),children:[],childMenus:[],title:Y.value[(R=Y.value)==null?void 0:R.prop],path:o};console.log("clickSubmitForm",we.value,J.value,s),Oe(s),U.show=!1},Xe=o=>{var e,p;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Y.value=(p=s==null?void 0:s.contents)==null?void 0:p.reduce((v,k)=>(v[k.key]=k.value,v.prop=k.key,v),{}))},W=t.ref(!1),Ye=()=>{W.value=!W.value},Te=t.ref(null);return t.watch(()=>L.value,async o=>{var s,e;if(o){await t.nextTick();const p=o==null?void 0:o[0];if(((s=p==null?void 0:p.children)==null?void 0:s.length)>0){const v=p==null?void 0:p.path;Te.value&&((e=Te.value)==null||e.openMenuRefByIndex(v))}else l.setActiveMenuPath((p==null?void 0:p.path)??"")}},{immediate:!0}),{menuRef:Te,isCollapse:W,handleMenuCollapse:Ye,handleCompChange:Xe,dialogForm:je,dialogRenderComps:Re,getComponents:Ue,clickSubmitForm:Qe,dialogInfo:U,beforeDialogDestroy:We,clickMenuIcon:Je,mode:Ie,renderMenuList:Be,clickMenu:Ae,openMenu:Fe,closeMenu:Ne,changeMenuStyle:z,fixElement:E,onBlur:ze,isSuperAdmin:_e}}}}const at=t.defineComponent(qe()),rt=["title"],nt={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},ct={key:2,class:"menu-operate-icon"},pt={class:"menu-config-wrap"},dt=["onClick"],ht={class:"module-dialog-content"};function ft(r,c,S,h,a,l){var L;const n=t.resolveComponent("ss-input"),I=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-popover"),b=t.resolveComponent("ss-menu"),C=t.resolveComponent("el-button"),E=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(b,{ref:"menuRef",class:"vertical-menu",mode:r.mode,menuList:r.renderMenuList,isCollapse:r.isCollapse,uniqueOpened:!0,onClickMenu:r.clickMenu,onOpenMenu:r.openMenu,onCloseMenu:r.closeMenu},{title:t.withCtx(({menu:i})=>{var ue,De,_e,Ie;return[!r.fixElement||(i==null?void 0:i.path)!==((ue=r.fixElement)==null?void 0:ue.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:i.title,class:"menu-title",style:t.normalizeStyle({marginRight:i!=null&&i.config&&((De=i==null?void 0:i.config)==null?void 0:De.length)>0?"25px":"1px"})},t.toDisplayString(i.title??""),13,rt)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",nt,[t.createVNode(n,{value:i.title,onBlur:x=>r.onBlur(x,i)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),i!=null&&i.config&&((Ie=i==null?void 0:i.config)==null?void 0:Ie.length)>0&&r.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",ct,[t.createVNode(M,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(I,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",pt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,x=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:x.id,onClick:Be=>r.clickMenuIcon(i,x)},[t.createVNode(I,{name:x==null?void 0:x.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(x==null?void 0:x.operateType),1)],8,dt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((L=r.renderMenuList)==null?void 0:L.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:c[0]||(c[0]=(...i)=>r.handleMenuCollapse&&r.handleMenuCollapse(...i))},[t.createVNode(I,{name:r.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(E,{class:"module-dialog",title:r.dialogInfo.title,visible:r.dialogInfo.show,width:r.dialogInfo.width,onBeforeDestroy:r.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",ht,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dialogRenderComps,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.getComponents((i==null?void 0:i.comp)??"Input")),{itemData:i==null?void 0:i.compData,key:i==null?void 0:i.id,content:(i==null?void 0:i.contents)??[],config:i==null?void 0:i.config,onContentChange:r.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(C,{id:"themeBorderButton",onClick:r.beforeDialogDestroy},{default:t.withCtx(()=>c[1]||(c[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(C,{id:"themeButton",onClick:r.clickSubmitForm},{default:t.withCtx(()=>c[2]||(c[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Ve=it._export_sfc(at,[["render",ft],["__scopeId","data-v-a385ba2f"]]),vt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:xe,default:Ve,deleteSelectMenu:Ee,fixSelectMenu:be,setComponent:qe},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Me;exports.index=vt;exports.ssMenu=Se;exports.ssVMenu=Ve;
1
+ "use strict";const t=require("vue"),w=require("./index-BEli6-9O.cjs"),Ze=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-1iUOnCnG.cjs");const He=require("./request-BC2w2vGr.cjs"),me=require("./index-BOkUwKV5.cjs"),et=require("./index-meO4_UNB.cjs"),tt=require("vue-router"),ge=require("./index-RoXicHV9.cjs"),K=require("./index-CW4qJdP8.cjs"),ot=require("./index-MaP8ZSc8.cjs"),lt=require("./menuIndex-4akJxcU5.cjs"),ke=require("./index-BrBW7tRO.cjs"),st=require("./index-Ff9cJTW6.cjs"),it=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-meO4_UNB.cjs")).then(r=>r.index));Se.install=r=>{r.component("ssMenu",Se)};const Me={__name:"index",props:{name:String},setup(r){const c=r,S=t.computed(()=>He.Icons[c.name]);return t.onMounted(()=>{}),(h,a)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(S.value)))]),_:1})}}},Ee=(r,c,S=0)=>{let h=r;return h!=null&&h.every(a=>Array.isArray(a))&&(h!=null&&h.every(a=>Array.isArray(a)&&a.length===1)?h=h==null?void 0:h.filter(a=>(a==null?void 0:a[0])!==(c==null?void 0:c[S])):h=h==null?void 0:h.map(a=>{if(a!=null&&a.find(l=>l===(c==null?void 0:c[S]))&&(c==null?void 0:c.length)!==1){let l=w.cloneDeep(c),n=a==null?void 0:a.filter(C=>C!==(l==null?void 0:l[S])),I=S+1,M=Ee(n,l,I),b=[];b.push(a==null?void 0:a[0]),M==null||M.forEach(C=>{b.push(C)}),a=b}return a})),h},xe=(r,c,S,h=0)=>{let a=r;return a!=null&&a.every(l=>Array.isArray(l))&&(a!=null&&a.every(l=>Array.isArray(l)&&l.length===1)?a.push([S]):a=a==null?void 0:a.map(l=>{if(l!=null&&l.find(n=>n===(c==null?void 0:c[h]))&&(c==null?void 0:c.length)!==1){let n=w.cloneDeep(c),I=l==null?void 0:l.filter(E=>E!==(n==null?void 0:n[h])),M=h+1,b=xe(I,n,S,M),C=[];C.push(l==null?void 0:l[0]),b==null||b.forEach(E=>{C.push(E)}),l=C}return l})),a},be=(r,c,S,h,a=0)=>{let l=r;return l!=null&&l.every(n=>Array.isArray(n))&&(l!=null&&l.every(n=>Array.isArray(n)&&n.length===1)?l=l==null?void 0:l.map(n=>((n==null?void 0:n[0])===S&&(n=[h]),n)):l=l==null?void 0:l.map(n=>{if(n!=null&&n.find(I=>I===(c==null?void 0:c[a]))&&(c==null?void 0:c.length)!==1){let I=w.cloneDeep(c),M=n==null?void 0:n.filter(L=>L!==(I==null?void 0:I[a])),b=a+1,C=be(M,I,S,h,b),E=[];E.push(n==null?void 0:n[0]),C==null||C.forEach(L=>{E.push(L)}),n=E}return n})),l};function qe(r="menu"){return{name:r,components:{SvgIcon:Ze.SvgIcon,ssMenu:Se,DynamicIcon:Me,ssDialog:me.ssDialog,ssInput:et.ssInput},setup(c,{emit:S}){const h=t.defineProps({mode:{type:String,default:"vertical"}}),a=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=w.useMenuState(),n=w.useModelComp(w.pinia),I=w.useLoginState(w.pinia),{loginUserInfo:M}=w.storeToRefs(I),b=t.ref(0),C=tt.useRouter(),E=t.ref(),{asideMenus:L,menuTriggerType:i,platform:ue}=w.storeToRefs(l),{fixMenuStatus:De}=w.storeToRefs(n),{isSuperAdmin:_e}=st.useRole(),Ie=t.computed(()=>h==null?void 0:h.mode),x=o=>o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),Be=t.computed(()=>{let o=[...L.value];if((o==null?void 0:o.length)===0)return C.push("/"),[];const s=Le(o,$e.value);return s.isFlag||(o=s==null?void 0:s.data),o=o==null?void 0:o.map(e=>{var p,v;return!(e!=null&&e.children)||((p=e==null?void 0:e.children)==null?void 0:p.length)===0?e.config=a.value:e!=null&&e.children&&((v=e==null?void 0:e.children)==null?void 0:v.length)>0&&(e.children=x(e.children)),e}),o}),Ae=async(o,s)=>{n.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?C.push(o.path):C.push("/"),S("node-click",o,s)},Fe=async o=>{const s=lt.findNodeByPropInTree(Be.value,"path",o);l.setActiveAsideMenu(s),n.setRouteToChildPath(""),De.value?n.setFixMenuStatus(!1):(W.value&&(i.value="open"),i.value==="click"?l.setActiveMenuPath(o):W.value||(l.setMenuTriggerType("click"),l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?C.push(o):C.push("/"),b.value++},Ne=o=>{W.value||l.setActiveMenuPath(o)},z=o=>{const s=document.documentElement;o==null||o.forEach(e=>{s.style.setProperty(e.name,e.value)})};t.onMounted(()=>{b.value=1});const $e=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>ue.value,o=>{o==="browser"?z(ge.browserVerticalMenuClasses):o==="client"?(z(ge.clientHorizontalMenuClasses),z(ge.clientVerticalMenuClasses)):o==="three"&&(z(ge.threeHorizontalMenuClasses),z(ge.threeVerticalMenuClasses))},{immediate:!0});const Le=(o,s)=>({isFlag:!0}),U=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),Ue=o=>ot.getComponent(o),je=t.ref({}),Re=t.ref([]),Y=t.ref({}),J=t.ref({}),Pe=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},we=t.ref({}),Oe=o=>{l.setCacheInputMenu({type:U.type,data:o}),l.setIsRefreshMenus(!0)},Ke=async(o,s,e)=>{var p,v,k,R,B,G,A,Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce;if(s==="create"){let F=(e==null?void 0:e.title)+"(1)",$=(v=(p=e==null?void 0:e.path)==null?void 0:p.split("/"))==null?void 0:v.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}),N=await ke.getItemData((B=(R=(k=e==null?void 0:e.path)==null?void 0:k.split("/"))==null?void 0:R.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:B.join("/"),sessionStorage.getItem("systemKey"),"");if($.push(F),$=$==null?void 0:$.join("/"),(N==null?void 0:N.length)>0){let D=N==null?void 0:N[0],y=(A=(G=D==null?void 0:D.compData)==null?void 0:G.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:A.contents;if(((Z=y==null?void 0:y[0])==null?void 0:Z.directiveLabel)==="#isMain"){let u=(H=y==null?void 0:y[0])==null?void 0:H.prop,T=(ee=(m=D==null?void 0:D.compData)==null?void 0:m.find(_=>(_==null?void 0:_.key)==="tableContents"))==null?void 0:ee.contents,P;T==null||T.forEach(_=>{var O,j;if(_.length===1)((O=_==null?void 0:_[0])==null?void 0:O[u])===(e==null?void 0:e.title)&&(P=_==null?void 0:_[0],P[u]=F);else{let d=(j=y==null?void 0:y.filter(f=>f!=="操作"))==null?void 0:j.map(f=>f==null?void 0:f.prop),V=_==null?void 0:_.filter(f=>!(f!=null&&f.id)),q=ke.getValueToObjectValue(V,d);q[u]=F,P=q}}),await K.createInsofDataApi({key:{type:"data",pageKey:(le=(oe=(te=e==null?void 0:e.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((_,O)=>{var j,d;return O!==((d=(j=e==null?void 0:e.path)==null?void 0:j.split("/"))==null?void 0:d.length)-1}))==null?void 0:le.join("/"),tableId:D==null?void 0:D.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(se=M.value)==null?void 0:se.id,createUserLayer:((ie=M.value)==null?void 0:ie.dept)||((ae=M.value)==null?void 0:ae.部门名称)},value:{tableData:P}})}}await ke.newLoadingConstruct(e==null?void 0:e.path,$),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ce=(ne=(re=e==null?void 0:e.path)==null?void 0:re.split("/"))==null?void 0:ne.filter((D,y)=>{var u,T;return y!==((T=(u=e==null?void 0:e.path)==null?void 0:u.split("/"))==null?void 0:T.length)-1}))==null?void 0:ce.join("/")),l.setActiveTopMenuPath((de=(pe=e==null?void 0:e.path)==null?void 0:pe.split("/"))==null?void 0:de[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(s==="update")E.value=e;else if(s==="delete"){let F=[];(F==null?void 0:F.length)>0&&await K.batchDeleteInsofDataApi({ids:F}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((ve=(fe=(he=e==null?void 0:e.path)==null?void 0:he.split("/"))==null?void 0:fe.filter(($,N)=>{var D,y;return N!==((y=(D=e==null?void 0:e.path)==null?void 0:D.split("/"))==null?void 0:y.length)-1}))==null?void 0:ve.join("/")),l.setActiveTopMenuPath((Ce=(ye=e==null?void 0:e.path)==null?void 0:ye.split("/"))==null?void 0:Ce[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},ze=async(o,s)=>{var Z,H,m,ee,te,oe,le,se,ie,ae,re,ne,ce,pe,de,he,fe,ve,ye,Ce,F,$,N,D,y,u,T,P,_,O,j;let e=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),p=(H=(Z=e==null?void 0:e.data)==null?void 0:Z.result)==null?void 0:H[0],v=(m=p==null?void 0:p.value)==null?void 0:m.pageData;v.compData=(ee=v.compData)==null?void 0:ee.map(d=>{var V,q;return(d==null?void 0:d.key)==="menuContents"&&(d.contents=be(d.contents,(V=s==null?void 0:s.path)==null?void 0:V.split("/"),s==null?void 0:s.title,(q=o==null?void 0:o.target)==null?void 0:q.value)),d}),p!=null&&p.id&&await K.updateInsofDataApi({id:p==null?void 0:p.id,value:{pageData:v}});let k=(oe=(te=s==null?void 0:s.path)==null?void 0:te.split("/"))==null?void 0:oe.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}),R=k==null?void 0:k.join("/");k.push((le=o==null?void 0:o.target)==null?void 0:le.value),k=k==null?void 0:k.join("/");let B=await ke.getItemData(R,sessionStorage.getItem("systemKey"),"");if(((ne=(re=(ae=(ie=(se=B==null?void 0:B[0])==null?void 0:se.compData)==null?void 0:ie.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ae.contents)==null?void 0:re[0])==null?void 0:ne.directiveLabel)==="#isMain"){let d=(fe=(he=(de=(pe=(ce=B==null?void 0:B[0])==null?void 0:ce.compData)==null?void 0:pe.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:de.contents)==null?void 0:he[0])==null?void 0:fe.prop,V=(Ce=(ye=(ve=B==null?void 0:B[0])==null?void 0:ve.compData)==null?void 0:ye.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:Ce.contents,q=(D=(N=($=(F=B==null?void 0:B[0])==null?void 0:F.compData)==null?void 0:$.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:N.contents)==null?void 0:D.map(g=>g==null?void 0:g.prop),f;if(V==null||V.forEach(g=>{var X;let Q=ke.getValueToObjectValue(g,q);(Q==null?void 0:Q[d])===s.title&&(f=Q,f[d]=(X=o==null?void 0:o.target)==null?void 0:X.value)}),f){let g={};for(let X in f)X!=="id"&&(g[X]=f==null?void 0:f[X]);let Q=[{id:f==null?void 0:f.id,value:{tableData:g}}];await K.batchUpdateInsofDataApi({dataList:Q})}}let G=await K.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:s==null?void 0:s.path}}),A=(u=(y=G==null?void 0:G.data)==null?void 0:y.result)==null?void 0:u.map(d=>({id:d==null?void 0:d.id,key:d==null?void 0:d.key}));A=A==null?void 0:A.map(d=>(d.key.pageKey=k,d)),(A==null?void 0:A.length)>0&&await K.batchUpdateInsofDataApi({dataList:A}),l.setUpdateMenuStatus(!1),await w.verifyStructureDataToStore(),l.setActiveMenuPath((_=(P=(T=s==null?void 0:s.path)==null?void 0:T.split("/"))==null?void 0:P.filter((d,V)=>{var q,f;return V!==((f=(q=s==null?void 0:s.path)==null?void 0:q.split("/"))==null?void 0:f.length)-1}))==null?void 0:_.join("/")),l.setActiveTopMenuPath((j=(O=s==null?void 0:s.path)==null?void 0:O.split("/"))==null?void 0:j[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),E.value=void 0},Je=async(o,s)=>{U.type=Pe(s==null?void 0:s.operateType),await Ke(s,U.type,o),J.value=o,we.value=s},We=()=>{U.show=!1},Ge=o=>o==null?void 0:o.filter(s=>s.allowInherit),Qe=()=>{var e,p,v,k,R;let o;U.type==="create"&&(o=((e=J.value)==null?void 0:e.path)+"/"+Y.value[(p=Y.value)==null?void 0:p.prop]),U.type==="update"&&(o=(v=J.value)==null?void 0:v.path);const s={...J.value,config:Ge((k=J.value)==null?void 0:k.config),children:[],childMenus:[],title:Y.value[(R=Y.value)==null?void 0:R.prop],path:o};console.log("clickSubmitForm",we.value,J.value,s),Oe(s),U.show=!1},Xe=o=>{var e,p;const s=(e=o==null?void 0:o.contents)==null?void 0:e.find(v=>v.key==="formContent");s&&(Y.value=(p=s==null?void 0:s.contents)==null?void 0:p.reduce((v,k)=>(v[k.key]=k.value,v.prop=k.key,v),{}))},W=t.ref(!1),Ye=()=>{W.value=!W.value},Te=t.ref(null);return t.watch(()=>L.value,async o=>{var s,e;if(o){await t.nextTick();const p=o==null?void 0:o[0];if(((s=p==null?void 0:p.children)==null?void 0:s.length)>0){const v=p==null?void 0:p.path;Te.value&&((e=Te.value)==null||e.openMenuRefByIndex(v))}else l.setActiveMenuPath((p==null?void 0:p.path)??"")}},{immediate:!0}),{menuRef:Te,isCollapse:W,handleMenuCollapse:Ye,handleCompChange:Xe,dialogForm:je,dialogRenderComps:Re,getComponents:Ue,clickSubmitForm:Qe,dialogInfo:U,beforeDialogDestroy:We,clickMenuIcon:Je,mode:Ie,renderMenuList:Be,clickMenu:Ae,openMenu:Fe,closeMenu:Ne,changeMenuStyle:z,fixElement:E,onBlur:ze,isSuperAdmin:_e}}}}const at=t.defineComponent(qe()),rt=["title"],nt={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},ct={key:2,class:"menu-operate-icon"},pt={class:"menu-config-wrap"},dt=["onClick"],ht={class:"module-dialog-content"};function ft(r,c,S,h,a,l){var L;const n=t.resolveComponent("ss-input"),I=t.resolveComponent("svg-icon"),M=t.resolveComponent("el-popover"),b=t.resolveComponent("ss-menu"),C=t.resolveComponent("el-button"),E=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(b,{ref:"menuRef",class:"vertical-menu",mode:r.mode,menuList:r.renderMenuList,isCollapse:r.isCollapse,uniqueOpened:!0,onClickMenu:r.clickMenu,onOpenMenu:r.openMenu,onCloseMenu:r.closeMenu},{title:t.withCtx(({menu:i})=>{var ue,De,_e,Ie;return[!r.fixElement||(i==null?void 0:i.path)!==((ue=r.fixElement)==null?void 0:ue.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:i.title,class:"menu-title",style:t.normalizeStyle({marginRight:i!=null&&i.config&&((De=i==null?void 0:i.config)==null?void 0:De.length)>0?"25px":"1px"})},t.toDisplayString(i.title??""),13,rt)):t.createCommentVNode("",!0),r.fixElement&&(i==null?void 0:i.path)===((_e=r.fixElement)==null?void 0:_e.path)?(t.openBlock(),t.createElementBlock("span",nt,[t.createVNode(n,{value:i.title,onBlur:x=>r.onBlur(x,i)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),i!=null&&i.config&&((Ie=i==null?void 0:i.config)==null?void 0:Ie.length)>0&&r.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",ct,[t.createVNode(M,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(I,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",pt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i==null?void 0:i.config,x=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:x.id,onClick:Be=>r.clickMenuIcon(i,x)},[t.createVNode(I,{name:x==null?void 0:x.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(x==null?void 0:x.operateType),1)],8,dt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((L=r.renderMenuList)==null?void 0:L.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:c[0]||(c[0]=(...i)=>r.handleMenuCollapse&&r.handleMenuCollapse(...i))},[t.createVNode(I,{name:r.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(E,{class:"module-dialog",title:r.dialogInfo.title,visible:r.dialogInfo.show,width:r.dialogInfo.width,onBeforeDestroy:r.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",ht,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dialogRenderComps,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.getComponents((i==null?void 0:i.comp)??"Input")),{itemData:i==null?void 0:i.compData,key:i==null?void 0:i.id,content:(i==null?void 0:i.contents)??[],config:i==null?void 0:i.config,onContentChange:r.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(C,{id:"themeBorderButton",onClick:r.beforeDialogDestroy},{default:t.withCtx(()=>c[1]||(c[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(C,{id:"themeButton",onClick:r.clickSubmitForm},{default:t.withCtx(()=>c[2]||(c[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Ve=it._export_sfc(at,[["render",ft],["__scopeId","data-v-a385ba2f"]]),vt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:xe,default:Ve,deleteSelectMenu:Ee,fixSelectMenu:be,setComponent:qe},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Me;exports.index=vt;exports.ssMenu=Se;exports.ssVMenu=Ve;
@@ -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
2
  import { S as m } from "./index-DCSqmK8s.js";
3
- import { V as _ } from "./index-C6IAzcud.js";
3
+ import { V as _ } from "./index-DnwmGvcp.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",