ss-component-new 1.3.437 → 1.3.438

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 (81) hide show
  1. package/dist/{MTLLoader-DNSv6X0i.js → MTLLoader-B_6MsRvs.js} +1 -1
  2. package/dist/{MTLLoader-BwkFVqL-.cjs → MTLLoader-CvrQ4EwO.cjs} +1 -1
  3. package/dist/{OrbitControls-DaZRnXU6.cjs → OrbitControls-BmTRTxOn.cjs} +1 -1
  4. package/dist/{OrbitControls-BYUrBNWv.js → OrbitControls-DKFae7WL.js} +1 -1
  5. package/dist/{URDFLoader-DYKZA4lN.cjs → URDFLoader-B345qOec.cjs} +1 -1
  6. package/dist/{URDFLoader-BZBVqZws.js → URDFLoader-C3aCob6G.js} +2 -2
  7. package/dist/{animationData-BJRWi-LU.cjs → animationData-DeIFGQyE.cjs} +1 -1
  8. package/dist/{animationData-Zq5cH5C8.js → animationData-sgKNBYrq.js} +12 -12
  9. package/dist/{array-DAuSR2Ni.js → array-aWbn8qBa.js} +2 -2
  10. package/dist/{array-DgoXmMOo.cjs → array-n24QbcFB.cjs} +1 -1
  11. package/dist/{iconfont-CY4Fa9KU.js → iconfont-CvGxeps_.js} +2 -2
  12. package/dist/{iconfont-Bt2wRD-G.cjs → iconfont-DJcVGYZj.cjs} +1 -1
  13. package/dist/{index-DYJ5Wdmj.cjs → index-B3MCUfK8.cjs} +5 -5
  14. package/dist/{index-BMofVGXk.cjs → index-B9MP9Z_h.cjs} +20 -20
  15. package/dist/{index-ykZXvnaX.js → index-BE5v43Vt.js} +1 -1
  16. package/dist/{index-5zBx2xab.js → index-BF5SUWUn.js} +83 -89
  17. package/dist/{index-DX1AEXgQ.js → index-BFLioZ06.js} +6 -6
  18. package/dist/{index-aaiRLVcp.js → index-BTgKT-Kp.js} +7 -7
  19. package/dist/{index-DCm5o7Nl.js → index-BYR89prk.js} +1 -1
  20. package/dist/{index-C8RnjyU4.cjs → index-BZnGHA40.cjs} +1 -1
  21. package/dist/{index-BRUxCmkT.js → index-B_b-9RDj.js} +1 -1
  22. package/dist/{index-3azkCJc2.js → index-BrQme5Gx.js} +1 -1
  23. package/dist/{index-BiwYTq-N.cjs → index-Btrphi_S.cjs} +1 -1
  24. package/dist/{index-DFLr3nfs.js → index-C5mNmuca.js} +2195 -2197
  25. package/dist/{index-DNwjqZ3_.js → index-C6_Tsvgw.js} +1 -1
  26. package/dist/{index-DEdBu96F.cjs → index-C9Pn4hQC.cjs} +1 -1
  27. package/dist/{index-CCUIg0kG.js → index-CFiyfU1X.js} +27 -27
  28. package/dist/{index-BlWH1RtL.js → index-CP7omV5G.js} +3 -3
  29. package/dist/{index-B7wW0wEg.js → index-CRPMOd9M.js} +5 -5
  30. package/dist/{index-CgVhGDn1.cjs → index-CRSa6_kF.cjs} +1 -1
  31. package/dist/{index-dAoOU6TR.cjs → index-CZuPznao.cjs} +1 -1
  32. package/dist/{index-sVk4LM6C.js → index-Ca_pqbsS.js} +27 -27
  33. package/dist/{index-D7aAxcbI.cjs → index-CljHDtk8.cjs} +1 -1
  34. package/dist/{index-BQmeIxCJ.cjs → index-CuNPiHbH.cjs} +1 -1
  35. package/dist/{index-7G04es6G.js → index-CuuYyKIw.js} +5 -5
  36. package/dist/{index-D8DyFGA3.cjs → index-Cwihd-8T.cjs} +1 -1
  37. package/dist/{index-zKgQ0JKd.cjs → index-CzELqSBx.cjs} +2 -2
  38. package/dist/{index-BxutmuA5.cjs → index-D-HQbgK4.cjs} +1 -1
  39. package/dist/{index-Bq9F_cM8.cjs → index-DI41201t.cjs} +1 -1
  40. package/dist/{index-DShznhnR.js → index-DJQ7yrfE.js} +3 -3
  41. package/dist/{index-D4vCIHNh.js → index-DSbBB3gM.js} +3227 -3227
  42. package/dist/{index-DQi5ylnZ.js → index-Dsye36Ki.js} +1 -1
  43. package/dist/{index-BI1HZ_pA.cjs → index-JEFalyAE.cjs} +1 -1
  44. package/dist/{index-DRuWw2N3.cjs → index-Qj4hyEcC.cjs} +1 -1
  45. package/dist/{index-NFfnuLxo.cjs → index-TYU0HY-n.cjs} +1 -1
  46. package/dist/{index-pTiemqvw.cjs → index-fh5hS-5q.cjs} +1 -1
  47. package/dist/{index-DrUNvbYv.js → index-jGhvBNbM.js} +4 -4
  48. package/dist/{index-FcjQa2OL.cjs → index-rVSu3pgq.cjs} +1 -1
  49. package/dist/{index-BMbjyksn.js → index-tuui_o56.js} +1 -1
  50. package/dist/index-xNgkAqH0.cjs +2 -0
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-87Te47Zq.cjs} +59 -59
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-MobFDuC8.js} +1643 -1648
  53. package/dist/{main-CL6Cy_st.js → main-B_eTLx6e.js} +3 -3
  54. package/dist/{main-AJmmvnvQ.cjs → main-CwbgYYBB.cjs} +1 -1
  55. package/dist/ss-component.cjs +1 -1
  56. package/dist/ss-component.css +1 -1
  57. package/dist/ss-component.js +9 -9
  58. package/dist/ss-component2.cjs +1 -1
  59. package/dist/ss-component2.js +9 -9
  60. package/dist/{threeModel-D03I0p1-.js → threeModel-CBeqHs8p.js} +3 -3
  61. package/dist/{threeModel-SgKLCbEG.cjs → threeModel-ltaREaW0.cjs} +1 -1
  62. package/dist/{threePreview-9qfx_J15.cjs → threePreview-BRskpQt7.cjs} +1 -1
  63. package/dist/{threePreview-Djh17gcq.js → threePreview-BdB2Ejgl.js} +3 -3
  64. package/dist/{threeSceneView-Cj8n_qeP.cjs → threeSceneView-CEDRWk44.cjs} +1 -1
  65. package/dist/{threeSceneView-3GEMP21r.js → threeSceneView-lqhX2anf.js} +10 -10
  66. package/dist/{threeSceneViewForCPMPIP-D-H-nZyF.cjs → threeSceneViewForCPMPIP-BXlkmvHH.cjs} +1 -1
  67. package/dist/{threeSceneViewForCPMPIP-BfJgzGiF.js → threeSceneViewForCPMPIP-DQsrKX6y.js} +7 -7
  68. package/dist/{threeTrackPathView-CewpNc2B.js → threeTrackPathView-Duq7EuCG.js} +3 -3
  69. package/dist/{threeTrackPathView-C8S1xa9M.cjs → threeTrackPathView-efq9aI4q.cjs} +1 -1
  70. package/dist/{threeViewerHost-_8Zi81Q9.cjs → threeViewerHost-5zPVIi_B.cjs} +1 -1
  71. package/dist/{threeViewerHost-DJSU2VXG.js → threeViewerHost-CVoY1tN8.js} +2 -2
  72. package/dist/{urdfTree-tWRZTeGx.cjs → urdfTree-D0GKaMy-.cjs} +1 -1
  73. package/dist/{urdfTree-BWSOyDd8.js → urdfTree-DjV7m96c.js} +1 -1
  74. package/dist/{workpieceTreePanel-cotaSjga.cjs → workpieceTreePanel-BNOW7Npy.cjs} +1 -1
  75. package/dist/{workpieceTreePanel-C_zbYiB6.js → workpieceTreePanel-DIM7QK-1.js} +4 -4
  76. package/package.json +1 -1
  77. package/dist/index-5VQigHQ_.cjs +0 -2
  78. package/dist/obj/model.mtl +0 -42
  79. package/dist/obj/model.obj +0 -26110
  80. package/public/obj/model.mtl +0 -42
  81. package/public/obj/model.obj +0 -26110
