ss-component-new 1.1.952 → 1.1.953
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.
- package/dist/{animationData-0DSVBjMd.js → animationData-CLM7D-St.js} +1 -1
- package/dist/{animationData-Bn0YWXec.cjs → animationData-DgW0UKmW.cjs} +1 -1
- package/dist/{index-DlL14fs7.cjs → index-141RSCRi.cjs} +1 -1
- package/dist/{index-DID84L90.js → index-4SwhpBfU.js} +27 -22
- package/dist/{index-BktxQlHj.cjs → index-B5el810p.cjs} +1 -1
- package/dist/{index-D-DWGwjt.js → index-BR5N3G5d.js} +1 -1
- package/dist/{index-DfWa8gL9.cjs → index-BRmcD5Vy.cjs} +1 -1
- package/dist/{index-rOxjnrti.js → index-BThUxNwh.js} +4 -4
- package/dist/{index-DKMlkUlr.js → index-BW_fNSAe.js} +2 -2
- package/dist/{index-kkpHjV43.cjs → index-BXt-rZIw.cjs} +1 -1
- package/dist/{index-DT15aaaB.js → index-BaRXKNn3.js} +1 -1
- package/dist/{index-CFx9LRkE.cjs → index-Bc-3AT5N.cjs} +1 -1
- package/dist/{index-DIVlYGhN.js → index-BdMgwOhf.js} +1 -1
- package/dist/index-BeaEPZpw.cjs +1 -0
- package/dist/index-BiEZBy-4.cjs +1 -0
- package/dist/{index-Ci10qLSF.js → index-Bqhv17gC.js} +1200 -1200
- package/dist/{index-O40jHgzf.cjs → index-BuB0Xz3y.cjs} +1 -1
- package/dist/{index-CbKWyPTD.cjs → index-By7njwdB.cjs} +1 -1
- package/dist/{index-Djn_v6B0.js → index-ByKFhxnE.js} +1 -1
- package/dist/{index-8VkiGnjx.js → index-CEUFoc1S.js} +5 -5
- package/dist/{index-BHdpNR5e.js → index-CaqioQrC.js} +1 -1
- package/dist/{index-DVI6ZfXI.cjs → index-Cf1epl95.cjs} +1 -1
- package/dist/{index-qgIxIYQY.cjs → index-CiDYPuFg.cjs} +1 -1
- package/dist/{index-CE325XGX.js → index-CpeJxMpC.js} +1 -1
- package/dist/{index-c9y8mta8.cjs → index-CrbzMUHP.cjs} +1 -1
- package/dist/{index-D1ESezNO.js → index-Cx6GpYaw.js} +1 -1
- package/dist/{index-bz08AoOp.cjs → index-D1x9DeJe.cjs} +1 -1
- package/dist/{index-SBcpQn64.js → index-D6RxDeOg.js} +61 -61
- package/dist/{index-BASZvHDB.js → index-DAcKiiMd.js} +2 -2
- package/dist/{index-Bk69Iv-a.cjs → index-DIJS7-ue.cjs} +1 -1
- package/dist/{index-6HERMg5A.js → index-DUdiAOY7.js} +1 -1
- package/dist/{index-DaydkmlQ.js → index-Dew0FIbF.js} +2 -2
- package/dist/{index-CIbq_yh2.cjs → index-DiGMDcLM.cjs} +1 -1
- package/dist/{index-CaG6Ol-E.js → index-DjoZ9pJy.js} +2 -2
- package/dist/{index-DGYpoXHl.cjs → index-YfteeL0O.cjs} +1 -1
- package/dist/index-_WUvArZg.cjs +1 -0
- package/dist/{index-Cha01gkM.cjs → index-e3QjrDD9.cjs} +1 -1
- package/dist/{index-D-poBUUV.cjs → index-eDrOjshh.cjs} +1 -1
- package/dist/{index-DxrB7B3p.js → index-hHwy0eKC.js} +4 -4
- package/dist/{index-B3VXOuns.js → index-zUUK2v4K.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_3652e491_lang-lk6n8dZN.cjs → index.vue_vue_type_style_index_0_scoped_3652e491_lang-5NTS9vVz.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_3652e491_lang-8hulvtBx.js → index.vue_vue_type_style_index_0_scoped_3652e491_lang-Gr6sG9Pd.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dk-sZGiZ.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-BBO7P1fh.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BzzH71tY.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-CSOLeJyJ.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-B-mvm4oI.js → index.vue_vue_type_style_index_1_lang-D69rHDx7.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-CblPqxgA.cjs → index.vue_vue_type_style_index_1_lang-DeYEt0Pb.cjs} +1 -1
- package/dist/{main-BECSdDgJ.cjs → main-CoClpdEn.cjs} +1 -1
- package/dist/{main-Cl2FBL8t.js → main-JFauvuwi.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeLatheView-B4vrkduv.js → threeLatheView-DEnQcqr0.js} +1 -1
- package/dist/{threeLatheView-IT4-rk4g.cjs → threeLatheView-DNyNGJvI.cjs} +1 -1
- package/dist/{threeModel-Db8DREXJ.cjs → threeModel-B6R_KekP.cjs} +1 -1
- package/dist/{threeModel-CzEcygve.js → threeModel-BMYvY6fR.js} +2 -2
- package/dist/{threeSceneView-BvwtrS12.cjs → threeSceneView-C7t8UXSN.cjs} +1 -1
- package/dist/{threeSceneView-u7KJ1orN.js → threeSceneView-vCldCLkR.js} +3 -3
- package/dist/{threeSceneViewForCPMPIP-C6idViHY.js → threeSceneViewForCPMPIP-Bp1KXsBf.js} +1 -1
- package/dist/{threeSceneViewForCPMPIP-ag3nnMsh.cjs → threeSceneViewForCPMPIP-Ctw7tqe-.cjs} +1 -1
- package/dist/{threeViewerHost-BSwCkFlh.cjs → threeViewerHost-C3t9sEeH.cjs} +1 -1
- package/dist/{threeViewerHost-DvdfCQv3.js → threeViewerHost-Dwzj4Z5S.js} +1 -1
- package/package.json +1 -1
- package/dist/index-6WmY_quF.cjs +0 -1
- package/dist/index-Cmylp0A2.cjs +0 -1
- package/dist/index-Dl17ZzsT.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
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-
|
|
3
|
+
import { d as I } from "./threeViewerHost-Dwzj4Z5S.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-BSnjJW4H.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-
|
|
1
|
+
"use strict";const y=require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs"),T=require("./xlsx-BPHygxEf.cjs"),_=require("./threeViewerHost-C3t9sEeH.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue");require("./index-BeaEPZpw.cjs");const h=require("./index-1z9RrjZc.cjs");require("./array-BtZq8qON.cjs");const C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-BBO7P1fh.cjs");require("./index.vue_vue_type_style_index_0_scoped_3652e491_lang-5NTS9vVz.cjs");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-aKBwlWY2.cjs");require("./STLLoader-DIEi9CGs.cjs");require("./index.vue_vue_type_style_index_1_lang-BSnjJW4H.cjs");require("./index.vue_vue_type_style_index_1_lang-DeYEt0Pb.cjs");require("./index-GckalUNc.cjs");require("vue-router");require("./index-e3QjrDD9.cjs");;/* empty css */require("./index-OZEqhz0y.cjs");const S={__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0},nodeDev:{type:String,default:""},pageKey:{type:String,default:""}},emits:["buildContent","openThreeBuild","threeData"],setup(o,{emit:c}){const e=o,i=c,s=h.useLoginState();n.watch(()=>e==null?void 0:e.systemKey,t=>{s.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.systemInfo,t=>{s.setSystemInfo(t)},{immediate:!0});const l=()=>{i("buildContent")},m=()=>{i("setLoginInfo")},y=t=>{i("openThreeBuild",t)},f=t=>{i("threeData",t)},u=()=>{var a;const t=e!=null&&e.windowConfig?(a=e==null?void 0:e.windowConfig)==null?void 0:a.width:window.innerWidth,r=1920,d=16,w=t/r,g=d*w;document.documentElement.style.fontSize=`${g}px`};return n.onMounted(()=>{u(),window.addEventListener("resize",u)}),n.onUnmounted(()=>{window.removeEventListener("resize",u)}),(t,r)=>{const d=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(d,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:e==null?void 0:e.showButton,nodeDev:e==null?void 0:e.nodeDev,windowConfig:o.windowConfig,systemInfo:o.systemInfo,"old-systemKey":o.systemKey,onBuildContent:l,onOpenThreeBuild:y,pageKey:o.pageKey,onThreeData:f,onSetLoginInfo:m},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}},q=C._export_sfc(S,[["__scopeId","data-v-8729380f"]]);exports.default=q;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as f, watch as m, resolveComponent as
|
|
1
|
+
import { ref as f, watch as m, resolveComponent as y, createBlock as g, openBlock as h, normalizeStyle as b, withCtx as a, renderSlot as d, createElementVNode as B, toDisplayString as C } from "vue";
|
|
2
2
|
import "./index.vue_vue_type_style_index_1_lang-BFN_wEiJ.js";
|
|
3
3
|
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const w = { class: "dialog-title" },
|
|
4
|
+
const w = { class: "dialog-title" }, S = {
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
title: {
|
|
@@ -43,24 +43,28 @@ const w = { class: "dialog-title" }, B = {
|
|
|
43
43
|
alignCenter: {
|
|
44
44
|
type: Boolean,
|
|
45
45
|
default: !1
|
|
46
|
+
},
|
|
47
|
+
appendToBody: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: "append-to-body"
|
|
46
50
|
}
|
|
47
51
|
},
|
|
48
52
|
emits: ["beforeDestroy"],
|
|
49
|
-
setup(
|
|
50
|
-
const e =
|
|
51
|
-
|
|
53
|
+
setup(l, { emit: s }) {
|
|
54
|
+
const e = l, i = s, t = f(!1), c = () => {
|
|
55
|
+
i("beforeDestroy");
|
|
52
56
|
};
|
|
53
57
|
return m(
|
|
54
58
|
() => e == null ? void 0 : e.visible,
|
|
55
59
|
() => {
|
|
56
|
-
|
|
60
|
+
t.value = e == null ? void 0 : e.visible;
|
|
57
61
|
},
|
|
58
62
|
{ deep: !0, immediate: !0 }
|
|
59
|
-
), (
|
|
60
|
-
const u =
|
|
61
|
-
return h(),
|
|
62
|
-
modelValue:
|
|
63
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) =>
|
|
63
|
+
), (o, n) => {
|
|
64
|
+
const u = y("el-dialog");
|
|
65
|
+
return h(), g(u, {
|
|
66
|
+
modelValue: t.value,
|
|
67
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r),
|
|
64
68
|
width: e == null ? void 0 : e.dialogWidth,
|
|
65
69
|
"before-close": c,
|
|
66
70
|
draggable: "",
|
|
@@ -69,25 +73,26 @@ const w = { class: "dialog-title" }, B = {
|
|
|
69
73
|
"destroy-on-close": !0,
|
|
70
74
|
"show-close": e == null ? void 0 : e.showClose,
|
|
71
75
|
"close-on-click-modal": e == null ? void 0 : e.closeOnClickModal,
|
|
72
|
-
"modal-class":
|
|
76
|
+
"modal-class": l.modalClass,
|
|
73
77
|
"close-on-press-escape": e == null ? void 0 : e.closeOnPressEscape,
|
|
74
|
-
"align-center": e == null ? void 0 : e.alignCenter
|
|
78
|
+
"align-center": e == null ? void 0 : e.alignCenter,
|
|
79
|
+
"append-to-body": l.appendToBody
|
|
75
80
|
}, {
|
|
76
|
-
default:
|
|
77
|
-
|
|
81
|
+
default: a(() => [
|
|
82
|
+
d(o.$slots, "default", {}, void 0, !0)
|
|
78
83
|
]),
|
|
79
|
-
header:
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
header: a(() => [
|
|
85
|
+
B("div", w, C(e == null ? void 0 : e.title), 1),
|
|
86
|
+
d(o.$slots, "header", {}, void 0, !0)
|
|
82
87
|
]),
|
|
83
|
-
footer:
|
|
84
|
-
|
|
88
|
+
footer: a(() => [
|
|
89
|
+
d(o.$slots, "footer", {}, void 0, !0)
|
|
85
90
|
]),
|
|
86
91
|
_: 3
|
|
87
|
-
}, 8, ["modelValue", "width", "style", "fullscreen", "show-close", "close-on-click-modal", "modal-class", "close-on-press-escape", "align-center"]);
|
|
92
|
+
}, 8, ["modelValue", "width", "style", "fullscreen", "show-close", "close-on-click-modal", "modal-class", "close-on-press-escape", "align-center", "append-to-body"]);
|
|
88
93
|
};
|
|
89
94
|
}
|
|
90
|
-
}, V = /* @__PURE__ */ v(
|
|
95
|
+
}, V = /* @__PURE__ */ v(S, [["__scopeId", "data-v-2aeb0302"]]);
|
|
91
96
|
export {
|
|
92
97
|
V as s
|
|
93
98
|
};
|