ss-component-new 1.3.428 → 1.3.430

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 (107) hide show
  1. package/dist/{MTLLoader-DBXJU4gy.js → MTLLoader-D7sNoLcK.js} +1 -1
  2. package/dist/{MTLLoader-C1qSZuWT.cjs → MTLLoader-p0GsbA2N.cjs} +1 -1
  3. package/dist/{OrbitControls-BFwyCnTH.cjs → OrbitControls-BhtVNiz9.cjs} +1 -1
  4. package/dist/{OrbitControls-BK6rha_f.js → OrbitControls-xsAEcOQ0.js} +1 -1
  5. package/dist/{URDFLoader-CTaB1j6-.cjs → URDFLoader-DAb823an.cjs} +1 -1
  6. package/dist/{URDFLoader-B4rOIDHb.js → URDFLoader-OhWW6Ghz.js} +2 -2
  7. package/dist/{animationData-DugoMERO.cjs → animationData-CM85S6tn.cjs} +1 -1
  8. package/dist/{animationData-Bfdz_yNt.js → animationData-CZHPgZ5e.js} +3 -3
  9. package/dist/{array-BOctoevY.cjs → array-0RI_MV-5.cjs} +1 -1
  10. package/dist/{array-CtInsg0G.js → array-DeAl78t6.js} +84 -84
  11. package/dist/{clone-r23wXuC7.js → clone-BDsG8VVj.js} +1 -1
  12. package/dist/clone-D92QCGo2.cjs +1 -0
  13. package/dist/{iconfont-C4b-8B6C.js → iconfont-C5j4Td3D.js} +2 -2
  14. package/dist/{iconfont-B8J8hnDJ.cjs → iconfont-DvB947R2.cjs} +1 -1
  15. package/dist/{index-1tRX531i.cjs → index-4SWc85gj.cjs} +1 -1
  16. package/dist/index-8V0NHmW6.cjs +1 -0
  17. package/dist/{index-x-HWwt4p.js → index-9Fw7ND1N.js} +11 -11
  18. package/dist/{index-DQdcA8b0.cjs → index-B6e2oM-P.cjs} +1 -1
  19. package/dist/{index-Bn4g3hXz.cjs → index-B9MP9Z_h.cjs} +1 -1
  20. package/dist/{index-C9LONCdW.js → index-BEyBnEnd.js} +5 -5
  21. package/dist/{index-BWtc895B.js → index-BF5SUWUn.js} +1 -1
  22. package/dist/{index-rGJF9UJ9.js → index-BK-oz1IK.js} +1908 -1929
  23. package/dist/{index-BDClkBzq.cjs → index-BTfuvT7M.cjs} +1 -1
  24. package/dist/{index-D38qJHp0.js → index-BTgKT-Kp.js} +21 -21
  25. package/dist/{index-HHT3da7j.cjs → index-BpYkNRvs.cjs} +12 -12
  26. package/dist/{index-DzN70K91.js → index-C-rFa3VT.js} +1229 -1203
  27. package/dist/{index-N0L2zoGC.cjs → index-C09sw7CL.cjs} +1 -1
  28. package/dist/{index-Bu5lDLj_.cjs → index-C3JpBKyN.cjs} +1 -1
  29. package/dist/{index-CZly4koJ.js → index-CFiyfU1X.js} +36 -36
  30. package/dist/{index-D3lXIyot.cjs → index-CGaJRFh6.cjs} +1 -1
  31. package/dist/{index-Dbv6QX4e.js → index-CGqnKnrd.js} +2 -2
  32. package/dist/{index-B7H-5M2Y.cjs → index-CIMnUwEB.cjs} +1 -1
  33. package/dist/{index-6RECQqV8.js → index-CKsprVNa.js} +1 -1
  34. package/dist/{index-DaiB_qqV.cjs → index-CLLeUa5o.cjs} +1 -1
  35. package/dist/index-CWzVeyId.cjs +2 -0
  36. package/dist/{index-DhD0tnVr.cjs → index-CZuPznao.cjs} +1 -1
  37. package/dist/{index-CdsqSTRI.js → index-Ca_pqbsS.js} +20 -20
  38. package/dist/{index-CTkNgtX3.cjs → index-Call_60N.cjs} +1 -1
  39. package/dist/{index-CKCe1GPP.cjs → index-CljHDtk8.cjs} +1 -1
  40. package/dist/{index-BBr25gXh.js → index-D1U0qzcp.js} +4 -4
  41. package/dist/{index-B0HOwfWc.cjs → index-DCfi_waU.cjs} +1 -1
  42. package/dist/{index-BtWec77G.cjs → index-DDAEpzaB.cjs} +1 -1
  43. package/dist/{index-Bi1DonQa.js → index-DDK5gDem.js} +12 -12
  44. package/dist/{index-BIbJs6Kp.cjs → index-DM4iU2Ab.cjs} +1 -1
  45. package/dist/{index-CdGqaqYM.js → index-DO5zum3x.js} +2 -2
  46. package/dist/{index-BK6-AVLE.js → index-DQ94pBGZ.js} +339 -330
  47. package/dist/{index-H2suIBRd.js → index-DSKIm3im.js} +4 -4
  48. package/dist/{index-DlXwTcJ9.js → index-DTllcl_O.js} +2 -2
  49. package/dist/{index-DvbvoiZG.js → index-DU2dKJOK.js} +15 -15
  50. package/dist/{index-CtLw-tqJ.js → index-DbPbr5TD.js} +9840 -9754
  51. package/dist/{index-Dk-xbMrl.js → index-DgTbfgjE.js} +18 -18
  52. package/dist/index-Digv4Fyh.cjs +1 -0
  53. package/dist/{index-ss_5hS2p.js → index-DkA3dv5l.js} +1 -1
  54. package/dist/{index-DAZMn3y_.js → index-Dn7UEQUd.js} +1 -1
  55. package/dist/{index-BfK0dq3V.cjs → index-DoorIpTj.cjs} +1 -1
  56. package/dist/{index-CNRHr3kT.cjs → index-DqmyyzfP.cjs} +1 -1
  57. package/dist/{index-CnsDmHXo.cjs → index-DxPKykuA.cjs} +1 -1
  58. package/dist/{index-jDRNGigR.js → index-Dxs-F0xJ.js} +8 -8
  59. package/dist/{index-mDUckx7n.cjs → index-DyCQbiMc.cjs} +1 -1
  60. package/dist/index-Dz_V4Aef.cjs +26 -0
  61. package/dist/{index-DpRkYDKO.cjs → index-IGuY2Qp9.cjs} +1 -1
  62. package/dist/{index-TDwSq2BF.js → index-Lhh-KMx5.js} +2 -2
  63. package/dist/{index-DAfCxuFU.js → index-RF5qQdBY.js} +1 -1
  64. package/dist/{index-CJijEg9W.js → index-ToiCtVRE.js} +7 -7
  65. package/dist/{index-NSrMRasA.cjs → index-XVjZTSe1.cjs} +1 -1
  66. package/dist/{index-CeXLp3RG.js → index-YzkBsOrM.js} +4 -4
  67. package/dist/{index-mpH7L8Rm.js → index-fH3hPSMI.js} +41 -39
  68. package/dist/{index-C772JVG0.cjs → index-fh5hS-5q.cjs} +1 -1
  69. package/dist/{index-qhLt4UGH.cjs → index-ilXWn4_Y.cjs} +1 -1
  70. package/dist/index-p9kkXcpR.js +10841 -0
  71. package/dist/{index-DyHFsX8U.js → index-sl2ZbrIv.js} +1 -1
  72. package/dist/index-xN3pvlzo.cjs +18 -0
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bk-thOPD.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs} +1 -1
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-EOt2_XRY.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BUMDcqtn.js} +3 -3
  75. package/dist/{main-Dyv9tK3q.cjs → main-2_nRO_Yd.cjs} +1 -1
  76. package/dist/{main-BazhXMmW.js → main-hbDYKA6O.js} +4 -4
  77. package/dist/{menuIndex-B8QQIas4.cjs → menuIndex-8KYc1zS9.cjs} +1 -1
  78. package/dist/{menuIndex-qnbpFYeU.js → menuIndex-CPrSvY9F.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +3 -3
  81. package/dist/ss-component.js +15 -15
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-CKvba3tD.js → threeModel-C1V8R9PI.js} +45 -45
  85. package/dist/{threeModel-BWwXtPBu.cjs → threeModel-z-ti4e5E.cjs} +1 -1
  86. package/dist/{threePreview-GizvH53S.js → threePreview-BoiGO8RT.js} +4 -4
  87. package/dist/{threePreview-CbKggw3I.cjs → threePreview-Bs-m2IAX.cjs} +1 -1
  88. package/dist/{threeSceneView-D6UJzKUj.js → threeSceneView-BCuH_gVn.js} +11 -11
  89. package/dist/{threeSceneView-CJnJdw2X.cjs → threeSceneView-CTHpWmwg.cjs} +1 -1
  90. package/dist/{threeSceneViewForCPMPIP-hUnAkwBg.cjs → threeSceneViewForCPMPIP-CsDzXB39.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-NCyWbrvb.js → threeSceneViewForCPMPIP-Dyb60cS_.js} +8 -8
  92. package/dist/{threeTrackPathView-DSHB2LWA.js → threeTrackPathView-C7MWmsr9.js} +4 -4
  93. package/dist/{threeTrackPathView-ZqSjOtFS.cjs → threeTrackPathView-DL3Fx1XR.cjs} +1 -1
  94. package/dist/{threeViewerHost-BEEjkIf3.js → threeViewerHost-2yySAP_2.js} +3 -3
  95. package/dist/{threeViewerHost-D0oJ3S3c.cjs → threeViewerHost-Bk3vNumJ.cjs} +1 -1
  96. package/dist/{urdfTree-DnkBJIj6.cjs → urdfTree-B1vSZdxZ.cjs} +1 -1
  97. package/dist/{urdfTree-DEWAJ5kl.js → urdfTree-BwPn5sja.js} +1 -1
  98. package/dist/{workpieceTreePanel-XOSlhouq.js → workpieceTreePanel-DnVOjYQ2.js} +4 -4
  99. package/dist/{workpieceTreePanel-DzpjPYZ9.cjs → workpieceTreePanel-zPR2Z6wa.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/dist/clone-t2ps0jmw.cjs +0 -1
  102. package/dist/index-BSeL_Eve.js +0 -10837
  103. package/dist/index-BeOgM-lp.cjs +0 -1
  104. package/dist/index-ClvA5-wg.cjs +0 -18
  105. package/dist/index-DAEMvwnX.cjs +0 -26
  106. package/dist/index-DUBEV33e.cjs +0 -2
  107. package/dist/index-DgpEgbFi.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),w=require("./index-ClvA5-wg.cjs"),Ze=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-Bk-thOPD.cjs");const He=require("./request-Dl8yi2iS.cjs"),me=require("./index-B-pflqKE.cjs"),et=require("./index-HHT3da7j.cjs"),tt=require("vue-router"),ge=require("./index-DKh4EyHV.cjs"),K=require("./index-DmwxzDGW.cjs"),ot=require("./index-DAEMvwnX.cjs"),lt=require("./menuIndex-B8QQIas4.cjs"),ke=require("./index-Bn4g3hXz.cjs"),st=require("./index-DhD0tnVr.cjs"),it=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-HHT3da7j.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-xN3pvlzo.cjs"),Ze=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BGyDDkYS.cjs");const He=require("./request-Dl8yi2iS.cjs"),me=require("./index-B-pflqKE.cjs"),et=require("./index-BpYkNRvs.cjs"),tt=require("vue-router"),ge=require("./index-DKh4EyHV.cjs"),K=require("./index-DmwxzDGW.cjs"),ot=require("./index-Dz_V4Aef.cjs"),lt=require("./menuIndex-8KYc1zS9.cjs"),ke=require("./index-B9MP9Z_h.cjs"),st=require("./index-CZuPznao.cjs"),it=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BpYkNRvs.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,8 +1,8 @@
