ss-component-new 1.3.736 → 1.3.738

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-BVktbBYH.js +657 -0
  3. package/dist/URDFLoader-DOfmRu4N.js +2299 -0
  4. package/dist/__vite-browser-external-DYxpcVy9.js +4 -0
  5. package/dist/animationData-DFwWrgvB.js +83 -0
  6. package/dist/array-BblFKp6J.js +1045 -0
  7. package/dist/clone-B58hfp9X.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-kC8HZ4Ly.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-5E79iwO0.js +83 -0
  16. package/dist/index-B1p0mv2e.js +201 -0
  17. package/dist/index-B4TcjId0.js +331 -0
  18. package/dist/index-B5ngelGR.js +20578 -0
  19. package/dist/index-BHtNKL1L.js +27 -0
  20. package/dist/index-BiiVP9UY.js +447 -0
  21. package/dist/index-BzB2Vn8c.js +93 -0
  22. package/dist/index-C-eAXBcR.js +78 -0
  23. package/dist/index-C5USB9qE.js +48 -0
  24. package/dist/index-C84z9NFx.js +30 -0
  25. package/dist/index-CDE3W8eV.js +103 -0
  26. package/dist/index-CK4tG84e.js +572 -0
  27. package/dist/index-CLm6QFZK.js +627 -0
  28. package/dist/index-CToBJlDQ.js +28500 -0
  29. package/dist/index-CV_jQDcg.js +9 -0
  30. package/dist/index-CWOXvFfD.js +44 -0
  31. package/dist/index-CXQiVSNJ.js +622 -0
  32. package/dist/{index-DyhB-cd1.js → index-ChNfRlIP.js} +18 -253
  33. package/dist/index-Cryd-gMS.js +62 -0
  34. package/dist/index-Cy0pOs1M.js +411 -0
  35. package/dist/index-DJJYgWGf.js +93 -0
  36. package/dist/index-DQsXaCwv.js +25341 -0
  37. package/dist/index-DUbk5m5P.js +99 -0
  38. package/dist/index-Dep-Vngh.js +1000 -0
  39. package/dist/index-Dgtvod-r.js +84 -0
  40. package/dist/index-Di9zYrW0.js +665 -0
  41. package/dist/index-DrKojU3W.js +470 -0
  42. package/dist/index-Q06_a3No.js +873 -0
  43. package/dist/index-XnbtYIMr.js +58 -0
  44. package/dist/index-YjBTGOkO.js +61 -0
  45. package/dist/index-fQsebbH3.js +107 -0
  46. package/dist/index-nOF50-Li.js +98 -0
  47. package/dist/index-rlStojTL.js +52 -0
  48. package/dist/index-uF-ibwG0.js +9 -0
  49. package/dist/index-wkaC1Dyn.js +119 -0
  50. package/dist/index-yOnrK71-.js +8994 -0
  51. package/dist/index-yRb0l-bC.js +63306 -0
  52. package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-lORgn-P0.js +137927 -0
  53. package/dist/isString-0ZglyOfu.js +8 -0
  54. package/dist/localIcon-D5UoFBU5.js +76 -0
  55. package/dist/main-BeZonpqe.js +502 -0
  56. package/dist/menuIndex-Cv7pne94.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-BFDsEVGl.js +1109 -0
  66. package/dist/threePreview-CgmqKkIH.js +3091 -0
  67. package/dist/threeSceneView-BEZwdi1j.js +1290 -0
  68. package/dist/threeSceneViewForCPMPIP-CusZYRCU.js +539 -0
  69. package/dist/threeTrackPathView-CbhiJklA.js +620 -0
  70. package/dist/threeViewerHost-d0umFxXA.js +233 -0
  71. package/dist/urdfTree-Bko5D1KR.js +254 -0
  72. package/dist/workpieceTreePanel-DTgX-q2q.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-BeE5LpiD.js +0 -50679
  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-CuIbbhNo.js +0 -25
  99. package/dist/index-D1WMhpsE.js +0 -26
  100. package/dist/index-D3G5ymZc.js +0 -4
  101. package/dist/index-D5oMkTBW.js +0 -35
  102. package/dist/index-D7CiXPV2.js +0 -634
  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-LuY_QZlf.js +0 -181
  110. package/dist/index-boICNvPL.js +0 -4
  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,27 @@
