ss-component-new 1.2.6 → 1.2.7

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 (128) hide show
  1. package/dist/{OrbitControls-DA4VpOM_.js → OrbitControls-C0QRmW6_.js} +1 -1
  2. package/dist/{STLLoader-DmGTF0Nv.js → STLLoader-CiUjaQtA.js} +1 -1
  3. package/dist/{animationData-GqECkAbz.js → animationData-CMKGpOzN.js} +14 -14
  4. package/dist/animationData-CjOlng3t.cjs +1 -0
  5. package/dist/array-BI6c3lN7.cjs +11 -0
  6. package/dist/array-zuPH84bL.js +1142 -0
  7. package/dist/{iconfont-ljBfzBSE.js → iconfont-pt17sMx3.js} +2 -2
  8. package/dist/{index-C5CKSB0e.cjs → index-1aEh3d97.cjs} +1 -1
  9. package/dist/{index-BOJUyAaV.cjs → index-1z9RrjZc.cjs} +1 -1
  10. package/dist/{index-DJGsDpDp.js → index-Ah-8x9yf.js} +13 -13
  11. package/dist/{index-DPBmAgEA.cjs → index-B3bZrnX5.cjs} +1 -1
  12. package/dist/{index-HvKjB6_P.js → index-B5Qn4jv8.js} +5 -5
  13. package/dist/{index-67QO-qDa.cjs → index-B7PZ70Ke.cjs} +1 -1
  14. package/dist/{index-CRrAiL5l.js → index-BPOERPtt.js} +4 -4
  15. package/dist/{index-DcUUpSE1.cjs → index-BQ7is--r.cjs} +1 -1
  16. package/dist/{index-BpR7F1Fp.cjs → index-BQdJqnJf.cjs} +1 -1
  17. package/dist/{index-CBuqdsPh.js → index-BX3CpqTk.js} +4 -4
  18. package/dist/{index-DPWc4No_.js → index-B_HoaLPL.js} +2 -2
  19. package/dist/{index-B7hLDNQ6.cjs → index-BaOQV1JK.cjs} +1 -1
  20. package/dist/{index-BNvpuVyw.cjs → index-Bc20prdj.cjs} +1 -1
  21. package/dist/index-BhLnI2fF.cjs +1 -0
  22. package/dist/{index-Bs2K1FVH.js → index-BnNuMzEv.js} +2 -2
  23. package/dist/{index-CArSUfnV.js → index-BniAk5Lo.js} +1010 -1013
  24. package/dist/{index-_66uQhcl.js → index-BoHTgzWr.js} +2129 -2122
  25. package/dist/{index--rLSLEk3.js → index-Br5wm1ow.js} +24 -24
  26. package/dist/{index-mtuIEfrj.cjs → index-BxL4p0ej.cjs} +1 -1
  27. package/dist/{index-8yRiF_z8.cjs → index-BzOBvH4x.cjs} +1 -1
  28. package/dist/{index-D9oqICYV.cjs → index-C2WJz0OJ.cjs} +1 -1
  29. package/dist/{index-DVmoPvzr.cjs → index-C2aGGJxk.cjs} +1 -1
  30. package/dist/{index-DGepdvRW.js → index-CHksmnYA.js} +2 -2
  31. package/dist/{index-CMCrQ36H.js → index-CJW7oNUN.js} +5 -5
  32. package/dist/index-CJXXl1EN.cjs +1 -0
  33. package/dist/{index-CTkF2kl_.js → index-CKHNyMzP.js} +1 -1
  34. package/dist/{index-DZ8a7BZ1.cjs → index-CQAvn30B.cjs} +1 -1
  35. package/dist/{index-C8UOMPgt.js → index-CQzgMbjC.js} +2 -2
  36. package/dist/{index-LADv0t0E.js → index-CUUjf1P3.js} +12 -12
  37. package/dist/{index-CedgKpsz.cjs → index-CW99kzgY.cjs} +1 -1
  38. package/dist/{index-BHJ-tVLT.cjs → index-CXbvmuYZ.cjs} +1 -1
  39. package/dist/{index-BsfJJu0R.js → index-CXchqN8w.js} +6 -6
  40. package/dist/{index-BaRkv5oc.cjs → index-Cia5yg2S.cjs} +1 -1
  41. package/dist/{index-tttYIzsn.cjs → index-CjI5pDiU.cjs} +1 -1
  42. package/dist/{index-D-WcrLQv.js → index-CkCmJLPU.js} +4 -4
  43. package/dist/{index-C1FOuBuy.js → index-CvrTrN91.js} +1 -1
  44. package/dist/{index-DSchKIyh.cjs → index-CxnH4vfV.cjs} +1 -1
  45. package/dist/{index-D6mwkqWY.cjs → index-Czw_p2Ax.cjs} +13 -13
  46. package/dist/index-D46pfmEc.js +2567 -0
  47. package/dist/{index-g4qw0jRy.js → index-DDNAWKqD.js} +6 -6
  48. package/dist/{index-CA-FC_OL.cjs → index-DKHaw4wr.cjs} +1 -1
  49. package/dist/{index-CbA74tCL.js → index-DLN_fbq6.js} +4 -4
  50. package/dist/{index-DWs7-g1h.cjs → index-DauH8AzR.cjs} +1 -1
  51. package/dist/{index-DV_ZZQBO.js → index-DbzvXPKu.js} +176 -176
  52. package/dist/{index-9zEdW6xv.js → index-DsnxblRp.js} +6 -6
  53. package/dist/{index-_uyv24Pt.cjs → index-Duqrg0DV.cjs} +1 -1
  54. package/dist/{index-FK1YYpjN.cjs → index-Dv_9EftF.cjs} +1 -1
  55. package/dist/{index-B14iwpkN.cjs → index-Dx63Z3PG.cjs} +1 -1
  56. package/dist/index-DxukQK2k.cjs +1 -0
  57. package/dist/index-Dy3FE211.cjs +1 -0
  58. package/dist/{index-CRj9VM12.js → index-HZr3I0-O.js} +6 -6
  59. package/dist/{index-CbDu4gfZ.js → index-IknA4u4L.js} +5 -5
  60. package/dist/{index-DGi-ANHr.js → index-Kbl8xHWJ.js} +7 -7
  61. package/dist/{index-BMMYAqF1.js → index-MqvNXMd6.js} +1 -1
  62. package/dist/{index-Cm3z0Vmi.cjs → index-PBT5kNaR.cjs} +1 -1
  63. package/dist/{index-CShBWCYm.js → index-UDddsXT4.js} +1 -1
  64. package/dist/{index-Bw_JtuzR.js → index-UuJKyKlu.js} +3 -3
  65. package/dist/index-W6FccWpW.js +7210 -0
  66. package/dist/index-d3F4mRMM.js +3370 -0
  67. package/dist/{index-BNOx3XL5.js → index-fnqbVNnP.js} +1 -1
  68. package/dist/{index-CZaBF851.cjs → index-hseXzBbE.cjs} +1 -1
  69. package/dist/{index-87kRWJv8.cjs → index-k3lVcyGc.cjs} +1 -1
  70. package/dist/{index-DvpVQvAe.js → index-sBAb1SLC.js} +2 -2
  71. package/dist/{index-BYUPvuvs.cjs → index-tEinx-qZ.cjs} +1 -1
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DULpc85o.js} +10383 -10362
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs} +123 -123
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D2VLEzGB.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CtqR5lQb.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D58IzjOR.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-DuybmJnl.js} +6 -6
  76. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang--PcXwjiH.cjs +56 -0
  77. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-C-NVC3BN.js +34117 -0
  78. package/dist/index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs +32 -0
  79. package/dist/{index.vue_vue_type_style_index_1_lang-H_pReDxj.cjs → index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs} +1 -1
  80. package/dist/{index.vue_vue_type_style_index_1_lang-hBa3nAgx.js → index.vue_vue_type_style_index_1_lang-D909xoIu.js} +5 -5
  81. package/dist/index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js +8126 -0
  82. package/dist/{isString-CELwppr9.cjs → isString-BmAegMGI.cjs} +1 -1
  83. package/dist/{isString--ZVOCy4V.js → isString-CZMLuMzD.js} +1 -1
  84. package/dist/isUndefined-ClRzgwTy.cjs +1 -0
  85. package/dist/isUndefined-chfCDxUU.js +84 -0
  86. package/dist/{main-C6Iw-pcH.cjs → main-CSuKoOz4.cjs} +1 -1
  87. package/dist/{main-CygliYyN.js → main-D6-NZoCw.js} +5 -5
  88. package/dist/obj/model.mtl +42 -0
  89. package/dist/obj/model.obj +26110 -0
  90. package/dist/ss-component.cjs +1 -1
  91. package/dist/ss-component.css +2 -2
  92. package/dist/ss-component.js +11 -11
  93. package/dist/ss-component2.cjs +1 -1
  94. package/dist/ss-component2.js +12 -12
  95. package/dist/{three-viewport-gizmo-BHznJ6W3.js → three-viewport-gizmo-CkQ98n-T.js} +2 -2
  96. package/dist/{threeLatheView-DzpPpdDr.js → threeLatheView-BmVBnC8n.js} +4 -4
  97. package/dist/{threeLatheView-CdUoB0Te.cjs → threeLatheView-CZdorls1.cjs} +1 -1
  98. package/dist/{threeModel-BUCLJlE5.cjs → threeModel-CIXJ7OQA.cjs} +1 -1
  99. package/dist/{threeModel-BfMMeZCc.js → threeModel-CPolYsAh.js} +5 -5
  100. package/dist/{threePreview-BEqzg370.js → threePreview-CYX5wKoL.js} +4 -4
  101. package/dist/{threePreview-C-JW_pcY.cjs → threePreview-C_mY_TBC.cjs} +1 -1
  102. package/dist/threeSceneView-CUBwHIv3.js +1472 -0
  103. package/dist/threeSceneView-C_0lI1AI.cjs +5 -0
  104. package/dist/{threeSceneViewForCPMPIP-Bexwqkry.js → threeSceneViewForCPMPIP-BHhBMxdP.js} +86 -85
  105. package/dist/{threeSceneViewForCPMPIP-DwLWGNUd.cjs → threeSceneViewForCPMPIP-D4KdOIxO.cjs} +3 -3
  106. package/dist/{threeViewerHost-CTjd2V1D.js → threeViewerHost-Cbz8Cw7s.js} +78 -65
  107. package/dist/threeViewerHost-DOwyFQG3.cjs +1 -0
  108. package/dist/{useRayCaster-D0_7oJan.js → useRayCaster-CF6KDZ1R.js} +5 -5
  109. package/dist/useRayCaster-CqS7g8Ix.cjs +1 -0
  110. package/package.json +1 -1
  111. package/public/obj/model.mtl +42 -0
  112. package/public/obj/model.obj +26110 -0
  113. package/dist/animationData-B0K2ghu6.cjs +0 -1
  114. package/dist/array-D65aMM6H.js +0 -1207
  115. package/dist/array-DMPAgNcb.cjs +0 -11
  116. package/dist/index-8Dyi4QCI.js +0 -7293
  117. package/dist/index-BEoEUXZe.js +0 -2643
  118. package/dist/index-BsM9qdbC.cjs +0 -1
  119. package/dist/index-CePZE-QA.cjs +0 -1
  120. package/dist/index-D8510-YQ.cjs +0 -1
  121. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BnNwKutS.cjs +0 -56
  122. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CJCvJvBM.js +0 -37436
  123. package/dist/index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js +0 -7804
  124. package/dist/index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs +0 -32
  125. package/dist/threeSceneView-BTsG2QJg.cjs +0 -5
  126. package/dist/threeSceneView-DV5dsTZZ.js +0 -1471
  127. package/dist/threeViewerHost-CRqcYbJE.cjs +0 -1
  128. package/dist/useRayCaster-DN56HpNP.cjs +0 -1