1
1
  import { watch as be, ref as w, computed as we } from "vue";
2
- import { m as E, j as B, w as Le } from "./index-BWtc895B.js";
3
- import { s as Te, b as V, p as C, u as De, t as Re, c as A, D as N, E as Ee, i as Be, ag as Ae, ah as Pe, ai as Ue, aj as xe, ak as Se, al as ke } from "./index-rGJF9UJ9.js";
2
+ import { m as E, j as B, w as Le } from "./index-BF5SUWUn.js";
3
+ import { s as Te, b as C, p as V, u as Re, r as De, c as A, C as N, E as Ee, j as Be, ae as Ae, af as Pe, ag as Ue, ah as xe, ai as Se, aj as ke } from "./index-BK-oz1IK.js";
4
4
  import { s as z } from "./request-XJsZ4h2T.js";
5
- const qe = V(C), { systemUrl: f } = Te(qe);
5
+ const qe = C(V), { systemUrl: f } = Te(qe);
6
6
  let P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
7
7
  be(
8
8
  () => f.value,
@@ -26,16 +26,16 @@ function Fe(s) {
26
26
  responseType: "blob"
27
27
  });
28
28
  }
29
- function Ve(s = "") {
29
+ function Ce(s = "") {
30
30
  const r = s.match(/filename\*=UTF-8''([^;]+)/i);
31
31
  if (r)
32
32
  return decodeURIComponent(r[1]);
33
33
  const i = s.match(/filename=["']?([^"';]+)["']?/);
34
34
  return i ? i[1] : "download.xlsx";
35
35
  }
36
- const Ce = (s) => {
36
+ const Ve = (s) => {
37
37
  var I, g;
38
- const r = ((I = s == null ? void 0 : s.headers) == null ? void 0 : I["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", i = new Blob([s.data], { type: r }), L = (g = s == null ? void 0 : s.headers) == null ? void 0 : g["content-disposition"], h = Ve(L) || "数据.xlsx", c = window.URL.createObjectURL(i), u = document.createElement("a");
38
+ const r = ((I = s == null ? void 0 : s.headers) == null ? void 0 : I["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", i = new Blob([s.data], { type: r }), L = (g = s == null ? void 0 : s.headers) == null ? void 0 : g["content-disposition"], h = Ce(L) || "数据.xlsx", c = window.URL.createObjectURL(i), u = document.createElement("a");
39
39
  u.href = c, u.setAttribute("download", h), document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(c);
40
40
  }, Ke = [
41
41
  {
@@ -72,14 +72,14 @@ const Ce = (s) => {
72
72
  TABLE: {
73
73
  value: "Table"
74
74
  }
75
- }, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
76
- const s = V(), r = De(C), { isSuperAdmin: i, userId: L, userName: h, platId: c } = Re(), u = w([]), I = (t) => {
75
+ }, je = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
76
+ const s = C(), r = Re(V), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]), I = (t) => {
77
77
  const { propertyType: e } = t || {};
78
78
  return e === ze.TABLE.value;
79
- }, g = w({}), O = we(() => {
79
+ }, g = w({}), j = we(() => {
80
80
  var e;
81
81
  return i.value ? !0 : ((e = g.value) == null ? void 0 : e.status) === d.EDITABLE.value;
82
- }), j = (t) => {
82
+ }), O = (t) => {
83
83
  var o, l;
84
84
  const e = N(Date.now()), { id: a = 0 } = s.loginUserInfo || {}, n = A(t);
85
85
  return n.update_user_id = a, n.update_user_name = h.value, n.update_time = e, n.checked_ids = ((l = (o = n == null ? void 0 : n.main_ids) == null ? void 0 : o.map) == null ? void 0 : l.call(o, (p) => {
@@ -133,14 +133,14 @@ const Ce = (s) => {
133
133
  };
134
134
  const { checkAll: p, tree: _ } = e || {};
135
135
  if (p && _) {
136
- const v = U(_), Ie = v.map((R) => ({
137
- ...R,
136
+ const v = U(_), Ie = v.map((D) => ({
137
+ ...D,
138
138
  department_scope: "unlimited"
139
139
  }));
140
- l.main_ids = Ie, l.checked_ids = v.map((R) => R.id), l.params = G(v);
140
+ l.main_ids = Ie, l.checked_ids = v.map((D) => D.id), l.params = G(v);
141
141
  }
142
142
  if (t) {
143
- const v = j(t);
143
+ const v = O(t);
144
144
  l = {
145
145
  ...l,
146
146
  ...v
@@ -248,12 +248,12 @@ const Ce = (s) => {
248
248
  }, ie = (t = "") => {
249
249
  const e = t.toUpperCase(), a = d == null ? void 0 : d[e];
250
250
  return (a == null ? void 0 : a.tag) || "info";
251
- }, D = (t) => t === d.EDITABLE.value, ue = (t, e) => {
251
+ }, R = (t) => t === d.EDITABLE.value, ue = (t, e) => {
252
252
  const { status: a } = t || {}, { tableOperate: n } = e || {};
253
- return !!(D(a) || n && Oe.includes(n));
253
+ return !!(R(a) || n && je.includes(n));
254
254
  }, pe = (t, e) => {
255
255
  const { status: a } = t || {};
256
- return D(a);
256
+ return R(a);
257
257
  }, de = (t, e) => {
258
258
  if (i.value)
259
259
  return !0;
@@ -263,7 +263,7 @@ const Ce = (s) => {
263
263
  if (E.FORM === a)
264
264
  return pe(t);
265
265
  const { status: n } = t || {};
266
- return D(n);
266
+ return R(n);
267
267
  }, me = async () => {
268
268
  var n, o;
269
269
  const e = {
@@ -295,7 +295,7 @@ const Ce = (s) => {
295
295
  tableType: F,
296
296
  filter: b.value
297
297
  }, e = await he(t);
298
- return Ce(e), e;
298
+ return Ve(e), e;
299
299
  }, ve = [["名称", "编码", "备注", "状态"]];
300
300
  return {
301
301
  compType: E,
@@ -321,7 +321,7 @@ const Ce = (s) => {
321
321
  getFeatureStatusTagByValue: ie,
322
322
  hasEditable: de,
323
323
  initRoleConfig: fe,
324
- hasRoleEditAuth: O,
324
+ hasRoleEditAuth: j,
325
325
  buildParamAuthTree: q,
326
326
  initImport: ye,
327
327
  initExport: _e,
@@ -335,7 +335,7 @@ export {
335
335
  Ne as a,
336
336
  Fe as e,
337
337
  d as f,
338
- Ce as i,
338
+ Ve as i,
339
339
  Ke as o,
340
340
  m as s,
341
341
  We as u