ss-component-new 1.3.683 → 1.3.684

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 (74) hide show
  1. package/dist/{MTLLoader-DPHzTMwa.js → MTLLoader-DzMo1SNe.js} +102 -102
  2. package/dist/{URDFLoader-M-UG5-pR.js → URDFLoader-BAROJ9ka.js} +591 -586
  3. package/dist/{animationData-DRuHGkTO.js → animationData-CTWTDXsQ.js} +7 -7
  4. package/dist/{array-DjjQ0-_X.js → array-CRYq9Jxn.js} +13 -14
  5. package/dist/{clone-nUXh221j.js → clone-sAhQxdz5.js} +1 -1
  6. package/dist/{eleIcon-DlIcb4df.js → eleIcon-6RTuwqdk.js} +2 -2
  7. package/dist/fileUtil-UOt_otFo.js +20 -0
  8. package/dist/{iconfont-BhJBoU2I.js → iconfont-TorEaqH3.js} +125 -125
  9. package/dist/{index-CG1vGzHt.js → index--N4l6N1w.js} +1 -1
  10. package/dist/{index-B6x7nsvL.js → index-2gwwCj6d.js} +5 -5
  11. package/dist/{index-ChfKhYMO.js → index-9UYMNDVY.js} +24355 -24391
  12. package/dist/{index-Cl2tex39.js → index-B0BoH4wm.js} +163 -172
  13. package/dist/{index-R2i3Xnfq.js → index-B30aeKGM.js} +4 -4
  14. package/dist/index-B4nNFQS-.js +11779 -0
  15. package/dist/{index-CIoBc8yl.js → index-B8_ZqXDA.js} +60 -62
  16. package/dist/{index-zdWtzZvH.js → index-BCmMcLum.js} +7 -7
  17. package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
  18. package/dist/{index-DlFmNKos.js → index-BKMAFsRN.js} +7 -8
  19. package/dist/{index-Dx-bFdbp.js → index-BRQACLz0.js} +8 -8
  20. package/dist/{index-DyOGhRxL.js → index-BZg5q_rs.js} +4 -4
  21. package/dist/{index-gFBsqsq6.js → index-Bkg9CQm3.js} +3 -3
  22. package/dist/{index-CM6CVZ_d.js → index-Bywqjsvo.js} +21513 -15029
  23. package/dist/{index-CzgY9rV-.js → index-BzT9veMM.js} +57 -61
  24. package/dist/{index-QdkaQuAk.js → index-C06Ba2iF.js} +2 -2
  25. package/dist/{index-CYspf59Y.js → index-C8LpAkhu.js} +8 -8
  26. package/dist/{index-BNDaeOZD.js → index-C9_Pcose.js} +40 -43
  27. package/dist/index-CGzlH16h.js +331 -0
  28. package/dist/{index-DewO44mx.js → index-COBZQS9O.js} +2 -2
  29. package/dist/{index-DkFpug1v.js → index-COV5ar9Q.js} +18 -20
  30. package/dist/{index-CJySKIdc.js → index-CvOCu8lX.js} +1 -1
  31. package/dist/{index-CnmXW-Bj.js → index-D-YGtSgX.js} +36 -40
  32. package/dist/{index-CJbdXJRV.js → index-D-_Ie1fO.js} +3 -3
  33. package/dist/{index-CccqT4-H.js → index-D2g9hX2c.js} +6 -6
  34. package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
  35. package/dist/{index-CKB74hmA.js → index-DUPQ7Cfd.js} +482 -483
  36. package/dist/{index-CsqopIxB.js → index-D_f48W32.js} +1078 -1079
  37. package/dist/{index-8KwwXnRD.js → index-DyoKmN7k.js} +3 -3
  38. package/dist/index-G2ZhOQG1.js +2623 -0
  39. package/dist/{index-BLFiId9N.js → index-TpycHQ-H.js} +5 -5
  40. package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
  41. package/dist/{index-CBL2Pg06.js → index-dcW2d4Zs.js} +5 -5
  42. package/dist/{index-Cpv5443J.js → index-hGjbrq0G.js} +4 -4
  43. package/dist/{index-DTjEPXdC.js → index-tLigeTzl.js} +76 -81
  44. 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
  45. package/dist/{index.vue_vue_type_style_index_0_scoped_83e6d490_lang-BsOR2Ig8.js → index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js} +50343 -56267
  46. package/dist/isString-DzMmG8uL.js +8 -0
  47. package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
  48. package/dist/{main-C7zjHnDD.js → main-B27LAY78.js} +9 -9
  49. package/dist/{menuIndex-BE8WKQ_M.js → menuIndex-C_G8igKy.js} +1 -1
  50. package/dist/{request-DolpfyNJ.js → request-CllqY4TP.js} +3482 -3063
  51. package/dist/ss-component.css +3 -3
  52. package/dist/ss-component.js +14 -14
  53. package/dist/ss-component2.js +13 -13
  54. package/dist/ss-component3.js +1 -1
  55. package/dist/{threeModel-DiiHNAHL.js → threeModel-vX7holAy.js} +174 -174
  56. package/dist/{threePreview-Bu2Spume.js → threePreview-0iSlhKYj.js} +12 -12
  57. package/dist/{threeSceneView-DxeVIhrp.js → threeSceneView-D1dS9xmL.js} +49 -50
  58. package/dist/{threeSceneViewForCPMPIP-DPYmtlbM.js → threeSceneViewForCPMPIP-DWvkVqSw.js} +16 -17
  59. package/dist/{threeTrackPathView-fb0Ye-HT.js → threeTrackPathView-BzrYvQKg.js} +36 -36
  60. package/dist/{threeViewerHost-DHRT4ihY.js → threeViewerHost-BA3W7FKF.js} +36 -36
  61. package/dist/{urdfTree-CFaALNOQ.js → urdfTree-CZeEnUnE.js} +9 -9
  62. package/dist/{workpieceTreePanel-BxNqg9o9.js → workpieceTreePanel-BLWHbILu.js} +76 -80
  63. package/package.json +2 -4
  64. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  65. package/dist/icons/svg/method.svg +0 -1
  66. package/dist/index-BBzJ8BLa.js +0 -572
  67. package/dist/index-Ba8phnvt.js +0 -342
  68. package/dist/index-CBPXalBI.js +0 -15007
  69. package/dist/isString-h0UV2hrP.js +0 -8
  70. package/dist/obj/model.mtl +0 -42
  71. package/dist/obj/model.obj +0 -26110
  72. package/public/icons/svg/method.svg +0 -1
  73. package/public/obj/model.mtl +0 -42
  74. package/public/obj/model.obj +0 -26110
