ss-component-new 1.2.7 → 1.2.9

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 (81) hide show
  1. package/dist/{animationData-CMKGpOzN.js → animationData-1jRSDcwE.js} +3 -3
  2. package/dist/{animationData-CjOlng3t.cjs → animationData-BQdcO65E.cjs} +1 -1
  3. package/dist/{array-zuPH84bL.js → array-BivICFct.js} +1 -1
  4. package/dist/{index-PBT5kNaR.cjs → index-1vs_3Pz3.cjs} +1 -1
  5. package/dist/{index-BnNuMzEv.js → index-B--6DX0M.js} +1 -1
  6. package/dist/{index-B_HoaLPL.js → index-B1NmIRwn.js} +2 -2
  7. package/dist/index-BBVbSXk-.cjs +1 -0
  8. package/dist/{index-CXchqN8w.js → index-BDVOKqI5.js} +5 -5
  9. package/dist/{index-CW99kzgY.cjs → index-BFl4mw2K.cjs} +1 -1
  10. package/dist/{index-D46pfmEc.js → index-BM6YLczV.js} +7 -7
  11. package/dist/index-BSa3xW1H.js +158 -0
  12. package/dist/{index-BoHTgzWr.js → index-BWECkG4C.js} +5 -5
  13. package/dist/{index-CkCmJLPU.js → index-BkrJ0cBf.js} +2 -2
  14. package/dist/{index-IknA4u4L.js → index-BlZXanJX.js} +1 -1
  15. package/dist/{index-Cia5yg2S.cjs → index-BsPQl6nI.cjs} +1 -1
  16. package/dist/{index-k3lVcyGc.cjs → index-BxftyAcm.cjs} +1 -1
  17. package/dist/{index-W6FccWpW.js → index-C9gh-jny.js} +38 -37
  18. package/dist/{index-d3F4mRMM.js → index-CA-edgmV.js} +1 -1
  19. package/dist/{index-DxukQK2k.cjs → index-CIv0zRrQ.cjs} +1 -1
  20. package/dist/{index-Ah-8x9yf.js → index-CVfC3cyK.js} +2 -2
  21. package/dist/{index-C2WJz0OJ.cjs → index-C_MIoNOd.cjs} +1 -1
  22. package/dist/{index-UDddsXT4.js → index-CgtkRkQ3.js} +1 -1
  23. package/dist/{index-MqvNXMd6.js → index-Ci_C9h8v.js} +1 -1
  24. package/dist/{index-Br5wm1ow.js → index-CxbH4zmS.js} +1 -1
  25. package/dist/{index-Czw_p2Ax.cjs → index-Cyk0Tzhx.cjs} +1 -1
  26. package/dist/{index-CQzgMbjC.js → index-D732VV-0.js} +2 -2
  27. package/dist/{index-B5Qn4jv8.js → index-D9wa1LMS.js} +2 -2
  28. package/dist/{index-sBAb1SLC.js → index-DGE2awa5.js} +1 -1
  29. package/dist/{index-1aEh3d97.cjs → index-DNm5s2Lm.cjs} +1 -1
  30. package/dist/{index-BhLnI2fF.cjs → index-DW7I4GY6.cjs} +1 -1
  31. package/dist/{index-BniAk5Lo.js → index-DWfuOOVD.js} +18 -18
  32. package/dist/{index-B3bZrnX5.cjs → index-DbisH6iI.cjs} +1 -1
  33. package/dist/{index-CJW7oNUN.js → index-Dcd9HZXq.js} +2 -2
  34. package/dist/index-DdFUblTC.cjs +1 -0
  35. package/dist/{index-HZr3I0-O.js → index-Dfhvay-Y.js} +5 -5
  36. package/dist/{index-Dx63Z3PG.cjs → index-Djagy2ww.cjs} +1 -1
  37. package/dist/{index-Dv_9EftF.cjs → index-L3WHrdzB.cjs} +1 -1
  38. package/dist/{index-CUUjf1P3.js → index-LjRfbvxs.js} +10 -10
  39. package/dist/index-YMD55UlA.cjs +1 -0
  40. package/dist/{index-BX3CpqTk.js → index-cA_EynOM.js} +3 -3
  41. package/dist/{index-CHksmnYA.js → index-fMxLuU_H.js} +1 -1
  42. package/dist/{index-fnqbVNnP.js → index-fzCcjoGJ.js} +1 -1
  43. package/dist/{index-DLN_fbq6.js → index-lyUWApVE.js} +48 -32
  44. package/dist/{index-UuJKyKlu.js → index-pkxiNiXI.js} +2 -2
  45. package/dist/{index-hseXzBbE.cjs → index-pleSKUL2.cjs} +1 -1
  46. package/dist/{index-DauH8AzR.cjs → index-sS7-HQlI.cjs} +1 -1
  47. package/dist/{index-DKHaw4wr.cjs → index-wpD5_HUA.cjs} +1 -1
  48. package/dist/{index-DDNAWKqD.js → index-y1YK6w8c.js} +5 -5
  49. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DULpc85o.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkSoLqEi.js} +1 -1
  50. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CtqR5lQb.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-B5nxyyO7.cjs} +1 -1
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DuybmJnl.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BfcynI3w.js} +5 -5
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-C-NVC3BN.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-86_u8ovk.js} +4115 -4103
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang--PcXwjiH.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-dAkBFPF0.cjs} +14 -14
  54. package/dist/{index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs → index.vue_vue_type_style_index_1_lang-B_ESWhzz.cjs} +1 -1
  55. package/dist/{index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js → index.vue_vue_type_style_index_1_lang-Bl5IzVKi.js} +2 -2
  56. package/dist/{index.vue_vue_type_style_index_1_lang-D909xoIu.js → index.vue_vue_type_style_index_1_lang-Bmq_QiXo.js} +2 -2
  57. package/dist/{main-D6-NZoCw.js → main-CSTH0D6W.js} +4 -4
  58. package/dist/{main-CSuKoOz4.cjs → main-YbBj49yf.cjs} +1 -1
  59. package/dist/ss-component.cjs +1 -1
  60. package/dist/ss-component.js +10 -10
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +11 -11
  63. package/dist/{threeModel-CPolYsAh.js → threeModel-Xb9BSJ_k.js} +2 -2
  64. package/dist/{threeModel-CIXJ7OQA.cjs → threeModel-nbfSsMNt.cjs} +1 -1
  65. package/dist/{threeSceneView-CUBwHIv3.js → threeSceneView-BLWTfaec.js} +8 -8
  66. package/dist/{threeSceneView-C_0lI1AI.cjs → threeSceneView-JPxH8xcz.cjs} +1 -1
  67. package/dist/{threeSceneViewForCPMPIP-D4KdOIxO.cjs → threeSceneViewForCPMPIP-CT63Js8f.cjs} +1 -1
  68. package/dist/{threeSceneViewForCPMPIP-BHhBMxdP.js → threeSceneViewForCPMPIP-skA3ZWC-.js} +6 -6
  69. package/dist/{threeViewerHost-Cbz8Cw7s.js → threeViewerHost-Enxz60zh.js} +3 -3
  70. package/dist/{threeViewerHost-DOwyFQG3.cjs → threeViewerHost-UHWY3q2v.cjs} +1 -1
  71. package/dist/{useRayCaster-CF6KDZ1R.js → useRayCaster-CQ61IQT5.js} +1 -1
  72. package/dist/{useRayCaster-CqS7g8Ix.cjs → useRayCaster-CvOiIyjA.cjs} +1 -1
  73. package/package.json +1 -1
  74. package/dist/index-B7PZ70Ke.cjs +0 -1
  75. package/dist/index-BPOERPtt.js +0 -22
  76. package/dist/index-BQ7is--r.cjs +0 -1
  77. package/dist/index-Bc20prdj.cjs +0 -1
  78. package/dist/index-CJXXl1EN.cjs +0 -1
  79. package/dist/index-DsnxblRp.js +0 -144
  80. package/dist/index-Kbl8xHWJ.js +0 -24
  81. package/dist/index-tEinx-qZ.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
