ss-component-new 1.3.735 → 1.3.737

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 (130) hide show
  1. package/dist/JSEncrypt-B36c1iN5.js +1983 -0
  2. package/dist/MTLLoader-CkNZudBE.js +657 -0
  3. package/dist/URDFLoader-DIzEVzUD.js +2299 -0
  4. package/dist/__vite-browser-external-DYxpcVy9.js +4 -0
  5. package/dist/animationData-DvL_4GZ5.js +83 -0
  6. package/dist/array-BN2tTnqd.js +1045 -0
  7. package/dist/clone-Dp_gc9ll.js +8 -0
  8. package/dist/config.js +1 -1
  9. package/dist/eleIcon-qStmsM1q.js +29 -0
  10. package/dist/fileUtil-UOt_otFo.js +20 -0
  11. package/dist/iconfont-BwY2qVoK.js +1030 -0
  12. package/dist/icons/svg/functionList.svg +1 -0
  13. package/dist/icons/svg/method.svg +1 -0
  14. package/dist/index-11kpzK0A.js +209 -0
  15. package/dist/index-5S_ATziA.js +25341 -0
  16. package/dist/index-B0H3C7WG.js +103 -0
  17. package/dist/index-B6ePvQgB.js +83 -0
  18. package/dist/index-BHtNKL1L.js +27 -0
  19. package/dist/index-BQrVYtnl.js +201 -0
  20. package/dist/index-BbyrFzEO.js +93 -0
  21. package/dist/index-Bej2dPck.js +873 -0
  22. package/dist/index-BooO2Bml.js +78 -0
  23. package/dist/index-BqZj6gM7.js +470 -0
  24. package/dist/index-Bw3sTXPI.js +8993 -0
  25. package/dist/index-BzUgGzuc.js +48 -0
  26. package/dist/index-C9nks7xM.js +30 -0
  27. package/dist/index-CGi0g-VN.js +627 -0
  28. package/dist/index-CV_jQDcg.js +9 -0
  29. package/dist/index-CWOXvFfD.js +44 -0
  30. package/dist/index-CWpFqtvA.js +1000 -0
  31. package/dist/index-CYwlat81.js +20578 -0
  32. package/dist/index-Cflxz2Xv.js +572 -0
  33. package/dist/index-Ch8te5LO.js +411 -0
  34. package/dist/{index-DyhB-cd1.js → index-ChNfRlIP.js} +18 -253
  35. package/dist/index-Ckqlxqaw.js +119 -0
  36. package/dist/index-CpGn7sfE.js +93 -0
  37. package/dist/index-CydXQbtX.js +622 -0
  38. package/dist/index-DG4hoOWt.js +665 -0
  39. package/dist/index-DUbk5m5P.js +99 -0
  40. package/dist/index-DbHIH067.js +107 -0
  41. package/dist/index-DhUE8pTF.js +61 -0
  42. package/dist/index-Dhjj5seQ.js +98 -0
  43. package/dist/index-Ds6m_4JJ.js +28500 -0
  44. package/dist/index-DyCq_odP.js +331 -0
  45. package/dist/index-Ru-cNTPj.js +84 -0
  46. package/dist/index-UB_oCdlo.js +62 -0
  47. package/dist/index-XcH1poa0.js +63306 -0
  48. package/dist/index-YjBTGOkO.js +61 -0
  49. package/dist/index-jbOjjV0j.js +447 -0
  50. package/dist/index-rlStojTL.js +52 -0
  51. package/dist/index-uF-ibwG0.js +9 -0
  52. package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js +137927 -0
  53. package/dist/isString-0ZglyOfu.js +8 -0
  54. package/dist/localIcon-D5UoFBU5.js +76 -0
  55. package/dist/main-BCc8TzAj.js +502 -0
  56. package/dist/menuIndex-BB0uVPRX.js +159 -0
  57. package/dist/obj/model.mtl +42 -0
  58. package/dist/obj/model.obj +26110 -0
  59. package/dist/pyodide-Dc1Mu-0d.js +489 -0
  60. package/dist/request-1RPa2bBn.js +9048 -0
  61. package/dist/ss-component.css +8 -2
  62. package/dist/ss-component.js +64 -28
  63. package/dist/ss-component2.js +75 -15
  64. package/dist/ss-component3.js +1 -1
  65. package/dist/threeModel-BXXLFYOy.js +1109 -0
  66. package/dist/threePreview-DUfFZQ5q.js +3091 -0
  67. package/dist/threeSceneView-Dez2tha0.js +1290 -0
  68. package/dist/threeSceneViewForCPMPIP-DDk128w_.js +539 -0
  69. package/dist/threeTrackPathView-DmE9QE_0.js +620 -0
  70. package/dist/threeViewerHost-7g8xu3oh.js +233 -0
  71. package/dist/urdfTree-VRms7Vm3.js +254 -0
  72. package/dist/workpieceTreePanel-DCSz_IDY.js +559 -0
  73. package/package.json +8 -11
  74. package/public/config.js +1 -1
  75. package/public/icons/svg/functionList.svg +1 -0
  76. package/public/icons/svg/method.svg +1 -0
  77. package/public/obj/model.mtl +42 -0
  78. package/public/obj/model.obj +26110 -0
  79. package/dist/index-8KTFGqOM.js +0 -25
  80. package/dist/index-A8OE-eSF.js +0 -29
  81. package/dist/index-B2xkIV6C.js +0 -25
  82. package/dist/index-B3v82KuY.js +0 -1044
  83. package/dist/index-BggN-zvK.js +0 -634
  84. package/dist/index-C0HH0uAE.js +0 -188
  85. package/dist/index-C0U2Epeo.js +0 -25
  86. package/dist/index-C8GSZPvd.js +0 -4
  87. package/dist/index-CA0CoKiz.js +0 -25
  88. package/dist/index-CHjBtkir.js +0 -4
  89. package/dist/index-CJP9hdx4.js +0 -53
  90. package/dist/index-COeMUCuq.js +0 -213
  91. package/dist/index-COxVr3MC.js +0 -4
  92. package/dist/index-CXoQiaXz.js +0 -27
  93. package/dist/index-CdanNGTM.js +0 -4
  94. package/dist/index-CfwzR4gE.js +0 -469
  95. package/dist/index-CoEteqj_.js +0 -4
  96. package/dist/index-Cqt27z96.js +0 -23
  97. package/dist/index-Cqyl2URI.js +0 -32
  98. package/dist/index-CsdL6xGl.js +0 -181
  99. package/dist/index-CuIbbhNo.js +0 -25
  100. package/dist/index-D1WMhpsE.js +0 -26
  101. package/dist/index-D3G5ymZc.js +0 -4
  102. package/dist/index-D5oMkTBW.js +0 -35
  103. package/dist/index-DGogREB4.js +0 -26
  104. package/dist/index-DRqX_bCT.js +0 -4
  105. package/dist/index-DbUt70zC.js +0 -50
  106. package/dist/index-DnLZtsZU.js +0 -4
  107. package/dist/index-IoMa0kLh.js +0 -27
  108. package/dist/index-JkTP1vyC.js +0 -4
  109. package/dist/index-boICNvPL.js +0 -4
  110. package/dist/index-qO33lx52.js +0 -50664
  111. package/dist/index-uriwf_fo.js +0 -4
  112. package/dist/index.vue_vue_type_script_setup_true_lang-B-JCE78v.js +0 -21
  113. package/dist/index.vue_vue_type_script_setup_true_lang-BSZB17y-.js +0 -42
  114. package/dist/index.vue_vue_type_script_setup_true_lang-Brir5Bym.js +0 -41
  115. package/dist/index.vue_vue_type_script_setup_true_lang-BrnE_n0l.js +0 -25
  116. package/dist/index.vue_vue_type_script_setup_true_lang-C7BgxSz4.js +0 -28
  117. package/dist/index.vue_vue_type_script_setup_true_lang-CARZt7yC.js +0 -25
  118. package/dist/index.vue_vue_type_script_setup_true_lang-CVALRKBG.js +0 -48
  119. package/dist/index.vue_vue_type_script_setup_true_lang-CsThRoDZ.js +0 -28
  120. package/dist/index.vue_vue_type_script_setup_true_lang-CuwhbWHH.js +0 -39
  121. package/dist/index.vue_vue_type_script_setup_true_lang-DAb-qhJ1.js +0 -40
  122. package/dist/index.vue_vue_type_script_setup_true_lang-DimtrEJj.js +0 -26
  123. package/dist/menu-ClNHLze7.js +0 -5208
  124. package/dist/platform-CPTootse.js +0 -11429
  125. /package/dist/icons/svg/{update.svg → Update.svg} +0 -0
  126. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  127. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  128. /package/public/icons/svg/{update.svg → Update.svg} +0 -0
  129. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  130. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -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-Ds6m_4JJ.js";