@@ -1,342 +0,0 @@
1
- import { watch as Ie, ref as w, computed as we } from "vue";
2
- import { p as E, k as B, w as Le } from "./index-CKB74hmA.js";
3
- import { s as Te, b as V, p as C, u as Re, B as De, c as A, K as N, E as Ee, r as Be, aZ as Ae, a_ as Pe, a$ as Ue, b0 as xe, b1 as Se, b2 as ke } from "./index-CsqopIxB.js";
4
- import { s as z } from "./request-DolpfyNJ.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
- }, Qe = [
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", "导出", "导出全部", "导出选中"], We = () => {
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 = A(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 = A(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
- }), K = (t) => {
175
- y.value.pageNum = t;
176
- }, Q = (t) => {
177
- y.value.pageSize = t;
178
- }, W = () => ({
179
- platId: c.value,
180
- pageNum: y.value.pageNum,
181
- pageSize: y.value.pageSize,
182
- filter: {
183
- ...I.value
184
- }
185
- }), Z = 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
- }, J = async () => {
190
- const t = W(), e = await Z(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 Ae(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 Be(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 = A(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: K,
307
- setPageSize: Q,
308
- initGetByPage: J,
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 = B.aoa_to_sheet(ve), e = B.book_new();
330
- B.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
- Qe as o,
340
- m as s,
341
- We as u
342
- };