ss-component-new 1.3.667 → 1.3.669
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-C2ENwU4B.js +657 -0
- package/dist/URDFLoader-D8HIcp6W.js +2304 -0
- package/dist/animationData-CDGBdGSq.js +83 -0
- package/dist/array-GeFGcNng.js +1044 -0
- package/dist/clone-epSiajPW.js +8 -0
- package/dist/config.js +1 -1
- package/dist/eleIcon-BWVKfp5t.js +29 -0
- package/dist/iconfont-DMYmzqd8.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-3va3ENB8.js +201 -0
- package/dist/index-B4vESlof.js +78 -0
- package/dist/index-BFRbO6Ob.js +864 -0
- package/dist/index-BFqUz4pN.js +52 -0
- package/dist/index-BO_ie9cf.js +117 -0
- package/dist/index-BTcUmOL9.js +83 -0
- package/dist/index-Bd9AU0ks.js +93 -0
- package/dist/index-Bfe0Vmym.js +658 -0
- package/dist/index-BpGFvMaU.js +62 -0
- package/dist/index-Bto8e0_l.js +103 -0
- package/dist/index-Bvvz41NY.js +44 -0
- package/dist/index-CALpUVvi.js +2623 -0
- package/dist/index-CRusLwdZ.js +48 -0
- package/dist/index-CV_jQDcg.js +9 -0
- package/dist/index-CeVSdtF3.js +407 -0
- package/dist/{index-BobGeNMx.js → index-ChNfRlIP.js} +5 -5
- package/dist/index-CmRnsU1X.js +996 -0
- package/dist/index-CxGjXQS8.js +93 -0
- package/dist/index-DJrzqi4-.js +209 -0
- package/dist/index-DT2KzAmL.js +8988 -0
- package/dist/index-D_kI6aHR.js +98 -0
- package/dist/index-D_zqmWYW.js +627 -0
- package/dist/index-DgW-zPUZ.js +30 -0
- package/dist/index-DhllboDp.js +11773 -0
- package/dist/index-Di7_fN-l.js +61958 -0
- package/dist/index-DmuX4rYk.js +98 -0
- package/dist/index-DxEqN-_a.js +84 -0
- package/dist/index-FNOjQQWl.js +619 -0
- package/dist/index-GqaokPsw.js +342 -0
- package/dist/index-SjNcMhxZ.js +447 -0
- package/dist/index-XGieOXX9.js +55 -0
- package/dist/index-YVR3acYT.js +61 -0
- package/dist/index-b-1Cc3pU.js +28483 -0
- package/dist/index-bzdYGNwv.js +24879 -0
- package/dist/{index-BKK_dL6t.js → index-dD-mKgue.js} +3 -3
- package/dist/index-f22t3lGR.js +107 -0
- package/dist/index-hPoDGmt5.js +468 -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_83e6d490_lang-BGHEN9yR.js +137728 -0
- package/dist/isString-CoCw_sp3.js +8 -0
- package/dist/localIcon-CoJHw5ss.js +76 -0
- package/dist/main-B3uivmHw.js +502 -0
- package/dist/menuIndex-B7ZUahFp.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-BZpdWtB3.js +1108 -0
- package/dist/threePreview-QZ-g7bqk.js +2259 -0
- package/dist/threeSceneView-DeXv560D.js +1289 -0
- package/dist/threeSceneViewForCPMPIP-CdhC-Jg4.js +538 -0
- package/dist/threeTrackPathView-Cpwcmet3.js +620 -0
- package/dist/threeViewerHost-OeJJtWw4.js +233 -0
- package/dist/urdfTree-oAPOm0qi.js +254 -0
- package/dist/workpieceTreePanel-RgJlR6GJ.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-CCShKHTf.js +0 -50
- package/dist/index-CHLS51j8.js +0 -1044
- package/dist/index-Ccv8qbdo.js +0 -9091
- package/dist/index-D2V0zCQE.js +0 -195
- package/dist/index-DgjdKpj-.js +0 -182
- package/dist/menu-B8iV5Rhf.js +0 -5215
- package/dist/origin-B7bb-ZcE.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,342 @@
|
|
|
1
|
+
import { watch as Ie, ref as w, computed as we } from "vue";
|
|
2
|
+
import { p as E, k as A, w as Le } from "./index-b-1Cc3pU.js";
|
|
3
|
+
import { s as Te, b as V, p as C, u as Re, A as De, c as B, J as N, E as Ee, q as Ae, aZ as Be, a_ as Pe, a$ as Ue, b0 as xe, b1 as Se, b2 as ke } from "./index-DT2KzAmL.js";
|
|
4
|
+
import { s as z } from "./request-DiogHwkN.js";
|
|
5
|
+
const qe = V(C), { systemUrl: f } = Te(qe);
|
|
6
|
+
let P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
7
|
+
Ie(
|
|
8
|
+
() => f.value,
|
|
9
|
+
() => {
|
|
10
|
+
P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
11
|
+
},
|
|
12
|
+
{ deep: !0, immediate: !0 }
|
|
13
|
+
);
|
|
14
|
+
function Ne(s) {
|
|
15
|
+
return z({
|
|
16
|
+
url: `${P}/platform/import_data`,
|
|
17
|
+
method: "post",
|
|
18
|
+
data: s
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function Fe(s) {
|
|
22
|
+
return z({
|
|
23
|
+
url: `${P}/platform/export_data`,
|
|
24
|
+
method: "post",
|
|
25
|
+
data: s,
|
|
26
|
+
responseType: "blob"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function Ve(s = "") {
|
|
30
|
+
const r = s.match(/filename\*=UTF-8''([^;]+)/i);
|
|
31
|
+
if (r)
|
|
32
|
+
return decodeURIComponent(r[1]);
|
|
33
|
+
const i = s.match(/filename=["']?([^"';]+)["']?/);
|
|
34
|
+
return i ? i[1] : "download.xlsx";
|
|
35
|
+
}
|
|
36
|
+
const Ce = (s) => {
|
|
37
|
+
var b, g;
|
|
38
|
+
const r = ((b = s == null ? void 0 : s.headers) == null ? void 0 : b["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", i = new Blob([s.data], { type: r }), L = (g = s == null ? void 0 : s.headers) == null ? void 0 : g["content-disposition"], h = Ve(L) || "数据.xlsx", c = window.URL.createObjectURL(i), u = document.createElement("a");
|
|
39
|
+
u.href = c, u.setAttribute("download", h), document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(c);
|
|
40
|
+
}, Je = [
|
|
41
|
+
{
|
|
42
|
+
label: "编辑",
|
|
43
|
+
value: "edit"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "删除",
|
|
47
|
+
value: "delete"
|
|
48
|
+
}
|
|
49
|
+
], F = "role", m = {
|
|
50
|
+
ENABLE: {
|
|
51
|
+
value: "enable",
|
|
52
|
+
label: "启用",
|
|
53
|
+
tag: "primary"
|
|
54
|
+
},
|
|
55
|
+
DISABLED: {
|
|
56
|
+
value: "disabled",
|
|
57
|
+
label: "禁用",
|
|
58
|
+
tag: "info"
|
|
59
|
+
}
|
|
60
|
+
}, d = {
|
|
61
|
+
EDITABLE: {
|
|
62
|
+
value: "editable",
|
|
63
|
+
label: "可编辑",
|
|
64
|
+
tag: "primary"
|
|
65
|
+
},
|
|
66
|
+
DISABLED: {
|
|
67
|
+
value: "disabled",
|
|
68
|
+
label: "不可编辑",
|
|
69
|
+
tag: "info"
|
|
70
|
+
}
|
|
71
|
+
}, ze = {
|
|
72
|
+
TABLE: {
|
|
73
|
+
value: "Table"
|
|
74
|
+
}
|
|
75
|
+
}, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], Ke = () => {
|
|
76
|
+
const s = V(), r = Re(C), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]), b = (t) => {
|
|
77
|
+
const { propertyType: e } = t || {};
|
|
78
|
+
return e === ze.TABLE.value;
|
|
79
|
+
}, g = w({}), O = we(() => {
|
|
80
|
+
var e;
|
|
81
|
+
return i.value ? !0 : ((e = g.value) == null ? void 0 : e.status) === d.EDITABLE.value;
|
|
82
|
+
}), $ = (t) => {
|
|
83
|
+
var o, l;
|
|
84
|
+
const e = N(Date.now()), { id: a = 0 } = s.loginUserInfo || {}, n = B(t);
|
|
85
|
+
return n.update_user_id = a, n.update_user_name = h.value, n.update_time = e, n.checked_ids = ((l = (o = n == null ? void 0 : n.main_ids) == null ? void 0 : o.map) == null ? void 0 : l.call(o, (p) => {
|
|
86
|
+
const { id: _ } = p;
|
|
87
|
+
return _;
|
|
88
|
+
})) || [], n;
|
|
89
|
+
}, U = (t) => {
|
|
90
|
+
let e = [];
|
|
91
|
+
return t.forEach((a) => {
|
|
92
|
+
var n;
|
|
93
|
+
if (a.isPropertyLeaf) {
|
|
94
|
+
const o = B(a);
|
|
95
|
+
e.push(o);
|
|
96
|
+
}
|
|
97
|
+
a.children && ((n = a.children) == null ? void 0 : n.length) > 0 && (e = e.concat(U(a.children)));
|
|
98
|
+
}), e;
|
|
99
|
+
}, x = (t = []) => {
|
|
100
|
+
let e = [];
|
|
101
|
+
for (let a = 0; a < t.length; a++) {
|
|
102
|
+
const n = t[a], o = n.children || [];
|
|
103
|
+
delete n.children, e.push(n), o && o.length > 0 && (e = e.concat(x(o)));
|
|
104
|
+
}
|
|
105
|
+
return e;
|
|
106
|
+
}, G = (t) => {
|
|
107
|
+
let e = [];
|
|
108
|
+
return t.forEach((a) => {
|
|
109
|
+
if (a.isPropertyLeaf) {
|
|
110
|
+
const n = x(a.params);
|
|
111
|
+
e = e.concat(n);
|
|
112
|
+
}
|
|
113
|
+
}), e;
|
|
114
|
+
}, S = (t, e) => {
|
|
115
|
+
const a = s.loginUserInfo, { id: n = 0 } = a || {}, o = N(Date.now());
|
|
116
|
+
let l = {
|
|
117
|
+
name: "",
|
|
118
|
+
code: "",
|
|
119
|
+
order_no: 1,
|
|
120
|
+
data_scope: 1,
|
|
121
|
+
remark: "",
|
|
122
|
+
tenant_id: "",
|
|
123
|
+
create_time: o,
|
|
124
|
+
update_time: o,
|
|
125
|
+
create_user_id: n,
|
|
126
|
+
create_user_name: h.value,
|
|
127
|
+
update_user_id: n,
|
|
128
|
+
update_user_name: h.value,
|
|
129
|
+
status: m.ENABLE.value,
|
|
130
|
+
main_ids: [],
|
|
131
|
+
checked_ids: [],
|
|
132
|
+
params: []
|
|
133
|
+
};
|
|
134
|
+
const { checkAll: p, tree: _ } = e || {};
|
|
135
|
+
if (p && _) {
|
|
136
|
+
const v = U(_), be = v.map((D) => ({
|
|
137
|
+
...D,
|
|
138
|
+
department_scope: "unlimited"
|
|
139
|
+
}));
|
|
140
|
+
l.main_ids = be, l.checked_ids = v.map((D) => D.id), l.params = G(v);
|
|
141
|
+
}
|
|
142
|
+
if (t) {
|
|
143
|
+
const v = $(t);
|
|
144
|
+
l = {
|
|
145
|
+
...l,
|
|
146
|
+
...v
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
return l;
|
|
150
|
+
}, T = (t) => {
|
|
151
|
+
const e = [t];
|
|
152
|
+
return {
|
|
153
|
+
platId: c.value,
|
|
154
|
+
changeRoleData: e
|
|
155
|
+
};
|
|
156
|
+
}, M = async (t) => await Se({
|
|
157
|
+
platId: t
|
|
158
|
+
}), j = async () => {
|
|
159
|
+
var e;
|
|
160
|
+
r.setImportLoading(!0);
|
|
161
|
+
const t = await M(c.value).finally(() => {
|
|
162
|
+
r.setImportLoading(!1);
|
|
163
|
+
});
|
|
164
|
+
return (e = t == null ? void 0 : t.data) == null ? void 0 : e.result;
|
|
165
|
+
}, k = () => ({
|
|
166
|
+
name: ""
|
|
167
|
+
}), I = w(k()), H = () => {
|
|
168
|
+
I.value = k();
|
|
169
|
+
}, y = w({
|
|
170
|
+
pageNum: 1,
|
|
171
|
+
pageSize: 10,
|
|
172
|
+
total: 0,
|
|
173
|
+
pageSizes: [5, 10, 20, 50, 100]
|
|
174
|
+
}), Q = (t) => {
|
|
175
|
+
y.value.pageNum = t;
|
|
176
|
+
}, J = (t) => {
|
|
177
|
+
y.value.pageSize = t;
|
|
178
|
+
}, K = () => ({
|
|
179
|
+
platId: c.value,
|
|
180
|
+
pageNum: y.value.pageNum,
|
|
181
|
+
pageSize: y.value.pageSize,
|
|
182
|
+
filter: {
|
|
183
|
+
...I.value
|
|
184
|
+
}
|
|
185
|
+
}), W = async (t) => {
|
|
186
|
+
var a;
|
|
187
|
+
const e = await ke(t);
|
|
188
|
+
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
189
|
+
}, Z = async () => {
|
|
190
|
+
const t = K(), e = await W(t), { total: a } = e || {};
|
|
191
|
+
return y.value.total = a, e || {};
|
|
192
|
+
}, X = async (t) => {
|
|
193
|
+
delete t.role_id;
|
|
194
|
+
const e = T(t);
|
|
195
|
+
await xe(e);
|
|
196
|
+
}, Y = async (t) => {
|
|
197
|
+
r.setImportLoading(!0), await X(t).finally(() => {
|
|
198
|
+
r.setImportLoading(!1);
|
|
199
|
+
});
|
|
200
|
+
}, ee = async (t) => {
|
|
201
|
+
const e = T(t);
|
|
202
|
+
await Ue(e);
|
|
203
|
+
}, te = async (t) => {
|
|
204
|
+
r.setImportLoading(!0), await ee(t).finally(() => {
|
|
205
|
+
r.setImportLoading(!1);
|
|
206
|
+
});
|
|
207
|
+
}, ae = async (t) => {
|
|
208
|
+
const { role_id: e } = t, a = {
|
|
209
|
+
platId: c.value,
|
|
210
|
+
role_id: [e]
|
|
211
|
+
};
|
|
212
|
+
await Pe(a);
|
|
213
|
+
}, ne = async (t) => {
|
|
214
|
+
await Ee.confirm("是否确认要删除", "", {
|
|
215
|
+
showClose: !1,
|
|
216
|
+
confirmButtonText: "确认",
|
|
217
|
+
cancelButtonText: "取消",
|
|
218
|
+
type: "warning",
|
|
219
|
+
modalClass: "delete-role-message-modal",
|
|
220
|
+
confirmButtonClass: "delete-role-confirm"
|
|
221
|
+
}), r.setImportLoading(!0), await ae(t).finally(() => {
|
|
222
|
+
r.setImportLoading(!1);
|
|
223
|
+
});
|
|
224
|
+
}, oe = (t) => {
|
|
225
|
+
const e = t.toUpperCase(), a = m == null ? void 0 : m[e];
|
|
226
|
+
return (a == null ? void 0 : a.label) || t;
|
|
227
|
+
}, se = (t) => {
|
|
228
|
+
const e = t.toUpperCase(), a = m == null ? void 0 : m[e];
|
|
229
|
+
return (a == null ? void 0 : a.tag) || "info";
|
|
230
|
+
}, re = async (t) => {
|
|
231
|
+
var a;
|
|
232
|
+
const e = await Be(t);
|
|
233
|
+
return ((a = e == null ? void 0 : e.data) == null ? void 0 : a.result) || [];
|
|
234
|
+
}, le = async (t) => {
|
|
235
|
+
const e = {
|
|
236
|
+
platId: c.value,
|
|
237
|
+
includeHidden: !0,
|
|
238
|
+
roleIds: t
|
|
239
|
+
};
|
|
240
|
+
r.setImportLoading(!0);
|
|
241
|
+
const a = await re(e).finally(() => {
|
|
242
|
+
r.setImportLoading(!1);
|
|
243
|
+
});
|
|
244
|
+
u.value = a;
|
|
245
|
+
}, ce = (t = "") => {
|
|
246
|
+
const e = t.toUpperCase(), a = d == null ? void 0 : d[e];
|
|
247
|
+
return (a == null ? void 0 : a.label) || t;
|
|
248
|
+
}, ie = (t = "") => {
|
|
249
|
+
const e = t.toUpperCase(), a = d == null ? void 0 : d[e];
|
|
250
|
+
return (a == null ? void 0 : a.tag) || "info";
|
|
251
|
+
}, R = (t) => t === d.EDITABLE.value, ue = (t, e) => {
|
|
252
|
+
const { status: a } = t || {}, { tableOperate: n } = e || {};
|
|
253
|
+
return !!(R(a) || n && Oe.includes(n));
|
|
254
|
+
}, pe = (t, e) => {
|
|
255
|
+
const { status: a } = t || {};
|
|
256
|
+
return R(a);
|
|
257
|
+
}, de = (t, e) => {
|
|
258
|
+
if (i.value)
|
|
259
|
+
return !0;
|
|
260
|
+
const { type: a } = e || {};
|
|
261
|
+
if (E.TABLE === a)
|
|
262
|
+
return ue(t, e);
|
|
263
|
+
if (E.FORM === a)
|
|
264
|
+
return pe(t);
|
|
265
|
+
const { status: n } = t || {};
|
|
266
|
+
return R(n);
|
|
267
|
+
}, me = async () => {
|
|
268
|
+
var n, o;
|
|
269
|
+
const e = {
|
|
270
|
+
pageName: "系统管理/角色管理",
|
|
271
|
+
platId: c.value,
|
|
272
|
+
userId: L.value
|
|
273
|
+
}, a = await Ae(e);
|
|
274
|
+
return (o = (n = a == null ? void 0 : a.data) == null ? void 0 : n.result) == null ? void 0 : o[0];
|
|
275
|
+
}, fe = async () => {
|
|
276
|
+
if (!i.value)
|
|
277
|
+
return g.value = await me(), g;
|
|
278
|
+
}, q = (t) => {
|
|
279
|
+
const e = B(t);
|
|
280
|
+
for (let a = 0; a < e.length; a++) {
|
|
281
|
+
const n = e == null ? void 0 : e[a], { id: o, prop: l, children: p } = n || {};
|
|
282
|
+
n.uniqueKey = `${o}_${l}`, p && (n.children = q(p));
|
|
283
|
+
}
|
|
284
|
+
return e;
|
|
285
|
+
}, ge = async (t) => {
|
|
286
|
+
var a;
|
|
287
|
+
const e = await Ne(t);
|
|
288
|
+
return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
|
|
289
|
+
}, ye = async (t) => {
|
|
290
|
+
const e = new FormData(), a = S(), { create_user_id: n, update_user_id: o, create_user_name: l, update_user_name: p } = a;
|
|
291
|
+
return e.set("platId", c.value), e.set("file", t), e.set("tableType", F), e.set("create_user_id", n), e.set("update_user_id", o), e.set("create_user_name", l), e.set("update_user_name", p), await ge(e);
|
|
292
|
+
}, he = async (t) => await Fe(t), _e = async () => {
|
|
293
|
+
const t = {
|
|
294
|
+
platId: c.value,
|
|
295
|
+
tableType: F,
|
|
296
|
+
filter: I.value
|
|
297
|
+
}, e = await he(t);
|
|
298
|
+
return Ce(e), e;
|
|
299
|
+
}, ve = [["名称", "编码", "备注", "状态"]];
|
|
300
|
+
return {
|
|
301
|
+
compType: E,
|
|
302
|
+
isTableFeature: b,
|
|
303
|
+
queryInfo: I,
|
|
304
|
+
resetQuery: H,
|
|
305
|
+
pageInfo: y,
|
|
306
|
+
setPageNum: Q,
|
|
307
|
+
setPageSize: J,
|
|
308
|
+
initGetByPage: Z,
|
|
309
|
+
initRoleList: j,
|
|
310
|
+
initCreate: Y,
|
|
311
|
+
initUpdate: te,
|
|
312
|
+
initDelete: ne,
|
|
313
|
+
initRoleRequestData: T,
|
|
314
|
+
initPropertyAuthTree: le,
|
|
315
|
+
propertyAuthTree: u,
|
|
316
|
+
initRoleItem: S,
|
|
317
|
+
isSuperAdmin: i,
|
|
318
|
+
getStatusLabelByValue: oe,
|
|
319
|
+
getStatusTagByValue: se,
|
|
320
|
+
getFeatureStatusLabelByValue: ce,
|
|
321
|
+
getFeatureStatusTagByValue: ie,
|
|
322
|
+
hasEditable: de,
|
|
323
|
+
initRoleConfig: fe,
|
|
324
|
+
hasRoleEditAuth: O,
|
|
325
|
+
buildParamAuthTree: q,
|
|
326
|
+
initImport: ye,
|
|
327
|
+
initExport: _e,
|
|
328
|
+
exportTemplate: async () => {
|
|
329
|
+
const t = A.aoa_to_sheet(ve), e = A.book_new();
|
|
330
|
+
A.book_append_sheet(e, t, "角色"), Le(e, "角色模板.xlsx");
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
export {
|
|
335
|
+
Ne as a,
|
|
336
|
+
Fe as e,
|
|
337
|
+
d as f,
|
|
338
|
+
Ce as i,
|
|
339
|
+
Je as o,
|
|
340
|
+
m as s,
|
|
341
|
+
Ke as u
|
|
342
|
+
};
|