@@ -1,5 +1,5 @@
1
1
  import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
2
- import { W as C } from "./index-DFLr3nfs.js";
2
+ import { W as C } from "./index-C5mNmuca.js";
3
3
  import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const b = () => {
5
5
  const i = l("日志管理"), o = l(), a = l([
@@ -98,12 +98,7 @@ const ST = (e, a) => {
98
98
  for (let n = 0; n < e.length; n += a)
99
99
  r.push(e.slice(n, n + a));
100
100
  return r;
101
- }, MT = (e) => {
102
- var r;
103
- if (!e && e !== "") return 0;
104
- let a;
105
- return e === "" ? a = 15 : a = (r = new TextEncoder().encode(e)) == null ? void 0 : r.length, a = Math.ceil(a * 12), a;
106
- }, BT = [
101
+ }, MT = [
107
102
  {
108
103
  key: "FormName",
109
104
  value: "Form"
@@ -124,7 +119,7 @@ const ST = (e, a) => {
124
119
  key: "SystemKey",
125
120
  value: "System"
126
121
  }
127
- ], LT = [
122
+ ], BT = [
128
123
  {
129
124
  key: "FormDirect",
130
125
  value: "formFlex"
@@ -313,11 +308,11 @@ const ST = (e, a) => {
313
308
  return c[a[l]] = f, c;
314
309
  })) == null ? void 0 : s.filter((f) => f), i;
315
310
  }), n;
316
- }, UT = (e, a) => {
311
+ }, LT = (e, a) => {
317
312
  var s, f;
318
313
  const r = ae(e), n = (s = r == null ? void 0 : r.find((l) => (l == null ? void 0 : l.key) === "header")) == null ? void 0 : s.contents, t = (f = r == null ? void 0 : r.find((l) => (l == null ? void 0 : l.key) === "tableContents")) == null ? void 0 : f.contents;
319
314
  return Wh(t, yf(n).slice(0, yf(n).length - 1), a);
320
- }, WT = (e) => {
315
+ }, UT = (e) => {
321
316
  let a = {};
322
317
  return e == null || e.forEach((r) => {
323
318
  a[r.key] = r.value;
@@ -350,7 +345,7 @@ const ST = (e, a) => {
350
345
  };
351
346
  })) == null ? void 0 : i.filter((s) => s.key !== "操作"), n;
352
347
  });
