ss-component-new 1.3.321 → 1.3.323

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 (121) hide show
  1. package/dist/{MTLLoader-CK9k2OkC.js → MTLLoader-CWm4zRXg.js} +1 -1
  2. package/dist/{MTLLoader-sFjooHYy.cjs → MTLLoader-D31u_J1I.cjs} +1 -1
  3. package/dist/{OrbitControls-s3zz-OdY.js → OrbitControls-BHymD-uS.js} +1 -1
  4. package/dist/{OrbitControls-C8tvN177.cjs → OrbitControls-CNPfT-k2.cjs} +1 -1
  5. package/dist/{URDFLoader-F13ne6AZ.cjs → URDFLoader-B6fSdZBW.cjs} +1 -1
  6. package/dist/{URDFLoader-C4CxlYaQ.js → URDFLoader-CwxwkM1Z.js} +2 -2
  7. package/dist/{animationData-30iUya9L.cjs → animationData-Cj4Vg9K7.cjs} +1 -1
  8. package/dist/{animationData-Bq0ZKGU5.js → animationData-Dr4AL7Tn.js} +15 -15
  9. package/dist/{array-Bv-GB6_m.js → array-4MUsfO8Y.js} +4 -4
  10. package/dist/{array-Bnm7Uy8H.cjs → array-DhFIb8Ci.cjs} +1 -1
  11. package/dist/clone-D6y-bsE3.cjs +1 -0
  12. package/dist/{clone-BkoeZZPJ.js → clone-DkUTKKWA.js} +1 -1
  13. package/dist/{dayjs.min-D2kum5JL.js → dayjs.min-BL2Zt4iO.js} +1 -1
  14. package/dist/{dayjs.min-CKeZNApM.cjs → dayjs.min-DYXCWUDw.cjs} +1 -1
  15. package/dist/{iconfont-CAf85VWB.js → iconfont-B4tW5MMA.js} +2 -2
  16. package/dist/{iconfont-m42I_Zch.cjs → iconfont-sC2feAth.cjs} +1 -1
  17. package/dist/{JSEncrypt-B36c1iN5.js → index-4L13fekz.js} +743 -453
  18. package/dist/index-7psGt_5p.cjs +1 -0
  19. package/dist/{index-BVH050w0.cjs → index-8S3bQzsS.cjs} +1 -1
  20. package/dist/{index-DwxZZ2Rv.js → index-B1u8xeDs.js} +2 -2
  21. package/dist/{index-86Qtt4Gi.cjs → index-B88VGc4X.cjs} +2 -2
  22. package/dist/{index-DG7fwVK4.js → index-BBFKG5Lg.js} +3667 -3954
  23. package/dist/{index-TdRQ4U-0.cjs → index-BBtFM-Ge.cjs} +1 -1
  24. package/dist/{index-BuytoK__.cjs → index-BE9ZWUsI.cjs} +1 -1
  25. package/dist/{index-_WSPThGL.cjs → index-BFlrYtOA.cjs} +1 -1
  26. package/dist/{index-BG_BTIbd.js → index-BGsbzbfR.js} +1 -1
  27. package/dist/{index-CQVWTddk.js → index-BNEyTIe4.js} +4 -4
  28. package/dist/{index-BhssV5Si.js → index-BRxMnV1e.js} +3 -3
  29. package/dist/{index-B1vAZHjo.js → index-BU1ISY19.js} +1 -1
  30. package/dist/{index-C6e8tITh.js → index-BWNRm72Z.js} +1194 -1185
  31. package/dist/{index-Cf8X898z.cjs → index-BbtC7Ji7.cjs} +1 -1
  32. package/dist/{index-BbN4AWqw.js → index-BiHyvosO.js} +2 -2
  33. package/dist/index-Bkqa7S3G.js +132 -0
  34. package/dist/{index-C4FN-3yG.cjs → index-BlX6PtgC.cjs} +1 -1
  35. package/dist/{index-DyNe1ivN.js → index-BnKm-Z6I.js} +3 -3
  36. package/dist/index-BnpnirTe.js +9581 -0
  37. package/dist/{index-DcEc7R08.js → index-BoX2OxZA.js} +4 -4
  38. package/dist/{index-xRIUu3ui.js → index-ByOP4S4w.js} +70 -71
  39. package/dist/{index-BY8CAuth.cjs → index-C1eYjrgp.cjs} +1 -1
  40. package/dist/{index-DLlv5Kx4.js → index-C5Ftg2Ji.js} +9 -9
  41. package/dist/{index-BfoNwJYn.cjs → index-CO4nfCVV.cjs} +1 -1
  42. package/dist/{index-DTia9oJS.js → index-CURV4Sc-.js} +4 -4
  43. package/dist/{index-BfGzv-hd.js → index-CXS2rLtC.js} +1 -1
  44. package/dist/{index-EwzDPuOE.js → index-CdBuyUt1.js} +6 -6
  45. package/dist/{JSEncrypt-IYbV4kRj.cjs → index-Cg7sjq06.cjs} +11 -11
  46. package/dist/index-ChruFvf_.cjs +2 -0
  47. package/dist/{index-C8xNjOoe.cjs → index-Ci8QRYNC.cjs} +1 -1
  48. package/dist/index-CkhEA2q9.cjs +1 -0
  49. package/dist/{index-CG6BDUaD.js → index-CmuaqOdl.js} +1 -1
  50. package/dist/{index-CB-G5qY8.cjs → index-CoGh0s71.cjs} +1 -1
  51. package/dist/{index-D6Rv9ZER.cjs → index-D8TUy7GH.cjs} +1 -1
  52. package/dist/{index-Dxa2zPqr.cjs → index-D8sIT3Vh.cjs} +1 -1
  53. package/dist/{index-MSe7REup.cjs → index-DBT-8yul.cjs} +1 -1
  54. package/dist/{index-kCIwjtpa.cjs → index-DM4xlAcv.cjs} +1 -1
  55. package/dist/{index-CUvGyQdt.js → index-DN-7yQww.js} +11 -10
  56. package/dist/{index-BS1qv-TP.cjs → index-DON2Zslz.cjs} +1 -1
  57. package/dist/{index-CCMOSYej.js → index-DPBG_wGE.js} +61 -60
  58. package/dist/{index-CgyXQw5s.cjs → index-DR7h_uyW.cjs} +1 -1
  59. package/dist/index-DUvD0wQS.cjs +1 -0
  60. package/dist/index-DayoUCBG.cjs +1 -0
  61. package/dist/{index-CTi_kU2w.cjs → index-Dfv0Mqza.cjs} +1 -1
  62. package/dist/index-DjT2Wfww.cjs +7 -0
  63. package/dist/index-DmGKehIr.js +666 -0
  64. package/dist/{index-EZOEpeg0.js → index-Dn7_myZr.js} +1 -1
  65. package/dist/index-DqCM7s8O.cjs +104 -0
  66. package/dist/{index-CBshL1g5.js → index-DuIvsQ90.js} +6 -6
  67. package/dist/{index-DKlVcN6L.cjs → index-JU7i7uT2.cjs} +1 -1
  68. package/dist/{index-DtjSUQQ4.cjs → index-MoS_Z1Sz.cjs} +1 -1
  69. package/dist/{index-Chkv6RvP.js → index-bSrw4Jt0.js} +2 -2
  70. package/dist/{index-0hNM9dP5.js → index-d9w5FXdk.js} +3 -3
  71. package/dist/{index-B-TORwhC.js → index-gbjjuq3H.js} +2 -2
  72. package/dist/{index-DH0ChZga.js → index-lH4Qm1Ga.js} +1 -1
  73. package/dist/{index-BmDdag7O.cjs → index-tIBP_Zfx.cjs} +1 -1
  74. package/dist/{index-DweESdia.js → index-umip598j.js} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D06b2AXV.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js} +1843 -1848
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B1YdRpLC.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DXfPRq7d.cjs} +62 -62
  77. package/dist/{main-vQ17tgzX.cjs → main-DQcF01Xl.cjs} +1 -1
  78. package/dist/{main-BjTVrhEn.js → main-eAThV5_B.js} +4 -4
  79. package/dist/{menu-B5Ed9tCx.js → menu-B6brhvAI.js} +2 -1
  80. package/dist/{menu-FU5yiMy8.cjs → menu-D-MiErGd.cjs} +1 -1
  81. package/dist/{menuIndex-CqjGgoWs.cjs → menuIndex-B0wuhry0.cjs} +1 -1
  82. package/dist/{menuIndex-Bofzhsc4.js → menuIndex-uEOgSHtu.js} +1 -1
  83. package/dist/ss-component.cjs +1 -1
  84. package/dist/ss-component.css +1 -1
  85. package/dist/ss-component.js +12 -12
  86. package/dist/ss-component2.cjs +1 -1
  87. package/dist/ss-component2.js +12 -12
  88. package/dist/{threeModel-DV88nk0c.js → threeModel-BEEBOb-O.js} +4 -4
  89. package/dist/{threeModel-B0JqdXMa.cjs → threeModel-VpTZXnvK.cjs} +1 -1
  90. package/dist/{threePreview-YeMZY7Qw.cjs → threePreview-Q8fSB5U0.cjs} +1 -1
  91. package/dist/{threePreview-fM_yCMMk.js → threePreview-w_rSKqjy.js} +4 -4
  92. package/dist/{threeSceneView-B0Si-K-g.js → threeSceneView-BEX9gMj3.js} +16 -15
  93. package/dist/{threeSceneView-DNqHyTyD.cjs → threeSceneView-_RnUHKEx.cjs} +1 -1
  94. package/dist/{threeSceneViewForCPMPIP-QqobgKqL.js → threeSceneViewForCPMPIP-C9VdJLKv.js} +8 -8
  95. package/dist/{threeSceneViewForCPMPIP-B7VfFwXj.cjs → threeSceneViewForCPMPIP-CB2f5jlV.cjs} +1 -1
  96. package/dist/{threeTrackPathView-7k2jorHI.cjs → threeTrackPathView-92QVfAiq.cjs} +1 -1
  97. package/dist/{threeTrackPathView-4fzrYO07.js → threeTrackPathView-BeCkYlv6.js} +4 -4
  98. package/dist/{threeViewerHost-BfyPonp9.cjs → threeViewerHost-72UwjSXh.cjs} +1 -1
  99. package/dist/{threeViewerHost-_yA6hGHE.js → threeViewerHost-DdoyfVK0.js} +3 -3
  100. package/dist/{urdfTree-DK450tLa.cjs → urdfTree-B72ps0XA.cjs} +1 -1
  101. package/dist/{urdfTree-Crc6_c_f.js → urdfTree-DY_PJG4H.js} +1 -1
  102. package/dist/{workpieceTreePanel-g8lvT_yP.js → workpieceTreePanel-B3oPVOh9.js} +4 -4
  103. package/dist/{workpieceTreePanel-a72VDGqM.cjs → workpieceTreePanel-ZO1UvaT0.cjs} +1 -1
  104. package/package.json +1 -1
  105. package/dist/clone-D6Ofpm75.cjs +0 -1
  106. package/dist/index-BBuhs0ay.cjs +0 -1
  107. package/dist/index-B_K-miXW.cjs +0 -1
  108. package/dist/index-Bi3chwDQ.cjs +0 -104
  109. package/dist/index-C7RuokDP.cjs +0 -1
  110. package/dist/index-CFjmSYEv.cjs +0 -1
  111. package/dist/index-CLiXOvYt.js +0 -159
  112. package/dist/index-CMDhafac.js +0 -620
  113. package/dist/index-CjYwnKjV.js +0 -56
  114. package/dist/index-CwTW_wuh.js +0 -9561
  115. package/dist/index-DLQrTFGN.cjs +0 -1
  116. package/dist/index-DmBnQ7BX.cjs +0 -2
  117. package/dist/index-aziCJXBJ.cjs +0 -7
  118. package/dist/obj/model.mtl +0 -42
  119. package/dist/obj/model.obj +0 -26110
  120. package/public/obj/model.mtl +0 -42
  121. package/public/obj/model.obj +0 -26110
