ss-component-new 1.3.664 → 1.3.666
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/MTLLoader-DI0avKtj.js +657 -0
- package/dist/URDFLoader-PUxvYFDe.js +2304 -0
- package/dist/animationData-05aVUytq.js +83 -0
- package/dist/array-BHRYnJKv.js +1044 -0
- package/dist/clone-Ddn1p6-1.js +8 -0
- package/dist/config.js +1 -1
- package/dist/eleIcon-BWVKfp5t.js +29 -0
- package/dist/iconfont-BNdGaGPn.js +1018 -0
- package/dist/icons/svg/Update.svg +1 -0
- package/dist/icons/svg/functionList.svg +1 -0
- package/dist/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-7mFTFA3-.js +107 -0
- package/dist/index-BDhIWgKn.js +658 -0
- package/dist/index-BFqUz4pN.js +52 -0
- package/dist/index-BP1mKUQP.js +627 -0
- package/dist/index-BczRQX8N.js +407 -0
- package/dist/index-BnrvtCYj.js +55 -0
- package/dist/index-Bpr501oZ.js +78 -0
- package/dist/index-BvbZiTVB.js +342 -0
- package/dist/index-Bvvz41NY.js +44 -0
- package/dist/index-C2M8MGB3.js +83 -0
- package/dist/index-C67QqPPT.js +24865 -0
- package/dist/index-C85-PeF1.js +11773 -0
- package/dist/index-C9DBY1gg.js +103 -0
- package/dist/index-CFFbhR3G.js +996 -0
- package/dist/index-COr2mcbl.js +48 -0
- package/dist/index-CQ8DCGnJ.js +98 -0
- package/dist/index-CV2cha0T.js +864 -0
- package/dist/index-CV_jQDcg.js +9 -0
- package/dist/index-CXe4q28L.js +447 -0
- package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
- package/dist/index-CqNlqFQ5.js +117 -0
- package/dist/index-D-5v1Jx7.js +93 -0
- package/dist/index-D4LcEpQ7.js +619 -0
- package/dist/index-D9w3QWuY.js +468 -0
- package/dist/index-DGObzWyL.js +8984 -0
- package/dist/index-DJ59jXR0.js +28483 -0
- package/dist/index-DJrzqi4-.js +209 -0
- package/dist/index-D_kI6aHR.js +98 -0
- package/dist/index-DhQcwkOc.js +61958 -0
- package/dist/index-DhULdX5n.js +2623 -0
- package/dist/index-Dibj25i7.js +93 -0
- package/dist/index-Dr9Wt5nC.js +84 -0
- package/dist/index-Dwt0Wlg_.js +201 -0
- package/dist/index-WPJbEuld.js +62 -0
- package/dist/index-YVR3acYT.js +61 -0
- package/dist/{index-BKK_dL6t.js → index-dD-mKgue.js} +3 -3
- package/dist/index-roQK_1xA.js +30 -0
- package/dist/index-uF-ibwG0.js +9 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +137728 -0
- package/dist/isString-CoCw_sp3.js +8 -0
- package/dist/localIcon-CoJHw5ss.js +76 -0
- package/dist/main-Dlo2i9wB.js +502 -0
- package/dist/menuIndex-Dt0NyAyE.js +159 -0
- package/dist/request-DiogHwkN.js +9465 -0
- package/dist/ss-component.css +8 -2
- package/dist/ss-component.js +64 -28
- package/dist/ss-component2.js +75 -15
- package/dist/ss-component3.js +1 -1
- package/dist/threeModel-BfY7WDWB.js +1108 -0
- package/dist/threePreview-BHLSA5YS.js +2259 -0
- package/dist/threeSceneView-ZTUK-ls2.js +1289 -0
- package/dist/threeSceneViewForCPMPIP-DCG4eBvk.js +538 -0
- package/dist/threeTrackPathView-BR8-g2Tr.js +620 -0
- package/dist/threeViewerHost-BwblfmOC.js +233 -0
- package/dist/urdfTree-IEJgkVzs.js +254 -0
- package/dist/workpieceTreePanel-aZV2ut3W.js +555 -0
- package/package.json +4 -4
- package/public/config.js +1 -1
- package/public/icons/svg/Update.svg +1 -0
- package/public/icons/svg/functionList.svg +1 -0
- package/public/icons/svg/uploadCopy.svg +1 -0
- package/dist/index-CoXdIQt_.js +0 -50
- package/dist/index-DJWOuBw9.js +0 -195
- package/dist/index-DK2pco3V.js +0 -1044
- package/dist/index-DfraOPVU.js +0 -9022
- package/dist/index-MHAwX3y9.js +0 -182
- package/dist/menu-B8iV5Rhf.js +0 -5215
- package/dist/origin-C4Shcrcr.js +0 -11428
- /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
- /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
- /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { ref as L, reactive as O, watch as X, resolveComponent as Y, openBlock as s, createBlock as P, normalizeStyle as U, withCtx as S, renderSlot as B, createElementBlock as a, withModifiers as r, createCommentVNode as u, createElementVNode as j, toDisplayString as q } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const F = { class: "dialog-title" }, G = {
|
|
5
|
+
__name: "index",
|
|
6
|
+
props: {
|
|
7
|
+
title: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
dialogWidth: {
|
|
12
|
+
type: [Number, String],
|
|
13
|
+
default: 600
|
|
14
|
+
},
|
|
15
|
+
visible: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
fullScreen: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
// 仅在 resizable=true 时生效
|
|
24
|
+
dialogHeight: {
|
|
25
|
+
type: [Number, String],
|
|
26
|
+
default: 600
|
|
27
|
+
},
|
|
28
|
+
// 仅在 resizable=true 时生效
|
|
29
|
+
minWidth: {
|
|
30
|
+
type: [Number, String],
|
|
31
|
+
default: 400
|
|
32
|
+
},
|
|
33
|
+
// 仅在 resizable=true 时生效
|
|
34
|
+
minHeight: {
|
|
35
|
+
type: [Number, String],
|
|
36
|
+
default: 300
|
|
37
|
+
},
|
|
38
|
+
showClose: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
closeOnClickModal: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !0
|
|
45
|
+
},
|
|
46
|
+
closeOnPressEscape: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !0
|
|
49
|
+
},
|
|
50
|
+
modalClass: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: ""
|
|
53
|
+
},
|
|
54
|
+
alignCenter: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
57
|
+
},
|
|
58
|
+
appendToBody: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !0
|
|
61
|
+
},
|
|
62
|
+
zIndex: {
|
|
63
|
+
type: Number,
|
|
64
|
+
default: void 0
|
|
65
|
+
},
|
|
66
|
+
// 是否允许四边拖拽改变弹窗大小
|
|
67
|
+
resizable: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: !1
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
emits: ["beforeDestroy"],
|
|
73
|
+
setup(w, { emit: $ }) {
|
|
74
|
+
const e = w, T = $, v = L(!1), o = O({
|
|
75
|
+
width: void 0,
|
|
76
|
+
height: void 0,
|
|
77
|
+
minWidth: void 0,
|
|
78
|
+
minHeight: void 0
|
|
79
|
+
});
|
|
80
|
+
let W = !1, m = "", C = 0, E = 0, h = 0, y = 0, p = 0, z = 0, x = null;
|
|
81
|
+
const D = (i) => {
|
|
82
|
+
var n, l;
|
|
83
|
+
const t = (l = (n = i == null ? void 0 : i.target) == null ? void 0 : n.closest) == null ? void 0 : l.call(n, ".el-dialog");
|
|
84
|
+
return t || null;
|
|
85
|
+
}, I = (i) => {
|
|
86
|
+
if (!i || i === "none")
|
|
87
|
+
return { tx: 0, ty: 0 };
|
|
88
|
+
let t = i.match(/matrix\(([^)]+)\)/);
|
|
89
|
+
if (t) {
|
|
90
|
+
const n = t[1].split(",").map((l) => Number(l.trim()));
|
|
91
|
+
return { tx: (n == null ? void 0 : n[4]) || 0, ty: (n == null ? void 0 : n[5]) || 0 };
|
|
92
|
+
}
|
|
93
|
+
if (t = i.match(/matrix3d\(([^)]+)\)/), t) {
|
|
94
|
+
const n = t[1].split(",").map((l) => Number(l.trim()));
|
|
95
|
+
return { tx: (n == null ? void 0 : n[12]) || 0, ty: (n == null ? void 0 : n[13]) || 0 };
|
|
96
|
+
}
|
|
97
|
+
return t = i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/), t ? { tx: Number(t[1]) || 0, ty: Number(t[2]) || 0 } : { tx: 0, ty: 0 };
|
|
98
|
+
}, R = (i, t, n) => {
|
|
99
|
+
i.style.transform = `translate(${t}px, ${n}px)`;
|
|
100
|
+
}, d = (i, t) => {
|
|
101
|
+
if (!e.resizable) return;
|
|
102
|
+
const n = D(i);
|
|
103
|
+
if (!n) return;
|
|
104
|
+
x = n, W = !0, m = t, C = i.clientX, E = i.clientY;
|
|
105
|
+
const l = n.getBoundingClientRect();
|
|
106
|
+
h = l.width, y = l.height;
|
|
107
|
+
const f = window.getComputedStyle(n), { tx: g, ty: c } = I(f.transform);
|
|
108
|
+
p = g, z = c, document.addEventListener("mousemove", M), document.addEventListener("mouseup", N);
|
|
109
|
+
}, M = (i) => {
|
|
110
|
+
if (!W || !x) return;
|
|
111
|
+
const t = i.clientX - C, n = i.clientY - E, l = parseInt(o.minWidth || "0", 10) || 0, f = parseInt(o.minHeight || "0", 10) || 0;
|
|
112
|
+
let g = h, c = y, H = p, k = z;
|
|
113
|
+
if (m.includes("right") && (g = Math.max(l, h + t)), m.includes("bottom") && (c = Math.max(f, y + n)), m.includes("left")) {
|
|
114
|
+
const b = h - t;
|
|
115
|
+
b < l ? (g = l, H = p + (h - l)) : (g = b, H = p + t);
|
|
116
|
+
}
|
|
117
|
+
if (m.includes("top")) {
|
|
118
|
+
const b = y - n;
|
|
119
|
+
b < f ? (c = f, k = z + (y - f)) : (c = b, k = z + n);
|
|
120
|
+
}
|
|
121
|
+
o.width = `${g}px`, o.height = `${c}px`, R(x, H, k);
|
|
122
|
+
}, N = () => {
|
|
123
|
+
W = !1, m = "", x = null, document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", N);
|
|
124
|
+
}, V = () => {
|
|
125
|
+
T("beforeDestroy");
|
|
126
|
+
};
|
|
127
|
+
return X(
|
|
128
|
+
() => e == null ? void 0 : e.visible,
|
|
129
|
+
(i) => {
|
|
130
|
+
v.value = i, i && (e.resizable ? (o.width = typeof e.dialogWidth == "number" ? `${e.dialogWidth}px` : e.dialogWidth, o.height = typeof e.dialogHeight == "number" ? `${e.dialogHeight}px` : e.dialogHeight, o.minWidth = typeof e.minWidth == "number" ? `${e.minWidth}px` : e.minWidth, o.minHeight = typeof e.minHeight == "number" ? `${e.minHeight}px` : e.minHeight) : (o.width = void 0, o.height = void 0, o.minWidth = void 0, o.minHeight = void 0));
|
|
131
|
+
},
|
|
132
|
+
{ deep: !0, immediate: !0 }
|
|
133
|
+
), (i, t) => {
|
|
134
|
+
const n = Y("el-dialog");
|
|
135
|
+
return s(), P(n, {
|
|
136
|
+
modelValue: v.value,
|
|
137
|
+
"onUpdate:modelValue": t[8] || (t[8] = (l) => v.value = l),
|
|
138
|
+
width: e == null ? void 0 : e.dialogWidth,
|
|
139
|
+
"before-close": V,
|
|
140
|
+
draggable: "",
|
|
141
|
+
style: U(e != null && e.resizable ? o : void 0),
|
|
142
|
+
fullscreen: e == null ? void 0 : e.fullScreen,
|
|
143
|
+
"destroy-on-close": !0,
|
|
144
|
+
"show-close": e == null ? void 0 : e.showClose,
|
|
145
|
+
"close-on-click-modal": e == null ? void 0 : e.closeOnClickModal,
|
|
146
|
+
"modal-class": w.modalClass,
|
|
147
|
+
"close-on-press-escape": e == null ? void 0 : e.closeOnPressEscape,
|
|
148
|
+
"align-center": e == null ? void 0 : e.alignCenter,
|
|
149
|
+
"append-to-body": w.appendToBody,
|
|
150
|
+
"z-index": e == null ? void 0 : e.zIndex
|
|
151
|
+
}, {
|
|
152
|
+
header: S(() => [
|
|
153
|
+
j("div", F, q(e == null ? void 0 : e.title), 1),
|
|
154
|
+
B(i.$slots, "header", {}, void 0, !0)
|
|
155
|
+
]),
|
|
156
|
+
footer: S(() => [
|
|
157
|
+
B(i.$slots, "footer", {}, void 0, !0)
|
|
158
|
+
]),
|
|
159
|
+
default: S(() => [
|
|
160
|
+
B(i.$slots, "default", {}, void 0, !0),
|
|
161
|
+
e.resizable ? (s(), a("div", {
|
|
162
|
+
key: 0,
|
|
163
|
+
class: "resizable-handle top",
|
|
164
|
+
onMousedown: t[0] || (t[0] = r((l) => d(l, "top"), ["stop"]))
|
|
165
|
+
}, null, 32)) : u("", !0),
|
|
166
|
+
e.resizable ? (s(), a("div", {
|
|
167
|
+
key: 1,
|
|
168
|
+
class: "resizable-handle right",
|
|
169
|
+
onMousedown: t[1] || (t[1] = r((l) => d(l, "right"), ["stop"]))
|
|
170
|
+
}, null, 32)) : u("", !0),
|
|
171
|
+
e.resizable ? (s(), a("div", {
|
|
172
|
+
key: 2,
|
|
173
|
+
class: "resizable-handle bottom",
|
|
174
|
+
onMousedown: t[2] || (t[2] = r((l) => d(l, "bottom"), ["stop"]))
|
|
175
|
+
}, null, 32)) : u("", !0),
|
|
176
|
+
e.resizable ? (s(), a("div", {
|
|
177
|
+
key: 3,
|
|
178
|
+
class: "resizable-handle left",
|
|
179
|
+
onMousedown: t[3] || (t[3] = r((l) => d(l, "left"), ["stop"]))
|
|
180
|
+
}, null, 32)) : u("", !0),
|
|
181
|
+
e.resizable ? (s(), a("div", {
|
|
182
|
+
key: 4,
|
|
183
|
+
class: "resizable-handle top-left",
|
|
184
|
+
onMousedown: t[4] || (t[4] = r((l) => d(l, "top-left"), ["stop"]))
|
|
185
|
+
}, null, 32)) : u("", !0),
|
|
186
|
+
e.resizable ? (s(), a("div", {
|
|
187
|
+
key: 5,
|
|
188
|
+
class: "resizable-handle top-right",
|
|
189
|
+
onMousedown: t[5] || (t[5] = r((l) => d(l, "top-right"), ["stop"]))
|
|
190
|
+
}, null, 32)) : u("", !0),
|
|
191
|
+
e.resizable ? (s(), a("div", {
|
|
192
|
+
key: 6,
|
|
193
|
+
class: "resizable-handle bottom-left",
|
|
194
|
+
onMousedown: t[6] || (t[6] = r((l) => d(l, "bottom-left"), ["stop"]))
|
|
195
|
+
}, null, 32)) : u("", !0),
|
|
196
|
+
e.resizable ? (s(), a("div", {
|
|
197
|
+
key: 7,
|
|
198
|
+
class: "resizable-handle bottom-right",
|
|
199
|
+
onMousedown: t[7] || (t[7] = r((l) => d(l, "bottom-right"), ["stop"]))
|
|
200
|
+
}, null, 32)) : u("", !0)
|
|
201
|
+
]),
|
|
202
|
+
_: 3
|
|
203
|
+
}, 8, ["modelValue", "width", "style", "fullscreen", "show-close", "close-on-click-modal", "modal-class", "close-on-press-escape", "align-center", "append-to-body", "z-index"]);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}, Z = /* @__PURE__ */ A(G, [["__scopeId", "data-v-16b3a6b2"]]);
|
|
207
|
+
export {
|
|
208
|
+
Z as s
|
|
209
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent as C, reactive as f, ref as i, onMounted as E, resolveComponent as s, openBlock as _, createElementBlock as v, createElementVNode as b, createVNode as u, withCtx as c, Fragment as w, renderList as A, createBlock as B, createTextVNode as F } from "vue";
|
|
2
|
+
import { g as I } from "./index-YVR3acYT.js";
|
|
3
|
+
import { useRouter as M } from "vue-router";
|
|
4
|
+
import { E as g } from "./request-DiogHwkN.js";
|
|
5
|
+
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const T = { class: "tenant-wrap" }, $ = { class: "tenant-content" }, q = /* @__PURE__ */ C({
|
|
7
|
+
__name: "index",
|
|
8
|
+
setup(D) {
|
|
9
|
+
const o = f({
|
|
10
|
+
tenantKey: ""
|
|
11
|
+
}), K = f({
|
|
12
|
+
tenantKey: [
|
|
13
|
+
{ required: !0, message: "请选择模型", trigger: "blur" }
|
|
14
|
+
]
|
|
15
|
+
}), m = i(null), y = i([]), k = M(), x = async () => {
|
|
16
|
+
var n, t;
|
|
17
|
+
try {
|
|
18
|
+
const l = await I({
|
|
19
|
+
key: {
|
|
20
|
+
layer: "superAdmin"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
if (l.data.code === 200) {
|
|
24
|
+
const r = (t = (n = l == null ? void 0 : l.data) == null ? void 0 : n.result) == null ? void 0 : t.flatMap((e) => e == null ? void 0 : e.key), p = r == null ? void 0 : r.map((e) => ({
|
|
25
|
+
value: e == null ? void 0 : e.systemKey,
|
|
26
|
+
label: `【${e == null ? void 0 : e.systemKey}】` + ((e == null ? void 0 : e.name) ?? "未知")
|
|
27
|
+
}));
|
|
28
|
+
y.value = [...p].sort((e, d) => e.value.localeCompare(d.value));
|
|
29
|
+
} else
|
|
30
|
+
g.error("获取模型数据响应失败");
|
|
31
|
+
} catch {
|
|
32
|
+
g.error("获取模型数据失败");
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
E(() => {
|
|
36
|
+
x();
|
|
37
|
+
});
|
|
38
|
+
const V = (n) => {
|
|
39
|
+
n == null || n.validate((t) => {
|
|
40
|
+
t && (console.log("submitForm", o), sessionStorage.setItem("tenantKey", o == null ? void 0 : o.tenantKey), k.push("/login"));
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
return (n, t) => {
|
|
44
|
+
const l = s("el-option"), r = s("el-select"), p = s("el-form-item"), e = s("el-form"), d = s("el-button");
|
|
45
|
+
return _(), v("div", T, [
|
|
46
|
+
b("div", $, [
|
|
47
|
+
t[3] || (t[3] = b("div", { class: "tenant-title" }, "租户信息", -1)),
|
|
48
|
+
u(e, {
|
|
49
|
+
model: o,
|
|
50
|
+
rules: K,
|
|
51
|
+
ref_key: "formRef",
|
|
52
|
+
ref: m
|
|
53
|
+
}, {
|
|
54
|
+
default: c(() => [
|
|
55
|
+
u(p, {
|
|
56
|
+
label: "",
|
|
57
|
+
prop: "tenantKey"
|
|
58
|
+
}, {
|
|
59
|
+
default: c(() => [
|
|
60
|
+
u(r, {
|
|
61
|
+
modelValue: o.tenantKey,
|
|
62
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => o.tenantKey = a),
|
|
63
|
+
placeholder: "请选择(可搜索查询)",
|
|
64
|
+
filterable: "",
|
|
65
|
+
clearable: ""
|
|
66
|
+
}, {
|
|
67
|
+
default: c(() => [
|
|
68
|
+
(_(!0), v(w, null, A(y.value, (a) => (_(), B(l, {
|
|
69
|
+
key: a.value,
|
|
70
|
+
label: a.label,
|
|
71
|
+
value: a.value
|
|
72
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
73
|
+
]),
|
|
74
|
+
_: 1
|
|
75
|
+
}, 8, ["modelValue"])
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
})
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
}, 8, ["model", "rules"]),
|
|
82
|
+
u(d, {
|
|
83
|
+
type: "primary",
|
|
84
|
+
onClick: t[1] || (t[1] = (a) => V(m.value))
|
|
85
|
+
}, {
|
|
86
|
+
default: c(() => [...t[2] || (t[2] = [
|
|
87
|
+
F(" 确认 ", -1)
|
|
88
|
+
])]),
|
|
89
|
+
_: 1
|
|
90
|
+
})
|
|
91
|
+
])
|
|
92
|
+
]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}), z = /* @__PURE__ */ N(q, [["__scopeId", "data-v-5d82b8dd"]]);
|
|
96
|
+
export {
|
|
97
|
+
z as default
|
|
98
|
+
};
|