ss-component-new 1.3.113 → 1.3.115

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 (109) hide show
  1. package/dist/{MTLLoader-y4B1LPuT.js → MTLLoader-C-9g5iRs.js} +36 -36
  2. package/dist/{MTLLoader-BviVUPWi.cjs → MTLLoader-CfO9qTqV.cjs} +1 -1
  3. package/dist/{OrbitControls-390k2OM3.js → OrbitControls-B2gEQ18i.js} +1 -1
  4. package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-DoGWhGYE.cjs} +1 -1
  5. package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-BWZcLTTH.js} +193 -193
  6. package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BlsYqWJQ.cjs} +1 -1
  7. package/dist/{animationData-B1Jlpr7b.cjs → animationData-BjpsMpYe.cjs} +1 -1
  8. package/dist/{animationData-DfDLy_M4.js → animationData-CK7mtjyo.js} +18 -18
  9. package/dist/{array-ymebeoXj.cjs → array-4sEK1Tp6.cjs} +1 -1
  10. package/dist/{array-DLBDgy0c.js → array-C61a4nGq.js} +5 -5
  11. package/dist/{iconfont-BYa5tDrN.js → iconfont-BEEudegG.js} +37 -37
  12. package/dist/{iconfont-cBX7rs7k.cjs → iconfont-w8ZxNH1R.cjs} +1 -1
  13. package/dist/{index-DMzBNabY.js → index--HdSHCHH.js} +1 -1
  14. package/dist/{index-YwMY3Aya.js → index-2A65FWWp.js} +7 -7
  15. package/dist/{index-SeEbZNcJ.cjs → index-32lNvNQY.cjs} +1 -1
  16. package/dist/{index-CVySIgt4.cjs → index-AjU4645d.cjs} +1 -1
  17. package/dist/{index-bbJ9Y_oO.js → index-B2h_bCtP.js} +3 -3
  18. package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
  19. package/dist/{index--hQDmx_x.js → index-BADcwiJj.js} +2 -2
  20. package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
  21. package/dist/index-BGo77kB8.cjs +1 -0
  22. package/dist/{index-BjAtlMRE.cjs → index-BHDqgLbZ.cjs} +1 -1
  23. package/dist/{index-8TMkI46d.js → index-BJxcMaQu.js} +5 -5
  24. package/dist/{index-NdxRkX7O.js → index-BaMfm3q6.js} +959 -956
  25. package/dist/index-BdXsBH1P.cjs +13 -0
  26. package/dist/{index-B9g8IV0C.cjs → index-Bd_SZg7S.cjs} +1 -1
  27. package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
  28. package/dist/{index-UytjSmc1.cjs → index-BiA-_xPC.cjs} +1 -1
  29. package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
  30. package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
  31. package/dist/{index-CVwsrCrZ.cjs → index-BxNotDao.cjs} +12 -12
  32. package/dist/{index-DaX27S_0.js → index-BxcjTlnl.js} +31 -31
  33. package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
  34. package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
  35. package/dist/{index-DpIzJvIr.cjs → index-C5dht9fE.cjs} +1 -1
  36. package/dist/{index-BVURmufk.js → index-CANPj8uh.js} +7 -7
  37. package/dist/{index-BXZlLwr6.cjs → index-CHVJAILH.cjs} +1 -1
  38. package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
  39. package/dist/{index-Cu75UXH1.js → index-CPq8y_kH.js} +2 -2
  40. package/dist/{index-CJiEoadC.js → index-CRv6JQ2C.js} +5 -5
  41. package/dist/{index-CXkaTWVT.js → index-Cl2nQDI1.js} +2 -2
  42. package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
  43. package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
  44. package/dist/{index-BIOl9xBh.js → index-CutPkLky.js} +2 -2
  45. package/dist/{index-4p0yEeUu.js → index-CyWkVCgH.js} +1 -1
  46. package/dist/{index-DdCyGfF9.cjs → index-D8LkomEw.cjs} +1 -1
  47. package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
  48. package/dist/{index-mabPGJUl.js → index-DC6oFcJ3.js} +2191 -2186
  49. package/dist/index-DMp47JRO.cjs +1 -0
  50. package/dist/{index-CEiscADV.cjs → index-DNQnpERW.cjs} +1 -1
  51. package/dist/{index-D39f9FDD.cjs → index-DNSrAjI9.cjs} +1 -1
  52. package/dist/index-DavcqNxP.cjs +1 -0
  53. package/dist/{index-DBdrmcqM.cjs → index-DefT5mRw.cjs} +1 -1
  54. package/dist/index-DgBjwajW.js +456 -0
  55. package/dist/index-DiowIVZT.cjs +36 -0
  56. package/dist/{index-BxmhgJuz.js → index-DjITcxoB.js} +1 -1
  57. package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
  58. package/dist/index-DsOOj9Lf.cjs +1 -0
  59. package/dist/{index-JJBPRJiI.cjs → index-DsgMH4OH.cjs} +1 -1
  60. package/dist/{index-C6_KNp1M.cjs → index-DtABq3r6.cjs} +1 -1
  61. package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
  62. package/dist/{index-DLK6UU4l.cjs → index-LqtTDLKt.cjs} +1 -1
  63. package/dist/index-SJHk-hwy.cjs +1 -0
  64. package/dist/{index-DnJB2OQC.cjs → index-UCzD4hzW.cjs} +1 -1
  65. package/dist/{index-CIoHy7Dg.js → index-ZhE5DWe_.js} +3 -3
  66. package/dist/{index-CYXsxIou.js → index-a2aJc3TK.js} +1 -1
  67. package/dist/{index-BfNg0B2v.js → index-eiZuqNHp.js} +3167 -3138
  68. package/dist/{index-C2yeqxnB.js → index-eyvk-8N6.js} +3 -3
  69. package/dist/index-h4MsH7WN.cjs +1 -0
  70. package/dist/{index-Drd5_tIE.js → index-voXoCiq0.js} +2 -2
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Ctc5O7Al.js} +17645 -18043
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-yeqe0Dqi.cjs} +392 -392
  73. package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-CIY5Sa-o.js} +722 -712
  74. package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-fwFKG5I3.cjs} +3 -3
  75. package/dist/{main-b1OREkjD.js → main-Bv-bP073.js} +4 -4
  76. package/dist/{main-ChE0Sl1V.cjs → main-CojqsPyy.cjs} +1 -1
  77. package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
  78. package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +1 -1
  81. package/dist/ss-component.js +10 -10
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-CUViA1pV.js → threeModel-D3f91Rt6.js} +62 -62
  85. package/dist/{threeModel-BTiM-_yY.cjs → threeModel-DdDMV2Z7.cjs} +1 -1
  86. package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BbT2A1VX.cjs} +1 -1
  87. package/dist/{threePreview-fEcukbqP.js → threePreview-fvD6ZuLp.js} +102 -102
  88. package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-BslSyd85.js} +133 -133
  89. package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-DoaygXsI.cjs} +1 -1
  90. package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-CwkRm33h.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-DqFJ61VU.js} +8 -8
  92. package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-2EPeOu-l.js} +49 -49
  93. package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-Qy1rvMIK.cjs} +1 -1
  94. package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-BCN3cVBD.cjs} +1 -1
  95. package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-Bys_DQyR.js} +17 -17
  96. package/dist/{urdfTree-B9gafrR3.js → urdfTree-Dj3GmZU4.js} +1 -1
  97. package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-Dj_MX-rV.cjs} +1 -1
  98. package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-CfqOi5LU.js} +81 -81
  99. package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel-sLZ6i9PT.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/dist/index-8ddlDjHL.js +0 -455
  102. package/dist/index-BLGT4-wX.cjs +0 -1
  103. package/dist/index-CTGhzBZx.cjs +0 -1
  104. package/dist/index-D7Ao1GyZ.cjs +0 -1
  105. package/dist/index-DUqjjluX.cjs +0 -1
  106. package/dist/index-DczQgLYk.cjs +0 -13
  107. package/dist/index-NtRUaVwS.cjs +0 -1
  108. package/dist/index-aMvM6ti6.cjs +0 -1
  109. package/dist/index-kutaq0AT.cjs +0 -36
