ss-component-new 1.1.620 → 1.1.623

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 (92) hide show
  1. package/dist/{array-Bq7cMxbK.cjs → array-B_wsE8_t.cjs} +1 -1
  2. package/dist/{array-D4dLF1xj.js → array-VzXJcPjW.js} +1 -1
  3. package/dist/icons/svg/editTable.svg +1 -0
  4. package/dist/icons/svg/readTable.svg +1 -0
  5. package/dist/icons/svg/rowCreate.svg +1 -0
  6. package/dist/{index-DhvQs7gl.js → index-B5t2-ZF6.js} +1 -1
  7. package/dist/{index-BqZfdFEg.js → index-BCMeBOjv.js} +5 -5
  8. package/dist/{index-BeXlcI9i.cjs → index-BD6RuAif.cjs} +1 -1
  9. package/dist/{index-DaOakrcL.js → index-BHxSsIXo.js} +1 -1
  10. package/dist/{index-BpsIiZ7S.cjs → index-BdEXRw33.cjs} +1 -1
  11. package/dist/index-Bf6gYS22.cjs +4207 -0
  12. package/dist/{index-BjJGt5n9.js → index-BkdY6cw6.js} +1 -1
  13. package/dist/{index-DmRE2cVC.cjs → index-BmcZxive.cjs} +1 -1
  14. package/dist/{index-CrPT5Hoz.cjs → index-BoSad116.cjs} +1 -1
  15. package/dist/{index-BpKdQbsx.js → index-Br-w0WJD.js} +5 -5
  16. package/dist/{index-BhLxpb5q.js → index-BrKRAOn4.js} +6 -6
  17. package/dist/{index-DXkSDTRj.cjs → index-BwU7Nmc_.cjs} +1 -1
  18. package/dist/{index-CfcFMIgE.js → index-C2T-nUxf.js} +3 -3
  19. package/dist/{index-bHS30Ndo.js → index-C9WrVGHF.js} +5 -5
  20. package/dist/{index-CZ89rQnr.cjs → index-CTmwu9TK.cjs} +1 -1
  21. package/dist/{index-CsCDreKP.cjs → index-CeD_uFzd.cjs} +1 -1
  22. package/dist/{index-DnNBgaDj.js → index-ClfctUMo.js} +4 -4
  23. package/dist/{index-FXMPSbp7.cjs → index-Cn6GByoU.cjs} +1 -1
  24. package/dist/{index-BFuX2G8I.js → index-CnWb9Gz8.js} +4 -4
  25. package/dist/{index-DaBCF0Nd.js → index-Crd7Dg0j.js} +1 -1
  26. package/dist/{index-DC74TF_q.cjs → index-CzX-ygFB.cjs} +1 -1
  27. package/dist/{index-DxrHtk8v.cjs → index-D8su61We.cjs} +1 -1
  28. package/dist/{index-CM7xxfrM.cjs → index-DJRurgY2.cjs} +1 -1
  29. package/dist/{index-CWhy_Io_.cjs → index-DJSmgjQk.cjs} +1 -1
  30. package/dist/{index-D3AT3gF-.js → index-DKoGXjoD.js} +4 -4
  31. package/dist/index-DN5pkkVv.cjs +1 -0
  32. package/dist/{index-DDcGWP6y.js → index-DOoBCwOE.js} +5322 -5266
  33. package/dist/{index-f8bHzA1N.js → index-DTtCq9R6.js} +3 -3
  34. package/dist/{index-CpLqSPMr.cjs → index-DWdWY1BZ.cjs} +1 -1
  35. package/dist/{index-Dtez5g70.cjs → index-DXCMSB90.cjs} +1 -1
  36. package/dist/{index-BpUTBz77.cjs → index-De1UH5m5.cjs} +1 -1
  37. package/dist/{index-C_0I-i8V.cjs → index-DecdMM1v.cjs} +1 -1
  38. package/dist/{index-DTCQ-wFV.cjs → index-Df_pm0Y-.cjs} +1 -1
  39. package/dist/{index-DAKLvVXN.js → index-Df_wLpcP.js} +3 -3
  40. package/dist/{index-BFELXxoC.js → index-DivndMew.js} +1 -1
  41. package/dist/{index-pyP2yPmF.js → index-DqZD4y9T.js} +8 -8
  42. package/dist/{index-gdgEp7uV.js → index-J9CTbDdp.js} +14 -14
  43. package/dist/{index-Cbht3RG4.cjs → index-MSj62TUk.cjs} +1 -1
  44. package/dist/{index-BbW8EtPG.js → index-NoRGArvy.js} +334 -332
  45. package/dist/{index-BHPyp0hU.js → index-QkD67YhY.js} +4 -4
  46. package/dist/{index-BNX_RWaL.js → index-Qyw2gFZu.js} +4 -4
  47. package/dist/{index-CEHOj8ds.js → index-S285mI0p.js} +3 -3
  48. package/dist/index-Viq8WtM7.cjs +15 -0
  49. package/dist/{index-FLKaEf78.cjs → index-_kKZEgxm.cjs} +1 -1
  50. package/dist/{index-CfpRAxJB.js → index-boQYixno.js} +2 -2
  51. package/dist/{index-WwP4JICq.cjs → index-kLzEx5xq.cjs} +1 -1
  52. package/dist/{index-BoNr-Sd6.js → index-koQady1K.js} +5352 -5204
  53. package/dist/{index-BNkI-J2e.cjs → index-meJ6fhCn.cjs} +1 -1
  54. package/dist/{index-CupbZVTS.js → index-r5L5PJP9.js} +4 -4
  55. package/dist/{index-C-AfxANM.cjs → index-ugVCM2_1.cjs} +1 -1
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-6ThktX0W.js → index.vue_vue_type_script_setup_true_lang-BhbHPZ34.js} +23 -23
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-D2XdpbX2.cjs → index.vue_vue_type_script_setup_true_lang-DoqHilMG.cjs} +1 -1
  58. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BfNWM92-.cjs +1339 -0
  59. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-EGVEMSWV.js +62017 -0
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DUnmQvPK.cjs → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DIgKXB3H.cjs} +7 -7
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-D5Bmiomk.js → index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DkeTpBJu.js} +235 -235
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BxWFTucV.js → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-D7pmcVtE.js} +8 -8
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BHrALHze.cjs → index.vue_vue_type_style_index_0_scoped_57a7854d_lang-DG6bewEh.cjs} +1 -1
  64. package/dist/{login--G67Cn_f.cjs → login-C7jVTvUQ.cjs} +1 -1
  65. package/dist/{login-C8DAyy2e.js → login-wUTWXQ7u.js} +1 -1
  66. package/dist/{main-D6VhEWlV.js → main-CJ_KB_5P.js} +5 -5
  67. package/dist/{main-BvVe_CBg.cjs → main-thQ5jkR7.cjs} +1 -1
  68. package/dist/{menu-B98fDP-p.cjs → menu-CcabvNj6.cjs} +10 -10
  69. package/dist/{menu-DArqZlON.js → menu-wif0xsml.js} +4878 -4878
  70. package/dist/modelComp-B8kjqlTY.cjs +1 -0
  71. package/dist/{modelComp-6AqovLWA.js → modelComp-bhPfLPDx.js} +6 -2
  72. package/dist/obj/model.mtl +42 -0
  73. package/dist/obj/model.obj +26110 -0
  74. package/dist/ss-component.cjs +1 -1
  75. package/dist/ss-component.css +2 -2
  76. package/dist/ss-component.js +9 -9
  77. package/dist/ss-component2.cjs +1 -1
  78. package/dist/ss-component2.js +9 -9
  79. package/dist/{threeModel-BXCCNMoU.cjs → threeModel-CGGVqbwo.cjs} +1 -1
  80. package/dist/{threeModel-D1NbQhLh.js → threeModel-CkKiopXp.js} +2 -2
  81. package/package.json +3 -1
  82. package/public/icons/svg/editTable.svg +1 -0
  83. package/public/icons/svg/readTable.svg +1 -0
  84. package/public/icons/svg/rowCreate.svg +1 -0
  85. package/public/obj/model.mtl +42 -0
  86. package/public/obj/model.obj +26110 -0
  87. package/dist/index-BjueKTcK.cjs +0 -1
  88. package/dist/index-CewlNEjY.cjs +0 -15
  89. package/dist/index-DY-oa5G1.cjs +0 -4207
  90. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CCe3D1Fi.cjs +0 -1286
  91. package/dist/index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Ce-Qmyx6.js +0 -52928
  92. package/dist/modelComp-RmvEs7pM.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const N=require("vue"),c=require("./menu-B98fDP-p.cjs"),D=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],b=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];N.ref(0);const I=l=>{var t,r;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(r=Object.entries(l))==null||r.forEach(([s,n])=>{var f,$;let a=[];if(a.push(s),((f=Object.keys(n))==null?void 0:f.length)>0){let y=[];($=I(n))==null||$.forEach(T=>{y.push(T)}),y==null||y.forEach(T=>{a.push(T)})}e.push(a)}),e}},R=(l,t)=>{var e;let r=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([s,n])=>{let a=[s];if(typeof n=="object"&&n!==null){let f=I(n);f==null||f.forEach($=>{a.push($)})}r.push(a)})),r},X=l=>{const t={};return l.forEach(e=>{const s=e.split("/");let n=t;s.forEach(a=>{n[a]||(n[a]={}),n=n[a]})}),R(t,[])},Y=l=>X(l);N.ref(0);N.ref(1);const q=l=>{let t;l.replaceAll(" ",`\r
1
+ "use strict";const N=require("vue"),c=require("./menu-CcabvNj6.cjs"),D=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],b=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];N.ref(0);const I=l=>{var t,r;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(r=Object.entries(l))==null||r.forEach(([s,n])=>{var f,$;let a=[];if(a.push(s),((f=Object.keys(n))==null?void 0:f.length)>0){let y=[];($=I(n))==null||$.forEach(T=>{y.push(T)}),y==null||y.forEach(T=>{a.push(T)})}e.push(a)}),e}},R=(l,t)=>{var e;let r=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([s,n])=>{let a=[s];if(typeof n=="object"&&n!==null){let f=I(n);f==null||f.forEach($=>{a.push($)})}r.push(a)})),r},X=l=>{const t={};return l.forEach(e=>{const s=e.split("/");let n=t;s.forEach(a=>{n[a]||(n[a]={}),n=n[a]})}),R(t,[])},Y=l=>X(l);N.ref(0);N.ref(1);const q=l=>{let t;l.replaceAll(" ",`\r
2
2
  `).includes(`\r
3
3
  `)?t=l.replaceAll(" ",`\r
4
4
  `).split(`\r
@@ -1,5 +1,5 @@
1
1
  import { ref as E } from "vue";
2
- import { c as a } from "./menu-DArqZlON.js";
2
+ import { c as a } from "./menu-wif0xsml.js";
3
3
  const A = [
4
4
  {
5
5
  key: "FormName",
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1754014497867" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6026" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M938.666667 390.186667V207.274667A121.941333 121.941333 0 0 0 816.725333 85.333333H207.274667A121.941333 121.941333 0 0 0 85.333333 207.274667v609.450666A121.941333 121.941333 0 0 0 207.274667 938.666667h609.450666A121.941333 121.941333 0 0 0 938.666667 816.725333V390.186667zM164.138667 164.138667c11.434667-11.52 26.965333-17.92 43.178666-17.92h609.578667a60.928 60.928 0 0 1 60.885333 61.098666v121.984H146.218667v-122.026666c0-16.170667 6.4-31.701333 17.92-43.136z m195.413333 439.381333h-213.333333v-213.333333h213.333333v213.333333z m-195.413333 256.426667c-11.52-11.349333-17.92-26.88-17.92-43.050667v-152.448h213.333333v213.333333H207.36a60.586667 60.586667 0 0 1-43.178667-17.792z m702.677333-6.741334c-25.472 26.282667-82.346667 21.546667-118.357333 21.461334h-340.053334V384h475.733334v350.72c0.085333 37.12 8.106667 92.245333-17.322667 118.485333z" fill="#646E78" p-id="6027"></path><path d="M807.594667 506.709333a41.941333 41.941333 0 0 1 3.072 15.701334c0 2.986667-0.554667 5.930667-1.706667 8.874666a27.093333 27.093333 0 0 1-5.418667 8.533334c-2.730667 2.730667-5.12 5.12-7.296 7.168-2.133333 2.048-4.053333 3.84-5.632 5.461333-1.792 1.834667-3.498667 3.413333-5.12 4.778667l-63.488-63.829334c2.730667-2.474667 5.973333-5.504 9.685334-9.045333 3.754667-3.498667 6.826667-6.314667 9.344-8.362667a29.781333 29.781333 0 0 1 19.882666-6.656 37.76 37.76 0 0 1 9.514667 1.536c3.029333 0.938667 5.717333 1.962667 7.978667 3.072 4.736 2.517333 10.026667 6.912 15.786666 13.141334 5.76 6.272 10.24 12.8 13.397334 19.626666z m-264.618667 166.528l9.514667-9.728c4.992-5.12 11.221333-11.434667 18.688-18.901333l24.789333-24.917333 27.52-27.648 73.045333-73.386667 63.530667 64.170667-73.045333 73.386666-27.178667 27.605334c-9.045333 8.874667-17.194667 17.024-24.448 24.405333-7.253333 7.381333-13.226667 13.482667-18.005333 18.261333a147.328 147.328 0 0 1-16.298667 14.677334 42.453333 42.453333 0 0 1-9.173333 5.461333 147.925333 147.925333 0 0 1-13.952 5.802667 469.418667 469.418667 0 0 1-38.186667 12.288 143.36 143.36 0 0 1-13.44 3.072c-6.101333 0.682667-10.197333-0.213333-12.202667-2.730667-2.048-2.517333-2.602667-6.698667-1.706666-12.629333a115.626667 115.626667 0 0 1 3.2-13.824l5.461333-18.773334c1.92-6.485333 3.797333-12.458667 5.589333-17.92 1.834667-5.461333 3.285333-9.216 4.437334-11.264 1.365333-3.157333 2.858667-6.058667 4.565333-8.704 1.706667-2.602667 4.138667-5.504 7.296-8.704z" fill="#646E78" p-id="6028"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1754014546465" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7433" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M896 384v384a85.333333 85.333333 0 0 1-85.333333 85.333333h-256l341.333333-469.333333z" fill="#B4D3FF" p-id="7434"></path><path d="M810.666667 128a85.333333 85.333333 0 0 1 85.333333 85.333333v597.333334a85.333333 85.333333 0 0 1-85.333333 85.333333H213.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V213.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h597.333334z m0 51.2H213.333333a34.133333 34.133333 0 0 0-34.133333 34.133333v597.333334a34.133333 34.133333 0 0 0 34.133333 34.133333h597.333334a34.133333 34.133333 0 0 0 34.133333-34.133333V213.333333a34.133333 34.133333 0 0 0-34.133333-34.133333z" fill="#333333" p-id="7435"></path><path d="M388.266667 391.936v51.2H166.4v-51.2zM857.6 622.336v51.2H166.4v-51.2z" fill="#333333" p-id="7436"></path><path d="M403.2 166.741333V858.026667h-51.2V166.741333zM672 647.936v210.133333h-51.2v-210.133333z" fill="#333333" p-id="7437"></path><path d="M772.224 293.717333a25.6 25.6 0 0 1 37.632 34.730667l-174.378667 189.098667a34.133333 34.133333 0 0 1-47.786666 2.346666l-103.893334-92.586666a25.6 25.6 0 0 1 34.090667-38.186667l91.306667 81.365333 162.986666-176.768z" fill="#333333" p-id="7438"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1754017588044" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3671" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M465.454545 465.454545V139.636364a46.545455 46.545455 0 0 1 93.09091 0v325.818181h325.818181a46.545455 46.545455 0 0 1 0 93.09091H558.545455v325.818181a46.545455 46.545455 0 0 1-93.09091 0V558.545455H139.636364a46.545455 46.545455 0 0 1 0-93.09091z" p-id="3672"></path></svg>
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-6ThktX0W.js";
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-BhbHPZ34.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,9 @@
1
1
  import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
2
- import { c as J, s as be, g as U, u as he, E as S, p as $, bO as ae, bM as oe, bP as Ce, f as Ie } from "./menu-DArqZlON.js";
3
- import { u as ke } from "./modelComp-6AqovLWA.js";
4
- import { u as Te } from "./index-DDcGWP6y.js";
5
- import { f as Me } from "./index-CupbZVTS.js";
6
- import { a as Se } from "./login-C8DAyy2e.js";
2
+ import { c as J, s as be, g as U, u as he, E as S, p as $, bO as ae, bM as oe, bP as Ce, f as Ie } from "./menu-wif0xsml.js";
3
+ import { u as ke } from "./modelComp-bhPfLPDx.js";
4
+ import { u as Te } from "./index-DOoBCwOE.js";
5
+ import { f as Me } from "./index-r5L5PJP9.js";
6
+ import { a as Se } from "./login-wUTWXQ7u.js";
7
7
  const F = ke($), ne = Te($), C = he($), { menus: ue, configMenu: O, activeMenuPath: q, cacheStructures: K } = be(C), z = i(!1), se = j(() => {
8
8
  var e, t;
9
9
  return [
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),oe=require("./index-DC74TF_q.cjs"),$e=require("./index-BNkI-J2e.cjs"),C=require("./index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DUnmQvPK.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=require("./menu-B98fDP-p.cjs"),Me=require("./login--G67Cn_f.cjs"),pe=require("./index-BpPyaNFa.cjs"),we=require("./modelComp-RmvEs7pM.cjs"),Q=require("./index-CewlNEjY.cjs"),ye=require("./index-DY-oa5G1.cjs"),Pe=require("./index.vue_vue_type_script_setup_true_lang-D2XdpbX2.cjs"),Ee=require("./threeModel-BXCCNMoU.cjs"),Ke=require("./index-BjueKTcK.cjs");require("vue-router");const ne=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CCe3D1Fi.cjs"),Oe=require("./array-Bq7cMxbK.cjs"),Ae=require("./index.vue_vue_type_style_index_0_scoped_57a7854d_lang-BHrALHze.cjs"),ze={class:"horizontal-f-18"};function Ge(x,X,n,V,F,z){const s=e.resolveComponent("svg-icon"),G=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(G,{mode:x.mode,menuList:x.renderMenuList,onClickMenu:x.clickMenu,onOpenMenu:x.openMenu,onCloseMenu:x.closeMenu},{title:e.withCtx(({menu:S})=>[e.createVNode(s,{class:"horizontal-icon-18",name:S.icon??"Fold",style:{"margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",ze,e.toDisplayString(S.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const Ie=me._export_sfc(C._sfc_main,[["render",Ge],["__scopeId","data-v-6dc766db"]]),He={class:"bread-content"},Xe=["onClick"],Je={key:0,class:"split-title"},We={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(x,{emit:X}){const n=x,V=e.ref([]),F=X;e.onMounted(()=>{V.value=n==null?void 0:n.breadArray}),e.watch(()=>n==null?void 0:n.breadArray,()=>{V.value=n==null?void 0:n.breadArray},{deep:!0,immediate:!0});const z=s=>{F("click",s)};return(s,G)=>(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(S,$)=>{var H;return e.openBlock(),e.createElementBlock("div",{key:$,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:le=>z(S),style:e.normalizeStyle({opacity:((H=V.value)==null?void 0:H.length)-1===$?"0.7":"1"})},e.toDisplayString(S.value),13,Xe),$!==V.value.length-1&&Array.isArray(V.value)?(e.openBlock(),e.createElementBlock("div",Je,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},je=me._export_sfc(We,[["__scopeId","data-v-ded7e2bd"]]),Qe={class:"structure-buttons"},Ye={class:"structure-paths"},Ze={class:"client-header-user"},et={class:"model-select"},tt={class:"model-show"},ot={class:"model-fill"},at={class:"client-header-menu"},nt={class:"client-header-user"},lt={class:"drop-menu"},rt={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},it={key:0,class:"item-view-group"},st=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},setup(x){const X=ye.useUnit(r.pinia),{selectTitle:n}=r.storeToRefs(X),V=Me.useLoginState(),{loginUserInfo:F}=r.storeToRefs(V),z=we.useModelComp(r.pinia),{isEdit:s,routeToChildPath:G}=r.storeToRefs(z),S=r.useMenuState(r.pinia),{importLoading:$,activeAsideMenu:H,contentLoading:le}=r.storeToRefs(S),y=e.ref(""),U=e.computed(()=>H.value.isRouter),L=()=>{sessionStorage.clear(),window.location.reload()},q=async()=>{var f,M,Z,ee;S.setImportLoading(!0);const D=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((f=D==null?void 0:D.data)==null?void 0:f.code)===200){let J=(ee=(Z=(M=D==null?void 0:D.data)==null?void 0:M.result)==null?void 0:Z.map(P=>{var re;if(((re=P==null?void 0:P.key)==null?void 0:re.layer)!=="superAdmin")return P==null?void 0:P.id}))==null?void 0:ee.filter(P=>P);await r.batchDeleteInsofDataApi({ids:J}),S.setRawMenus([])}S.setImportLoading(!1)},Y=()=>{S.setActiveMenuPath(G.value),z.setRouteToChildPath("")};return(D,f)=>{const M=e.resolveComponent("el-button"),Z=e.resolveComponent("el-avatar"),ee=e.resolveComponent("el-header"),J=e.resolveComponent("el-container"),P=e.resolveComponent("el-icon"),re=e.resolveComponent("el-input"),_=e.resolveComponent("el-aside"),j=e.resolveComponent("router-view"),K=e.resolveComponent("el-main"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createVNode(J,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(ee,{class:"client-structure-header"},{default:e.withCtx(()=>{var B;return[e.createElementVNode("div",Qe,[e.createVNode(M,{id:"transparentBgButton",onClick:e.unref(C.onBack)},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[2]},8,["onClick"]),e.createVNode(M,{id:"transparentBgButton",onClick:f[0]||(f[0]=t=>{var R,b;return e.unref(C.clickSavePage)((b=(R=e.unref(n))==null?void 0:R.map(te=>te.value))==null?void 0:b.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[f[3]||(f[3]=e.createTextVNode(" 保存页面 "))]),_:1,__:[3]})]),e.createElementVNode("div",Ye,[e.createVNode(je,{breadArray:e.unref(n),onClick:e.unref(C.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",Ze,[e.renderSlot(D.$slots,"default",{},void 0,!0),e.createVNode(Z,{size:35,src:(B=e.unref(F))==null?void 0:B.avatarUrl},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString(((t=e.unref(F))==null?void 0:t.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(s)==="edit"?(e.openBlock(),e.createBlock(J,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",et,[e.createVNode(oe.modelSelect)]),e.createElementVNode("div",tt,[e.createVNode(oe.modelShow)]),e.createElementVNode("div",ot,[e.createVNode(oe.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(s)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(J,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(ee,{class:"client-header"},{default:e.withCtx(()=>[f[6]||(f[6]=e.createElementVNode("div",{class:"client-header-logo"}," ISIP ",-1)),e.createElementVNode("div",at,[e.createVNode(Ie,{mode:"horizontal"})]),e.createElementVNode("div",nt,[e.createVNode(re,{modelValue:y.value,"onUpdate:modelValue":f[1]||(f[1]=B=>y.value=B),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(P,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.search_default))]),_:1})]),_:1},8,["modelValue"]),x.showButton?(e.openBlock(),e.createBlock(M,{key:0,id:"transparentBgButton",onClick:e.unref(C.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[f[4]||(f[4]=e.createTextVNode(" 生成APP "))]),_:1,__:[4]},8,["onClick"])):e.createCommentVNode("",!0),x.showButton&&e.unref(s)==="view"?(e.openBlock(),e.createBlock(M,{key:1,id:"transparentBgButton",onClick:e.unref(C.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[f[5]||(f[5]=e.createTextVNode(" 修改布局 "))]),_:1,__:[5]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(D.$slots,"default",{},void 0,!0),e.createVNode(Q._sfc_main,null,{dropTitle:e.withCtx(()=>{var B;return[e.createVNode(Pe._sfc_main,{size:"35",avatarUrl:(B=e.unref(F))==null?void 0:B.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var t,R,b;return[e.createTextVNode(e.toDisplayString((t=e.unref(F))!=null&&t.account?(R=e.unref(F))==null?void 0:R.account:((b=e.unref(F))==null?void 0:b.账号)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",lt,[e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:q,modelValue:"清空数据",buttonType:""}),e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:L,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3,__:[6]}),e.createVNode(J,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(K,{class:"client-main"},{default:e.withCtx(()=>{var B;return[e.createVNode(_,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode($e.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",rt,[U.value?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0),e.unref(G)!==""?(e.openBlock(),e.createBlock(Q._sfc_main$1,{key:1,class:"calculator-content back-content",onClickTrigger:Y,modelValue:"返回"})):e.createCommentVNode("",!0),U.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList((B=e.unref(r.cloneDeep)(e.unref(C.showItems)))==null?void 0:B.filter(t=>t.comp!=="FormTop"),(t,R)=>{var b;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:R},[((b=t==null?void 0:t.comp)==null?void 0:b.toUpperCase())!=="TABLE"&&t.name?(e.openBlock(),e.createElementBlock("div",it,e.toDisplayString(t.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(C.getComponents)(t.comp)),{compName:t.name,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:(t==null?void 0:t.id)??R,onChange:e.unref(C.onChange),index:(t==null?void 0:t.id)??R,onContentChange:e.unref(C.onContentChange),onPageChange:e.unref(C.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])),[[E,e.unref(le)]])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(s)==="view"],[E,e.unref($)]])],64)}}}),ct=me._export_sfc(st,[["__scopeId","data-v-19ba8210"]]),ke=[{key:"FitCurve_Eleven",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"},{key:"MakeShape",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"},{key:"FillEmpty",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"},{key:"ToolPathFakeFast",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"},{key:"FiveAxisCalculator",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"},{key:"DetectionAlgorithm",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"},{key:"FeatureSelectionAlgorithm_FFS",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"},{key:"AIParameterOptimization",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"}],Be=[{key:"型线生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"},{key:"曲面生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"},{key:"叶片生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"},{key:"轨迹规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"},{key:"加工规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"},{key:"产品检测",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"},{key:"参数筛选训练方法",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"}],ut={class:"structure-buttons"},dt={class:"structure-paths"},pt={class:"client-header-user"},mt={class:"model-select"},ht={class:"model-show"},ft={class:"model-fill"},gt={class:"client-header-menu"},_t={class:"client-header-user"},Ct={class:"drop-menu"},yt={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},wt={key:0,class:"item-view-group"},vt=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},emits:["showChild","buildContent"],setup(x,{emit:X}){const n=ye.useUnit(r.pinia),V=e.ref(!1);e.ref(0),e.ref(!1);const{selectTitle:F}=r.storeToRefs(n),z=e.ref(!1),s=e.ref(!1);e.ref(!1);const G=ye.useTableComp(r.pinia),S=e.ref(!1),{tableShowThree:$}=r.storeToRefs(G),H=e.ref(),le=Me.useLoginState(),{loginUserInfo:y}=r.storeToRefs(le);e.ref(null);const U=we.useModelComp(r.pinia),{isEdit:L}=r.storeToRefs(U),q=r.useMenuState(r.pinia),Y=Ke.useFormComp(r.pinia),{objUrl:D,blobUrls:f}=r.storeToRefs(Y),M=e.ref(null);e.ref(!1);const Z=e.ref(),ee=e.ref(!0);e.ref(!1);const{importLoading:J,activeMenuPath:P,activeTopMenuPath:re,platName:_,activeAsideMenu:j,contentLoading:K}=r.storeToRefs(q),E=e.ref(!1),B=e.ref(!1),t=e.ref(!1),R=X,b=()=>{R("buildContent")};e.watch(()=>P.value,async a=>{a&&(t.value=!0),a==="弯管仿真加工管理/仿真动画生成"?E.value=!0:E.value=!1,a==="弯管仿真加工管理/程序输出"?B.value=!0:B.value=!1,Be!=null&&Be.find(i=>{var u;return(i==null?void 0:i.key)===((u=a==null?void 0:a.split("/"))==null?void 0:u[(a==null?void 0:a.split("/").length)-1])})?S.value=!0:S.value=!1},{immediate:!0});const te=a=>{if((a==null?void 0:a.type)==="table"){let i=Object.values(a==null?void 0:a.row),u=i==null?void 0:i.find(d=>typeof d=="string"&&((d==null?void 0:d.includes(".urdf"))||(d==null?void 0:d.includes(".obj"))));u&&(H.value={url:u,row:a==null?void 0:a.row},R("showChild",{url:u,row:a==null?void 0:a.row}))}},W=()=>{sessionStorage.clear(),window.location.reload()},fe=async()=>{var i,u,d,v;q.setImportLoading(!0);const a=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((i=a==null?void 0:a.data)==null?void 0:i.code)===200){let o=(v=(d=(u=a==null?void 0:a.data)==null?void 0:u.result)==null?void 0:d.map(c=>{var l;if(((l=c==null?void 0:c.key)==null?void 0:l.layer)!=="superAdmin")return c==null?void 0:c.id}))==null?void 0:v.filter(c=>c);await r.batchDeleteInsofDataApi({ids:o}),q.setRawMenus([])}q.setImportLoading(!1)},ge=async a=>{var d,v,o,c,l,N,g;const i=(d=a==null?void 0:a.split("/"))==null?void 0:d[0],u=await r.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey"),pageKey:i}});return((v=u==null?void 0:u.data)==null?void 0:v.type)==="success"?((g=(N=(l=(c=(o=u==null?void 0:u.data)==null?void 0:o.result)==null?void 0:c[0])==null?void 0:l.value)==null?void 0:N.tableData)==null?void 0:g.隐藏三维显示)!==!0:!0};e.watch(()=>C.showItems.value,()=>{var a,i,u,d,v;if(((a=C.showItems.value)==null?void 0:a.length)===2&&((i=C.showItems.value)!=null&&i.find(o=>(o==null?void 0:o.name)==="输入"))&&((u=C.showItems.value)!=null&&u.find(o=>(o==null?void 0:o.name)==="输出"))){const o=(d=C.showItems.value)==null?void 0:d.find(c=>(c==null?void 0:c.name)==="输出");s.value=((v=o==null?void 0:o.comp)==null?void 0:v.toUpperCase())==="FORM",z.value=!0}else z.value=!1,s.value=!1},{deep:!0,immediate:!0}),e.watch(()=>P.value,async()=>{P.value&&(ee.value=await ge(P.value))},{deep:!0,immediate:!0}),e.watch(()=>[D.value,M.value],()=>{var a;((a=D.value)==null?void 0:a.length)>0&&M.value&&M.value.addModelsFromUrls(D.value)},{immediate:!0,deep:!0}),e.watch(()=>[f==null?void 0:f.value],async()=>{var a,i,u,d,v;if(f!=null&&f.value&&((a=f==null?void 0:f.value)==null?void 0:a.length)>0&&!S.value&&!((i=C.showItems.value)!=null&&i.find(o=>(o==null?void 0:o.name)==="输入")&&((u=C.showItems.value)!=null&&u.find(o=>(o==null?void 0:o.name)==="输出")))){V.value=!0;let o=[];const c=await((d=r.cloneDeep(f==null?void 0:f.value))==null?void 0:d.map(async l=>{var O,k,h,m,w,se,Ce,Ve,Ne,xe;let N,g,p;l!=null&&l.blob.includes("undefined")?p=(k=(O=l==null?void 0:l.blob)==null?void 0:O.split("undefined,"))==null?void 0:k[1]:p=l==null?void 0:l.blob;let A=p==null?void 0:p.split(",");if((A==null?void 0:A.length)>1){let ce=await(A==null?void 0:A.map(async I=>{var ae,be,Te,Fe,Se,De;N=await r.axios.get(I,{responseType:"blob",headers:{"Content-Type":"application/json"}});let de=[];if(((ae=l==null?void 0:l.mtlBlobs)==null?void 0:ae.length)>0){let Le=await((be=l==null?void 0:l.mtlBlobs)==null?void 0:be.map(async qe=>{let Re=await r.axios.get(qe,{responseType:"blob",headers:{"Content-Type":"application/json"}});return de.push(new Blob([Re.data],{type:"application/octet-stream;charset=UTF-8"})),Re}));await Promise.all(Le)}return((Fe=I==null?void 0:I.split("."))==null?void 0:Fe[((Te=I==null?void 0:I.split("."))==null?void 0:Te.length)-1])!=="undefined"&&o.push({suffix:"."+((De=I==null?void 0:I.split("."))==null?void 0:De[((Se=I==null?void 0:I.split("."))==null?void 0:Se.length)-1]),blob:new Blob([N.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:de}),N}));await Promise.all(ce)}else if(!(p!=null&&p.includes("https://"))&&!(p!=null&&p.includes("http://"))){N=await Q.downloadAvatarApi({url:p});let ce=[];if(((h=l==null?void 0:l.mtlBlobs)==null?void 0:h.length)>0){let I=await((m=l==null?void 0:l.mtlBlobs)==null?void 0:m.map(async de=>{let ae=await Q.downloadAvatarApi({url:de});return ce.push(new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"})),ae}));await Promise.all(I)}g={suffix:"."+((se=p==null?void 0:p.split("."))==null?void 0:se[((w=p==null?void 0:p.split("."))==null?void 0:w.length)-1]),blob:new Blob([N.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ce}}else{N=await r.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ce=[];if(((Ce=l==null?void 0:l.mtlBlobs)==null?void 0:Ce.length)>0){let I=await((Ve=l==null?void 0:l.mtlBlobs)==null?void 0:Ve.map(async de=>{let ae=await r.axios.get(de,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ce.push(new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"})),ae}));await Promise.all(I)}g={suffix:"."+((xe=p==null?void 0:p.split("."))==null?void 0:xe[((Ne=p==null?void 0:p.split("."))==null?void 0:Ne.length)-1]),blob:new Blob([N.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ce}}g&&o.push(g)}));await Promise.all(c),(o==null?void 0:o.length)!==0&&((v=M.value)==null||v.loadModelByDefaultPath(o))}},{immediate:!0,deep:!0});const _e=()=>{V.value=!1,M.value=null};e.watch(()=>$.value,async()=>{var i,u,d,v;if($.value!==""&&$.value){let o=(i=P.value)==null?void 0:i.split("/"),c=o[(o==null?void 0:o.length)-2];const N=(((u=ke==null?void 0:ke.find(A=>(A==null?void 0:A.key)===c))==null?void 0:u.download)??"")+"/"+$.value,g=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),p=await r.axios.post(N,null,{responseType:"blob",headers:{Authorization:g,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var a=new Blob([p.data],{type:"application/octet-stream;charset=UTF-8"});""+((v=(d=$.value)==null?void 0:d.split("."))==null?void 0:v[1])}},{deep:!0,immediate:!0});const ue=e.ref("");e.ref("open"),e.ref("open"),e.ref(!1),e.computed(()=>C.showItems.value);const he=e.computed(()=>j.value.isRouter),T=a=>{let i=r.cloneDeep(a),u=[],d=[];return i==null||i.forEach((v,o)=>{o===(a==null?void 0:a.length)-1?(d.push(v),u.push(d)):((d==null?void 0:d.length)!==0&&v.includes(".obj")&&(u.push(d),d=[]),d.push(v))}),u},ie=async()=>{let a={};const i=await ne.getItemData("弯管仿真加工管理/仿真动画生成",sessionStorage.getItem("systemKey"),""),u=await ne.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let d=["管长","外径"],v={};u==null||u.forEach(o=>{var c;(o==null?void 0:o.comp)==="Form"&&((c=o==null?void 0:o.compData)==null||c.forEach(l=>{var N;(l==null?void 0:l.key)==="formContent"&&((N=l==null?void 0:l.contents)==null||N.forEach(g=>{d.includes(g==null?void 0:g.key)&&(v[g.key]=g.value)}))}))}),i==null||i.forEach(o=>{var c,l,N,g,p,A;if((o==null?void 0:o.comp)==="Table"){let O=[],k=(N=(l=(c=o==null?void 0:o.compData)==null?void 0:c.find(m=>(m==null?void 0:m.key)==="header"))==null?void 0:l.contents)==null?void 0:N.map(m=>m==null?void 0:m.label),h=(A=(p=(g=o==null?void 0:o.compData)==null?void 0:g.find(m=>(m==null?void 0:m.key)==="tableContents"))==null?void 0:p.contents)==null?void 0:A.map(m=>(m=m==null?void 0:m.filter(w=>!(w!=null&&w.id)),m));h==null||h.forEach(m=>{O.push(ne.getValueToObjectValue(m,k==null?void 0:k.filter(w=>w!=="操作")))}),a[o.name]=O,a[o.name+"Content"]=o}}),a.extra=v,Z.value=a},ve=e.ref(!1),Ue=async()=>{var a,i;if(ve.value=!0,H.value){const u=H.value;let d=[];if(typeof(u==null?void 0:u.url)=="string"){let v=(a=u==null?void 0:u.url)==null?void 0:a.split(","),o=(i=T(v))==null?void 0:i.map(async c=>{var l,N;if((c==null?void 0:c.length)===1){let g=c==null?void 0:c.map(async p=>{var h,m;let A=await r.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}});const O=new Blob([A.data],{type:"application/octet-stream;charset=UTF-8"});let k={suffix:"."+((m=p==null?void 0:p.split("."))==null?void 0:m[((h=p==null?void 0:p.split("."))==null?void 0:h.length)-1]),blob:O,mtlBlobs:[]};return d.push(k),k});return await Promise.all(g),g}else{let g=c==null?void 0:c.find(w=>w==null?void 0:w.includes(".obj")),p=await r.axios.get(g,{responseType:"blob",headers:{"Content-Type":"application/json"}});const A=new Blob([p.data],{type:"application/octet-stream;charset=UTF-8"});let O=c==null?void 0:c.filter(w=>w==null?void 0:w.includes(".mtl")),k=[],h=O==null?void 0:O.map(async w=>{let se=await r.axios.get(g,{responseType:"blob",headers:{"Content-Type":"application/json"}});const Ce=new Blob([se.data],{type:"application/octet-stream;charset=UTF-8"});return k.push(Ce),se});await Promise.all(h);let m={suffix:"."+((N=g==null?void 0:g.split("."))==null?void 0:N[((l=g==null?void 0:g.split("."))==null?void 0:l.length)-1]),blob:A,mtlBlobs:k};return d.push(m),m}});await Promise.all(o)}M.value.loadModelByDefaultPath(d)}};return(a,i)=>{const u=e.resolveComponent("el-dialog"),d=e.resolveComponent("el-button"),v=e.resolveComponent("el-avatar"),o=e.resolveComponent("el-header"),c=e.resolveComponent("el-container"),l=e.resolveComponent("el-icon"),N=e.resolveComponent("el-input"),g=e.resolveComponent("el-aside"),p=e.resolveComponent("router-view"),A=e.resolveComponent("el-main"),O=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,{modelValue:ve.value,"onUpdate:modelValue":i[0]||(i[0]=k=>ve.value=k),style:{height:"700px",width:"1800px"}},{default:e.withCtx(()=>[e.createVNode(Ee.default,{ref_key:"threeModelRef",ref:M,onGetAnimationData:ie,animationData:Z.value},null,8,["animationData"])]),_:1},8,["modelValue"]),e.withDirectives(e.createVNode(c,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(o,{class:"client-structure-header"},{default:e.withCtx(()=>{var k;return[e.createElementVNode("div",ut,[e.createVNode(d,{id:"transparentBgButton",onClick:e.unref(C.onBack)},{default:e.withCtx(()=>i[3]||(i[3]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[3]},8,["onClick"]),e.createVNode(d,{id:"transparentBgButton",onClick:i[1]||(i[1]=h=>{var m,w;return e.unref(C.clickSavePage)((w=(m=e.unref(F))==null?void 0:m.map(se=>se.value))==null?void 0:w.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[i[4]||(i[4]=e.createTextVNode(" 保存页面 "))]),_:1,__:[4]})]),e.createElementVNode("div",dt,[e.createVNode(je,{breadArray:e.unref(F),onClick:e.unref(C.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",pt,[e.renderSlot(a.$slots,"default",{},void 0,!0),e.createVNode(v,{size:35,src:(k=e.unref(y))==null?void 0:k.avatarUrl},{default:e.withCtx(()=>{var h,m,w;return[e.createTextVNode(e.toDisplayString((h=e.unref(y))!=null&&h.account?(m=e.unref(y))==null?void 0:m.account:((w=e.unref(y))==null?void 0:w.账号)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(L)==="edit"?(e.openBlock(),e.createBlock(c,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",mt,[e.createVNode(oe.modelSelect)]),e.createElementVNode("div",ht,[e.createVNode(oe.modelShow)]),e.createElementVNode("div",ft,[e.createVNode(oe.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(L)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(c,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(o,{class:"client-header"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"client-header-logo",onClick:Ue},e.toDisplayString(e.unref(_)===""?"CPMPIP":e.unref(_)),1),e.createElementVNode("div",gt,[e.createVNode(Ie,{mode:"horizontal"})]),e.createElementVNode("div",_t,[e.createVNode(N,{modelValue:ue.value,"onUpdate:modelValue":i[2]||(i[2]=k=>ue.value=k),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(l,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.search_default))]),_:1})]),_:1},8,["modelValue"]),x.showButton?(e.openBlock(),e.createBlock(d,{key:0,id:"transparentBgButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[i[5]||(i[5]=e.createTextVNode(" 生成APP "))]),_:1,__:[5]})):e.createCommentVNode("",!0),x.showButton&&e.unref(L)==="view"?(e.openBlock(),e.createBlock(d,{key:1,id:"transparentBgButton",onClick:e.unref(C.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[i[6]||(i[6]=e.createTextVNode(" 修改布局 "))]),_:1,__:[6]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0),e.createVNode(Q._sfc_main,null,{dropTitle:e.withCtx(()=>{var k;return[e.createVNode(Pe._sfc_main,{size:"35",avatarUrl:(k=e.unref(y))==null?void 0:k.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var h,m;return[e.createTextVNode(e.toDisplayString(((h=e.unref(y))==null?void 0:h.account)??((m=e.unref(y))==null?void 0:m.姓名)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Ct,[e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:fe,modelValue:"清空数据",buttonType:""}),e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:W,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3}),e.createVNode(c,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(A,{class:"client-main"},{default:e.withCtx(()=>{var k;return[e.createVNode(g,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode($e.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",yt,[he.value?(e.openBlock(),e.createBlock(p,{key:0})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((k=e.unref(r.cloneDeep)(e.unref(C.showItems)))==null?void 0:k.filter(h=>h.comp!=="FormTop"),(h,m)=>{var w;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:m},[((w=h==null?void 0:h.comp)==null?void 0:w.toUpperCase())!=="TABLE"&&h.name?(e.openBlock(),e.createElementBlock("div",wt,e.toDisplayString(h.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(C.getComponents)(h.comp)),{compName:h.name,itemData:h==null?void 0:h.compData,childItemData:h==null?void 0:h.itemChildData,key:(h==null?void 0:h.id)??m,onChange:e.unref(C.onChange),index:(h==null?void 0:h.id)??m,onContentChange:e.unref(C.onContentChange),onPageChange:e.unref(C.onPageChange),onRowClick:te},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])),[[O,e.unref(K)]])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(L)==="view"],[O,e.unref(J)]]),e.createElementVNode("div",null,[e.createVNode(Q.ssDialog,{visible:V.value,onBeforeDestroy:_e,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(Ee.default,{ref_key:"threeModelRef",ref:M},null,512)]),_:1},8,["visible"])])],64)}}}),kt=me._export_sfc(vt,[["__scopeId","data-v-9f249b2b"]]),Bt={class:"system-wrap"},Vt={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},platform:{type:String,default:"browser"},showButton:{type:Boolean,default:!0},content:String,jsonContents:Array},emits:["buildContent","showChild"],setup(x,{emit:X}){const n=we.useModelComp(r.pinia),V=ye.useUnit(r.pinia),F=r.useMenuState();e.ref(!1);const z=e.ref(!0),s=x,G=X,S=y=>{G("showChild",y)},$=e.computed(()=>{switch(s==null?void 0:s.platform){case"browser":return Ae.browserThemeConfig;case"client":return Ae.clientThemeConfig}}),H=y=>{const U=document.documentElement;y==null||y.forEach(L=>{U.style.setProperty(L.name,L.value)})};e.watch(()=>s.platform,(y,U)=>{y&&H($.value)},{immediate:!0});const le=()=>{G("buildContent")};return e.watch(()=>[s==null?void 0:s.content,s==null?void 0:s.jsonContents],async()=>{var L,q,Y,D;if(((L=s==null?void 0:s.jsonContents)==null?void 0:L.length)>0){n.setOriginalData(s==null?void 0:s.jsonContents);return}if(!(s!=null&&s.content)||((q=s==null?void 0:s.content)==null?void 0:q.length)===0)return;z.value=!0,F.setImportLoading(!0);let y=[],U=[];V.setSelectTitle([]),V.setSelectIndex(""),V.setSelectMenu(""),(D=(Y=s==null?void 0:s.content)==null?void 0:Y.filter(f=>f!==""))==null||D.forEach(f=>{U.push(C.expandToNewContents(f))}),y=U==null?void 0:U[0],await C.savePageDataAsync(y),await ne.loadingSystemType(),n.setOriginalData(y),F.setImportLoading(!1)},{deep:!0,immediate:!0}),(y,U)=>(e.openBlock(),e.createElementBlock("div",Bt,[x.platform==="browser"?(e.openBlock(),e.createBlock(ct,{key:0,showButton:x.showButton},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{},void 0,!0)]),_:3},8,["showButton"])):(e.openBlock(),e.createBlock(kt,{key:1,windowConfig:x.windowConfig,showButton:x.showButton,onBuildContent:le,onShowChild:S},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"]))]))}},Nt=me._export_sfc(Vt,[["__scopeId","data-v-5e89b0de"]]),xt={class:"add-model-content"},bt={key:0,class:"model-operate"},Tt={class:"model-select"},Ft={class:"model-fill"},St={key:1,class:"model-view"},Dt={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},pathContent:{type:String,default:""},pageKey:{type:String,default:""}},emits:["change","contentChange","buildContent","openThreeBuild","threeData"],setup(x,{emit:X}){const n=x,V=X,F=e.ref([]),z=e.ref(0),s=e.ref([]),G=e.ref([]),S=e.ref(0),$=we.useModelComp(r.pinia),H=r.useMenuState(r.pinia),{itemData:le,originalData:y}=r.storeToRefs($),{activeMenuPath:U,platform:L}=r.storeToRefs(H),q=e.ref(null),Y=e.ref(0),D=e.ref([]);e.ref("");const f=e.ref(0),M=()=>{V("buildContent")};e.watch(()=>n==null?void 0:n.pageKey,async()=>{let _={};if((n==null?void 0:n.pageKey)!==""){const j=await ne.getItemData(n==null?void 0:n.pageKey,sessionStorage.getItem("systemKey"),""),K=await ne.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let E=["管长","外径"],B={};K==null||K.forEach(t=>{var R;(t==null?void 0:t.comp)==="Form"&&((R=t==null?void 0:t.compData)==null||R.forEach(b=>{var te;(b==null?void 0:b.key)==="formContent"&&((te=b==null?void 0:b.contents)==null||te.forEach(W=>{E.includes(W==null?void 0:W.key)&&(B[W.key]=W.value)}))}))}),j==null||j.forEach(t=>{var R,b,te,W,fe,ge;if((t==null?void 0:t.comp)==="Table"){let _e=[],ue=(te=(b=(R=t==null?void 0:t.compData)==null?void 0:R.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:b.contents)==null?void 0:te.map(T=>T==null?void 0:T.label),he=(ge=(fe=(W=t==null?void 0:t.compData)==null?void 0:W.find(T=>(T==null?void 0:T.key)==="tableContents"))==null?void 0:fe.contents)==null?void 0:ge.map(T=>(T=T==null?void 0:T.filter(ie=>!(ie!=null&&ie.id)),T));he==null||he.forEach(T=>{_e.push(ne.getValueToObjectValue(T,ue==null?void 0:ue.filter(ie=>ie!=="操作")))}),_[t.name]=_e,_[t.name+"Content"]=t}}),_.extra=B,V("threeData",_)}},{deep:!0,immediate:!0});const Z=_=>{V("openThreeBuild",_)};e.watch(()=>n==null?void 0:n.pathContent,()=>{(n==null?void 0:n.pathContent)!==""&&$.setSystemPath(n==null?void 0:n.pathContent)},{deep:!0,immediate:!0});const ee=_=>{V("contentChange",_)},J=_=>{var K;const j=(K=r.cloneDeep(_==null?void 0:_.wholeValue))==null?void 0:K.map(E=>{var B;return(E==null?void 0:E.comp)==="Form"&&(E.compData=(B=E.compData)==null?void 0:B.map(t=>((t==null?void 0:t.key)==="formContent"&&(t.contents=Oe.arrayToNumberArray(t==null?void 0:t.contents)),t))),E});V("change",{originalContents:y.value,currentContents:_==null?void 0:_.wholeValue,editContent:_==null?void 0:_.editValue,arrayToContents:j})};e.watch(()=>s.value,()=>{f.value===s.value.length&&s.value.length!==0&&(F.value=s.value)},{deep:!0,immediate:!0});const P=()=>{q.value!==null&&q.value.click()},re=async _=>{const j=_.target.files;if(!j)return;new FileReader,F.value=[],s.value=[],f.value=j.length;const K=Array.from(j).map(async E=>await new Promise(B=>{const t=new FileReader;t.onload=R=>{try{s.value.push(R.target.result),Y.value++}catch(b){console.error("解析失败:",b);return}},t.onerror=()=>B(`读取 ${E.name} 失败`),t.readAsText(E),_.target.value="",q.value=null,z.value++}));await Promise.all(K)};return e.watch(()=>[n==null?void 0:n.content,n==null?void 0:n.jsonContents],async()=>{await ne.loadingSystemType(),F.value=n.content,G.value=n==null?void 0:n.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>Y.value,()=>{var _;((_=D.value)==null?void 0:_.length)!==0&&($.setOriginalData(D.value),$.setItemData(D.value))},{deep:!0,immediate:!0}),(_,j)=>{const K=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",xt,[(n==null?void 0:n.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",Tt,[e.createVNode(oe.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:S.value},[e.createVNode(oe.modelShow)])),e.createElementVNode("div",Ft,[e.createVNode(oe.modelFill)])])):e.createCommentVNode("",!0),(n==null?void 0:n.mode)==="view"?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(),e.createBlock(Nt,{showButton:x.showButton,platform:e.unref(L),content:F.value,onChange:J,jsonContents:G.value,onContentChange:ee,onBuildContent:M,key:S.value,onShowChild:Z},{default:e.withCtx(()=>{var B;return[((B=n==null?void 0:n.jsonContents)==null?void 0:B.length)===0&&(n!=null&&n.showButton)?(e.openBlock(),e.createBlock(E,{key:0,id:"transparentBgButton",onClick:P},{icon:e.withCtx(()=>[e.createVNode(K,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:z.value,ref_key:"fileInput",ref:q,accept:".txt, .inm, .iml, .imd",onChange:re,style:{display:"none"},multiple:""},null,32)),j[0]||(j[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},Rt=me._export_sfc(Dt,[["__scopeId","data-v-1ee6cc73"]]);exports.default=Rt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),oe=require("./index-CzX-ygFB.cjs"),$e=require("./index-meJ6fhCn.cjs"),C=require("./index.vue_vue_type_style_index_0_scoped_1ee6cc73_lang-DIgKXB3H.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=require("./menu-CcabvNj6.cjs"),Me=require("./login-C7jVTvUQ.cjs"),pe=require("./index-BpPyaNFa.cjs"),we=require("./modelComp-B8kjqlTY.cjs"),Q=require("./index-Viq8WtM7.cjs"),ye=require("./index-Bf6gYS22.cjs"),Pe=require("./index.vue_vue_type_script_setup_true_lang-DoqHilMG.cjs"),Ee=require("./threeModel-CGGVqbwo.cjs"),Ke=require("./index-DN5pkkVv.cjs");require("vue-router");const ne=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BfNWM92-.cjs"),Oe=require("./array-B_wsE8_t.cjs"),Ae=require("./index.vue_vue_type_style_index_0_scoped_57a7854d_lang-DG6bewEh.cjs"),ze={class:"horizontal-f-18"};function Ge(x,X,n,V,F,z){const s=e.resolveComponent("svg-icon"),G=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(G,{mode:x.mode,menuList:x.renderMenuList,onClickMenu:x.clickMenu,onOpenMenu:x.openMenu,onCloseMenu:x.closeMenu},{title:e.withCtx(({menu:S})=>[e.createVNode(s,{class:"horizontal-icon-18",name:S.icon??"Fold",style:{"margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",ze,e.toDisplayString(S.title??""),1)]),_:1},8,["mode","menuList","onClickMenu","onOpenMenu","onCloseMenu"])}const Ie=me._export_sfc(C._sfc_main,[["render",Ge],["__scopeId","data-v-6dc766db"]]),He={class:"bread-content"},Xe=["onClick"],Je={key:0,class:"split-title"},We={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(x,{emit:X}){const n=x,V=e.ref([]),F=X;e.onMounted(()=>{V.value=n==null?void 0:n.breadArray}),e.watch(()=>n==null?void 0:n.breadArray,()=>{V.value=n==null?void 0:n.breadArray},{deep:!0,immediate:!0});const z=s=>{F("click",s)};return(s,G)=>(e.openBlock(),e.createElementBlock("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,(S,$)=>{var H;return e.openBlock(),e.createElementBlock("div",{key:$,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:le=>z(S),style:e.normalizeStyle({opacity:((H=V.value)==null?void 0:H.length)-1===$?"0.7":"1"})},e.toDisplayString(S.value),13,Xe),$!==V.value.length-1&&Array.isArray(V.value)?(e.openBlock(),e.createElementBlock("div",Je,e.toDisplayString("/"))):e.createCommentVNode("",!0)])}),128))]))}},je=me._export_sfc(We,[["__scopeId","data-v-ded7e2bd"]]),Qe={class:"structure-buttons"},Ye={class:"structure-paths"},Ze={class:"client-header-user"},et={class:"model-select"},tt={class:"model-show"},ot={class:"model-fill"},at={class:"client-header-menu"},nt={class:"client-header-user"},lt={class:"drop-menu"},rt={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},it={key:0,class:"item-view-group"},st=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},setup(x){const X=ye.useUnit(r.pinia),{selectTitle:n}=r.storeToRefs(X),V=Me.useLoginState(),{loginUserInfo:F}=r.storeToRefs(V),z=we.useModelComp(r.pinia),{isEdit:s,routeToChildPath:G}=r.storeToRefs(z),S=r.useMenuState(r.pinia),{importLoading:$,activeAsideMenu:H,contentLoading:le}=r.storeToRefs(S),y=e.ref(""),U=e.computed(()=>H.value.isRouter),L=()=>{sessionStorage.clear(),window.location.reload()},q=async()=>{var f,M,Z,ee;S.setImportLoading(!0);const D=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((f=D==null?void 0:D.data)==null?void 0:f.code)===200){let J=(ee=(Z=(M=D==null?void 0:D.data)==null?void 0:M.result)==null?void 0:Z.map(P=>{var re;if(((re=P==null?void 0:P.key)==null?void 0:re.layer)!=="superAdmin")return P==null?void 0:P.id}))==null?void 0:ee.filter(P=>P);await r.batchDeleteInsofDataApi({ids:J}),S.setRawMenus([])}S.setImportLoading(!1)},Y=()=>{S.setActiveMenuPath(G.value),z.setRouteToChildPath("")};return(D,f)=>{const M=e.resolveComponent("el-button"),Z=e.resolveComponent("el-avatar"),ee=e.resolveComponent("el-header"),J=e.resolveComponent("el-container"),P=e.resolveComponent("el-icon"),re=e.resolveComponent("el-input"),_=e.resolveComponent("el-aside"),j=e.resolveComponent("router-view"),K=e.resolveComponent("el-main"),E=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createVNode(J,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(ee,{class:"client-structure-header"},{default:e.withCtx(()=>{var B;return[e.createElementVNode("div",Qe,[e.createVNode(M,{id:"transparentBgButton",onClick:e.unref(C.onBack)},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[2]},8,["onClick"]),e.createVNode(M,{id:"transparentBgButton",onClick:f[0]||(f[0]=t=>{var R,b;return e.unref(C.clickSavePage)((b=(R=e.unref(n))==null?void 0:R.map(te=>te.value))==null?void 0:b.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[f[3]||(f[3]=e.createTextVNode(" 保存页面 "))]),_:1,__:[3]})]),e.createElementVNode("div",Ye,[e.createVNode(je,{breadArray:e.unref(n),onClick:e.unref(C.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",Ze,[e.renderSlot(D.$slots,"default",{},void 0,!0),e.createVNode(Z,{size:35,src:(B=e.unref(F))==null?void 0:B.avatarUrl},{default:e.withCtx(()=>{var t;return[e.createTextVNode(e.toDisplayString(((t=e.unref(F))==null?void 0:t.account)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(s)==="edit"?(e.openBlock(),e.createBlock(J,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",et,[e.createVNode(oe.modelSelect)]),e.createElementVNode("div",tt,[e.createVNode(oe.modelShow)]),e.createElementVNode("div",ot,[e.createVNode(oe.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(s)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(J,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(ee,{class:"client-header"},{default:e.withCtx(()=>[f[6]||(f[6]=e.createElementVNode("div",{class:"client-header-logo"}," ISIP ",-1)),e.createElementVNode("div",at,[e.createVNode(Ie,{mode:"horizontal"})]),e.createElementVNode("div",nt,[e.createVNode(re,{modelValue:y.value,"onUpdate:modelValue":f[1]||(f[1]=B=>y.value=B),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(P,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.search_default))]),_:1})]),_:1},8,["modelValue"]),x.showButton?(e.openBlock(),e.createBlock(M,{key:0,id:"transparentBgButton",onClick:e.unref(C.clickGenerateApp)},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[f[4]||(f[4]=e.createTextVNode(" 生成APP "))]),_:1,__:[4]},8,["onClick"])):e.createCommentVNode("",!0),x.showButton&&e.unref(s)==="view"?(e.openBlock(),e.createBlock(M,{key:1,id:"transparentBgButton",onClick:e.unref(C.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[f[5]||(f[5]=e.createTextVNode(" 修改布局 "))]),_:1,__:[5]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(D.$slots,"default",{},void 0,!0),e.createVNode(Q._sfc_main,null,{dropTitle:e.withCtx(()=>{var B;return[e.createVNode(Pe._sfc_main,{size:"35",avatarUrl:(B=e.unref(F))==null?void 0:B.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var t,R,b;return[e.createTextVNode(e.toDisplayString((t=e.unref(F))!=null&&t.account?(R=e.unref(F))==null?void 0:R.account:((b=e.unref(F))==null?void 0:b.账号)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",lt,[e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:q,modelValue:"清空数据",buttonType:""}),e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:L,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3,__:[6]}),e.createVNode(J,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(K,{class:"client-main"},{default:e.withCtx(()=>{var B;return[e.createVNode(_,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode($e.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",rt,[U.value?(e.openBlock(),e.createBlock(j,{key:0})):e.createCommentVNode("",!0),e.unref(G)!==""?(e.openBlock(),e.createBlock(Q._sfc_main$1,{key:1,class:"calculator-content back-content",onClickTrigger:Y,modelValue:"返回"})):e.createCommentVNode("",!0),U.value?e.createCommentVNode("",!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList((B=e.unref(r.cloneDeep)(e.unref(C.showItems)))==null?void 0:B.filter(t=>t.comp!=="FormTop"),(t,R)=>{var b;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:R},[((b=t==null?void 0:t.comp)==null?void 0:b.toUpperCase())!=="TABLE"&&t.name?(e.openBlock(),e.createElementBlock("div",it,e.toDisplayString(t.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(C.getComponents)(t.comp)),{compName:t.name,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:(t==null?void 0:t.id)??R,onChange:e.unref(C.onChange),index:(t==null?void 0:t.id)??R,onContentChange:e.unref(C.onContentChange),onPageChange:e.unref(C.onPageChange)},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])),[[E,e.unref(le)]])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(s)==="view"],[E,e.unref($)]])],64)}}}),ct=me._export_sfc(st,[["__scopeId","data-v-19ba8210"]]),ke=[{key:"FitCurve_Eleven",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35326658522693",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources"},{key:"MakeShape",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018179530309",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018179530309",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources"},{key:"FillEmpty",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35018289382469",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35018289382469",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources"},{key:"ToolPathFakeFast",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35484063607109",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35484063607109",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources"},{key:"FiveAxisCalculator",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35237389477957",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35237389477957",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources"},{key:"DetectionAlgorithm",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"},{key:"FeatureSelectionAlgorithm_FFS",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35277984187973",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35277984187973",download:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources"},{key:"AIParameterOptimization",value:"http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",resources:"http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"}],Be=[{key:"型线生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35326658522693/outputResources/sampling_points_20.cpt"},{key:"曲面生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018179530309/outputResources/output.obj"},{key:"叶片生成",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35018289382469/outputResources/output_TwoSections_completed.obj"},{key:"轨迹规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35484063607109/outputResources/complete_data.txt"},{key:"加工规划",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35237389477957/outputResources/NC_BC.NC"},{key:"产品检测",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/source.pcd,http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources/target.pcd"},{key:"参数筛选训练方法",value:"http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35277984187973/outputResources/fitness_iteration.png"}],ut={class:"structure-buttons"},dt={class:"structure-paths"},pt={class:"client-header-user"},mt={class:"model-select"},ht={class:"model-show"},ft={class:"model-fill"},gt={class:"client-header-menu"},_t={class:"client-header-user"},Ct={class:"drop-menu"},yt={class:"client-main-operate","element-loading-text":"正在加载页面数据..."},wt={key:0,class:"item-view-group"},vt=e.defineComponent({__name:"index2",props:{windowConfig:{type:Object,default:()=>{}},showButton:{type:Boolean,default:!0}},emits:["showChild","buildContent"],setup(x,{emit:X}){const n=ye.useUnit(r.pinia),V=e.ref(!1);e.ref(0),e.ref(!1);const{selectTitle:F}=r.storeToRefs(n),z=e.ref(!1),s=e.ref(!1);e.ref(!1);const G=ye.useTableComp(r.pinia),S=e.ref(!1),{tableShowThree:$}=r.storeToRefs(G),H=e.ref(),le=Me.useLoginState(),{loginUserInfo:y}=r.storeToRefs(le);e.ref(null);const U=we.useModelComp(r.pinia),{isEdit:L}=r.storeToRefs(U),q=r.useMenuState(r.pinia),Y=Ke.useFormComp(r.pinia),{objUrl:D,blobUrls:f}=r.storeToRefs(Y),M=e.ref(null);e.ref(!1);const Z=e.ref(),ee=e.ref(!0);e.ref(!1);const{importLoading:J,activeMenuPath:P,activeTopMenuPath:re,platName:_,activeAsideMenu:j,contentLoading:K}=r.storeToRefs(q),E=e.ref(!1),B=e.ref(!1),t=e.ref(!1),R=X,b=()=>{R("buildContent")};e.watch(()=>P.value,async a=>{a&&(t.value=!0),a==="弯管仿真加工管理/仿真动画生成"?E.value=!0:E.value=!1,a==="弯管仿真加工管理/程序输出"?B.value=!0:B.value=!1,Be!=null&&Be.find(i=>{var u;return(i==null?void 0:i.key)===((u=a==null?void 0:a.split("/"))==null?void 0:u[(a==null?void 0:a.split("/").length)-1])})?S.value=!0:S.value=!1},{immediate:!0});const te=a=>{if((a==null?void 0:a.type)==="table"){let i=Object.values(a==null?void 0:a.row),u=i==null?void 0:i.find(d=>typeof d=="string"&&((d==null?void 0:d.includes(".urdf"))||(d==null?void 0:d.includes(".obj"))));u&&(H.value={url:u,row:a==null?void 0:a.row},R("showChild",{url:u,row:a==null?void 0:a.row}))}},W=()=>{sessionStorage.clear(),window.location.reload()},fe=async()=>{var i,u,d,v;q.setImportLoading(!0);const a=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey")}});if(((i=a==null?void 0:a.data)==null?void 0:i.code)===200){let o=(v=(d=(u=a==null?void 0:a.data)==null?void 0:u.result)==null?void 0:d.map(c=>{var l;if(((l=c==null?void 0:c.key)==null?void 0:l.layer)!=="superAdmin")return c==null?void 0:c.id}))==null?void 0:v.filter(c=>c);await r.batchDeleteInsofDataApi({ids:o}),q.setRawMenus([])}q.setImportLoading(!1)},ge=async a=>{var d,v,o,c,l,N,g;const i=(d=a==null?void 0:a.split("/"))==null?void 0:d[0],u=await r.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey"),pageKey:i}});return((v=u==null?void 0:u.data)==null?void 0:v.type)==="success"?((g=(N=(l=(c=(o=u==null?void 0:u.data)==null?void 0:o.result)==null?void 0:c[0])==null?void 0:l.value)==null?void 0:N.tableData)==null?void 0:g.隐藏三维显示)!==!0:!0};e.watch(()=>C.showItems.value,()=>{var a,i,u,d,v;if(((a=C.showItems.value)==null?void 0:a.length)===2&&((i=C.showItems.value)!=null&&i.find(o=>(o==null?void 0:o.name)==="输入"))&&((u=C.showItems.value)!=null&&u.find(o=>(o==null?void 0:o.name)==="输出"))){const o=(d=C.showItems.value)==null?void 0:d.find(c=>(c==null?void 0:c.name)==="输出");s.value=((v=o==null?void 0:o.comp)==null?void 0:v.toUpperCase())==="FORM",z.value=!0}else z.value=!1,s.value=!1},{deep:!0,immediate:!0}),e.watch(()=>P.value,async()=>{P.value&&(ee.value=await ge(P.value))},{deep:!0,immediate:!0}),e.watch(()=>[D.value,M.value],()=>{var a;((a=D.value)==null?void 0:a.length)>0&&M.value&&M.value.addModelsFromUrls(D.value)},{immediate:!0,deep:!0}),e.watch(()=>[f==null?void 0:f.value],async()=>{var a,i,u,d,v;if(f!=null&&f.value&&((a=f==null?void 0:f.value)==null?void 0:a.length)>0&&!S.value&&!((i=C.showItems.value)!=null&&i.find(o=>(o==null?void 0:o.name)==="输入")&&((u=C.showItems.value)!=null&&u.find(o=>(o==null?void 0:o.name)==="输出")))){V.value=!0;let o=[];const c=await((d=r.cloneDeep(f==null?void 0:f.value))==null?void 0:d.map(async l=>{var O,k,h,m,w,se,Ce,Ve,Ne,xe;let N,g,p;l!=null&&l.blob.includes("undefined")?p=(k=(O=l==null?void 0:l.blob)==null?void 0:O.split("undefined,"))==null?void 0:k[1]:p=l==null?void 0:l.blob;let A=p==null?void 0:p.split(",");if((A==null?void 0:A.length)>1){let ce=await(A==null?void 0:A.map(async I=>{var ae,be,Te,Fe,Se,De;N=await r.axios.get(I,{responseType:"blob",headers:{"Content-Type":"application/json"}});let de=[];if(((ae=l==null?void 0:l.mtlBlobs)==null?void 0:ae.length)>0){let Le=await((be=l==null?void 0:l.mtlBlobs)==null?void 0:be.map(async qe=>{let Re=await r.axios.get(qe,{responseType:"blob",headers:{"Content-Type":"application/json"}});return de.push(new Blob([Re.data],{type:"application/octet-stream;charset=UTF-8"})),Re}));await Promise.all(Le)}return((Fe=I==null?void 0:I.split("."))==null?void 0:Fe[((Te=I==null?void 0:I.split("."))==null?void 0:Te.length)-1])!=="undefined"&&o.push({suffix:"."+((De=I==null?void 0:I.split("."))==null?void 0:De[((Se=I==null?void 0:I.split("."))==null?void 0:Se.length)-1]),blob:new Blob([N.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:de}),N}));await Promise.all(ce)}else if(!(p!=null&&p.includes("https://"))&&!(p!=null&&p.includes("http://"))){N=await Q.downloadAvatarApi({url:p});let ce=[];if(((h=l==null?void 0:l.mtlBlobs)==null?void 0:h.length)>0){let I=await((m=l==null?void 0:l.mtlBlobs)==null?void 0:m.map(async de=>{let ae=await Q.downloadAvatarApi({url:de});return ce.push(new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"})),ae}));await Promise.all(I)}g={suffix:"."+((se=p==null?void 0:p.split("."))==null?void 0:se[((w=p==null?void 0:p.split("."))==null?void 0:w.length)-1]),blob:new Blob([N.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ce}}else{N=await r.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}});let ce=[];if(((Ce=l==null?void 0:l.mtlBlobs)==null?void 0:Ce.length)>0){let I=await((Ve=l==null?void 0:l.mtlBlobs)==null?void 0:Ve.map(async de=>{let ae=await r.axios.get(de,{responseType:"blob",headers:{"Content-Type":"application/json"}});return ce.push(new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"})),ae}));await Promise.all(I)}g={suffix:"."+((xe=p==null?void 0:p.split("."))==null?void 0:xe[((Ne=p==null?void 0:p.split("."))==null?void 0:Ne.length)-1]),blob:new Blob([N.data],{type:"application/octet-stream;charset=UTF-8"}),mtlBlobs:ce}}g&&o.push(g)}));await Promise.all(c),(o==null?void 0:o.length)!==0&&((v=M.value)==null||v.loadModelByDefaultPath(o))}},{immediate:!0,deep:!0});const _e=()=>{V.value=!1,M.value=null};e.watch(()=>$.value,async()=>{var i,u,d,v;if($.value!==""&&$.value){let o=(i=P.value)==null?void 0:i.split("/"),c=o[(o==null?void 0:o.length)-2];const N=(((u=ke==null?void 0:ke.find(A=>(A==null?void 0:A.key)===c))==null?void 0:u.download)??"")+"/"+$.value,g=sessionStorage.getItem("magicToken")===""?"123456":sessionStorage.getItem("magicToken"),p=await r.axios.post(N,null,{responseType:"blob",headers:{Authorization:g,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}});var a=new Blob([p.data],{type:"application/octet-stream;charset=UTF-8"});""+((v=(d=$.value)==null?void 0:d.split("."))==null?void 0:v[1])}},{deep:!0,immediate:!0});const ue=e.ref("");e.ref("open"),e.ref("open"),e.ref(!1),e.computed(()=>C.showItems.value);const he=e.computed(()=>j.value.isRouter),T=a=>{let i=r.cloneDeep(a),u=[],d=[];return i==null||i.forEach((v,o)=>{o===(a==null?void 0:a.length)-1?(d.push(v),u.push(d)):((d==null?void 0:d.length)!==0&&v.includes(".obj")&&(u.push(d),d=[]),d.push(v))}),u},ie=async()=>{let a={};const i=await ne.getItemData("弯管仿真加工管理/仿真动画生成",sessionStorage.getItem("systemKey"),""),u=await ne.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let d=["管长","外径"],v={};u==null||u.forEach(o=>{var c;(o==null?void 0:o.comp)==="Form"&&((c=o==null?void 0:o.compData)==null||c.forEach(l=>{var N;(l==null?void 0:l.key)==="formContent"&&((N=l==null?void 0:l.contents)==null||N.forEach(g=>{d.includes(g==null?void 0:g.key)&&(v[g.key]=g.value)}))}))}),i==null||i.forEach(o=>{var c,l,N,g,p,A;if((o==null?void 0:o.comp)==="Table"){let O=[],k=(N=(l=(c=o==null?void 0:o.compData)==null?void 0:c.find(m=>(m==null?void 0:m.key)==="header"))==null?void 0:l.contents)==null?void 0:N.map(m=>m==null?void 0:m.label),h=(A=(p=(g=o==null?void 0:o.compData)==null?void 0:g.find(m=>(m==null?void 0:m.key)==="tableContents"))==null?void 0:p.contents)==null?void 0:A.map(m=>(m=m==null?void 0:m.filter(w=>!(w!=null&&w.id)),m));h==null||h.forEach(m=>{O.push(ne.getValueToObjectValue(m,k==null?void 0:k.filter(w=>w!=="操作")))}),a[o.name]=O,a[o.name+"Content"]=o}}),a.extra=v,Z.value=a},ve=e.ref(!1),Ue=async()=>{var a,i;if(ve.value=!0,H.value){const u=H.value;let d=[];if(typeof(u==null?void 0:u.url)=="string"){let v=(a=u==null?void 0:u.url)==null?void 0:a.split(","),o=(i=T(v))==null?void 0:i.map(async c=>{var l,N;if((c==null?void 0:c.length)===1){let g=c==null?void 0:c.map(async p=>{var h,m;let A=await r.axios.get(p,{responseType:"blob",headers:{"Content-Type":"application/json"}});const O=new Blob([A.data],{type:"application/octet-stream;charset=UTF-8"});let k={suffix:"."+((m=p==null?void 0:p.split("."))==null?void 0:m[((h=p==null?void 0:p.split("."))==null?void 0:h.length)-1]),blob:O,mtlBlobs:[]};return d.push(k),k});return await Promise.all(g),g}else{let g=c==null?void 0:c.find(w=>w==null?void 0:w.includes(".obj")),p=await r.axios.get(g,{responseType:"blob",headers:{"Content-Type":"application/json"}});const A=new Blob([p.data],{type:"application/octet-stream;charset=UTF-8"});let O=c==null?void 0:c.filter(w=>w==null?void 0:w.includes(".mtl")),k=[],h=O==null?void 0:O.map(async w=>{let se=await r.axios.get(g,{responseType:"blob",headers:{"Content-Type":"application/json"}});const Ce=new Blob([se.data],{type:"application/octet-stream;charset=UTF-8"});return k.push(Ce),se});await Promise.all(h);let m={suffix:"."+((N=g==null?void 0:g.split("."))==null?void 0:N[((l=g==null?void 0:g.split("."))==null?void 0:l.length)-1]),blob:A,mtlBlobs:k};return d.push(m),m}});await Promise.all(o)}M.value.loadModelByDefaultPath(d)}};return(a,i)=>{const u=e.resolveComponent("el-dialog"),d=e.resolveComponent("el-button"),v=e.resolveComponent("el-avatar"),o=e.resolveComponent("el-header"),c=e.resolveComponent("el-container"),l=e.resolveComponent("el-icon"),N=e.resolveComponent("el-input"),g=e.resolveComponent("el-aside"),p=e.resolveComponent("router-view"),A=e.resolveComponent("el-main"),O=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(u,{modelValue:ve.value,"onUpdate:modelValue":i[0]||(i[0]=k=>ve.value=k),style:{height:"700px",width:"1800px"}},{default:e.withCtx(()=>[e.createVNode(Ee.default,{ref_key:"threeModelRef",ref:M,onGetAnimationData:ie,animationData:Z.value},null,8,["animationData"])]),_:1},8,["modelValue"]),e.withDirectives(e.createVNode(c,{class:"client-container"},{default:e.withCtx(()=>[e.createVNode(o,{class:"client-structure-header"},{default:e.withCtx(()=>{var k;return[e.createElementVNode("div",ut,[e.createVNode(d,{id:"transparentBgButton",onClick:e.unref(C.onBack)},{default:e.withCtx(()=>i[3]||(i[3]=[e.createTextVNode(" 返回页面 ")])),_:1,__:[3]},8,["onClick"]),e.createVNode(d,{id:"transparentBgButton",onClick:i[1]||(i[1]=h=>{var m,w;return e.unref(C.clickSavePage)((w=(m=e.unref(F))==null?void 0:m.map(se=>se.value))==null?void 0:w.join("/"))})},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"Store"})]),default:e.withCtx(()=>[i[4]||(i[4]=e.createTextVNode(" 保存页面 "))]),_:1,__:[4]})]),e.createElementVNode("div",dt,[e.createVNode(je,{breadArray:e.unref(F),onClick:e.unref(C.onClick)},null,8,["breadArray","onClick"])]),e.createElementVNode("div",pt,[e.renderSlot(a.$slots,"default",{},void 0,!0),e.createVNode(v,{size:35,src:(k=e.unref(y))==null?void 0:k.avatarUrl},{default:e.withCtx(()=>{var h,m,w;return[e.createTextVNode(e.toDisplayString((h=e.unref(y))!=null&&h.account?(m=e.unref(y))==null?void 0:m.account:((w=e.unref(y))==null?void 0:w.账号)??"未知"),1)]}),_:1},8,["src"])])]}),_:3}),e.unref(L)==="edit"?(e.openBlock(),e.createBlock(c,{key:0,class:"model-operate",style:{"margin-top":"10px",height:"0px"}},{default:e.withCtx(()=>[e.createElementVNode("div",mt,[e.createVNode(oe.modelSelect)]),e.createElementVNode("div",ht,[e.createVNode(oe.modelShow)]),e.createElementVNode("div",ft,[e.createVNode(oe.modelFill)])]),_:1})):e.createCommentVNode("",!0)]),_:3},512),[[e.vShow,e.unref(L)==="edit"]]),e.withDirectives((e.openBlock(),e.createBlock(c,{class:"client-container","element-loading-text":"正在加载页面数据..."},{default:e.withCtx(()=>[e.createVNode(o,{class:"client-header"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"client-header-logo",onClick:Ue},e.toDisplayString(e.unref(_)===""?"CPMPIP":e.unref(_)),1),e.createElementVNode("div",gt,[e.createVNode(Ie,{mode:"horizontal"})]),e.createElementVNode("div",_t,[e.createVNode(N,{modelValue:ue.value,"onUpdate:modelValue":i[2]||(i[2]=k=>ue.value=k),clearable:"",placeholder:"搜索",style:{width:"130px"}},{prefix:e.withCtx(()=>[e.createVNode(l,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.search_default))]),_:1})]),_:1},8,["modelValue"]),x.showButton?(e.openBlock(),e.createBlock(d,{key:0,id:"transparentBgButton",onClick:b},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"App"})]),default:e.withCtx(()=>[i[5]||(i[5]=e.createTextVNode(" 生成APP "))]),_:1,__:[5]})):e.createCommentVNode("",!0),x.showButton&&e.unref(L)==="view"?(e.openBlock(),e.createBlock(d,{key:1,id:"transparentBgButton",onClick:e.unref(C.onSelectFixContent)},{icon:e.withCtx(()=>[e.createVNode(pe.SvgIcon,{name:"write"})]),default:e.withCtx(()=>[i[6]||(i[6]=e.createTextVNode(" 修改布局 "))]),_:1,__:[6]},8,["onClick"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",{},void 0,!0),e.createVNode(Q._sfc_main,null,{dropTitle:e.withCtx(()=>{var k;return[e.createVNode(Pe._sfc_main,{size:"35",avatarUrl:(k=e.unref(y))==null?void 0:k.avatarUrl,showCropper:!1,banClick:!0},{avatarDefault:e.withCtx(()=>{var h,m;return[e.createTextVNode(e.toDisplayString(((h=e.unref(y))==null?void 0:h.account)??((m=e.unref(y))==null?void 0:m.姓名)??"未知"),1)]}),_:1},8,["avatarUrl"])]}),dropMenu:e.withCtx(()=>[e.createElementVNode("div",Ct,[e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:fe,modelValue:"清空数据",buttonType:""}),e.createVNode(Q._sfc_main$1,{emptyColor:!0,class:"menu-button",onClickTrigger:W,modelValue:"退出登录",buttonType:""})])]),_:1})])]),_:3}),e.createVNode(c,{class:"client-body"},{default:e.withCtx(()=>[e.createVNode(A,{class:"client-main"},{default:e.withCtx(()=>{var k;return[e.createVNode(g,{class:"client-aside"},{default:e.withCtx(()=>[e.createVNode($e.default,{mode:"vertical"})]),_:1}),e.withDirectives((e.openBlock(),e.createElementBlock("div",yt,[he.value?(e.openBlock(),e.createBlock(p,{key:0})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList((k=e.unref(r.cloneDeep)(e.unref(C.showItems)))==null?void 0:k.filter(h=>h.comp!=="FormTop"),(h,m)=>{var w;return e.openBlock(),e.createElementBlock("div",{class:"item-view-content",key:m},[((w=h==null?void 0:h.comp)==null?void 0:w.toUpperCase())!=="TABLE"&&h.name?(e.openBlock(),e.createElementBlock("div",wt,e.toDisplayString(h.name),1)):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(C.getComponents)(h.comp)),{compName:h.name,itemData:h==null?void 0:h.compData,childItemData:h==null?void 0:h.itemChildData,key:(h==null?void 0:h.id)??m,onChange:e.unref(C.onChange),index:(h==null?void 0:h.id)??m,onContentChange:e.unref(C.onContentChange),onPageChange:e.unref(C.onPageChange),onRowClick:te},null,40,["compName","itemData","childItemData","onChange","index","onContentChange","onPageChange"]))])}),128))])),[[O,e.unref(K)]])]}),_:1})]),_:1})]),_:3})),[[e.vShow,e.unref(L)==="view"],[O,e.unref(J)]]),e.createElementVNode("div",null,[e.createVNode(Q.ssDialog,{visible:V.value,onBeforeDestroy:_e,style:{height:"700px",width:"1000px"}},{default:e.withCtx(()=>[e.createVNode(Ee.default,{ref_key:"threeModelRef",ref:M},null,512)]),_:1},8,["visible"])])],64)}}}),kt=me._export_sfc(vt,[["__scopeId","data-v-9f249b2b"]]),Bt={class:"system-wrap"},Vt={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},platform:{type:String,default:"browser"},showButton:{type:Boolean,default:!0},content:String,jsonContents:Array},emits:["buildContent","showChild"],setup(x,{emit:X}){const n=we.useModelComp(r.pinia),V=ye.useUnit(r.pinia),F=r.useMenuState();e.ref(!1);const z=e.ref(!0),s=x,G=X,S=y=>{G("showChild",y)},$=e.computed(()=>{switch(s==null?void 0:s.platform){case"browser":return Ae.browserThemeConfig;case"client":return Ae.clientThemeConfig}}),H=y=>{const U=document.documentElement;y==null||y.forEach(L=>{U.style.setProperty(L.name,L.value)})};e.watch(()=>s.platform,(y,U)=>{y&&H($.value)},{immediate:!0});const le=()=>{G("buildContent")};return e.watch(()=>[s==null?void 0:s.content,s==null?void 0:s.jsonContents],async()=>{var L,q,Y,D;if(((L=s==null?void 0:s.jsonContents)==null?void 0:L.length)>0){n.setOriginalData(s==null?void 0:s.jsonContents);return}if(!(s!=null&&s.content)||((q=s==null?void 0:s.content)==null?void 0:q.length)===0)return;z.value=!0,F.setImportLoading(!0);let y=[],U=[];V.setSelectTitle([]),V.setSelectIndex(""),V.setSelectMenu(""),(D=(Y=s==null?void 0:s.content)==null?void 0:Y.filter(f=>f!==""))==null||D.forEach(f=>{U.push(C.expandToNewContents(f))}),y=U==null?void 0:U[0],await C.savePageDataAsync(y),await ne.loadingSystemType(),n.setOriginalData(y),F.setImportLoading(!1)},{deep:!0,immediate:!0}),(y,U)=>(e.openBlock(),e.createElementBlock("div",Bt,[x.platform==="browser"?(e.openBlock(),e.createBlock(ct,{key:0,showButton:x.showButton},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{},void 0,!0)]),_:3},8,["showButton"])):(e.openBlock(),e.createBlock(kt,{key:1,windowConfig:x.windowConfig,showButton:x.showButton,onBuildContent:le,onShowChild:S},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"default",{},void 0,!0)]),_:3},8,["windowConfig","showButton"]))]))}},Nt=me._export_sfc(Vt,[["__scopeId","data-v-5e89b0de"]]),xt={class:"add-model-content"},bt={key:0,class:"model-operate"},Tt={class:"model-select"},Ft={class:"model-fill"},St={key:1,class:"model-view"},Dt={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},pathContent:{type:String,default:""},pageKey:{type:String,default:""}},emits:["change","contentChange","buildContent","openThreeBuild","threeData"],setup(x,{emit:X}){const n=x,V=X,F=e.ref([]),z=e.ref(0),s=e.ref([]),G=e.ref([]),S=e.ref(0),$=we.useModelComp(r.pinia),H=r.useMenuState(r.pinia),{itemData:le,originalData:y}=r.storeToRefs($),{activeMenuPath:U,platform:L}=r.storeToRefs(H),q=e.ref(null),Y=e.ref(0),D=e.ref([]);e.ref("");const f=e.ref(0),M=()=>{V("buildContent")};e.watch(()=>n==null?void 0:n.pageKey,async()=>{let _={};if((n==null?void 0:n.pageKey)!==""){const j=await ne.getItemData(n==null?void 0:n.pageKey,sessionStorage.getItem("systemKey"),""),K=await ne.getItemData("弯管仿真加工管理/管件解析",sessionStorage.getItem("systemKey"),"");let E=["管长","外径"],B={};K==null||K.forEach(t=>{var R;(t==null?void 0:t.comp)==="Form"&&((R=t==null?void 0:t.compData)==null||R.forEach(b=>{var te;(b==null?void 0:b.key)==="formContent"&&((te=b==null?void 0:b.contents)==null||te.forEach(W=>{E.includes(W==null?void 0:W.key)&&(B[W.key]=W.value)}))}))}),j==null||j.forEach(t=>{var R,b,te,W,fe,ge;if((t==null?void 0:t.comp)==="Table"){let _e=[],ue=(te=(b=(R=t==null?void 0:t.compData)==null?void 0:R.find(T=>(T==null?void 0:T.key)==="header"))==null?void 0:b.contents)==null?void 0:te.map(T=>T==null?void 0:T.label),he=(ge=(fe=(W=t==null?void 0:t.compData)==null?void 0:W.find(T=>(T==null?void 0:T.key)==="tableContents"))==null?void 0:fe.contents)==null?void 0:ge.map(T=>(T=T==null?void 0:T.filter(ie=>!(ie!=null&&ie.id)),T));he==null||he.forEach(T=>{_e.push(ne.getValueToObjectValue(T,ue==null?void 0:ue.filter(ie=>ie!=="操作")))}),_[t.name]=_e,_[t.name+"Content"]=t}}),_.extra=B,V("threeData",_)}},{deep:!0,immediate:!0});const Z=_=>{V("openThreeBuild",_)};e.watch(()=>n==null?void 0:n.pathContent,()=>{(n==null?void 0:n.pathContent)!==""&&$.setSystemPath(n==null?void 0:n.pathContent)},{deep:!0,immediate:!0});const ee=_=>{V("contentChange",_)},J=_=>{var K;const j=(K=r.cloneDeep(_==null?void 0:_.wholeValue))==null?void 0:K.map(E=>{var B;return(E==null?void 0:E.comp)==="Form"&&(E.compData=(B=E.compData)==null?void 0:B.map(t=>((t==null?void 0:t.key)==="formContent"&&(t.contents=Oe.arrayToNumberArray(t==null?void 0:t.contents)),t))),E});V("change",{originalContents:y.value,currentContents:_==null?void 0:_.wholeValue,editContent:_==null?void 0:_.editValue,arrayToContents:j})};e.watch(()=>s.value,()=>{f.value===s.value.length&&s.value.length!==0&&(F.value=s.value)},{deep:!0,immediate:!0});const P=()=>{q.value!==null&&q.value.click()},re=async _=>{const j=_.target.files;if(!j)return;new FileReader,F.value=[],s.value=[],f.value=j.length;const K=Array.from(j).map(async E=>await new Promise(B=>{const t=new FileReader;t.onload=R=>{try{s.value.push(R.target.result),Y.value++}catch(b){console.error("解析失败:",b);return}},t.onerror=()=>B(`读取 ${E.name} 失败`),t.readAsText(E),_.target.value="",q.value=null,z.value++}));await Promise.all(K)};return e.watch(()=>[n==null?void 0:n.content,n==null?void 0:n.jsonContents],async()=>{await ne.loadingSystemType(),F.value=n.content,G.value=n==null?void 0:n.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>Y.value,()=>{var _;((_=D.value)==null?void 0:_.length)!==0&&($.setOriginalData(D.value),$.setItemData(D.value))},{deep:!0,immediate:!0}),(_,j)=>{const K=e.resolveComponent("svg-icon"),E=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",xt,[(n==null?void 0:n.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",Tt,[e.createVNode(oe.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:S.value},[e.createVNode(oe.modelShow)])),e.createElementVNode("div",Ft,[e.createVNode(oe.modelFill)])])):e.createCommentVNode("",!0),(n==null?void 0:n.mode)==="view"?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(),e.createBlock(Nt,{showButton:x.showButton,platform:e.unref(L),content:F.value,onChange:J,jsonContents:G.value,onContentChange:ee,onBuildContent:M,key:S.value,onShowChild:Z},{default:e.withCtx(()=>{var B;return[((B=n==null?void 0:n.jsonContents)==null?void 0:B.length)===0&&(n!=null&&n.showButton)?(e.openBlock(),e.createBlock(E,{key:0,id:"transparentBgButton",onClick:P},{icon:e.withCtx(()=>[e.createVNode(K,{name:"import"})]),default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock("input",{type:"file",key:z.value,ref_key:"fileInput",ref:q,accept:".txt, .inm, .iml, .imd",onChange:re,style:{display:"none"},multiple:""},null,32)),j[0]||(j[0]=e.createTextVNode(" 导入模型 "))]),_:1,__:[0]})):e.createCommentVNode("",!0)]}),_:1},8,["showButton","platform","content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},Rt=me._export_sfc(Dt,[["__scopeId","data-v-1ee6cc73"]]);exports.default=Rt;
@@ -1,5 +1,5 @@
1
1
  import { computed as b, getCurrentInstance as Ze, inject as pe, unref as u, ref as A, onMounted as ue, watch as G, toRef as Ge, onUnmounted as Dn, shallowRef as Ue, nextTick as z, defineComponent as ee, useAttrs as Un, useSlots as dn, createElementBlock as F, openBlock as E, normalizeStyle as je, normalizeClass as S, createCommentVNode as k, Fragment as Ae, createElementVNode as P, renderSlot as W, createBlock as M, withCtx as L, resolveDynamicComponent as Y, mergeProps as ft, withModifiers as Me, createVNode as se, toDisplayString as Q, onBeforeUnmount as Ne, provide as fn, Text as Kn, reactive as vn, isVNode as X, Comment as Yn, h as Wn, watchEffect as Gn, isRef as jn, onScopeDispose as qn, markRaw as vt, toRefs as Xn, resolveComponent as ke, Transition as Zn, withDirectives as at, withKeys as Fe, createTextVNode as st, vShow as rt, render as pn } from "vue";
2
- import { bV as Vt, bW as zt, r as hn, K as mn, bX as Jn, O as gn, x as Qn, bY as eo, k as to, z as no, bZ as oo, a7 as _, aS as bn, bE as St, al as we, U as _t, V as Je, aq as ve, aN as ao, W as Ee, as as qe, aC as yn, ab as le, ah as so, an as ro, ao as io, bj as lo, a1 as Ie, af as xe, _ as Le, X as he, ba as uo, b_ as co, b$ as fo, ag as En, aa as vo, a8 as re, ad as Ke, aK as po, ac as Xe, a2 as wn, aj as Ct, aY as ho, ar as pt, ax as mo, am as Ye, aO as ht, c0 as go, $ as Dt, a0 as bo, aU as Ut, bb as yo, bc as Eo, at as wo, a9 as So, bI as Co, a6 as Kt, a4 as To } from "./menu-DArqZlON.js";
2
+ import { bV as Vt, bW as zt, r as hn, K as mn, bX as Jn, O as gn, x as Qn, bY as eo, k as to, z as no, bZ as oo, a7 as _, aS as bn, bE as St, al as we, U as _t, V as Je, aq as ve, aN as ao, W as Ee, as as qe, aC as yn, ab as le, ah as so, an as ro, ao as io, bj as lo, a1 as Ie, af as xe, _ as Le, X as he, ba as uo, b_ as co, b$ as fo, ag as En, aa as vo, a8 as re, ad as Ke, aK as po, ac as Xe, a2 as wn, aj as Ct, aY as ho, ar as pt, ax as mo, am as Ye, aO as ht, c0 as go, $ as Dt, a0 as bo, aU as Ut, bb as yo, bc as Eo, at as wo, a9 as So, bI as Co, a6 as Kt, a4 as To } from "./menu-wif0xsml.js";
3
3
  function ko(e) {
4
4
  return e;
5
5
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CCe3D1Fi.cjs");const n=require("./menu-B98fDP-p.cjs"),o=require("./index-DY-oa5G1.cjs"),c=require("./index-DxrHtk8v.cjs"),u=require("./index-C_0I-i8V.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await u.getActivePageStructureId(r.value)}),(l,m)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(o.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BfNWM92-.cjs");const n=require("./menu-CcabvNj6.cjs"),o=require("./index-Bf6gYS22.cjs"),c=require("./index-D8su61We.cjs"),u=require("./index-DecdMM1v.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await u.getActivePageStructureId(r.value)}),(l,m)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(o.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;