1
+ import { computed as s, createElementBlock as a, openBlock as c, mergeProps as l, toHandlers as i, createElementVNode as m } from "vue";
2
+ import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const u = ["xlink:href"], _ = {
4
+ __name: "index",
5
+ props: {
6
+ name: {
7
+ type: String,
8
+ required: !0
9
+ },
10
+ className: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ setup(t) {
16
+ const e = t, n = s(() => `#icon-${e.name}`), o = s(() => e.className ? `svg-icon ${e.className}` : "svg-icon");
17
+ return (r, d) => (c(), a("svg", l({
18
+ class: o.value,
19
+ "aria-hidden": "true"
20
+ }, i(r.$attrs, !0)), [
21
+ m("use", { "xlink:href": n.value }, null, 8, u)
22
+ ], 16));
23
+ }
24
+ }, f = /* @__PURE__ */ p(_, [["__scopeId", "data-v-b0571675"]]);
25
+ export {
26
+ f as S
27
+ };
@@ -0,0 +1,447 @@
1
+ import { defineComponent as J, ref as u, onBeforeUnmount as le, createElementBlock as L, openBlock as F, createElementVNode as o, renderSlot as te, computed as z, onMounted as se, onUnmounted as ne, reactive as re, resolveComponent as g, Fragment as ie, createVNode as a, withCtx as l, toDisplayString as H, unref as h, createBlock as de, createCommentVNode as ce } from "vue";
2
+ import { b as ue, s as pe, e as fe, C as ve } from "./index-yOnrK71-.js";
3
+ import { u as me, t as w } from "./index-BzB2Vn8c.js";
4
+ import { _ as x } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
+ import { s as _e } from "./index-11kpzK0A.js";
6
+ import { u as ge } from "./index-Cryd-gMS.js";
7
+ import { E as K } from "./request-1RPa2bBn.js";
8
+ import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import { c as ye } from "./clone-B58hfp9X.js";
10
+ const be = { class: "account-wrap" }, we = { class: "video-wrap" }, Re = /* @__PURE__ */ J({
11
+ __name: "index",
12
+ emits: ["startVerify", "completeVerify", "verifyResult"],
13
+ setup(X, { expose: O, emit: I }) {
14
+ const R = I, { initVerifySelf: M } = ge(), d = u(null), p = u(null);
15
+ let E = !1, C = null;
16
+ const n = async (s) => {
17
+ if (!s)
18
+ return;
19
+ const t = await M(s).finally(() => {
20
+ R("completeVerify");
21
+ });
22
+ R("verifyResult", t);
23
+ }, W = () => {
24
+ if (!p.value || !d.value)
25
+ return;
26
+ const s = p.value, t = s.getContext("2d"), b = d.value;
27
+ s.width = 200, s.height = 200;
28
+ const S = b.videoWidth || 640, k = b.videoHeight || 480, B = Math.min(200 / S, 200 / k), U = S * B, N = k * B, D = (200 - U) / 2, f = (200 - N) / 2;
29
+ t == null || t.drawImage(b, 0, 0, S, k, D, f, U, N), s.toBlob(async (P) => {
30
+ if (P) {
31
+ const T = new File([P], "face.png", { type: "image/png" });
32
+ R("startVerify"), await n(T);
33
+ }
34
+ }, "image/png");
35
+ }, y = async () => {
36
+ if (!d.value || E)
37
+ return;
38
+ const s = d.value;
39
+ try {
40
+ if (C = await navigator.mediaDevices.getUserMedia({
41
+ video: { facingMode: "user" },
42
+ // 前置;后置用 'environment'
43
+ audio: !1
44
+ }), s) {
45
+ const t = s;
46
+ t.srcObject = C, E = !0;
47
+ }
48
+ } catch {
49
+ K.warning("摄像头启动失败");
50
+ }
51
+ };
52
+ function $(s) {
53
+ if (s && (s.getTracks().forEach((t) => t.stop()), d.value)) {
54
+ const t = d.value;
55
+ t.srcObject = null;
56
+ }
57
+ }
58
+ const A = () => {
59
+ $(C), E = !1;
60
+ };
61
+ return le(() => {
62
+ A();
63
+ }), O({ initFaceRecognition: y, cleanup: A }), (s, t) => (F(), L("div", be, [
64
+ o("div", we, [
65
+ o("video", {
66
+ class: "face-video",
67
+ ref_key: "videoRef",
68
+ ref: d,
69
+ id: "v",
70
+ autoplay: "",
71
+ playsinline: ""
72
+ }, null, 512)
73
+ ]),
74
+ o("div", {
75
+ class: "face-screenshot-wrapper",
76
+ onClick: W
77
+ }, [
78
+ te(s.$slots, "default", {}, () => [
79
+ t[0] || (t[0] = o("button", { class: "" }, "人脸识别", -1))
80
+ ], !0)
81
+ ]),
82
+ o("canvas", {
83
+ ref_key: "canvasRef",
84
+ ref: p,
85
+ id: "canvas"
86
+ }, null, 512)
87
+ ]));
88
+ }
89
+ }), Ve = /* @__PURE__ */ Q(Re, [["__scopeId", "data-v-d48749db"]]), he = { class: "personal-center" }, Ee = { class: "body" }, Ce = { class: "body-left" }, Se = { class: "personal-profile" }, ke = { class: "avatar" }, Te = ["src"], Fe = {
90
+ key: 1,
91
+ class: "downgrade-avatar"
92
+ }, Oe = { class: "base-info" }, Ie = { class: "permission" }, Ae = { class: "personal-form-wrapper" }, Be = { class: "password-input-wrapper" }, Ue = { class: "edit-wrapper" }, Ne = { class: "edit-body" }, De = { class: "edit-form-wrapper" }, Pe = { class: "edit-footer" }, xe = { class: "footer-right" }, Le = /* @__PURE__ */ J({
93
+ __name: "index",
94
+ setup(X) {
95
+ const { isSuperAdmin: O, initEditForm: I, isAllowReplacePassword: R, initReplacePassword: M } = me(), d = ue(), { loginUserInfo: p } = pe(d), E = z(() => O.value ? "超级管理员" : "普通用户"), C = z(() => {
96
+ var r, e;
97
+ return ((e = (r = p.value) == null ? void 0 : r.account) == null ? void 0 : e.charAt(0)) || "";
98
+ }), n = u({}), W = () => {
99
+ n.value = ye(p.value) || {};
100
+ }, y = u(""), $ = async () => {
101
+ var m, _, V;
102
+ const r = (V = (_ = (m = p.value) == null ? void 0 : m.face_photo_url) == null ? void 0 : _[0]) == null ? void 0 : V.url;
103
+ if (!r)
104
+ return;
105
+ const e = await fe({
106
+ url: r
107
+ }), v = new Blob([e == null ? void 0 : e.data], { type: e == null ? void 0 : e.headers["content-type"] }), c = URL.createObjectURL(v);
108
+ y.value = c;
109
+ }, A = () => {
110
+ y.value && URL.revokeObjectURL(y.value);
111
+ };
112
+ se(() => {
113
+ W(), $();
114
+ }), ne(() => {
115
+ A();
116
+ });
117
+ const s = u(w.BASE.value), t = u(), b = u(!1), S = () => {
118
+ b.value = !0;
119
+ }, k = () => {
120
+ b.value = !1;
121
+ }, B = (r) => {
122
+ if (r) {
123
+ G();
124
+ return;
125
+ }
126
+ K.error("验证失败");
127
+ }, U = (r) => {
128
+ t.value && (r === w.RESET_PASSWORD_BY_FACE_RECOGNITION.value ? t.value.initFaceRecognition() : t.value.cleanup());
129
+ }, N = (r) => {
130
+ const e = r.paneName;
131
+ U(e);
132
+ }, D = u(), f = u(I(p.value)), P = re({
133
+ password: [
134
+ { required: !0, message: "请输入密码", trigger: "blur" }
135
+ ]
136
+ }), T = u(!1), Z = () => {
137
+ T.value = !0;
138
+ }, j = () => {
139
+ T.value = !1;
140
+ }, G = () => {
141
+ f.value = I(p.value), Z();
142
+ }, ee = () => s.value === w.RESET_PASSWORD_BY_FACE_RECOGNITION.value ? !0 : !R(n.value), oe = async () => {
143
+ var v, c;
144
+ if (await ((c = (v = D.value) == null ? void 0 : v.validate) == null ? void 0 : c.call(v)), !ee())
145
+ return;
146
+ const e = ve.service({
147
+ lock: !0,
148
+ text: "Loading",
149
+ background: "rgba(0, 0, 0, 0.7)"
150
+ });
151
+ await M(f.value).finally(() => {
152
+ e.close();
153
+ }), n.value = {
154
+ ...n.value,
155
+ ...f.value
156
+ }, d.setLoginUserInfo(n.value), j();
157
+ };
158
+ return (r, e) => {
159
+ const v = g("el-avatar"), c = g("el-input"), m = g("el-form-item"), _ = g("el-col"), V = g("el-row"), Y = g("el-form"), q = g("el-tab-pane"), ae = g("el-tabs");
160
+ return F(), L(ie, null, [
161
+ o("div", he, [
162
+ e[7] || (e[7] = o("div", { class: "header" }, [
163
+ o("div", { class: "header-left" }),
164
+ o("div", { class: "header-right" })
165
+ ], -1)),
166
+ o("div", Ee, [
167
+ o("div", Ce, [
168
+ o("div", Se, [
169
+ o("div", ke, [
170
+ a(v, {
171
+ fit: "cover",
172
+ size: 96,
173
+ ref: "avatarRef",
174
+ alt: "头像查找失败"
175
+ }, {
176
+ default: l(() => [
177
+ y.value ? (F(), L("img", {
178
+ key: 0,
179
+ class: "face-img",
180
+ src: y.value
181
+ }, null, 8, Te)) : (F(), L("div", Fe, H(C.value), 1))
182
+ ]),
183
+ _: 1
184
+ }, 512)
185
+ ]),
186
+ o("div", Oe, [
187
+ o("div", Ie, H(E.value), 1)
188
+ ])
189
+ ])
190
+ ]),
191
+ e[6] || (e[6] = o("div", { class: "divide" }, null, -1)),
192
+ a(ae, {
193
+ class: "user-tabs",
194
+ modelValue: s.value,
195
+ "onUpdate:modelValue": e[4] || (e[4] = (i) => s.value = i),
196
+ onTabClick: N
197
+ }, {
198
+ default: l(() => [
199
+ a(q, {
200
+ label: h(w).BASE.label,
201
+ name: h(w).BASE.value
202
+ }, {
203
+ default: l(() => [
204
+ o("div", Ae, [
205
+ a(Y, {
206
+ class: "personal-form",
207
+ model: n.value
208
+ }, {
209
+ default: l(() => [
210
+ a(V, { gutter: 20 }, {
211
+ default: l(() => [
212
+ a(_, { span: 12 }, {
213
+ default: l(() => [
214
+ a(m, {
215
+ prop: "user_name",
216
+ label: "姓名",
217
+ "label-position": "top"
218
+ }, {
219
+ default: l(() => [
220
+ a(c, {
221
+ modelValue: n.value.user_name,
222
+ "onUpdate:modelValue": e[0] || (e[0] = (i) => n.value.user_name = i),
223
+ "aria-label": "姓名",
224
+ placeholder: "姓名",
225
+ readonly: ""
226
+ }, null, 8, ["modelValue"])
227
+ ]),
228
+ _: 1
229
+ })
230
+ ]),
231
+ _: 1
232
+ }),
233
+ a(_, { span: 12 }, {
234
+ default: l(() => [
235
+ a(m, {
236
+ prop: "employee_no",
237
+ label: "工号",
238
+ "label-position": "top"
239
+ }, {
240
+ default: l(() => [
241
+ a(c, {
242
+ modelValue: n.value.employee_no,
243
+ "onUpdate:modelValue": e[1] || (e[1] = (i) => n.value.employee_no = i),
244
+ "aria-label": "工号",
245
+ placeholder: "工号",
246
+ readonly: ""
247
+ }, null, 8, ["modelValue"])
248
+ ]),
249
+ _: 1
250
+ })
251
+ ]),
252
+ _: 1
253
+ })
254
+ ]),
255
+ _: 1
256
+ }),
257
+ a(V, { gutter: 20 }, {
258
+ default: l(() => [
259
+ a(_, { span: 12 }, {
260
+ default: l(() => [
261
+ a(m, {
262
+ prop: "account",
263
+ label: "账号",
264
+ "label-position": "top"
265
+ }, {
266
+ default: l(() => [
267
+ a(c, {
268
+ modelValue: n.value.account,
269
+ "onUpdate:modelValue": e[2] || (e[2] = (i) => n.value.account = i),
270
+ "aria-label": "账号",
271
+ placeholder: "账号",
272
+ readonly: ""
273
+ }, null, 8, ["modelValue"])
274
+ ]),
275
+ _: 1
276
+ })
277
+ ]),
278
+ _: 1
279
+ }),
280
+ a(_, { span: 12 }, {
281
+ default: l(() => [
282
+ a(m, {
283
+ prop: "password",
284
+ label: "密码",
285
+ "label-position": "top"
286
+ }, {
287
+ default: l(() => [
288
+ o("div", Be, [
289
+ a(c, {
290
+ modelValue: n.value.password,
291
+ "onUpdate:modelValue": e[3] || (e[3] = (i) => n.value.password = i),
292
+ type: "password",
293
+ "show-password": "",
294
+ readonly: "",
295
+ "aria-label": "密码",
296
+ placeholder: "密码"
297
+ }, null, 8, ["modelValue"]),
298
+ !h(O) && h(R)(n.value) ? (F(), de(x, {
299
+ key: 0,
300
+ class: "replace-password",
301
+ emptyColor: !0,
302
+ onClickTrigger: G,
303
+ modelValue: "修改密码",
304
+ buttonType: "primary"
305
+ })) : ce("", !0)
306
+ ])
307
+ ]),
308
+ _: 1
309
+ })
310
+ ]),
311
+ _: 1
312
+ })
313
+ ]),
314
+ _: 1
315
+ })
316
+ ]),
317
+ _: 1
318
+ }, 8, ["model"])
319
+ ])
320
+ ]),
321
+ _: 1
322
+ }, 8, ["label", "name"]),
323
+ a(q, {
324
+ label: h(w).RESET_PASSWORD_BY_FACE_RECOGNITION.label,
325
+ name: h(w).RESET_PASSWORD_BY_FACE_RECOGNITION.value
326
+ }, {
327
+ default: l(() => [
328
+ a(Ve, {
329
+ ref_key: "faceRecognitionRef",
330
+ ref: t,
331
+ onStartVerify: S,
332
+ onCompleteVerify: k,
333
+ onVerifyResult: B
334
+ }, {
335
+ default: l(() => [
336
+ a(x, {
337
+ class: "verify-button",
338
+ loading: b.value,
339
+ emptyColor: !0,
340
+ modelValue: "人脸识别",
341
+ buttonType: "primary"
342
+ }, null, 8, ["loading"])
343
+ ]),
344
+ _: 1
345
+ }, 512)
346
+ ]),
347
+ _: 1
348
+ }, 8, ["label", "name"])
349
+ ]),
350
+ _: 1
351
+ }, 8, ["modelValue"])
352
+ ]),
353
+ e[8] || (e[8] = o("div", { class: "footer" }, [
354
+ o("div", { class: "footer-left" }),
355
+ o("div", { class: "footer-right" })
356
+ ], -1))
357
+ ]),
358
+ a(_e, {
359
+ class: "edit-dialog",
360
+ visible: T.value,
361
+ title: "用户信息",
362
+ onBeforeDestroy: j,
363
+ showClose: !0,
364
+ closeOnClickModal: !1,
365
+ closeOnPressEscape: !1,
366
+ modalClass: "role-edit-modal",
367
+ alignCenter: !0,
368
+ appendToBody: !1
369
+ }, {
370
+ default: l(() => [
371
+ o("div", Ue, [
372
+ e[9] || (e[9] = o("div", { class: "edit-header" }, [
373
+ o("div", { class: "header-left" }),
374
+ o("div", { class: "header-right" })
375
+ ], -1)),
376
+ o("div", Ne, [
377
+ o("div", De, [
378
+ a(Y, {
379
+ class: "edit-form",
380
+ ref_key: "editFormRef",
381
+ ref: D,
382
+ model: f.value,
383
+ rules: P
384
+ }, {
385
+ default: l(() => [
386
+ a(V, { gutter: 20 }, {
387
+ default: l(() => [
388
+ a(_, { span: 12 }, {
389
+ default: l(() => [
390
+ a(m, {
391
+ prop: "password",
392
+ label: "密码",
393
+ "label-position": "top"
394
+ }, {
395
+ default: l(() => [
396
+ a(c, {
397
+ modelValue: f.value.password,
398
+ "onUpdate:modelValue": e[5] || (e[5] = (i) => f.value.password = i),
399
+ "aria-label": "密码",
400
+ placeholder: "密码"
401
+ }, null, 8, ["modelValue"])
402
+ ]),
403
+ _: 1
404
+ })
405
+ ]),
406
+ _: 1
407
+ })
408
+ ]),
409
+ _: 1
410
+ })
411
+ ]),
412
+ _: 1
413
+ }, 8, ["model", "rules"])
414
+ ])
415
+ ])
416
+ ])
417
+ ]),
418
+ footer: l(() => [
419
+ o("div", Pe, [
420
+ e[10] || (e[10] = o("div", { class: "footer-left" }, null, -1)),
421
+ o("div", xe, [
422
+ a(x, {
423
+ class: "cancel",
424
+ emptyColor: !0,
425
+ onClickTrigger: j,
426
+ modelValue: "取消",
427
+ buttonType: "info"
428
+ }),
429
+ a(x, {
430
+ class: "confirm",
431
+ emptyColor: !0,
432
+ onClickTrigger: oe,
433
+ modelValue: "确定",
434
+ buttonType: "primary"
435
+ })
436
+ ])
437
+ ])
438
+ ]),
439
+ _: 1
440
+ }, 8, ["visible"])
441
+ ], 64);
442
+ };
443
+ }
444
+ }), Je = /* @__PURE__ */ Q(Le, [["__scopeId", "data-v-e4017c10"]]);
445
+ export {
446
+ Je as default
447
+ };
@@ -0,0 +1,93 @@
1
+ import { ref as A, computed as c, onMounted as _ } from "vue";
2
+ import { useRouter as C } from "vue-router";
3
+ import { u as g, p as h, B as R, c as b, r as S, x as E } from "./index-yOnrK71-.js";
4
+ const l = {
5
+ ALLOW: {
6
+ value: "允许"
7
+ },
8
+ DENY: {
9
+ value: "不允许"
10
+ }
11
+ }, M = "系统管理/用户管理", N = "用户列表", D = {
12
+ title: "个人中心",
13
+ path: "/个人中心",
14
+ level: 1,
15
+ show: !0,
16
+ icon: "个人中心",
17
+ carryData: !0,
18
+ isPenultimate: !0,
19
+ isRouter: !0,
20
+ children: [],
21
+ childMenus: []
22
+ }, K = {
23
+ BASE: {
24
+ label: "基础信息",
25
+ value: "base"
26
+ },
27
+ RESET_PASSWORD_BY_FACE_RECOGNITION: {
28
+ label: "修改密码",
29
+ value: "reset-password-by-face-recognition"
30
+ }
31
+ }, T = () => {
32
+ const u = C(), s = g(h), { platId: o, isSuperAdmin: i } = R(), p = (e) => {
33
+ const { id: t } = e;
34
+ return {
35
+ id: t,
36
+ password: "",
37
+ allow_reset_password: l.DENY.value
38
+ };
39
+ }, r = A([]), d = c(() => {
40
+ var t, a;
41
+ const e = (a = (t = r.value) == null ? void 0 : t.find) == null ? void 0 : a.call(t, (n) => n.property_name === N);
42
+ return e == null ? void 0 : e.object_id;
43
+ }), w = async () => {
44
+ var a;
45
+ const e = {
46
+ pageName: M,
47
+ platId: o.value
48
+ }, t = await S(e);
49
+ return ((a = t == null ? void 0 : t.data) == null ? void 0 : a.result) || [];
50
+ }, f = async () => {
51
+ const e = await w();
52
+ r.value = e || [];
53
+ };
54
+ _(async () => {
55
+ await f();
56
+ });
57
+ const y = c(() => `content_${d.value}`), m = async (e) => ({
58
+ platId: o.value,
59
+ changeContents: [
60
+ {
61
+ tableContents: [e],
62
+ tableName: y.value
63
+ }
64
+ ]
65
+ }), I = (e) => {
66
+ const { allow_reset_password: t } = e;
67
+ return t === l.ALLOW.value;
68
+ }, v = async (e) => {
69
+ const { id: t, password: a, allow_reset_password: n } = e;
70
+ return m({
71
+ id: t,
72
+ password: a,
73
+ allow_reset_password: n
74
+ });
75
+ }, P = async (e) => {
76
+ const t = await v(e);
77
+ return await E(t);
78
+ };
79
+ return {
80
+ isSuperAdmin: i,
81
+ toPersonalCenter: () => {
82
+ const e = b(D);
83
+ s.setAsideMenus([e]), s.setActiveMenuPath(e == null ? void 0 : e.path), s.setActiveAsideMenu(e), u.push(e.path);
84
+ },
85
+ isAllowReplacePassword: I,
86
+ initReplacePassword: async (e) => await P(e),
87
+ initEditForm: p
88
+ };
89
+ };
90
+ export {
91
+ K as t,
92
+ T as u
93
+ };
@@ -0,0 +1,78 @@
1
+ import { watch as n } from "vue";
2
+ import { s as o, b as p, p as u } from "./index-yOnrK71-.js";
3
+ import { s as r } from "./request-1RPa2bBn.js";
4
+ const m = p(u), { systemUrl: a } = o(m);
5
+ let e = a.value === "" || !a.value ? "http://222.92.178.198:63002" : a.value;
6
+ n(
7
+ () => a.value,
8
+ () => {
9
+ e = a.value === "" || !a.value ? "http://222.92.178.198:63002" : a.value;
10
+ },
11
+ { deep: !0, immediate: !0 }
12
+ );
13
+ function c(t) {
14
+ return r({
15
+ url: `${e}/platform/getdata_department_tree`,
16
+ method: "post",
17
+ data: t
18
+ });
19
+ }
20
+ function g(t) {
21
+ return r({
22
+ url: `${e}/platform/getdata_department`,
23
+ method: "post",
24
+ data: t
25
+ });
26
+ }
27
+ function h(t) {
28
+ return r({
29
+ url: `${e}/platform/createdata_department`,
30
+ method: "post",
31
+ data: t
32
+ });
33
+ }
34
+ function y(t) {
35
+ return r({
36
+ url: `${e}/platform/updatedata_department`,
37
+ method: "post",
38
+ data: t
39
+ });
40
+ }
41
+ function _(t) {
42
+ return r({
43
+ url: `${e}/platform/deletedata_department`,
44
+ method: "post",
45
+ data: t
46
+ });
47
+ }
48
+ function v(t) {
49
+ return r({
50
+ url: `${e}/platform/getdata_department`,
51
+ method: "post",
52
+ data: t
53
+ });
54
+ }
55
+ function s(t) {
56
+ return r({
57
+ url: `${e}/platform/getdata_department_type`,
58
+ method: "post",
59
+ data: t
60
+ });
61
+ }
62
+ async function l(t) {
63
+ return await s({
64
+ platId: t
65
+ });
66
+ }
67
+ async function $(t) {
68
+ return await l(t);
69
+ }
70
+ export {
71
+ c as a,
72
+ g as b,
73
+ h as c,
74
+ _ as d,
75
+ $ as e,
76
+ v as g,
77
+ y as u
78
+ };
@@ -0,0 +1,48 @@
1
+ import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
2
+ import { ah as _ } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-lORgn-P0.js";
3
+ import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const z = {
5
+ __name: "index",
6
+ props: {
7
+ optionContents: {
8
+ type: Object,
9
+ default: () => {
10
+ }
11
+ }
12
+ },
13
+ setup(l) {
14
+ const n = l;
15
+ let e = null, t = null;
16
+ const s = c({}), o = c(null), d = () => {
17
+ o.value && (t = new ResizeObserver(() => {
18
+ r();
19
+ }), t.observe(o.value));
20
+ };
21
+ p(() => {
22
+ s.value = n.optionContents, i(), window.addEventListener("resize", r), d();
23
+ }), u(
24
+ () => n.optionContents,
25
+ () => {
26
+ s.value = n.optionContents, i();
27
+ }
28
+ ), f(() => {
29
+ t && t.disconnect(), window.removeEventListener("resize", r);
30
+ });
31
+ const r = () => {
32
+ e.resize();
33
+ }, i = () => {
34
+ e && e.dispose(), e = _(o.value);
35
+ const a = s.value;
36
+ e.setOption(a), e.resize();
37
+ };
38
+ return (a, C) => (m(), v("div", {
39
+ id: "chartModelId",
40
+ class: "chart-model-class",
41
+ ref_key: "chartModelRef",
42
+ ref: o
43
+ }, null, 512));
44
+ }
45
+ }, x = /* @__PURE__ */ h(z, [["__scopeId", "data-v-69d6e63f"]]);
46
+ export {
47
+ x as s
48
+ };