ss-component-new 1.1.950 → 1.1.952

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 (125) hide show
  1. package/dist/{animationData-SqrGGOQO.js → animationData-0DSVBjMd.js} +2 -2
  2. package/dist/{animationData-DjWuxM3E.cjs → animationData-Bn0YWXec.cjs} +1 -1
  3. package/dist/{index-B6pNjh7l.js → index-6HERMg5A.js} +2 -2
  4. package/dist/{index-kfWzNffR.cjs → index-6WmY_quF.cjs} +1 -1
  5. package/dist/{index-C7AKHlFA.js → index-8VkiGnjx.js} +12 -11
  6. package/dist/{index-B4pCcARR.cjs → index-9hspBVrQ.cjs} +1 -1
  7. package/dist/{index-D-Vm0QZI.js → index-B0brjGG7.js} +2 -2
  8. package/dist/{index-Brh9gtz_.js → index-B3VXOuns.js} +2 -2
  9. package/dist/{index-DikJStn5.js → index-BASZvHDB.js} +3 -3
  10. package/dist/{index-B8jnH8xM.js → index-BHdpNR5e.js} +2 -2
  11. package/dist/{index-B2vssvhT.js → index-B_58n76m.js} +1 -1
  12. package/dist/{index-DyJgOYDf.cjs → index-Bb0-IX0r.cjs} +1 -1
  13. package/dist/{index-DV-wL2ja.cjs → index-Bk69Iv-a.cjs} +1 -1
  14. package/dist/{index-BeVxJ2hi.cjs → index-BkKMx6Mi.cjs} +1 -1
  15. package/dist/index-BktxQlHj.cjs +1 -0
  16. package/dist/{index-DAMYU6o_.js → index-C9IuPPUW.js} +1 -1
  17. package/dist/{index-BmO3B8s7.js → index-CAPx0_D4.js} +4 -4
  18. package/dist/{index-C_UAPhKi.js → index-CE325XGX.js} +2 -2
  19. package/dist/{index-DqoKAMJY.js → index-CEYNN6fZ.js} +1 -1
  20. package/dist/{index-B7aSuUGL.cjs → index-CFx9LRkE.cjs} +1 -1
  21. package/dist/{index-BpXUUM_x.cjs → index-CIbq_yh2.cjs} +1 -1
  22. package/dist/{index-35UcJiu5.cjs → index-CMAV_VWo.cjs} +1 -1
  23. package/dist/{index-DnjWUjwG.js → index-CaG6Ol-E.js} +4 -4
  24. package/dist/{index-BCL9VvjJ.cjs → index-CbKWyPTD.cjs} +1 -1
  25. package/dist/{index-xE1EBOlb.js → index-CfxqvOQm.js} +1 -1
  26. package/dist/{index--jjhKxO0.js → index-CgvGmnrt.js} +1 -1
  27. package/dist/{index-sN974aBA.cjs → index-Cha01gkM.cjs} +1 -1
  28. package/dist/index-Ci10qLSF.js +2383 -0
  29. package/dist/{index-C-Uvn3DR.cjs → index-CiXdAvOe.cjs} +1 -1
  30. package/dist/{index-BuaiGNo8.cjs → index-CjoTckkK.cjs} +1 -1
  31. package/dist/index-Cmylp0A2.cjs +1 -0
  32. package/dist/{index-XNmmCBML.js → index-CpWaVXzt.js} +1 -1
  33. package/dist/{index-UJ0ZUaaU.js → index-D-DWGwjt.js} +1 -1
  34. package/dist/{index-96IsJysm.cjs → index-D-poBUUV.cjs} +1 -1
  35. package/dist/{index-Bpkz9BTu.js → index-D1ESezNO.js} +2 -2
  36. package/dist/{index-YDsg-SEs.cjs → index-D2vARo__.cjs} +1 -1
  37. package/dist/{index-Eiyi7mN_.cjs → index-D4NzVLgw.cjs} +1 -1
  38. package/dist/{index-Cpmpk1Nh.cjs → index-DGYpoXHl.cjs} +1 -1
  39. package/dist/{index-BINlpiin.js → index-DID84L90.js} +1 -1
  40. package/dist/{index-B7OwDzxo.js → index-DIVlYGhN.js} +3 -3
  41. package/dist/{index-CXdkhR-Y.js → index-DKMlkUlr.js} +63 -57
  42. package/dist/{index-7ksIUAcw.js → index-DT15aaaB.js} +2 -2
  43. package/dist/{index-mXhtEVTB.cjs → index-DVI6ZfXI.cjs} +3 -3
  44. package/dist/{index-C3C8fpWD.js → index-DZ8o_2zb.js} +1 -1
  45. package/dist/{index-B4S6m2ur.js → index-DaydkmlQ.js} +5 -5
  46. package/dist/{index-B4lgKjSv.cjs → index-DfWa8gL9.cjs} +1 -1
  47. package/dist/{index-BBquDNVQ.cjs → index-Dh4EvKbD.cjs} +1 -1
  48. package/dist/{index-B6orOoBJ.js → index-Djn_v6B0.js} +4 -4
  49. package/dist/{index-Bp3QdXGm.cjs → index-Dl17ZzsT.cjs} +1 -1
  50. package/dist/index-DlL14fs7.cjs +1 -0
  51. package/dist/{index-ByszWJ9f.js → index-DnGyp3NF.js} +1 -1
  52. package/dist/{index-BVYlZ7qc.js → index-DxrB7B3p.js} +5 -5
  53. package/dist/{index-Ce_pzPns.cjs → index-GckalUNc.cjs} +1 -1
  54. package/dist/{index-COD3sDaC.cjs → index-O40jHgzf.cjs} +1 -1
  55. package/dist/{index-VmO4HhMm.cjs → index-OZEqhz0y.cjs} +1 -1
  56. package/dist/{index-CLBZaHUK.js → index-OiuIsFSm.js} +1 -1
  57. package/dist/{index-DFkQQmVe.js → index-SBcpQn64.js} +11 -9
  58. package/dist/{index-2tJQpcXL.cjs → index-bz08AoOp.cjs} +1 -1
  59. package/dist/{index-drY6lxSR.cjs → index-c9y8mta8.cjs} +1 -1
  60. package/dist/{index-DDKiRP6N.cjs → index-kkpHjV43.cjs} +1 -1
  61. package/dist/{index-DhlfIs9T.cjs → index-qgIxIYQY.cjs} +1 -1
  62. package/dist/index-rOxjnrti.js +2442 -0
  63. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BPP5ykbT.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2rot3ZW.js} +2412 -2417
  64. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B6vO1WVY.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aKBwlWY2.cjs} +78 -78
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_3652e491_lang-CtZ76WWa.js → index.vue_vue_type_style_index_0_scoped_3652e491_lang-8hulvtBx.js} +2735 -2721
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_3652e491_lang-DT5NAXnz.cjs → index.vue_vue_type_style_index_0_scoped_3652e491_lang-lk6n8dZN.cjs} +13 -13
  67. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CHCANY2b.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BzzH71tY.js} +6 -6
  68. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-09AuFleP.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-Dk-sZGiZ.cjs} +1 -1
  69. package/dist/{index.vue_vue_type_style_index_1_lang-1q5dofMG.js → index.vue_vue_type_style_index_1_lang-B-mvm4oI.js} +2 -2
  70. package/dist/{index.vue_vue_type_style_index_1_lang-CUaH0x1J.js → index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js} +1990 -1986
  71. package/dist/index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs +32 -0
  72. package/dist/{index.vue_vue_type_style_index_1_lang-DiO22yoK.cjs → index.vue_vue_type_style_index_1_lang-CblPqxgA.cjs} +1 -1
  73. package/dist/{main-AzfajsHQ.cjs → main-BECSdDgJ.cjs} +1 -1
  74. package/dist/{main-DLg1crJ_.js → main-Cl2FBL8t.js} +3 -3
  75. package/dist/{menu-BOwNUZLJ.js → menu-B-SbWvK-.js} +61 -53
  76. package/dist/menu-DAWvCqrS.cjs +1 -0
  77. package/dist/ss-component.cjs +1 -1
  78. package/dist/ss-component.css +2 -2
  79. package/dist/ss-component.js +11 -11
  80. package/dist/ss-component2.cjs +1 -1
  81. package/dist/ss-component2.js +11 -11
  82. package/dist/{threeLatheView-DFkOAU-e.js → threeLatheView-B4vrkduv.js} +9 -10
  83. package/dist/threeLatheView-IT4-rk4g.cjs +1 -0
  84. package/dist/{threeModel-CUaCOkA4.js → threeModel-CzEcygve.js} +2 -2
  85. package/dist/{threeModel-jeIaMmuf.cjs → threeModel-Db8DREXJ.cjs} +1 -1
  86. package/dist/{threePreview-BjHPb9oT.js → threePreview-DHQIAoon.js} +4 -5
  87. package/dist/threePreview-Da9Cd9uY.cjs +1 -0
  88. package/dist/threeSceneView-BvwtrS12.cjs +5 -0
  89. package/dist/{threeSceneView-B6dvO1Gc.js → threeSceneView-u7KJ1orN.js} +19 -20
  90. package/dist/threeSceneViewForCPMPIP-C6idViHY.js +690 -0
  91. package/dist/threeSceneViewForCPMPIP-ag3nnMsh.cjs +5 -0
  92. package/dist/threeViewerHost-BSwCkFlh.cjs +1 -0
  93. package/dist/threeViewerHost-DvdfCQv3.js +191 -0
  94. package/dist/urdfTree-Bu3LnEDY.js +220 -0
  95. package/dist/urdfTree-DRLRpM_I.cjs +1 -0
  96. package/dist/useClipping-BJYpFuIR.js +346 -0
  97. package/dist/useClipping-BonADCtK.cjs +1 -0
  98. package/dist/useRayCaster-CVT-p-tp.cjs +1 -0
  99. package/dist/{useRayCaster-C9I2FDwh.js → useRayCaster-DutQ70sM.js} +89 -81
  100. package/package.json +1 -1
  101. package/dist/index-6ogX0PUf.cjs +0 -1
  102. package/dist/index-C_1euELB.cjs +0 -1
  103. package/dist/index-Cjrm61gN.cjs +0 -1
  104. package/dist/index-Dcl93_4k.js +0 -2164
  105. package/dist/index-Dnu79Iu3.js +0 -2506
  106. package/dist/index.vue_vue_type_style_index_1_lang-CFgVsAEJ.cjs +0 -32
  107. package/dist/menu-DhiLYyzN.cjs +0 -1
  108. package/dist/obj/model.mtl +0 -42
  109. package/dist/obj/model.obj +0 -26110
  110. package/dist/threeLatheView-D2iKeUn0.cjs +0 -1
  111. package/dist/threePreview-Bv6WdwrT.cjs +0 -1
  112. package/dist/threeSceneView-kT7Mv29H.cjs +0 -5
  113. package/dist/threeSceneViewForCPMPIP-BQ7h1Dgu.cjs +0 -5
  114. package/dist/threeSceneViewForCPMPIP-DKDpzS3q.js +0 -576
  115. package/dist/threeViewerHost-BPTJlRcO.cjs +0 -1
  116. package/dist/threeViewerHost-C-48P5qb.js +0 -306
  117. package/dist/urdfTree-Bjn6BxrP.js +0 -200
  118. package/dist/urdfTree-hY-C0CsG.cjs +0 -1
  119. package/dist/useClipping-DZlxn7e8.js +0 -306
  120. package/dist/useClipping-cyZBZOO3.cjs +0 -1
  121. package/dist/useRayCaster-CEbdQtpr.cjs +0 -1
  122. package/public/obj/model.mtl +0 -42
  123. package/public/obj/model.obj +0 -26110
  124. /package/dist/{animationPanel.vue_vue_type_style_index_0_scoped_4761a93e_lang-BLOA-vaL.cjs → animationPanel.vue_vue_type_style_index_0_scoped_6903e33c_lang-BLOA-vaL.cjs} +0 -0
  125. /package/dist/{animationPanel.vue_vue_type_style_index_0_scoped_4761a93e_lang-CMspJP4C.js → animationPanel.vue_vue_type_style_index_0_scoped_6903e33c_lang-CMspJP4C.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
1
+ import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
2
2
  import { r as K, u as S } from "./xlsx-ByPOQ6N_.js";
3
- import { d as I } from "./threeViewerHost-C-48P5qb.js";
3
+ import { d as I } from "./threeViewerHost-DvdfCQv3.js";
4
4
  import { c as P } from "./index-BqTVXNQ3.js";
5
5
  function N(r) {
6
6
  try {
@@ -1 +1 @@
1
- "use strict";const y=require("./index.vue_vue_type_style_index_1_lang-CFgVsAEJ.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-BPTJlRcO.cjs"),U=require("./index-1z9RrjZc.cjs");function P(r){try{const c=new URL(r).pathname,i=c.substring(c.lastIndexOf("/")+1);return decodeURIComponent(i)}catch(c){return console.error("无法解析URL以提取文件名:",r,c),"未知文件名"}}function S(r){if(!r)return;const c=r.match(/filename\*\s*=\s*([^;]+)/i);if(c){let n=c[1].trim();n=n.replace(/^"(.*)"$/,"$1");const h=n.split("''");if(h.length===2){const m=h[0].toUpperCase(),f=h[1];try{if(m==="UTF-8")return decodeURIComponent(f)}catch{}return f}try{return decodeURIComponent(n)}catch{return n}}const i=r.match(/filename\s*=\s*("?)([^";]+)\1/i);if(i)return i[2].trim()}async function K(r){let c,i;if(/^https?:\/\//.test(r))try{const n=await fetch(r,{method:"GET",cache:"no-store"});if(!n.ok)throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);c=await n.blob(),i=P(r)}catch(n){throw console.error("使用 fetch 下载文件时出错:",n),n}else try{const n=await _.downloadAvatarApi({url:r});if(n.status!==200)throw new Error(`下载失败: ${n.status}`);const h=n.headers["content-disposition"];i=S(h)||"无文件名",c=n.data}catch(n){throw console.error("通过 API 下载文件时出错:",n),n}return new File([c],i,{type:c.type})}function N(r){return new Promise((c,i)=>{const n=new FileReader;n.onload=h=>{var m;try{const f=(m=h.target)==null?void 0:m.result,u=T.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=T.utils.sheet_to_json(F);c(E)}catch(f){i(f)}},n.readAsArrayBuffer(r)})}const V=async()=>{const r="弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工位姿生成`,i,"");let A=["夹持长度"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},q=async()=>{const r="双弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工工艺生成`,i,"");let A=["夹持位置"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},B=async r=>await K(r),j=async r=>await N(r),X=async r=>{const c=await B(r);return await j(c)};exports.fetchDoubleRobotAnimationData=q;exports.fetchSingleRobotAnimationData=V;exports.initXYZBCList=X;
1
+ "use strict";const y=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-BSwCkFlh.cjs"),U=require("./index-1z9RrjZc.cjs");function P(r){try{const c=new URL(r).pathname,i=c.substring(c.lastIndexOf("/")+1);return decodeURIComponent(i)}catch(c){return console.error("无法解析URL以提取文件名:",r,c),"未知文件名"}}function S(r){if(!r)return;const c=r.match(/filename\*\s*=\s*([^;]+)/i);if(c){let n=c[1].trim();n=n.replace(/^"(.*)"$/,"$1");const h=n.split("''");if(h.length===2){const m=h[0].toUpperCase(),f=h[1];try{if(m==="UTF-8")return decodeURIComponent(f)}catch{}return f}try{return decodeURIComponent(n)}catch{return n}}const i=r.match(/filename\s*=\s*("?)([^";]+)\1/i);if(i)return i[2].trim()}async function K(r){let c,i;if(/^https?:\/\//.test(r))try{const n=await fetch(r,{method:"GET",cache:"no-store"});if(!n.ok)throw new Error(`下载文件失败: ${n.statusText} (URL: ${r})`);c=await n.blob(),i=P(r)}catch(n){throw console.error("使用 fetch 下载文件时出错:",n),n}else try{const n=await _.downloadAvatarApi({url:r});if(n.status!==200)throw new Error(`下载失败: ${n.status}`);const h=n.headers["content-disposition"];i=S(h)||"无文件名",c=n.data}catch(n){throw console.error("通过 API 下载文件时出错:",n),n}return new File([c],i,{type:c.type})}function N(r){return new Promise((c,i)=>{const n=new FileReader;n.onload=h=>{var m;try{const f=(m=h.target)==null?void 0:m.result,u=T.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=T.utils.sheet_to_json(F);c(E)}catch(f){i(f)}},n.readAsArrayBuffer(r)})}const V=async()=>{const r="弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工位姿生成`,i,"");let A=["夹持长度"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},q=async()=>{const r="双弯管仿真加工分析";let c={};const i=sessionStorage.getItem("systemKey"),n=await y.getItemData(`${r}/管件解析`,i,"");let h=["管长","外径"],m={};n==null||n.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{h.includes(a==null?void 0:a.key)&&(m[a.key]=a.value)}))}))});const f=m.管长,u=m.外径;console.log("管长",f,"外径",u,m);const F=f,E=u/2,d=await y.getItemData(`${r}/加工工艺生成`,i,"");let A=["夹持位置"],g={};d==null||d.forEach(e=>{var s;(e==null?void 0:e.comp)==="Form"&&((s=e==null?void 0:e.compData)==null||s.forEach(o=>{var l;(o==null?void 0:o.key)==="formContent"&&((l=o==null?void 0:o.contents)==null||l.forEach(a=>{A.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const $=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,R,L;if((e==null?void 0:e.comp)==="Table"){let x=[],D=(l=(o=(s=e==null?void 0:e.compData)==null?void 0:s.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:o.contents)==null?void 0:l.map(t=>t==null?void 0:t.label),C=(L=(R=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:R.contents)==null?void 0:L.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{x.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=x,w[e.name+"Content"]=e}});const I=U.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:$,animationData:I},c},B=async r=>await K(r),j=async r=>await N(r),X=async r=>{const c=await B(r);return await j(c)};exports.fetchDoubleRobotAnimationData=q;exports.fetchSingleRobotAnimationData=V;exports.initXYZBCList=X;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
2
- import { s as m } from "./index-Dnu79Iu3.js";
3
- import { u as d, aK as p, aI as l } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
2
+ import { s as m } from "./index-rOxjnrti.js";
3
+ import { u as d, aK as p, aI as l } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
4
4
  import { s as g, u as h } from "./index-BqTVXNQ3.js";
5
5
  const _ = { class: "routerPage-wrapper" }, I = /* @__PURE__ */ o({
6
6
  __name: "index",
@@ -1 +1 @@
1
- "use strict";const l=require("vue");require("./index.vue_vue_type_style_index_1_lang-CFgVsAEJ.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"dialog-title"},g={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(a,{emit:n}){const e=a,i=n,t=l.ref(!1),d=()=>{i("beforeDestroy")};return l.watch(()=>e==null?void 0:e.visible,()=>{t.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(o,s)=>{const c=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(c,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=u=>t.value=u),width:e==null?void 0:e.dialogWidth,"before-close":d,draggable:"",style:l.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":a.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"default",{},void 0,!0)]),header:l.withCtx(()=>[l.createElementVNode("div",f,l.toDisplayString(e==null?void 0:e.title),1),l.renderSlot(o.$slots,"header",{},void 0,!0)]),footer:l.withCtx(()=>[l.renderSlot(o.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center"])}}},m=r._export_sfc(g,[["__scopeId","data-v-f4a21e16"]]);exports.ssDialog=m;
1
+ "use strict";const l=require("vue");require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"dialog-title"},g={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(a,{emit:n}){const e=a,i=n,t=l.ref(!1),d=()=>{i("beforeDestroy")};return l.watch(()=>e==null?void 0:e.visible,()=>{t.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(o,s)=>{const c=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(c,{modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=u=>t.value=u),width:e==null?void 0:e.dialogWidth,"before-close":d,draggable:"",style:l.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":a.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"default",{},void 0,!0)]),header:l.withCtx(()=>[l.createElementVNode("div",f,l.toDisplayString(e==null?void 0:e.title),1),l.renderSlot(o.$slots,"header",{},void 0,!0)]),footer:l.withCtx(()=>[l.renderSlot(o.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center"])}}},m=r._export_sfc(g,[["__scopeId","data-v-f4a21e16"]]);exports.ssDialog=m;
@@ -1,19 +1,20 @@
1
1
  import { watch as u, onMounted as g, onUnmounted as C, resolveComponent as S, createElementBlock as v, openBlock as B, createVNode as I } from "vue";
2
- import "./index-DFkQQmVe.js";
2
+ import "./index-SBcpQn64.js";
3
3
  import { u as K } from "./index-BqTVXNQ3.js";
4
4
  import "./array-B8SLUlLb.js";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-CHCANY2b.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_3652e491_lang-CtZ76WWa.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-BzzH71tY.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_3652e491_lang-8hulvtBx.js";
8
8
  import "./index-BHtNKL1L.js";
9
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BPP5ykbT.js";
9
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C2rot3ZW.js";
10
10
  import "./STLLoader-BP7WluHI.js";
11
- import "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
12
- import "./index.vue_vue_type_style_index_1_lang-1q5dofMG.js";
13
- import "./index-DqoKAMJY.js";
11
+ import "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
12
+ import "./index.vue_vue_type_style_index_1_lang-B-mvm4oI.js";
13
+ import "./index-CEYNN6fZ.js";
14
14
  import "vue-router";
15
- import "./index-DikJStn5.js";
16
- import "./index-CLBZaHUK.js";
15
+ import "./index-BASZvHDB.js";
16
+ /* empty css */
17
+ import "./index-OiuIsFSm.js";
17
18
  const j = {
18
19
  __name: "index",
19
20
  props: {
@@ -107,7 +108,7 @@ const j = {
107
108
  ]);
108
109
  };
109
110
  }
110
- }, U = /* @__PURE__ */ D(j, [["__scopeId", "data-v-8729380f"]]);
111
+ }, V = /* @__PURE__ */ D(j, [["__scopeId", "data-v-8729380f"]]);
111
112
  export {
112
- U as default
113
+ V as default
113
114
  };
@@ -1 +1 @@
1
- "use strict";const e=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-submenu-active-color",value:"#051E37"},{name:"--vertical-submenu-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-second-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-open-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-last-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-menuitem-border-bottom",value:"4px solid 0389FF"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#0091FF"},{name:"--vertical-menuitem-hover-bg",value:"#EBF5FF"},{name:"--vertical-menuitem-active-bg",value:"#0091FF"},{name:"--vertical-menu-0-active-bg",value:"#D7ECFF"},{name:"--vertical-menu-1-active-bg",value:"#EBF5FF"},{name:"--vertical-menu-2-active-bg",value:"transparent"},{name:"--vertical-menuitem-color",value:"#051E37"},{name:"--vertical-menuitem-active-color",value:"#051E37"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"400"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],a=[{name:"--horizontal-menu-bg",value:"#333333"},{name:"--horizontal-menuitem-border-bottom",value:"4px solid var(--horizontal-menuitem-active-color)"},{name:"--horizontal-submenu-hover-bg",value:""},{name:"--horizontal-submenu-open-bg",value:"#7DC3FF"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"transparent"},{name:"--horizontal-menuitem-active-bg",value:"#323333"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#7DC3FF"},{name:"--horizontal-menuitem-fontSize",value:"1rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"500"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],n=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-submenu-active-color",value:"#051E37"},{name:"--vertical-submenu-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-second-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-open-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-last-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-menuitem-border-bottom",value:"4px solid var(--vertical-menuitem-active-color)"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#72B02D"},{name:"--vertical-menuitem-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-menuitem-active-bg",value:"#72B02D"},{name:"--vertical-menu-0-active-bg",value:"#E6F5D2"},{name:"--vertical-menu-1-active-bg",value:"#F2F7EB"},{name:"--vertical-menu-2-active-bg",value:"transparent"},{name:"--vertical-menuitem-color",value:"#323333"},{name:"--vertical-menuitem-active-color",value:"#323333"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"400"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],t=[{name:"--horizontal-menu-bg",value:"#333333"},{name:"--horizontal-menuitem-border-bottom",value:"4px solid var(--horizontal-menuitem-active-color)"},{name:"--horizontal-submenu-hover-bg",value:""},{name:"--horizontal-submenu-open-bg",value:"#72B02D"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"#323333"},{name:"--horizontal-menuitem-active-bg",value:"#323333"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#92DB42"},{name:"--horizontal-menuitem-fontSize",value:"1rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"500"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],m=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-submenu-active-color",value:"#051E37"},{name:"--vertical-submenu-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-second-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-open-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-last-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-menuitem-border-bottom",value:"4px solid var(--vertical-menuitem-active-color)"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#72B02D"},{name:"--vertical-menuitem-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-menuitem-active-bg",value:"#72B02D"},{name:"--vertical-menu-0-active-bg",value:"#E6F5D2"},{name:"--vertical-menu-1-active-bg",value:"#F2F7EB"},{name:"--vertical-menu-2-active-bg",value:"transparent"},{name:"--vertical-menuitem-color",value:"#323333"},{name:"--vertical-menuitem-active-color",value:"#323333"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"400"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],l=[{name:"--horizontal-menu-bg",value:"#ffffff"},{name:"--horizontal-menuitem-border-bottom",value:"2px solid var(--el-menu-active-color)"},{name:"--horizontal-submenu-hover-bg",value:""},{name:"--horizontal-submenu-open-bg",value:"#72B02D"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"#323333"},{name:"--horizontal-menuitem-active-bg",value:"#323333"},{name:"--horizontal-menuitem-color",value:"var(--el-menu-text-color)"},{name:"--horizontal-menuitem-active-color",value:"var(--el-menu-hover-text-color)"},{name:"--horizontal-menuitem-fontSize",value:"1rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"500"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],u=[{name:"--user-avatar-bg",value:"linear-gradient(to bottom, #73D2FF,#235096)"},{name:"--ssbutton-theme-color",value:"#FFFFFF"},{name:"--login-drop-bg",value:"#F5FAFF"},{name:"--ssbutton-theme-bg",value:"#0091FF"},{name:"--ssbutton-warning-bg",value:"#E7F4FF"},{name:"--ssbutton-warning-color",value:"#0091FF"},{name:"--ssbutton-special-bg",value:"rgba(255,255,255,0.2)"},{name:"--ssgroup-background",value:"linear-gradient(to right, #E7F4FF, #ffffff)"},{name:"--ssComponent-theme-color",value:"#0091FF"},{name:"--ssComponent-theme-watermark",value:'url("@/assets/image/watermark-blue.png")'}],o=[{name:"--user-avatar-bg",value:"linear-gradient(to bottom, #96E13C,#196E05)"},{name:"--ssbutton-theme-color",value:"#323333"},{name:"--login-drop-bg",value:"#F2F7EB"},{name:"--ssbutton-theme-bg",value:"#92DB42"},{name:"--ssbutton-warning-bg",value:"#FFC300"},{name:"--ssbutton-warning-color",value:"#323333"},{name:"--ssbutton-special-bg",value:"#F2F7EB"},{name:"--ssgroup-background",value:"linear-gradient(to right, #ddf6e0, #ffffff)"},{name:"--ssComponent-theme-color",value:"#92DB42"},{name:"--ssComponent-theme-watermark",value:'url("@/assets/image/watermark.png")'}],i=[{name:"--user-avatar-bg",value:"linear-gradient(to bottom, #96E13C,#196E05)"},{name:"--ssbutton-theme-color",value:"#323333"},{name:"--login-drop-bg",value:"#F2F7EB"},{name:"--ssbutton-theme-bg",value:"#92DB42"},{name:"--ssbutton-warning-bg",value:"#FFC300"},{name:"--ssbutton-warning-color",value:"#323333"},{name:"--ssbutton-special-bg",value:"#F2F7EB"},{name:"--ssgroup-background",value:"linear-gradient(to right, #ddf6e0, #ffffff)"},{name:"--ssComponent-theme-color",value:"#92DB42"},{name:"--ssComponent-theme-watermark",value:'url("@/assets/image/watermark.png")'}];exports.browserHorizontalMenuClasses=a;exports.browserThemeConfig=u;exports.browserVerticalMenuClasses=e;exports.clientHorizontalMenuClasses=t;exports.clientThemeConfig=o;exports.clientVerticalMenuClasses=n;exports.threeHorizontalMenuClasses=l;exports.threeThemeConfig=i;exports.threeVerticalMenuClasses=m;
1
+ "use strict";const e=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-submenu-active-color",value:"#051E37"},{name:"--vertical-submenu-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-second-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-open-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-last-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-menuitem-border-bottom",value:"4px solid 0389FF"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#0091FF"},{name:"--vertical-menuitem-hover-bg",value:"#EBF5FF"},{name:"--vertical-menuitem-active-bg",value:"#0091FF"},{name:"--vertical-menu-0-active-bg",value:"#D7ECFF"},{name:"--vertical-menu-1-active-bg",value:"#EBF5FF"},{name:"--vertical-menu-2-active-bg",value:"transparent"},{name:"--vertical-menuitem-color",value:"#051E37"},{name:"--vertical-menuitem-active-color",value:"#051E37"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"400"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],a=[{name:"--horizontal-menu-bg",value:"#333333"},{name:"--horizontal-menuitem-border-bottom",value:"4px solid var(--horizontal-menuitem-active-color)"},{name:"--horizontal-submenu-hover-bg",value:""},{name:"--horizontal-submenu-open-bg",value:"#7DC3FF"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"transparent"},{name:"--horizontal-menuitem-active-bg",value:"#323333"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#7DC3FF"},{name:"--horizontal-menuitem-fontSize",value:"1rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"500"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],n=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-submenu-active-color",value:"#051E37"},{name:"--vertical-submenu-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-second-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-open-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-last-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-menuitem-border-bottom",value:"4px solid var(--vertical-menuitem-active-color)"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#72B02D"},{name:"--vertical-menuitem-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-menuitem-active-bg",value:"#72B02D"},{name:"--vertical-menu-0-active-bg",value:"#E6F5D2"},{name:"--vertical-menu-1-active-bg",value:"#F2F7EB"},{name:"--vertical-menu-2-active-bg",value:"transparent"},{name:"--vertical-menuitem-color",value:"#323333"},{name:"--vertical-menuitem-active-color",value:"#323333"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"400"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],t=[{name:"--horizontal-menu-bg",value:"#333333"},{name:"--horizontal-menuitem-border-bottom",value:"4px solid var(--horizontal-menuitem-active-color)"},{name:"--horizontal-submenu-hover-bg",value:""},{name:"--horizontal-submenu-open-bg",value:"#72B02D"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"#323333"},{name:"--horizontal-menuitem-active-bg",value:"#323333"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#92DB42"},{name:"--horizontal-menuitem-fontSize",value:"1rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"500"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],m=[{name:"--vertical-menu-bg",value:"transparent"},{name:"--vertical-submenu-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-submenu-active-color",value:"#051E37"},{name:"--vertical-submenu-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-second-open-bg",value:"#E6F5D2"},{name:"--vertical-submenu-open-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-last-inline-bg",value:"#FFFFFF"},{name:"--vertical-submenu-color",value:"#051E37"},{name:"--vertical-menuitem-border-bottom",value:"4px solid var(--vertical-menuitem-active-color)"},{name:"--vertical-submenu-menuitem-color",value:"#051E37"},{name:"--vertical-submenu-menuitem-active-color",value:"#72B02D"},{name:"--vertical-menuitem-hover-bg",value:"rgba(114, 176, 45, 0.6)"},{name:"--vertical-menuitem-active-bg",value:"#72B02D"},{name:"--vertical-menu-0-active-bg",value:"#E6F5D2"},{name:"--vertical-menu-1-active-bg",value:"#F2F7EB"},{name:"--vertical-menu-2-active-bg",value:"transparent"},{name:"--vertical-menuitem-color",value:"#323333"},{name:"--vertical-menuitem-active-color",value:"#323333"},{name:"--vertical-menuitem-fontSize",value:"1rem"},{name:"--vertical-menuitem-fontWeight",value:"400"},{name:"--vertical-menuitem-active-fontWeight",value:"400"},{name:"--vertical-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"},{name:"--vertical-menuitem-radius",value:"8px"},{name:"--vertical-menu-padding",value:"0.5rem"}],l=[{name:"--horizontal-menu-bg",value:"#333333"},{name:"--horizontal-menuitem-border-bottom",value:"4px solid var(--horizontal-menuitem-active-color)"},{name:"--horizontal-submenu-hover-bg",value:""},{name:"--horizontal-submenu-open-bg",value:"#72B02D"},{name:"--horizontal-submenu-open-inline-bg",value:"#1C4275"},{name:"--horizontal-menuitem-hover-bg",value:"#323333"},{name:"--horizontal-menuitem-active-bg",value:"#323333"},{name:"--horizontal-menuitem-color",value:"#FFFFFF"},{name:"--horizontal-menuitem-active-color",value:"#92DB42"},{name:"--horizontal-menuitem-fontSize",value:"1rem"},{name:"--horizontal-menuitem-fontWeight",value:"400"},{name:"--horizontal-menuitem-active-fontWeight",value:"500"},{name:"--horizontal-menuitem-font",value:"SourceHanSansSC, SourceHanSansSC"}],u=[{name:"--user-avatar-bg",value:"linear-gradient(to bottom, #73D2FF,#235096)"},{name:"--ssbutton-theme-color",value:"#FFFFFF"},{name:"--login-drop-bg",value:"#F5FAFF"},{name:"--ssbutton-theme-bg",value:"#0091FF"},{name:"--ssbutton-warning-bg",value:"#E7F4FF"},{name:"--ssbutton-warning-color",value:"#0091FF"},{name:"--ssbutton-special-bg",value:"rgba(255,255,255,0.2)"},{name:"--ssgroup-background",value:"linear-gradient(to right, #E7F4FF, #ffffff)"},{name:"--ssComponent-theme-color",value:"#0091FF"},{name:"--ssComponent-theme-watermark",value:'url("@/assets/image/watermark-blue.png")'}],o=[{name:"--user-avatar-bg",value:"linear-gradient(to bottom, #96E13C,#196E05)"},{name:"--ssbutton-theme-color",value:"#323333"},{name:"--login-drop-bg",value:"#F2F7EB"},{name:"--ssbutton-theme-bg",value:"#92DB42"},{name:"--ssbutton-warning-bg",value:"#FFC300"},{name:"--ssbutton-warning-color",value:"#323333"},{name:"--ssbutton-special-bg",value:"#F2F7EB"},{name:"--ssgroup-background",value:"linear-gradient(to right, #ddf6e0, #ffffff)"},{name:"--ssComponent-theme-color",value:"#92DB42"},{name:"--ssComponent-theme-watermark",value:'url("@/assets/image/watermark.png")'}],i=[{name:"--user-avatar-bg",value:"linear-gradient(to bottom, #96E13C,#196E05)"},{name:"--ssbutton-theme-color",value:"#323333"},{name:"--login-drop-bg",value:"#F2F7EB"},{name:"--ssbutton-theme-bg",value:"#92DB42"},{name:"--ssbutton-warning-bg",value:"#FFC300"},{name:"--ssbutton-warning-color",value:"#323333"},{name:"--ssbutton-special-bg",value:"#F2F7EB"},{name:"--ssgroup-background",value:"linear-gradient(to right, #ddf6e0, #ffffff)"},{name:"--ssComponent-theme-color",value:"#92DB42"},{name:"--ssComponent-theme-watermark",value:'url("@/assets/image/watermark.png")'}];exports.browserHorizontalMenuClasses=a;exports.browserThemeConfig=u;exports.browserVerticalMenuClasses=e;exports.clientHorizontalMenuClasses=t;exports.clientThemeConfig=o;exports.clientVerticalMenuClasses=n;exports.threeHorizontalMenuClasses=l;exports.threeThemeConfig=i;exports.threeVerticalMenuClasses=m;
@@ -1,9 +1,9 @@
1
1
  import { createElementBlock as D, openBlock as O, createElementVNode as b, renderSlot as L, defineComponent as X, ref as B, resolveComponent as E, createVNode as g, withCtx as y, reactive as H, watch as Y, unref as K, toDisplayString as U, createTextVNode as R } from "vue";
2
2
  import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { d as ie, r as de, g as ue, c as pe, b as fe, e as ye, f as ge, h as Ae } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
3
+ import { d as ie, r as de, g as ue, c as pe, b as fe, e as ye, f as ge, h as Ae } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
4
4
  import { useRouter as me } from "vue-router";
5
5
  import { a as be, u as he, p as ve, s as _e, E as S, b as we, g as Q } from "./index-BqTVXNQ3.js";
6
- import { v as Ce } from "./index-CLBZaHUK.js";
6
+ import { v as Ce } from "./index-OiuIsFSm.js";
7
7
  const Ie = {}, ke = { class: "left-wrap" }, Ee = { class: "left-bg" };
8
8
  function Se(I, T) {
9
9
  return O(), D("div", ke, [
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as z, reactive as R, onMounted as T, watch as A, nextTick as U, resolveComponent as i, createElementBlock as k, openBlock as u, createVNode as c, withCtx as l, createElementVNode as _, toDisplayString as g, Fragment as v, renderList as B, createBlock as b, createTextVNode as f, withDirectives as I, vShow as P } from "vue";
2
- import { s as E } from "./index-Dnu79Iu3.js";
3
- import { u as F, aL as x } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
2
+ import { s as E } from "./index-rOxjnrti.js";
3
+ import { u as F, aL as x } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
4
4
  import { s as L, c as O } from "./index-BqTVXNQ3.js";
5
5
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const W = { class: "routerPage-wrapper" }, j = { class: "role-dialog-header" }, q = ["title"], G = { title: "更多" }, J = { class: "dialog-footer" }, K = /* @__PURE__ */ z({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as F, computed as N, ref as p, watch as $, createElementBlock as k, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as i, createTextVNode as T, toDisplayString as I, resolveComponent as B, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
2
- import { s as H } from "./index-C3C8fpWD.js";
3
- import { d as M, u as P } from "./threeViewerHost-C-48P5qb.js";
2
+ import { s as H } from "./index-DZ8o_2zb.js";
3
+ import { d as M, u as P } from "./threeViewerHost-DvdfCQv3.js";
4
4
  import { E as z } from "./index-BqTVXNQ3.js";
5
5
  import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { S as W } from "./index-CXdkhR-Y.js";
6
+ import { S as W } from "./index-DKMlkUlr.js";
7
7
  import { S as E } from "./index-BHtNKL1L.js";
8
8
  const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
9
9
  __name: "index",
@@ -1,7 +1,7 @@
1
1
  import { ref as i, computed as j, reactive as ie, nextTick as K, watch as ye } from "vue";
2
- import { u as be, a as he, aH as Ce } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
2
+ import { u as be, a as he, aH as Ce } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
3
3
  import { c as J, s as Ie, g as U, by as ke, E as S, p as $, f as ae, h as oe, br as Te, e as Me } from "./index-BqTVXNQ3.js";
4
- import { u as Se } from "./index-Dnu79Iu3.js";
4
+ import { u as Se } from "./index-rOxjnrti.js";
5
5
  const F = he($), ne = Se($), C = be($), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: H } = Ie(C), z = i(!1), se = j(() => {
6
6
  var e, t;
7
7
  return [
@@ -1,6 +1,6 @@
1
1
  import { ref as l, watch as b } from "vue";
2
2
  import { g as y, s as d } from "./index-BqTVXNQ3.js";
3
- import { aJ as g, aH as m, a as D } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
3
+ import { aJ as g, aH as m, a as D } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
4
4
  const f = D(), { itemData: h } = d(f), c = l(0), k = l([
5
5
  {
6
6
  label: "机构名称",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-BBquDNVQ.cjs"),r=require("./index-1z9RrjZc.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-Dh4EvKbD.cjs"),r=require("./index-1z9RrjZc.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-09AuFleP.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,M,N,m){var s;const i=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-popover"),p=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(c,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((s=o.renderMenuList)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(C._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.default=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-Dk-sZGiZ.cjs"),e=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),k=["title"],f={key:0,class:"menu-operate-icon"},h={class:"menu-config-wrap"},_=["onClick"],v={class:"module-dialog-content"};function y(o,l,V,M,N,m){var s;const i=e.resolveComponent("svg-icon"),c=e.resolveComponent("el-popover"),p=e.resolveComponent("ssMenu"),r=e.resolveComponent("el-button"),g=e.resolveComponent("ssDialog");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{class:"vertical-menu",mode:o.mode,menuList:o.renderMenuList,isCollapse:o.isCollapse,onClickMenu:o.clickMenu,onOpenMenu:o.openMenu,onCloseMenu:o.closeMenu},{title:e.withCtx(({menu:t})=>{var a,d;return[e.createElementVNode("span",{title:t.title,class:"menu-title",style:e.normalizeStyle({marginRight:t!=null&&t.config&&((a=t==null?void 0:t.config)==null?void 0:a.length)>0?"25px":"1px"})},e.toDisplayString(t.title??""),13,k),t!=null&&t.config&&((d=t==null?void 0:t.config)==null?void 0:d.length)>0?(e.openBlock(),e.createElementBlock("span",f,[e.createVNode(c,{title:"",placement:"bottom-start",trigger:"click","popper-class":"menu-operate-popover"},{reference:e.withCtx(()=>[e.createVNode(i,{name:"config"})]),default:e.withCtx(()=>[e.createElementVNode("div",h,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t==null?void 0:t.config,n=>(e.openBlock(),e.createElementBlock("div",{class:"menu-config-item",key:n.id,onClick:w=>o.clickMenuIcon(t,n)},[e.createVNode(i,{name:n==null?void 0:n.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.operateType),1)],8,_))),128))])]),_:2},1024)])):e.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((s=o.renderMenuList)==null?void 0:s.length)>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fold-icon",onClick:l[0]||(l[0]=(...t)=>o.handleMenuCollapse&&o.handleMenuCollapse(...t))},[e.createVNode(i,{name:o.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):e.createCommentVNode("",!0),e.createVNode(g,{class:"module-dialog",title:o.dialogInfo.title,visible:o.dialogInfo.show,width:o.dialogInfo.width,onBeforeDestroy:o.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dialogRenderComps,t=>(e.openBlock(),e.createElementBlock("div",{key:t.id},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.getComponents((t==null?void 0:t.comp)??"Input")),{itemData:t==null?void 0:t.compData,key:t==null?void 0:t.id,content:(t==null?void 0:t.contents)??[],config:t==null?void 0:t.config,onContentChange:o.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(r,{id:"themeBorderButton",onClick:o.beforeDialogDestroy},{default:e.withCtx(()=>l[1]||(l[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(r,{id:"themeButton",onClick:o.clickSubmitForm},{default:e.withCtx(()=>l[2]||(l[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const B=u._export_sfc(C._sfc_main,[["render",y],["__scopeId","data-v-92477073"]]);exports.default=B;
@@ -1 +1 @@
1
- "use strict";const o=require("vue"),u=require("./index-1z9RrjZc.cjs"),s=require("./index.vue_vue_type_style_index_1_lang-CFgVsAEJ.cjs"),d=s.useModelComp(),{itemData:g}=u.storeToRefs(d),b=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),i=e=>{console.log("handleQueryChange",e)},r=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{s.submitTableAsyncByVerify(e.singleContent,e.buttonName,b.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,t)=>{console.log("onButtonClick",e,t)},_=async e=>{const t=await s.handleSubmitAsync(u.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(a=>{var l;return{id:a.id,tableData:(l=a==null?void 0:a.value)==null?void 0:l.tableData}});return n==null?void 0:n.map(a=>{var l;if(Array.isArray(a==null?void 0:a.tableData)){let c={id:a.id};return(l=a==null?void 0:a.tableData)==null||l.forEach((p,y)=>{c[`a${y}`]=p}),c}else return{...a.tableData,id:a.id}})},k={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:r.value,name:""}]}]};o.watch(()=>g.value,e=>{var t;e&&(e==null?void 0:e.length)>0&&(r.value=(t=e==null?void 0:e[0])==null?void 0:t.compData)});const m=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:f,handleQueryChange:i,onButtonClick:C,onDoubleClick:h,pageData:r,queryFormData:D,structureId:b,tempDeptPageData:k},Symbol.toStringTag,{value:"Module"}));exports.State=m;
1
+ "use strict";const o=require("vue"),u=require("./index-1z9RrjZc.cjs"),s=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),d=s.useModelComp(),{itemData:g}=u.storeToRefs(d),b=o.ref(0),D=o.ref([{label:"机构名称",value:"",name:"deptName"}]),i=e=>{console.log("handleQueryChange",e)},r=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"机构名称",prop:"deptName"},{label:"机构类型",prop:"deptType",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态",formType:"Radio",prop:"deptStatus",options:[{label:"启用",value:"启用"},{label:"禁用",value:"禁用"}]},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{s.submitTableAsyncByVerify(e.singleContent,e.buttonName,b.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,t)=>{console.log("onButtonClick",e,t)},_=async e=>{const t=await s.handleSubmitAsync(u.getInsofDataApi,{key:{systemKey:sessionStorage.getItem("systemKey"),type:"data",pageKey:e}},"查询"),n=t==null?void 0:t.map(a=>{var l;return{id:a.id,tableData:(l=a==null?void 0:a.value)==null?void 0:l.tableData}});return n==null?void 0:n.map(a=>{var l;if(Array.isArray(a==null?void 0:a.tableData)){let c={id:a.id};return(l=a==null?void 0:a.tableData)==null||l.forEach((p,y)=>{c[`a${y}`]=p}),c}else return{...a.tableData,id:a.id}})},k={comp:"Group",name:"/系统管理/部门管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:r.value,name:""}]}]};o.watch(()=>g.value,e=>{var t;e&&(e==null?void 0:e.length)>0&&(r.value=(t=e==null?void 0:e[0])==null?void 0:t.compData)});const m=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:_,handleItemDataChange:f,handleQueryChange:i,onButtonClick:C,onDoubleClick:h,pageData:r,queryFormData:D,structureId:b,tempDeptPageData:k},Symbol.toStringTag,{value:"Module"}));exports.State=m;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),S=require("./index-1z9RrjZc.cjs"),Kl=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aKBwlWY2.cjs"),He=require("./index-DVI6ZfXI.cjs"),Cl=require("./threeViewerHost-BSwCkFlh.cjs"),se=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),ol=require("./xlsx-BPHygxEf.cjs");require("./index.vue_vue_type_style_index_1_lang-CblPqxgA.cjs");const El=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./STLLoader-DIEi9CGs.cjs");const Al=require("./index-6WmY_quF.cjs");require("./index-GckalUNc.cjs");var or="[object String]";function $l(L){return typeof L=="string"||!S.isArray(L)&&S.isObjectLike(L)&&S.baseGetTag(L)==or}const Fl=L=>L.match(/\((.*)\)/)[1],sr={class:"extra-button-content"},ir={class:"table-operator-wrap"},tr={class:"extra-button-filter"},ur={class:"form-content-value"},cr={key:0,class:"extra-header"},dr={class:"drop-menu",style:{width:"120px"}},pr={key:0},fr={key:1},gr={__name:"header",props:{level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(L,{emit:ce}){const H=ce,O=L,B=a.ref(""),v=a.ref(!1),ae=a.ref([]),he=a.ref([{label:"取消",background:"#999999"},{label:"清空",background:"#999999"},{label:"确认"}]),Ce=j=>{const M=j.raw;if(!M)return;const ge=new FileReader;ge.onload=Z=>{try{const be=new Uint8Array(Z.target.result),$e=ol.readSync(be,{type:"array"}),je=$e.SheetNames[0],xe=$e.Sheets[je],_e=[],ye=[];for(const fe in xe){if(fe[0]==="!")continue;const{r:ve,c:Ue}=ol.utils.decode_cell(fe);let re=xe[fe].v;xe[fe].t==="n"&&re>0&&re<1e6&&(re=new Date((re-25569)*86400*1e3).toISOString().split("T")[0]),ve===0?_e[Ue]=re:(ye[ve-1]||(ye[ve-1]={}),ye[ve-1][`col_${Ue}`]=re)}const P=ye==null?void 0:ye[0];if(!(P!=null&&P.hasOwnProperty("col_0")))return S.ElMessage.error("导入的数据列不匹配,请检查是否错位");H("getImportData",_e,ye)}catch(be){throw S.ElMessage.error(be.message),new Error(be.message)}},ge.readAsArrayBuffer(M)},J=j=>{var ge;const M=(ge=ae.value)==null?void 0:ge.reduce((Z,be,$e)=>($e===0?Z[be.label]=j:Z[be.label]=be==null?void 0:be.value,Z),{});H("filter",M,j,!0)},Ne=j=>{H("buttonClick",j)},ze=j=>{var M,ge;ae.value=(ge=(M=se.getColumnChild(S.cloneDeep(j)))==null?void 0:M.filter(Z=>(Z==null?void 0:Z.label)!==""&&(Z==null?void 0:Z.label)!=="操作"))==null?void 0:ge.map(Z=>({label:(Z==null?void 0:Z.label)??"",value:"",name:(Z==null?void 0:Z.label)??"",isFormColHidden:Z==null?void 0:Z.isTableColHidden,width:2}))},me=a.ref(!1),qe=j=>{var M;if((j==null?void 0:j.buttonName)==="确认"&&(H("filter",j==null?void 0:j.content),me.value=(j==null?void 0:j.content)&&Object.values(j==null?void 0:j.content).length>0),(j==null?void 0:j.buttonName)==="清空"){const ge=S.cloneDeep(j==null?void 0:j.content);for(const Z in ge)ge[Z]="";ae.value=(M=ae.value)==null?void 0:M.map(Z=>({...Z,value:""})),H("filter",ge),me.value=!1}v.value=!1},ke=()=>{var M,ge;ae.value=(M=ae.value)==null?void 0:M.map(Z=>({...Z,value:""}));const j=(ge=ae.value)==null?void 0:ge.reduce((Z,be)=>(Z[be.label]=be.value,Z),{});H("filter",j)};return a.onMounted(()=>{ze(O.columns)}),a.watch(()=>O.columns,()=>{ze(O.columns)},{deep:!0,immediate:!0}),(j,M)=>{var _e,ye;const ge=a.resolveComponent("el-icon"),Z=a.resolveComponent("svg-icon"),be=a.resolveComponent("el-input"),$e=a.resolveComponent("ss-popOver"),je=a.resolveComponent("el-button"),xe=a.resolveComponent("el-upload");return a.openBlock(),a.createElementBlock("div",sr,[a.createElementVNode("div",{class:a.normalizeClass(L.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(O==null?void 0:O.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:(O==null?void 0:O.level)>1?"0px":"8px",fontWeight:600-((O==null?void 0:O.level)-1)*100>=400?600-((O==null?void 0:O.level)-1)*100:400,fontSize:17-(O==null?void 0:O.level)>=14?17-(O==null?void 0:O.level)+"px":"14px"})},a.toDisplayString(L.compName),7),a.createElementVNode("div",ir,[a.createElementVNode("div",tr,[a.createVNode($e,{title:"",width:800,placement:"bottom-start",isVisible:v.value},{reference:a.withCtx(()=>{var P,fe,ve,Ue;return[a.createVNode(be,{modelValue:B.value,"onUpdate:modelValue":M[1]||(M[1]=re=>B.value=re),style:{"min-width":"80px"},placeholder:me.value?(ve=(fe=(P=L.filterValues)==null?void 0:P.filter(re=>re))==null?void 0:fe.slice(0,3))==null?void 0:ve.join("/"):"搜索","prefix-icon":a.unref(S.search_default),clearable:"",onInput:J,disabled:((Ue=ae.value)==null?void 0:Ue.length)===0},{suffix:a.withCtx(()=>{var re,de;return[!B.value&&((de=(re=L.filterValues)==null?void 0:re.filter(Qe=>Qe))!=null&&de.join("/"))?(a.openBlock(),a.createBlock(ge,{key:0,style:{cursor:"pointer"},onClick:ke},{default:a.withCtx(()=>[a.createVNode(a.unref(S.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:M[0]||(M[0]=re=>v.value=!v.value)},[a.createVNode(Z,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",ur,[(a.openBlock(),a.createBlock(He.ssForm,{rowContents:ae.value,buttonValue:he.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:he.value,isStartJustify:!1,onOnButtonClick:qe},null,8,["rowContents","buttonValue"]))])]),_:1},8,["isVisible"])]),L.buttons&&((_e=L.buttons)==null?void 0:_e.length)>0?(a.openBlock(),a.createElementBlock("div",cr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ye=L.buttons)==null?void 0:ye.filter(P=>L.isDevMode||(P==null?void 0:P.label)!=="修改模板"),(P,fe)=>(a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:fe},[(P==null?void 0:P.type)==="upload"?(a.openBlock(),a.createBlock(xe,{key:0,class:"upload-button-wrap","on-change":Ce,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>[a.createVNode(je,{style:a.normalizeStyle({background:(P==null?void 0:P.background)??"var(--ssbutton-theme-bg)",color:(P==null?void 0:P.color)??"var(--ssbutton-theme-color)"})},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P==null?void 0:P.label),1)]),_:2},1032,["style"])]),_:2},1024)):a.createCommentVNode("",!0),(P==null?void 0:P.type)==="popover"?(a.openBlock(),a.createBlock(He._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(P==null?void 0:P.type)==="popover"?(a.openBlock(),a.createBlock(je,{key:0,style:a.normalizeStyle({background:(P==null?void 0:P.background)??"var(--ssbutton-theme-bg)",color:(P==null?void 0:P.color)??"var(--ssbutton-theme-color)"})},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P==null?void 0:P.label),1)]),_:2},1032,["style"])):a.createCommentVNode("",!0)]),dropMenu:a.withCtx(()=>[a.createElementVNode("div",dr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(P==null?void 0:P.contents,ve=>(a.openBlock(),a.createBlock(je,{key:ve==null?void 0:ve.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ue=>Ne(ve==null?void 0:ve.label)},{default:a.withCtx(()=>{var Ue,re;return[a.createTextVNode(a.toDisplayString(ve==null?void 0:ve.label),1),(Ue=ve==null?void 0:ve.label)!=null&&Ue.includes("选中")?(a.openBlock(),a.createElementBlock("span",pr,"("+a.toDisplayString(L.selectNums)+")",1)):a.createCommentVNode("",!0),(re=ve==null?void 0:ve.label)!=null&&re.includes("全部")?(a.openBlock(),a.createElementBlock("span",fr,"("+a.toDisplayString(L.dataNums)+")",1)):a.createCommentVNode("",!0)]}),_:2},1032,["onClick"]))),128))])]),_:2},1024)):a.createCommentVNode("",!0),P!=null&&P.type?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(je,{key:2,id:"themeButton",style:a.normalizeStyle({background:(P==null?void 0:P.background)??"var(--ssbutton-theme-bg)",color:(P==null?void 0:P.color)??"var(--ssbutton-theme-color)"}),onClick:ve=>Ne(P==null?void 0:P.label)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(P==null?void 0:P.label),1)]),_:2},1032,["style","onClick"]))]))),128))])):a.createCommentVNode("",!0)])])}}},hr=El._export_sfc(gr,[["__scopeId","data-v-95f5b67a"]]),yr=a.defineComponent({__name:"batch",props:{buttons:{type:Array,default:()=>[]},selectTableItems:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(L,{emit:ce}){const H=L,O=ce,B=ae=>{O("buttonClick",ae)},v=ae=>{var he;return ae!=null&&ae.includes("删除")?((he=H.selectTableItems)==null?void 0:he.length)>0?"warning-active-type":"warning-type":"default-type"};return(ae,he)=>{const Ce=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(L.buttons,J=>(a.openBlock(),a.createBlock(Ce,{key:J==null?void 0:J.label,class:a.normalizeClass(v(J==null?void 0:J.label)),onClick:Ne=>B(J==null?void 0:J.label)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(J==null?void 0:J.label),1)]),_:2},1032,["class","onClick"]))),128))])}}}),vr=El._export_sfc(yr,[["__scopeId","data-v-1d3c11ad"]]),ra=S.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(L){this.selectArray=L},setSelectString(L){this.selectString=L}}}),br={class:"calculator-content"},mr={class:"calculator-child"},kr={class:"calculator-child"},Sr=a.defineComponent({__name:"calculator",setup(L){const ce=a.ref(),H=a.ref();return a.onMounted(()=>{ce.value=[{type:"Upload",label:"输入",name:"input"}],H.value=[{type:"Upload",label:"输出",name:"output"}]}),(O,B)=>(a.openBlock(),a.createElementBlock("div",br,[a.createElementVNode("div",mr,[a.createVNode(He.ssForm,{rowContents:ce.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",kr,[a.createVNode(He.ssForm,{rowContents:H.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),Dr=El._export_sfc(Sr,[["__scopeId","data-v-73db0fe7"]]),na=S.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(L){this.selectIndex=L},setSelectMenu(L){this.selectMenu=L},setSelectTitle(L){this.selectTitle=L}}}),Pl=(L,ce)=>{let H=L,O=ce;return Array.isArray(H)&&(H=H==null?void 0:H.map((B,v)=>{if(Array.isArray(B)){let ae={};return B=B==null?void 0:B.forEach((he,Ce)=>{var J;(J=O==null?void 0:O[Ce])!=null&&J.prop?ae[O[Ce].prop]=he:Array.isArray(he)&&(ae.children=Pl(he,O))}),Object.assign(ae,{id:v})}else return B})),H},oa=(L,ce,H)=>{let O=L,B=ce;return O=O==null?void 0:O.map((v,ae)=>{var he,Ce;return!Array.isArray(v)||!((he=B==null?void 0:B[ae])!=null&&he.label)&&!H||(v.unshift(((Ce=B==null?void 0:B[ae])==null?void 0:Ce.label)??""),v.some(J=>Array.isArray(J))&&(v=v==null?void 0:v.map(J=>{var Ne;return Array.isArray(J)&&(J=oa(J,(Ne=B==null?void 0:B[ae])==null?void 0:Ne.children,H)),J}))),v}),O},Tr=(L,ce,H)=>{if(ce==="")return L==null?void 0:L.filter(O=>(O==null?void 0:O.id)!==H);{const O=ce.split("-");return Cr(L,O,H)}},Cr=(L,ce,H)=>{let O=L,B=ce;return(B==null?void 0:B.length)===0?O=O==null?void 0:O.filter(v=>v.id!==H):O=O==null?void 0:O.map(v=>(v.id.toString()===(B==null?void 0:B[0])&&(B==null||B.shift(),v=sa(v,B,H)),v)),O},sa=(L,ce,H)=>{var v,ae;let O=L,B=ce;return(B==null?void 0:B.length)===0?O.children=(v=O.children)==null?void 0:v.filter(he=>he.id!==H):O.children=(ae=O.children)==null?void 0:ae.map(he=>(he.id.toString()===(B==null?void 0:B[0])&&(B==null||B.shift(),he=sa(he,B,H)),he)),O},Ar=(L,ce,H)=>{if(ce==="")return H;{const O=ce.split("-");return Er(L,O,H)}},Er=(L,ce,H)=>{let O=L,B=ce;return(B==null?void 0:B.length)===0?O=H:O=O==null?void 0:O.map(v=>(v.id.toString()===(B==null?void 0:B[0])&&(B==null||B.shift(),v=ia(v,B,H)),v)),O},ia=(L,ce,H)=>{var v;let O=L,B=ce;return(B==null?void 0:B.length)===0?O.children=H:O.children=(v=O.children)==null?void 0:v.map(ae=>(ae.id.toString()===(B==null?void 0:B[0])&&(B==null||B.shift(),ae=ia(ae,B,H)),ae)),O},ta=S.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(L){this.objUrl=L},setBlobUrls(L){this.blobUrls=L}}}),Vl=async L=>{var v,ae,he,Ce,J,Ne,ze;let ce=(ae=(v=S.cloneDeep(L))==null?void 0:v.optionUrl)==null?void 0:ae.menuSelect,H=[];ce==null||ce.forEach(me=>{});let O="";const B=await se.menuToParent(ce);if(B==null||B.forEach(me=>{var qe,ke,j,M;(me==null?void 0:me.name)===(((M=(j=(ke=(qe=S.cloneDeep(L))==null?void 0:qe.optionUrl)==null?void 0:ke.groupSelect)==null?void 0:j[0])==null?void 0:M.replaceAll("'",""))??"")&&(O=me==null?void 0:me.id)}),O!==""){const me=(he=B==null?void 0:B.find(j=>{var M,ge,Z,be;return(j==null?void 0:j.name)===(((ge=(M=L==null?void 0:L.groupSelect)==null?void 0:M.split(":"))==null?void 0:ge[0])||((be=(Z=L==null?void 0:L.optionUrl)==null?void 0:Z.groupSelect)==null?void 0:be[0]))}))==null?void 0:he.compData;let qe=(J=(Ce=me==null?void 0:me.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:Ce.contents)==null?void 0:J.map(j=>j==null?void 0:j.label),ke=(ze=(Ne=me==null?void 0:me.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:Ne.contents)==null?void 0:ze.map(j=>(j=j==null?void 0:j.filter(M=>!(M!=null&&M.id)),j));ke==null||ke.forEach(j=>{H.push(se.getValueToObjectValue(j,qe))})}return H},xr={class:"table-content"},Nr={class:"menu-config-wrap"},_r=["onClick"],Br={key:0,class:"viewport-wrap"},Ur=["onClick"],Or={title:"选择显示列信息"},wr={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},Lr=["title"],Mr={class:"col-operate-wrap"},jr={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},Kr={class:"pop-view"},$r={class:"pop-wrapper"},Fr={class:"file-list-pop"},Pr=["title","onClick"],Vr=["onClick"],zr=["onClick"],qr={class:"form-content"},Jr={key:0,class:"dialog-footer"},Rr={class:"dialog-footer"},Wr={__name:"index",props:{level:{type:Number,default:1},compName:{type:String,default:"",required:!1},operatingForm:{type:Object,default:()=>{}},parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(L,{emit:ce}){const H=a.ref([]),O=ta(S.pinia),B=a.ref(null),v=L,ae=a.ref([{label:"排序",value:"sortable",checked:!1},{label:"筛选",value:"filterable",checked:!1},{label:"合计",value:"showSummary",checked:!1},{label:"编辑",value:"operable",checked:!1}]),he=se.useOriginalState(S.pinia),{originalPath:Ce}=S.storeToRefs(he),J=Ce.value,Ne=a.ref(!1),ze=a.ref(!1),me=a.ref(!1),qe=a.reactive({column:{},status:!1,text:"合计"}),ke=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),j=ce,M=a.ref([]),ge=a.ref([]),Z=a.ref(!1),be=a.ref(!1),$e=a.ref(null),je=a.ref([]),xe=a.ref(!1),_e=a.ref(),ye=se.useMenuState(),{importLoading:P,activeMenuPath:fe,contentLoading:ve}=S.storeToRefs(ye),Ue=se.useTableComp(S.pinia),re=se.useModelComp(S.pinia),{extraContents:de,cacheUpdatingData:Qe,tableViewContents:sl,tableLoading:Hr,pageMapState:xl}=S.storeToRefs(re),X=a.ref([]),fl=a.ref([]),gl=a.ref(new Map);a.ref(!1);const Ke=a.ref("");a.ref();const Nl=a.ref(!0),al=a.ref(0),zl=a.ref(!0),Oe=a.ref(""),Fe=a.ref(!1),ua=a.ref({label:"查看三维模型"}),hl=a.ref(!1),_l=a.ref(),Be=a.ref([]),Xe=a.ref([]),yl=a.ref(!1),il=a.ref([]),rl=a.ref([]),Ie=a.ref([]),Je=a.ref([]),we=a.ref(),De=a.ref(),ca=ra(S.pinia),vl=a.ref(),Bl=a.ref(0),bl=na(S.pinia),{selectIndex:da,selectMenu:Pe,selectTitle:Ul}=S.storeToRefs(bl),{selectString:Ye}=S.storeToRefs(ca),pa=S.useLoginState(S.pinia),{loginUserInfo:ie}=S.storeToRefs(pa),fa=a.ref(720),Ze=a.ref(!1),ml=a.ref(!1),Le=a.ref([]),el=a.ref(),tl=a.ref(!0),ql=a.ref(!0),kl=a.ref([]),ga=a.inject("contentRef");a.provide("contentRef",ga),a.watch(()=>{var e;return(e=X.value)==null?void 0:e.length},e=>{ke.total=e}),a.watch(()=>sl.value,async()=>{var t,p,u,d,b,s,x,k,C,N,w,T,$,A,_,g,h,i;if(((t=sl.value)==null?void 0:t.length)===0||!((p=v==null?void 0:v.itemData)!=null&&p.find(m=>(m==null?void 0:m.key)==="columnPath"))||!((u=v==null?void 0:v.itemData)!=null&&u.find(m=>(m==null?void 0:m.key)==="pageColumn")))return;let e=(C=(k=(x=(s=(b=(d=v==null?void 0:v.itemData)==null?void 0:d.find(m=>(m==null?void 0:m.key)==="pageColumn"))==null?void 0:b.contents)==null?void 0:s.split("["))==null?void 0:x[1])==null?void 0:k.split("]"))==null?void 0:C[0],l=(($=(T=(w=(N=v==null?void 0:v.itemData)==null?void 0:N.find(m=>(m==null?void 0:m.key)==="pageColumn"))==null?void 0:w.contents)==null?void 0:T.split("["))==null?void 0:$[0])+((_=(A=sl.value)==null?void 0:A.find(m=>(m==null?void 0:m.key)===e))==null?void 0:_.value),o=((h=(g=v==null?void 0:v.itemData)==null?void 0:g.find(m=>(m==null?void 0:m.key)==="pageGroup"))==null?void 0:h.contents)??"",r=await se.getItemData(l,sessionStorage.getItem("systemKey"),""),n=(i=r==null?void 0:r.find(m=>(m==null?void 0:m.name)===(o===""?v==null?void 0:v.compName:o)))==null?void 0:i.compData;la(n,v.allMapContents)},{deep:!0});const ha=async(e,l)=>{var o;try{const r={type:"data",pageKey:fe.value,tableId:v.index,systemKey:sessionStorage.getItem("systemKey")},n=l==null?void 0:l.map(u=>{const d=Object.keys(u),b={};return d.forEach((s,x)=>{b[e[x]]=u[s]}),b}),t=n==null?void 0:n.map(u=>({key:r,value:{tableData:u}})),p=await S.batchAddInsofDataApi({dataList:t});((o=p==null?void 0:p.data)==null?void 0:o.code)===200?(re.setRefreshCurStructure(!0),S.ElMessage.success("导入数据成功")):S.ElMessage.error("导入数据响应失败")}catch(r){throw S.ElMessage.error("导入数据处理失败"),new Error(r)}},ya=async e=>{var l,o;if(e!=null&&e.includes(".txt")||e!=null&&e.includes(".cpt")||e!=null&&e.includes(".cyd")){const r=await S.axios.get(e,{responseType:"blob",headers:{"Content-Type":"application/json"}}),n=new Blob([r.data],{type:"application/octet-stream;charset=UTF-8"});let t=URL.createObjectURL(n);_e.value=[{name:(o=e==null?void 0:e.split("/"))==null?void 0:o[((l=e==null?void 0:e.split("/"))==null?void 0:l.length)-1],blobUrl:t}],xe.value=!0}};a.onBeforeUnmount(()=>{ql.value=!1;let e=Bl.value;Bl.value=e+1});const va=a.computed(()=>{var o;const e=(ke.currentPage-1)*ke.pageSize,l=e+ke.pageSize;return(o=X.value)==null?void 0:o.slice(e,l)}),ba=e=>{ke.currentPage=e},ma=e=>{var l;ke.pageSize=e,e*ke.currentPage>((l=X.value)==null?void 0:l.length)&&(ke.currentPage=1,S.ElMessage.warning("分页无效,返回第一页"))},ka=(e,l)=>{var p,u;const o=(u=(p=M.value)==null?void 0:p.map(d=>d==null?void 0:d.prop))==null?void 0:u.filter(d=>d!=="operate");let r;const n=(e==null?void 0:e.length)===(o==null?void 0:o.length);if(e!=null&&e.includes("序号"))return S.ElMessage.error("导入的数据不需要包含序号列");if(r=n?e:e.slice(0,o==null?void 0:o.length),!(r==null?void 0:r.every(d=>o==null?void 0:o.find(b=>d===b))))return S.ElMessage.error("导入的数据表头不匹配");ha(r,l)},Sa=(e,l)=>{var o;re.setRefreshCurStructure(!1),((o=M.value)==null?void 0:o.length)===0||ka(e,l)},Da=(e,l,o,r)=>{const n=[],t=[],p=b=>Object.keys(b).length;for(const b in e)if(e[b]!==void 0){const s=e[b],x=[];for(const[k,C]of Object.entries(s))x.push(C),t.length<p(s)&&t.push(k);n.push(x)}n.unshift(t);const u=ol.utils.aoa_to_sheet(n),d=ol.utils.book_new();ol.utils.book_append_sheet(d,u,r),ol.writeFileSync(d,`${l}.xlsx`),Le.value=[]},Sl=async(e,l,o,r=!1,n)=>{var t,p,u,d,b,s,x,k;try{re.setRefreshCurStructure(!1);const C=await S.getInsofDataApi({id:v==null?void 0:v.index});if(((t=C==null?void 0:C.data)==null?void 0:t.code)===200){let N=(b=(d=(u=(p=C==null?void 0:C.data)==null?void 0:p.result)==null?void 0:u[0])==null?void 0:d.value)==null?void 0:b.pageData;r?N={...N,compData:(x=N==null?void 0:N.compData)==null?void 0:x.map(T=>{var $;return(T==null?void 0:T.key)==="header"?{...T,contents:($=T==null?void 0:T.contents)==null?void 0:$.map(A=>({...A,[e]:o}))}:T})}:N={...N,compData:(s=N==null?void 0:N.compData)==null?void 0:s.map(T=>{var $,A;return(T==null?void 0:T.key)==="header"?{...T,contents:($=T==null?void 0:T.contents)==null?void 0:$.map(_=>(_==null?void 0:_.prop)===(l==null?void 0:l.prop)?{..._,[e]:o}:_)}:(T==null?void 0:T.key)==="tableToForm"&&n?{...T,contents:(A=T==null?void 0:T.contents)==null?void 0:A.map(_=>(_==null?void 0:_.prop)===(l==null?void 0:l.prop)?{..._,[n]:o}:_)}:T})};const w=await S.updateInsofDataApi({id:v==null?void 0:v.index,value:{pageData:N}});((k=w==null?void 0:w.data)==null?void 0:k.code)===200?(S.ElMessage.success("编辑成功"),re.setRefreshCurStructure(!0)):S.ElMessage.error("编辑响应失败")}}catch(C){S.ElMessage.error(C)}},Ta=async(e,l)=>{await Sl("label",l,e)},Ca=async(e,l)=>{await Sl("columnType",l,e,!1,"type")},Aa=()=>{Qe.value?Ze.value=!1:aa()},Ea=e=>{Le.value=e},xa=(e,l)=>{el.value===l?tl.value=!1:tl.value=!0,el.value=l==null?void 0:l.changeProp},ul=a.computed(()=>{var o,r,n;const e=(o=M.value)==null?void 0:o.some(t=>t==null?void 0:t.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",e?"inline-block":"none"),(n=(r=M.value)==null?void 0:r.filter(t=>(t==null?void 0:t.label)!=="操作"))==null?void 0:n.map(t=>({...t,filterable:!!(t!=null&&t.filterable),showSummary:!!(t!=null&&t.showSummary),operable:!!(t!=null&&t.operable)}))}),Na=async(e,l,o)=>{const r=S.cloneDeep(M.value);await a.nextTick(),M.value=r==null?void 0:r.map(n=>(o==null?void 0:o.label)===(n==null?void 0:n.label)?{...n,[l]:e}:n),await Sl(l,o,e)},Ol=async(e,l)=>{await Sl(l,null,e,!0)},_a=()=>{Fe.value=!1},Ba=e=>{j("clickTrigger",e)},Jl=async e=>{var t,p,u,d,b,s,x,k,C,N,w,T,$,A,_;const l=e==null?void 0:e.row,o=e==null?void 0:e.rowData,r=e==null?void 0:e.suffix;if((t=l==null?void 0:l.toString())!=null&&t.includes(".urdf")||e!=null&&e.isUrdf||r!=null&&r.includes(".urdf")){if(l.includes(",")){S.ElMessage.error("当前版本仅允许单个urdf预览!");return}il.value=[l],be.value=!0,$e.value={data:S.cloneDeep(o)},Z.value=!0;return}let n=[];if((p=l==null?void 0:l.toString())!=null&&p.includes(".stl")||(u=l==null?void 0:l.toString())!=null&&u.includes(".STL")||(d=l==null?void 0:l.toString())!=null&&d.includes(".obj")||(b=l==null?void 0:l.toString())!=null&&b.includes(".mtl")){il.value=(s=l==null?void 0:l.toString())==null?void 0:s.split(","),be.value=!1,Z.value=!0;return}if((x=l==null?void 0:l.toString())!=null&&x.includes(".stl")||(k=l==null?void 0:l.toString())!=null&&k.includes(".STL")||(C=l==null?void 0:l.toString())!=null&&C.includes(".obj")||(N=l==null?void 0:l.toString())!=null&&N.includes(".mtl")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){let g,h=[],i={};if(Array.isArray(l)?g=l:g=l==null?void 0:l.split(","),g==null||g.forEach(m=>{m.includes(".mtl")?h.push(m):i.blob=i.blob?i.blob+","+m:m}),(h==null?void 0:h.length)>0&&(i.mtlBlobs=h),r&&(i.suffix=r),(T=(w=Object.values(i))==null?void 0:w[0])!=null&&T.includes("http:"))n.push(i);else{const m=new Blob([i.blob],{type:"application/octet-stream;charset=UTF-8"});let c=URL.createObjectURL(m),K="";($=l==null?void 0:l.split("/"))==null||$.forEach((V,I)=>{var Q;I===((Q=l==null?void 0:l.split("/"))==null?void 0:Q.length)-1&&(K=V)}),(A=i.blob)!=null&&A.includes(".stl")&&(K=(K==null?void 0:K.replaceAll(">",""))+".urdf"),_e.value=[{name:K,blobUrl:c}],xe.value=!0}}else{const g=await S.axios.get(l,{responseType:"blob",headers:{"Content-Type":"application/json"}}),h=new Blob([g.data],{type:"application/octet-stream;charset=UTF-8"});let i=URL.createObjectURL(h),m="";(_=l==null?void 0:l.split("/"))==null||_.forEach((c,K)=>{var V;K===((V=l==null?void 0:l.split("/"))==null?void 0:V.length)-1&&(m=c)}),_e.value=[{name:m,blobUrl:i}],xe.value=!0}(n==null?void 0:n.length)>0&&O.setBlobUrls(n)},Dl=e=>{var r,n,t,p;if(e!=null&&e.downloadUrl)return e==null?void 0:e.name;const l=(p=(r=e==null?void 0:e.url)==null?void 0:r.split("."))==null?void 0:p[((t=(n=e==null?void 0:e.url)==null?void 0:n.split("."))==null?void 0:t.length)-1];return(e==null?void 0:e.name)+"."+l},Ua=async e=>{let l=null,o=null,r=null;if(e!=null&&e.downloadUrl){const t=await wl(),p=He.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),u=await S.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:t,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}).finally(()=>{p.close()}),d=new Blob([u.data],{type:"application/octet-stream;charset=UTF-8"});l=URL.createObjectURL(d),o=e==null?void 0:e.name;const b=o==null?void 0:o.lastIndexOf(".");r=o==null?void 0:o.slice(b)}else{const t=await Cl.downloadAvatarApi({url:e==null?void 0:e.url});!e.url.toUpperCase().includes(".OBJ")&&!e.url.toUpperCase().includes(".STL")&&!e.url.toUpperCase().includes(".MTL")&&!e.url.toUpperCase().includes(".URDF")?(l=URL.createObjectURL(t.data),o=Dl(e)):l=e==null?void 0:e.url}if(r!=null&&r.includes(".urdf")||r!=null&&r.includes(".stl")||r!=null&&r.includes(".STL")||r!=null&&r.includes(".obj")||r!=null&&r.includes(".mtl")){const t={row:`${l}`,suffix:r};Jl(t);return}const n={name:o,blobUrl:l};_e.value=[n],xe.value=!0},Oa=async e=>{let l=null,o=null;if(e!=null&&e.downloadUrl){const t=await wl(),p=await S.axios.post(e==null?void 0:e.url,null,{responseType:"blob",headers:{Authorization:t,baseURL:"http://139.196.154.85:20025","Content-Type":"application/json"}}),u=new Blob([p.data],{type:"application/octet-stream;charset=UTF-8"});l=URL.createObjectURL(u),o=e==null?void 0:e.name}else{const t=await Cl.downloadAvatarApi({url:e==null?void 0:e.url});l=URL.createObjectURL(t.data),o=Dl(e)}const r={name:o,blobUrl:l},n=document.createElement("a");n.href=r.blobUrl,n.download=r.name,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n)},100)},wa=(e,l)=>{if(Object.values(l).length!==0)return Object.values(l).find(o=>{var r,n,t;return((r=o==null?void 0:o.toString())==null?void 0:r.includes(".txt"))||((n=o==null?void 0:o.toString())==null?void 0:n.includes(".cpt"))||((t=o==null?void 0:o.toString())==null?void 0:t.includes(".obj"))})?[...e,ua.value]:e},La=(e,l={})=>[...e==null?void 0:e.values()].filter(o=>Object.keys(l).every(r=>{var p;const n=o[r],t=(p=l[r])==null?void 0:p.toLowerCase();return t&&n&&typeof n=="string"?n.toLowerCase().includes(t):!0})),Rl=a.ref([]),Ma=async(e,l,o=!1)=>{var r;if(e){if(re.setTableLoading(!0),Rl.value=Object.values(e),e&&((r=Object.values(e))!=null&&r.every(n=>!n)))return X.value=fl.value;if(o){X.value=[...gl.value.values()].filter(n=>Object.values(n).some(t=>typeof t=="string"?t==null?void 0:t.toLowerCase().includes(l==null?void 0:l.toLowerCase()):!1));return}X.value=La(gl.value,e),re.setTableLoading(!1)}},ja=async e=>{var p,u,d,b,s,x,k,C,N,w,T,$,A,_,g;const l=await S.getInsofDataApi({keyLikes:{pageKey:`loading${((p=ie.value)==null?void 0:p.account)||((u=ie.value)==null?void 0:u.账号)}`,systemKey:sessionStorage.getItem("systemKey")}}),o=await S.getInsofDataApi({keyLikes:{pageKey:`updateLoading${((d=ie.value)==null?void 0:d.account)||((b=ie.value)==null?void 0:b.账号)}`,systemKey:sessionStorage.getItem("systemKey")}});let r=(x=(s=l==null?void 0:l.data)==null?void 0:s.result)==null?void 0:x.map(h=>h==null?void 0:h.id);const n=(C=(k=o==null?void 0:o.data)==null?void 0:k.result)==null?void 0:C.map(h=>h==null?void 0:h.id);r=[...S.cloneDeep(r),...n],(r==null?void 0:r.length)>0&&(r!=null&&r.every(h=>h!==null&&h))&&await S.batchDeleteInsofDataApi({ids:r});let t=await se.getItemData(fe.value,sessionStorage.getItem("systemKey"),e.id);if(t=t==null?void 0:t.filter(h=>h.comp!=="methodButton"),t&&t.length>0){const h=!Array.isArray(Ul.value)&&((N=Ul.value)==null?void 0:N.key)!=="main"?[]:Ul.value;h.push({key:Pe.value===""?(w=e==null?void 0:e.id)==null?void 0:w.toString():Pe.value+"-"+((T=e==null?void 0:e.id)==null?void 0:T.toString()),value:e[($=Object.keys(e))==null?void 0:$.filter(i=>i!=="index"&&i!=="id")[0]]}),bl.setSelectMenu(Pe.value===""?(A=e==null?void 0:e.id)==null?void 0:A.toString():Pe.value+"-"+((_=e==null?void 0:e.id)==null?void 0:_.toString())),bl.setSelectTitle(h),bl.setSelectIndex((g=e==null?void 0:e.id)==null?void 0:g.toString()),j("pageChange",t)}},Ka=async(e,l,o,r)=>{var b,s,x,k,C,N,w,T,$,A,_,g,h,i,m,c,K,V,I,Q,W,ne,R,ee,ue,oe,te,Se,y,G,E;const n=await S.getInsofDataApi({keyLikes:{pageKey:`loading${((b=ie.value)==null?void 0:b.account)||((s=ie.value)==null?void 0:s.账号)}`,systemKey:sessionStorage.getItem("systemKey")}}),t=await S.getInsofDataApi({keyLikes:{pageKey:`updateLoading${((x=ie.value)==null?void 0:x.account)||((k=ie.value)==null?void 0:k.账号)}`,systemKey:sessionStorage.getItem("systemKey")}});if((r==null?void 0:r.isExistChild)===!0){let F=(N=(C=M.value)==null?void 0:C.find(U=>(U==null?void 0:U.isMainKey)===!0))==null?void 0:N.prop,pe=(w=r==null?void 0:r.rowContent)==null?void 0:w[F],q=($=(T=r==null?void 0:r.columnType)==null?void 0:T.childPath)==null?void 0:$.split(J),D=[];q==null||q.forEach((U,z)=>{(q==null?void 0:q.length)-1===z&&D.push(pe),D.push(U)}),D=D.join(J);let f=await se.getItemData(D,sessionStorage.getItem("systemKey"),""),Y=await se.getItemData((A=r==null?void 0:r.columnType)==null?void 0:A.childPath,sessionStorage.getItem("systemKey"),"");if(!f||(f==null?void 0:f.length)===0){let U=[];Y==null||Y.forEach(le=>{var Re,Ee,We,Ge;let Ae={type:"structure",pageKey:D,version:1,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",createUserId:(Re=ie.value)==null?void 0:Re.id,parentPageKey:"",createUserLayer:((Ee=ie.value)==null?void 0:Ee.dept)||((We=ie.value)==null?void 0:We.部门名称)},ll={pageData:{comp:le==null?void 0:le.comp,compData:(Ge=le==null?void 0:le.compData)==null?void 0:Ge.filter(Ve=>(Ve==null?void 0:Ve.key)!=="tableContents"),name:le==null?void 0:le.name,isShow:le==null?void 0:le.isShow}};U.push({key:Ae,value:ll})}),(U==null?void 0:U.length)>0&&await S.batchAddInsofDataApi({dataList:U});let z=await se.getItemData(D,sessionStorage.getItem("systemKey"),"");kl.value=z}else kl.value=f;j("routeUrl",kl.value,{isEdit:!0,routerUrl:D});return}let p=(g=(_=n==null?void 0:n.data)==null?void 0:_.result)==null?void 0:g.map(F=>F==null?void 0:F.id);const u=(i=(h=t==null?void 0:t.data)==null?void 0:h.result)==null?void 0:i.map(F=>F==null?void 0:F.id);if(p=[...S.cloneDeep(p),...u],(p==null?void 0:p.length)>0&&(p!=null&&p.every(F=>F!==null&&F))&&await S.batchDeleteInsofDataApi({ids:p}),(r==null?void 0:r.data)==="查看"&&(e!=null&&e.every(F=>(F==null?void 0:F.url)&&(F==null?void 0:F.name)))){let F=S.cloneDeep(e);F=await((m=S.cloneDeep(F))==null?void 0:m.map(async q=>{var Y,U,z,le;const D=await Cl.downloadAvatarApi({url:q==null?void 0:q.url});let f=URL.createObjectURL(D.data);return{name:(q==null?void 0:q.name)+"."+((le=(Y=q==null?void 0:q.url)==null?void 0:Y.split("."))==null?void 0:le[((z=(U=q==null?void 0:q.url)==null?void 0:U.split("."))==null?void 0:z.length)-1]),blobUrl:f}}));let pe=await Promise.all(F);_e.value=pe,xe.value=!0}const d=S.cloneDeep(M.value);if((r==null?void 0:r.isMainKey)===!0&&(d==null?void 0:d.length)>0){(c=d==null?void 0:d[0])==null||c.prop;let F=S.cloneDeep(fe).value+J+(r==null?void 0:r.data),pe=S.cloneDeep(fe).value,q=(V=(K=xl.value[F])==null?void 0:K.filter(U=>{var z,le;return((z=U==null?void 0:U.key)==null?void 0:z.type)==="structure"&&((le=U==null?void 0:U.key)==null?void 0:le.parentTable)===""}))==null?void 0:V.map(U=>{var z;return(z=U==null?void 0:U.value)==null?void 0:z.pageData}),D={};(I=M.value)==null||I.forEach(U=>{(U==null?void 0:U.label)!=="操作"&&(D[U.label]=o[U.prop]??o[U.label])});let f=(W=(Q=v==null?void 0:v.itemData)==null?void 0:Q.find(U=>(U==null?void 0:U.key)==="mainRouters"))==null?void 0:W.contents,Y;if((f==null?void 0:f.length)>0){let U=F==null?void 0:F.split(J)[((ne=F==null?void 0:F.split(J))==null?void 0:ne.length)-1],z=f==null?void 0:f.find(le=>(le==null?void 0:le.key)===U);Y=(z==null?void 0:z.routerContent)+J+(z==null?void 0:z.key)}if((q==null?void 0:q.length)>0)await se.loadingConstruct(F,F+J+`updateLoading${((R=ie.value)==null?void 0:R.account)||((ee=ie.value)==null?void 0:ee.账号)}`,D,Y),re.setRouteToChildPath(pe),ye.setActiveMenuPath(F+J+`updateLoading${((ue=ie.value)==null?void 0:ue.account)||((oe=ie.value)==null?void 0:oe.账号)}`);else{(te=d==null?void 0:d[0])==null||te.prop;let U=S.cloneDeep(fe).value+J+(r==null?void 0:r.data),z=S.cloneDeep(fe).value;await se.getItemData(z+J,sessionStorage.getItem("systemKey"),""),await se.loadingConstruct(z+J,U,D),await se.loadingConstruct(U,U+J+`updateLoading${((Se=ie.value)==null?void 0:Se.account)||((y=ie.value)==null?void 0:y.账号)}`,D,Y),re.setRouteToChildPath(z),ye.setActiveMenuPath(U+J+`updateLoading${((G=ie.value)==null?void 0:G.account)||((E=ie.value)==null?void 0:E.账号)}`)}}},$a=()=>{xe.value=!1},Fa=e=>{j("rowClick",e)};a.watch(()=>v.changedContent,()=>{var o,r;if(!v.changedContent)return;let e=(o=X.value)==null?void 0:o.map(n=>{var t;return n.id===((t=v.changedContent)==null?void 0:t.id)&&(n={...v.changedContent,id:v.changedContent.newId?v.changedContent.newId:v.changedContent.id},delete n.newId),n});const l=(r=v.itemData)==null?void 0:r.map(n=>((n==null?void 0:n.key)==="tableContents"&&(n.contents=e),n));X.value=e,j("contentChange",{contents:l,index:v.index}),j("change",{content:e,index:v==null?void 0:v.index,buttonName:"",id:v==null?void 0:v.index})},{deep:!0,immediate:!0});const Pa=()=>{},Va=async()=>{const e=fe.value,l=sessionStorage.getItem("systemKey"),o=await se.getItemData(e,l,""),r=o==null?void 0:o.find(u=>(u==null?void 0:u.name)==="方法明细"),n=(r==null?void 0:r.compData)||[],t=n==null?void 0:n.find(u=>(u==null?void 0:u.key)==="formContent");return t==null?void 0:t.contents},wl=async()=>`Bearer ${S.Local.get("access-token")}`,za=async(e,{token:l,inputData:o}={})=>await S.axios.post(e,o,{headers:{Authorization:l}}).catch(n=>(ye.setImportLoading(!1),Promise.reject(n))),qa=e=>{var r;let l={};const o=[];return l.form={},(r=S.cloneDeep(e))==null||r.forEach((n,t)=>{var p,u,d,b,s,x,k,C,N,w,T,$,A,_;if((n==null?void 0:n.comp)==="Table"){(u=(p=n==null?void 0:n.compData)==null?void 0:p.find(m=>(m==null?void 0:m.key)==="header"))==null||u.contents;let g=(s=(b=(d=n==null?void 0:n.compData)==null?void 0:d.find(m=>(m==null?void 0:m.key)==="tableContents"))==null?void 0:b.contents)==null?void 0:s.map(m=>m.slice(1));(w=(N=(C=(k=(x=n==null?void 0:n.compData)==null?void 0:x.find(m=>(m==null?void 0:m.key)==="header"))==null?void 0:k.contents)==null?void 0:C[0])==null?void 0:N[0])==null||w.label;let h=($=(T=n==null?void 0:n.compData)==null?void 0:T.find(m=>(m==null?void 0:m.key)==="header"))==null?void 0:$.contents,i=[];g==null||g.forEach(m=>{let c=[];m==null||m.forEach((K,V)=>{var Q;let I={};((Q=h[V])==null?void 0:Q.label)!=="操作"&&(I[h[V].label]=K,c.push(I))}),i.push(c)}),l[n.name]=i}else{const g=(_=(A=n.compData)==null?void 0:A.find(h=>(h==null?void 0:h.key)==="formContent"))==null?void 0:_.contents;g==null||g.forEach(h=>{var i,m;if(h.prop!==""){let c=h==null?void 0:h.value;Array.isArray(c)?c=((i=c==null?void 0:c[0])==null?void 0:i.oldUrl)||"http://222.92.178.198:62001/"+((m=c==null?void 0:c[0])==null?void 0:m.url):c=c.toString(),h={key:(h==null?void 0:h.prop)??(h==null?void 0:h.label),value:c},o.push(h)}})}}),l.form=se.getFormContents(o),l},Ja=async(e,l,o)=>{var K,V,I,Q,W,ne,R,ee,ue,oe,te,Se;ye.setImportLoading(!0);const r=await Va().catch(y=>(ye.setImportLoading(!1),Promise.reject(y))),n=r==null?void 0:r.find(y=>(y==null?void 0:y.key)==="算法体"),t=n==null?void 0:n.value;if(!t){console.log("未搜索到isMain, 缺少算法执行接口"),ye.setImportLoading(!1);return}const p=M.value||[],u=p.find(y=>(y==null?void 0:y.prop)==="输入"),d=u==null?void 0:u.prop;let b=l==null?void 0:l[d];const s=await wl().catch(y=>(ye.setImportLoading(!1),Promise.reject(y)));let x=!1,k="";(K=M.value)==null||K.forEach(y=>{(y==null?void 0:y.prop)===d&&(x=!!(y!=null&&y.childPath),k=y==null?void 0:y.childPath)});let C="",N="";if(x){let y=(I=(V=M.value)==null?void 0:V.find(pe=>(pe==null?void 0:pe.isMainKey)===!0))==null?void 0:I.prop;N=l==null?void 0:l[y];let G=k==null?void 0:k.split(J),E=[];G==null||G.forEach((pe,q)=>{(G==null?void 0:G.length)-1===q&&E.push(N),E.push(pe)}),E=E.join(J),C=E;let F=await se.getItemData(E,sessionStorage.getItem("systemKey"),"");b=qa(F)}const w=await za(t,{token:s,inputData:b}).catch(y=>(ye.setImportLoading(!1),Promise.reject(y))),T=(Q=w==null?void 0:w.data)==null?void 0:Q.data,$=r==null?void 0:r.find(y=>(y==null?void 0:y.prop)==="算法名称");$==null||$.value;const A=p.find(y=>(y==null?void 0:y.prop)==="输出"),_=A==null?void 0:A.directiveLabel;C=C==null?void 0:C.replaceAll(u==null?void 0:u.directiveLabel,_);const g=(W=S.cloneDeep(C))==null?void 0:W.replaceAll(J+N,"");let h=await se.getItemData(C,sessionStorage.getItem("systemKey"),""),i=await se.getItemData(g,sessionStorage.getItem("systemKey"),"");if(h){let y=[],G=[];h==null||h.forEach(E=>{var F,pe;if((E==null?void 0:E.comp)==="Table")(F=E==null?void 0:E.compData)==null||F.forEach(q=>{var D;(q==null?void 0:q.key)==="tableContents"&&((D=q==null?void 0:q.contents)==null||D.forEach(f=>{var Y,U;(Y=f==null?void 0:f[0])!=null&&Y.id&&y.push((U=f==null?void 0:f[0])==null?void 0:U.id)}))});else if((E==null?void 0:E.comp)==="Form"){E.compData=(pe=E==null?void 0:E.compData)==null?void 0:pe.map(D=>{var f;return(D==null?void 0:D.key)==="formContent"&&(D.contents=(f=D==null?void 0:D.contents)==null?void 0:f.map(Y=>{var U,z;return(U=T==null?void 0:T.form)!=null&&U[Y.prop]&&(Y.value=(z=T==null?void 0:T.form)==null?void 0:z[Y.prop]),Y})),D});let q={pageData:{comp:E==null?void 0:E.comp,name:E==null?void 0:E.name,isShow:E==null?void 0:E.isShow,compData:E==null?void 0:E.compData}};G.push({id:E==null?void 0:E.id,value:q})}}),(G==null?void 0:G.length)>0&&await S.batchUpdateInsofDataApi({dataList:G}),y=[...new Set(y)],(y==null?void 0:y.length)>0&&await S.batchDeleteInsofDataApi({ids:y})}else{let y=[];if(T!=null&&T.table){let G={type:"structure",systemKey:sessionStorage.getItem("systemKey"),pageKey:C,parentTable:"",createUserId:(ne=ie.value)==null?void 0:ne.id,createUserOrg:((R=ie.value)==null?void 0:R.dept)||((ee=ie.value)==null?void 0:ee.部门名称)};i==null||i.forEach(E=>{let pe={pageData:{comp:E==null?void 0:E.comp,name:E==null?void 0:E.name,isShow:E==null?void 0:E.isShow,compData:E==null?void 0:E.compData}};y.push({key:G,value:pe})})}if(T!=null&&T.form){let G={type:"structure",pageKey:C,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",createUserId:(ue=ie.value)==null?void 0:ue.id,parentPageKey:"",createUserLayer:((oe=ie.value)==null?void 0:oe.dept)||((te=ie.value)==null?void 0:te.部门名称)};i==null||i.forEach(E=>{var D;let F=(D=E==null?void 0:E.compData)==null?void 0:D.map(f=>{var Y;return(f==null?void 0:f.key)==="formContent"&&(f.contents=(Y=f.contents)==null?void 0:Y.map(U=>{var z,le;return(z=T==null?void 0:T.form)!=null&&z[U.prop]&&(U.value=(le=T==null?void 0:T.form)==null?void 0:le[U.prop]),U})),f}),q={pageData:{comp:E==null?void 0:E.comp,name:E==null?void 0:E.name,isShow:E==null?void 0:E.isShow,compData:F}};y.push({key:G,value:q})})}(y==null?void 0:y.length)>0&&await S.batchAddInsofDataApi({dataList:y})}let m=await se.getItemData(C,sessionStorage.getItem("systemKey"),""),c=[];T!=null&&T.table&&((Se=T==null?void 0:T.table)==null||Se.forEach(y=>{var F,pe,q,D;let G={type:"data",pageKey:C,tableId:(F=m==null?void 0:m[0])==null?void 0:F.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(pe=ie.value)==null?void 0:pe.id,createUserOrg:((q=ie.value)==null?void 0:q.dept)||((D=ie.value)==null?void 0:D.部门名称)},E={tableData:y};c.push({key:G,value:E})})),(c==null?void 0:c.length)>0&&await S.batchAddInsofDataApi({dataList:c}),dl(!0),ye.setImportLoading(!1)},Wl=(e,l)=>(e=e==null?void 0:e.map(o=>{var r,n;return o!=null&&o.children&&((r=o.children)!=null&&r.find(t=>t.id===(l==null?void 0:l.id))?o.children=(n=o.children)==null?void 0:n.filter(t=>(t==null?void 0:t.id)!==(l==null?void 0:l.id)):o.children=Wl(o.children,l)),o}),e),Tl=async(e,l,o)=>{var r,n,t,p,u,d,b,s,x,k,C,N,w,T,$;if(Ke.value="",yl.value=!0,Nl.value=!0,j("onButtonClick",e,l),e==="删除")se.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var A,_;(A=X.value)!=null&&A.find(g=>(g==null?void 0:g.id)===(l==null?void 0:l.id))?X.value=(_=S.cloneDeep(X.value))==null?void 0:_.filter(g=>(g==null?void 0:g.id)!==(l==null?void 0:l.id)):X.value=Wl(S.cloneDeep(X.value),l),Tr(vl.value,Pe.value,l==null?void 0:l.id),re.setTableLoading(v==null?void 0:v.index),j("change",{content:X.value,singleContent:l,index:v==null?void 0:v.index,type:"delete",buttonName:e,column:M.value})});else if(e==="批量删除"){if(((r=Le.value)==null?void 0:r.length)===0)return S.ElMessage.warning("请先勾选操作的数据");se.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var _,g;const A=(_=Le.value)==null?void 0:_.map(h=>h.id);X.value=(g=S.cloneDeep(X.value))==null?void 0:g.filter(h=>!(A!=null&&A.includes(h.id))),re.setTableLoading(v==null?void 0:v.index),j("change",{content:X.value,singleContent:null,selectItems:Le.value,index:v==null?void 0:v.index,type:"batchDelete",buttonName:e,column:M.value})})}else if(e==="复制新增"){Oe.value="新增";const A=S.cloneDeep(l),_=(n=M.value)==null?void 0:n.find(i=>i==null?void 0:i.isMainKey),g=_||((t=M.value)==null?void 0:t[0]),h=(p=Ie.value)==null?void 0:p.find(i=>(i==null?void 0:i.label)==="新建");await Hl(!0,h,{data:A,firstCol:g})}else if(e==="新增")Oe.value="新增",cl(""),Fe.value=!0;else if(e==="编辑")Oe.value="编辑",cl(l),Fe.value=!0;else if(e==="查看")Oe.value="查看",cl(l),yl.value=!1,Nl.value=!1,Fe.value=!0;else if(e==="查看三维模型"){const A={};for(let g in l)g!=="id"&&(A[g]=l[g]);let _=(u=Object.values(A))==null?void 0:u[1];Ue.setTableShowThree(_)}else if(((d=o==null?void 0:o.extra)==null?void 0:d.type)==="modelExample")Oe.value=e,hl.value=!0;else if(e==="新建"){let A=xl.value,_=[];for(let c in A)c!=null&&c.includes(`loading${((b=ie.value)==null?void 0:b.account)||((s=ie.value)==null?void 0:s.账号)}`)&&(_=[..._,...c]);let g=[];for(let c in A)c!=null&&c.includes(`updateLoading${((x=ie.value)==null?void 0:x.account)||((k=ie.value)==null?void 0:k.账号)}`)&&(g=[...g,...c]);let h=_==null?void 0:_.map(c=>c==null?void 0:c.id);const i=g==null?void 0:g.map(c=>c==null?void 0:c.id);h=[...S.cloneDeep(h),...i],(h==null?void 0:h.length)>0&&(h!=null&&h.every(c=>c!==null&&c))&&await S.batchDeleteInsofDataApi({ids:h});const m=(C=Ie.value)==null?void 0:C.find(c=>(c==null?void 0:c.label)==="新建");await Hl(!1,m)}else if(e==="修改模板"){let A=S.cloneDeep(fe).value;re.setRouteToChildPath(A),ye.setActiveMenuPath(A+J)}else if(e==="执行")Ja(e,l);else if(e!=null&&e.includes("导出")){if(e==="导出选中"&&((N=Le.value)==null?void 0:N.length)===0)return S.ElMessage.warning(`请先勾选${e}的数据`);if(e==="导出全部"&&((w=X.value)==null?void 0:w.length)===0)return S.ElMessage.warning("暂无数据导出");const A=($=(T=M.value)==null?void 0:T.map(g=>g==null?void 0:g.label))==null?void 0:$.filter(g=>g!=="操作"),_=e==="导出全部"?S.cloneDeep(X.value):S.cloneDeep(Le.value);_==null||_.forEach(g=>{g==null||delete g.id}),Da(_,v==null?void 0:v.compName,A,v==null?void 0:v.compName)}},Ra=async e=>{var o,r,n,t,p,u;const l=await S.getInsofDataApi({key:{pageKey:e,type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((o=l==null?void 0:l.data)==null?void 0:o.code)===200)return Array.isArray((r=l==null?void 0:l.data)==null?void 0:r.result)&&((t=(n=l==null?void 0:l.data)==null?void 0:n.result)==null?void 0:t.length)>0?(u=(p=l==null?void 0:l.data)==null?void 0:p.result)==null?void 0:u.map(d=>{var b;return{id:d==null?void 0:d.id,...(b=d==null?void 0:d.value)==null?void 0:b.pageData}}):[]},Gl=(e,l,o,r)=>{var n;j("contentChange",{contents:(n=e==null?void 0:e.compData)==null?void 0:n.map(t=>{var p;return(t==null?void 0:t.key)==="formContent"?{...t,contents:(p=t==null?void 0:t.contents)==null?void 0:p.map(u=>(u==null?void 0:u.key)===l?{...u,value:o}:u)}:t}),index:e==null?void 0:e.id},r)},Wa=(e,l,o)=>{let r=e==null?void 0:e[l==null?void 0:l.prop],n=1;if(X.value.some(t=>(t==null?void 0:t[l==null?void 0:l.prop])===r)){const t=r;for(;X.value.some(p=>(p==null?void 0:p[l==null?void 0:l.prop])===`${t}(${n})`);)n++;r=`${t}(${n})`}return r},Hl=async(e,l,o)=>{var p,u,d,b,s,x,k,C;let r,n;const t=Wa(o==null?void 0:o.data,o==null?void 0:o.firstCol);if(e?(r=S.cloneDeep(fe).value+J+((b=o==null?void 0:o.data)==null?void 0:b[(d=o==null?void 0:o.firstCol)==null?void 0:d.prop]),n=S.cloneDeep(fe).value+J+t):(r=S.cloneDeep(fe).value+J,n=S.cloneDeep(r)+`loading${((p=ie.value)==null?void 0:p.account)||((u=ie.value)==null?void 0:u.账号)}`),l){const N=(x=(s=xl.value[n])==null?void 0:s.filter(w=>{var T;return((T=w==null?void 0:w.key)==null?void 0:T.parentTable)===""}))==null?void 0:x.map(w=>{var T;return{id:w==null?void 0:w.id,...(T=w==null?void 0:w.value)==null?void 0:T.pageData}});if((N==null?void 0:N.length)>0)if(e){const w=N==null?void 0:N.find(T=>{var $;return(($=T==null?void 0:T.comp)==null?void 0:$.toUpperCase())==="FORM"});w&&Gl(w,(k=o==null?void 0:o.firstCol)==null?void 0:k.label,t,fe.value)}else re.setRouteToChildPath(S.cloneDeep(fe).value),ye.setActiveMenuPath(n);else if(await se.loadingConstruct(r,n,null,null),e){const w=await Ra(n);if((w==null?void 0:w.length)>0){const T=w==null?void 0:w.find($=>{var A;return((A=$==null?void 0:$.comp)==null?void 0:A.toUpperCase())==="FORM"});T&&Gl(T,(C=o==null?void 0:o.firstCol)==null?void 0:C.label,t,fe.value)}}else re.setRouteToChildPath(S.cloneDeep(fe).value),ye.setActiveMenuPath(n)}else e?(Ke.value="",De.value=o==null?void 0:o.data,dl(!0,o==null?void 0:o.firstCol,t)):(re.setRouteToChildPath(S.cloneDeep(fe).value),ye.setActiveMenuPath(n))},Ga=()=>{Z.value=!1,il.value=[],be.value=!1},cl=e=>{var n,t,p,u,d,b;const l=[];let o=[];for(let s in e)Array.isArray(e==null?void 0:e[s])&&o.push(s);ge.value=S.cloneDeep(M.value),(t=se.getColumnChild((n=S.cloneDeep(M.value))==null?void 0:n.filter(s=>(s==null?void 0:s.label)!=="操作")))==null||t.forEach((s,x)=>{var k;o.find(C=>C===(s==null?void 0:s.prop))||(s!=null&&s.formType&&((k=s==null?void 0:s.formType)==null?void 0:k.toUpperCase())==="SELECT"?l.push({label:(s==null?void 0:s.prop)||(s==null?void 0:s.label)||"",name:(s==null?void 0:s.prop)??"t"+x,prop:s==null?void 0:s.prop,type:!(s!=null&&s.formType)||(s==null?void 0:s.formType)===""?"Input":s==null?void 0:s.formType,value:(e==null?void 0:e[s==null?void 0:s.prop])??(s==null?void 0:s.value)??"",id:(s==null?void 0:s.id)??x,contents:(s==null?void 0:s.options)??[],width:1,isFormColHidden:s==null?void 0:s.isFormColHidden,disabled:s==null?void 0:s.disabled,optionUrl:{groupSelect:s==null?void 0:s.groupSelect,menuSelect:s==null?void 0:s.formMenuSelect,type:"Select",selectRelateType:s==null?void 0:s.selectRelateType}}):l.push({label:(s==null?void 0:s.prop)||(s==null?void 0:s.label)||"",prop:s==null?void 0:s.prop,name:(s==null?void 0:s.prop)??"t"+x,type:!(s!=null&&s.formType)||(s==null?void 0:s.formType)===""?"Input":s==null?void 0:s.formType,value:(e==null?void 0:e[s==null?void 0:s.prop])??(s==null?void 0:s.value)??"",id:(s==null?void 0:s.id)??x,contents:(s==null?void 0:s.options)??[],width:1,isFormColHidden:s==null?void 0:s.isFormColHidden,disabled:s==null?void 0:s.disabled}))}),e===""||!e||(Ke.value=(e==null?void 0:e.id)??"");let r=se.getColumnChild((p=S.cloneDeep(M.value))==null?void 0:p.filter(s=>(s==null?void 0:s.label)!=="操作"));Be.value&&((u=Be.value)==null?void 0:u.length)>0&&(Be.value=(d=S.cloneDeep(Be).value)==null?void 0:d.map(s=>{var k;let x=(s==null?void 0:s.prop)||((k=r==null?void 0:r.find(C=>(C==null?void 0:C.label)===(s==null?void 0:s.label)))==null?void 0:k.prop);return x&&(s.value=e[x]),s})),Je.value=Be.value&&((b=Be.value)==null?void 0:b.length)>0?se.getTableFormToForm(Be.value):l},Ha=()=>{var l;const e=(l=B.value)==null?void 0:l.$el;e&&Kl.Sortable.create(e,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:o=>{var p;const{oldIndex:r,newIndex:n}=o;if(r===n)return;const t=ul.value.splice(r,1)[0];ul.value.splice(n,0,t),M.value=(p=M.value)==null?void 0:p.slice().sort((u,d)=>{if(u.label==="操作")return 1;if(d.label==="操作")return-1;const b=ul.value.findIndex(x=>x.label===u.label),s=ul.value.findIndex(x=>x.label===d.label);return b-s})}})};a.onMounted(()=>{_l.value=window.innerWidth-240*2});const Qa=()=>{a.nextTick(()=>{Ha()})},Ll=(e,l)=>{var r;if(!e&&!(e!=null&&e.children))return{contents:e,currentSelectContents:void 0};let o;return e.children=(r=e.children)==null?void 0:r.map(n=>{var t,p;if((n==null?void 0:n.id)===Ke.value){let u={};for(let d in n){let b=(t=l==null?void 0:l.find(s=>(s==null?void 0:s.prop)===d))==null?void 0:t.label;b?u[d]=(p=De.value)==null?void 0:p[b]:u[d]=n[d]}n=Object.assign(u,De.value),o=n}else{let u=Ll(n,l);n=u==null?void 0:u.contents,o=u==null?void 0:u.currentSelectContents}return n}),{contents:e,currentSelectContents:o}},Ql=(e,l)=>{let o,r;return e!=null&&e.find(n=>(n==null?void 0:n.id)===Ke.value)?o=e==null?void 0:e.map(n=>{var t,p;if((n==null?void 0:n.id)===Ke.value){let u={};for(let d in n){let b=(t=l==null?void 0:l.find(s=>(s==null?void 0:s.prop)===d))==null?void 0:t.label;b?u[d]=(p=De.value)==null?void 0:p[b]:u[d]=n[d]}n=Object.assign(u,De.value),r=n}return n}):o=e==null?void 0:e.map(n=>{var t,p,u,d;if((n==null?void 0:n.id)===Ke.value){let b={};for(let s in n){let x=(t=l==null?void 0:l.find(k=>(k==null?void 0:k.prop)===s))==null?void 0:t.label;x?b[s]=(p=De.value)==null?void 0:p[x]:b[s]=n[s]}n=Object.assign(b,De.value),r=n}else n=(u=Ll(n,l))==null?void 0:u.contents,r=(d=Ll(n,l))==null?void 0:d.currentSelectContents;return n}),{newContents:o,currentSelectContents:r}},Xl=(e,l,o)=>{var r,n;return e[l==null?void 0:l.prop]=o,typeof e.id=="number"&&(e.id=(r=e.id)==null?void 0:r.toString()),e.children&&((n=e.children)==null?void 0:n.length)>0&&(e.children=e.children.map(Xl)),e},Ml=e=>{var o;const l=[];return l.push({...e}),e!=null&&e.children&&Array.isArray(e.children)&&((o=e.children)==null||o.forEach(r=>{l.push(...Ml(r))})),(l==null?void 0:l.length)>0?l==null?void 0:l.map(r=>{const n={...r};return delete n.children,n}):[]},dl=(e=!0,l,o)=>{var b,s,x,k,C,N,w,T,$;let r=se.getColumnChild((b=S.cloneDeep(M.value))==null?void 0:b.filter(A=>(A==null?void 0:A.label)!=="操作")),n,t=S.cloneDeep(X.value);if(!De.value){Fe.value=!1;return}if(Ke.value===""){al.value++;let A;l&&o?A={id:al.value.toString(),[l==null?void 0:l.prop]:o,children:De.value.children}:A={id:al.value.toString()},A!=null&&A.children&&(A={...A,children:(s=A.children)==null?void 0:s.map(_=>Xl(_,l,o))}),t.push(Object.assign(De.value,A)),n=Object.assign(De.value,A)}else t=(x=Ql(t,r))==null?void 0:x.newContents,n=(k=Ql(t,r))==null?void 0:k.currentSelectContents;const p=(C=v.itemData)==null?void 0:C.filter(A=>(A==null?void 0:A.key)==="childTree")[0];if(((N=p==null?void 0:p.contents)==null?void 0:N.length)>0){Oe.value="编辑";const A=[];t==null||t.forEach((_,g)=>{var i;let h={};if(Array.isArray(_)){let m=[];_==null||_.filter(c=>!(c!=null&&c.id)).forEach((c,K)=>{var V,I,Q,W,ne,R,ee;if((I=(V=we.value)==null?void 0:V[K])!=null&&I.prop&&!Array.isArray(c)){let ue={};ue[we.value[K].column]=c,de!=null&&de.value&&((Q=de==null?void 0:de.value)==null?void 0:Q.length)>0&&((W=de==null?void 0:de.value)!=null&&W.find(oe=>JSON.stringify(oe==null?void 0:oe[0])===JSON.stringify(ue)))&&(m=(ne=de==null?void 0:de.value)==null?void 0:ne.find(oe=>JSON.stringify(oe==null?void 0:oe[0])===JSON.stringify(ue))),m&&m.length>0?h[we.value[K].prop]=m!=null&&m.find(oe=>{var te;return((te=Object.keys(oe))==null?void 0:te[0])===we.value[K].column})?(R=m==null?void 0:m.find(oe=>{var te;return((te=Object.keys(oe))==null?void 0:te[0])===we.value[K].column}))==null?void 0:R[we.value[K].column]:c:h[we.value[K].prop]=c}else Array.isArray(c)&&((ee=we.value[K])!=null&&ee.prop?h[we.value[K].prop]=c:h.children=Pl(c,we.value))})}else h=_;Array.isArray(_)&&_.some(m=>m==null?void 0:m.id)?A.push(Object.assign(h,{id:(i=_==null?void 0:_.find(m=>m.id))==null?void 0:i.id})):h.id?A.push(h):A.push(Object.assign(h,{id:g.toString()}))}),X.value=ea(A,p,M.value)}else X.value=t;vl.value=X.value;const u=Ar(vl.value,Pe.value,t);let d=[];if(Qe.value?(d=(w=S.cloneDeep(Qe).value.singleContent)==null?void 0:w.filter(A=>(A==null?void 0:A.id)!==(n==null?void 0:n.id)),d.push(n)):d=[n],Ze.value){const A={content:u,singleContent:((T=p==null?void 0:p.contents)==null?void 0:T.length)>0?d==null?void 0:d.flatMap(Ml):d,index:v==null?void 0:v.index,buttonName:"编辑",column:M.value,parentTableId:v==null?void 0:v.parentTableId};re.setCacheUpdatingData(A)}if(e){const A={content:u,singleContent:(($=p==null?void 0:p.contents)==null?void 0:$.length)>0?Ml(n):n,index:v==null?void 0:v.index,buttonName:Oe.value,column:M.value,parentTableId:v==null?void 0:v.parentTableId};re.setTableLoading(v==null?void 0:v.index),Fe.value=!1,De.value=void 0,j("change",A)}};a.onUnmounted(()=>{M.value=[],X.value=[],ge.value=[],je.value=[],Be.value=[],Xe.value=[],il.value=[],rl.value=[],Je.value=[],Le.value=[],B.value=null});const Il=async(e,l,o)=>{var b,s,x,k,C,N,w,T,$,A,_;el.value=o==null?void 0:o.prop;const r=S.cloneDeep(v.itemData),n=r==null?void 0:r.map(g=>{var h;return(g==null?void 0:g.key)==="header"&&((h=g.contents)==null||h.map((i,m)=>{var c,K,V,I,Q,W,ne,R,ee,ue,oe,te,Se,y,G,E,F,pe,q;return i.type=i!=null&&i.type?i.type:(I=(V=(K=(c=i==null?void 0:i.key)==null?void 0:c.split("$"))==null?void 0:K[1])==null?void 0:V.split("("))!=null&&I[0]?(W=(Q=se.FormType)==null?void 0:Q.find(D=>{var f,Y,U,z;return(D==null?void 0:D.key)===((z=(U=(Y=(f=i==null?void 0:i.key)==null?void 0:f.split("$"))==null?void 0:Y[1])==null?void 0:U.split("("))==null?void 0:z[0])}))==null?void 0:W.value:"Input",i.options=i!=null&&i.options?i.options:((ee=(R=(ne=i==null?void 0:i.key)==null?void 0:ne.split("$"))==null?void 0:R[1])==null?void 0:ee.length)>0?(Se=(te=Fl((oe=(ue=i==null?void 0:i.key)==null?void 0:ue.split("$"))==null?void 0:oe[1]))==null?void 0:te.split(","))==null?void 0:Se.map(D=>({label:D,value:D})):[],(y=i==null?void 0:i.key)!=null&&y.includes("$")&&(i.key=(E=(G=i==null?void 0:i.key)==null?void 0:G.split("$"))==null?void 0:E[0]),i.value=(F=Object.values(l))==null?void 0:F[m],i.optionUrl=i!=null&&i.formMenuSelect&&((pe=i==null?void 0:i.formMenuSelect)==null?void 0:pe.length)>0?{groupSelect:(q=i==null?void 0:i.groupSelect)==null?void 0:q.split(/[::]/).map(D=>D.trim()),menuSelect:i==null?void 0:i.formMenuSelect,selectRelateType:"",type:(i==null?void 0:i.formType)??(i!=null&&i.groupSelect?"Select":"")}:null,i})),g});let t=S.cloneDeep(Je.value),p=(s=(b=S.cloneDeep(n))==null?void 0:b.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:s.contents;t=t==null?void 0:t.map(g=>{var h;return g.value=(h=p==null?void 0:p.find((i,m)=>m===(g==null?void 0:g.id)))==null?void 0:h.value,g});let u="",d=(C=(k=(x=S.cloneDeep(n))==null?void 0:x.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:k.contents)==null?void 0:C.find((g,h)=>{var i,m,c;return(g==null?void 0:g.label)===el.value||(h==null?void 0:h.toString())===((c=(m=(i=el.value)==null?void 0:i.split("a"))==null?void 0:m[1])==null?void 0:c.toString())});if((T=(w=(N=S.cloneDeep(n))==null?void 0:N.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:w.contents)==null||T.forEach(g=>{var h,i,m,c,K;u===""&&((m=(i=(h=g==null?void 0:g.optionUrl)==null?void 0:h.groupSelect)==null?void 0:i[1])!=null&&m.includes("["))&&(u=(K=(c=g==null?void 0:g.optionUrl)==null?void 0:c.groupSelect)==null?void 0:K[1])}),($=d==null?void 0:d.optionUrl)!=null&&$.menuSelect){let g=await Vl(d),h;if(g==null||g.forEach(i=>{var m,c,K,V,I,Q,W,ne,R,ee;u===((c=(m=d==null?void 0:d.optionUrl)==null?void 0:m.groupSelect)==null?void 0:c[1])&&((I=(V=(K=d==null?void 0:d.optionUrl)==null?void 0:K.groupSelect)==null?void 0:V[1])!=null&&I.includes("["))&&((ee=S.cloneDeep(i))==null?void 0:ee[(R=(ne=(W=(Q=d==null?void 0:d.optionUrl)==null?void 0:Q.groupSelect)==null?void 0:W[1])==null?void 0:ne.replaceAll("[",""))==null?void 0:R.replaceAll("]","")])===(d==null?void 0:d.value)&&(h=i)}),h){let i=S.cloneDeep(t);i=i==null?void 0:i.map(c=>{var K,V,I,Q,W,ne,R,ee,ue,oe,te;return(h!=null&&h[c==null?void 0:c.label]||h!=null&&h[(Q=(I=(V=(K=c==null?void 0:c.optionUrl)==null?void 0:K.groupSelect)==null?void 0:V[1])==null?void 0:I.replaceAll("[",""))==null?void 0:Q.replaceAll("]","")])&&((R=(ne=(W=c==null?void 0:c.optionUrl)==null?void 0:W.groupSelect)==null?void 0:ne[1])!=null&&R.includes("["))&&(c.value=(h==null?void 0:h[c==null?void 0:c.label])||(h==null?void 0:h[(te=(oe=(ue=(ee=c==null?void 0:c.optionUrl)==null?void 0:ee.groupSelect)==null?void 0:ue[1])==null?void 0:oe.replaceAll("[",""))==null?void 0:te.replaceAll("]","")])),c}),X.value=(A=S.cloneDeep(X.value))==null?void 0:A.map(c=>{if((c==null?void 0:c.id)===(l==null?void 0:l.id)){const K={};return i==null||i.forEach(V=>{K[V.name]=V.value}),K.id=c==null?void 0:c.id,K}return c});let m=S.cloneDeep(i);m=m==null?void 0:m.map(c=>{var K,V,I,Q;return(V=(K=c==null?void 0:c.optionUrl)==null?void 0:K.menuSelect)!=null&&V.some(W=>W==null?void 0:W.includes)&&(c.optionUrl.menuSelect=(Q=(I=c==null?void 0:c.optionUrl)==null?void 0:I.menuSelect)==null?void 0:Q.map(W=>{var ne,R,ee,ue;if(W!=null&&W.includes("[")){let oe=(R=(ne=W==null?void 0:W.replaceAll("[","").replaceAll("]",""))==null?void 0:ne.split(":"))==null?void 0:R[1];W=(ue=(ee=S.cloneDeep(i))==null?void 0:ee.find(te=>(te==null?void 0:te.label)===oe))==null?void 0:ue.value}return W})),c}),X.value=(_=S.cloneDeep(X.value))==null?void 0:_.map(c=>{if((c==null?void 0:c.id)===(l==null?void 0:l.id)){const K={};return m==null||m.forEach(V=>{K[V.name]=V.value}),K.id=c==null?void 0:c.id,K}return c})}}},Xa=async e=>{var b,s,x,k,C,N,w,T,$,A,_;if(!e)return;De.value=e;const l=S.cloneDeep(v.itemData);let o=l==null?void 0:l.map(g=>{var h;return(g==null?void 0:g.key)==="header"&&((h=g.contents)==null||h.map((i,m)=>{var c,K,V,I,Q,W,ne,R,ee,ue,oe,te,Se,y,G,E,F,pe,q;return i.type=i!=null&&i.type?i.type:(I=(V=(K=(c=i==null?void 0:i.key)==null?void 0:c.split("$"))==null?void 0:K[1])==null?void 0:V.split("("))!=null&&I[0]?(W=(Q=se.FormType)==null?void 0:Q.find(D=>{var f,Y,U,z;return(D==null?void 0:D.key)===((z=(U=(Y=(f=i==null?void 0:i.key)==null?void 0:f.split("$"))==null?void 0:Y[1])==null?void 0:U.split("("))==null?void 0:z[0])}))==null?void 0:W.value:"Input",i.options=i!=null&&i.options?i.options:((ee=(R=(ne=i==null?void 0:i.key)==null?void 0:ne.split("$"))==null?void 0:R[1])==null?void 0:ee.length)>0?(Se=(te=Fl((oe=(ue=i==null?void 0:i.key)==null?void 0:ue.split("$"))==null?void 0:oe[1]))==null?void 0:te.split(","))==null?void 0:Se.map(D=>({label:D,value:D})):[],(y=i==null?void 0:i.key)!=null&&y.includes("$")&&(i.key=(E=(G=i==null?void 0:i.key)==null?void 0:G.split("$"))==null?void 0:E[0]),i.value=(F=Object.values(e))==null?void 0:F[m],i.optionUrl=i!=null&&i.formMenuSelect&&((pe=i==null?void 0:i.formMenuSelect)==null?void 0:pe.length)>0?{groupSelect:(q=i==null?void 0:i.groupSelect)==null?void 0:q.split(/[::]/).map(D=>D.trim()),menuSelect:i==null?void 0:i.formMenuSelect,selectRelateType:"",type:(i==null?void 0:i.formType)??(i!=null&&i.groupSelect?"Select":"")}:null,i})),g}),r=S.cloneDeep(Je.value),n=(s=(b=S.cloneDeep(o))==null?void 0:b.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:s.contents;if(r=r==null?void 0:r.map(g=>{var h;return g.value=(h=n==null?void 0:n.find((i,m)=>(i==null?void 0:i.prop)===(g==null?void 0:g.name)))==null?void 0:h.value,g}),!tl.value)return;let t="",p=(C=(k=(x=S.cloneDeep(o))==null?void 0:x.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:k.contents)==null?void 0:C.find((g,h)=>{var i,m,c;return(g==null?void 0:g.label)===el.value||(h==null?void 0:h.toString())===((c=(m=(i=el.value)==null?void 0:i.split("a"))==null?void 0:m[1])==null?void 0:c.toString())}),u=(N=p==null?void 0:p.optionUrl)==null?void 0:N.menuSelect,d=!0;if(($=(T=(w=S.cloneDeep(o))==null?void 0:w.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:T.contents)==null||$.forEach(g=>{var h,i,m,c,K,V;d&&((m=(i=(h=g==null?void 0:g.optionUrl)==null?void 0:h.groupSelect)==null?void 0:i[1])!=null&&m.includes("["))&&(t=(K=(c=g==null?void 0:g.optionUrl)==null?void 0:c.groupSelect)==null?void 0:K[1],JSON.stringify(u)===JSON.stringify((V=g==null?void 0:g.optionUrl)==null?void 0:V.menuSelect)&&(d=!1))}),(A=p==null?void 0:p.optionUrl)!=null&&A.menuSelect&&tl.value){let g=await Vl(p),h;if((_=p==null?void 0:p.optionUrl)==null||_.menuSelect,g==null||g.forEach(i=>{var m,c,K,V,I,Q,W,ne,R,ee;t===((c=(m=p==null?void 0:p.optionUrl)==null?void 0:m.groupSelect)==null?void 0:c[1])&&((I=(V=(K=p==null?void 0:p.optionUrl)==null?void 0:K.groupSelect)==null?void 0:V[1])!=null&&I.includes("["))&&((ee=S.cloneDeep(i))==null?void 0:ee[(R=(ne=(W=(Q=p==null?void 0:p.optionUrl)==null?void 0:Q.groupSelect)==null?void 0:W[1])==null?void 0:ne.replaceAll("[",""))==null?void 0:R.replaceAll("]","")])===(p==null?void 0:p.value)&&(h=i)}),h){let i=S.cloneDeep(r);i=i==null?void 0:i.map(c=>{var K,V,I,Q,W,ne,R,ee,ue,oe,te;return(h!=null&&h[c==null?void 0:c.label]||h!=null&&h[(Q=(I=(V=(K=c==null?void 0:c.optionUrl)==null?void 0:K.groupSelect)==null?void 0:V[1])==null?void 0:I.replaceAll("[",""))==null?void 0:Q.replaceAll("]","")])&&((R=(ne=(W=c==null?void 0:c.optionUrl)==null?void 0:W.groupSelect)==null?void 0:ne[1])!=null&&R.includes("["))&&(c.value=(h==null?void 0:h[c==null?void 0:c.label])||(h==null?void 0:h[(te=(oe=(ue=(ee=c==null?void 0:c.optionUrl)==null?void 0:ee.groupSelect)==null?void 0:ue[1])==null?void 0:oe.replaceAll("[",""))==null?void 0:te.replaceAll("]","")])),c}),Je.value=S.cloneDeep(i);let m=S.cloneDeep(i);m=m==null?void 0:m.map(c=>{var K,V,I,Q,W,ne;return(V=(K=c==null?void 0:c.optionUrl)==null?void 0:K.menuSelect)!=null&&V.some(R=>R==null?void 0:R.includes("["))&&(c.optionUrl.oldMenuSelect=(Q=(I=S.cloneDeep(c))==null?void 0:I.optionUrl)==null?void 0:Q.menuSelect,c.optionUrl.menuSelect=(ne=(W=c==null?void 0:c.optionUrl)==null?void 0:W.menuSelect)==null?void 0:ne.map(R=>{var ee,ue,oe,te;if(R!=null&&R.includes("[")){let Se=(ue=(ee=R==null?void 0:R.replaceAll("[","").replaceAll("]",""))==null?void 0:ee.split(":"))==null?void 0:ue[1];R=(te=(oe=S.cloneDeep(i))==null?void 0:oe.find(y=>(y==null?void 0:y.label)===Se))==null?void 0:te.value}return R})),c}),Je.value=m}}tl.value=!1},Ia=e=>e?(e==null?void 0:e.toUpperCase())==="INPUT"?"TEXTAREA":e:"TEXTAREA",Ya=e=>{var t,p;const l=(p=(t=Be.value)==null?void 0:t.find(u=>(u==null?void 0:u.label)===(e==null?void 0:e.label)))==null?void 0:p.multiple,o=e==null?void 0:e.prop;if((e==null?void 0:e.formType)!="Select")return;X.value.forEach(u=>{const d=u==null?void 0:u[o];l&&$l(d)&&(u[o]=[d]),!l&&!$l(d)&&(u[o]="")})},Yl=(e,l)=>{var o;return l==null||l.forEach(r=>{e[r==null?void 0:r.prop]=r==null?void 0:r.value}),e.children&&((o=e.children)==null?void 0:o.length)>0&&(e.children=e.children.map(r=>Yl(r,l))),e},jl=e=>{var o,r,n,t,p,u;cl("");const l=(o=Je.value)==null?void 0:o.reduce((d,b)=>(d[b.name]=b.value,d),{});if(((r=Object.keys(l))==null?void 0:r.length)>0){De.value=l,Ke.value="",al.value=(n=X.value)==null?void 0:n.length,rl.value=(t=Ie.value)==null?void 0:t.filter(b=>(b==null?void 0:b.label)!=="新增");const d=(u=(p=ge.value)==null?void 0:p.filter(b=>(b==null?void 0:b.label)!=="操作"))==null?void 0:u.map(b=>{var x,k,C;const s=(k=(x=Be.value)==null?void 0:x.find(N=>(N==null?void 0:N.label)===(b==null?void 0:b.label)))==null?void 0:k.multiple;return Ya(b),{...b,contents:(b==null?void 0:b.options)??[],optionUrl:b!=null&&b.formMenuSelect&&((C=b==null?void 0:b.formMenuSelect)==null?void 0:C.length)>0?{groupSelect:b==null?void 0:b.groupSelect,menuSelect:b==null?void 0:b.formMenuSelect,selectRelateType:"",type:b==null?void 0:b.formType,multiple:s}:null}});M.value=d==null?void 0:d.map(b=>Yl(b,[{prop:"type",value:"edit"},{prop:"columnType",value:Ia(b==null?void 0:b.formType)||(b==null?void 0:b.columnType)}])),e==="createClick"&&dl(!1)}},Za=(e,l)=>Number(Kl.dayjs(l).diff(Kl.dayjs(e),"day",!0).toFixed(1)),er=(e,l)=>{var p;const o=(p=e==null?void 0:e.find(u=>(u==null?void 0:u.key)==="header"))==null?void 0:p.contents,r={START:"开始时间",END:"结束时间",HOURS:"工时"},n=new Map;return o==null||o.forEach((u,d)=>{const{label:b}=u;n.set(b,d)}),!n.has(r.START)||!n.has(r.END)||!n.has(r.HOURS)?l:l==null?void 0:l.map(u=>{const d=u==null?void 0:u[r.START],b=u==null?void 0:u[r.END],s=Za(d,b);return d&&b&&(u[r.HOURS]=`${s}天`),u})},Zl=(e,l,o=0)=>{if(o>((l==null?void 0:l.length)??""))return e;const r=l[o],n=new Map;for(const p of e){const u=p[r];n.has(u)||n.set(u,[]),n.get(u)&&n.get(u).push(p)}const t=[];for(const[p,u]of n){const[d,...b]=u,s={...d};o+1===((l==null?void 0:l.length)??"")?s.children=u==null?void 0:u.map(x=>(x.level=S.cloneDeep(o)+1,x)).filter((x,k)=>k!==0):b.length>0&&(s.children=Zl(b,l,o+1)),s.level=o,t.push(s)}return t},ea=(e,l,o)=>{var n;if(((n=l==null?void 0:l.contents)==null?void 0:n.length)===0)return e;let r=[];return r=Zl(e,l==null?void 0:l.contents,0),r},la=(e,l)=>{var k,C,N,w,T,$,A,_,g,h,i,m,c,K,V,I,Q,W,ne,R,ee,ue,oe,te,Se;const o=e==null?void 0:e.filter(y=>(y==null?void 0:y.key)==="header");e==null||e.filter(y=>(y==null?void 0:y.key)==="tableIndexColumn")[0];const r=e==null?void 0:e.filter(y=>(y==null?void 0:y.key)==="childTree")[0];let n=l;const t=e==null?void 0:e.find(y=>(y==null?void 0:y.key)==="page"),p=e==null?void 0:e.find(y=>(y==null?void 0:y.key)==="rowButton"),u=e==null?void 0:e.find(y=>(y==null?void 0:y.key)==="extraButton"),d=e==null?void 0:e.filter(y=>(y==null?void 0:y.key)==="tableContents"),b=e==null?void 0:e.filter(y=>(y==null?void 0:y.key)==="tableIndex");Be.value=(C=(k=e==null?void 0:e.filter(y=>(y==null?void 0:y.key)==="tableToForm"))==null?void 0:k[0])==null?void 0:C.contents,zl.value=(t==null?void 0:t.contents)??!0;let s=[];Ye.value===""?s=o==null?void 0:o[0]:s=(o==null?void 0:o.find(y=>(y==null?void 0:y.selectLabel)==="("+Ye.value+")"))??(o==null?void 0:o.find(y=>!(y!=null&&y.selectLabel)));let x=[];if(Ye.value===""?x=b==null?void 0:b[0]:x=(b==null?void 0:b.find(y=>(y==null?void 0:y.selectLabel)==="("+Ye.value+")"))??(b==null?void 0:b.find(y=>!(y!=null&&y.selectLabel))),((N=s==null?void 0:s.contents)==null?void 0:N.length)>0){let y=[];if(s!=null&&s.contents.some(D=>Array.isArray(D)&&(D==null?void 0:D.find(f=>f.children))))Pe.value===""?y=(T=(w=se.getGradeColumns(s==null?void 0:s.contents))==null?void 0:w[0])==null?void 0:T.filter(D=>!Array.isArray(D)):(Pe.value.split("-"),y=($=se.getGradeColumns(s==null?void 0:s.contents))==null?void 0:$[0]);else{let D=s!=null&&s.contents.some(f=>Array.isArray(f))?(A=s==null?void 0:s.contents)==null?void 0:A[0]:s==null?void 0:s.contents;D==null||D.forEach((f,Y)=>{var le,Ae,ll,Re;let U="";(Ae=(le=fe.value)==null?void 0:le.split("/"))==null||Ae.forEach(Ee=>{var We,Ge,Ve;if(Ee!==""){let nl=(Ve=(Ge=(We=Ee==null?void 0:Ee.split(J+"updateLoading"))==null?void 0:We[0])==null?void 0:Ge.split(J+"loading"))==null?void 0:Ve[0];U=U===""?U+nl:U+"/"+nl}}),U=U+J+(f==null?void 0:f.directiveLabel);const z=(ll=Be.value)==null?void 0:ll.find(Ee=>(Ee==null?void 0:Ee.prop)===(f==null?void 0:f.prop));y.push({label:(f==null?void 0:f.label)??"",prop:(f==null?void 0:f.label)==="操作"?"operate":(f==null?void 0:f.prop)??"a"+Y,width:f!=null&&f.width?parseInt(f.width):"",fixed:(f==null?void 0:f.fixed)??void 0,sortable:(f==null?void 0:f.sortable)??!1,filterable:(f==null?void 0:f.filterable)??!1,operable:(f==null?void 0:f.operable)??!1,showSummary:(f==null?void 0:f.showSummary)??!1,align:(f==null?void 0:f.align)??"left",showOverflowTooltip:(f==null?void 0:f.showOverflowTooltip)??!0,isNotDrag:(f==null?void 0:f.isNotDrag)??!1,isEditCol:(f==null?void 0:f.isEditCol)??!1,isOperate:(f==null?void 0:f.isOperate)??!1,id:(f==null?void 0:f.id)??Y,type:(f==null?void 0:f.label)==="操作"?"operate":void 0,formType:(f==null?void 0:f.formType)??(f!=null&&f.groupSelect?"Select":""),isTableColHidden:f==null?void 0:f.isTableColHidden,isFormColHidden:f==null?void 0:f.isFormColHidden,disabled:f==null?void 0:f.disabled,options:(f==null?void 0:f.options)??[],value:(f==null?void 0:f.value)??"",formMenuSelect:(f==null?void 0:f.formMenuSelect)??[],isRoute:(f==null?void 0:f.isRoute)??!1,groupSelect:f!=null&&f.groupSelect?(Re=f==null?void 0:f.groupSelect)==null?void 0:Re.replaceAll('"',"").split(":"):[],isMainKey:(f==null?void 0:f.isMainKey)||(f==null?void 0:f.directiveLabel)&&!n[U],columnType:(z==null?void 0:z.type)||(f==null?void 0:f.columnType)||"TEXTAREA",directiveLabel:f==null?void 0:f.directiveLabel,isExistChild:!!(f!=null&&f.directiveLabel&&n[U]),childPath:U})})}M.value=se.getNewColumnChild(y),je.value=se.getNewColumnChild(y),H.value=(_=M.value)==null?void 0:_.map(D=>D==null?void 0:D.label),ze.value=(g=M.value)==null?void 0:g.every(D=>D==null?void 0:D.filterable),me.value=(h=M.value)==null?void 0:h.every(D=>D==null?void 0:D.operable),Ne.value=(i=M.value)==null?void 0:i.every(D=>D==null?void 0:D.sortable);let G=(c=(m=se.getAllLeafNodes(M.value))==null?void 0:m.filter(D=>(D==null?void 0:D.type)!=="operate"))==null?void 0:c.map((D,f)=>({prop:(D==null?void 0:D.prop)??"a"+f,column:D.label}));we.value=G;let E=[];Ye.value===""?E=d==null?void 0:d[0]:E=(d==null?void 0:d.find(D=>(D==null?void 0:D.selectLabel)==="("+Ye.value+")"))??(d==null?void 0:d.find(D=>!(D!=null&&D.selectLabel)));let F=Array.isArray((K=E==null?void 0:E.contents)==null?void 0:K[0])&&((V=E==null?void 0:E.contents)!=null&&V[0].every(D=>Array.isArray(D)))?(I=E==null?void 0:E.contents)==null?void 0:I[0]:E==null?void 0:E.contents;x!=null&&x.contents&&((Q=x==null?void 0:x.contents)==null?void 0:Q.length)!==0&&(F=(W=S.cloneDeep(F))==null?void 0:W.map((D,f)=>{if(!Array.isArray(D)){let Y={};for(let U in D)U!=="id"&&U!=="index"&&(Y[U]=D[U]);D=Object.values(Y)}return D}));const pe=!!((ne=M.value)!=null&&ne.find(D=>D.prop==="index"));F=oa(F,x==null?void 0:x.contents,pe);const q=[];F==null||F.forEach((D,f)=>{var U;let Y={};if(Array.isArray(D)){let z=[];D==null||D.filter(le=>!(le!=null&&le.id)).forEach((le,Ae)=>{var ll,Re,Ee,We,Ge,Ve;if((ll=G==null?void 0:G[Ae])!=null&&ll.prop&&!Array.isArray(le)){let nl={};nl[G[Ae].column]=le,de!=null&&de.value&&((Re=de==null?void 0:de.value)==null?void 0:Re.length)>0&&((Ee=de==null?void 0:de.value)!=null&&Ee.find(Me=>JSON.stringify(Me==null?void 0:Me[0])===JSON.stringify(nl)))&&(z=(We=de==null?void 0:de.value)==null?void 0:We.find(Me=>JSON.stringify(Me==null?void 0:Me[0])===JSON.stringify(nl))),z&&z.length>0?Y[G[Ae].prop]=z!=null&&z.find(Me=>{var pl;return((pl=Object.keys(Me))==null?void 0:pl[0])===G[Ae].column})?(Ge=z==null?void 0:z.find(Me=>{var pl;return((pl=Object.keys(Me))==null?void 0:pl[0])===G[Ae].column}))==null?void 0:Ge[G[Ae].column]:le:Y[G[Ae].prop]=le}else Array.isArray(le)&&((Ve=G[Ae])!=null&&Ve.prop?Y[G[Ae].prop]=le:Y.children=Pl(le,G))})}else Y=D;Array.isArray(D)&&D.some(z=>z==null?void 0:z.id)?q.push(Object.assign(Y,{id:(U=D==null?void 0:D.find(z=>z.id))==null?void 0:U.id})):Y.id?q.push(Y):q.push(Object.assign(Y,{id:f.toString()}))}),er(e,q),X.value=ea(q,r,M.value),fl.value=q,(R=fl.value)==null||R.forEach(D=>{var f;(f=gl.value)==null||f.set(D.id,D)})}else M.value=[],ge.value=[],X.value=[],fl.value=[],gl.value=new Map;((ee=p==null?void 0:p.contents)==null?void 0:ee.length)>0?Xe.value=p==null?void 0:p.contents:Xe.value=[],((ue=u==null?void 0:u.contents)==null?void 0:ue.length)>0?(rl.value=u==null?void 0:u.contents,Ie.value=u==null?void 0:u.contents):(rl.value=[],Ie.value=[]),al.value=((oe=X==null?void 0:X.value)==null?void 0:oe.length)??0,vl.value=X.value,Ze.value&&(M.value=(Se=(te=ge.value)==null?void 0:te.filter(y=>(y==null?void 0:y.label)!=="操作"))==null?void 0:Se.map(y=>{var G;return{...y,type:"edit",optionUrl:y!=null&&y.formMenuSelect&&((G=y==null?void 0:y.formMenuSelect)==null?void 0:G.length)>0?{groupSelect:y==null?void 0:y.groupSelect,menuSelect:y==null?void 0:y.formMenuSelect,selectRelateType:"",type:y==null?void 0:y.formType}:null}}),jl())};a.watch(()=>[v.itemData,Ye.value,da.value,Pe.value,de==null?void 0:de.value],async()=>{var e,l,o,r,n,t;if((e=v==null?void 0:v.itemData)!=null&&e.find(p=>(p==null?void 0:p.key)==="columnPath")&&!((l=sl.value)!=null&&l.find(p=>{var u,d;return(p==null?void 0:p.key)===((d=(u=v==null?void 0:v.itemData)==null?void 0:u.find(b=>(b==null?void 0:b.key)==="columnPath"))==null?void 0:d.contents)}))){let p=sl.value,u={key:(r=(o=v==null?void 0:v.itemData)==null?void 0:o.find(d=>(d==null?void 0:d.key)==="columnPath"))==null?void 0:r.contents,value:(t=(n=v==null?void 0:v.itemData)==null?void 0:n.find(d=>(d==null?void 0:d.key)==="columnUsingPath"))==null?void 0:t.contents};p!=null&&p.find(d=>(d==null?void 0:d.key)===(u==null?void 0:u.key))?p=p==null?void 0:p.map(d=>((d==null?void 0:d.key)===(u==null?void 0:u.key)&&(d.value=u.value),d)):p.push(u),re.setTableViewContents(p)}la(v.itemData,v.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>v==null?void 0:v.operatingForm,e=>{e!=null&&e.form&&(cl(e==null?void 0:e.form),Oe.value=e==null?void 0:e.dialogTitle,yl.value=!0,Fe.value=!0)},{immediate:!0,deep:!0});const aa=()=>{Ze.value=!Ze.value},lr=()=>{ml.value=!ml.value};a.watch(()=>Ze.value,e=>{e?(jl("viewChange"),re.setCacheUpdatingData(null)):(rl.value=Ie.value,M.value=je.value,Qe.value&&(re.setTableLoading(v==null?void 0:v.index),j("change",Qe.value)))},{immediate:!0}),a.ref(!1);const ar=(e,l)=>{var o;jl("createClick"),l===ke.pageSize&&(ke.currentPage=Math.ceil(((o=X.value)==null?void 0:o.length)/ke.pageSize))},rr=(e,l,o)=>{var r;Il(o,e,l),De.value=S.cloneDeep(e),Ke.value=e==null?void 0:e.id,al.value=(r=X.value)==null?void 0:r.length,Oe.value=typeof(e==null?void 0:e.id)=="string"?"新增":"编辑",dl(!1)},Te=e=>{var d,b,s,x,k,C,N,w,T,$;const{row:l,column:o,item:r,slotData:n}=e;let t=l!=null&&l[o==null?void 0:o.prop]?((b=(d=l==null?void 0:l[o==null?void 0:o.prop])==null?void 0:d[0])==null?void 0:b.contents)??(l==null?void 0:l[o==null?void 0:o.prop]):((x=(s=l==null?void 0:l[r==null?void 0:r.prop])==null?void 0:s[0])==null?void 0:x.contents)??(l==null?void 0:l[r==null?void 0:r.prop])??((C=(k=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:k[0])==null?void 0:C.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??((T=(w=l==null?void 0:l[(N=r==null?void 0:r.child)==null?void 0:N.prop])==null?void 0:w[0])==null?void 0:T.contents)??(l==null?void 0:l[($=r==null?void 0:r.child)==null?void 0:$.prop]),u=Array.isArray(t)&&!(t!=null&&t.every(A=>typeof A=="string"||typeof A=="number"))?"查看":t;return u=Array.isArray(u)?u.join(","):u,u},nr=e=>{var b,s,x,k,C,N,w,T,$,A;const{row:l,column:o,item:r,slotData:n}=e;let t=l!=null&&l[o==null?void 0:o.prop]?((s=(b=l==null?void 0:l[o==null?void 0:o.prop])==null?void 0:b[0])==null?void 0:s.contents)??(l==null?void 0:l[o==null?void 0:o.prop]):((k=(x=l==null?void 0:l[r==null?void 0:r.prop])==null?void 0:x[0])==null?void 0:k.contents)??(l==null?void 0:l[r==null?void 0:r.prop])??((N=(C=n==null?void 0:n[r==null?void 0:r.prop])==null?void 0:C[0])==null?void 0:N.contents)??(n==null?void 0:n[r==null?void 0:r.prop])??(($=(T=l==null?void 0:l[(w=r==null?void 0:r.child)==null?void 0:w.prop])==null?void 0:T[0])==null?void 0:$.contents)??(l==null?void 0:l[(A=r==null?void 0:r.child)==null?void 0:A.prop]);const u=Array.isArray(t)&&!(t!=null&&t.every(_=>typeof _=="string"||typeof _=="number")),d=Array.isArray(t)&&(t==null?void 0:t.find(_=>_==null?void 0:_.url));return u&&d};return(e,l)=>{var b,s,x;const o=a.resolveComponent("svg-icon"),r=a.resolveComponent("el-popover"),n=a.resolveComponent("el-switch"),t=a.resolveComponent("el-checkbox"),p=a.resolveComponent("el-checkbox-group"),u=a.resolveComponent("el-button"),d=a.resolveComponent("LookComponent");return a.openBlock(),a.createElementBlock("div",xr,[ql.value?(a.openBlock(),a.createBlock(He.ssTable,{id:"excel-table",pageObj:ke,summaryInfo:qe,columns:M.value,isCardViewport:ml.value,checkedColumns:H.value,key:Bl.value+JSON.stringify(M.value),tableData:va.value,isEditViewport:Ze.value,isShowPagination:zl.value,isShowEdit:!1,isShowDelete:!1,allowSelect:L.allowSelect,onDbClickRow:ja,extraButton:rl.value,rowButton:Xe.value,cacheExtraButtons:Ie.value,isClearSelection:((b=Le.value)==null?void 0:b.length)===0,onDoCurrentChange:ba,onDoSizeChange:ma,onContentClick:Ka,onRowClick:Fa,onSelectChange:Ea,onCellChange:rr,onChange:Il,onPreview:Jl,onSubmitEditingTable:Aa,onHandleColEditChange:Ta,onHandleColTypeChange:Ca,onClickButton:Tl},a.createSlots({headerButton:a.withCtx(k=>{var C,N;return[L.showHeader?(a.openBlock(),a.createBlock(hr,{key:0,filterValues:Rl.value,selectNums:(C=Le.value)==null?void 0:C.length,dataNums:(N=X.value)==null?void 0:N.length,compName:L.compName,isDevMode:L.isDevMode,buttons:k.buttons,onButtonClick:l[0]||(l[0]=w=>Tl(w,"",{})),columns:M.value,onFilter:Ma,onGetImportData:Sa,level:L.level},null,8,["filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var k,C;return[((k=X.value)==null?void 0:k.length)>0&&L.allowOperate?(a.openBlock(),a.createElementBlock("div",Br,[(C=Xe.value)!=null&&C.some(N=>(N==null?void 0:N.label)==="编辑")&&!ml.value?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:aa},[a.createVNode(o,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0),a.createElementVNode("span",{title:"卡片视图",onClick:lr},[a.createVNode(o,{name:"cardViewport",class:"view-icon"})])])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:k,index:C})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:N=>ar(k,C)},[a.createVNode(o,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,Ur)]),operateCol:a.withCtx(()=>[a.createVNode(r,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Qa},{reference:a.withCtx(()=>[a.createElementVNode("span",Or,[a.createVNode(o,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",wr,[l[11]||(l[11]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode(n,{"model-value":Ne.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:l[2]||(l[2]=k=>Ol(k,"sortable"))},null,8,["model-value"]),a.createVNode(n,{"model-value":ze.value,"active-text":"筛选","inactive-text":"",style:{"margin-right":"8px"},onChange:l[3]||(l[3]=k=>Ol(k,"filterable"))},null,8,["model-value"]),a.createVNode(n,{"model-value":me.value,"active-text":"编辑所有表头","inactive-text":"",onChange:l[4]||(l[4]=k=>Ol(k,"operable"))},null,8,["model-value"]),l[12]||(l[12]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(p,{modelValue:H.value,"onUpdate:modelValue":l[5]||(l[5]=k=>H.value=k),style:{height:"100%"},min:2,ref_key:"checkboxGroupRef",ref:B},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ul.value,k=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:k.label},[a.createVNode(t,{value:k.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",{title:k.label,style:{display:"inline-block",width:"250px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},a.toDisplayString(k.label),9,Lr)]),_:2},1032,["value"]),a.createVNode(r,{title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(o,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var C;return[a.createElementVNode("div",Mr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((C=Object.keys(k))==null?void 0:C.filter(N=>{var w;return(w=ae.value)==null?void 0:w.find(T=>(T==null?void 0:T.value)===N)}),N=>{var w,T;return a.openBlock(),a.createElementBlock("div",{key:N},[a.createVNode(n,{"model-value":k==null?void 0:k[N],"active-text":(T=(w=ae.value)==null?void 0:w.find($=>($==null?void 0:$.value)===N))==null?void 0:T.label,onChange:$=>Na($,N,k)},null,8,["model-value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",jr,[a.createVNode(o,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(k=>{var C,N,w,T,$,A,_,g,h,i,m,c,K,V,I,Q,W,ne;return[nr(k)?(a.openBlock(),a.createBlock(r,{key:0,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",Kr,a.toDisplayString(Te(k)),1)]),default:a.withCtx(()=>{var R;return[a.createElementVNode("div",$r,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k==null?void 0:k.row[(R=k==null?void 0:k.column)==null?void 0:R.prop],ee=>(a.openBlock(),a.createElementBlock("div",Fr,[a.createElementVNode("div",{class:"prop-url",title:Dl(ee),onClick:ue=>Ua(ee)},a.toDisplayString(Dl(ee)),9,Pr),a.createElementVNode("div",{class:"prop-download",onClick:ue=>Oa(ee)}," 下载 ",8,Vr)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock("div",{key:1,style:a.normalizeStyle({color:!Array.isArray(Te(k))&&((N=(C=Te(k))==null?void 0:C.toString())!=null&&N.includes(".txt")||(T=(w=Te(k))==null?void 0:w.toString())!=null&&T.includes(".cpt")||(A=($=Te(k))==null?void 0:$.toString())!=null&&A.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Te(k))&&((g=(_=Te(k))==null?void 0:_.toString())!=null&&g.includes(".txt")||(i=(h=Te(k))==null?void 0:h.toString())!=null&&i.includes(".cpt")||(c=(m=Te(k))==null?void 0:m.toString())!=null&&c.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Te(k))&&((V=(K=Te(k))==null?void 0:K.toString())!=null&&V.includes(".txt")||(Q=(I=Te(k))==null?void 0:I.toString())!=null&&Q.includes(".cpt")||(ne=(W=Te(k))==null?void 0:W.toString())!=null&&ne.includes(".cyd"))?"pointer":"",marginLeft:(k==null?void 0:k.colIndex)===0?`${((k==null?void 0:k.level)??0)*20}px`:0}),onClick:R=>ya(Te(k))},a.toDisplayString(Te(k)),13,zr))]}),_:2},[((s=Xe.value)==null?void 0:s.length)>0?{name:"actions",fn:a.withCtx(({item:k})=>[a.createVNode(r,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(o,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:a.withCtx(()=>[a.createElementVNode("div",Nr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(wa(Xe.value,k),(C,N)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:N,onClick:w=>Tl(C==null?void 0:C.label,k,{extra:C})},[a.createElementVNode("div",{style:a.normalizeStyle({color:C==null?void 0:C.textColor}),class:"extra-button-label"},a.toDisplayString(C==null?void 0:C.label),5)],8,_r))),128))])]),_:2},1024)]),key:"0"}:void 0,((x=X.value)==null?void 0:x.length)>0?{name:"batchButton",fn:a.withCtx(k=>[a.createVNode(vr,{buttons:k.buttons,selectTableItems:Le.value,onButtonClick:l[1]||(l[1]=C=>Tl(C,"",{}))},null,8,["buttons","selectTableItems"])]),key:"1"}:void 0]),1032,["pageObj","summaryInfo","columns","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection"])):a.createCommentVNode("",!0),a.createVNode(Al.ssDialog,{title:Oe.value,visible:Fe.value,width:fa.value,onBeforeDestroy:_a},{default:a.withCtx(()=>[a.createElementVNode("div",qr,[a.createVNode(He.ssForm,{rowContents:Je.value,isEnableWrap:!1,showOperator:!1,onChange:Xa,onClickTrigger:Ba,isEdit:Nl.value,onBlurChange:xa},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[yl.value?(a.openBlock(),a.createElementBlock("div",Jr,[a.createVNode(u,{onClick:l[6]||(l[6]=k=>Fe.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>l[13]||(l[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(u,{class:"ok-button",onClick:l[7]||(l[7]=k=>dl(!0)),id:"themeButton"},{default:a.withCtx(()=>l[14]||(l[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(Al.ssDialog,{title:Oe.value,visible:hl.value,width:_l.value,onBeforeDestroy:l[9]||(l[9]=k=>hl.value=!1)},{default:a.withCtx(()=>[a.createVNode(Dr)]),footer:a.withCtx(()=>[a.createElementVNode("div",Rr,[a.createVNode(u,{onClick:l[8]||(l[8]=k=>hl.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>l[15]||(l[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(u,{class:"ok-button",onClick:Pa,id:"themeButton"},{default:a.withCtx(()=>l[16]||(l[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["title","visible","width"]),xe.value?(a.openBlock(),a.createBlock(He.ssFilePreview,{key:1,fileDataList:_e.value,onDestroy:$a},null,8,["fileDataList"])):a.createCommentVNode("",!0),Z.value?(a.openBlock(),a.createBlock(Al.ssDialog,{key:2,visible:Z.value,onBeforeDestroy:Ga,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(Cl.ThreeViewerHost,{"file-urls":il.value,isThreeScene:be.value,isSelfWindow:!0,threeData:$e.value},null,8,["file-urls","isThreeScene","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(Al.ssDialog,{visible:e.componentVisible,onBeforeDestroy:l[10]||(l[10]=k=>e.componentVisible=!1),width:_l.value,style:{height:"70vh"}},{default:a.withCtx(()=>[a.createVNode(d,{dialogItem:kl.value},null,8,["dialogItem"])]),_:1},8,["visible","width"])])}}},Gr=El._export_sfc(Wr,[["__scopeId","data-v-05ea7d63"]]);exports.formGetOptions=Fl;exports.getSelectRow=Vl;exports.isString=$l;exports.ssTable=Gr;exports.useFormComp=ta;exports.useFormToTableComp=ra;exports.useUnit=na;
@@ -1,6 +1,6 @@
1
1
  import { unref as m, defineComponent as W, inject as ue, ref as P, computed as w, onBeforeUnmount as qe, toRef as Ke, createBlock as Q, openBlock as $, Transition as cn, withCtx as z, withDirectives as De, createElementVNode as _, withModifiers as ie, normalizeClass as L, normalizeStyle as Oe, vShow as Ct, createElementBlock as K, Fragment as Ut, createVNode as ee, watch as U, nextTick as we, provide as Ne, reactive as ot, onActivated as sr, onMounted as Fe, onUpdated as ir, createCommentVNode as X, resolveDynamicComponent as Wt, renderSlot as H, cloneVNode as ur, Text as cr, Comment as dr, mergeProps as dn, shallowRef as to, getCurrentInstance as Tt, Teleport as fr, onBeforeMount as pr, readonly as vr, onDeactivated as mr, toDisplayString as Se, toRaw as gr, toRefs as fn, watchEffect as hr, resolveComponent as je, resolveDirective as br, toHandlerKey as yr, renderList as $n, createTextVNode as Ln, withKeys as ht, vModelText as wr, isVNode as Sr } from "vue";
2
2
  import { n as no, bM as Or, i as Er, k as Cr, c4 as oo, t as ro, b1 as Ue, o as Tr, c5 as Rr, z as te, y as ke, _ as ne, B as ae, G as ao, H as nn, L as Ve, A as F, F as Bn, a4 as Le, a3 as rt, O as ge, I as ct, Q as on, ap as lo, aJ as nt, aj as so, aI as Dn, aw as Ir, ab as jt, b3 as io, aa as Me, x as uo, V as he, bW as kr, ba as Mr, R as Pr, c6 as Ar, X as $r, M as rn, al as Vn, $ as Lr, ad as Br, aN as Dr, J as zt, b4 as Nn, bf as Vr, P as Nr, ac as Fr, ag as zr, W as Fn, af as Hr, a7 as Wr, bi as jr, a0 as co } from "./index-BqTVXNQ3.js";
3
- import { aV as fo, aW as Kr, aO as Ur, t as Gt, aX as zn, a2 as Hn, a0 as _r, Q as qr, aY as Gr, x as pn, G as po, F as yt, P as Xr, R as Qr, D as Yr, H as Jr, M as Zr, U as tt, C as vo, B as xr } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
3
+ import { aV as fo, aW as Kr, aO as Ur, t as Gt, aX as zn, a2 as Hn, a0 as _r, Q as qr, aY as Gr, x as pn, G as po, F as yt, P as Xr, R as Qr, D as Yr, H as Jr, M as Zr, U as tt, C as vo, B as xr } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
4
4
  import { i as ea, d as ta } from "./isUndefined-DluJuC0O.js";
5
5
  function na(e, t, n, r) {
6
6
  for (var a = e.length, l = n + (r ? 1 : -1); r ? l-- : ++l < a; )
@@ -404,11 +404,11 @@ const e = [
404
404
  ], u = [
405
405
  {
406
406
  name: "--horizontal-menu-bg",
407
- value: "#ffffff"
407
+ value: "#333333"
408
408
  },
409
409
  {
410
410
  name: "--horizontal-menuitem-border-bottom",
411
- value: "2px solid var(--el-menu-active-color)"
411
+ value: "4px solid var(--horizontal-menuitem-active-color)"
412
412
  },
413
413
  {
414
414
  name: "--horizontal-submenu-hover-bg",
@@ -435,11 +435,11 @@ const e = [
435
435
  },
436
436
  {
437
437
  name: "--horizontal-menuitem-color",
438
- value: "var(--el-menu-text-color)"
438
+ value: "#FFFFFF"
439
439
  },
440
440
  {
441
441
  name: "--horizontal-menuitem-active-color",
442
- value: "var(--el-menu-hover-text-color)"
442
+ value: "#92DB42"
443
443
  },
444
444
  {
445
445
  name: "--horizontal-menuitem-fontSize",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
2
- import { S as m } from "./index-XNmmCBML.js";
3
- import { s as _ } from "./index-Dnu79Iu3.js";
2
+ import { S as m } from "./index-CpWaVXzt.js";
3
+ import { s as _ } from "./index-rOxjnrti.js";
4
4
  import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
6
6
  __name: "index",
@@ -1,6 +1,6 @@
1
1
  import { ref as f, computed as S, reactive as P } from "vue";
2
2
  import { s as R, c9 as $, ca as B, c3 as H, g as _, u as j, p as L, c as J, h as x, E as T } from "./index-BqTVXNQ3.js";
3
- import { aZ as z, u as Z, d as G, r as Q } from "./index.vue_vue_type_style_index_1_lang-CUaH0x1J.js";
3
+ import { aZ as z, u as Z, d as G, r as Q } from "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
4
4
  const A = j(L), { loginUserInfo: o, cryptoInfo: c } = R(A), X = Z(L), { activeMenuPath: g } = R(X), Y = f(0), M = S(() => {
5
5
  var s, a, t, r, l, n, e, u, p, d, v;
6
6
  return [