@@ -1,12 +1,12 @@
1
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, h as fe } from "./menu-B5Ed9tCx.js";
3
- import { u as me, t as w } from "./index-EZOEpeg0.js";
2
+ import { b as ue, s as pe, h as fe } from "./menu-B6brhvAI.js";
3
+ import { u as me, t as w } from "./index-Dn7_myZr.js";
4
4
  import { _ as x } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
5
  import { s as ve } from "./index-CnjGqJZS.js";
6
- import { u as _e } from "./index-BfGzv-hd.js";
6
+ import { u as _e } from "./index-CXS2rLtC.js";
7
7
  import { E as K } from "./request-CoGtW0Ux.js";
8
8
  import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { c as ge } from "./clone-BkoeZZPJ.js";
9
+ import { c as ge } from "./clone-DkUTKKWA.js";
10
10
  import { E as ye } from "./index-C81Qb0f2.js";
11
11
  const be = { class: "account-wrap" }, we = { class: "video-wrap" }, Re = /* @__PURE__ */ J({
12
12
  __name: "index",
@@ -1,13 +1,12 @@
1
1
  import { ref as h, computed as E, reactive as j, defineComponent as q, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as x, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
2
2
  import { G as fe, H as ve, J as ge, E as T } from "./request-CoGtW0Ux.js";
3
- import { s as J, b as ye, u as me, p as G, c as be, h as he } from "./menu-B5Ed9tCx.js";
3
+ import { s as J, b as ye, u as be, p as G, c as me, h as he } from "./menu-B6brhvAI.js";
4
4
  import { g as Q, u as we } from "./index-o69TSiJu.js";
5
- import { J as X } from "./JSEncrypt-B36c1iN5.js";
6
- import { U as Se } from "./index-DG7fwVK4.js";
7
- import { A as _e } from "./index-DH0ChZga.js";
5
+ import { J as X, r as Se } from "./index-4L13fekz.js";
6
+ import { A as _e } from "./index-lH4Qm1Ga.js";
8
7
  import { u as Y } from "./index-BIV-s4QY.js";
9
8
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { n as Ce } from "./index-EwzDPuOE.js";
9
+ import { n as Ce } from "./index-CdBuyUt1.js";
11
10
  import { S as V } from "./index-BHtNKL1L.js";
12
11
  function Ae(t, s) {
13
12
  const e = new X();
@@ -17,8 +16,8 @@ function ke(t, s) {
17
16
  const e = new X();
18
17
  return e.setPrivateKey(s), e.decrypt(t) || "";
19
18
  }
20
- const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activeMenuPath: I } = J(Ie), Ue = h(0), ee = E(() => {
21
- var t, s, e, n, o, l, a, p, y, m, g;
19
+ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = be(G), { activeMenuPath: I } = J(Ie), Ue = h(0), ee = E(() => {
20
+ var t, s, e, n, l, o, a, p, y, b, g;
22
21
  return [
23
22
  {
24
23
  label: "",
@@ -40,14 +39,14 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
40
39
  // name: 'userDept',
41
40
  name: "部门名称",
42
41
  prop: "部门名称",
43
- value: ((o = d.value) == null ? void 0 : o.部门名称) ?? "未知"
42
+ value: ((l = d.value) == null ? void 0 : l.部门名称) ?? "未知"
44
43
  },
45
44
  {
46
45
  label: "",
47
46
  // name: 'userDept',
48
47
  name: "状态",
49
48
  prop: "状态",
50
- value: ((l = d.value) == null ? void 0 : l.layer) === "superAdmin" ? "启用" : ((a = d.value) == null ? void 0 : a.状态) ?? "未知"
49
+ value: ((o = d.value) == null ? void 0 : o.layer) === "superAdmin" ? "启用" : ((a = d.value) == null ? void 0 : a.状态) ?? "未知"
51
50
  },
52
51
  {
53
52
  label: "",
@@ -59,7 +58,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
59
58
  label: "",
60
59
  prop: "签名",
61
60
  isFormColHidden: !0,
62
- value: ((m = d.value) == null ? void 0 : m.layer) === "superAdmin" ? "启用" : ((g = d.value) == null ? void 0 : g.状态) ?? "未知"
61
+ value: ((b = d.value) == null ? void 0 : b.layer) === "superAdmin" ? "启用" : ((g = d.value) == null ? void 0 : g.状态) ?? "未知"
63
62
  }
64
63
  ];
65
64
  }), Be = () => {
@@ -88,9 +87,9 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
88
87
  disabled: !1
89
88
  }
90
89
  ]), z = h(!1), O = h(!1), ae = h(!1), te = E(() => {
91
- var n, o, l;
92
- const t = sessionStorage.getItem("authority"), s = JSON.parse(t || ""), e = (n = I.value) != null && n.startsWith("/") ? (o = I.value) == null ? void 0 : o.substring(1) : I.value;
93
- return Array.isArray(s) ? (ae.value = !(s != null && s.includes(`${e}/上传头像`)), (l = K.value) == null ? void 0 : l.map((a) => ({
90
+ var n, l, o;
91
+ const t = sessionStorage.getItem("authority"), s = JSON.parse(t || ""), e = (n = I.value) != null && n.startsWith("/") ? (l = I.value) == null ? void 0 : l.substring(1) : I.value;
92
+ return Array.isArray(s) ? (ae.value = !(s != null && s.includes(`${e}/上传头像`)), (o = K.value) == null ? void 0 : o.map((a) => ({
94
93
  ...a,
95
94
  disabled: !(s != null && s.includes(`${e}/签名`))
96
95
  }))) : typeof s == "string" && (s == null ? void 0 : s.toUpperCase()) === "SUPERADMIN" ? K.value : [];
@@ -108,7 +107,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
108
107
  }, se = () => {
109
108
  L.dialogShow = !1;
110
109
  }, re = async (t) => {
111
- var e, n, o, l, a, p, y, m, g;
110
+ var e, n, l, o, a, p, y, b, g;
112
111
  const s = await Q({
113
112
  id: t
114
113
  // key: {
@@ -120,15 +119,15 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
120
119
  });
121
120
  if (((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 200 && s.data.result && Array.isArray(s.data.result) && s.data.result.length > 0) {
122
121
  const c = {
123
- ...(l = (o = (n = s.data.result) == null ? void 0 : n[0]) == null ? void 0 : o.value) == null ? void 0 : l.tableData,
122
+ ...(o = (l = (n = s.data.result) == null ? void 0 : n[0]) == null ? void 0 : l.value) == null ? void 0 : o.tableData,
124
123
  id: (p = (a = s.data.result) == null ? void 0 : a[0]) == null ? void 0 : p.id,
125
- layer: (g = (m = (y = s.data.result) == null ? void 0 : y[0]) == null ? void 0 : m.key) == null ? void 0 : g.layer
124
+ layer: (g = (b = (y = s.data.result) == null ? void 0 : y[0]) == null ? void 0 : b.key) == null ? void 0 : g.layer
126
125
  };
127
126
  M.setLoginUserInfo(c);
128
127
  }
129
128
  }, ne = async (t, s) => {
130
- var n, o, l;
131
- const e = be(t);
129
+ var n, l, o;
130
+ const e = me(t);
132
131
  e == null || delete e.id;
133
132
  try {
134
133
  const a = await we({
@@ -137,7 +136,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
137
136
  tableData: e
138
137
  }
139
138
  });
140
- ((o = a == null ? void 0 : a.data) == null ? void 0 : o.code) === 200 && (se(), T.success("修改成功"), await re((l = d.value) == null ? void 0 : l.id), await M.setLogRecordAsync({
139
+ ((l = a == null ? void 0 : a.data) == null ? void 0 : l.code) === 200 && (se(), T.success("修改成功"), await re((o = d.value) == null ? void 0 : o.id), await M.setLogRecordAsync({
141
140
  type: s,
142
141
  data: t
143
142
  }, I.value));
@@ -147,10 +146,10 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
147
146
  $.value = !1, z.value = !1, O.value = !1;
148
147
  }
149
148
  }, De = async (t, s) => {
150
- var o;
149
+ var l;
151
150
  const e = t === "avatarUrl" ? "头像" : "签名", n = {
152
151
  ...d.value,
153
- status: ((o = d.value) == null ? void 0 : o.status) ?? "启用",
152
+ status: ((l = d.value) == null ? void 0 : l.status) ?? "启用",
154
153
  // password: encryptData(loginUserInfo.value?.password, cryptoInfo?.publicKey),
155
154
  // [prop]: url
156
155
  [e]: s
@@ -159,18 +158,18 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
159
158
  }, B = j({
160
159
  baseCols: [],
161
160
  otherCols: []
162
- }), oe = h([]), le = h(), Pe = (t, s, e) => {
163
- var l, a, p, y, m, g;
161
+ }), le = h([]), oe = h(), Pe = (t, s, e) => {
162
+ var o, a, p, y, b, g;
164
163
  let n;
165
- const o = s;
166
- ((a = (l = d.value) == null ? void 0 : l.layer) == null ? void 0 : a.toUpperCase()) !== "SUPERADMIN" ? n = (p = d.value) != null && p.password ? ke((y = d.value) == null ? void 0 : y.password, (m = P == null ? void 0 : P.value) == null ? void 0 : m.privateKey) : Se : n = (g = d.value) == null ? void 0 : g.password, n === o ? e() : e(new Error("输入的密码与原密码不匹配,请重新输入"));
164
+ const l = s;
165
+ ((a = (o = d.value) == null ? void 0 : o.layer) == null ? void 0 : a.toUpperCase()) !== "SUPERADMIN" ? n = (p = d.value) != null && p.password ? ke((y = d.value) == null ? void 0 : y.password, (b = P == null ? void 0 : P.value) == null ? void 0 : b.privateKey) : Se : n = (g = d.value) == null ? void 0 : g.password, n === l ? e() : e(new Error("输入的密码与原密码不匹配,请重新输入"));
167
166
  }, Ne = (t, s, e) => {
168
167
  s ? e() : e(new Error("请输入密码"));
169
168
  }, Fe = (t, s, e) => {
170
169
  var n;
171
- s !== ((n = le.value) == null ? void 0 : n.newtPass) ? e(new Error("两次输入的密码不一致")) : e();
170
+ s !== ((n = oe.value) == null ? void 0 : n.newtPass) ? e(new Error("两次输入的密码不一致")) : e();
172
171
  }, Le = async () => {
173
- var s, e, n, o, l, a, p, y, m, g;
172
+ var s, e, n, l, o, a, p, y, b, g;
174
173
  const t = await Q({
175
174
  key: {
176
175
  systemKey: sessionStorage.getItem("systemKey"),
@@ -180,8 +179,8 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
180
179
  }
181
180
  });
182
181
  if (((s = t == null ? void 0 : t.data) == null ? void 0 : s.code) === 200 && t.data.result && ((e = t.data.result) == null ? void 0 : e.length) > 0) {
183
- const c = (p = (a = (l = (o = (n = t.data.result) == null ? void 0 : n[0]) == null ? void 0 : o.value) == null ? void 0 : l.pageData) == null ? void 0 : a.compData) == null ? void 0 : p.find((r) => (r == null ? void 0 : r.key) === "header"), w = (y = ee.value) == null ? void 0 : y.map((r) => r == null ? void 0 : r.prop);
184
- B.baseCols = c && ((m = c.contents) == null ? void 0 : m.map((r) => ({
182
+ const c = (p = (a = (o = (l = (n = t.data.result) == null ? void 0 : n[0]) == null ? void 0 : l.value) == null ? void 0 : o.pageData) == null ? void 0 : a.compData) == null ? void 0 : p.find((r) => (r == null ? void 0 : r.key) === "header"), w = (y = ee.value) == null ? void 0 : y.map((r) => r == null ? void 0 : r.prop);
183
+ B.baseCols = c && ((b = c.contents) == null ? void 0 : b.map((r) => ({
185
184
  ...r,
186
185
  isFormColHidden: (w == null ? void 0 : w.includes(r == null ? void 0 : r.prop)) || (r == null ? void 0 : r.label) === "操作"
187
186
  })));
@@ -208,22 +207,22 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
208
207
  B.otherCols = u, xe(d.value);
209
208
  }
210
209
  }, Re = (t) => {
211
- le.value = t;
210
+ oe.value = t;
212
211
  }, Ve = async ({ content: t, buttonName: s }) => {
213
- var n, o, l, a, p;
212
+ var n, l, o, a, p;
214
213
  let e;
215
214
  s === "确定" && (e = {
216
215
  ...d.value,
217
216
  status: ((n = d.value) == null ? void 0 : n.status) ?? "启用",
218
217
  // 目前是超管密码明文传输,非超管用户密码加密传输
219
- password: ((l = (o = d.value) == null ? void 0 : o.layer) == null ? void 0 : l.toUpperCase()) === "SUPERADMIN" ? t == null ? void 0 : t.confirmNewPass : Ae(t == null ? void 0 : t.confirmNewPass, (a = P.value) == null ? void 0 : a.publicKey)
218
+ password: ((o = (l = d.value) == null ? void 0 : l.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? t == null ? void 0 : t.confirmNewPass : Ae(t == null ? void 0 : t.confirmNewPass, (a = P.value) == null ? void 0 : a.publicKey)
220
219
  }), s === "保存基本信息" && (e = {
221
220
  ...d.value,
222
221
  ...t,
223
222
  status: ((p = d.value) == null ? void 0 : p.status) ?? "启用"
224
223
  }), $.value = !0, await ne(e, s);
225
224
  }, W = () => {
226
- var n, o;
225
+ var n, l;
227
226
  const t = {
228
227
  base: [
229
228
  {
@@ -241,15 +240,15 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
241
240
  ]
242
241
  }, s = sessionStorage.getItem("authority"), e = JSON.parse(s || "");
243
242
  if (Array.isArray(e)) {
244
- const l = (n = I.value) != null && n.startsWith("/") ? (o = I.value) == null ? void 0 : o.substring(1) : I.value, a = e != null && e.includes(`${l}/基本信息`) ? t == null ? void 0 : t.base : [], p = e != null && e.includes(`${l}/修改密码`) ? t == null ? void 0 : t.other : [];
243
+ const o = (n = I.value) != null && n.startsWith("/") ? (l = I.value) == null ? void 0 : l.substring(1) : I.value, a = e != null && e.includes(`${o}/基本信息`) ? t == null ? void 0 : t.base : [], p = e != null && e.includes(`${o}/修改密码`) ? t == null ? void 0 : t.other : [];
245
244
  return {
246
245
  base: a,
247
246
  other: p
248
247
  };
249
248
  } else return typeof e == "string" && (e == null ? void 0 : e.toUpperCase()) === "SUPERADMIN" ? t : null;
250
249
  }, xe = (t) => {
251
- var s, e, n, o, l;
252
- oe.value = [
250
+ var s, e, n, l, o;
251
+ le.value = [
253
252
  {
254
253
  value: "基础信息",
255
254
  label: "基础信息",
@@ -299,14 +298,14 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
299
298
  name: a == null ? void 0 : a.prop,
300
299
  contents: a == null ? void 0 : a.options
301
300
  })),
302
- formRules: (o = B.otherCols) == null ? void 0 : o.reduce((a, p) => (a[p.prop] = [
301
+ formRules: (l = B.otherCols) == null ? void 0 : l.reduce((a, p) => (a[p.prop] = [
303
302
  { required: !0, message: "输入有误", trigger: "change" },
304
303
  {
305
- validator: (y, m, g) => p.validator(y, m, g),
304
+ validator: (y, b, g) => p.validator(y, b, g),
306
305
  trigger: "blur"
307
306
  }
308
307
  ], a), {}),
309
- buttonValue: (l = W()) == null ? void 0 : l.other,
308
+ buttonValue: (o = W()) == null ? void 0 : o.other,
310
309
  isEnableWrap: !1
311
310
  },
312
311
  value: ""
@@ -314,7 +313,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
314
313
  ]
315
314
  }
316
315
  ];
317
- }, aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
316
+ }, ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
318
317
  __proto__: null,
319
318
  avatarLoading: z,
320
319
  beforeSignDestroy: se,
@@ -332,7 +331,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
332
331
  signatureLoading: O,
333
332
  submitImageAsync: De,
334
333
  tabKey: Ue,
335
- tabsContents: oe,
334
+ tabsContents: le,
336
335
  tempSignTypes: K,
337
336
  uploadDisabled: ae
338
337
  }, Symbol.toStringTag, { value: "Module" })), Ke = { class: "avatar-model-wrap" }, Me = { key: 0 }, $e = /* @__PURE__ */ q({
@@ -361,18 +360,18 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
361
360
  },
362
361
  emits: ["submitImage", "deleteImage"],
363
362
  setup(t, { emit: s }) {
364
- const e = t, n = s, o = E(() => "http://222.92.178.198:62001"), l = h(""), a = h(""), p = h();
363
+ const e = t, n = s, l = E(() => "http://222.92.178.198:62001"), o = h(""), a = h(""), p = h();
365
364
  H(() => {
366
365
  var c;
367
366
  return (c = e.userInfo) == null ? void 0 : c.头像;
368
367
  }, (c) => {
369
- a.value = c ? o.value + "/" + c : "";
368
+ a.value = c ? l.value + "/" + c : "";
370
369
  }, { immediate: !0 });
371
370
  const y = async () => {
372
371
  if (!(e != null && e.disabled))
373
372
  try {
374
373
  const c = await he({
375
- url: l.value
374
+ url: o.value
376
375
  // url: props.avatarUrl
377
376
  });
378
377
  if (c.status !== 200)
@@ -382,11 +381,11 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
382
381
  } catch (c) {
383
382
  throw new Error(c);
384
383
  }
385
- }, m = async (c) => {
386
- var w, S, u, r, b;
384
+ }, b = async (c) => {
385
+ var w, S, u, r, m;
387
386
  try {
388
387
  const f = await Y(c);
389
- ((w = f == null ? void 0 : f.data) == null ? void 0 : w.code) === 200 && (a.value = o.value + "/" + ((u = (S = f.data) == null ? void 0 : S.result) == null ? void 0 : u.url), l.value = (b = (r = f.data) == null ? void 0 : r.result) == null ? void 0 : b.url, n("submitImage", l.value));
388
+ ((w = f == null ? void 0 : f.data) == null ? void 0 : w.code) === 200 && (a.value = l.value + "/" + ((u = (S = f.data) == null ? void 0 : S.result) == null ? void 0 : u.url), o.value = (m = (r = f.data) == null ? void 0 : r.result) == null ? void 0 : m.url, n("submitImage", o.value));
390
389
  } catch (f) {
391
390
  T.error(f);
392
391
  }
@@ -405,14 +404,14 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
405
404
  avatarBlob: p.value,
406
405
  size: t.size,
407
406
  onClickAvatar: y,
408
- onSubmitImage: m,
407
+ onSubmitImage: b,
409
408
  onDeleteImage: g,
410
409
  clickStop: e == null ? void 0 : e.clickStop
411
410
  }, {
412
411
  avatarDefault: _(() => {
413
- var r, b, f, v;
412
+ var r, m, f, v;
414
413
  return [
415
- x(F(((b = (r = t.userInfo) == null ? void 0 : r.account) == null ? void 0 : b.charAt(0)) || ((v = (f = t.userInfo) == null ? void 0 : f.姓名) == null ? void 0 : v.charAt(0)) || ""), 1)
414
+ x(F(((m = (r = t.userInfo) == null ? void 0 : r.account) == null ? void 0 : m.charAt(0)) || ((v = (f = t.userInfo) == null ? void 0 : f.姓名) == null ? void 0 : v.charAt(0)) || ""), 1)
416
415
  ];
417
416
  }),
418
417
  _: 1
@@ -421,7 +420,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
421
420
  ]);
422
421
  };
423
422
  }
424
- }), ta = /* @__PURE__ */ Z($e, [["__scopeId", "data-v-1a1f2575"]]), ze = /* @__PURE__ */ q({
423
+ }), aa = /* @__PURE__ */ Z($e, [["__scopeId", "data-v-1a1f2575"]]), ze = /* @__PURE__ */ q({
425
424
  __name: "index",
426
425
  props: {
427
426
  itemData: {
@@ -439,45 +438,45 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
439
438
  },
440
439
  emits: ["clickSignButton", "clickSubmitSign", "beforeDestroy"],
441
440
  setup(t, { emit: s }) {
442
- const e = t, n = h({}), o = h([]), l = s, a = (u) => {
443
- n.value.dialogShow = (u == null ? void 0 : u.label) === "电子签名", l("clickSignButton", u);
441
+ const e = t, n = h({}), l = h([]), o = s, a = (u) => {
442
+ n.value.dialogShow = (u == null ? void 0 : u.label) === "电子签名", o("clickSignButton", u);
444
443
  }, p = () => {
445
- n.value.dialogShow = !1, l("beforeDestroy");
446
- }, y = E(() => "http://222.92.178.198:62001"), m = (u) => {
444
+ n.value.dialogShow = !1, o("beforeDestroy");
445
+ }, y = E(() => "http://222.92.178.198:62001"), b = (u) => {
447
446
  var i;
448
- const r = u.split(","), b = (i = r == null ? void 0 : r[0]) == null ? void 0 : i.match(/:(.*?);/)[1], f = atob(r[1]);
447
+ const r = u.split(","), m = (i = r == null ? void 0 : r[0]) == null ? void 0 : i.match(/:(.*?);/)[1], f = atob(r[1]);
449
448
  let v = f.length;
450
449
  const C = new Uint8Array(v);
451
450
  for (; v--; )
452
451
  C[v] = f.charCodeAt(v);
453
- return new Blob([C], { type: b });
452
+ return new Blob([C], { type: m });
454
453
  }, g = async (u) => {
455
- var r, b, f;
454
+ var r, m, f;
456
455
  try {
457
456
  const v = await Y(u);
458
- ((r = v == null ? void 0 : v.data) == null ? void 0 : r.code) === 200 && l("clickSubmitSign", (f = (b = v.data) == null ? void 0 : b.result) == null ? void 0 : f.url);
457
+ ((r = v == null ? void 0 : v.data) == null ? void 0 : r.code) === 200 && o("clickSubmitSign", (f = (m = v.data) == null ? void 0 : m.result) == null ? void 0 : f.url);
459
458
  } catch (v) {
460
459
  T.error(v);
461
460
  }
462
461
  }, c = h(""), w = (u) => {
463
462
  c.value = u, n.value.dialogShow = !1;
464
- const r = new FormData(), b = m(u);
465
- r.append("file", b, "image.png"), g(r);
463
+ const r = new FormData(), m = b(u);
464
+ r.append("file", m, "image.png"), g(r);
466
465
  }, S = (u) => {
467
466
  const r = new FormData();
468
467
  r.append("file", u == null ? void 0 : u.file), g(r);
469
468
  };
470
469
  return H(() => e == null ? void 0 : e.itemData, (u) => {
471
- var b, f, v, C;
472
- c.value = "", (b = n.value) != null && b.dialogShow && (n.value.dialogShow = !1);
470
+ var m, f, v, C;
471
+ c.value = "", (m = n.value) != null && m.dialogShow && (n.value.dialogShow = !1);
473
472
  const r = (f = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signConfig")) == null ? void 0 : f.contents;
474
473
  r && Object.keys(r).forEach((i) => {
475
474
  (r[i] === void 0 || r[i] === null || r[i] === "") && delete r[i];
476
- }), n.value = (v = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signConfig")) == null ? void 0 : v.contents, o.value = (C = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signTypeList")) == null ? void 0 : C.contents;
475
+ }), n.value = (v = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signConfig")) == null ? void 0 : v.contents, l.value = (C = u == null ? void 0 : u.find((i) => (i == null ? void 0 : i.key) === "signTypeList")) == null ? void 0 : C.contents;
477
476
  }, {
478
477
  immediate: !0
479
478
  }), (u, r) => {
480
- const b = D("el-empty"), f = D("el-image"), v = D("el-button"), C = D("el-upload");
479
+ const m = D("el-empty"), f = D("el-image"), v = D("el-button"), C = D("el-upload");
481
480
  return k(), R(Ce, {
482
481
  signPadInfo: n.value,
483
482
  onBeforeDestroy: p,
@@ -495,7 +494,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
495
494
  fit: "contain"
496
495
  }, {
497
496
  error: _(() => [
498
- A(b, {
497
+ A(m, {
499
498
  "image-size": 60,
500
499
  description: " "
501
500
  }, {
@@ -511,7 +510,7 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
511
510
  ];
512
511
  }),
513
512
  signatureTypes: _(() => [
514
- (k(!0), N(ie, null, ce(o.value, (i) => {
513
+ (k(!0), N(ie, null, ce(l.value, (i) => {
515
514
  var U;
516
515
  return k(), N("div", {
517
516
  key: i.label,
@@ -564,10 +563,10 @@ const M = ye(G), { loginUserInfo: d, cryptoInfo: P } = J(M), Ie = me(G), { activ
564
563
  }, 8, ["signPadInfo"]);
565
564
  };
566
565
  }
567
- }), sa = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-ce5a2314"]]);
566
+ }), ta = /* @__PURE__ */ Z(ze, [["__scopeId", "data-v-ce5a2314"]]);
568
567
  export {
569
- aa as S,
570
- sa as a,
571
- ta as s,
568
+ ea as S,
569
+ ta as a,
570
+ aa as s,
572
571
  Ue as t
573
572
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),D=require("./menu-FU5yiMy8.cjs"),f=require("./index-Dxa2zPqr.cjs"),F=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),z=require("./index-CUw6nGTo.cjs"),J=require("./index-BVH050w0.cjs"),M=require("./request-BC2w2vGr.cjs"),$=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=require("./clone-D6Ofpm75.cjs"),Q=require("./index-W8p89C7t.cjs"),X={class:"account-wrap"},Z={class:"video-wrap"},ee=e.defineComponent({__name:"index",emits:["startVerify","completeVerify","verifyResult"],setup(j,{expose:b,emit:h}){const V=h,{initVerifySelf:O}=J.useFaceRecognition(),r=e.ref(null),c=e.ref(null);let N=!1,w=null;const l=async a=>{if(!a)return;const o=await O(a).finally(()=>{V("completeVerify")});V("verifyResult",o)},I=()=>{if(!c.value||!r.value)return;const a=c.value,o=a.getContext("2d"),_=r.value;a.width=200,a.height=200;const C=_.videoWidth||640,E=_.videoHeight||480,x=Math.min(200/C,200/E),k=C*x,S=E*x,T=(200-k)/2,d=(200-S)/2;o==null||o.drawImage(_,0,0,C,E,T,d,k,S),a.toBlob(async B=>{if(B){const y=new File([B],"face.png",{type:"image/png"});V("startVerify"),await l(y)}},"image/png")},v=async()=>{if(!r.value||N)return;const a=r.value;try{if(w=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),a){const o=a;o.srcObject=w,N=!0}}catch{M.ElMessage.warning("摄像头启动失败")}};function A(a){if(a&&(a.getTracks().forEach(o=>o.stop()),r.value)){const o=r.value;o.srcObject=null}}const R=()=>{A(w),N=!1};return e.onBeforeUnmount(()=>{R()}),b({initFaceRecognition:v,cleanup:R}),(a,o)=>(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Z,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:r,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("div",{class:"face-screenshot-wrapper",onClick:I},[e.renderSlot(a.$slots,"default",{},()=>[o[0]||(o[0]=e.createElementVNode("button",{class:""},"人脸识别",-1))],!0)]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:c,id:"canvas"},null,512)]))}}),te=$._export_sfc(ee,[["__scopeId","data-v-d48749db"]]),oe={class:"personal-center"},ae={class:"body"},le={class:"body-left"},ne={class:"personal-profile"},se={class:"avatar"},re=["src"],ie={key:1,class:"downgrade-avatar"},ce={class:"base-info"},de={class:"permission"},ue={class:"personal-form-wrapper"},pe={class:"password-input-wrapper"},me={class:"edit-wrapper"},fe={class:"edit-body"},ve={class:"edit-form-wrapper"},_e={class:"edit-footer"},Ve={class:"footer-right"},ge=e.defineComponent({__name:"index",setup(j){const{isSuperAdmin:b,initEditForm:h,isAllowReplacePassword:V,initReplacePassword:O}=f.usePersonalCenter(),r=D.useLoginState(),{loginUserInfo:c}=D.storeToRefs(r),N=e.computed(()=>b.value?"超级管理员":"普通用户"),w=e.computed(()=>{var n,t;return((t=(n=c.value)==null?void 0:n.account)==null?void 0:t.charAt(0))||""}),l=e.ref({}),I=()=>{l.value=K.clone(c.value)||{}},v=e.ref(""),A=async()=>{var p,m,g;const n=(g=(m=(p=c.value)==null?void 0:p.face_photo_url)==null?void 0:m[0])==null?void 0:g.url;if(!n)return;const t=await D.platformDownloadFile({url:n}),u=new Blob([t==null?void 0:t.data],{type:t==null?void 0:t.headers["content-type"]}),i=URL.createObjectURL(u);v.value=i},R=()=>{v.value&&URL.revokeObjectURL(v.value)};e.onMounted(()=>{I(),A()}),e.onUnmounted(()=>{R()});const a=e.ref(f.tabConstants.BASE.value),o=e.ref(),_=e.ref(!1),C=()=>{_.value=!0},E=()=>{_.value=!1},x=n=>{if(n){P();return}M.ElMessage.error("验证失败")},k=n=>{o.value&&(n===f.tabConstants.RESET_PASSWORD_BY_FACE_RECOGNITION.value?o.value.initFaceRecognition():o.value.cleanup())},S=n=>{const t=n.paneName;k(t)},T=e.ref(),d=e.ref(h(c.value)),B=e.reactive({password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),y=e.ref(!1),W=()=>{y.value=!0},U=()=>{y.value=!1},P=()=>{d.value=h(c.value),W()},G=()=>a.value===f.tabConstants.RESET_PASSWORD_BY_FACE_RECOGNITION.value?!0:!V(l.value),Y=async()=>{var u,i;if(await((i=(u=T.value)==null?void 0:u.validate)==null?void 0:i.call(u)),!G())return;const t=Q.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});await O(d.value).finally(()=>{t.close()}),l.value={...l.value,...d.value},r.setLoginUserInfo(l.value),U()};return(n,t)=>{const u=e.resolveComponent("el-avatar"),i=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),m=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),q=e.resolveComponent("el-form"),L=e.resolveComponent("el-tab-pane"),H=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",oe,[t[7]||(t[7]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("div",ne,[e.createElementVNode("div",se,[e.createVNode(u,{fit:"cover",size:96,ref:"avatarRef",alt:"头像查找失败"},{default:e.withCtx(()=>[v.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"face-img",src:v.value},null,8,re)):(e.openBlock(),e.createElementBlock("div",ie,e.toDisplayString(w.value),1))]),_:1},512)]),e.createElementVNode("div",ce,[e.createElementVNode("div",de,e.toDisplayString(N.value),1)])])]),t[6]||(t[6]=e.createElementVNode("div",{class:"divide"},null,-1)),e.createVNode(H,{class:"user-tabs",modelValue:a.value,"onUpdate:modelValue":t[4]||(t[4]=s=>a.value=s),onTabClick:S},{default:e.withCtx(()=>[e.createVNode(L,{label:e.unref(f.tabConstants).BASE.label,name:e.unref(f.tabConstants).BASE.value},{default:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createVNode(q,{class:"personal-form",model:l.value},{default:e.withCtx(()=>[e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"user_name",label:"姓名","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.user_name,"onUpdate:modelValue":t[0]||(t[0]=s=>l.value.user_name=s),"aria-label":"姓名",placeholder:"姓名",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"employee_no",label:"工号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.employee_no,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value.employee_no=s),"aria-label":"工号",placeholder:"工号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"account",label:"账号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.account,"onUpdate:modelValue":t[2]||(t[2]=s=>l.value.account=s),"aria-label":"账号",placeholder:"账号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",pe,[e.createVNode(i,{modelValue:l.value.password,"onUpdate:modelValue":t[3]||(t[3]=s=>l.value.password=s),type:"password","show-password":"",readonly:"","aria-label":"密码",placeholder:"密码"},null,8,["modelValue"]),!e.unref(b)&&e.unref(V)(l.value)?(e.openBlock(),e.createBlock(F._sfc_main,{key:0,class:"replace-password",emptyColor:!0,onClickTrigger:P,modelValue:"修改密码",buttonType:"primary"})):e.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1},8,["label","name"]),e.createVNode(L,{label:e.unref(f.tabConstants).RESET_PASSWORD_BY_FACE_RECOGNITION.label,name:e.unref(f.tabConstants).RESET_PASSWORD_BY_FACE_RECOGNITION.value},{default:e.withCtx(()=>[e.createVNode(te,{ref_key:"faceRecognitionRef",ref:o,onStartVerify:C,onCompleteVerify:E,onVerifyResult:x},{default:e.withCtx(()=>[e.createVNode(F._sfc_main,{class:"verify-button",loading:_.value,emptyColor:!0,modelValue:"人脸识别",buttonType:"primary"},null,8,["loading"])]),_:1},512)]),_:1},8,["label","name"])]),_:1},8,["modelValue"])]),t[8]||(t[8]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(z.ssDialog,{class:"edit-dialog",visible:y.value,title:"用户信息",onBeforeDestroy:U,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",me,[t[9]||(t[9]=e.createElementVNode("div",{class:"edit-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",fe,[e.createElementVNode("div",ve,[e.createVNode(q,{class:"edit-form",ref_key:"editFormRef",ref:T,model:d.value,rules:B},{default:e.withCtx(()=>[e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:d.value.password,"onUpdate:modelValue":t[5]||(t[5]=s=>d.value.password=s),"aria-label":"密码",placeholder:"密码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",_e,[t[10]||(t[10]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ve,[e.createVNode(F._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:U,modelValue:"取消",buttonType:"info"}),e.createVNode(F._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:Y,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])],64)}}}),Ne=$._export_sfc(ge,[["__scopeId","data-v-e4017c10"]]);exports.default=Ne;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),D=require("./menu-D-MiErGd.cjs"),f=require("./index-D8sIT3Vh.cjs"),F=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),z=require("./index-CUw6nGTo.cjs"),J=require("./index-8S3bQzsS.cjs"),M=require("./request-BC2w2vGr.cjs"),$=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=require("./clone-D6y-bsE3.cjs"),Q=require("./index-W8p89C7t.cjs"),X={class:"account-wrap"},Z={class:"video-wrap"},ee=e.defineComponent({__name:"index",emits:["startVerify","completeVerify","verifyResult"],setup(j,{expose:b,emit:h}){const V=h,{initVerifySelf:O}=J.useFaceRecognition(),r=e.ref(null),c=e.ref(null);let N=!1,w=null;const l=async a=>{if(!a)return;const o=await O(a).finally(()=>{V("completeVerify")});V("verifyResult",o)},I=()=>{if(!c.value||!r.value)return;const a=c.value,o=a.getContext("2d"),_=r.value;a.width=200,a.height=200;const C=_.videoWidth||640,E=_.videoHeight||480,x=Math.min(200/C,200/E),k=C*x,S=E*x,T=(200-k)/2,d=(200-S)/2;o==null||o.drawImage(_,0,0,C,E,T,d,k,S),a.toBlob(async B=>{if(B){const y=new File([B],"face.png",{type:"image/png"});V("startVerify"),await l(y)}},"image/png")},v=async()=>{if(!r.value||N)return;const a=r.value;try{if(w=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1}),a){const o=a;o.srcObject=w,N=!0}}catch{M.ElMessage.warning("摄像头启动失败")}};function A(a){if(a&&(a.getTracks().forEach(o=>o.stop()),r.value)){const o=r.value;o.srcObject=null}}const R=()=>{A(w),N=!1};return e.onBeforeUnmount(()=>{R()}),b({initFaceRecognition:v,cleanup:R}),(a,o)=>(e.openBlock(),e.createElementBlock("div",X,[e.createElementVNode("div",Z,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:r,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("div",{class:"face-screenshot-wrapper",onClick:I},[e.renderSlot(a.$slots,"default",{},()=>[o[0]||(o[0]=e.createElementVNode("button",{class:""},"人脸识别",-1))],!0)]),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:c,id:"canvas"},null,512)]))}}),te=$._export_sfc(ee,[["__scopeId","data-v-d48749db"]]),oe={class:"personal-center"},ae={class:"body"},le={class:"body-left"},ne={class:"personal-profile"},se={class:"avatar"},re=["src"],ie={key:1,class:"downgrade-avatar"},ce={class:"base-info"},de={class:"permission"},ue={class:"personal-form-wrapper"},pe={class:"password-input-wrapper"},me={class:"edit-wrapper"},fe={class:"edit-body"},ve={class:"edit-form-wrapper"},_e={class:"edit-footer"},Ve={class:"footer-right"},ge=e.defineComponent({__name:"index",setup(j){const{isSuperAdmin:b,initEditForm:h,isAllowReplacePassword:V,initReplacePassword:O}=f.usePersonalCenter(),r=D.useLoginState(),{loginUserInfo:c}=D.storeToRefs(r),N=e.computed(()=>b.value?"超级管理员":"普通用户"),w=e.computed(()=>{var n,t;return((t=(n=c.value)==null?void 0:n.account)==null?void 0:t.charAt(0))||""}),l=e.ref({}),I=()=>{l.value=K.clone(c.value)||{}},v=e.ref(""),A=async()=>{var p,m,g;const n=(g=(m=(p=c.value)==null?void 0:p.face_photo_url)==null?void 0:m[0])==null?void 0:g.url;if(!n)return;const t=await D.platformDownloadFile({url:n}),u=new Blob([t==null?void 0:t.data],{type:t==null?void 0:t.headers["content-type"]}),i=URL.createObjectURL(u);v.value=i},R=()=>{v.value&&URL.revokeObjectURL(v.value)};e.onMounted(()=>{I(),A()}),e.onUnmounted(()=>{R()});const a=e.ref(f.tabConstants.BASE.value),o=e.ref(),_=e.ref(!1),C=()=>{_.value=!0},E=()=>{_.value=!1},x=n=>{if(n){P();return}M.ElMessage.error("验证失败")},k=n=>{o.value&&(n===f.tabConstants.RESET_PASSWORD_BY_FACE_RECOGNITION.value?o.value.initFaceRecognition():o.value.cleanup())},S=n=>{const t=n.paneName;k(t)},T=e.ref(),d=e.ref(h(c.value)),B=e.reactive({password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),y=e.ref(!1),W=()=>{y.value=!0},U=()=>{y.value=!1},P=()=>{d.value=h(c.value),W()},G=()=>a.value===f.tabConstants.RESET_PASSWORD_BY_FACE_RECOGNITION.value?!0:!V(l.value),Y=async()=>{var u,i;if(await((i=(u=T.value)==null?void 0:u.validate)==null?void 0:i.call(u)),!G())return;const t=Q.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});await O(d.value).finally(()=>{t.close()}),l.value={...l.value,...d.value},r.setLoginUserInfo(l.value),U()};return(n,t)=>{const u=e.resolveComponent("el-avatar"),i=e.resolveComponent("el-input"),p=e.resolveComponent("el-form-item"),m=e.resolveComponent("el-col"),g=e.resolveComponent("el-row"),q=e.resolveComponent("el-form"),L=e.resolveComponent("el-tab-pane"),H=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",oe,[t[7]||(t[7]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",ae,[e.createElementVNode("div",le,[e.createElementVNode("div",ne,[e.createElementVNode("div",se,[e.createVNode(u,{fit:"cover",size:96,ref:"avatarRef",alt:"头像查找失败"},{default:e.withCtx(()=>[v.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"face-img",src:v.value},null,8,re)):(e.openBlock(),e.createElementBlock("div",ie,e.toDisplayString(w.value),1))]),_:1},512)]),e.createElementVNode("div",ce,[e.createElementVNode("div",de,e.toDisplayString(N.value),1)])])]),t[6]||(t[6]=e.createElementVNode("div",{class:"divide"},null,-1)),e.createVNode(H,{class:"user-tabs",modelValue:a.value,"onUpdate:modelValue":t[4]||(t[4]=s=>a.value=s),onTabClick:S},{default:e.withCtx(()=>[e.createVNode(L,{label:e.unref(f.tabConstants).BASE.label,name:e.unref(f.tabConstants).BASE.value},{default:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createVNode(q,{class:"personal-form",model:l.value},{default:e.withCtx(()=>[e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"user_name",label:"姓名","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.user_name,"onUpdate:modelValue":t[0]||(t[0]=s=>l.value.user_name=s),"aria-label":"姓名",placeholder:"姓名",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"employee_no",label:"工号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.employee_no,"onUpdate:modelValue":t[1]||(t[1]=s=>l.value.employee_no=s),"aria-label":"工号",placeholder:"工号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"account",label:"账号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:l.value.account,"onUpdate:modelValue":t[2]||(t[2]=s=>l.value.account=s),"aria-label":"账号",placeholder:"账号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",pe,[e.createVNode(i,{modelValue:l.value.password,"onUpdate:modelValue":t[3]||(t[3]=s=>l.value.password=s),type:"password","show-password":"",readonly:"","aria-label":"密码",placeholder:"密码"},null,8,["modelValue"]),!e.unref(b)&&e.unref(V)(l.value)?(e.openBlock(),e.createBlock(F._sfc_main,{key:0,class:"replace-password",emptyColor:!0,onClickTrigger:P,modelValue:"修改密码",buttonType:"primary"})):e.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1},8,["label","name"]),e.createVNode(L,{label:e.unref(f.tabConstants).RESET_PASSWORD_BY_FACE_RECOGNITION.label,name:e.unref(f.tabConstants).RESET_PASSWORD_BY_FACE_RECOGNITION.value},{default:e.withCtx(()=>[e.createVNode(te,{ref_key:"faceRecognitionRef",ref:o,onStartVerify:C,onCompleteVerify:E,onVerifyResult:x},{default:e.withCtx(()=>[e.createVNode(F._sfc_main,{class:"verify-button",loading:_.value,emptyColor:!0,modelValue:"人脸识别",buttonType:"primary"},null,8,["loading"])]),_:1},512)]),_:1},8,["label","name"])]),_:1},8,["modelValue"])]),t[8]||(t[8]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(z.ssDialog,{class:"edit-dialog",visible:y.value,title:"用户信息",onBeforeDestroy:U,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",me,[t[9]||(t[9]=e.createElementVNode("div",{class:"edit-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",fe,[e.createElementVNode("div",ve,[e.createVNode(q,{class:"edit-form",ref_key:"editFormRef",ref:T,model:d.value,rules:B},{default:e.withCtx(()=>[e.createVNode(g,{gutter:20},{default:e.withCtx(()=>[e.createVNode(m,{span:12},{default:e.withCtx(()=>[e.createVNode(p,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:d.value.password,"onUpdate:modelValue":t[5]||(t[5]=s=>d.value.password=s),"aria-label":"密码",placeholder:"密码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",_e,[t[10]||(t[10]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Ve,[e.createVNode(F._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:U,modelValue:"取消",buttonType:"info"}),e.createVNode(F._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:Y,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])],64)}}}),Ne=$._export_sfc(ge,[["__scopeId","data-v-e4017c10"]]);exports.default=Ne;
@@ -1,20 +1,20 @@
1
1
  import { defineAsyncComponent as ht, computed as we, onMounted as We, resolveComponent as N, createBlock as Fe, openBlock as F, withCtx as x, resolveDynamicComponent as Ge, defineComponent as dt, defineProps as vt, ref as O, watch as yt, reactive as gt, createElementBlock as P, Fragment as Be, createVNode as R, createCommentVNode as Me, normalizeStyle as Ct, toDisplayString as Oe, createElementVNode as Te, renderList as Pe, createTextVNode as Re } from "vue";
2
- import { u as kt, a as _t, p as $e, b as Dt, s as Ee, c as Ue } from "./menu-B5Ed9tCx.js";
2
+ import { u as kt, a as _t, p as $e, b as Dt, s as Ee, c as Ue } from "./menu-B6brhvAI.js";
3
3
  import { S as St } from "./index-BHtNKL1L.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-D06b2AXV.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-B6QAxDwV.js";
5
5
  import { I as It } from "./request-CoGtW0Ux.js";
6
6
  import { s as bt } from "./index-CnjGqJZS.js";
7
- import { c as Mt } from "./index-EwzDPuOE.js";
7
+ import { c as Mt } from "./index-CdBuyUt1.js";
8
8
  import { useRouter as Tt } from "vue-router";
9
9
  import { a as wt, e as At, f as Bt, g as Et, h as ut } from "./index-C2UiLe43.js";
10
10
  import { g as ze, u as Ft, b as qe, c as Lt, a as Ut } from "./index-o69TSiJu.js";
11
- import { g as jt } from "./index-CCMOSYej.js";
12
- import { f as Kt } from "./menuIndex-Bofzhsc4.js";
13
- import { c as xe, d as Je, n as Ot } from "./index-DG7fwVK4.js";
14
- import { v as ue } from "./index-C6e8tITh.js";
15
- import { u as Pt } from "./index-BhssV5Si.js";
11
+ import { g as jt } from "./index-DPBG_wGE.js";
12
+ import { f as Kt } from "./menuIndex-uEOgSHtu.js";
13
+ import { c as xe, d as Je, n as Ot } from "./index-BBFKG5Lg.js";
14
+ import { v as ue } from "./index-BWNRm72Z.js";
15
+ import { u as Pt } from "./index-BRxMnV1e.js";
16
16
  import { _ as Rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const Le = ht(() => import("./index-EwzDPuOE.js").then((i) => i.o));
17
+ const Le = ht(() => import("./index-CdBuyUt1.js").then((i) => i.o));
18
18
  Le.install = (i) => {
19
19
  i.component("ssMenu", Le);
20
20
  };