ss-component-new 1.3.683 → 1.3.685

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-CGwsP6o5.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-gFBsqsq6.js → index-9ILPqo2_.js} +3 -3
  11. package/dist/{index-R2i3Xnfq.js → index-B30aeKGM.js} +4 -4
  12. package/dist/{index-zdWtzZvH.js → index-BCmMcLum.js} +7 -7
  13. package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
  14. package/dist/{index-DkFpug1v.js → index-BJAHKZNx.js} +18 -20
  15. package/dist/{index-DlFmNKos.js → index-BKMAFsRN.js} +7 -8
  16. package/dist/{index-Dx-bFdbp.js → index-BRQACLz0.js} +8 -8
  17. package/dist/{index-CzgY9rV-.js → index-BzT9veMM.js} +57 -61
  18. package/dist/{index-QdkaQuAk.js → index-C06Ba2iF.js} +2 -2
  19. package/dist/{index-BNDaeOZD.js → index-C9_Pcose.js} +40 -43
  20. package/dist/{index-CM6CVZ_d.js → index-CCYxDZ1R.js} +21515 -15031
  21. package/dist/index-CGzlH16h.js +331 -0
  22. package/dist/{index-DewO44mx.js → index-COBZQS9O.js} +2 -2
  23. package/dist/index-CX4rmFoH.js +2623 -0
  24. package/dist/{index-CJySKIdc.js → index-CvOCu8lX.js} +1 -1
  25. package/dist/{index-CnmXW-Bj.js → index-D-YGtSgX.js} +36 -40
  26. package/dist/{index-CJbdXJRV.js → index-D-_Ie1fO.js} +3 -3
  27. package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
  28. package/dist/{index-CKB74hmA.js → index-DUPQ7Cfd.js} +482 -483
  29. package/dist/{index-CIoBc8yl.js → index-D_Bn-9ej.js} +60 -62
  30. package/dist/{index-CsqopIxB.js → index-D_f48W32.js} +1078 -1079
  31. package/dist/{index-CYspf59Y.js → index-DbS-yoGf.js} +8 -8
  32. package/dist/{index-DyOGhRxL.js → index-DeLc4k1p.js} +4 -4
  33. package/dist/{index-Cl2tex39.js → index-DfJJKz37.js} +163 -172
  34. package/dist/{index-8KwwXnRD.js → index-DyoKmN7k.js} +3 -3
  35. package/dist/{index-ChfKhYMO.js → index-Rr-ZoXmb.js} +24355 -24391
  36. package/dist/{index-BLFiId9N.js → index-TpycHQ-H.js} +5 -5
  37. package/dist/index-bNY-PrZV.js +11779 -0
  38. package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
  39. package/dist/{index-CBL2Pg06.js → index-dcW2d4Zs.js} +5 -5
  40. package/dist/{index-Cpv5443J.js → index-hGjbrq0G.js} +4 -4
  41. package/dist/{index-CccqT4-H.js → index-j8TmMAmi.js} +6 -6
  42. package/dist/{index-B6x7nsvL.js → index-tCEjJktX.js} +5 -5
  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-Du1zP7Kw.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-fAbD9e7m.js} +174 -174
  56. package/dist/{threePreview-Bu2Spume.js → threePreview-0iSlhKYj.js} +12 -12
  57. package/dist/{threeSceneView-DxeVIhrp.js → threeSceneView-DRd2cEoX.js} +49 -50
  58. package/dist/{threeSceneViewForCPMPIP-DPYmtlbM.js → threeSceneViewForCPMPIP-B4J6jX9N.js} +16 -17
  59. package/dist/{threeTrackPathView-fb0Ye-HT.js → threeTrackPathView-BzrYvQKg.js} +36 -36
  60. package/dist/{threeViewerHost-DHRT4ihY.js → threeViewerHost-C09kiZJV.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
@@ -0,0 +1,331 @@
1
+ import { watch as be, ref as h, computed as Le } from "vue";
2
+ import { p as w, k as D, w as Te } from "./index-DUPQ7Cfd.js";
3
+ import { s as we, b as N, p as F, u as De, A as Ee, c as E, J as U, E as Re, q as Ae, aZ as Be, a_ as Pe, a$ as Se, b0 as qe, b1 as xe, b2 as Ue } from "./index-D_f48W32.js";
4
+ import { s as V } from "./request-CllqY4TP.js";
5
+ import { i as ke } from "./fileUtil-UOt_otFo.js";
6
+ const Ne = N(F), { systemUrl: p } = we(Ne);
7
+ let R = p.value === "" || !p.value ? "http://222.92.178.198:63002" : p.value;
8
+ be(
9
+ () => p.value,
10
+ () => {
11
+ R = p.value === "" || !p.value ? "http://222.92.178.198:63002" : p.value;
12
+ },
13
+ { deep: !0, immediate: !0 }
14
+ );
15
+ function Fe(d) {
16
+ return V({
17
+ url: `${R}/platform/import_data`,
18
+ method: "post",
19
+ data: d
20
+ });
21
+ }
22
+ function Ve(d) {
23
+ return V({
24
+ url: `${R}/platform/export_data`,
25
+ method: "post",
26
+ data: d,
27
+ responseType: "blob"
28
+ });
29
+ }
30
+ const Ke = [
31
+ {
32
+ label: "编辑",
33
+ value: "edit"
34
+ },
35
+ {
36
+ label: "删除",
37
+ value: "delete"
38
+ }
39
+ ], k = "role", u = {
40
+ ENABLE: {
41
+ value: "enable",
42
+ label: "启用",
43
+ tag: "primary"
44
+ },
45
+ DISABLED: {
46
+ value: "disabled",
47
+ label: "禁用",
48
+ tag: "info"
49
+ }
50
+ }, c = {
51
+ EDITABLE: {
52
+ value: "editable",
53
+ label: "可编辑",
54
+ tag: "primary"
55
+ },
56
+ DISABLED: {
57
+ value: "disabled",
58
+ label: "不可编辑",
59
+ tag: "info"
60
+ }
61
+ }, ze = {
62
+ TABLE: {
63
+ value: "Table"
64
+ }
65
+ }, $e = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
66
+ const d = N(), o = De(F), { isSuperAdmin: y, userId: z, userName: v, platId: l } = Ee(), A = h([]), $ = (t) => {
67
+ const { propertyType: e } = t || {};
68
+ return e === ze.TABLE.value;
69
+ }, I = h({}), G = Le(() => {
70
+ var e;
71
+ return y.value ? !0 : ((e = I.value) == null ? void 0 : e.status) === c.EDITABLE.value;
72
+ }), C = (t) => {
73
+ var s, n;
74
+ const e = U(Date.now()), { id: a = 0 } = d.loginUserInfo || {}, r = E(t);
75
+ return r.update_user_id = a, r.update_user_name = v.value, r.update_time = e, r.checked_ids = ((n = (s = r == null ? void 0 : r.main_ids) == null ? void 0 : s.map) == null ? void 0 : n.call(s, (i) => {
76
+ const { id: f } = i;
77
+ return f;
78
+ })) || [], r;
79
+ }, B = (t) => {
80
+ let e = [];
81
+ return t.forEach((a) => {
82
+ var r;
83
+ if (a.isPropertyLeaf) {
84
+ const s = E(a);
85
+ e.push(s);
86
+ }
87
+ a.children && ((r = a.children) == null ? void 0 : r.length) > 0 && (e = e.concat(B(a.children)));
88
+ }), e;
89
+ }, P = (t = []) => {
90
+ let e = [];
91
+ for (let a = 0; a < t.length; a++) {
92
+ const r = t[a], s = r.children || [];
93
+ delete r.children, e.push(r), s && s.length > 0 && (e = e.concat(P(s)));
94
+ }
95
+ return e;
96
+ }, M = (t) => {
97
+ let e = [];
98
+ return t.forEach((a) => {
99
+ if (a.isPropertyLeaf) {
100
+ const r = P(a.params);
101
+ e = e.concat(r);
102
+ }
103
+ }), e;
104
+ }, S = (t, e) => {
105
+ const a = d.loginUserInfo, { id: r = 0 } = a || {}, s = U(Date.now());
106
+ let n = {
107
+ name: "",
108
+ code: "",
109
+ order_no: 1,
110
+ data_scope: 1,
111
+ remark: "",
112
+ tenant_id: "",
113
+ create_time: s,
114
+ update_time: s,
115
+ create_user_id: r,
116
+ create_user_name: v.value,
117
+ update_user_id: r,
118
+ update_user_name: v.value,
119
+ status: u.ENABLE.value,
120
+ main_ids: [],
121
+ checked_ids: [],
122
+ params: []
123
+ };
124
+ const { checkAll: i, tree: f } = e || {};
125
+ if (i && f) {
126
+ const g = B(f), Ie = g.map((T) => ({
127
+ ...T,
128
+ department_scope: "unlimited"
129
+ }));
130
+ n.main_ids = Ie, n.checked_ids = g.map((T) => T.id), n.params = M(g);
131
+ }
132
+ if (t) {
133
+ const g = C(t);
134
+ n = {
135
+ ...n,
136
+ ...g
137
+ };
138
+ }
139
+ return n;
140
+ }, b = (t) => {
141
+ const e = [t];
142
+ return {
143
+ platId: l.value,
144
+ changeRoleData: e
145
+ };
146
+ }, O = async (t) => await xe({
147
+ platId: t
148
+ }), H = async () => {
149
+ var e;
150
+ o.setImportLoading(!0);
151
+ const t = await O(l.value).finally(() => {
152
+ o.setImportLoading(!1);
153
+ });
154
+ return (e = t == null ? void 0 : t.data) == null ? void 0 : e.result;
155
+ }, q = () => ({
156
+ name: ""
157
+ }), _ = h(q()), Q = () => {
158
+ _.value = q();
159
+ }, m = h({
160
+ pageNum: 1,
161
+ pageSize: 10,
162
+ total: 0,
163
+ pageSizes: [5, 10, 20, 50, 100]
164
+ }), J = (t) => {
165
+ m.value.pageNum = t;
166
+ }, K = (t) => {
167
+ m.value.pageSize = t;
168
+ }, W = () => ({
169
+ platId: l.value,
170
+ pageNum: m.value.pageNum,
171
+ pageSize: m.value.pageSize,
172
+ filter: {
173
+ ..._.value
174
+ }
175
+ }), Z = async (t) => {
176
+ var a;
177
+ const e = await Ue(t);
178
+ return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
179
+ }, j = async () => {
180
+ const t = W(), e = await Z(t), { total: a } = e || {};
181
+ return m.value.total = a, e || {};
182
+ }, X = async (t) => {
183
+ delete t.role_id;
184
+ const e = b(t);
185
+ await qe(e);
186
+ }, Y = async (t) => {
187
+ o.setImportLoading(!0), await X(t).finally(() => {
188
+ o.setImportLoading(!1);
189
+ });
190
+ }, ee = async (t) => {
191
+ const e = b(t);
192
+ await Se(e);
193
+ }, te = async (t) => {
194
+ o.setImportLoading(!0), await ee(t).finally(() => {
195
+ o.setImportLoading(!1);
196
+ });
197
+ }, ae = async (t) => {
198
+ const { role_id: e } = t, a = {
199
+ platId: l.value,
200
+ role_id: [e]
201
+ };
202
+ await Pe(a);
203
+ }, re = async (t) => {
204
+ await Re.confirm("是否确认要删除", "", {
205
+ showClose: !1,
206
+ confirmButtonText: "确认",
207
+ cancelButtonText: "取消",
208
+ type: "warning",
209
+ modalClass: "delete-role-message-modal",
210
+ confirmButtonClass: "delete-role-confirm"
211
+ }), o.setImportLoading(!0), await ae(t).finally(() => {
212
+ o.setImportLoading(!1);
213
+ });
214
+ }, se = (t) => {
215
+ const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
216
+ return (a == null ? void 0 : a.label) || t;
217
+ }, ne = (t) => {
218
+ const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
219
+ return (a == null ? void 0 : a.tag) || "info";
220
+ }, oe = async (t) => {
221
+ var a;
222
+ const e = await Be(t);
223
+ return ((a = e == null ? void 0 : e.data) == null ? void 0 : a.result) || [];
224
+ }, le = async (t) => {
225
+ const e = {
226
+ platId: l.value,
227
+ includeHidden: !0,
228
+ roleIds: t
229
+ };
230
+ o.setImportLoading(!0);
231
+ const a = await oe(e).finally(() => {
232
+ o.setImportLoading(!1);
233
+ });
234
+ A.value = a;
235
+ }, ie = (t = "") => {
236
+ const e = t.toUpperCase(), a = c == null ? void 0 : c[e];
237
+ return (a == null ? void 0 : a.label) || t;
238
+ }, ce = (t = "") => {
239
+ const e = t.toUpperCase(), a = c == null ? void 0 : c[e];
240
+ return (a == null ? void 0 : a.tag) || "info";
241
+ }, L = (t) => t === c.EDITABLE.value, ue = (t, e) => {
242
+ const { status: a } = t || {}, { tableOperate: r } = e || {};
243
+ return !!(L(a) || r && $e.includes(r));
244
+ }, pe = (t, e) => {
245
+ const { status: a } = t || {};
246
+ return L(a);
247
+ }, de = (t, e) => {
248
+ if (y.value)
249
+ return !0;
250
+ const { type: a } = e || {};
251
+ if (w.TABLE === a)
252
+ return ue(t, e);
253
+ if (w.FORM === a)
254
+ return pe(t);
255
+ const { status: r } = t || {};
256
+ return L(r);
257
+ }, me = async () => {
258
+ var r, s;
259
+ const e = {
260
+ pageName: "系统管理/角色管理",
261
+ platId: l.value,
262
+ userId: z.value
263
+ }, a = await Ae(e);
264
+ return (s = (r = a == null ? void 0 : a.data) == null ? void 0 : r.result) == null ? void 0 : s[0];
265
+ }, fe = async () => {
266
+ if (!y.value)
267
+ return I.value = await me(), I;
268
+ }, x = (t) => {
269
+ const e = E(t);
270
+ for (let a = 0; a < e.length; a++) {
271
+ const r = e == null ? void 0 : e[a], { id: s, prop: n, children: i } = r || {};
272
+ r.uniqueKey = `${s}_${n}`, i && (r.children = x(i));
273
+ }
274
+ return e;
275
+ }, ge = async (t) => {
276
+ var a;
277
+ const e = await Fe(t);
278
+ return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
279
+ }, ye = async (t) => {
280
+ const e = new FormData(), a = S(), { create_user_id: r, update_user_id: s, create_user_name: n, update_user_name: i } = a;
281
+ return e.set("platId", l.value), e.set("file", t), e.set("tableType", k), e.set("create_user_id", r), e.set("update_user_id", s), e.set("create_user_name", n), e.set("update_user_name", i), await ge(e);
282
+ }, _e = async (t) => await Ve(t), he = async () => {
283
+ const t = {
284
+ platId: l.value,
285
+ tableType: k,
286
+ filter: _.value
287
+ }, e = await _e(t);
288
+ return ke(e), e;
289
+ }, ve = [["名称", "编码", "备注", "状态"]];
290
+ return {
291
+ compType: w,
292
+ isTableFeature: $,
293
+ queryInfo: _,
294
+ resetQuery: Q,
295
+ pageInfo: m,
296
+ setPageNum: J,
297
+ setPageSize: K,
298
+ initGetByPage: j,
299
+ initRoleList: H,
300
+ initCreate: Y,
301
+ initUpdate: te,
302
+ initDelete: re,
303
+ initRoleRequestData: b,
304
+ initPropertyAuthTree: le,
305
+ propertyAuthTree: A,
306
+ initRoleItem: S,
307
+ isSuperAdmin: y,
308
+ getStatusLabelByValue: se,
309
+ getStatusTagByValue: ne,
310
+ getFeatureStatusLabelByValue: ie,
311
+ getFeatureStatusTagByValue: ce,
312
+ hasEditable: de,
313
+ initRoleConfig: fe,
314
+ hasRoleEditAuth: G,
315
+ buildParamAuthTree: x,
316
+ initImport: ye,
317
+ initExport: he,
318
+ exportTemplate: async () => {
319
+ const t = D.aoa_to_sheet(ve), e = D.book_new();
320
+ D.book_append_sheet(e, t, "角色"), Te(e, "角色模板.xlsx");
321
+ }
322
+ };
323
+ };
324
+ export {
325
+ Ve as e,
326
+ c as f,
327
+ Fe as i,
328
+ Ke as o,
329
+ u as s,
330
+ We as u
331
+ };
@@ -1,5 +1,5 @@
1
- import { s as h, b as l, p as w, B as F } from "./index-CsqopIxB.js";
2
- import { s as f } from "./request-DolpfyNJ.js";
1
+ import { s as h, b as l, p as w, A as F } from "./index-D_f48W32.js";
2
+ import { s as f } from "./request-CllqY4TP.js";
3
3
  import { watch as p } from "vue";
4
4
  const P = l(w), { systemUrl: s, extraUrl: o } = h(P);
5
5
  let d = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value, m = o.value === "" || !o.value ? "http://139.196.154.85:20015" : o.value;