2
- import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-D909xoIu.js";
3
- import { d as I } from "./threeViewerHost-Cbz8Cw7s.js";
1
+ import { i as C, j as x } from "./index.vue_vue_type_style_index_1_lang-Bl5IzVKi.js";
2
+ import { r as K, a as S } from "./index.vue_vue_type_style_index_1_lang-Bmq_QiXo.js";
3
+ import { d as I } from "./threeViewerHost-Enxz60zh.js";
4
4
  import { c as P } from "./index-DbzvXPKu.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-Cb3WPLY1.cjs"),I=require("./index.vue_vue_type_style_index_1_lang-Ck3aGjUr.cjs"),U=require("./threeViewerHost-DOwyFQG3.cjs"),T=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 U.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=I.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=I.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 $=["夹持长度"],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=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],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=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},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 $=["夹持位置"],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=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],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=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},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-Cb3WPLY1.cjs"),I=require("./index.vue_vue_type_style_index_1_lang-B_ESWhzz.cjs"),U=require("./threeViewerHost-UHWY3q2v.cjs"),T=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 U.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=I.readSync(f,{type:"array"}),F=u.Sheets[u.SheetNames[0]],E=I.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 $=["夹持长度"],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=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持长度;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],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=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},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 $=["夹持位置"],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=>{$.includes(a==null?void 0:a.key)&&(g[a.key]=a.value)}))}))});const k=g.夹持位置;console.log("夹持长度",k,g);const x=Number(k),w={},b=await y.getItemData(`${r}/仿真动画生成`,i,"");b==null||b.forEach(e=>{var s,o,l,a,_,R;if((e==null?void 0:e.comp)==="Table"){let L=[],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=(R=(_=(a=e==null?void 0:e.compData)==null?void 0:a.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:_.contents)==null?void 0:R.map(t=>(t=t==null?void 0:t.filter(p=>!(p!=null&&p.id)),t));C==null||C.forEach(t=>{L.push(y.getValueToObjectValue(t,D==null?void 0:D.filter(p=>p!=="操作")))}),w[e.name]=L,w[e.name+"Content"]=e}});const A=T.cloneDeep(w);return c={initialPipeLength:F,pipeRadius:E,clampLength:x,animationData:A},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,5 +1,5 @@