353
- }, HT = async (e) => {
348
+ }, WT = async (e) => {
354
349
  var r, n, t, i;
355
350
  let a = "";
356
351
  if ((n = (r = ae(e)) == null ? void 0 : r.split("/")) == null || n.forEach((s, f) => {
@@ -667,7 +662,7 @@ const ST = (e, a) => {
667
662
  this.routerPageStructures = e;
668
663
  }
669
664
  }
670
- }), r1 = D0(Mr), { activeMenuPath: XT } = Gr(r1), a1 = I0(Mr), { structureData: t1, loginUserInfo: GT } = Gr(a1), n1 = co(Mr), { routerPageStructures: i1 } = Gr(n1);
665
+ }), r1 = D0(Mr), { activeMenuPath: HT } = Gr(r1), a1 = I0(Mr), { structureData: t1, loginUserInfo: XT } = Gr(a1), n1 = co(Mr), { routerPageStructures: i1 } = Gr(n1);
671
666
  fi(Mr);
672
667
  Oa([
673
668
  {
@@ -887,7 +882,7 @@ is(() => {
887
882
  });
888
883
  const m1 = Oa([]);
889
884
  s1.value;
890
- const oo = I0(Mr), { superAdminInfo: $T, cryptoInfo: KT, loginUserInfo: zT } = Gr(oo), g1 = D0(Mr), { activeMenuPath: v1 } = Gr(g1), Lc = fi(Mr), VT = "123456", _1 = co(Mr), { routerPageStructures: y1 } = Gr(_1);
885
+ const oo = I0(Mr), { superAdminInfo: GT, cryptoInfo: $T, loginUserInfo: KT } = Gr(oo), g1 = D0(Mr), { activeMenuPath: v1 } = Gr(g1), Lc = fi(Mr), zT = "123456", _1 = co(Mr), { routerPageStructures: y1 } = Gr(_1);
891
886
  Oa(0);
892
887
  Oa([
893
888
  {
@@ -928,7 +923,7 @@ const k1 = is(() => {
928
923
  })) : [];
929
924
  });
930
925
  Oa();
931
- const jT = async (e, a, r) => {
926
+ const VT = async (e, a, r) => {
932
927
  var n, t;
933
928
  try {
934
929
  const i = await e(a);
@@ -950,7 +945,7 @@ const b0 = Bf("originalState", {
950
945
  actions: {}
951
946
  }), S1 = fi(Mr), {
952
947
  routeToChildPath: Uc
953
- } = Gr(S1), A1 = I0(Mr), { loginUserInfo: Wc, cryptoInfo: YT } = Gr(A1), F1 = b0(Mr), { originalPath: Hc } = Gr(F1), I1 = async (e, a) => {
948
+ } = Gr(S1), A1 = I0(Mr), { loginUserInfo: Wc, cryptoInfo: jT } = Gr(A1), F1 = b0(Mr), { originalPath: Hc } = Gr(F1), I1 = async (e, a) => {
954
949
  const r = sessionStorage.getItem("authority"), n = JSON.parse(r || "");
955
950
  if (Array.isArray(n)) {
956
951
  let t;
@@ -1162,13 +1157,13 @@ const uo = (e, a, r) => {
1162
1157
  return c;
1163
1158
  }), a;
1164
1159
  }
1165
- }, JT = async (e) => {
1160
+ }, YT = async (e) => {
1166
1161
  let a = e;
1167
1162
  return a = a == null ? void 0 : a.filter((r) => r), a = P1(a), a != null && a.every((r) => {
1168
1163
  var n, t;
1169
1164
  return ((t = (n = Object.keys(r)) == null ? void 0 : n.filter((i) => i == null ? void 0 : i.includes("name"))) == null ? void 0 : t.length) === 1;
1170
1165
  }) ? a : R1(a);
1171
- }, qT = async () => {
1166
+ }, JT = async () => {
1172
1167
  var i, s, f, l, c, o, u, x, h, d, p, m, g, y, v, E, T, S, w, L, D, U, B, W, M, se, ne, he, ce, be, K, we, Ae, _, A, I, b, X, ee, Q, Z, J, Te, P, Pe, De, je, Be, ie, ur, ir, ka, Ia, St, Za, Ea, za, Se, Ne, Le, wa, Qe, br, me, Fr, Cr, hr;
1173
1168
  In.setImportLoading(!0);
1174
1169
  let e = "";
@@ -1358,7 +1353,7 @@ const uo = (e, a, r) => {
1358
1353
  }
1359
1354
  }
1360
1355
  In.setImportLoading(!1);
1361
- }, ZT = (e, a) => {
1356
+ }, qT = (e, a) => {
1362
1357
  let r = e;
1363
1358
  const n = [];
1364
1359
  let t = "", i = 0;
@@ -1385,7 +1380,7 @@ const uo = (e, a, r) => {
1385
1380
  for (const s of r)
1386
1381
  i++, s.includes("{") || t.includes("{") || s.includes("[") || t.includes("[") || s.includes("【") || t.includes("【") || s.includes("(") || t.includes("(") || s.includes("(") || t.includes("(") || s.includes("/*") || t.includes("/*") ? (t += s.trim(), ae(t).split("{").length - 1 === ae(t).split("}").length - 1 && ae(t).split("【").length - 1 === ae(t).split("】").length - 1 && ae(t).split("[").length - 1 === ae(t).split("]").length - 1 && ae(t).split("(").length - 1 === ae(t).split(")").length - 1 && ae(t).split("(").length - 1 === ae(t).split(")").length - 1 && ae(t).split("/*").length - 1 === ae(t).split("*/").length - 1 && t[t.length - 1] === a && Gc(t, "'") ? (n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = "") : i === (e == null ? void 0 : e.length) && (n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = "")) : (t += s.trim(), (t == null ? void 0 : t[(t == null ? void 0 : t.length) - 1]) === a && Gc(t, "'") && (n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), t = ""));
1387
1382
  return (t == null ? void 0 : t.length) !== 0 && n.push(t.replace(/\/\*[\s\S]*?\*\//g, "")), n;
1388
- }, M1 = b0(Mr), { originalPath: QT } = Gr(M1), B1 = (e) => {
1383
+ }, M1 = b0(Mr), { originalPath: ZT } = Gr(M1), B1 = (e) => {
1389
1384
  var r, n;
1390
1385
  let a = (n = (r = e == null ? void 0 : e.slice(1, (e == null ? void 0 : e.length) - 1)) == null ? void 0 : r.split(",")) == null ? void 0 : n.map((t) => {
1391
1386
  var i, s, f, l, c;
@@ -1432,7 +1427,7 @@ const uo = (e, a, r) => {
1432
1427
  };
1433
1428
  }, Ef = D0(Mr), { activeMenuPath: gs } = Gr(Ef), L1 = Lf(Mr), { chooseTitle: Oi } = Gr(L1);
1434
1429
  let Dr = "$R";
1435
- const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUserInfo: eS, systemInfo: Kc } = Gr(W1), ho = fi(Mr), H1 = b0(Mr), { originalPath: X1 } = Gr(H1), { payloadTypes: rS } = Gr(ho), vn = (e, a) => (a == null ? void 0 : a.split(",")).some((n) => Object.keys(e).some((t) => t.startsWith("name") && e[t] === n)), tf = {
1430
+ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUserInfo: QT, systemInfo: Kc } = Gr(W1), ho = fi(Mr), H1 = b0(Mr), { originalPath: X1 } = Gr(H1), { payloadTypes: eS } = Gr(ho), vn = (e, a) => (a == null ? void 0 : a.split(",")).some((n) => Object.keys(e).some((t) => t.startsWith("name") && e[t] === n)), tf = {
1436
1431
  onNumSlice: qh,
1437
1432
  onRandomContents: e1,
1438
1433
  onConditionContents: Jh,
@@ -2336,7 +2331,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
2336
2331
  name: "",
2337
2332
  compData: (L = o == null ? void 0 : o.map((D) => D.value.pageData)) == null ? void 0 : L.filter((D) => Object.values(D).length > 0)
2338
2333
  }), g = g.sort((D, U) => D.orderId - U.orderId), g = await N1(g), i ? g : await I1(e, g);
2339
- }, aS = async () => {
2334
+ }, rS = async () => {
2340
2335
  var e, a;
2341
2336
  try {
2342
2337
  let r = ((e = Kc.value) == null ? void 0 : e.platform) || "browser";
@@ -2392,7 +2387,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
2392
2387
  isReadonly: f
2393
2388
  };
2394
2389
  }
2395
- }), tS = (e) => {
2390
+ }), aS = (e) => {
2396
2391
  const a = [];
2397
2392
  function r(n) {
2398
2393
  if (Array.isArray(n))
@@ -2400,7 +2395,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
2400
2395
  !t.children || t.children.length === 0 ? a.push(t) : r(t.children);
2401
2396
  }
2402
2397
  return r(e), a;
2403
- }, nS = (e, a, r) => ae(e).map((t) => (Array.isArray(t) && (t = t.map((i) => {
2398
+ }, tS = (e, a, r) => ae(e).map((t) => (Array.isArray(t) && (t = t.map((i) => {
2404
2399
  var f, l, c, o;
2405
2400
  (l = (f = Y1.value) == null ? void 0 : f.split("/")) == null || l.forEach((u) => {
2406
2401
  var x, h, d;
@@ -2461,7 +2456,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
2461
2456
  })), i;
2462
2457
  }
2463
2458
  return a(e);
2464
- }, iS = (e) => {
2459
+ }, nS = (e) => {
2465
2460
  function a(r, n = [], t = "") {
2466
2461
  if (!r || r.length === 0) return [];
2467
2462
  let i = n;
@@ -2476,7 +2471,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
2476
2471
  })), i;
2477
2472
  }
2478
2473
  return a(e);
2479
- }, sS = (e) => {
2474
+ }, iS = (e) => {
2480
2475
  let a = ae(e);
2481
2476
  return a = a == null ? void 0 : a.map((r) => ((r == null ? void 0 : r.type) === "Select" ? r = {
2482
2477
  label: r == null ? void 0 : r.label,
@@ -2698,7 +2693,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
2698
2693
  }), (d == null ? void 0 : d.length) > 0 && await ti({
2699
2694
  dataList: d
2700
2695
  });
2701
- }, fS = async (e, a, r, n, t) => {
2696
+ }, sS = async (e, a, r, n, t) => {
2702
2697
  var p, m, g, y, v, E, T, S, w, L, D, U, B, W, M, se, ne, he, ce, be, K, we, Ae;
2703
2698
  let i = e;
2704
2699
  (i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) !== G0 && (i = "", (m = (p = ae(e)) == null ? void 0 : p.split(G0)) == null || m.forEach((_, A) => {
@@ -3275,12 +3270,12 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
3275
3270
  }), (r == null ? void 0 : r[(r == null ? void 0 : r.length) - 1]) === "/" && (r = r + ((x = (u = Hn == null ? void 0 : Hn.value) == null ? void 0 : u[0]) == null ? void 0 : x.value));
3276
3271
  const t = await Rn(r, sessionStorage.getItem("systemKey"), "", !1, [], !1, void 0);
3277
3272
  return t || await Rn(n, sessionStorage.getItem("systemKey"), "", !1, [], !1, void 0);
3278
- }, cS = (e) => e.entries().next().done, lS = async (e) => {
3273
+ }, fS = (e) => e.entries().next().done, cS = async (e) => {
3279
3274
  var n, t, i;
3280
3275
  const a = await ix(e);
3281
3276
  let r = [];
3282
3277
  return ((n = a == null ? void 0 : a.data) == null ? void 0 : n.type) === "success" && (r = (i = (t = a.data.result) == null ? void 0 : t.map((s) => s.value.pageData)) == null ? void 0 : i.filter((s) => (s == null ? void 0 : s.comp) === "Table"), r = r == null ? void 0 : r.map((s) => nx(s))), r;
3283
- }, oS = [
3278
+ }, lS = [
3284
3279
  {
3285
3280
  key: "单选",
3286
3281
  value: "Select"
@@ -3569,7 +3564,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
3569
3564
  type: "Select",
3570
3565
  options: O0
3571
3566
  }
3572
- ], uS = [
3567
+ ], oS = [
3573
3568
  {
3574
3569
  key: "Input",
3575
3570
  value: sx
@@ -3623,7 +3618,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
3623
3618
  value: "delete",
3624
3619
  label: "删除"
3625
3620
  }
3626
- ], hS = [
3621
+ ], uS = [
3627
3622
  {
3628
3623
  key: "label",
3629
3624
  label: "按钮名",
@@ -3640,7 +3635,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
3640
3635
  label: "颜色",
3641
3636
  type: "Color"
3642
3637
  }
3643
- ], xS = (e) => {
3638
+ ], hS = (e) => {
3644
3639
  var r, n, t, i, s, f, l, c;
3645
3640
  let a = ae(e);
3646
3641
  if (((r = a == null ? void 0 : a.find((o) => (o == null ? void 0 : o.name) === "类型")) == null ? void 0 : r.type) === "Select" && ((i = (t = (n = ae(a)) == null ? void 0 : n.find((o) => (o == null ? void 0 : o.name) === "选项值")) == null ? void 0 : t.value) == null ? void 0 : i.length) > 0) {
@@ -3651,7 +3646,7 @@ const U1 = Uf(Mr), { multipleTableConst: $c } = Gr(U1), W1 = I0(Mr), { loginUser
3651
3646
  a = a == null ? void 0 : a.map((u) => ((u == null ? void 0 : u.name) === "初始值" && (u.contents = o, u.value = (u == null ? void 0 : u.value) ?? ""), u));
3652
3647
  }
3653
3648
  return a;
3654
- }, dS = async (e) => {
3649
+ }, xS = async (e) => {
3655
3650
  var i, s, f, l;
3656
3651
  let a = ae(e);
3657
3652
  const r = (i = e == null ? void 0 : e.find((c) => (c == null ? void 0 : c.name) === "下拉绑定类型")) == null ? void 0 : i.value, n = (s = e == null ? void 0 : e.find((c) => (c == null ? void 0 : c.name) === "类型")) == null ? void 0 : s.value, t = await cx();
@@ -27969,7 +27964,7 @@ function sT(e) {
27969
27964
  r.match(/^\.[a-z]+$/) && (e.bookType = r.slice(1)), e.bookType = a[e.bookType] || e.bookType;
27970
27965
  }
27971
27966
  }
27972
- function pS(e, a, r) {
27967
+ function dS(e, a, r) {
27973
27968
  var n = {};
27974
27969
  return n.type = "file", n.file = a, sT(n), Ih(e, n);
27975
27970
  }
@@ -28223,7 +28218,7 @@ function mT(e, a, r, n) {
28223
28218
  }
28224
28219
  return e;
28225
28220
  }
28226
- var mS = {
28221
+ var pS = {
28227
28222
  encode_col: _a,
28228
28223
  encode_row: ba,
28229
28224
  encode_cell: tr,
@@ -28262,20 +28257,20 @@ var mS = {
28262
28257
  SHEET_VERY_HIDDEN: 2
28263
28258
  }
28264
28259
  };
28265
- const gT = b0(Mr), { originalPath: vT } = gT, gS = (e) => {
28260
+ const gT = b0(Mr), { originalPath: vT } = gT, mS = (e) => {
28266
28261
  var f, l;
28267
28262
  const a = e == null ? void 0 : e.compData, r = (f = a == null ? void 0 : a.find((c) => (c == null ? void 0 : c.key) === "header")) == null ? void 0 : f.contents, n = r == null ? void 0 : r.findIndex((c, o) => {
28268
28263
  const { isMainKey: u } = c;
28269
28264
  return u;
28270
28265
  }), t = (l = a == null ? void 0 : a.find((c) => (c == null ? void 0 : c.key) === "tableContents")) == null ? void 0 : l.contents, i = t == null ? void 0 : t.map((c) => (c = c == null ? void 0 : c.filter((o) => !(o != null && o.id)), c));
28271
28266
  return i == null ? void 0 : i.map((c) => c == null ? void 0 : c[n]);
28272
- }, vS = async (e, a) => {
28267
+ }, gS = async (e, a) => {
28273
28268
  const r = e.join("/"), n = sessionStorage.getItem("systemKey");
28274
28269
  return await Rn(`${r}${vT}${a}`, n, "");
28275
- }, _S = {
28270
+ }, vS = {
28276
28271
  TABLE: "Table",
28277
28272
  FORM: "Form"
28278
- }, yS = (e, a) => a == null ? void 0 : a.find((n) => {
28273
+ }, _S = (e, a) => a == null ? void 0 : a.find((n) => {
28279
28274
  const { name: t } = n;
28280
28275
  return t === e;
28281
28276
  }), _T = (e, a = "") => {
@@ -28292,68 +28287,67 @@ const gT = b0(Mr), { originalPath: vT } = gT, gS = (e) => {
28292
28287
  r.push(...s);
28293
28288
  }
28294
28289
  return r;
28295
- }, kS = (e, a) => !e || !e.length ? [] : e.filter((n) => {
28290
+ }, yS = (e, a) => !e || !e.length ? [] : e.filter((n) => {
28296
28291
  const { comp: t } = n;
28297
28292
  return t === a;
28298
28293
  });
28299
28294
  export {
28300
- hS as $,
28301
- vS as A,
28302
- NT as B,
28303
- AT as C,
28304
- PT as D,
28305
- DT as E,
28306
- Pc as F,
28307
- bT as G,
28308
- CT as H,
28309
- RT as I,
28310
- yf as J,
28311
- ix as K,
28312
- OT as L,
28313
- tS as M,
28314
- Uf as N,
28315
- nS as O,
28316
- X0 as P,
28295
+ LT as $,
28296
+ NT as A,
28297
+ AT as B,
28298
+ PT as C,
28299
+ DT as D,
28300
+ Pc as E,
28301
+ bT as F,
28302
+ CT as G,
28303
+ RT as H,
28304
+ yf as I,
28305
+ ix as J,
28306
+ OT as K,
28307
+ aS as L,
28308
+ Uf as M,
28309
+ tS as N,
28310
+ X0 as O,
28311
+ nS as P,
28317
28312
  iS as Q,
28318
- sS as R,
28319
- cS as S,
28320
- WT as T,
28321
- oS as U,
28322
- tn as V,
28323
- mx as W,
28324
- uS as X,
28325
- lS as Y,
28326
- dS as Z,
28327
- xS as _,
28328
- LT as a,
28329
- UT as a0,
28330
- ZT as a1,
28331
- HT as a2,
28332
- Eo as a3,
28333
- VT as a4,
28334
- MT as b,
28335
- JT as c,
28336
- Rn as d,
28337
- V0 as e,
28338
- ST as f,
28313
+ fS as R,
28314
+ UT as S,
28315
+ lS as T,
28316
+ tn as U,
28317
+ mx as V,
28318
+ oS as W,
28319
+ cS as X,
28320
+ xS as Y,
28321
+ hS as Z,
28322
+ uS as _,
28323
+ BT as a,
28324
+ qT as a0,
28325
+ WT as a1,
28326
+ Eo as a2,
28327
+ zT as a3,
28328
+ YT as b,
28329
+ Rn as c,
28330
+ V0 as d,
28331
+ ST as e,
28332
+ FT as f,
28339
28333
  On as g,
28340
- FT as h,
28341
- aS as i,
28342
- jT as j,
28343
- mS as k,
28334
+ rS as h,
28335
+ VT as i,
28336
+ pS as j,
28337
+ Mh as k,
28344
28338
  go as l,
28345
- Mh as m,
28346
- fS as n,
28347
- qT as o,
28348
- _S as p,
28349
- _T as q,
28339
+ vS as m,
28340
+ sS as n,
28341
+ JT as o,
28342
+ _T as p,
28343
+ yS as q,
28350
28344
  ao as r,
28351
28345
  IT as s,
28352
28346
  Rc as t,
28353
28347
  b0 as u,
28354
- BT as v,
28355
- pS as w,
28356
- kS as x,
28357
- yS as y,
28348
+ MT as v,
28349
+ dS as w,
28350
+ _S as x,
28351
+ mS as y,
28358
28352
  gS as z
28359
28353
  };
@@ -1,19 +1,19 @@
1
1
  import { defineAsyncComponent as yt, computed as we, onMounted as Ne, resolveComponent as N, createBlock as Le, openBlock as F, withCtx as q, resolveDynamicComponent as Qe, defineComponent as gt, defineProps as Ct, ref as O, watch as Re, reactive as kt, nextTick as _t, createElementBlock as K, Fragment as Be, createVNode as $, createCommentVNode as Te, normalizeStyle as Dt, toDisplayString as Ke, createElementVNode as Me, renderList as $e, createTextVNode as ze } from "vue";
2
2
  import { u as It, a as St, p as xe, b as bt, s as Ee, c as je, v as Fe } from "./index-BK-oz1IK.js";
3
3
  import { S as Tt } from "./index-BHtNKL1L.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-MobFDuC8.js";
5
5
  import { I as Mt } from "./request-XJsZ4h2T.js";
6
6
  import { s as wt } from "./index-11kpzK0A.js";
7
- import { c as ut } from "./index-7G04es6G.js";
7
+ import { c as ut } from "./index-CuuYyKIw.js";
8
8
  import { useRouter as At } from "vue-router";
9
9
  import { a as Bt, e as Et, f as Ft, g as Lt, h as Ut } from "./index-ChNfRlIP.js";
10
10
  import { g as qe, u as jt, b as Je, c as Pt, a as Ot } from "./index-DUq4XELr.js";
11
- import { g as Rt } from "./index-DFLr3nfs.js";
11
+ import { g as Rt } from "./index-C5mNmuca.js";
12
12
  import { f as Kt } from "./menuIndex-CPrSvY9F.js";
13
- import { d as We, e as Ge, n as $t } from "./index-5zBx2xab.js";
14
- import { u as zt } from "./index-aaiRLVcp.js";
13
+ import { c as We, d as Ge, n as $t } from "./index-BF5SUWUn.js";
14
+ import { u as zt } from "./index-BTgKT-Kp.js";
15
15
  import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const Ue = yt(() => import("./index-7G04es6G.js").then((i) => i.p));
16
+ const Ue = yt(() => import("./index-CuuYyKIw.js").then((i) => i.p));
17
17
  Ue.install = (i) => {
18
18
  i.component("ssMenu", Ue);
19
19
  };
@@ -1,5 +1,5 @@
1
1
  import { watch as be, ref as w, computed as we } from "vue";
2
- import { p as E, k as B, w as Le } from "./index-5zBx2xab.js";
2
+ import { m as E, j as B, w as Le } from "./index-BF5SUWUn.js";
3
3
  import { s as Te, b as C, p as V, u as Re, r as De, c as A, C as N, E as Ee, j as Be, ae as Ae, af as Pe, ag as Ue, ah as xe, ai as Se, aj as ke } from "./index-BK-oz1IK.js";
4
4
  import { s as z } from "./request-XJsZ4h2T.js";
5
5
  const qe = C(V), { systemUrl: f } = Te(qe);
@@ -72,14 +72,14 @@ const Ve = (s) => {
72
72
  TABLE: {
73
73
  value: "Table"
74
74
  }
75
- }, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
75
+ }, je = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
76
76
  const s = C(), r = Re(V), { isSuperAdmin: i, userId: L, userName: h, platId: c } = De(), u = w([]), I = (t) => {
77
77
  const { propertyType: e } = t || {};
78
78
  return e === ze.TABLE.value;
79
- }, g = w({}), O = we(() => {
79
+ }, g = w({}), j = we(() => {
80
80
  var e;
81
81
  return i.value ? !0 : ((e = g.value) == null ? void 0 : e.status) === d.EDITABLE.value;
82
- }), j = (t) => {
82
+ }), O = (t) => {
83
83
  var o, l;
84
84
  const e = N(Date.now()), { id: a = 0 } = s.loginUserInfo || {}, n = A(t);
85
85
  return n.update_user_id = a, n.update_user_name = h.value, n.update_time = e, n.checked_ids = ((l = (o = n == null ? void 0 : n.main_ids) == null ? void 0 : o.map) == null ? void 0 : l.call(o, (p) => {
@@ -140,7 +140,7 @@ const Ve = (s) => {
140
140
  l.main_ids = Ie, l.checked_ids = v.map((D) => D.id), l.params = G(v);
141
141
  }
142
142
  if (t) {
143
- const v = j(t);
143
+ const v = O(t);
144
144
  l = {
145
145
  ...l,
146
146
  ...v
@@ -250,7 +250,7 @@ const Ve = (s) => {
250
250
  return (a == null ? void 0 : a.tag) || "info";
251
251
  }, R = (t) => t === d.EDITABLE.value, ue = (t, e) => {
252
252
  const { status: a } = t || {}, { tableOperate: n } = e || {};
253
- return !!(R(a) || n && Oe.includes(n));
253
+ return !!(R(a) || n && je.includes(n));
254
254
  }, pe = (t, e) => {
255
255
  const { status: a } = t || {};
256
256
  return R(a);
@@ -321,7 +321,7 @@ const Ve = (s) => {
321
321
  getFeatureStatusTagByValue: ie,
322
322
  hasEditable: de,
323
323
  initRoleConfig: fe,
324
- hasRoleEditAuth: O,
324
+ hasRoleEditAuth: j,
325
325
  buildParamAuthTree: q,
326
326
  initImport: ye,
327
327
  initExport: _e,
@@ -1,5 +1,5 @@
1
1
  import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
2
- import { a2 as _ } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js";
2
+ import { a2 as _ } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-MobFDuC8.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const z = {
5
5
  __name: "index",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BI1HZ_pA.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-zKgQ0JKd.cjs");require("./index-BMofVGXk.cjs");const _=require("./index-xN3pvlzo.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-JEFalyAE.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-87Te47Zq.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-CzELqSBx.cjs");require("./index-B9MP9Z_h.cjs");const _=require("./index-xN3pvlzo.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
@@ -1,5 +1,5 @@
1
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-DCm5o7Nl.js";
2
+ import { s as b } from "./index-BYR89prk.js";
3
3
  import { c as s } from "./index-BK-oz1IK.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = (t, n, a) => {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
2
  import { u as h, p as k, s as x, c as m } from "./index-BK-oz1IK.js";
3
- import { W as M } from "./index-DFLr3nfs.js";
3
+ import { W as M } from "./index-C5mNmuca.js";
4
4
  import { a as D, d as T, f as S } from "./index-BmZwVwZC.js";
5
5
  import { g as w } from "./index-DUq4XELr.js";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs"),a=require("./request-Dl8yi2iS.cjs"),k=require("./index-xN3pvlzo.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O="ElUpload";class B extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new B(i,l.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(R(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))k.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},U=["text","picture","picture-card"];let D=1;const L=()=>Date.now()+D++,F=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:U,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number});a.buildProps({...F,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}});const j={style:{"text-align":"left"}},q={class:"cropper-warp"},A={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new I.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),x=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},E=s=>{p.value.clearFiles();const n=s[0];n.uid=L(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),P=e.resolveComponent("el-upload"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(V,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=S=>t.isShowDialog=S),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(P,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),b=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(b,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),N=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));exports.Avatar=N;exports.CropperDialog=b;exports.index=Z;
1
+ "use strict";const e=require("vue"),I=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-87Te47Zq.cjs"),a=require("./request-Dl8yi2iS.cjs"),k=require("./index-xN3pvlzo.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O="ElUpload";class B extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new B(i,l.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(R(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))k.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},U=["text","picture","picture-card"];let D=1;const L=()=>Date.now()+D++,F=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:U,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number});a.buildProps({...F,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}});const j={style:{"text-align":"left"}},q={class:"cropper-warp"},A={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new I.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),x=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},E=s=>{p.value.clearFiles();const n=s[0];n.uid=L(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),P=e.resolveComponent("el-upload"),V=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(V,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=S=>t.isShowDialog=S),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(P,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",q,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),b=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(b,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),N=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));exports.Avatar=N;exports.CropperDialog=b;exports.index=Z;