@@ -1,11 +1,11 @@
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-CbDu4gfZ.js";
3
- import { s as w, a as L } from "./index-CBuqdsPh.js";
2
+ import { S as I, t as x } from "./index-IknA4u4L.js";
3
+ import { s as w, a as L } from "./index-BX3CpqTk.js";
4
4
  import "./index-BHtNKL1L.js";
5
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DIMJusrg.js";
6
- import { d as E } from "./index-_66uQhcl.js";
7
- import "./index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js";
8
- import { u as N, s as U } from "./index-DV_ZZQBO.js";
5
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DULpc85o.js";
6
+ import { d as E } from "./index-BoHTgzWr.js";
7
+ import "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
8
+ import { u as N, s as U } from "./index-DbzvXPKu.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({
11
11
  __name: "index",
@@ -1 +1 @@
1
- "use strict";const g=require("vue"),O=require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs"),i=require("./index-BOJUyAaV.cjs"),pe=require("./index-CePZE-QA.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:B,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.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!=="平台管理")}]}),$=g.ref([]),H=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:H.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=g.ref([]),k=g.ref({}),de=g.ref({}),_=g.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}]),R=e=>{var t;J.value=e?(t=_.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]:""}):_.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=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}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.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 i.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,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=_.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:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.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);A.setItemData(a),I.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 i.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 T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.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;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.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},x=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:q.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=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.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{i.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(x(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(x(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(x(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=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 g.nextTick();const a=(n=(u=(l=E.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=E.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 T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.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:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.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 Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
1
+ "use strict";const g=require("vue"),O=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),i=require("./index-1z9RrjZc.cjs"),pe=require("./index-BhLnI2fF.cjs"),A=O.useModelComp(i.pinia),m=pe.useUnit(i.pinia),I=O.useMenuState(i.pinia),{menus:ee,configMenu:B,activeMenuPath:q,cacheStructures:E}=i.storeToRefs(I),j=g.ref(!1),te=g.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!=="平台管理")}]}),$=g.ref([]),H=g.ref([{label:"新建"}]),fe=g.computed(()=>[{key:"extraButton",contents:H.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=g.ref([]),k=g.ref({}),de=g.ref({}),_=g.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}]),R=e=>{var t;J.value=e?(t=_.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]:""}):_.value},ie=g.ref([{label:"查询"},{label:"重置"}]),ge=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}),v=g.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),U=g.ref([]),C=g.ref({}),h=g.ref(null),ae=g.ref([]),oe=g.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 i.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,I.setCacheStructures({key:"contentConfig",data:r})}},ve=async e=>{var t;j.value=!0,h.value={...e,rootNode:i.findRootNodeByPath(oe.value,e.path)},I.setCacheStructures(null),(e==null?void 0:e.level)===0?H.value.splice(0):(H.value=[{label:"新建"}],U.value=(t=e==null?void 0:e.path)==null?void 0:t.split("/")),await I.setConfigMenu(null),await ne(e==null?void 0:e.path),await F(e)},ye=e=>{switch(e){case"新建":return"create";case"修改":return"update";case"删除":return"delete"}},be=async(e,t)=>{var l,u;if(!h.value)return i.ElMessage.warning("请先选择菜单");if(v.type=ye(e),U.value=[],A.setSubmitCurStructure(!1),m.setSelectTitle([]),C.value=i.cloneDeep(t),v.type!=="delete"){switch(v.type){case"create":R(null),await I.setConfigMenu(null);break;case"update":R(C.value),await I.setConfigMenu(C.value),console.log("clickRowButton",C.value);break}await g.nextTick(),v.title=`【${v.type==="create"?(l=h.value)==null?void 0:l.path:(u=C.value)==null?void 0:u.path}】菜单配置${e}`,v.show=!0}else await re(C.value,v.type)},ue=g.ref(!0),he=async e=>{var t;k.value=e,await I.setConfigMenu({...k.value,path:(t=h.value)==null?void 0:t.path}),ue.value=(e==null?void 0:e.operateType)!=="新增"};g.watch(()=>ue.value,async e=>{var t;await g.nextTick(),J.value=(t=_.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:k.value?k.value[l==null?void 0:l.prop]:""})},{immediate:!0,deep:!0});const Ce=g.ref(null),Ie=async(e,t)=>{var r,p,f,s,b;if(v.type==="create"){const a=(p=(r=E.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);A.setItemData(a),I.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 i.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 T,M,w,N,P,o,K;return{id:(w=(M=(T=d==null?void 0:d.data)==null?void 0:T.result)==null?void 0:M[0])==null?void 0:w.id,...(K=(o=(P=(N=d==null?void 0:d.data)==null?void 0:N.result)==null?void 0:P[0])==null?void 0:o.value)==null?void 0:K.pageData}});A.setItemData(a),I.setCacheStructures({key:t,data:a})}},ke=async e=>{var n,c,r,p,f;const t=e==="操作触发的弹窗结构"?"dialogConfig":"contentConfig";I.setButtonTriggerType(t),await Ie(C.value,t);let l;(n=k.value)!=null&&n.subMenus&&((c=k.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;v.type==="create"?u={...k.value,path:(f=h.value)==null?void 0:f.path}:v.type==="update"&&(u=B.value),await I.setConfigMenu(u),m.setSelectTitle(l),A.setIsEdit("edit")},F=async e=>{var l,u,n,c,r,p;const t=await i.getInsofDataApi({key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:q.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},x=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:q.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=i.createInsofDataApi):t==="update"?(s={id:e==null?void 0:e.id,value:{pageData:e}},b=i.updateInsofDataApi):t==="delete"&&(s={id:e},b=i.deleteInsofDataApi);const a=await b(s);if(((r=a==null?void 0:a.data)==null?void 0:r.code)!==200)throw i.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{i.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(x(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(x(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(x(s,"update",e))})),l},Te=e=>{const t=new Map;return e.forEach(l=>{t.set(l.id,l)}),Array.from(t.values())},Me=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 g.nextTick();const a=(n=(u=(l=E.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=E.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 T=Y(b,a),M=Y(s,d),w=Z("dialogConfig",T),N=Z("contentConfig",M),P=[...w,...N];await Promise.all(P).then(o=>{var z,G,L,V,Q,W,X;if(!(o==null?void 0:o.every(y=>y.status)))return;let S=(z=o==null?void 0:o.flatMap(y=>y==null?void 0:y.data))==null?void 0:z.filter(y=>(y==null?void 0:y.id)!==null&&(y==null?void 0:y.id)!==void 0);if(((G=T==null?void 0:T.updateComps)==null?void 0:G.length)===0&&v.type==="update"){const y=(V=(L=C.value)==null?void 0:L.structureIds)==null?void 0:V.filter(D=>(D==null?void 0:D.key)==="dialogConfig");S=[...S,...y]}if(((Q=M==null?void 0:M.updateComps)==null?void 0:Q.length)===0&&v.type==="update"){const y=(X=(W=C.value)==null?void 0:W.structureIds)==null?void 0:X.filter(D=>(D==null?void 0:D.key)==="contentConfig");S=[...S,...y]}const ce=Te(S);re({...t,isNotInitial:!0,structureIds:ce},v.type)}).catch(o=>{i.ElMessage.error(o)})}catch(s){throw i.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:q.value+"/"+((n=h.value)==null?void 0:n.path),tableId:"",rootNodePath:e==null?void 0:e.rootNodePath},value:{tableData:e}},u=i.createInsofDataApi):t==="update"?(l={id:e==null?void 0:e.id,value:{tableData:e}},u=i.updateInsofDataApi):t==="delete"&&(l={ids:[e.id,...(c=e==null?void 0:e.structureIds)==null?void 0:c.map(r=>r.id)]},u=i.batchDeleteInsofDataApi),O.handleSubmitAsync(u,l,t).then(r=>{t==="create"&&$.value.push({...e,id:r}),t&&r&&i.ElMessage.success("响应成功"),F(h.value)})},De=async()=>{var l,u,n,c,r;const e=JSON.parse(i.cloneDeep(JSON.stringify(E.value)));await g.nextTick();const t=v.type==="create"?{...B.value,rootNodePath:(u=(l=h.value)==null?void 0:l.rootNode)==null?void 0:u.path}:{...B.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 Me(e,t),k.value={},v.show=!1,await F(h.value)},Se=()=>{v.show=!1},se={comp:"Group",name:"/平台管理/菜单管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:te.value,name:""}]}]},we=Object.freeze(Object.defineProperty({__proto__:null,beforeDialogDestroy:Se,buttonValue:ie,changeTrigger:he,changedRow:de,clickNodeTrigger:ve,clickRowButton:be,clickSubmitForm:De,clickTrigger:ke,dialogInfo:v,formatFormData:R,getInitialSubStructure:ne,getTableDataAsync:F,handleItemDataChange:ge,inputForm:k,menuPageData:fe,operatingForm:Ce,pageData:te,renderFormData:J,tableLoading:j,tempMenuPageData:se,treeData:oe},Symbol.toStringTag,{value:"Module"}));exports.State=we;exports.tempMenuPageData=se;
@@ -1,6 +1,6 @@
1
1
  import { ref as n, watch as b } from "vue";
2
- import { g as y, s as d } from "./index-DV_ZZQBO.js";
3
- import { ax as g, av as D, a as m } from "./index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js";
2
+ import { g as y, s as d } from "./index-DbzvXPKu.js";
3
+ import { au as g, as as D, a as m } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
4
4
  const f = m(), { itemData: i } = d(f), c = n(0), h = n([
5
5
  {
6
6
  label: "机构名称",
@@ -124,7 +124,7 @@ const f = m(), { itemData: i } = d(f), c = n(0), h = n([
124
124
  id: a.id
125
125
  };
126
126
  });
127
- }, v = {
127
+ }, B = {
128
128
  comp: "Group",
129
129
  name: "/系统管理/部门管理",
130
130
  compData: [
@@ -154,7 +154,7 @@ const j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
154
154
  pageData: s,
155
155
  queryFormData: h,
156
156
  structureId: c,
157
- tempDeptPageData: v
157
+ tempDeptPageData: B
158
158
  }, Symbol.toStringTag, { value: "Module" }));
159
159
  export {
160
160
  j as S
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-D8510-YQ.cjs");const h=require("./index-BOJUyAaV.cjs");require("./array-DMPAgNcb.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-D2VLEzGB.cjs");require("./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BnNwKutS.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BSOYWm_U.cjs");require("./three-viewport-gizmo-BV37JzRa.cjs");require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs");require("./index.vue_vue_type_style_index_1_lang-H_pReDxj.cjs");require("./index-B7hLDNQ6.cjs");require("vue-router");require("./index-CedgKpsz.cjs");require("./index-_uyv24Pt.cjs");const S={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,s=h.useLoginState();n.watch(()=>e==null?void 0:e.systemKey,t=>{s.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.systemInfo,t=>{s.setSystemInfo(t)},{immediate:!0});const l=()=>{i("buildContent")},m=()=>{i("setLoginInfo")},y=t=>{i("openThreeBuild",t)},f=t=>{i("threeData",t)},d=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,u=16,w=t/r,g=u*w;document.documentElement.style.fontSize=`${g}px`};return n.onMounted(()=>{d(),window.addEventListener("resize",d)}),n.onUnmounted(()=>{window.removeEventListener("resize",d)}),(t,r)=>{const u=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(u,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,systemInfo:o.systemInfo,"old-systemKey":o.systemKey,onBuildContent:l,onOpenThreeBuild:y,pageKey:o.pageKey,onThreeData:f,onSetLoginInfo:m},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}},q=C._export_sfc(S,[["__scopeId","data-v-8729380f"]]);exports.default=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-CJXXl1EN.cjs");const h=require("./index-1z9RrjZc.cjs");require("./array-BI6c3lN7.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-CtqR5lQb.cjs");require("./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang--PcXwjiH.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs");require("./three-viewport-gizmo-BV37JzRa.cjs");require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs");require("./index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs");require("./index-BaOQV1JK.cjs");require("vue-router");require("./index-CW99kzgY.cjs");require("./index-Duqrg0DV.cjs");const S={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,s=h.useLoginState();n.watch(()=>e==null?void 0:e.systemKey,t=>{s.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.systemInfo,t=>{s.setSystemInfo(t)},{immediate:!0});const l=()=>{i("buildContent")},m=()=>{i("setLoginInfo")},y=t=>{i("openThreeBuild",t)},f=t=>{i("threeData",t)},d=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,u=16,w=t/r,g=u*w;document.documentElement.style.fontSize=`${g}px`};return n.onMounted(()=>{d(),window.addEventListener("resize",d)}),n.onUnmounted(()=>{window.removeEventListener("resize",d)}),(t,r)=>{const u=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(u,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,systemInfo:o.systemInfo,"old-systemKey":o.systemKey,onBuildContent:l,onOpenThreeBuild:y,pageKey:o.pageKey,onThreeData:f,onSetLoginInfo:m},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}},q=C._export_sfc(S,[["__scopeId","data-v-8729380f"]]);exports.default=q;
@@ -1,4 +1,4 @@
1
- import { getCurrentInstance as be, inject as Ce, ref as L, computed as D, unref as V, readonly as ln, getCurrentScope as cn, onScopeDispose as _n, onMounted as pn, nextTick as s2, shallowRef as No, watchEffect as Fo, watch as Q, customRef as $o, isRef as je, warn as Uo, provide as jo, defineComponent as c, createElementBlock as _, openBlock as i, mergeProps as qo, renderSlot as Mt, createElementVNode as u, normalizeClass as ze, createVNode as _0, Transition as fn, withCtx as Gt, withDirectives as dn, normalizeStyle as vn, createTextVNode as Ko, toDisplayString as hn, vShow as mn, shallowReactive as Go, createBlock as xt, createCommentVNode as jt, resolveDynamicComponent as Wo, Fragment as Jo, withModifiers as Yo, isVNode as gn, render as W0, effectScope as wn, markRaw as Re, toRaw as ot, isReactive as d2, toRef as Wt, hasInjectionContext as Zo, reactive as Xo, toRefs as J0 } from "vue";
1
+ import { getCurrentInstance as be, inject as Ce, ref as L, computed as D, unref as V, shallowRef as No, watchEffect as Fo, readonly as ln, getCurrentScope as cn, onScopeDispose as _n, onMounted as pn, nextTick as s2, watch as Q, customRef as $o, isRef as je, warn as Uo, provide as jo, defineComponent as c, createElementBlock as _, openBlock as i, mergeProps as qo, renderSlot as Mt, createElementVNode as u, normalizeClass as ze, createVNode as _0, Transition as fn, withCtx as Gt, withDirectives as dn, normalizeStyle as vn, createTextVNode as Ko, toDisplayString as hn, vShow as mn, shallowReactive as Go, createBlock as xt, createCommentVNode as jt, resolveDynamicComponent as Wo, Fragment as Jo, withModifiers as Yo, isVNode as gn, render as W0, effectScope as wn, markRaw as Re, toRaw as ot, isReactive as d2, toRef as Wt, hasInjectionContext as Zo, reactive as Xo, toRefs as J0 } from "vue";
2
2
  var yn = typeof global == "object" && global && global.Object === Object && global, Qo = typeof self == "object" && self && self.Object === Object && self, we = yn || Qo || Function("return this")(), He = we.Symbol, xn = Object.prototype, e4 = xn.hasOwnProperty, t4 = xn.toString, Ct = He ? He.toStringTag : void 0;
3
3
  function r4(e) {
4
4
  var t = e4.call(e, Ct), r = e[Ct];
@@ -13141,7 +13141,7 @@ const hw = (e) => {
13141
13141
  this.systemInfo = e;
13142
13142
  },
13143
13143
  setSystemKey(e) {
13144
- this.systemKey = "554";
13144
+ this.systemKey = e;
13145
13145
  },
13146
13146
  setSuperAdminInfo(e) {
13147
13147
  this.superAdminInfo = e;
@@ -13491,197 +13491,197 @@ function Ry(e) {
13491
13491
  );
13492
13492
  }
13493
13493
  export {
13494
- F3 as $,
13495
- We as A,
13496
- $t as B,
13497
- pe as C,
13498
- b0 as D,
13494
+ Oy as $,
13495
+ b0 as A,
13496
+ my as B,
13497
+ py as C,
13498
+ Z2 as D,
13499
13499
  rt as E,
13500
- my as F,
13501
- py as G,
13502
- Z2 as H,
13503
- gy as I,
13504
- oe as J,
13505
- D1 as K,
13506
- A2 as L,
13507
- zl as M,
13508
- Wr as N,
13509
- Ie as O,
13510
- Jr as P,
13511
- hm as Q,
13512
- O0 as R,
13513
- vt as S,
13500
+ gy as F,
13501
+ oe as G,
13502
+ D1 as H,
13503
+ zl as I,
13504
+ Wr as J,
13505
+ Ie as K,
13506
+ Jr as L,
13507
+ hm as M,
13508
+ Nt as N,
13509
+ Ht as O,
13510
+ El as P,
13511
+ ly as Q,
13512
+ k1 as R,
13513
+ U2 as S,
13514
13514
  Yr as T,
13515
- Ft as U,
13516
- Nt as V,
13517
- El as W,
13518
- ne as X,
13519
- Tl as Y,
13520
- $3 as Z,
13515
+ Al as U,
13516
+ vm as V,
13517
+ di as W,
13518
+ uy as X,
13519
+ q8 as Y,
13520
+ pi as Z,
13521
13521
  M0 as _,
13522
13522
  Oe as a,
13523
- dy as a$,
13524
- ui as a0,
13525
- gm as a1,
13526
- z1 as a2,
13527
- Ee as a3,
13528
- Al as a4,
13529
- Cl as a5,
13530
- oy as a6,
13531
- ly as a7,
13532
- Ht as a8,
13533
- k1 as a9,
13534
- Ay as aA,
13535
- Qi as aB,
13536
- Cy as aC,
13537
- u_ as aD,
13538
- i_ as aE,
13539
- zy as aF,
13540
- H1 as aG,
13541
- Qt as aH,
13542
- Gl as aI,
13543
- sy as aJ,
13544
- xy as aK,
13545
- Id as aL,
13546
- qp as aM,
13547
- dm as aN,
13548
- pm as aO,
13549
- Cd as aP,
13550
- bd as aQ,
13551
- P9 as aR,
13552
- Wf as aS,
13553
- bi as aT,
13554
- Ty as aU,
13555
- Ey as aV,
13556
- by as aW,
13557
- J9 as aX,
13558
- a8 as aY,
13559
- Fl as aZ,
13560
- Qw as a_,
13561
- vm as aa,
13562
- di as ab,
13563
- uy as ac,
13564
- q8 as ad,
13565
- pi as ae,
13566
- Oy as af,
13567
- ry as ag,
13568
- Zw as ah,
13569
- qi as ai,
13570
- Ji as aj,
13571
- vi as ak,
13572
- ay as al,
13573
- uc as am,
13574
- ty as an,
13575
- T0 as ao,
13576
- wi as ap,
13577
- yy as aq,
13578
- Xw as ar,
13579
- P1 as as,
13580
- Fi as at,
13581
- cy as au,
13582
- mm as av,
13583
- Br as aw,
13584
- Vy as ax,
13585
- Sc as ay,
13586
- B8 as az,
13523
+ mc as a$,
13524
+ ry as a0,
13525
+ Zw as a1,
13526
+ Ft as a2,
13527
+ O0 as a3,
13528
+ qi as a4,
13529
+ Ji as a5,
13530
+ vi as a6,
13531
+ ay as a7,
13532
+ uc as a8,
13533
+ Ee as a9,
13534
+ xy as aA,
13535
+ Id as aB,
13536
+ qp as aC,
13537
+ dm as aD,
13538
+ pm as aE,
13539
+ Cd as aF,
13540
+ bd as aG,
13541
+ F3 as aH,
13542
+ Tl as aI,
13543
+ P9 as aJ,
13544
+ Wf as aK,
13545
+ bi as aL,
13546
+ Ty as aM,
13547
+ Ey as aN,
13548
+ by as aO,
13549
+ J9 as aP,
13550
+ a8 as aQ,
13551
+ G9 as aR,
13552
+ wy as aS,
13553
+ dd as aT,
13554
+ Sy as aU,
13555
+ H0 as aV,
13556
+ I1 as aW,
13557
+ Tv as aX,
13558
+ Hv as aY,
13559
+ c2 as aZ,
13560
+ z0 as a_,
13561
+ gm as aa,
13562
+ wi as ab,
13563
+ yy as ac,
13564
+ Xw as ad,
13565
+ P1 as ae,
13566
+ Fi as af,
13567
+ cy as ag,
13568
+ mm as ah,
13569
+ $3 as ai,
13570
+ Br as aj,
13571
+ T0 as ak,
13572
+ Vy as al,
13573
+ Sc as am,
13574
+ B8 as an,
13575
+ ne as ao,
13576
+ Ay as ap,
13577
+ Qi as aq,
13578
+ Cy as ar,
13579
+ u_ as as,
13580
+ i_ as at,
13581
+ zy as au,
13582
+ ui as av,
13583
+ H1 as aw,
13584
+ Qt as ax,
13585
+ Gl as ay,
13586
+ sy as az,
13587
13587
  j as b,
13588
- pw as b$,
13589
- G9 as b0,
13590
- wy as b1,
13591
- dd as b2,
13592
- Sy as b3,
13593
- H0 as b4,
13594
- I1 as b5,
13595
- Tv as b6,
13596
- Hv as b7,
13597
- c2 as b8,
13598
- z0 as b9,
13599
- bn as bA,
13600
- Sn as bB,
13601
- ft as bC,
13602
- pt as bD,
13603
- Rn as bE,
13604
- An as bF,
13605
- m0 as bG,
13606
- Vn as bH,
13607
- vs as bI,
13608
- O4 as bJ,
13609
- h6 as bK,
13610
- k6 as bL,
13611
- R4 as bM,
13612
- En as bN,
13613
- o3 as bO,
13614
- tr as bP,
13615
- He as bQ,
13616
- kn as bR,
13617
- De as bS,
13618
- vr as bT,
13619
- E6 as bU,
13620
- xe as bV,
13621
- On as bW,
13622
- U3 as bX,
13623
- Jh as bY,
13624
- x5 as bZ,
13625
- x1 as b_,
13626
- mc as ba,
13627
- g0 as bb,
13628
- If as bc,
13629
- bv as bd,
13630
- Cv as be,
13631
- _y as bf,
13632
- hy as bg,
13633
- $d as bh,
13634
- U8 as bi,
13635
- U_ as bj,
13636
- E_ as bk,
13637
- yi as bl,
13638
- vy as bm,
13639
- ny as bn,
13640
- iy as bo,
13641
- fy as bp,
13642
- Em as bq,
13643
- xi as br,
13644
- Ai as bs,
13645
- Iy as bt,
13646
- ky as bu,
13647
- Dy as bv,
13648
- By as bw,
13649
- My as bx,
13650
- dw as by,
13651
- Hy as bz,
13588
+ A2 as b$,
13589
+ Pn as b0,
13590
+ g0 as b1,
13591
+ z1 as b2,
13592
+ Fl as b3,
13593
+ If as b4,
13594
+ bv as b5,
13595
+ Cv as b6,
13596
+ _y as b7,
13597
+ hy as b8,
13598
+ oy as b9,
13599
+ An as bA,
13600
+ m0 as bB,
13601
+ Vn as bC,
13602
+ vs as bD,
13603
+ O4 as bE,
13604
+ h6 as bF,
13605
+ k6 as bG,
13606
+ R4 as bH,
13607
+ En as bI,
13608
+ o3 as bJ,
13609
+ vt as bK,
13610
+ tr as bL,
13611
+ He as bM,
13612
+ kn as bN,
13613
+ De as bO,
13614
+ vr as bP,
13615
+ E6 as bQ,
13616
+ xe as bR,
13617
+ On as bS,
13618
+ U3 as bT,
13619
+ Cl as bU,
13620
+ Jh as bV,
13621
+ x5 as bW,
13622
+ x1 as bX,
13623
+ pw as bY,
13624
+ Ry as bZ,
13625
+ Ms as b_,
13626
+ $d as ba,
13627
+ U8 as bb,
13628
+ U_ as bc,
13629
+ E_ as bd,
13630
+ Qw as be,
13631
+ yi as bf,
13632
+ vy as bg,
13633
+ dy as bh,
13634
+ ny as bi,
13635
+ iy as bj,
13636
+ fy as bk,
13637
+ Em as bl,
13638
+ xi as bm,
13639
+ Ai as bn,
13640
+ Iy as bo,
13641
+ ky as bp,
13642
+ Dy as bq,
13643
+ By as br,
13644
+ My as bs,
13645
+ dw as bt,
13646
+ Hy as bu,
13647
+ bn as bv,
13648
+ Sn as bw,
13649
+ ft as bx,
13650
+ pt as by,
13651
+ Rn as bz,
13652
13652
  N3 as c,
13653
- Ry as c0,
13654
- p0 as c1,
13655
- we as c2,
13656
- Ue as c3,
13657
- v0 as c4,
13658
- st as c5,
13659
- ey as c6,
13660
- q_ as c7,
13661
- Vh as c8,
13653
+ ty as c0,
13654
+ Ue as c1,
13655
+ v0 as c2,
13656
+ st as c3,
13657
+ ey as c4,
13658
+ q_ as c5,
13659
+ Vh as c6,
13660
+ p0 as c7,
13661
+ we as c8,
13662
13662
  J_ as c9,
13663
13663
  Z_ as ca,
13664
13664
  Py as d,
13665
13665
  Tw as e,
13666
13666
  Ly as f,
13667
13667
  Vw as g,
13668
- dt as h,
13668
+ Jt as h,
13669
13669
  qe as i,
13670
- Jt as j,
13670
+ Mn as j,
13671
13671
  h0 as k,
13672
- Ms as l,
13673
- Pn as m,
13672
+ i4 as l,
13673
+ dt as m,
13674
13674
  s6 as n,
13675
- Mn as o,
13675
+ Dn as o,
13676
13676
  Ro as p,
13677
- i4 as q,
13678
- Dn as r,
13677
+ v2 as q,
13678
+ b6 as r,
13679
13679
  fw as s,
13680
13680
  In as t,
13681
13681
  gw as u,
13682
- v2 as v,
13683
- b6 as w,
13684
- U2 as x,
13685
- B1 as y,
13686
- D2 as z
13682
+ B1 as v,
13683
+ D2 as w,
13684
+ We as x,
13685
+ $t as y,
13686
+ pe as z
13687
13687
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as l, watch as b } from "vue";
2
- import { g as y, s as d } from "./index-DV_ZZQBO.js";
3
- import { ax as g, av as m, a as D } from "./index.vue_vue_type_style_index_1_lang-D5Hjs-g0.js";
2
+ import { g as y, s as d } from "./index-DbzvXPKu.js";
3
+ import { au as g, as as m, a as D } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
4
4
  const f = D(), { itemData: h } = d(f), c = l(0), k = l([
5
5
  {
6
6
  label: "机构名称",
@@ -98,8 +98,8 @@ const f = D(), { itemData: h } = d(f), c = l(0), k = l([
98
98
  var o;
99
99
  if (Array.isArray(e == null ? void 0 : e.tableData)) {
100
100
  let r = { id: e.id };
101
- return (o = e == null ? void 0 : e.tableData) == null || o.forEach((p, u) => {
102
- r[`a${u}`] = p;
101
+ return (o = e == null ? void 0 : e.tableData) == null || o.forEach((u, p) => {
102
+ r[`a${p}`] = u;
103
103
  }), r;
104
104
  } else
105
105
  return {
@@ -127,7 +127,7 @@ b(() => h.value, (a) => {
127
127
  var t;
128
128
  a && (a == null ? void 0 : a.length) > 0 && (s.value = (t = a == null ? void 0 : a[0]) == null ? void 0 : t.compData);
129
129
  });
130
- const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
130
+ const P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
131
131
  __proto__: null,
132
132
  getPageDataAsync: T,
133
133
  handleItemDataChange: i,
@@ -140,5 +140,5 @@ const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
140
140
  tempPostPageData: B
141
141
  }, Symbol.toStringTag, { value: "Module" }));
142
142
  export {
143
- O as S
143
+ P as S
144
144
  };
@@ -1 +1 @@
1
- "use strict";const a=require("./index-BOJUyAaV.cjs"),M=require("./index.vue_vue_type_style_index_1_lang-N-_9ZJEf.cjs"),E=require("vue"),h=M.useMenuState(a.pinia),p=a.useLoginState(a.pinia),x=E.ref(!1),D=E.ref(!1),q=async()=>{const _=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),I=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([_,I]).then(s=>{var r,u,n,o,i,l,c,y,g,d,S,f,m,v;const t=s==null?void 0:s[0],e=s==null?void 0:s[1];if(t.data.code===200){const K=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;h.setRawMenus(K??[]),x.value=((y=t==null?void 0:t.data)==null?void 0:y.result)&&((d=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:d.length)>0}else a.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(p.setStructureData(e.data.result),p.setIsStructureExist(!0),D.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((v=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:v.length)>0):a.ElMessage.error("获取模型结构响应失败")}),{menuExist:x.value,structureExist:D.value}};exports.verifyStructureDataToStore=q;
1
+ "use strict";const a=require("./index-1z9RrjZc.cjs"),M=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),E=require("vue"),h=M.useMenuState(a.pinia),p=a.useLoginState(a.pinia),x=E.ref(!1),D=E.ref(!1),q=async()=>{const _=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),I=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([_,I]).then(s=>{var r,u,n,o,i,l,c,y,g,d,S,f,m,v;const t=s==null?void 0:s[0],e=s==null?void 0:s[1];if(t.data.code===200){const K=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;h.setRawMenus(K??[]),x.value=((y=t==null?void 0:t.data)==null?void 0:y.result)&&((d=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:d.length)>0}else a.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(p.setStructureData(e.data.result),p.setIsStructureExist(!0),D.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((v=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:v.length)>0):a.ElMessage.error("获取模型结构响应失败")}),{menuExist:x.value,structureExist:D.value}};exports.verifyStructureDataToStore=q;