1
1
  import { watch as _e, unref as Ve, getCurrentScope as Ie, onScopeDispose as Xe, computed as je, ref as C, reactive as Ze } from "vue";
2
- import { aq as P, ar as M } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
2
+ import { aq as P, ar as M } from "./index.vue_vue_type_style_index_1_lang-Bl5IzVKi.js";
3
3
  import { c as s } from "./index-DbzvXPKu.js";
4
4
  const Ge = typeof window < "u";
5
5
  var ue;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-1z9RrjZc.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),C=require("./index-BhLnI2fF.cjs"),r=require("./index-CjI5pDiU.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=f.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-1z9RrjZc.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs"),C=require("./index-DW7I4GY6.cjs"),r=require("./index-CjI5pDiU.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=f.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
@@ -1,6 +1,6 @@
1
1
  import { ref as _, computed as A } from "vue";
2
2
  import { d as I, E as s, g as M } from "./index-DbzvXPKu.js";
3
- import { E as N } from "./index.vue_vue_type_style_index_1_lang-Dy1Zc_t-.js";
3
+ import { E as N } from "./index.vue_vue_type_style_index_1_lang-Bl5IzVKi.js";
4
4
  const K = _([]), T = A(() => [
5
5
  {
6
6
  key: "extraButton",
@@ -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-BnNuMzEv.js";
3
- import { s as _ } from "./index-D46pfmEc.js";
2
+ import { S as m } from "./index-B--6DX0M.js";
3
+ import { s as _ } from "./index-BM6YLczV.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",