3
+ import { s as we, b as N, p as F, u as De, B as Ee, c as E, K as U, E as Be, r as Re, aZ as Ae, a_ as Pe, a$ as Se, b0 as qe, b1 as xe, b2 as Ue } from "./index-Bw3sTXPI.js";
4
+ import { s as V } from "./request-1RPa2bBn.js";
5
+ import { i as ke } from "./fileUtil-UOt_otFo.js";
6
+ const Ne = N(F), { systemUrl: p } = we(Ne);
7
+ let B = p.value === "" || !p.value ? "http://222.92.178.198:63002" : p.value;
8
+ be(
9
+ () => p.value,
10
+ () => {
11
+ B = 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: `${B}/platform/import_data`,
18
+ method: "post",
19
+ data: d
20
+ });
21
+ }
22
+ function Ve(d) {
23
+ return V({
24
+ url: `${B}/platform/export_data`,
25
+ method: "post",
26
+ data: d,
27
+ responseType: "blob"
28
+ });
29
+ }
30
+ const We = [
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", "导出", "导出全部", "导出选中"], Ze = () => {
66
+ const d = N(), o = De(F), { isSuperAdmin: y, userId: z, userName: v, platId: l } = Ee(), R = 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
+ }, A = (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(A(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 = A(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()), K = () => {
158
+ _.value = q();
159
+ }, m = h({
160
+ pageNum: 1,
161
+ pageSize: 10,
162
+ total: 0,
163
+ pageSizes: [5, 10, 20, 50, 100]
164
+ }), Q = (t) => {
165
+ m.value.pageNum = t;
166
+ }, W = (t) => {
167
+ m.value.pageSize = t;
168
+ }, Z = () => ({
169
+ platId: l.value,
170
+ pageNum: m.value.pageNum,
171
+ pageSize: m.value.pageSize,
172
+ filter: {
173
+ ..._.value
174
+ }
175
+ }), j = 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 = Z(), e = await j(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 Be.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 Ae(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
+ R.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 Re(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: K,
295
+ pageInfo: m,
296
+ setPageNum: Q,
297
+ setPageSize: W,
298
+ initGetByPage: J,
299
+ initRoleList: H,
300
+ initCreate: Y,
301
+ initUpdate: te,
302
+ initDelete: re,
303
+ initRoleRequestData: b,
304
+ initPropertyAuthTree: le,
305
+ propertyAuthTree: R,
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
+ We as o,
329
+ u as s,
330
+ Ze as u
331
+ };
@@ -0,0 +1,84 @@
1
+ import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
2
+ import { s as b } from "./index-BzUgGzuc.js";
3
+ import { c as s } from "./index-Bw3sTXPI.js";
4
+ import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const A = (t, n, a) => {
6
+ var r, d, p, m;
7
+ let e = n;
8
+ e.title.text = (a == null ? void 0 : a.chartName) ?? "", e.xAxis.data = (r = s(t)) == null ? void 0 : r.map((i) => i.x), e.legend.data = (p = (d = s(t)) == null ? void 0 : d[0]) != null && p.y ? Object.keys(s(t)[0].y) : [];
9
+ let o = [];
10
+ return ((m = e.legend.data) == null ? void 0 : m.length) > 0 && s(e.legend.data).forEach((i) => {
11
+ var f;
12
+ const h = (f = s(t)) == null ? void 0 : f.map((l) => {
13
+ var u;
14
+ return (u = l == null ? void 0 : l.y) == null ? void 0 : u[i];
15
+ });
16
+ o.push({
17
+ name: i,
18
+ type: "line",
19
+ data: h
20
+ });
21
+ }), e.series = o, e;
22
+ }, c = [
23
+ {
24
+ key: "折线图",
25
+ value: {
26
+ title: {
27
+ text: "",
28
+ // 标题文本
29
+ left: "center",
30
+ // 水平居中
31
+ top: 25,
32
+ // 距离顶部距离
33
+ textStyle: {
34
+ // 文本样式
35
+ color: "#333",
36
+ fontSize: 18,
37
+ fontWeight: "bold"
38
+ }
39
+ },
40
+ tooltip: {
41
+ trigger: "axis"
42
+ },
43
+ legend: {
44
+ data: []
45
+ },
46
+ grid: {
47
+ left: "6%",
48
+ right: "4%",
49
+ bottom: "3%",
50
+ containLabel: !0
51
+ },
52
+ xAxis: {
53
+ type: "category",
54
+ axisLabel: {
55
+ interval: 0
56
+ // 强制显示所有标签
57
+ },
58
+ data: []
59
+ },
60
+ yAxis: {
61
+ type: "value"
62
+ },
63
+ series: []
64
+ }
65
+ }
66
+ ], v = { class: "eCharts" }, D = {
67
+ __name: "index",
68
+ props: {
69
+ eChartContents: Array
70
+ },
71
+ setup(t) {
72
+ const n = t, a = x({});
73
+ return _(() => {
74
+ var o;
75
+ const e = n == null ? void 0 : n.eChartContents;
76
+ a.value = A(s(e == null ? void 0 : e.compData), (o = c == null ? void 0 : c.find((r) => (r == null ? void 0 : r.key) === (e == null ? void 0 : e.name))) == null ? void 0 : o.value, e == null ? void 0 : e.extraContent);
77
+ }), (e, o) => (y(), g("div", v, [
78
+ C(b, { optionContents: a.value }, null, 8, ["optionContents"])
79
+ ]));
80
+ }
81
+ }, N = /* @__PURE__ */ k(D, [["__scopeId", "data-v-0440fac3"]]);
82
+ export {
83
+ N as default
84
+ };
@@ -0,0 +1,62 @@
1
+ import { s as h, b as l, p as w, B as F } from "./index-Bw3sTXPI.js";
2
+ import { s as f } from "./request-1RPa2bBn.js";
3
+ import { watch as p } from "vue";
4
+ const P = l(w), { systemUrl: s, extraUrl: o } = h(P);
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;
6
+ p(
7
+ () => s.value,
8
+ () => {
9
+ d = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value;
10
+ },
11
+ { deep: !0, immediate: !0 }
12
+ );
13
+ p(
14
+ () => o.value,
15
+ () => {
16
+ m = o.value === "" || !o.value ? "http://139.196.154.85:20015" : o.value;
17
+ },
18
+ { deep: !0, immediate: !0 }
19
+ );
20
+ function S(a) {
21
+ return f({
22
+ url: m + "/api/face/face-verify",
23
+ method: "post",
24
+ data: a
25
+ });
26
+ }
27
+ function V(a) {
28
+ return f({
29
+ url: d + "/platform/updatedata_faceURL",
30
+ method: "post",
31
+ data: a
32
+ });
33
+ }
34
+ const b = () => {
35
+ const a = l(), { platId: v, userName: y, account: u, isSuperAdmin: g } = F(), c = async (t) => {
36
+ if (!t)
37
+ return;
38
+ const e = new FormData();
39
+ e.set("file", t);
40
+ const r = a.systemInfo.plat_id;
41
+ return e.set("systemKey", r), await S(e);
42
+ };
43
+ return { updateFacePhoto: async (t) => {
44
+ const e = a.loginUserInfo, { password: r } = e || {}, n = {
45
+ platId: v.value,
46
+ userName: y.value,
47
+ password: r,
48
+ faceURL: t
49
+ };
50
+ g.value && (n.platId = ""), await V(n);
51
+ }, initVerifySelf: async (t) => {
52
+ var i;
53
+ const e = await c(t), { account: r, password: n } = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.data) || {};
54
+ if (!u)
55
+ return !1;
56
+ const I = a.loginUserInfo, { password: U } = I || {};
57
+ return r === u.value && n === U;
58
+ }, initVerify: async (t) => await c(t) };
59
+ };
60
+ export {
61
+ b as u
62
+ };