@@ -1 +1 @@
1
- "use strict";const i=require("vue"),I=require("./index-kutaq0AT.cjs"),y=require("./index-Dc6Q0f3F.cjs"),ce=require("./menuIndex-QovY60sY.cjs"),E=I.useModelComp(I.pinia),m=I.useUnit(I.pinia),k=I.useMenuState(I.pinia),{menus:ee,configMenu:x,activeMenuPath:_,cacheStructures:F}=I.storeToRefs(k),j=i.ref(!1),te=i.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=I.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=i.ref([]),R=i.ref([{label:"新建"}]),pe=i.computed(()=>[{key:"extraButton",contents:R.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=i.ref([]),T=i.ref({}),fe=i.ref({}),O=i.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),q=e=>{var t;J.value=e?(t=O.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):O.value},de=i.ref([{label:"查询"},{label:"重置"}]),ie=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,k.setCacheStructures({key:"contentConfig",data:r})}},ge=async e=>{var t;j.value=!0,h.value={...e,rootNode:ce.findRootNodeByPath(oe.value,e.path)},k.setCacheStructures(null),(e==null?void 0:e.level)===0?R.value.splice(0):(R.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await k.setConfigMenu(null),await ne(e==null?void 0:e.path),await K(e)},ve=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},ye=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=ve(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=I.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":q(null),await k.setConfigMenu(null);break;case"update":q(C.value),await k.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),be=async e=>{var t;T.value=e,await k.setConfigMenu({...T.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=O.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const he=i.ref(null),Ce=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=F.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);E.setItemData(a),k.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var M,D,N,A,P,o,B;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(B=(o=(P=(A=d==null?void 0:d.data)==null?void 0:A.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:B.pageData}});E.setItemData(a),k.setCacheStructures({key:t,data:a})}},Ie=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";k.setButtonTriggerType(t),await Ce(C.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=x.value),await k.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},K=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},H=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(H(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(H(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(H(s,"update",e))})),l},ke=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Te=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await i.nextTick();const a=(n=(u=(l=F.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=F.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),A=Z("contentConfig",D),P=[...N,...A];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const se=ke(w);re({...t,isNotInitial:!0,structureIds:se},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),I.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),K(h.value)})},Me=async()=>{var l,u,n,c,r;const e=JSON.parse(I.cloneDeep(JSON.stringify(F.value)));await i.nextTick();const t=g.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Te(e,t),T.value={},g.show=!1,await K(h.value)},De=()=>{g.show=!1},Se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:De,buttonValue:de,changeTrigger:be,changedRow:fe,clickNodeTrigger:ge,clickRowButton:ye,clickSubmitForm:Me,clickTrigger:Ie,dialogInfo:g,formatFormData:q,getInitialSubStructure:ne,getTableDataAsync:K,handleItemDataChange:ie,inputForm:T,menuPageData:pe,operatingForm:he,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:Se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;
1
+ "use strict";const i=require("vue"),I=require("./index-DiowIVZT.cjs"),y=require("./index-Dc6Q0f3F.cjs"),ce=require("./menuIndex-7DwfwtqQ.cjs"),E=I.useModelComp(I.pinia),m=I.useUnit(I.pinia),k=I.useMenuState(I.pinia),{menus:ee,configMenu:x,activeMenuPath:_,cacheStructures:F}=I.storeToRefs(k),j=i.ref(!1),te=i.computed(()=>{var e,t;return[{key:"extraButton",contents:[]},{key:"rowButton",contents:[{label:"修改"}]},{key:"header",contents:[{label:"菜单名称",prop:"title",isFormColHidden:!1},{label:"菜单类型",prop:"menuType",formType:"select",options:[{label:"系统菜单",value:"集团"},{label:"公司",value:"公司"}],isTableColHidden:!1,isFormColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:(t=(e=I.cloneDeep(ee.value))==null?void 0:e.map(l=>({...l,menuType:"系统菜单"})))==null?void 0:t.filter(l=>l.title!=="系统管理"&&l.title!=="平台管理")}]}),$=i.ref([]),R=i.ref([{label:"新建"}]),pe=i.computed(()=>[{key:"extraButton",contents:R.value},{key:"rowButton",contents:[{label:"修改"},{label:"删除"}]},{key:"header",contents:[{label:"操作类型",prop:"operateType",formType:"select",options:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标",prop:"operateIcon",formType:"inputPopover",value:""},{label:"操作触发事件",prop:"trigger",formType:"select",options:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"配置一:",prop:"dialogConfig",formType:"button",value:"弹窗内容",isTableColHidden:!0},{label:"配置二:",prop:"contentConfig",formType:"button",value:"模块内容",isTableColHidden:!0},{label:"继承配置:",prop:"allowInherit",formType:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1,isTableColHidden:!0},{label:"操作"}]},{key:"tableContents",contents:$.value}]),J=i.ref([]),T=i.ref({}),fe=i.ref({}),O=i.ref([{label:"菜单",prop:"path",isFormColHidden:!0,value:""},{label:"操作类型:",prop:"operateType",type:"select",contents:[{label:"新增",value:"新增"},{label:"编辑",value:"编辑"},{label:"删除",value:"删除"}],value:""},{label:"操作图标:",prop:"operateIcon",type:"inputPopover",value:""},{label:"操作触发事件:",prop:"trigger",type:"select",contents:[{label:"弹出弹窗",value:"openDialog"}],value:"openDialog"},{label:"生成的菜单图标:",prop:"menuIcon",type:"inputPopover",value:""},{label:"配置一:",prop:"dialogConfig",type:"button",value:"操作触发的弹窗结构"},{label:"配置二:",prop:"contentConfig",type:"button",value:"操作生成的模块结构",isFormColHidden:!1},{label:"",prop:"structureIds",type:"input",value:[],isFormColHidden:!0},{label:"继承配置:",prop:"allowInherit",type:"radio",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),q=e=>{var t;J.value=e?(t=O.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l:{...l,value:e?e[l==null?void 0:l.prop]:""}):O.value},de=i.ref([{label:"查询"},{label:"重置"}]),ie=async()=>{},le=e=>e.map(t=>t.childMenus&&t.childMenus.length>0?{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title,children:le(t.childMenus)}:{...t,value:t==null?void 0:t.title,label:t==null?void 0:t.title}),g=i.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=i.ref([]),C=i.ref({}),h=i.ref(null),ae=i.ref([]),oe=i.computed(()=>{var e;return(e=le(ee.value))==null?void 0:e.filter(t=>t.title!=="系统管理"&&t.title!=="平台管理")}),ne=async e=>{var l,u,n,c;const t=await y.getInsofDataApi({key:{type:"subStructure",systemKey:sessionStorage.getItem("systemKey"),pageKey:e,version:1}});if(((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result){const r=(c=(n=t.data)==null?void 0:n.result)==null?void 0:c.map(p=>{var f;return{id:p==null?void 0:p.id,...(f=p==null?void 0:p.value)==null?void 0:f.pageData}});ae.value=r,k.setCacheStructures({key:"contentConfig",data:r})}},ge=async e=>{var t;j.value=!0,h.value={...e,rootNode:ce.findRootNodeByPath(oe.value,e.path)},k.setCacheStructures(null),(e==null?void 0:e.level)===0?R.value.splice(0):(R.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await k.setConfigMenu(null),await ne(e==null?void 0:e.path),await K(e)},ve=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},ye=async(e,t)=>{var l,u;if(!h.value)return y.ElMessage.warning("请先选择菜单");if(g.type=ve(e),U.value=[],E.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=I.cloneDeep(t),g.type!=="delete"){switch(g.type){case"create":q(null),await k.setConfigMenu(null);break;case"update":q(C.value),await k.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await i.nextTick(),g.title=`【${g.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,g.show=!0}else await re(C.value,g.type)},ue=i.ref(!0),be=async e=>{var t;T.value=e,await k.setConfigMenu({...T.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};i.watch(()=>ue.value,async e=>{var t;await i.nextTick(),J.value=(t=O.value)==null?void 0:t.map(l=>l.prop==="dialogConfig"||l.prop==="contentConfig"||l.prop==="trigger"?l.prop==="contentConfig"?{...l,isFormColHidden:e}:l:{...l,value:T.value?T.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const he=i.ref(null),Ce=async(e,t)=>{var r,p,f,s,b;if(g.type==="create"){const a=(p=(r=F.value)==null?void 0:r.filter(d=>(d==null?void 0:d.key)===t))==null?void 0:p.flatMap(d=>d==null?void 0:d.data);E.setItemData(a),k.setCacheStructures({key:t,data:a})}if(console.log("getTriggerStructures1",e==null?void 0:e.structureIds,t),!(e!=null&&e.structureIds)||((f=e==null?void 0:e.structureIds)==null?void 0:f.length)===0)return;const l=(b=(s=e==null?void 0:e.structureIds)==null?void 0:s.filter(a=>(a==null?void 0:a.key)===t))==null?void 0:b.map(a=>a==null?void 0:a.id);let u=l==null?void 0:l.map(a=>{if(a)return y.getInsofDataApi({id:a})});const n=await Promise.all(u),c=n==null?void 0:n.every(a=>{var d;return((d=a==null?void 0:a.data)==null?void 0:d.code)===200});if(console.log("getTriggerStructures2",e==null?void 0:e.structureIds,t,n),c&&(n==null?void 0:n.length)>0){const a=n==null?void 0:n.map(d=>{var M,D,N,A,P,o,B;return{id:(N=(D=(M=d==null?void 0:d.data)==null?void 0:M.result)==null?void 0:D[0])==null?void 0:N.id,...(B=(o=(P=(A=d==null?void 0:d.data)==null?void 0:A.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:B.pageData}});E.setItemData(a),k.setCacheStructures({key:t,data:a})}},Ie=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";k.setButtonTriggerType(t),await Ce(C.value,t);let l;(n=T.value)!=null&&n.subMenus&&((c=T.value)==null?void 0:c.subMenus.length)>0&&(l=(r=U.value)==null?void 0:r.map(s=>({value:s})),l.unshift({value:(p=C.value)==null?void 0:p.title}));let u;g.type==="create"?u={...T.value,path:(f=h.value)==null?void 0:f.path}:g.type==="update"&&(u=x.value),await k.setConfigMenu(u),m.setSelectTitle(l),E.setIsEdit("edit")},K=async e=>{var l,u,n,c,r,p;const t=await y.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+(e==null?void 0:e.path),tableId:""}});((l=t==null?void 0:t.data)==null?void 0:l.code)===200&&(u=t.data)!=null&&u.result&&($.value=((c=(n=t.data)==null?void 0:n.result)==null?void 0:c.length)>0?(p=(r=t.data)==null?void 0:r.result)==null?void 0:p.map(f=>{var s;return{id:f==null?void 0:f.id,...(s=f==null?void 0:f.value)==null?void 0:s.tableData}}):[]),j.value=!1},H=async(e,t,l="contentConfig")=>{var u,n,c,r,p,f;try{let s,b;t==="create"?(s={key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((u=h.value)==null?void 0:u.path),type:"structure",rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,structureBelong:l,parentTable:"",version:1},value:{pageData:e}},b=y.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=y.updateInsofDataApi):t==="delete"&&(s={id:e},b=y.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw y.ElMessage.error("保存响应失败"),new Error("保存响应失败");const d=t==="create"?(p=a==null?void 0:a.data)==null?void 0:p.result:e==null?void 0:e.id;return{status:((f=a==null?void 0:a.data)==null?void 0:f.code)===200,data:{id:d,key:l}}}catch{y.ElMessage.error("保存响应失败")}},Y=(e,t)=>{var f,s,b;const l=(f=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:f.map(a=>a==null?void 0:a.id),u=t.filter(a=>!(l!=null&&l.includes(a))),n=l==null?void 0:l.filter(a=>!t.includes(a));let c=null,r=null,p=null;return c=[...u,...n].filter(a=>a),r=(s=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:s.filter(a=>!(a!=null&&a.id)),p=(b=e==null?void 0:e.flatMap(a=>a==null?void 0:a.data))==null?void 0:b.filter(a=>a==null?void 0:a.id).filter(a=>Object.keys(a).length>1),{deleteIds:c,createComps:r,updateComps:p}},Z=(e,t)=>{var u,n,c,r,p,f;let l=[];return((u=t==null?void 0:t.deleteIds)==null?void 0:u.length)>0&&((n=t==null?void 0:t.deleteIds)==null||n.forEach(s=>{l.push(H(s,"delete",e))})),((c=t==null?void 0:t.createComps)==null?void 0:c.length)>0&&((r=t==null?void 0:t.createComps)==null||r.forEach(s=>{l.push(H(s,"create",e))})),((p=t==null?void 0:t.updateComps)==null?void 0:p.length)>0&&((f=t==null?void 0:t.updateComps)==null||f.forEach(s=>{s!=null&&s.id&&l.push(H(s,"update",e))})),l},ke=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Te=async(e,t)=>{var l,u,n,c,r,p,f;try{const s=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="contentConfig"),b=e==null?void 0:e.filter(o=>(o==null?void 0:o.key)==="dialogConfig");await i.nextTick();const a=(n=(u=(l=F.value)==null?void 0:l.filter(o=>(o==null?void 0:o.key)==="dialogConfig"))==null?void 0:u.flatMap(o=>o==null?void 0:o.data))==null?void 0:n.map(o=>o==null?void 0:o.id);let d=(p=(r=(c=F.value)==null?void 0:c.filter(o=>(o==null?void 0:o.key)==="contentConfig"))==null?void 0:r.flatMap(o=>o==null?void 0:o.data))==null?void 0:p.map(o=>o==null?void 0:o.id);d=[...d,...(f=ae.value)==null?void 0:f.map(o=>o==null?void 0:o.id)];const M=Y(b,a),D=Y(s,d),N=Z("dialogConfig",M),A=Z("contentConfig",D),P=[...N,...A];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(v=>v.status)))return;let w=(z=o==null?void 0:o.flatMap(v=>v==null?void 0:v.data))==null?void 0:z.filter(v=>(v==null?void 0:v.id)!==null&&(v==null?void 0:v.id)!==void 0);if(((G=M==null?void 0:M.updateComps)==null?void 0:G.length)===0&&g.type==="update"){const v=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(S=>(S==null?void 0:S.key)==="dialogConfig");w=[...w,...v]}if(((Q=D==null?void 0:D.updateComps)==null?void 0:Q.length)===0&&g.type==="update"){const v=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(S=>(S==null?void 0:S.key)==="contentConfig");w=[...w,...v]}const se=ke(w);re({...t,isNotInitial:!0,structureIds:se},g.type)}).catch(o=>{y.ElMessage.error(o)})}catch(s){throw y.ElMessage.error(s),new Error(s)}},re=async(e,t)=>{var n,c;let l,u;t==="create"?(l={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:_.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=y.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=y.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=y.batchDeleteInsofDataApi),I.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&y.ElMessage.success("响应成功"),K(h.value)})},Me=async()=>{var l,u,n,c,r;const e=JSON.parse(I.cloneDeep(JSON.stringify(F.value)));await i.nextTick();const t=g.type==="create"?{...x.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...x.value,rootNodePath:(c=(n=h.value)==null?void 0:n.rootNode)==null?void 0:c.path,id:(r=C.value)==null?void 0:r.id};await Te(e,t),T.value={},g.show=!1,await K(h.value)},De=()=>{g.show=!1},Se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:De,buttonValue:de,changeTrigger:be,changedRow:fe,clickNodeTrigger:ge,clickRowButton:ye,clickSubmitForm:Me,clickTrigger:Ie,dialogInfo:g,formatFormData:q,getInitialSubStructure:ne,getTableDataAsync:K,handleItemDataChange:ie,inputForm:T,menuPageData:pe,operatingForm:he,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:Se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;
@@ -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-bbJ9Y_oO.js";
3
- import { c as s } from "./index-CaV5K0t4.js";
2
+ import { s as b } from "./index-B2h_bCtP.js";
3
+ import { c as s } from "./index-Cn5h5u4P.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;
@@ -1 +1 @@
1
- "use strict";const f=require("./index-kutaq0AT.cjs"),E=require("vue"),S=require("./index-H7e3Aze4.cjs"),b=t=>{var u,o;if(Array.isArray(Object.keys(t))&&((u=Object.keys(t))==null?void 0:u.length)>0){let a=[];return(o=Object.entries(t))==null||o.forEach(([l,r])=>{var i,c;let s=[];if(s.push(l),((i=Object.keys(r))==null?void 0:i.length)>0){let e=[];(c=b(r))==null||c.forEach(n=>{e.push(n)}),e==null||e.forEach(n=>{s.push(n)})}a.push(s)}),a}},g=(t,u)=>{var a;let o=u;return Array.isArray(Object.keys(t))&&((a=Object.entries(t))==null||a.forEach(([l,r])=>{let s=[l];if(typeof r=="object"&&r!==null){let i=b(r);i==null||i.forEach(c=>{s.push(c)})}o.push(s)})),o},A=t=>{const u={};return t.forEach(a=>{const l=a.split("/");let r=u;l.forEach(s=>{r[s]||(r[s]={}),r=r[s]})}),g(u,[])},y=E.ref(!1),m=E.ref(!1),d=f.useLoginState(f.pinia),{loginUserInfo:h}=f.storeToRefs(d),j=f.useMenuState(),_=async()=>{var u,o,a,l,r,s,i;let t=await S.getPageDataApi({platId:parseInt((u=h==null?void 0:h.value)==null?void 0:u.plat_id),pageName:"menu"});if(((a=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:a.length)>0){let c=(i=(s=(r=(l=t==null?void 0:t.data)==null?void 0:l.result)==null?void 0:r.filter(e=>{var n,p;return((p=e==null?void 0:e.object_name)==null?void 0:p[((n=e==null?void 0:e.object_name)==null?void 0:n.length)-1])!=="/"&&(e==null?void 0:e.is_show)}))==null?void 0:s.sort((e,n)=>(e==null?void 0:e.object_id)-(n==null?void 0:n.object_id)))==null?void 0:i.map(e=>{var n;return(n=e==null?void 0:e.object_name)==null?void 0:n.replaceAll("**^","/")});c=[...new Set(c)],c=A(c),j.setRawMenus(c??[]),y.value=!0,m.value=!0}else j.setRawMenus([]);return{menuExist:y.value,structureExist:m.value}};exports.menuArray=A;exports.verifyStructureDataToStore=_;
1
+ "use strict";const f=require("./index-DiowIVZT.cjs"),E=require("vue"),S=require("./index-H7e3Aze4.cjs"),b=t=>{var u,o;if(Array.isArray(Object.keys(t))&&((u=Object.keys(t))==null?void 0:u.length)>0){let a=[];return(o=Object.entries(t))==null||o.forEach(([l,r])=>{var i,c;let s=[];if(s.push(l),((i=Object.keys(r))==null?void 0:i.length)>0){let e=[];(c=b(r))==null||c.forEach(n=>{e.push(n)}),e==null||e.forEach(n=>{s.push(n)})}a.push(s)}),a}},g=(t,u)=>{var a;let o=u;return Array.isArray(Object.keys(t))&&((a=Object.entries(t))==null||a.forEach(([l,r])=>{let s=[l];if(typeof r=="object"&&r!==null){let i=b(r);i==null||i.forEach(c=>{s.push(c)})}o.push(s)})),o},A=t=>{const u={};return t.forEach(a=>{const l=a.split("/");let r=u;l.forEach(s=>{r[s]||(r[s]={}),r=r[s]})}),g(u,[])},y=E.ref(!1),m=E.ref(!1),d=f.useLoginState(f.pinia),{loginUserInfo:h}=f.storeToRefs(d),j=f.useMenuState(),_=async()=>{var u,o,a,l,r,s,i;let t=await S.getPageDataApi({platId:parseInt((u=h==null?void 0:h.value)==null?void 0:u.plat_id),pageName:"menu"});if(((a=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:a.length)>0){let c=(i=(s=(r=(l=t==null?void 0:t.data)==null?void 0:l.result)==null?void 0:r.filter(e=>{var n,p;return((p=e==null?void 0:e.object_name)==null?void 0:p[((n=e==null?void 0:e.object_name)==null?void 0:n.length)-1])!=="/"&&(e==null?void 0:e.is_show)}))==null?void 0:s.sort((e,n)=>(e==null?void 0:e.object_id)-(n==null?void 0:n.object_id)))==null?void 0:i.map(e=>{var n;return(n=e==null?void 0:e.object_name)==null?void 0:n.replaceAll("**^","/")});c=[...new Set(c)],c=A(c),j.setRawMenus(c??[]),y.value=!0,m.value=!0}else j.setRawMenus([]);return{menuExist:y.value,structureExist:m.value}};exports.menuArray=A;exports.verifyStructureDataToStore=_;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),I=require("./index-DNQnpERW.cjs"),B=require("./index-DiowIVZT.cjs"),x=require("./index-Dc6Q0f3F.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-BxNotDao.cjs"),_=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:w}){const s=i,u=w,m=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),h=e.ref(""),y=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{h.value=o?m.value+"/"+o:""},{immediate:!0});const S=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});y.value=f}catch(o){throw new Error(o)}},k=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(h.value=m.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},b=async()=>{try{if(!h.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I.Avatar,{avatarUrl:h.value??"",avatarBlob:y.value,size:i.size,onClickAvatar:S,onSubmitImage:k,onDeleteImage:b,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=C._export_sfc(E,[["__scopeId","data-v-e466982c"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:w}){const s=i,u=e.ref({}),m=e.ref([]),d=w,h=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},y=()=>{u.value.dialogShow=!1,d("beforeDestroy")},S=e.computed(()=>"http://222.92.178.198:62001"),k=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},b=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){x.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=k(t);n.append("file",c,"image.png"),b(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),b(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,m.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:y,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,p;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:S.value+"/"+((p=i.userInfo)==null?void 0:p.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,a=>{var p;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(p=a.label)!=null&&p.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>h(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-D6UEkdRE.cjs"),r=require("./index-DczQgLYk.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-C1HjpqRi.cjs"),r=require("./index-BdXsBH1P.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, createElementVNode as t, withDirectives as g, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
- import { S as I, t as x } from "./index-DpirbR20.js";
3
- import { s as w, a as L } from "./index-CIoHy7Dg.js";
2
+ import { S as I, t as x } from "./index-Bjm0BPhX.js";
3
+ import { s as w, a as L } from "./index-ZhE5DWe_.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js";
6
- import { f as E } from "./index-DaX27S_0.js";
7
- import { b as N, s as U } from "./index-CaV5K0t4.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Ctc5O7Al.js";
6
+ import { f as E } from "./index-BxcjTlnl.js";
7
+ import { b as N, s as U } from "./index-Cn5h5u4P.js";
8
8
  import "./index-WLdc1goT.js";
9
9
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({