cd-form 2.0.13 → 2.0.15

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.
package/dist/cd-form.js CHANGED
@@ -255,13 +255,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
255
255
  e("span", null, V(a.signature), 1)
256
256
  ])) : H("", !0),
257
257
  a.tags && a.tags.length > 0 ? (l(), o("div", gt, [
258
- (l(!0), o(fe, null, ye(u.value, (G) => (l(), Y(q, {
259
- key: G,
258
+ (l(!0), o(fe, null, ye(u.value, (K) => (l(), Y(q, {
259
+ key: K,
260
260
  size: "small",
261
261
  variant: "light"
262
262
  }, {
263
263
  default: i(() => [
264
- U(V(G), 1)
264
+ U(V(K), 1)
265
265
  ]),
266
266
  _: 2
267
267
  }, 1024))), 128)),
@@ -309,7 +309,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
309
309
  }), O = F({
310
310
  left: 0,
311
311
  top: 0
312
- }), D = F(!1), L = F(!1), ee = F(""), q = F({ x: 0, y: 0 }), G = F({ x: 0, y: 0, width: 0, height: 0 });
312
+ }), D = F(!1), L = F(!1), ee = F(""), q = F({ x: 0, y: 0 }), K = F({ x: 0, y: 0, width: 0, height: 0 });
313
313
  Fe(() => n.visible, (y) => {
314
314
  u.value = y, y && na(() => {
315
315
  d();
@@ -322,7 +322,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
322
322
  top: `${C.value.y}px`,
323
323
  width: `${C.value.width}px`,
324
324
  height: `${C.value.height}px`
325
- })), K = ve(() => ({
325
+ })), G = ve(() => ({
326
326
  width: `${r.value.width}px`,
327
327
  height: `${r.value.height}px`,
328
328
  left: `${O.value.left}px`,
@@ -345,9 +345,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
345
345
  };
346
346
  }), W = () => {
347
347
  if (!c.value || !m.value) return;
348
- const y = c.value, z = m.value, re = z.offsetWidth, E = z.offsetHeight, B = y.naturalWidth / y.naturalHeight, Q = re / E;
348
+ const y = c.value, z = m.value, re = z.offsetWidth, E = z.offsetHeight, N = y.naturalWidth / y.naturalHeight, X = re / E;
349
349
  let te, $;
350
- B > Q ? (te = re, $ = re / B) : ($ = E, te = E * B), r.value = {
350
+ N > X ? (te = re, $ = re / N) : ($ = E, te = E * N), r.value = {
351
351
  width: te,
352
352
  height: $,
353
353
  naturalWidth: y.naturalWidth,
@@ -366,24 +366,24 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
366
366
  height: y
367
367
  }, ue();
368
368
  }, S = (y) => {
369
- D.value = !0, q.value = { x: y.clientX, y: y.clientY }, G.value = { ...C.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", P);
369
+ D.value = !0, q.value = { x: y.clientX, y: y.clientY }, K.value = { ...C.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", P);
370
370
  }, g = (y) => {
371
371
  if (D.value) {
372
372
  const z = y.clientX - q.value.x, re = y.clientY - q.value.y;
373
- let E = G.value.x + z, B = G.value.y + re;
374
- E = Math.max(0, Math.min(E, r.value.width - C.value.width)), B = Math.max(0, Math.min(B, r.value.height - C.value.height)), C.value.x = E, C.value.y = B, ue();
373
+ let E = K.value.x + z, N = K.value.y + re;
374
+ E = Math.max(0, Math.min(E, r.value.width - C.value.width)), N = Math.max(0, Math.min(N, r.value.height - C.value.height)), C.value.x = E, C.value.y = N, ue();
375
375
  } else L.value && de(y);
376
376
  }, P = () => {
377
377
  D.value = !1, L.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", P);
378
378
  }, T = (y, z) => {
379
- L.value = !0, ee.value = z, q.value = { x: y.clientX, y: y.clientY }, G.value = { ...C.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", P);
379
+ L.value = !0, ee.value = z, q.value = { x: y.clientX, y: y.clientY }, K.value = { ...C.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", P);
380
380
  }, de = (y) => {
381
381
  const z = y.clientX - q.value.x, re = y.clientY - q.value.y, E = ee.value;
382
- let B = { ...G.value };
383
- const Q = Math.max(Math.abs(z), Math.abs(re)) * (z < 0 || re < 0 ? -1 : 1);
384
- E.includes("n") && (B.y = G.value.y + Q, B.height = G.value.height - Q), E.includes("s") && (B.height = G.value.height + Q), E.includes("w") && (B.x = G.value.x + Q, B.width = G.value.width - Q), E.includes("e") && (B.width = G.value.width + Q);
385
- const te = Math.max(50, Math.min(B.width, B.height));
386
- E.includes("n") && (B.y = G.value.y + G.value.height - te), E.includes("w") && (B.x = G.value.x + G.value.width - te), B.width = te, B.height = te, B.x = Math.max(0, Math.min(B.x, r.value.width - B.width)), B.y = Math.max(0, Math.min(B.y, r.value.height - B.height)), C.value = B, ue();
382
+ let N = { ...K.value };
383
+ const X = Math.max(Math.abs(z), Math.abs(re)) * (z < 0 || re < 0 ? -1 : 1);
384
+ E.includes("n") && (N.y = K.value.y + X, N.height = K.value.height - X), E.includes("s") && (N.height = K.value.height + X), E.includes("w") && (N.x = K.value.x + X, N.width = K.value.width - X), E.includes("e") && (N.width = K.value.width + X);
385
+ const te = Math.max(50, Math.min(N.width, N.height));
386
+ E.includes("n") && (N.y = K.value.y + K.value.height - te), E.includes("w") && (N.x = K.value.x + K.value.width - te), N.width = te, N.height = te, N.x = Math.max(0, Math.min(N.x, r.value.width - N.width)), N.y = Math.max(0, Math.min(N.y, r.value.height - N.height)), C.value = N, ue();
387
387
  }, ue = () => {
388
388
  if (!_.value || !c.value) return;
389
389
  const z = _.value.getContext("2d");
@@ -417,8 +417,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
417
417
  0,
418
418
  z,
419
419
  z
420
- ), y.toBlob((B) => {
421
- B && (b("confirm", B), u.value = !1);
420
+ ), y.toBlob((N) => {
421
+ N && (b("confirm", N), u.value = !1);
422
422
  }, "image/jpeg", 0.9);
423
423
  }, w = () => {
424
424
  b("cancel");
@@ -427,7 +427,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
427
427
  const re = M("t-button"), E = M("t-dialog");
428
428
  return l(), Y(E, {
429
429
  visible: u.value,
430
- "onUpdate:visible": z[10] || (z[10] = (B) => u.value = B),
430
+ "onUpdate:visible": z[10] || (z[10] = (N) => u.value = N),
431
431
  header: "裁剪头像",
432
432
  width: 500,
433
433
  footer: !1,
@@ -444,7 +444,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
444
444
  class: "image-wrapper",
445
445
  ref_key: "imageWrapperRef",
446
446
  ref: R,
447
- style: Qe(K.value)
447
+ style: Qe(G.value)
448
448
  }, [
449
449
  e("img", {
450
450
  ref_key: "imageRef",
@@ -488,35 +488,35 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
488
488
  ], -1)),
489
489
  e("div", {
490
490
  class: "resize-handle handle-nw",
491
- onMousedown: z[2] || (z[2] = Ze((B) => T(B, "nw"), ["stop"]))
491
+ onMousedown: z[2] || (z[2] = Ze((N) => T(N, "nw"), ["stop"]))
492
492
  }, null, 32),
493
493
  e("div", {
494
494
  class: "resize-handle handle-n",
495
- onMousedown: z[3] || (z[3] = Ze((B) => T(B, "n"), ["stop"]))
495
+ onMousedown: z[3] || (z[3] = Ze((N) => T(N, "n"), ["stop"]))
496
496
  }, null, 32),
497
497
  e("div", {
498
498
  class: "resize-handle handle-ne",
499
- onMousedown: z[4] || (z[4] = Ze((B) => T(B, "ne"), ["stop"]))
499
+ onMousedown: z[4] || (z[4] = Ze((N) => T(N, "ne"), ["stop"]))
500
500
  }, null, 32),
501
501
  e("div", {
502
502
  class: "resize-handle handle-e",
503
- onMousedown: z[5] || (z[5] = Ze((B) => T(B, "e"), ["stop"]))
503
+ onMousedown: z[5] || (z[5] = Ze((N) => T(N, "e"), ["stop"]))
504
504
  }, null, 32),
505
505
  e("div", {
506
506
  class: "resize-handle handle-se",
507
- onMousedown: z[6] || (z[6] = Ze((B) => T(B, "se"), ["stop"]))
507
+ onMousedown: z[6] || (z[6] = Ze((N) => T(N, "se"), ["stop"]))
508
508
  }, null, 32),
509
509
  e("div", {
510
510
  class: "resize-handle handle-s",
511
- onMousedown: z[7] || (z[7] = Ze((B) => T(B, "s"), ["stop"]))
511
+ onMousedown: z[7] || (z[7] = Ze((N) => T(N, "s"), ["stop"]))
512
512
  }, null, 32),
513
513
  e("div", {
514
514
  class: "resize-handle handle-sw",
515
- onMousedown: z[8] || (z[8] = Ze((B) => T(B, "sw"), ["stop"]))
515
+ onMousedown: z[8] || (z[8] = Ze((N) => T(N, "sw"), ["stop"]))
516
516
  }, null, 32),
517
517
  e("div", {
518
518
  class: "resize-handle handle-w",
519
- onMousedown: z[9] || (z[9] = Ze((B) => T(B, "w"), ["stop"]))
519
+ onMousedown: z[9] || (z[9] = Ze((N) => T(N, "w"), ["stop"]))
520
520
  }, null, 32)
521
521
  ], 36)
522
522
  ], 4)
@@ -620,7 +620,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
620
620
  }, ee = (W) => {
621
621
  const d = new File([W], "avatar.jpg", { type: "image/jpeg" });
622
622
  b("avatar-upload", d);
623
- }, q = ve(() => ({ online: "success", offline: "default", busy: "danger", away: "warning" })[n.modelValue.status || "online"]), G = ve(() => ({ online: "ri-checkbox-circle-fill", offline: "ri-checkbox-blank-circle-line", busy: "ri-forbid-line", away: "ri-time-line" })[n.modelValue.status || "online"]), ge = ve(() => ({ online: "在线", offline: "离线", busy: "忙碌", away: "离开" })[n.modelValue.status || "online"]), K = ve(() => (n.modelValue.displayName || "").charAt(0).toUpperCase()), A = ve(() => {
623
+ }, q = ve(() => ({ online: "success", offline: "default", busy: "danger", away: "warning" })[n.modelValue.status || "online"]), K = ve(() => ({ online: "ri-checkbox-circle-fill", offline: "ri-checkbox-blank-circle-line", busy: "ri-forbid-line", away: "ri-time-line" })[n.modelValue.status || "online"]), ge = ve(() => ({ online: "在线", offline: "离线", busy: "忙碌", away: "离开" })[n.modelValue.status || "online"]), G = ve(() => (n.modelValue.displayName || "").charAt(0).toUpperCase()), A = ve(() => {
624
624
  const W = [
625
625
  "#1890ff",
626
626
  "#52c41a",
@@ -657,7 +657,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
657
657
  key: 1,
658
658
  class: "profile__avatar profile__avatar-placeholder",
659
659
  style: Qe({ backgroundColor: A.value })
660
- }, V(K.value), 5)),
660
+ }, V(G.value), 5)),
661
661
  a.inlineEdit ? (l(), o("div", {
662
662
  key: 2,
663
663
  class: "profile__avatar-edit",
@@ -708,7 +708,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
708
708
  }, {
709
709
  default: i(() => [
710
710
  e("i", {
711
- class: $e(G.value)
711
+ class: $e(K.value)
712
712
  }, null, 2),
713
713
  U(" " + V(ge.value), 1)
714
714
  ]),
@@ -1011,13 +1011,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1011
1011
  setup(a, { emit: le }) {
1012
1012
  const n = a, b = le, u = F(!1), c = F(!1), m = F("profile"), R = F(!1), _ = F(n.status), C = ve(() => _.value === "dnd" ? "status-badge--dnd" : _.value === "mute" ? "status-badge--mute" : "status-badge--online"), r = ve(() => _.value === "dnd" ? "请勿打扰" : _.value === "mute" ? "静音" : "在线"), O = ve(() => n.profileData ? (n.profileData.displayName || "").charAt(0).toUpperCase() : ""), D = ve(() => n.theme === "light" ? "#ffffff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), L = ve(() => n.theme !== "light" ? "#fff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), ee = ve(() => getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), q = () => {
1013
1013
  R.value = !R.value;
1014
- }, G = (g) => {
1014
+ }, K = (g) => {
1015
1015
  _.value = g, R.value = !1, b("status-change", g);
1016
1016
  }, ge = () => {
1017
1017
  m.value = "profile", c.value = !0, setTimeout(() => {
1018
1018
  u.value = !1;
1019
1019
  }, 100);
1020
- }, K = (g) => {
1020
+ }, G = (g) => {
1021
1021
  u.value = !1, g.panel && (m.value = g.panel, c.value = !0), b("menu-click", g);
1022
1022
  }, A = (g) => {
1023
1023
  m.value = g.key;
@@ -1071,19 +1071,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1071
1071
  ha(e("div", hn, [
1072
1072
  e("div", {
1073
1073
  class: "cd-usercard-status-option cd-usercard-status-badge--online",
1074
- onClick: P[0] || (P[0] = (j) => G("online"))
1074
+ onClick: P[0] || (P[0] = (j) => K("online"))
1075
1075
  }, [...P[6] || (P[6] = [
1076
1076
  e("span", null, "在线", -1)
1077
1077
  ])]),
1078
1078
  e("div", {
1079
1079
  class: "cd-usercard-status-option cd-usercard-status-badge--dnd",
1080
- onClick: P[1] || (P[1] = (j) => G("dnd"))
1080
+ onClick: P[1] || (P[1] = (j) => K("dnd"))
1081
1081
  }, [...P[7] || (P[7] = [
1082
1082
  e("span", null, "请勿打扰", -1)
1083
1083
  ])]),
1084
1084
  e("div", {
1085
1085
  class: "cd-usercard-status-option cd-usercard-status-badge--mute",
1086
- onClick: P[2] || (P[2] = (j) => G("mute"))
1086
+ onClick: P[2] || (P[2] = (j) => K("mute"))
1087
1087
  }, [...P[8] || (P[8] = [
1088
1088
  e("span", null, "静音", -1)
1089
1089
  ])])
@@ -1100,7 +1100,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1100
1100
  (l(!0), o(fe, null, ye(a.menuItems, (j) => (l(), o("div", {
1101
1101
  key: j.key,
1102
1102
  class: "cd-usercard-menu-item",
1103
- onClick: (w) => K(j)
1103
+ onClick: (w) => G(j)
1104
1104
  }, [
1105
1105
  e("i", {
1106
1106
  class: $e(j.icon)
@@ -1214,20 +1214,20 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1214
1214
  emits: ["update:visible", "update:modelValue", "confirm", "load-users", "search", "org-change"],
1215
1215
  setup(a, { expose: le, emit: n }) {
1216
1216
  var b, u;
1217
- const c = a, m = n, R = F(c.visible), _ = F(((u = (b = c.tabs) == null ? void 0 : b[0]) == null ? void 0 : u.key) || ""), C = F(null), r = F(""), O = F([]), D = F(/* @__PURE__ */ new Map()), L = F({}), ee = F(!1), q = F(!1), G = F([]), ge = ve(() => c.tabs || []), K = ve(() => c.organizations || []), A = ve(() => c.tips || ""), W = ve(() => c.showSearch), d = ve(() => c.showOrg), S = ve(() => c.dialogWidth), g = F({});
1217
+ const c = a, m = n, R = F(c.visible), _ = F(((u = (b = c.tabs) == null ? void 0 : b[0]) == null ? void 0 : u.key) || ""), C = F(null), r = F(""), O = F([]), D = F(/* @__PURE__ */ new Map()), L = F({}), ee = F(!1), q = F(!1), K = F([]), ge = ve(() => c.tabs || []), G = ve(() => c.organizations || []), A = ve(() => c.tips || ""), W = ve(() => c.showSearch), d = ve(() => c.showOrg), S = ve(() => c.dialogWidth), g = F({});
1218
1218
  Fe(() => c.tabs, (ce) => {
1219
1219
  if (ce && ce.length > 0) {
1220
- const N = {};
1220
+ const B = {};
1221
1221
  ce.forEach((h) => {
1222
- N[h.key] = JSON.parse(JSON.stringify(h.tree));
1223
- }), g.value = N, (!_.value || !ce.find((h) => h.key === _.value)) && (_.value = ce[0].key);
1222
+ B[h.key] = JSON.parse(JSON.stringify(h.tree));
1223
+ }), g.value = B, (!_.value || !ce.find((h) => h.key === _.value)) && (_.value = ce[0].key);
1224
1224
  }
1225
1225
  }, { immediate: !0, deep: !0 });
1226
1226
  function P() {
1227
1227
  if (c.modelValue && c.modelValue.length > 0) {
1228
1228
  const ce = c.modelValue[0];
1229
- typeof ce == "object" && ce !== null && "id" in ce ? (O.value = c.modelValue.map((N) => N.id), D.value.clear(), c.modelValue.forEach((N) => {
1230
- D.value.set(N.id, N);
1229
+ typeof ce == "object" && ce !== null && "id" in ce ? (O.value = c.modelValue.map((B) => B.id), D.value.clear(), c.modelValue.forEach((B) => {
1230
+ D.value.set(B.id, B);
1231
1231
  })) : O.value = [...c.modelValue];
1232
1232
  } else
1233
1233
  O.value = [], D.value.clear();
@@ -1239,62 +1239,62 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1239
1239
  }), Fe(R, (ce) => {
1240
1240
  m("update:visible", ce);
1241
1241
  });
1242
- function T(ce, N) {
1243
- N && (L.value[ce] = N);
1242
+ function T(ce, B) {
1243
+ B && (L.value[ce] = B);
1244
1244
  }
1245
- function de(ce, N) {
1245
+ function de(ce, B) {
1246
1246
  for (const h of ce) {
1247
- if (h.id === N) return h;
1247
+ if (h.id === B) return h;
1248
1248
  if (h.children) {
1249
- const Me = de(h.children, N);
1249
+ const Me = de(h.children, B);
1250
1250
  if (Me) return Me;
1251
1251
  }
1252
1252
  }
1253
1253
  return null;
1254
1254
  }
1255
1255
  const ue = ve(() => O.value.map((ce) => D.value.get(ce)).filter(Boolean));
1256
- function j(ce, N) {
1257
- O.value.includes(ce) || O.value.push(ce), D.value.set(ce, N);
1256
+ function j(ce, B) {
1257
+ O.value.includes(ce) || O.value.push(ce), D.value.set(ce, B);
1258
1258
  }
1259
1259
  function w(ce) {
1260
- O.value = O.value.filter((N) => N !== ce), D.value.delete(ce);
1260
+ O.value = O.value.filter((B) => B !== ce), D.value.delete(ce);
1261
1261
  }
1262
1262
  const y = () => {
1263
1263
  r.value = "";
1264
1264
  }, z = (ce) => {
1265
- const N = {};
1265
+ const B = {};
1266
1266
  c.tabs.forEach((h) => {
1267
- N[h.key] = [];
1268
- }), g.value = N, m("org-change", ce);
1267
+ B[h.key] = [];
1268
+ }), g.value = B, m("org-change", ce);
1269
1269
  };
1270
1270
  let re = null;
1271
1271
  const E = () => {
1272
1272
  if (re && clearTimeout(re), !r.value.trim()) {
1273
- Q();
1273
+ X();
1274
1274
  return;
1275
1275
  }
1276
- ee.value = !0, q.value = !0, re = setTimeout(() => B(), 300);
1277
- }, B = () => {
1278
- G.value = [];
1279
- const ce = (N) => {
1280
- G.value = N.map((h) => ({ ...h, isUser: !0 })), q.value = !1;
1276
+ ee.value = !0, q.value = !0, re = setTimeout(() => N(), 300);
1277
+ }, N = () => {
1278
+ K.value = [];
1279
+ const ce = (B) => {
1280
+ K.value = B.map((h) => ({ ...h, isUser: !0 })), q.value = !1;
1281
1281
  };
1282
1282
  m("search", { keyword: r.value, orgId: C.value || void 0, callback: ce });
1283
- }, Q = () => {
1284
- re && (clearTimeout(re), re = null), ee.value = !1, r.value = "", G.value = [], q.value = !1;
1283
+ }, X = () => {
1284
+ re && (clearTimeout(re), re = null), ee.value = !1, r.value = "", K.value = [], q.value = !1;
1285
1285
  }, te = (ce) => {
1286
1286
  O.value.indexOf(ce.id) > -1 ? w(ce.id) : (c.multiple || (O.value = [], D.value.clear()), j(ce.id, { ...ce, isUser: !0, typeName: "搜索结果", orgId: C.value }), c.multiple || Ce());
1287
1287
  };
1288
1288
  function $(ce) {
1289
- const N = [], h = (Me) => {
1289
+ const B = [], h = (Me) => {
1290
1290
  for (const Ye of Me)
1291
- N.push(Ye.id), Ye.children && h(Ye.children);
1291
+ B.push(Ye.id), Ye.children && h(Ye.children);
1292
1292
  };
1293
- return h(ce), N;
1293
+ return h(ce), B;
1294
1294
  }
1295
- const I = (ce, N) => {
1295
+ const I = (ce, B) => {
1296
1296
  var h, Me;
1297
- const Ye = N == null ? void 0 : N.node;
1297
+ const Ye = B == null ? void 0 : B.node;
1298
1298
  if (Ye) {
1299
1299
  const De = Ye.value ?? ((h = Ye.data) == null ? void 0 : h.id);
1300
1300
  if (De !== void 0) {
@@ -1307,27 +1307,27 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1307
1307
  return;
1308
1308
  }
1309
1309
  }
1310
- const _e = g.value[_.value] || [], X = $(_e), ae = O.value.filter((De) => !X.includes(De));
1310
+ const _e = g.value[_.value] || [], Q = $(_e), ae = O.value.filter((De) => !Q.includes(De));
1311
1311
  O.value = [...ae, ...ce];
1312
1312
  };
1313
- function oe(ce, N, h) {
1313
+ function oe(ce, B, h) {
1314
1314
  for (const Me of ce) {
1315
- if (Me.id === N)
1315
+ if (Me.id === B)
1316
1316
  return Me.children = Me.children || [], Me.children.push(...h), Me.loaded = !0, !0;
1317
- if (Me.children && oe(Me.children, N, h))
1317
+ if (Me.children && oe(Me.children, B, h))
1318
1318
  return !0;
1319
1319
  }
1320
1320
  return !1;
1321
1321
  }
1322
- async function he(ce, N) {
1323
- const h = ce.value, Me = L.value[N];
1324
- m("load-users", { tabKey: N, nodeId: h, node: ce, callback: async (Ye) => {
1322
+ async function he(ce, B) {
1323
+ const h = ce.value, Me = L.value[B];
1324
+ m("load-users", { tabKey: B, nodeId: h, node: ce, callback: async (Ye) => {
1325
1325
  if (Ye.length > 0) {
1326
1326
  const _e = Ye.map((ae) => {
1327
1327
  const { id: De, name: Te, ...Se } = ae;
1328
1328
  return { ...Se, id: De, name: ae.displayName || Te, isUser: !0 };
1329
- }), X = g.value[N];
1330
- if (X && oe(X, h, _e), Me) {
1329
+ }), Q = g.value[B];
1330
+ if (Q && oe(Q, h, _e), Me) {
1331
1331
  Me.appendTo(h, _e), ce.data.loaded = !0, await na();
1332
1332
  try {
1333
1333
  Me.setItem(h, { expanded: !0 });
@@ -1336,10 +1336,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1336
1336
  }
1337
1337
  } else {
1338
1338
  ce.data.loaded = !0;
1339
- const _e = g.value[N];
1339
+ const _e = g.value[B];
1340
1340
  if (_e) {
1341
- const X = de(_e, h);
1342
- X && (X.loaded = !0);
1341
+ const Q = de(_e, h);
1342
+ Q && (Q.loaded = !0);
1343
1343
  }
1344
1344
  }
1345
1345
  } });
@@ -1355,21 +1355,21 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1355
1355
  };
1356
1356
  return le({
1357
1357
  clearSelection: Ee,
1358
- appendUsers: (ce, N, h) => {
1358
+ appendUsers: (ce, B, h) => {
1359
1359
  const Me = L.value[ce];
1360
1360
  if (Me && h.length > 0) {
1361
1361
  const Ye = h.map((_e) => {
1362
- const { id: X, name: ae, ...De } = _e;
1363
- return { ...De, id: X, name: _e.displayName || ae, isUser: !0 };
1362
+ const { id: Q, name: ae, ...De } = _e;
1363
+ return { ...De, id: Q, name: _e.displayName || ae, isUser: !0 };
1364
1364
  });
1365
- Me.appendTo(N, Ye);
1365
+ Me.appendTo(B, Ye);
1366
1366
  }
1367
1367
  }
1368
- }), (ce, N) => {
1369
- const h = M("t-icon"), Me = M("t-option"), Ye = M("t-select"), _e = M("t-input"), X = M("t-button"), ae = M("t-loading"), De = M("t-checkbox"), Te = M("t-tree"), Se = M("t-tab-panel"), Ue = M("t-tabs"), ra = M("t-dialog");
1368
+ }), (ce, B) => {
1369
+ const h = M("t-icon"), Me = M("t-option"), Ye = M("t-select"), _e = M("t-input"), Q = M("t-button"), ae = M("t-loading"), De = M("t-checkbox"), Te = M("t-tree"), Se = M("t-tab-panel"), Ue = M("t-tabs"), ra = M("t-dialog");
1370
1370
  return l(), Y(ra, {
1371
1371
  visible: R.value,
1372
- "onUpdate:visible": N[4] || (N[4] = (se) => R.value = se),
1372
+ "onUpdate:visible": B[4] || (B[4] = (se) => R.value = se),
1373
1373
  header: "选择人员",
1374
1374
  width: S.value,
1375
1375
  footer: !0,
@@ -1385,16 +1385,16 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1385
1385
  e("span", null, V(A.value), 1)
1386
1386
  ])) : H("", !0),
1387
1387
  W.value ? (l(), o("div", Mn, [
1388
- d.value && K.value.length > 0 ? (l(), o("div", zn, [
1388
+ d.value && G.value.length > 0 ? (l(), o("div", zn, [
1389
1389
  s(Ye, {
1390
1390
  modelValue: C.value,
1391
- "onUpdate:modelValue": N[0] || (N[0] = (se) => C.value = se),
1391
+ "onUpdate:modelValue": B[0] || (B[0] = (se) => C.value = se),
1392
1392
  placeholder: "选择组织",
1393
1393
  style: { width: "200px" },
1394
1394
  onChange: z
1395
1395
  }, {
1396
1396
  default: i(() => [
1397
- (l(!0), o(fe, null, ye(K.value, (se) => (l(), Y(Me, {
1397
+ (l(!0), o(fe, null, ye(G.value, (se) => (l(), Y(Me, {
1398
1398
  key: se.id,
1399
1399
  value: se.id,
1400
1400
  label: se.displayName || se.name
@@ -1406,11 +1406,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1406
1406
  e("div", Fn, [
1407
1407
  s(_e, {
1408
1408
  modelValue: r.value,
1409
- "onUpdate:modelValue": N[1] || (N[1] = (se) => r.value = se),
1409
+ "onUpdate:modelValue": B[1] || (B[1] = (se) => r.value = se),
1410
1410
  placeholder: "输入手机号/工号/姓名/部门/职位搜索",
1411
1411
  clearable: "",
1412
1412
  onInput: E,
1413
- onClear: Q
1413
+ onClear: X
1414
1414
  }, {
1415
1415
  "prefix-icon": i(() => [
1416
1416
  s(h, { name: "search" })
@@ -1423,13 +1423,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1423
1423
  e("div", An, [
1424
1424
  ee.value ? (l(), o("div", Un, [
1425
1425
  e("div", Rn, [
1426
- N[6] || (N[6] = e("span", null, "搜索结果", -1)),
1427
- s(X, {
1426
+ B[6] || (B[6] = e("span", null, "搜索结果", -1)),
1427
+ s(Q, {
1428
1428
  size: "small",
1429
1429
  variant: "text",
1430
- onClick: Q
1430
+ onClick: X
1431
1431
  }, {
1432
- default: i(() => [...N[5] || (N[5] = [
1432
+ default: i(() => [...B[5] || (B[5] = [
1433
1433
  U("返回", -1)
1434
1434
  ])]),
1435
1435
  _: 1
@@ -1437,23 +1437,23 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1437
1437
  ]),
1438
1438
  q.value ? (l(), o("div", En, [
1439
1439
  s(ae),
1440
- N[7] || (N[7] = e("span", null, "搜索中...", -1))
1441
- ])) : G.value.length === 0 ? (l(), o("div", Pn, [
1440
+ B[7] || (B[7] = e("span", null, "搜索中...", -1))
1441
+ ])) : K.value.length === 0 ? (l(), o("div", Pn, [
1442
1442
  s(h, {
1443
1443
  name: "search",
1444
1444
  size: "48px",
1445
1445
  style: { color: "#ddd" }
1446
1446
  }),
1447
- N[8] || (N[8] = e("p", null, "未找到匹配的人员", -1))
1447
+ B[8] || (B[8] = e("p", null, "未找到匹配的人员", -1))
1448
1448
  ])) : (l(), o("div", In, [
1449
- (l(!0), o(fe, null, ye(G.value, (se) => (l(), o("div", {
1449
+ (l(!0), o(fe, null, ye(K.value, (se) => (l(), o("div", {
1450
1450
  key: se.id,
1451
1451
  class: $e(["cd-ps-result-item", { "cd-ps-selected": O.value.includes(se.id) }]),
1452
1452
  onClick: (ia) => te(se)
1453
1453
  }, [
1454
1454
  s(De, {
1455
1455
  checked: O.value.includes(se.id),
1456
- onClick: N[2] || (N[2] = Ze(() => {
1456
+ onClick: B[2] || (B[2] = Ze(() => {
1457
1457
  }, ["stop"]))
1458
1458
  }, null, 8, ["checked"]),
1459
1459
  e("div", Tn, [
@@ -1472,7 +1472,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1472
1472
  ])) : (l(), Y(Ue, {
1473
1473
  key: 1,
1474
1474
  modelValue: _.value,
1475
- "onUpdate:modelValue": N[3] || (N[3] = (se) => _.value = se),
1475
+ "onUpdate:modelValue": B[3] || (B[3] = (se) => _.value = se),
1476
1476
  onChange: y
1477
1477
  }, {
1478
1478
  default: i(() => [
@@ -1511,14 +1511,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1511
1511
  ze.data.isUser && ze.data.position ? (l(), o("span", Jn, V(ze.data.position), 1)) : H("", !0)
1512
1512
  ]),
1513
1513
  ze.data.userCount && !ze.data.isUser ? (l(), o("span", Kn, "(" + V(ze.data.userCount) + ")", 1)) : H("", !0),
1514
- !ze.data.isUser && !((sa = ze.data.children) != null && sa.length) && !ze.data.loaded ? (l(), Y(X, {
1514
+ !ze.data.isUser && !((sa = ze.data.children) != null && sa.length) && !ze.data.loaded ? (l(), Y(Q, {
1515
1515
  key: 1,
1516
1516
  size: "small",
1517
1517
  variant: "text",
1518
1518
  class: "cd-ps-load-btn",
1519
1519
  onClick: Ze((Le) => he(ze, se.key), ["stop"])
1520
1520
  }, {
1521
- default: i(() => [...N[9] || (N[9] = [
1521
+ default: i(() => [...B[9] || (B[9] = [
1522
1522
  U("显示人员", -1)
1523
1523
  ])]),
1524
1524
  _: 1
@@ -1533,7 +1533,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1533
1533
  size: "48px",
1534
1534
  style: { color: "#ddd" }
1535
1535
  }, null, 8, ["name"]),
1536
- N[10] || (N[10] = e("p", null, "暂无数据", -1))
1536
+ B[10] || (B[10] = e("p", null, "暂无数据", -1))
1537
1537
  ]))
1538
1538
  ])
1539
1539
  ];
@@ -1546,15 +1546,15 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1546
1546
  ]),
1547
1547
  e("div", Xn, [
1548
1548
  e("div", Qn, [
1549
- N[12] || (N[12] = e("span", { class: "cd-ps-title" }, "已选择", -1)),
1549
+ B[12] || (B[12] = e("span", { class: "cd-ps-title" }, "已选择", -1)),
1550
1550
  e("span", Zn, V(ue.value.length) + " 项", 1),
1551
- ue.value.length > 0 ? (l(), Y(X, {
1551
+ ue.value.length > 0 ? (l(), Y(Q, {
1552
1552
  key: 0,
1553
1553
  size: "small",
1554
1554
  variant: "text",
1555
1555
  onClick: Ee
1556
1556
  }, {
1557
- default: i(() => [...N[11] || (N[11] = [
1557
+ default: i(() => [...B[11] || (B[11] = [
1558
1558
  U("清空", -1)
1559
1559
  ])]),
1560
1560
  _: 1
@@ -1567,7 +1567,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1567
1567
  size: "64px",
1568
1568
  style: { color: "#ddd" }
1569
1569
  }),
1570
- N[13] || (N[13] = e("p", null, "暂无选择", -1))
1570
+ B[13] || (B[13] = e("p", null, "暂无选择", -1))
1571
1571
  ])) : (l(), o("div", lo, [
1572
1572
  (l(!0), o(fe, null, ye(ue.value, (se) => (l(), o("div", {
1573
1573
  key: se.id,
@@ -1591,7 +1591,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1591
1591
  ])
1592
1592
  ])
1593
1593
  ]),
1594
- s(X, {
1594
+ s(Q, {
1595
1595
  size: "small",
1596
1596
  variant: "text",
1597
1597
  shape: "circle",
@@ -1670,7 +1670,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1670
1670
  })) : (c.value = [], u.value = !1, r.value = !1);
1671
1671
  }, q = (g) => {
1672
1672
  g && c.value.length === 0 && (r.value = !1);
1673
- }, G = (g) => {
1673
+ }, K = (g) => {
1674
1674
  const P = Array.isArray(g) ? g : g ? [g] : [], T = n.modelValue.map((j) => j.id), de = P.filter((j) => !T.includes(j)), ue = T.filter((j) => !P.includes(j));
1675
1675
  if (de.length > 0) {
1676
1676
  const j = de.map((w) => O.value.find((y) => y.id === w)).filter(Boolean);
@@ -1688,7 +1688,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1688
1688
  }, ge = (g) => {
1689
1689
  const P = n.modelValue.filter((T) => T.id !== g);
1690
1690
  b("update:modelValue", P), C.value = P;
1691
- }, K = (g) => {
1691
+ }, G = (g) => {
1692
1692
  g && typeof g.stopPropagation == "function" && g.stopPropagation(), g && typeof g.preventDefault == "function" && g.preventDefault(), r.value = !1, A();
1693
1693
  }, A = () => {
1694
1694
  R.value = !0;
@@ -1741,7 +1741,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1741
1741
  size: "medium",
1742
1742
  class: "cd-input-select__select",
1743
1743
  onSearch: ee,
1744
- onChange: G,
1744
+ onChange: K,
1745
1745
  onPopupVisibleChange: q
1746
1746
  }, ya({
1747
1747
  valueDisplay: i(() => [
@@ -1799,7 +1799,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1799
1799
  fn: i(() => [
1800
1800
  s(T, {
1801
1801
  name: "search",
1802
- onClick: K
1802
+ onClick: G
1803
1803
  })
1804
1804
  ]),
1805
1805
  key: "0"
@@ -1809,7 +1809,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1809
1809
  fn: i(() => [
1810
1810
  e("i", {
1811
1811
  class: "ri-add-circle-line cd-input-select__add-icon",
1812
- onClick: K
1812
+ onClick: G
1813
1813
  })
1814
1814
  ]),
1815
1815
  key: "1"
@@ -1889,14 +1889,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1889
1889
  emits: ["user-click", "action", "email-click", "mobile-view", "person-select", "load-users", "search", "dept-click"],
1890
1890
  setup(a, { emit: le }) {
1891
1891
  Ol((te) => ({
1892
- v2e8fe560: `${G.value}px`,
1893
- v959986c2: `-${G.value}px`
1892
+ v2e8fe560: `${K.value}px`,
1893
+ v959986c2: `-${K.value}px`
1894
1894
  }));
1895
1895
  const n = a, b = le, u = F(!1), c = F(null), m = F("bottom"), R = F({}), _ = F(!1), C = F(!1), r = F([]), O = F(!1), D = F(null), L = F({}), ee = F([]), q = ve(() => ({
1896
1896
  width: `${n.avatarSize}px`,
1897
1897
  height: `${n.avatarSize}px`,
1898
1898
  fontSize: `${Math.floor(n.avatarSize / 3)}px`
1899
- })), G = ve(() => Math.floor(n.avatarSize / 3)), ge = ve(() => n.users.length <= n.maxDisplay ? n.users : n.users.slice(0, n.maxDisplay)), K = ve(() => n.users.length > n.maxDisplay), A = ve(() => n.users.length - n.maxDisplay), W = ve(() => n.users.map((te) => te.name).join("、")), d = (te, $) => {
1899
+ })), K = ve(() => Math.floor(n.avatarSize / 3)), ge = ve(() => n.users.length <= n.maxDisplay ? n.users : n.users.slice(0, n.maxDisplay)), G = ve(() => n.users.length > n.maxDisplay), A = ve(() => n.users.length - n.maxDisplay), W = ve(() => n.users.map((te) => te.name).join("、")), d = (te, $) => {
1900
1900
  if (te.isUser === !1) {
1901
1901
  y(te, $);
1902
1902
  return;
@@ -1905,11 +1905,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1905
1905
  const oe = $.currentTarget.getBoundingClientRect(), ke = window.innerHeight - oe.bottom < 400 ? "top" : "bottom";
1906
1906
  m.value = ke;
1907
1907
  const Ee = 400, Ce = 500, qe = 12;
1908
- let ce = 0, N = oe.left + oe.width / 2 - Ee / 2;
1909
- ke === "bottom" ? ce = oe.bottom + qe : ce = oe.top - Ce - qe, N < 10 && (N = 10), N + Ee > window.innerWidth - 10 && (N = window.innerWidth - Ee - 10), ce < 10 && (ce = 10), ce + Ce > window.innerHeight - 10 && (ce = window.innerHeight - Ce - 10), R.value = {
1908
+ let ce = 0, B = oe.left + oe.width / 2 - Ee / 2;
1909
+ ke === "bottom" ? ce = oe.bottom + qe : ce = oe.top - Ce - qe, B < 10 && (B = 10), B + Ee > window.innerWidth - 10 && (B = window.innerWidth - Ee - 10), ce < 10 && (ce = 10), ce + Ce > window.innerHeight - 10 && (ce = window.innerHeight - Ce - 10), R.value = {
1910
1910
  position: "fixed",
1911
1911
  top: `${ce}px`,
1912
- left: `${N}px`,
1912
+ left: `${B}px`,
1913
1913
  width: "350px",
1914
1914
  maxHeight: "80vh",
1915
1915
  overflow: "auto",
@@ -1947,11 +1947,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1947
1947
  }, y = (te, $) => {
1948
1948
  D.value = te, ee.value = [];
1949
1949
  const oe = $.currentTarget.getBoundingClientRect(), ke = window.innerHeight - oe.bottom < 400 ? "top" : "bottom", Ee = 400, Ce = 400, qe = 12;
1950
- let ce = 0, N = oe.left + oe.width / 2 - Ee / 2;
1951
- ke === "bottom" ? ce = oe.bottom + qe : ce = oe.top - Ce - qe, N < 10 && (N = 10), N + Ee > window.innerWidth - 10 && (N = window.innerWidth - Ee - 10), ce < 10 && (ce = 10), ce + Ce > window.innerHeight - 10 && (ce = window.innerHeight - Ce - 10), L.value = {
1950
+ let ce = 0, B = oe.left + oe.width / 2 - Ee / 2;
1951
+ ke === "bottom" ? ce = oe.bottom + qe : ce = oe.top - Ce - qe, B < 10 && (B = 10), B + Ee > window.innerWidth - 10 && (B = window.innerWidth - Ee - 10), ce < 10 && (ce = 10), ce + Ce > window.innerHeight - 10 && (ce = window.innerHeight - Ce - 10), L.value = {
1952
1952
  position: "fixed",
1953
1953
  top: `${ce}px`,
1954
- left: `${N}px`,
1954
+ left: `${B}px`,
1955
1955
  width: "350px",
1956
1956
  maxHeight: "80vh",
1957
1957
  overflow: "auto",
@@ -1963,9 +1963,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
1963
1963
  C.value = !0;
1964
1964
  }, E = (te) => {
1965
1965
  b("person-select", te), C.value = !1;
1966
- }, B = (te) => {
1966
+ }, N = (te) => {
1967
1967
  b("load-users", te);
1968
- }, Q = (te) => {
1968
+ }, X = (te) => {
1969
1969
  b("search", te);
1970
1970
  };
1971
1971
  return Fe(() => n.deptMembersData, (te) => {
@@ -2033,7 +2033,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2033
2033
  ]),
2034
2034
  _: 1
2035
2035
  })) : H("", !0),
2036
- K.value ? (l(), o("div", Vo, [
2036
+ G.value ? (l(), o("div", Vo, [
2037
2037
  e("div", {
2038
2038
  class: "cd-users-list__avatar-wrapper cd-users-list__avatar-wrapper--more",
2039
2039
  style: Qe({ width: q.value.width, height: q.value.height })
@@ -2280,8 +2280,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2280
2280
  "show-search": !0,
2281
2281
  tips: "选择要添加的人员",
2282
2282
  onConfirm: E,
2283
- onLoadUsers: B,
2284
- onSearch: Q
2283
+ onLoadUsers: N,
2284
+ onSearch: X
2285
2285
  }, null, 8, ["visible", "modelValue", "tabs", "organizations"])) : H("", !0)
2286
2286
  ]);
2287
2287
  };
@@ -2453,7 +2453,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2453
2453
  const L = M("t-input"), ee = M("t-button"), q = M("t-dialog");
2454
2454
  return l(), Y(q, {
2455
2455
  visible: u.value,
2456
- "onUpdate:visible": D[9] || (D[9] = (G) => u.value = G),
2456
+ "onUpdate:visible": D[9] || (D[9] = (K) => u.value = K),
2457
2457
  header: a.title,
2458
2458
  width: 480,
2459
2459
  footer: !1,
@@ -2466,14 +2466,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2466
2466
  e("div", vi, [
2467
2467
  e("div", {
2468
2468
  class: $e(["method-tab", { active: c.value === "password" }]),
2469
- onClick: D[0] || (D[0] = (G) => c.value = "password")
2469
+ onClick: D[0] || (D[0] = (K) => c.value = "password")
2470
2470
  }, [...D[10] || (D[10] = [
2471
2471
  e("i", { class: "ri-lock-password-line" }, null, -1),
2472
2472
  e("span", null, "通过旧密码", -1)
2473
2473
  ])], 2),
2474
2474
  e("div", {
2475
2475
  class: $e(["method-tab", { active: c.value === "phone" }]),
2476
- onClick: D[1] || (D[1] = (G) => c.value = "phone")
2476
+ onClick: D[1] || (D[1] = (K) => c.value = "phone")
2477
2477
  }, [...D[11] || (D[11] = [
2478
2478
  e("i", { class: "ri-smartphone-line" }, null, -1),
2479
2479
  e("span", null, "通过手机号", -1)
@@ -2484,7 +2484,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2484
2484
  D[12] || (D[12] = e("label", { class: "form-label" }, "旧密码", -1)),
2485
2485
  s(L, {
2486
2486
  modelValue: R.oldPassword,
2487
- "onUpdate:modelValue": D[2] || (D[2] = (G) => R.oldPassword = G),
2487
+ "onUpdate:modelValue": D[2] || (D[2] = (K) => R.oldPassword = K),
2488
2488
  type: "password",
2489
2489
  placeholder: "请输入旧密码",
2490
2490
  clearable: ""
@@ -2494,7 +2494,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2494
2494
  D[13] || (D[13] = e("label", { class: "form-label" }, "新密码", -1)),
2495
2495
  s(L, {
2496
2496
  modelValue: R.newPassword,
2497
- "onUpdate:modelValue": D[3] || (D[3] = (G) => R.newPassword = G),
2497
+ "onUpdate:modelValue": D[3] || (D[3] = (K) => R.newPassword = K),
2498
2498
  type: "password",
2499
2499
  placeholder: "请输入新密码",
2500
2500
  clearable: ""
@@ -2505,7 +2505,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2505
2505
  D[15] || (D[15] = e("label", { class: "form-label" }, "确认新密码", -1)),
2506
2506
  s(L, {
2507
2507
  modelValue: R.confirmPassword,
2508
- "onUpdate:modelValue": D[4] || (D[4] = (G) => R.confirmPassword = G),
2508
+ "onUpdate:modelValue": D[4] || (D[4] = (K) => R.confirmPassword = K),
2509
2509
  type: "password",
2510
2510
  placeholder: "请再次输入新密码",
2511
2511
  clearable: ""
@@ -2516,7 +2516,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2516
2516
  D[16] || (D[16] = e("label", { class: "form-label" }, "手机号", -1)),
2517
2517
  s(L, {
2518
2518
  modelValue: R.phone,
2519
- "onUpdate:modelValue": D[5] || (D[5] = (G) => R.phone = G),
2519
+ "onUpdate:modelValue": D[5] || (D[5] = (K) => R.phone = K),
2520
2520
  placeholder: "请输入手机号",
2521
2521
  readonly: a.phoneReadonly
2522
2522
  }, null, 8, ["modelValue", "readonly"])
@@ -2526,7 +2526,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2526
2526
  e("div", Ci, [
2527
2527
  s(L, {
2528
2528
  modelValue: R.verifyCode,
2529
- "onUpdate:modelValue": D[6] || (D[6] = (G) => R.verifyCode = G),
2529
+ "onUpdate:modelValue": D[6] || (D[6] = (K) => R.verifyCode = K),
2530
2530
  placeholder: "请输入验证码",
2531
2531
  clearable: ""
2532
2532
  }, null, 8, ["modelValue"]),
@@ -2545,7 +2545,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2545
2545
  D[18] || (D[18] = e("label", { class: "form-label" }, "新密码", -1)),
2546
2546
  s(L, {
2547
2547
  modelValue: R.newPassword,
2548
- "onUpdate:modelValue": D[7] || (D[7] = (G) => R.newPassword = G),
2548
+ "onUpdate:modelValue": D[7] || (D[7] = (K) => R.newPassword = K),
2549
2549
  type: "password",
2550
2550
  placeholder: "请输入新密码",
2551
2551
  clearable: ""
@@ -2556,7 +2556,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2556
2556
  D[20] || (D[20] = e("label", { class: "form-label" }, "确认新密码", -1)),
2557
2557
  s(L, {
2558
2558
  modelValue: R.confirmPassword,
2559
- "onUpdate:modelValue": D[8] || (D[8] = (G) => R.confirmPassword = G),
2559
+ "onUpdate:modelValue": D[8] || (D[8] = (K) => R.confirmPassword = K),
2560
2560
  type: "password",
2561
2561
  placeholder: "请再次输入新密码",
2562
2562
  clearable: ""
@@ -2781,8 +2781,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2781
2781
  }), u.value = !1;
2782
2782
  };
2783
2783
  return (C, r) => {
2784
- const O = M("t-radio"), D = M("t-radio-group"), L = M("t-checkbox"), ee = M("t-checkbox-group"), q = M("t-button"), G = M("t-dialog");
2785
- return l(), Y(G, {
2784
+ const O = M("t-radio"), D = M("t-radio-group"), L = M("t-checkbox"), ee = M("t-checkbox-group"), q = M("t-button"), K = M("t-dialog");
2785
+ return l(), Y(K, {
2786
2786
  visible: u.value,
2787
2787
  "onUpdate:visible": r[2] || (r[2] = (ge) => u.value = ge),
2788
2788
  header: a.title,
@@ -2929,8 +2929,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2929
2929
  if (!c.value) return;
2930
2930
  const q = [];
2931
2931
  (ee.ctrlKey || ee.metaKey) && q.push("Ctrl"), ee.shiftKey && q.push("Shift"), ee.altKey && q.push("Alt");
2932
- const G = ee.key, ge = r[G] || G;
2933
- ["Control", "Shift", "Alt", "Meta"].includes(G) || q.push(ge.length === 1 ? ge.toUpperCase() : ge), q.length > 0 && (m.value = q);
2932
+ const K = ee.key, ge = r[K] || K;
2933
+ ["Control", "Shift", "Alt", "Meta"].includes(K) || q.push(ge.length === 1 ? ge.toUpperCase() : ge), q.length > 0 && (m.value = q);
2934
2934
  }, D = () => {
2935
2935
  m.value = [...n.shortcutData.keys];
2936
2936
  }, L = () => {
@@ -2941,8 +2941,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2941
2941
  b("submit", m.value), b("update", n.shortcutData.label, m.value), u.value = !1;
2942
2942
  };
2943
2943
  return (ee, q) => {
2944
- const G = M("t-input"), ge = M("t-button"), K = M("t-dialog");
2945
- return l(), Y(K, {
2944
+ const K = M("t-input"), ge = M("t-button"), G = M("t-dialog");
2945
+ return l(), Y(G, {
2946
2946
  visible: u.value,
2947
2947
  "onUpdate:visible": q[0] || (q[0] = (A) => u.value = A),
2948
2948
  header: a.title,
@@ -2963,7 +2963,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
2963
2963
  ], -1)),
2964
2964
  e("div", Ji, [
2965
2965
  q[1] || (q[1] = e("label", { class: "form-label" }, "功能名称", -1)),
2966
- s(G, {
2966
+ s(K, {
2967
2967
  value: a.shortcutData.label,
2968
2968
  readonly: "",
2969
2969
  disabled: ""
@@ -3135,7 +3135,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3135
3135
  b("toggle", D);
3136
3136
  }, O = (D) => D >= 100 ? "#52c41a" : D >= 50 ? "#1890ff" : "#faad14";
3137
3137
  return (D, L) => {
3138
- const ee = M("t-radio-button"), q = M("t-radio-group"), G = M("t-checkbox"), ge = M("t-tag"), K = M("t-progress");
3138
+ const ee = M("t-radio-button"), q = M("t-radio-group"), K = M("t-checkbox"), ge = M("t-tag"), G = M("t-progress");
3139
3139
  return l(), o("div", hs, [
3140
3140
  e("h3", null, [
3141
3141
  L[1] || (L[1] = e("i", { class: "ri-task-line" }, null, -1)),
@@ -3185,7 +3185,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3185
3185
  onClick: (W) => C(A)
3186
3186
  }, [
3187
3187
  e("div", Cs, [
3188
- s(G, {
3188
+ s(K, {
3189
3189
  checked: A.status === "done",
3190
3190
  onChange: (W) => r(A)
3191
3191
  }, null, 8, ["checked", "onChange"])
@@ -3222,7 +3222,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
3222
3222
  ])
3223
3223
  ]),
3224
3224
  a.showProgress && A.progress !== void 0 ? (l(), o("div", Ms, [
3225
- s(K, {
3225
+ s(G, {
3226
3226
  percentage: A.progress,
3227
3227
  size: "small",
3228
3228
  color: O(A.progress)
@@ -3872,25 +3872,41 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3872
3872
  c.value.splice(E, 1), m.value.splice(E, 1), u.value = "", S();
3873
3873
  }, D = F(!1), L = F([]), ee = F([]);
3874
3874
  let q = null;
3875
- const G = ve(() => !n.formType || !["basic", "tree", "form", "workflow"].includes(n.formType) ? n.searchFields || [] : n.formType === "basic" || n.formType === "tree" ? ["fnumber", "fname"] : n.formType === "form" || n.formType === "workflow" ? ["fbillno"] : []), ge = ve(() => !n.columnOptions || n.columnOptions.length === 0 ? [] : n.columnOptions.map((E) => ({
3876
- colKey: E.value,
3877
- title: E.label,
3878
- ellipsis: !0
3879
- }))), K = ve(() => !n.searchResults || n.searchResults.length === 0 ? [] : n.searchResults.map((E) => {
3880
- const B = {};
3881
- for (const Q of Object.keys(E)) {
3882
- B[Q] = E[Q];
3883
- const te = Q.toLowerCase();
3884
- te !== Q && B[te] === void 0 && (B[te] = E[Q]);
3875
+ const K = ve(() => !n.formType || !["basic", "tree", "form", "workflow"].includes(n.formType) ? n.searchFields || [] : n.formType === "basic" || n.formType === "tree" ? ["fnumber", "fname"] : n.formType === "form" || n.formType === "workflow" ? ["fbillno"] : []), ge = ve(() => {
3876
+ if (!n.columnOptions || n.columnOptions.length === 0)
3877
+ return [];
3878
+ const E = K.value;
3879
+ if (E && E.length > 0) {
3880
+ const N = n.columnOptions.filter(
3881
+ (X) => E.includes(X.value)
3882
+ );
3883
+ if (N.length > 0)
3884
+ return N.map((X) => ({
3885
+ colKey: X.value,
3886
+ title: X.label,
3887
+ ellipsis: !0
3888
+ }));
3885
3889
  }
3886
- return B;
3890
+ return n.columnOptions.map((N) => ({
3891
+ colKey: N.value,
3892
+ title: N.label,
3893
+ ellipsis: !0
3894
+ }));
3895
+ }), G = ve(() => !n.searchResults || n.searchResults.length === 0 ? [] : n.searchResults.map((E) => {
3896
+ const N = {};
3897
+ for (const X of Object.keys(E)) {
3898
+ N[X] = E[X];
3899
+ const te = X.toLowerCase();
3900
+ te !== X && N[te] === void 0 && (N[te] = E[X]);
3901
+ }
3902
+ return N;
3887
3903
  })), A = F({});
3888
3904
  Fe(() => n.searchResults, (E) => {
3889
- var Q, te;
3905
+ var X, te;
3890
3906
  if (!E || E.length === 0) return;
3891
- const B = ((te = (Q = n.columnOptions) == null ? void 0 : Q[0]) == null ? void 0 : te.value) || "fname";
3907
+ const N = ((te = (X = n.columnOptions) == null ? void 0 : X[0]) == null ? void 0 : te.value) || "fname";
3892
3908
  for (const $ of E) {
3893
- const I = String($.fid ?? $.id ?? ""), oe = $.FNAME || $.fname || $[B] || I;
3909
+ const I = String($.fid ?? $.id ?? ""), oe = $.FNAME || $.fname || $[N] || I;
3894
3910
  I && (A.value[I] = oe);
3895
3911
  }
3896
3912
  if (c.value.length > 0) {
@@ -3898,24 +3914,24 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3898
3914
  m.value = $, u.value = $.join(", ");
3899
3915
  }
3900
3916
  }, { deep: !0 }), Fe(() => n.value, (E) => {
3901
- var B, Q, te, $;
3917
+ var N, X, te, $;
3902
3918
  if (E != null && E !== "") {
3903
3919
  if (typeof E == "number") {
3904
3920
  const I = String(E);
3905
3921
  if (c.value = [I], n.releaseId) {
3906
3922
  const oe = A.value[I] || I;
3907
- m.value = [oe], u.value = oe, A.value[I] || b("search", { keyword: "", searchFields: G.value });
3923
+ m.value = [oe], u.value = oe, A.value[I] || b("search", { keyword: "", searchFields: K.value });
3908
3924
  } else
3909
3925
  m.value = [I], u.value = I;
3910
3926
  } else if (typeof E == "string") {
3911
3927
  const I = E.split(",").map((he) => he.trim()).filter((he) => he);
3912
3928
  if (c.value = I, I.some((he) => /^\d+$/.test(he)) && n.releaseId) {
3913
3929
  const he = I.map((Ee) => A.value[Ee] || Ee);
3914
- m.value = he, u.value = he.join(", "), I.some((Ee) => /^\d+$/.test(Ee) && !A.value[Ee]) && b("search", { keyword: "", searchFields: G.value });
3930
+ m.value = he, u.value = he.join(", "), I.some((Ee) => /^\d+$/.test(Ee) && !A.value[Ee]) && b("search", { keyword: "", searchFields: K.value });
3915
3931
  } else
3916
3932
  m.value = I, u.value = I.join(", ");
3917
3933
  } else if (Array.isArray(E)) {
3918
- const I = n.relationField || "fid", oe = ((Q = (B = n.columnOptions) == null ? void 0 : B[0]) == null ? void 0 : Q.value) || "fname";
3934
+ const I = n.relationField || "fid", oe = ((X = (N = n.columnOptions) == null ? void 0 : N[0]) == null ? void 0 : X.value) || "fname";
3919
3935
  c.value = E.map((he) => typeof he == "string" ? he : String(he[I] ?? he.fid ?? "")), m.value = E.map((he) => typeof he == "string" ? he : String(he[oe] || "")), u.value = m.value.join(", ");
3920
3936
  } else if (typeof E == "object") {
3921
3937
  const I = n.relationField || "fid", oe = (($ = (te = n.columnOptions) == null ? void 0 : te[0]) == null ? void 0 : $.value) || "fname", he = String(E[I] ?? E.fid ?? ""), ke = E[oe] || he;
@@ -3926,10 +3942,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3926
3942
  }, { immediate: !0 });
3927
3943
  const W = (E) => {
3928
3944
  q && clearTimeout(q), q = setTimeout(() => {
3929
- E ? (R.value = !0, b("search", { keyword: E, searchFields: G.value })) : R.value = !1;
3945
+ E ? (R.value = !0, b("search", { keyword: E, searchFields: K.value })) : R.value = !1;
3930
3946
  }, 300);
3931
3947
  }, d = () => {
3932
- R.value = !0, b("search", { keyword: "", searchFields: G.value });
3948
+ R.value = !0, b("search", { keyword: "", searchFields: K.value });
3933
3949
  }, S = () => {
3934
3950
  const E = c.value.length > 0 ? c.value.join(",") : void 0;
3935
3951
  console.log("[RelationForm] updateValue:", { result: E, selectedIds: [...c.value], selectedLabels: [...m.value] }), b("update:value", E), b("change", E);
@@ -3937,8 +3953,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3937
3953
  D.value = !0, L.value = [], ee.value = [], b("advanced-select");
3938
3954
  }, P = ({ row: E }) => {
3939
3955
  var te, $;
3940
- const B = String(E.fid ?? E.id ?? ""), Q = String(E.FNAME || E.fname || E[(($ = (te = n.columnOptions) == null ? void 0 : te[0]) == null ? void 0 : $.value) || ""] || B);
3941
- console.log("[RelationForm] handleRowClick:", { idValue: B, displayValue: Q, rowFid: E.fid }), B && (A.value[B] = Q), n.multiple ? (c.value.includes(B) || (c.value.push(B), m.value.push(Q)), u.value = "") : (c.value = [B], m.value = [Q], u.value = Q), S(), b("row-select", E), R.value = !1;
3956
+ const N = String(E.fid ?? E.id ?? ""), X = String(E.FNAME || E.fname || E[(($ = (te = n.columnOptions) == null ? void 0 : te[0]) == null ? void 0 : $.value) || ""] || N);
3957
+ console.log("[RelationForm] handleRowClick:", { idValue: N, displayValue: X, rowFid: E.fid }), N && (A.value[N] = X), n.multiple ? (c.value.includes(N) || (c.value.push(N), m.value.push(X)), u.value = "") : (c.value = [N], m.value = [X], u.value = X), S(), b("row-select", E), R.value = !1;
3942
3958
  }, T = (E) => {
3943
3959
  b("dialog-search", E);
3944
3960
  }, de = () => {
@@ -3956,20 +3972,20 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3956
3972
  if (n.multiple)
3957
3973
  c.value = ee.value.map((E) => String(E.fid ?? E.id ?? "")), m.value = ee.value.map((E) => String(E.FNAME || E.fname || "")), u.value = "";
3958
3974
  else {
3959
- const E = ee.value[0], B = String(E.fid ?? E.id ?? ""), Q = String(E.FNAME || E.fname || "");
3960
- c.value = [B], m.value = [Q], B && (A.value[B] = Q);
3975
+ const E = ee.value[0], N = String(E.fid ?? E.id ?? ""), X = String(E.FNAME || E.fname || "");
3976
+ c.value = [N], m.value = [X], N && (A.value[N] = X);
3961
3977
  }
3962
3978
  u.value = m.value.join(", "), S(), D.value = !1;
3963
3979
  }
3964
3980
  }, re = () => {
3965
3981
  L.value = [], ee.value = [], D.value = !1;
3966
3982
  };
3967
- return (E, B) => {
3968
- const Q = M("t-tag"), te = M("t-input"), $ = M("t-table"), I = M("t-popup"), oe = M("t-button"), he = M("t-dialog");
3983
+ return (E, N) => {
3984
+ const X = M("t-tag"), te = M("t-input"), $ = M("t-table"), I = M("t-popup"), oe = M("t-button"), he = M("t-dialog");
3969
3985
  return l(), o("div", Td, [
3970
3986
  s(I, {
3971
3987
  modelValue: R.value,
3972
- "onUpdate:modelValue": B[3] || (B[3] = (ke) => R.value = ke),
3988
+ "onUpdate:modelValue": N[3] || (N[3] = (ke) => R.value = ke),
3973
3989
  placement: "bottom-left",
3974
3990
  trigger: "click",
3975
3991
  "overlay-class-name": "relation-form-search-popup",
@@ -3978,12 +3994,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
3978
3994
  }, {
3979
3995
  content: i(() => [
3980
3996
  e("div", {
3981
- onMousedown: B[2] || (B[2] = Ze(() => {
3997
+ onMousedown: N[2] || (N[2] = Ze(() => {
3982
3998
  }, ["prevent", "stop"]))
3983
3999
  }, [
3984
- K.value && K.value.length > 0 ? (l(), o("div", qd, [
4000
+ G.value && G.value.length > 0 ? (l(), o("div", qd, [
3985
4001
  s($, {
3986
- data: K.value,
4002
+ data: G.value,
3987
4003
  columns: ge.value,
3988
4004
  loading: a.searchLoading,
3989
4005
  "row-key": "id",
@@ -4004,7 +4020,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4004
4020
  class: "relation-tags-wrapper",
4005
4021
  onClick: C
4006
4022
  }, [
4007
- (l(!0), o(fe, null, ye(m.value, (ke, Ee) => (l(), Y(Q, {
4023
+ (l(!0), o(fe, null, ye(m.value, (ke, Ee) => (l(), Y(X, {
4008
4024
  key: Ee,
4009
4025
  size: "small",
4010
4026
  closable: "",
@@ -4019,7 +4035,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4019
4035
  ha(e("input", {
4020
4036
  ref_key: "tagInputRef",
4021
4037
  ref: _,
4022
- "onUpdate:modelValue": B[0] || (B[0] = (ke) => u.value = ke),
4038
+ "onUpdate:modelValue": N[0] || (N[0] = (ke) => u.value = ke),
4023
4039
  class: "relation-tag-input",
4024
4040
  placeholder: "搜索...",
4025
4041
  disabled: a.disabled,
@@ -4031,7 +4047,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4031
4047
  ])) : (l(), Y(te, {
4032
4048
  key: 1,
4033
4049
  modelValue: u.value,
4034
- "onUpdate:modelValue": B[1] || (B[1] = (ke) => u.value = ke),
4050
+ "onUpdate:modelValue": N[1] || (N[1] = (ke) => u.value = ke),
4035
4051
  placeholder: a.placeholder || "请选择",
4036
4052
  loading: a.searchLoading,
4037
4053
  disabled: a.disabled,
@@ -4051,12 +4067,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4051
4067
  (l(), Y(vl, { to: "body" }, [
4052
4068
  D.value ? (l(), o("div", {
4053
4069
  key: 0,
4054
- onMousedown: B[5] || (B[5] = Ze(() => {
4070
+ onMousedown: N[5] || (N[5] = Ze(() => {
4055
4071
  }, ["stop"]))
4056
4072
  }, [
4057
4073
  s(he, {
4058
4074
  visible: D.value,
4059
- "onUpdate:visible": B[4] || (B[4] = (ke) => D.value = ke),
4075
+ "onUpdate:visible": N[4] || (N[4] = (ke) => D.value = ke),
4060
4076
  header: a.dialogTitle || "选择数据",
4061
4077
  width: a.dialogWidth || "1400px",
4062
4078
  footer: !0,
@@ -4070,7 +4086,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4070
4086
  }, {
4071
4087
  footer: i(() => [
4072
4088
  s(oe, { onClick: re }, {
4073
- default: i(() => [...B[6] || (B[6] = [
4089
+ default: i(() => [...N[6] || (N[6] = [
4074
4090
  U("取消", -1)
4075
4091
  ])]),
4076
4092
  _: 1
@@ -4079,7 +4095,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4079
4095
  theme: "primary",
4080
4096
  onClick: z
4081
4097
  }, {
4082
- default: i(() => [...B[7] || (B[7] = [
4098
+ default: i(() => [...N[7] || (N[7] = [
4083
4099
  U("确定", -1)
4084
4100
  ])]),
4085
4101
  _: 1
@@ -4113,7 +4129,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4113
4129
  ]);
4114
4130
  };
4115
4131
  }
4116
- }), Fl = /* @__PURE__ */ aa(Wd, [["__scopeId", "data-v-4d7bf8f0"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4132
+ }), Fl = /* @__PURE__ */ aa(Wd, [["__scopeId", "data-v-0ab61485"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
4117
4133
  key: 0,
4118
4134
  class: "more-tip"
4119
4135
  }, Qd = { class: "preview-table" }, Zd = {
@@ -4130,15 +4146,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4130
4146
  setup(a, { emit: le }) {
4131
4147
  const n = a, b = le, u = ve({
4132
4148
  get: () => n.visible,
4133
- set: (K) => b("update:visible", K)
4134
- }), c = F(["ai"]), m = F(""), R = F(""), _ = F("auto"), C = F([]), r = F(!1), O = ve(() => n.columns.map((K) => ({
4135
- label: K.title || K.label,
4136
- value: K.field || K.value
4149
+ set: (G) => b("update:visible", G)
4150
+ }), c = F(["ai"]), m = F(""), R = F(""), _ = F("auto"), C = F([]), r = F(!1), O = ve(() => n.columns.map((G) => ({
4151
+ label: G.title || G.label,
4152
+ value: G.field || G.value
4137
4153
  }))), D = ve(() => {
4138
- const K = R.value.trim();
4139
- if (!K) return [];
4154
+ const G = R.value.trim();
4155
+ if (!G) return [];
4140
4156
  let A = [];
4141
- if (K.split(`
4157
+ if (G.split(`
4142
4158
  `).filter((g) => g.trim() !== "").forEach((g) => {
4143
4159
  let P = [];
4144
4160
  if (_.value === "auto")
@@ -4173,40 +4189,40 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4173
4189
  }
4174
4190
  return S;
4175
4191
  }), L = ve(() => {
4176
- const K = D.value;
4177
- if (K.length === 0) return [];
4178
- const A = Math.max(...K.map((d) => d.length)), W = [];
4192
+ const G = D.value;
4193
+ if (G.length === 0) return [];
4194
+ const A = Math.max(...G.map((d) => d.length)), W = [];
4179
4195
  for (let d = 0; d < A; d++) {
4180
4196
  const S = {
4181
4197
  _X_ROW_KEY: `row_${Date.now()}_${d}_${Math.random().toString(36).substr(2, 9)}`
4182
4198
  };
4183
- K.forEach((g, P) => {
4199
+ G.forEach((g, P) => {
4184
4200
  const T = C.value[P];
4185
4201
  T && g[d] !== void 0 && (S[T] = g[d]);
4186
4202
  }), W.push(S);
4187
4203
  }
4188
4204
  return W;
4189
4205
  }), ee = ve(() => {
4190
- const K = [];
4206
+ const G = [];
4191
4207
  return D.value.forEach((A, W) => {
4192
4208
  var g;
4193
4209
  const d = C.value[W], S = d ? ((g = O.value.find((P) => P.value === d)) == null ? void 0 : g.label) || d : `第 ${W + 1} 列`;
4194
- K.push({
4210
+ G.push({
4195
4211
  colKey: d || `col_${W}`,
4196
4212
  title: S,
4197
4213
  width: 150,
4198
4214
  ellipsis: !0
4199
4215
  });
4200
- }), K;
4201
- }), q = ve(() => C.value.some((K) => K !== void 0 && K !== ""));
4202
- Fe(() => D.value.length, (K) => {
4216
+ }), G;
4217
+ }), q = ve(() => C.value.some((G) => G !== void 0 && G !== ""));
4218
+ Fe(() => D.value.length, (G) => {
4203
4219
  const A = C.value;
4204
- A.length < K ? C.value = [
4220
+ A.length < G ? C.value = [
4205
4221
  ...A,
4206
- ...new Array(K - A.length).fill("")
4207
- ] : A.length > K && (C.value = A.slice(0, K));
4222
+ ...new Array(G - A.length).fill("")
4223
+ ] : A.length > G && (C.value = A.slice(0, G));
4208
4224
  });
4209
- const G = () => {
4225
+ const K = () => {
4210
4226
  if (!q.value) {
4211
4227
  Oe.warning("请至少为一列选择对应的字段");
4212
4228
  return;
@@ -4215,7 +4231,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4215
4231
  Oe.warning("请输入要添加的数据");
4216
4232
  return;
4217
4233
  }
4218
- const K = L.value.map((A) => {
4234
+ const G = L.value.map((A) => {
4219
4235
  const W = { ...A };
4220
4236
  return n.fieldConfigs.forEach((d) => {
4221
4237
  var g;
@@ -4241,7 +4257,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4241
4257
  }
4242
4258
  }), W;
4243
4259
  });
4244
- b("add-data", K), Oe.success(`成功添加 ${K.length} 条数据`), R.value = "", C.value = [], u.value = !1;
4260
+ b("add-data", G), Oe.success(`成功添加 ${G.length} 条数据`), R.value = "", C.value = [], u.value = !1;
4245
4261
  }, ge = () => {
4246
4262
  if (!m.value.trim()) {
4247
4263
  Oe.warning("请输入描述信息");
@@ -4251,9 +4267,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4251
4267
  r.value = !1;
4252
4268
  }, 1e3);
4253
4269
  };
4254
- return Fe(u, (K) => {
4255
- K || (m.value = "", R.value = "", C.value = [], r.value = !1, c.value = ["ai"]);
4256
- }), (K, A) => {
4270
+ return Fe(u, (G) => {
4271
+ G || (m.value = "", R.value = "", C.value = [], r.value = !1, c.value = ["ai"]);
4272
+ }), (G, A) => {
4257
4273
  const W = M("t-textarea"), d = M("t-form-item"), S = M("t-form"), g = M("t-button"), P = M("t-space"), T = M("t-collapse-panel"), de = M("t-radio"), ue = M("t-radio-group"), j = M("t-select"), w = M("t-tag"), y = M("t-table"), z = M("t-collapse"), re = M("t-dialog");
4258
4274
  return l(), Y(re, {
4259
4275
  visible: u.value,
@@ -4399,27 +4415,27 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4399
4415
  }, {
4400
4416
  default: i(() => [
4401
4417
  e("div", Jd, [
4402
- (l(!0), o(fe, null, ye(D.value, (E, B) => (l(), o("div", {
4403
- key: B,
4418
+ (l(!0), o(fe, null, ye(D.value, (E, N) => (l(), o("div", {
4419
+ key: N,
4404
4420
  class: "mapping-item"
4405
4421
  }, [
4406
- e("div", Kd, "第 " + V(B + 1) + " 列", 1),
4422
+ e("div", Kd, "第 " + V(N + 1) + " 列", 1),
4407
4423
  s(j, {
4408
- modelValue: C.value[B],
4409
- "onUpdate:modelValue": (Q) => C.value[B] = Q,
4424
+ modelValue: C.value[N],
4425
+ "onUpdate:modelValue": (X) => C.value[N] = X,
4410
4426
  placeholder: "请选择字段",
4411
4427
  options: O.value,
4412
4428
  clearable: ""
4413
4429
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options"]),
4414
4430
  e("div", Gd, [
4415
- (l(!0), o(fe, null, ye(E.slice(0, 3), (Q, te) => (l(), Y(w, {
4431
+ (l(!0), o(fe, null, ye(E.slice(0, 3), (X, te) => (l(), Y(w, {
4416
4432
  key: te,
4417
4433
  theme: "default",
4418
4434
  variant: "light",
4419
4435
  size: "small"
4420
4436
  }, {
4421
4437
  default: i(() => [
4422
- U(V(Q), 1)
4438
+ U(V(X), 1)
4423
4439
  ]),
4424
4440
  _: 2
4425
4441
  }, 1024))), 128)),
@@ -4458,7 +4474,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4458
4474
  default: i(() => [
4459
4475
  s(g, {
4460
4476
  theme: "primary",
4461
- onClick: G,
4477
+ onClick: K,
4462
4478
  disabled: L.value.length === 0 || !q.value
4463
4479
  }, {
4464
4480
  default: i(() => [
@@ -4646,7 +4662,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4646
4662
  const v = n.field.__vModel__;
4647
4663
  v && w("change", v, p);
4648
4664
  }
4649
- }), G = ve(() => {
4665
+ }), K = ve(() => {
4650
4666
  if (y.value !== "vxeSubGrid") return [];
4651
4667
  const p = n.field.children || n.field.__config__.children || [];
4652
4668
  if (!Array.isArray(p) || p.length === 0) return [];
@@ -4748,7 +4764,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4748
4764
  // return true;
4749
4765
  // }
4750
4766
  }), v;
4751
- }), K = (p) => {
4767
+ }), G = (p) => {
4752
4768
  q.value = p;
4753
4769
  }, A = (p) => {
4754
4770
  p && p.value && W(p.value);
@@ -4932,13 +4948,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4932
4948
  default:
4933
4949
  return "YYYY-MM-DD";
4934
4950
  }
4935
- }, B = () => {
4951
+ }, N = () => {
4936
4952
  const p = n.field.__vModel__;
4937
4953
  if (p) {
4938
4954
  const v = z.value;
4939
4955
  w("change", p, v);
4940
4956
  }
4941
- }, Q = (p) => {
4957
+ }, X = (p) => {
4942
4958
  var ie;
4943
4959
  console.log("[RenderFormItem handleChange] 收到变化:", {
4944
4960
  vModel: n.field.__vModel__,
@@ -4995,14 +5011,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
4995
5011
  w("change", p, null);
4996
5012
  const v = p.replace(/Id$/, "Name");
4997
5013
  n.formModel[v] !== void 0 && w("change", v, "");
4998
- }, N = fl("relationFormData", {}), h = fl("relationFormHandlers", null), Me = fl("dynamicFieldOptions", F({})), Ye = (p) => {
5014
+ }, B = fl("relationFormData", {}), h = fl("relationFormHandlers", null), Me = fl("dynamicFieldOptions", F({})), Ye = (p) => {
4999
5015
  var ie;
5000
5016
  const v = (ie = Me.value) == null ? void 0 : ie[p.__vModel__];
5001
5017
  return Array.isArray(v) && v.length > 0 ? v : Array.isArray(p.options) ? p.options : [];
5002
5018
  }, _e = (p, v) => {
5003
- if (!(!N || !N[p]))
5004
- return N[p][v];
5005
- }, X = (p, v) => {
5019
+ if (!(!B || !B[p]))
5020
+ return B[p][v];
5021
+ }, Q = (p, v) => {
5006
5022
  const ie = { field: p.__vModel__, releaseId: p.releaseId, keyword: v };
5007
5023
  h != null && h.search ? h.search(ie) : w("relation-form-search", ie);
5008
5024
  }, ae = (p) => {
@@ -5078,10 +5094,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5078
5094
  clearable: a.field.clearable !== !1,
5079
5095
  maxlength: a.field.maxlength,
5080
5096
  readonly: a.field.readonly,
5081
- onBlur: B,
5097
+ onBlur: N,
5082
5098
  onInput: te,
5083
5099
  onClear: $,
5084
- onChange: Q
5100
+ onChange: X
5085
5101
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : y.value === "input" && ((Pe = a.field.__config__) != null && Pe.i18n) ? (l(), Y(ie, {
5086
5102
  key: 1,
5087
5103
  modelValue: z.value,
@@ -5091,10 +5107,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5091
5107
  clearable: a.field.clearable !== !1,
5092
5108
  maxlength: a.field.maxlength,
5093
5109
  readonly: a.field.readonly,
5094
- onBlur: B,
5110
+ onBlur: N,
5095
5111
  onInput: te,
5096
5112
  onClear: $,
5097
- onChange: Q,
5113
+ onChange: X,
5098
5114
  onFocus: v[2] || (v[2] = () => {
5099
5115
  var me;
5100
5116
  return console.log("[RenderFormItem] i18n input focused, field:", a.field.__vModel__, "i18n:", (me = a.field.__config__) == null ? void 0 : me.i18n);
@@ -5118,10 +5134,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5118
5134
  readonly: a.field.readonly,
5119
5135
  maxlength: a.field.maxlength || 500,
5120
5136
  rows: a.field.rows || 3,
5121
- onBlur: B,
5137
+ onBlur: N,
5122
5138
  onInput: te,
5123
5139
  onClear: $,
5124
- onChange: Q
5140
+ onChange: X
5125
5141
  }, null, 8, ["modelValue", "placeholder", "disabled", "readonly", "maxlength", "rows"])) : y.value === "number" ? (l(), Y(Ae, {
5126
5142
  key: 3,
5127
5143
  modelValue: z.value,
@@ -5131,7 +5147,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5131
5147
  min: a.field.min,
5132
5148
  max: a.field.max,
5133
5149
  step: a.field.step || 1,
5134
- onChange: Q
5150
+ onChange: X
5135
5151
  }, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : y.value === "select" ? (l(), Y(ea, {
5136
5152
  key: 4,
5137
5153
  modelValue: z.value,
@@ -5143,7 +5159,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5143
5159
  multiple: a.field.multiple,
5144
5160
  options: Array.isArray(a.field.options) ? a.field.options : [],
5145
5161
  keys: a.field.props || { label: "label", value: "value" },
5146
- onChange: Q
5162
+ onChange: X
5147
5163
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : y.value === "date" ? (l(), Y(He, {
5148
5164
  key: 5,
5149
5165
  modelValue: z.value,
@@ -5154,7 +5170,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5154
5170
  mode: a.field.type === "datetime" ? "date" : a.field.type || "date",
5155
5171
  "enable-time-picker": a.field.type === "datetime",
5156
5172
  format: E(a.field.type),
5157
- onChange: Q
5173
+ onChange: X
5158
5174
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : y.value === "dateRange" ? (l(), Y(la, {
5159
5175
  key: 6,
5160
5176
  modelValue: z.value,
@@ -5172,7 +5188,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5172
5188
  placeholder: a.field.placeholder,
5173
5189
  disabled: j.value,
5174
5190
  clearable: a.field.clearable !== !1,
5175
- onChange: Q
5191
+ onChange: X
5176
5192
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : y.value === "rangeTime" ? (l(), Y(_a, {
5177
5193
  key: 8,
5178
5194
  modelValue: z.value,
@@ -5186,7 +5202,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5186
5202
  modelValue: z.value,
5187
5203
  "onUpdate:modelValue": v[10] || (v[10] = (me) => z.value = me),
5188
5204
  disabled: j.value,
5189
- onChange: Q
5205
+ onChange: X
5190
5206
  }, null, 8, ["modelValue", "disabled"])) : y.value === "rate" ? (l(), Y(Ya, {
5191
5207
  key: 10,
5192
5208
  modelValue: z.value,
@@ -5194,13 +5210,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5194
5210
  disabled: j.value,
5195
5211
  max: a.field.max || 5,
5196
5212
  half: a.field.allowHalf,
5197
- onChange: Q
5213
+ onChange: X
5198
5214
  }, null, 8, ["modelValue", "disabled", "max", "half"])) : y.value === "radio" ? (l(), Y(Ja, {
5199
5215
  key: 11,
5200
5216
  modelValue: z.value,
5201
5217
  "onUpdate:modelValue": v[12] || (v[12] = (me) => z.value = me),
5202
5218
  disabled: j.value,
5203
- onChange: Q
5219
+ onChange: X
5204
5220
  }, {
5205
5221
  default: i(() => [
5206
5222
  (l(!0), o(fe, null, ye(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), Y(Ha, {
@@ -5219,7 +5235,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5219
5235
  modelValue: z.value,
5220
5236
  "onUpdate:modelValue": v[13] || (v[13] = (me) => z.value = me),
5221
5237
  disabled: j.value,
5222
- onChange: Q
5238
+ onChange: X
5223
5239
  }, {
5224
5240
  default: i(() => [
5225
5241
  (l(!0), o(fe, null, ye(Array.isArray(a.field.options) ? a.field.options : [], (me) => (l(), Y(xa, {
@@ -5242,7 +5258,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5242
5258
  clearable: a.field.clearable !== !1,
5243
5259
  options: Array.isArray(a.field.options) ? a.field.options : [],
5244
5260
  keys: a.field.props || { label: "label", value: "value", children: "children" },
5245
- onChange: Q
5261
+ onChange: X
5246
5262
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options", "keys"])) : y.value === "treeSelect" ? (l(), Y(Ga, {
5247
5263
  key: 14,
5248
5264
  modelValue: z.value,
@@ -5254,7 +5270,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5254
5270
  multiple: a.field.multiple,
5255
5271
  data: Ye(a.field),
5256
5272
  "tree-props": a.field.props || { keys: { label: "label", value: "value", children: "children" } },
5257
- onChange: Q
5273
+ onChange: X
5258
5274
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : y.value === "autoComplete" ? (l(), Y(Xa, {
5259
5275
  key: 15,
5260
5276
  modelValue: z.value,
@@ -5263,7 +5279,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5263
5279
  disabled: j.value,
5264
5280
  clearable: a.field.clearable !== !1,
5265
5281
  options: Array.isArray(a.field.options) ? a.field.options : [],
5266
- onChange: Q
5282
+ onChange: X
5267
5283
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "options"])) : y.value === "uploadImg" ? (l(), Y(Ea, {
5268
5284
  key: 16,
5269
5285
  modelValue: z.value,
@@ -5281,7 +5297,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5281
5297
  image: "请选择图片"
5282
5298
  }
5283
5299
  },
5284
- onChange: Q
5300
+ onChange: X
5285
5301
  }, null, 8, ["modelValue", "disabled", "max", "accept", "size-limit", "action", "auto-upload", "show-image-file-name"])) : y.value === "upload" ? (l(), Y(Ea, {
5286
5302
  key: 17,
5287
5303
  modelValue: z.value,
@@ -5290,7 +5306,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5290
5306
  max: a.field.limit || 1,
5291
5307
  accept: a.field.accept,
5292
5308
  "size-limit": { size: a.field.fileSize || 10, unit: a.field.sizeUnit || "MB" },
5293
- onChange: Q
5309
+ onChange: X
5294
5310
  }, {
5295
5311
  default: i(() => [
5296
5312
  s(ma, { disabled: a.disabled }, {
@@ -5309,7 +5325,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5309
5325
  modelValue: z.value,
5310
5326
  "onUpdate:modelValue": v[19] || (v[19] = (me) => z.value = me),
5311
5327
  disabled: j.value,
5312
- onChange: Q
5328
+ onChange: X
5313
5329
  }, null, 8, ["modelValue", "disabled"])) : y.value === "slider" ? (l(), Y(Pa, {
5314
5330
  key: 19,
5315
5331
  modelValue: z.value,
@@ -5318,7 +5334,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5318
5334
  min: a.field.min || 0,
5319
5335
  max: a.field.max || 100,
5320
5336
  step: a.field.step || 1,
5321
- onChange: Q
5337
+ onChange: X
5322
5338
  }, null, 8, ["modelValue", "disabled", "min", "max", "step"])) : y.value === "progress" ? (l(), Y(Za, {
5323
5339
  key: 20,
5324
5340
  percentage: z.value || a.field.defaultValue || 0,
@@ -5402,7 +5418,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5402
5418
  clearable: a.field.clearable !== !1,
5403
5419
  max: a.field.max,
5404
5420
  "min-collapsed-num": a.field.minCollapsedNum,
5405
- onChange: Q
5421
+ onChange: X
5406
5422
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "max", "min-collapsed-num"])) : y.value === "billno" ? (l(), o(fe, { key: 28 }, [
5407
5423
  j.value ? (l(), o("div", uu, [
5408
5424
  e("span", cu, V(z.value), 1)
@@ -5412,10 +5428,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5412
5428
  "onUpdate:modelValue": v[23] || (v[23] = (me) => z.value = me),
5413
5429
  placeholder: a.field.placeholder || "请输入单据编号",
5414
5430
  clearable: a.field.clearable !== !1,
5415
- onBlur: B,
5431
+ onBlur: N,
5416
5432
  onInput: te,
5417
5433
  onClear: $,
5418
- onChange: Q
5434
+ onChange: X
5419
5435
  }, null, 8, ["modelValue", "placeholder", "clearable"]))
5420
5436
  ], 64)) : y.value === "relationFormAttr" ? (l(), Y(ie, {
5421
5437
  key: 29,
@@ -5456,8 +5472,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5456
5472
  "dialog-loading": _e(a.field.__vModel__ || "", "dialogLoading"),
5457
5473
  "dialog-pagination": _e(a.field.__vModel__ || "", "dialogPagination"),
5458
5474
  "cd-form-config": _e(a.field.__vModel__ || "", "cdFormConfig"),
5459
- onChange: Q,
5460
- onSearch: v[26] || (v[26] = (me) => X(a.field, me.keyword)),
5475
+ onChange: X,
5476
+ onSearch: v[26] || (v[26] = (me) => Q(a.field, me.keyword)),
5461
5477
  onAdvancedSelect: v[27] || (v[27] = (me) => ae(a.field)),
5462
5478
  onDialogSearch: v[28] || (v[28] = (me) => De(a.field, me)),
5463
5479
  onDialogPageChange: v[29] || (v[29] = (me) => Te(a.field, me))
@@ -5479,7 +5495,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5479
5495
  clearable: a.field.clearable !== !1,
5480
5496
  onClear: ce,
5481
5497
  onInput: te,
5482
- onChange: Q
5498
+ onChange: X
5483
5499
  }, {
5484
5500
  "suffix-icon": i(() => [
5485
5501
  e("i", {
@@ -5496,10 +5512,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5496
5512
  placeholder: a.field.placeholder || `请输入${a.field.__config__.label}`,
5497
5513
  disabled: j.value,
5498
5514
  clearable: a.field.clearable !== !1,
5499
- onBlur: B,
5515
+ onBlur: N,
5500
5516
  onInput: te,
5501
5517
  onClear: $,
5502
- onChange: Q
5518
+ onChange: X
5503
5519
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable"]))
5504
5520
  ];
5505
5521
  }),
@@ -5570,15 +5586,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5570
5586
  ref: c
5571
5587
  }, ge.value, {
5572
5588
  data: q.value,
5573
- columns: G.value,
5574
- "onUpdate:data": K,
5589
+ columns: K.value,
5590
+ "onUpdate:data": G,
5575
5591
  onEditClosed: T,
5576
5592
  "keyboard-config": _.value
5577
5593
  }), null, 16, ["data", "columns", "keyboard-config"]),
5578
5594
  s(tu, {
5579
5595
  visible: m.value,
5580
5596
  "onUpdate:visible": v[31] || (v[31] = (we) => m.value = we),
5581
- columns: G.value,
5597
+ columns: K.value,
5582
5598
  "field-configs": C.value,
5583
5599
  onAddData: de,
5584
5600
  onAiParse: ue
@@ -5948,15 +5964,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5948
5964
  const _ = pa({}), C = (w) => w ? w.startsWith("t-") ? w.toLowerCase() : "t-" + w.replace(/([A-Z])/g, (z, re, E) => E > 0 ? "-" + re.toLowerCase() : re.toLowerCase()) : "", r = (w, y) => {
5949
5965
  !w || !Array.isArray(w) || w.forEach((z) => {
5950
5966
  const re = z.__config__, E = re.cdkey;
5951
- re.layout === "colFormItem" && z.__vModel__ ? y(z) : re.layout === "rowFormItem" && re.children && Array.isArray(re.children) ? r(re.children, y) : E === "tab" && re.children && Array.isArray(re.children) ? re.children.forEach((B) => {
5952
- var Q;
5953
- (Q = B.__config__) != null && Q.children && Array.isArray(B.__config__.children) && r(B.__config__.children, y);
5954
- }) : E === "collapse" && re.children && Array.isArray(re.children) ? re.children.forEach((B) => {
5955
- var Q;
5956
- (Q = B.__config__) != null && Q.children && Array.isArray(B.__config__.children) && r(B.__config__.children, y);
5957
- }) : E === "tableGrid" && re.children && Array.isArray(re.children) && re.children.forEach((B) => {
5958
- var Q;
5959
- (Q = B.__config__) != null && Q.children && Array.isArray(B.__config__.children) && B.__config__.children.forEach((te) => {
5967
+ re.layout === "colFormItem" && z.__vModel__ ? y(z) : re.layout === "rowFormItem" && re.children && Array.isArray(re.children) ? r(re.children, y) : E === "tab" && re.children && Array.isArray(re.children) ? re.children.forEach((N) => {
5968
+ var X;
5969
+ (X = N.__config__) != null && X.children && Array.isArray(N.__config__.children) && r(N.__config__.children, y);
5970
+ }) : E === "collapse" && re.children && Array.isArray(re.children) ? re.children.forEach((N) => {
5971
+ var X;
5972
+ (X = N.__config__) != null && X.children && Array.isArray(N.__config__.children) && r(N.__config__.children, y);
5973
+ }) : E === "tableGrid" && re.children && Array.isArray(re.children) && re.children.forEach((N) => {
5974
+ var X;
5975
+ (X = N.__config__) != null && X.children && Array.isArray(N.__config__.children) && N.__config__.children.forEach((te) => {
5960
5976
  var $;
5961
5977
  ($ = te.__config__) != null && $.children && Array.isArray(te.__config__.children) && r(te.__config__.children, y);
5962
5978
  });
@@ -5972,10 +5988,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5972
5988
  required: !0,
5973
5989
  message: `请输入${z.label}`,
5974
5990
  trigger: z.trigger || "blur"
5975
- }), y.__config__.regList && y.__config__.regList.length > 0 && y.__config__.regList.forEach((B) => {
5991
+ }), y.__config__.regList && y.__config__.regList.length > 0 && y.__config__.regList.forEach((N) => {
5976
5992
  E.push({
5977
- pattern: new RegExp(B.pattern),
5978
- message: B.message,
5993
+ pattern: new RegExp(N.pattern),
5994
+ message: N.message,
5979
5995
  trigger: z.trigger || "blur"
5980
5996
  });
5981
5997
  }), E.length > 0 && (w[re] = E);
@@ -5991,61 +6007,61 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
5991
6007
  if (z && ((re = z.__config__) == null ? void 0 : re.cdkey) === "relationForm")
5992
6008
  if (y && typeof y == "object" && y !== null) {
5993
6009
  let E = y.id || y.fid || y.ID || y.FID;
5994
- _[w] = E, _[w + "_data"] = y, G(w, y);
6010
+ _[w] = E, _[w + "_data"] = y, K(w, y);
5995
6011
  } else
5996
- _[w] = y, _[w + "_data"] = null, G(w, null);
6012
+ _[w] = y, _[w + "_data"] = null, K(w, null);
5997
6013
  else
5998
6014
  _[w] = y;
5999
6015
  u("update:modelValue", { ..._ }), u("field-change", w, y), S(w, "change", y);
6000
6016
  }, q = (w) => {
6001
6017
  u("i18n-click", w);
6002
- }, G = (w, y) => {
6018
+ }, K = (w, y) => {
6003
6019
  r(b.fields, (z) => {
6004
6020
  var re;
6005
6021
  if (((re = z.__config__) == null ? void 0 : re.cdkey) === "relationFormAttr" && z.relationField === w) {
6006
- const E = z.__vModel__, B = z.showField;
6007
- if (!E || !B) return;
6022
+ const E = z.__vModel__, N = z.showField;
6023
+ if (!E || !N) return;
6008
6024
  if (z.saveRelationData === !1 || z.saveRelationData === 0) {
6009
6025
  _[E] = null;
6010
6026
  return;
6011
6027
  }
6012
6028
  if (y && typeof y == "object") {
6013
- let Q = null;
6029
+ let X = null;
6014
6030
  if (Array.isArray(y)) {
6015
- const te = y.map(($) => typeof $ == "object" && $ !== null ? $[B] : $).filter(($) => $ != null);
6031
+ const te = y.map(($) => typeof $ == "object" && $ !== null ? $[N] : $).filter(($) => $ != null);
6016
6032
  if (z.aggregation) {
6017
6033
  const $ = te.map((I) => parseFloat(I)).filter((I) => !isNaN(I));
6018
6034
  switch (z.aggregation) {
6019
6035
  case "sum":
6020
- Q = $.reduce((I, oe) => I + oe, 0);
6036
+ X = $.reduce((I, oe) => I + oe, 0);
6021
6037
  break;
6022
6038
  case "average":
6023
- Q = $.length > 0 ? $.reduce((I, oe) => I + oe, 0) / $.length : null;
6039
+ X = $.length > 0 ? $.reduce((I, oe) => I + oe, 0) / $.length : null;
6024
6040
  break;
6025
6041
  case "round":
6026
- Q = $.length > 0 ? Math.round($.reduce((I, oe) => I + oe, 0) / $.length) : null;
6042
+ X = $.length > 0 ? Math.round($.reduce((I, oe) => I + oe, 0) / $.length) : null;
6027
6043
  break;
6028
6044
  case "floor":
6029
- Q = $.length > 0 ? Math.floor($.reduce((I, oe) => I + oe, 0) / $.length) : null;
6045
+ X = $.length > 0 ? Math.floor($.reduce((I, oe) => I + oe, 0) / $.length) : null;
6030
6046
  break;
6031
6047
  case "ceiling":
6032
- Q = $.length > 0 ? Math.ceil($.reduce((I, oe) => I + oe, 0) / $.length) : null;
6048
+ X = $.length > 0 ? Math.ceil($.reduce((I, oe) => I + oe, 0) / $.length) : null;
6033
6049
  break;
6034
6050
  default:
6035
- Q = te.join(", ");
6051
+ X = te.join(", ");
6036
6052
  }
6037
6053
  } else
6038
- Q = te.join(", ");
6054
+ X = te.join(", ");
6039
6055
  } else
6040
- Q = y[B];
6041
- _[E] = Q;
6056
+ X = y[N];
6057
+ _[E] = X;
6042
6058
  } else
6043
6059
  _[E] = null;
6044
6060
  }
6045
6061
  });
6046
6062
  }, ge = (w) => {
6047
6063
  u("select-org-data", w);
6048
- }, K = (w) => {
6064
+ }, G = (w) => {
6049
6065
  u("relation-form-search", w);
6050
6066
  }, A = (w) => {
6051
6067
  u("relation-form-advanced", w);
@@ -6054,13 +6070,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6054
6070
  }, d = (w) => {
6055
6071
  u("relation-form-page-change", w);
6056
6072
  }, S = (w, y, z) => {
6057
- var B;
6058
- const re = b.fields.find((Q) => Q.__vModel__ === w);
6073
+ var N;
6074
+ const re = b.fields.find((X) => X.__vModel__ === w);
6059
6075
  if (!re) return;
6060
- const E = (B = re.on) == null ? void 0 : B[y];
6076
+ const E = (N = re.on) == null ? void 0 : N[y];
6061
6077
  if (E && typeof E == "string")
6062
6078
  try {
6063
- const Q = {
6079
+ const X = {
6064
6080
  data: z,
6065
6081
  formData: _,
6066
6082
  setFormData: ($) => Object.assign(_, $),
@@ -6075,9 +6091,9 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6075
6091
  new Function("context", `
6076
6092
  const { data, formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
6077
6093
  ${E}
6078
- `)(Q);
6079
- } catch (Q) {
6080
- console.error(`执行字段 ${w} 的 ${y} 事件脚本出错:`, Q);
6094
+ `)(X);
6095
+ } catch (X) {
6096
+ console.error(`执行字段 ${w} 的 ${y} 事件脚本出错:`, X);
6081
6097
  }
6082
6098
  }, g = (w) => {
6083
6099
  Object.keys(_).forEach((y) => {
@@ -6139,7 +6155,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6139
6155
  if (((te = y.__config__) == null ? void 0 : te.cdkey) !== "treeSelect") return;
6140
6156
  const re = y.releaseId;
6141
6157
  if (!re || Array.isArray(y.options) && y.options.length > 0) return;
6142
- const E = y.parentField || "FPARENTID", B = y.valueField || "fid", Q = y.labelField || "FNAME";
6158
+ const E = y.parentField || "FPARENTID", N = y.valueField || "fid", X = y.labelField || "FNAME";
6143
6159
  try {
6144
6160
  const he = (($ = (await (await fetch(`/api/visualdev/OnlineDev/list/${re}`, {
6145
6161
  method: "POST",
@@ -6148,16 +6164,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6148
6164
  })).json()).data) == null ? void 0 : $.list) || [], ke = /* @__PURE__ */ new Map(), Ee = [];
6149
6165
  for (const qe of he) {
6150
6166
  const ce = {
6151
- value: qe[B],
6152
- label: qe[Q] || qe[B],
6167
+ value: qe[N],
6168
+ label: qe[X] || qe[N],
6153
6169
  children: [],
6154
6170
  _parentId: qe[E]
6155
6171
  };
6156
6172
  ke.set(String(ce.value), ce);
6157
6173
  }
6158
6174
  for (const qe of ke.values()) {
6159
- const ce = String(qe._parentId || "0"), N = ke.get(ce);
6160
- N && N !== qe ? N.children.push(qe) : Ee.push(qe), delete qe._parentId;
6175
+ const ce = String(qe._parentId || "0"), B = ke.get(ce);
6176
+ B && B !== qe ? B.children.push(qe) : Ee.push(qe), delete qe._parentId;
6161
6177
  }
6162
6178
  const Ce = (qe) => {
6163
6179
  for (const ce of qe)
@@ -6219,10 +6235,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6219
6235
  class: "cd-row"
6220
6236
  }, {
6221
6237
  default: i(() => [
6222
- (l(!0), o(fe, null, ye(a.fields, (E, B) => {
6223
- var Q;
6238
+ (l(!0), o(fe, null, ye(a.fields, (E, N) => {
6239
+ var X;
6224
6240
  return l(), o(fe, {
6225
- key: ((Q = E.__config__) == null ? void 0 : Q.formId) || E.__vModel__ || B
6241
+ key: ((X = E.__config__) == null ? void 0 : X.formId) || E.__vModel__ || N
6226
6242
  }, [
6227
6243
  !E.__config__.noShow && D(E) ? (l(), Y(Fa, {
6228
6244
  key: 0,
@@ -6238,7 +6254,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
6238
6254
  onChange: ee,
6239
6255
  onI18nClick: q,
6240
6256
  onSelectOrgData: ge,
6241
- onRelationFormSearch: K,
6257
+ onRelationFormSearch: G,
6242
6258
  onRelationFormAdvanced: A,
6243
6259
  onRelationFormDialogSearch: W,
6244
6260
  onRelationFormPageChange: d
@@ -11864,7 +11880,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11864
11880
  na(() => {
11865
11881
  O("search", { ...r.filterCondition });
11866
11882
  });
11867
- }, G = (A) => {
11883
+ }, K = (A) => {
11868
11884
  r.filterCondition.value = A, O("search", { ...r.filterCondition });
11869
11885
  }, ge = ve(() => {
11870
11886
  var A;
@@ -11947,7 +11963,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11947
11963
  { key: "ends_with", label: "结尾是", value: "ends_with" }
11948
11964
  ];
11949
11965
  }
11950
- }), K = () => {
11966
+ }), G = () => {
11951
11967
  na(() => {
11952
11968
  O("search", { ...r.filterCondition });
11953
11969
  });
@@ -11964,7 +11980,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
11964
11980
  placeholder: "请选择字段",
11965
11981
  size: r.size,
11966
11982
  style: { "min-width": "80px", "max-width": "110px" },
11967
- onChange: K,
11983
+ onChange: G,
11968
11984
  filterable: ""
11969
11985
  }, {
11970
11986
  default: i(() => [
@@ -12062,7 +12078,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12062
12078
  style: { "min-width": "80px", "max-width": "120px" },
12063
12079
  clearable: "",
12064
12080
  loading: !1,
12065
- onChange: G
12081
+ onChange: K
12066
12082
  }, null, 8, ["modelValue", "options", "size"])) : (l(), Y(P, {
12067
12083
  key: 6,
12068
12084
  modelValue: r.filterCondition.value,
@@ -12147,21 +12163,21 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12147
12163
  selectedUsers: []
12148
12164
  }, c.value = [], m.value = [];
12149
12165
  }, C = (q) => {
12150
- console.log("选中人员:", q), q.map((G) => ({
12151
- id: G.id,
12152
- name: G.displayName || G.name,
12166
+ console.log("选中人员:", q), q.map((K) => ({
12167
+ id: K.id,
12168
+ name: K.displayName || K.name,
12153
12169
  avatar: "",
12154
- department: G.department,
12155
- role: G.position,
12170
+ department: K.department,
12171
+ role: K.position,
12156
12172
  email: "",
12157
- mobile: G.phone || "",
12173
+ mobile: K.phone || "",
12158
12174
  employeeId: "",
12159
12175
  signature: "",
12160
12176
  tags: [],
12161
- isUser: G.isUser === !0
12162
- })).forEach((G) => {
12163
- c.value.find((ge) => ge.id === G.id) || c.value.push(G);
12164
- }), u.value.selectedUsers = c.value.map((G) => G.id);
12177
+ isUser: K.isUser === !0
12178
+ })).forEach((K) => {
12179
+ c.value.find((ge) => ge.id === K.id) || c.value.push(K);
12180
+ }), u.value.selectedUsers = c.value.map((K) => K.id);
12165
12181
  }, r = (q) => {
12166
12182
  b("load-users", q);
12167
12183
  }, O = (q) => {
@@ -12186,12 +12202,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12186
12202
  }, ee = () => {
12187
12203
  b("close"), b("update:visible", !1);
12188
12204
  };
12189
- return (q, G) => {
12190
- const ge = M("t-input"), K = M("t-form-item"), A = M("t-radio"), W = M("t-tooltip"), d = M("t-radio-group"), S = M("t-form"), g = M("t-button"), P = M("t-dialog");
12205
+ return (q, K) => {
12206
+ const ge = M("t-input"), G = M("t-form-item"), A = M("t-radio"), W = M("t-tooltip"), d = M("t-radio-group"), S = M("t-form"), g = M("t-button"), P = M("t-dialog");
12191
12207
  return l(), Y(P, {
12192
12208
  header: a.isEditing ? "编辑筛选方案" : "保存筛选方案",
12193
12209
  visible: a.visible,
12194
- "onUpdate:visible": G[3] || (G[3] = (T) => q.$emit("update:visible", T)),
12210
+ "onUpdate:visible": K[3] || (K[3] = (T) => q.$emit("update:visible", T)),
12195
12211
  width: "600px",
12196
12212
  footer: !0,
12197
12213
  onConfirm: L,
@@ -12205,35 +12221,35 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12205
12221
  "label-width": "100px"
12206
12222
  }, {
12207
12223
  default: i(() => [
12208
- s(K, {
12224
+ s(G, {
12209
12225
  label: "方案名称",
12210
12226
  required: ""
12211
12227
  }, {
12212
12228
  default: i(() => [
12213
12229
  s(ge, {
12214
12230
  modelValue: u.value.planName,
12215
- "onUpdate:modelValue": G[0] || (G[0] = (T) => u.value.planName = T),
12231
+ "onUpdate:modelValue": K[0] || (K[0] = (T) => u.value.planName = T),
12216
12232
  placeholder: "请输入方案名称"
12217
12233
  }, null, 8, ["modelValue"])
12218
12234
  ]),
12219
12235
  _: 1
12220
12236
  }),
12221
- s(K, { label: "共享设置" }, {
12237
+ s(G, { label: "共享设置" }, {
12222
12238
  default: i(() => [
12223
12239
  s(d, {
12224
12240
  modelValue: u.value.shareMode,
12225
- "onUpdate:modelValue": G[1] || (G[1] = (T) => u.value.shareMode = T),
12241
+ "onUpdate:modelValue": K[1] || (K[1] = (T) => u.value.shareMode = T),
12226
12242
  disabled: R.value
12227
12243
  }, {
12228
12244
  default: i(() => [
12229
12245
  s(A, { value: "none" }, {
12230
- default: i(() => [...G[4] || (G[4] = [
12246
+ default: i(() => [...K[4] || (K[4] = [
12231
12247
  U("不共享", -1)
12232
12248
  ])]),
12233
12249
  _: 1
12234
12250
  }),
12235
12251
  s(A, { value: "share" }, {
12236
- default: i(() => [...G[5] || (G[5] = [
12252
+ default: i(() => [...K[5] || (K[5] = [
12237
12253
  U("共享给其他人", -1)
12238
12254
  ])]),
12239
12255
  _: 1
@@ -12244,7 +12260,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12244
12260
  }, {
12245
12261
  default: i(() => [
12246
12262
  s(A, { value: "copy" }, {
12247
- default: i(() => [...G[6] || (G[6] = [
12263
+ default: i(() => [...K[6] || (K[6] = [
12248
12264
  U("复制给其他人", -1)
12249
12265
  ])]),
12250
12266
  _: 1
@@ -12258,24 +12274,24 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12258
12274
  ]),
12259
12275
  _: 1
12260
12276
  }),
12261
- u.value.shareMode === "share" ? (l(), Y(K, {
12277
+ u.value.shareMode === "share" ? (l(), Y(G, {
12262
12278
  key: 0,
12263
12279
  label: "共享范围"
12264
12280
  }, {
12265
12281
  default: i(() => [
12266
12282
  s(d, {
12267
12283
  modelValue: u.value.shareType,
12268
- "onUpdate:modelValue": G[2] || (G[2] = (T) => u.value.shareType = T)
12284
+ "onUpdate:modelValue": K[2] || (K[2] = (T) => u.value.shareType = T)
12269
12285
  }, {
12270
12286
  default: i(() => [
12271
12287
  s(A, { value: "specific" }, {
12272
- default: i(() => [...G[7] || (G[7] = [
12288
+ default: i(() => [...K[7] || (K[7] = [
12273
12289
  U("指定用户", -1)
12274
12290
  ])]),
12275
12291
  _: 1
12276
12292
  }),
12277
12293
  s(A, { value: "all" }, {
12278
- default: i(() => [...G[8] || (G[8] = [
12294
+ default: i(() => [...K[8] || (K[8] = [
12279
12295
  U("所有用户", -1)
12280
12296
  ])]),
12281
12297
  _: 1
@@ -12286,7 +12302,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12286
12302
  ]),
12287
12303
  _: 1
12288
12304
  })) : H("", !0),
12289
- u.value.shareMode === "share" && u.value.shareType === "specific" || u.value.shareMode === "copy" ? (l(), Y(K, {
12305
+ u.value.shareMode === "share" && u.value.shareType === "specific" || u.value.shareMode === "copy" ? (l(), Y(G, {
12290
12306
  key: 1,
12291
12307
  label: "共享人员"
12292
12308
  }, {
@@ -12317,7 +12333,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12317
12333
  theme: "default",
12318
12334
  onClick: ee
12319
12335
  }, {
12320
- default: i(() => [...G[9] || (G[9] = [
12336
+ default: i(() => [...K[9] || (K[9] = [
12321
12337
  U("取消", -1)
12322
12338
  ])]),
12323
12339
  _: 1
@@ -12326,7 +12342,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12326
12342
  theme: "primary",
12327
12343
  onClick: L
12328
12344
  }, {
12329
- default: i(() => [...G[10] || (G[10] = [
12345
+ default: i(() => [...K[10] || (K[10] = [
12330
12346
  U("确定", -1)
12331
12347
  ])]),
12332
12348
  _: 1
@@ -12419,32 +12435,32 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12419
12435
  ],
12420
12436
  setup(a, { emit: le }) {
12421
12437
  const n = a, b = le, u = F(JSON.parse(JSON.stringify(n.filterCards))), c = F(n.topOp), m = F(null), R = F(!1), _ = F([]), C = F("filter"), r = F(!1), O = F(""), D = F("none"), L = F("specific"), ee = F([]), q = F(null);
12422
- let G = 100;
12423
- Fe(() => n.filterCards, (X) => {
12424
- u.value = JSON.parse(JSON.stringify(X));
12425
- }, { deep: !0 }), Fe(() => n.topOp, (X) => {
12426
- c.value = X;
12438
+ let K = 100;
12439
+ Fe(() => n.filterCards, (Q) => {
12440
+ u.value = JSON.parse(JSON.stringify(Q));
12441
+ }, { deep: !0 }), Fe(() => n.topOp, (Q) => {
12442
+ c.value = Q;
12427
12443
  });
12428
12444
  const ge = () => {
12429
12445
  u.value.push({
12430
- id: G++,
12446
+ id: K++,
12431
12447
  connector: "and",
12432
12448
  conditions: [{ field: "", operator: "eq", value: "" }]
12433
12449
  });
12434
- }, K = (X) => {
12435
- u.value.length > 1 ? u.value.splice(X, 1) : Oe.warning("至少需要保留一个筛选卡片");
12436
- }, A = (X) => {
12437
- X >= 0 && X < u.value.length && u.value[X].conditions.push({
12450
+ }, G = (Q) => {
12451
+ u.value.length > 1 ? u.value.splice(Q, 1) : Oe.warning("至少需要保留一个筛选卡片");
12452
+ }, A = (Q) => {
12453
+ Q >= 0 && Q < u.value.length && u.value[Q].conditions.push({
12438
12454
  field: "",
12439
12455
  operator: "eq",
12440
12456
  value: ""
12441
12457
  });
12442
- }, W = (X, ae) => {
12443
- if (X >= 0 && X < u.value.length) {
12444
- const De = u.value[X];
12458
+ }, W = (Q, ae) => {
12459
+ if (Q >= 0 && Q < u.value.length) {
12460
+ const De = u.value[Q];
12445
12461
  De.conditions.length > 1 && ae >= 0 && ae < De.conditions.length ? De.conditions.splice(ae, 1) : De.conditions.length <= 1 && Oe.warning("每个卡片至少需要一个筛选条件");
12446
12462
  }
12447
- }, d = (X) => X.map((ae) => {
12463
+ }, d = (Q) => Q.map((ae) => {
12448
12464
  const De = ae.conditions.filter((Te) => Te.field && Te.field.trim() !== "").map((Te) => {
12449
12465
  let Se = "";
12450
12466
  return Te.value !== null && Te.value !== void 0 && (Array.isArray(Te.value) ? Se = Te.value.join("/") : Se = String(Te.value)), {
@@ -12458,28 +12474,28 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12458
12474
  connector: ae.connector || "and",
12459
12475
  conditions: De.length > 0 ? De : [{ field: "", operator: "eq", value: "" }]
12460
12476
  };
12461
- }).filter((ae) => ae.conditions.length > 0 && ae.conditions[0].field !== ""), S = (X) => {
12462
- if (X.value !== "empty" && (m.value = X, b("plan-click", X), X.precepts && (u.value = JSON.parse(JSON.stringify(X.precepts))), X.sqlConnectType && (c.value = X.sqlConnectType), X.columns && X.columns.length > 0)) {
12463
- $.value = {}, I.value = {}, Q.value = X.columns.filter((Ue) => Ue.show !== !1).map((Ue) => Ue.value), X.columns.forEach((Ue) => {
12477
+ }).filter((ae) => ae.conditions.length > 0 && ae.conditions[0].field !== ""), S = (Q) => {
12478
+ if (Q.value !== "empty" && (m.value = Q, b("plan-click", Q), Q.precepts && (u.value = JSON.parse(JSON.stringify(Q.precepts))), Q.sqlConnectType && (c.value = Q.sqlConnectType), Q.columns && Q.columns.length > 0)) {
12479
+ $.value = {}, I.value = {}, X.value = Q.columns.filter((Ue) => Ue.show !== !1).map((Ue) => Ue.value), Q.columns.forEach((Ue) => {
12464
12480
  Ue.width && ($.value[Ue.value] = parseInt(Ue.width)), Ue.fixed ? I.value[Ue.value] = Ue.fixed : I.value[Ue.value] = "none";
12465
12481
  });
12466
- const ae = X.columns.map((Ue) => Ue.value), De = ae.map(
12482
+ const ae = Q.columns.map((Ue) => Ue.value), De = ae.map(
12467
12483
  (Ue) => n.fieldOptions.find((ra) => ra.value === Ue)
12468
12484
  ).filter(Boolean), Te = n.fieldOptions.filter(
12469
12485
  (Ue) => !ae.includes(Ue.value)
12470
12486
  );
12471
- oe.value = [...De, ...Te], te.value = Q.value.length === n.fieldOptions.length;
12472
- const Se = X.columns.filter((Ue) => Ue.show !== !1);
12487
+ oe.value = [...De, ...Te], te.value = X.value.length === n.fieldOptions.length;
12488
+ const Se = Q.columns.filter((Ue) => Ue.show !== !1);
12473
12489
  b("column-change", Se);
12474
12490
  }
12475
12491
  }, g = () => {
12476
12492
  r.value = !1, q.value = null, O.value = "", D.value = "none", L.value = "specific", ee.value = [], R.value = !0;
12477
- }, P = (X) => {
12493
+ }, P = (Q) => {
12478
12494
  const ae = oe.value.map((De) => {
12479
12495
  const Te = $.value[De.value], Se = I.value[De.value] || "none";
12480
12496
  return {
12481
12497
  value: De.value,
12482
- show: Q.value.includes(De.value),
12498
+ show: X.value.includes(De.value),
12483
12499
  // 是否显示
12484
12500
  width: Te ? `${Te}px` : "120px",
12485
12501
  fixed: Se
@@ -12487,25 +12503,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12487
12503
  };
12488
12504
  });
12489
12505
  r.value && q.value ? b("update-plan", {
12490
- ...X,
12506
+ ...Q,
12491
12507
  plan: q.value,
12492
12508
  filterCards: u.value,
12493
12509
  topOp: c.value,
12494
12510
  columns: ae
12495
12511
  }) : b("save-plan", {
12496
- ...X,
12512
+ ...Q,
12497
12513
  filterCards: u.value,
12498
12514
  topOp: c.value,
12499
12515
  columns: ae
12500
12516
  }), r.value = !1, q.value = null;
12501
- }, T = (X) => {
12502
- r.value = !0, q.value = X, O.value = X.content || "", D.value = X.shareMode || "none", L.value = X.shareType || "specific", ee.value = X.selectedUsers || [], R.value = !0;
12503
- }, de = (X) => {
12504
- b("copy-plan", X);
12505
- }, ue = (X) => {
12506
- b("delete-plan", X);
12507
- }, j = (X) => {
12508
- b("set-default-plan", X);
12517
+ }, T = (Q) => {
12518
+ r.value = !0, q.value = Q, O.value = Q.content || "", D.value = Q.shareMode || "none", L.value = Q.shareType || "specific", ee.value = Q.selectedUsers || [], R.value = !0;
12519
+ }, de = (Q) => {
12520
+ b("copy-plan", Q);
12521
+ }, ue = (Q) => {
12522
+ b("delete-plan", Q);
12523
+ }, j = (Q) => {
12524
+ b("set-default-plan", Q);
12509
12525
  }, w = () => {
12510
12526
  m.value = null, u.value = [
12511
12527
  {
@@ -12519,88 +12535,88 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12519
12535
  ], c.value = "and", b("reset");
12520
12536
  }, y = () => {
12521
12537
  if (C.value === "filter") {
12522
- const X = d(u.value);
12538
+ const Q = d(u.value);
12523
12539
  b("confirm", {
12524
- filterCards: X,
12540
+ filterCards: Q,
12525
12541
  type1: c.value
12526
12542
  });
12527
12543
  } else C.value === "column" && _e();
12528
12544
  z();
12529
12545
  }, z = () => {
12530
12546
  b("update:visible", !1);
12531
- }, re = (X) => {
12532
- b("load-users", X);
12533
- }, E = (X) => {
12534
- b("search", X);
12535
- }, B = (X) => {
12536
- b("dept-click", { dept: X, callback: (ae) => {
12547
+ }, re = (Q) => {
12548
+ b("load-users", Q);
12549
+ }, E = (Q) => {
12550
+ b("search", Q);
12551
+ }, N = (Q) => {
12552
+ b("dept-click", { dept: Q, callback: (ae) => {
12537
12553
  _.value = ae;
12538
12554
  } });
12539
- }, Q = F([]), te = F(!1), $ = F({}), I = F({}), oe = F([]), he = F(null), ke = F(null);
12540
- Fe(() => n.visibleColumns, (X) => {
12541
- if ($.value = {}, I.value = {}, X && X.length > 0) {
12542
- if (typeof X[0] == "object") {
12543
- Q.value = X.filter((Se) => Se.show !== !1).map((Se) => Se.value), X.forEach((Se) => {
12555
+ }, X = F([]), te = F(!1), $ = F({}), I = F({}), oe = F([]), he = F(null), ke = F(null);
12556
+ Fe(() => n.visibleColumns, (Q) => {
12557
+ if ($.value = {}, I.value = {}, Q && Q.length > 0) {
12558
+ if (typeof Q[0] == "object") {
12559
+ X.value = Q.filter((Se) => Se.show !== !1).map((Se) => Se.value), Q.forEach((Se) => {
12544
12560
  Se.width && ($.value[Se.value] = parseInt(Se.width)), Se.fixed ? I.value[Se.value] = Se.fixed : I.value[Se.value] = "none";
12545
12561
  });
12546
- const ae = X.map((Se) => Se.value), De = ae.map(
12562
+ const ae = Q.map((Se) => Se.value), De = ae.map(
12547
12563
  (Se) => n.fieldOptions.find((Ue) => Ue.value === Se)
12548
12564
  ).filter(Boolean), Te = n.fieldOptions.filter(
12549
12565
  (Se) => !ae.includes(Se.value)
12550
12566
  );
12551
12567
  oe.value = [...De, ...Te];
12552
12568
  } else {
12553
- Q.value = [...X];
12554
- const ae = X.map(
12569
+ X.value = [...Q];
12570
+ const ae = Q.map(
12555
12571
  (Te) => n.fieldOptions.find((Se) => Se.value === Te)
12556
12572
  ).filter(Boolean), De = n.fieldOptions.filter(
12557
- (Te) => !X.includes(Te.value)
12573
+ (Te) => !Q.includes(Te.value)
12558
12574
  );
12559
12575
  oe.value = [...ae, ...De];
12560
12576
  }
12561
- te.value = Q.value.length === n.fieldOptions.length;
12562
- } else n.fieldOptions.length > 0 && (Q.value = n.fieldOptions.map((ae) => ae.value), oe.value = [...n.fieldOptions], te.value = !0);
12577
+ te.value = X.value.length === n.fieldOptions.length;
12578
+ } else n.fieldOptions.length > 0 && (X.value = n.fieldOptions.map((ae) => ae.value), oe.value = [...n.fieldOptions], te.value = !0);
12563
12579
  n.fieldOptions.forEach((ae) => {
12564
12580
  I.value[ae.value] || (I.value[ae.value] = "none");
12565
12581
  });
12566
- }, { immediate: !0 }), Fe(() => n.fieldOptions, (X) => {
12567
- oe.value.length || (oe.value = [...X]);
12582
+ }, { immediate: !0 }), Fe(() => n.fieldOptions, (Q) => {
12583
+ oe.value.length || (oe.value = [...Q]);
12568
12584
  }, { immediate: !0 });
12569
- const Ee = (X, ae) => {
12585
+ const Ee = (Q, ae) => {
12570
12586
  if (ae)
12571
- Q.value.includes(X) || Q.value.push(X);
12587
+ X.value.includes(Q) || X.value.push(Q);
12572
12588
  else {
12573
- const De = Q.value.indexOf(X);
12574
- De > -1 && Q.value.splice(De, 1);
12589
+ const De = X.value.indexOf(Q);
12590
+ De > -1 && X.value.splice(De, 1);
12575
12591
  }
12576
- te.value = Q.value.length === n.fieldOptions.length;
12577
- }, Ce = (X) => {
12578
- X ? Q.value = oe.value.map((ae) => ae.value) : Q.value = [];
12579
- }, qe = (X) => {
12580
- if (X > 0) {
12581
- const ae = oe.value[X];
12582
- oe.value[X] = oe.value[X - 1], oe.value[X - 1] = ae, oe.value = [...oe.value];
12592
+ te.value = X.value.length === n.fieldOptions.length;
12593
+ }, Ce = (Q) => {
12594
+ Q ? X.value = oe.value.map((ae) => ae.value) : X.value = [];
12595
+ }, qe = (Q) => {
12596
+ if (Q > 0) {
12597
+ const ae = oe.value[Q];
12598
+ oe.value[Q] = oe.value[Q - 1], oe.value[Q - 1] = ae, oe.value = [...oe.value];
12583
12599
  }
12584
- }, ce = (X) => {
12585
- if (X < oe.value.length - 1) {
12586
- const ae = oe.value[X];
12587
- oe.value[X] = oe.value[X + 1], oe.value[X + 1] = ae, oe.value = [...oe.value];
12600
+ }, ce = (Q) => {
12601
+ if (Q < oe.value.length - 1) {
12602
+ const ae = oe.value[Q];
12603
+ oe.value[Q] = oe.value[Q + 1], oe.value[Q + 1] = ae, oe.value = [...oe.value];
12588
12604
  }
12589
- }, N = (X, ae) => {
12590
- he.value = X, ae.dataTransfer.effectAllowed = "move", ae.dataTransfer.setData("text/html", ae.target.innerHTML);
12591
- }, h = (X, ae) => {
12592
- ae.preventDefault(), ae.dataTransfer.dropEffect = "move", ke.value = X;
12605
+ }, B = (Q, ae) => {
12606
+ he.value = Q, ae.dataTransfer.effectAllowed = "move", ae.dataTransfer.setData("text/html", ae.target.innerHTML);
12607
+ }, h = (Q, ae) => {
12608
+ ae.preventDefault(), ae.dataTransfer.dropEffect = "move", ke.value = Q;
12593
12609
  }, Me = () => {
12594
12610
  he.value = null, ke.value = null;
12595
- }, Ye = (X, ae) => {
12611
+ }, Ye = (Q, ae) => {
12596
12612
  ae.preventDefault();
12597
12613
  const De = he.value;
12598
- if (De === null || De === X)
12614
+ if (De === null || De === Q)
12599
12615
  return;
12600
12616
  const Te = [...oe.value], Se = Te[De];
12601
- Te.splice(De, 1), Te.splice(X, 0, Se), oe.value = Te, he.value = null, ke.value = null;
12617
+ Te.splice(De, 1), Te.splice(Q, 0, Se), oe.value = Te, he.value = null, ke.value = null;
12602
12618
  }, _e = () => {
12603
- const X = oe.value.filter((ae) => Q.value.includes(ae.value)).map((ae) => {
12619
+ const Q = oe.value.filter((ae) => X.value.includes(ae.value)).map((ae) => {
12604
12620
  const De = $.value[ae.value], Te = I.value[ae.value] || "none";
12605
12621
  return {
12606
12622
  value: ae.value,
@@ -12612,16 +12628,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12612
12628
  // 冻结状态
12613
12629
  };
12614
12630
  });
12615
- b("column-change", X);
12631
+ b("column-change", Q);
12616
12632
  };
12617
- return (X, ae) => {
12633
+ return (Q, ae) => {
12618
12634
  const De = M("t-radio-button"), Te = M("t-radio-group"), Se = M("t-icon"), Ue = M("t-button"), ra = M("t-tab-panel"), se = M("t-checkbox"), ia = M("t-option"), ze = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
12619
12635
  return l(), o(fe, null, [
12620
12636
  s(da, {
12621
12637
  header: "方案设置",
12622
12638
  placement: "center",
12623
12639
  visible: a.visible,
12624
- "onUpdate:visible": ae[4] || (ae[4] = (p) => X.$emit("update:visible", p)),
12640
+ "onUpdate:visible": ae[4] || (ae[4] = (p) => Q.$emit("update:visible", p)),
12625
12641
  width: a.width,
12626
12642
  "z-index": 999,
12627
12643
  footer: !0,
@@ -12706,7 +12722,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12706
12722
  theme: "default",
12707
12723
  variant: "text",
12708
12724
  size: a.size,
12709
- onClick: (ie) => K(v),
12725
+ onClick: (ie) => G(v),
12710
12726
  disabled: u.value.length === 1
12711
12727
  }, {
12712
12728
  icon: i(() => [
@@ -12795,7 +12811,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12795
12811
  key: p.value,
12796
12812
  class: $e(["column-item-row", { dragging: he.value === v }]),
12797
12813
  draggable: "true",
12798
- onDragstart: (ie) => N(v, ie),
12814
+ onDragstart: (ie) => B(v, ie),
12799
12815
  onDragover: (ie) => h(v, ie),
12800
12816
  onDragend: Me,
12801
12817
  onDrop: (ie) => Ye(v, ie)
@@ -12809,7 +12825,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
12809
12825
  ]),
12810
12826
  e("div", Qu, [
12811
12827
  s(se, {
12812
- checked: Q.value.includes(p.value),
12828
+ checked: X.value.includes(p.value),
12813
12829
  onChange: (ie) => Ee(p.value, ie)
12814
12830
  }, null, 8, ["checked", "onChange"])
12815
12831
  ]),
@@ -13069,7 +13085,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13069
13085
  onConfirm: P,
13070
13086
  onLoadUsers: re,
13071
13087
  onSearch: E,
13072
- onDeptClick: B
13088
+ onDeptClick: N
13073
13089
  }, null, 8, ["visible", "is-editing", "plan-name", "original-share-mode", "original-share-type", "original-selected-users", "tabs", "organizations", "dept-members-data-prop"])
13074
13090
  ], 64);
13075
13091
  };
@@ -13146,15 +13162,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13146
13162
  }
13147
13163
  ]);
13148
13164
  Fe(() => n.visible, (ge) => {
13149
- u.value = ge, ge && n.initialRules.length > 0 && (_.value = JSON.parse(JSON.stringify(n.initialRules)).map((K) => ({
13150
- ...K,
13165
+ u.value = ge, ge && n.initialRules.length > 0 && (_.value = JSON.parse(JSON.stringify(n.initialRules)).map((G) => ({
13166
+ ...G,
13151
13167
  showColorPicker: !1
13152
13168
  })));
13153
13169
  }), Fe(u, (ge) => {
13154
13170
  b("update:visible", ge);
13155
13171
  });
13156
- const C = (ge, K) => {
13157
- _.value[ge].backgroundColor = K, _.value[ge].showColorPicker = !1;
13172
+ const C = (ge, G) => {
13173
+ _.value[ge].backgroundColor = G, _.value[ge].showColorPicker = !1;
13158
13174
  }, r = () => {
13159
13175
  _.value.push({
13160
13176
  field: "",
@@ -13173,33 +13189,33 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13173
13189
  b("clear"), u.value = !1;
13174
13190
  }, ee = () => {
13175
13191
  const ge = _.value.filter(
13176
- (K) => K.field && K.operator && K.value
13177
- ).map((K) => ({
13178
- field: K.field,
13179
- operator: K.operator,
13180
- value: K.value,
13181
- backgroundColor: K.backgroundColor,
13182
- isBold: K.isBold,
13183
- applyTo: K.applyTo
13192
+ (G) => G.field && G.operator && G.value
13193
+ ).map((G) => ({
13194
+ field: G.field,
13195
+ operator: G.operator,
13196
+ value: G.value,
13197
+ backgroundColor: G.backgroundColor,
13198
+ isBold: G.isBold,
13199
+ applyTo: G.applyTo
13184
13200
  }));
13185
13201
  b("confirm", ge), u.value = !1;
13186
13202
  }, q = ve(() => {
13187
- const ge = _.value.length, K = Math.floor(c.length / ge), A = [];
13203
+ const ge = _.value.length, G = Math.floor(c.length / ge), A = [];
13188
13204
  for (let W = 0; W < ge; W++) {
13189
- const d = W * K % c.length;
13205
+ const d = W * G % c.length;
13190
13206
  A.push(c[d]);
13191
13207
  }
13192
13208
  return A;
13193
- }), G = () => {
13194
- _.value.forEach((ge, K) => {
13195
- K < q.value.length && (ge.backgroundColor = q.value[K]);
13209
+ }), K = () => {
13210
+ _.value.forEach((ge, G) => {
13211
+ G < q.value.length && (ge.backgroundColor = q.value[G]);
13196
13212
  }), b("smart-colors-change", q.value);
13197
13213
  };
13198
- return (ge, K) => {
13214
+ return (ge, G) => {
13199
13215
  const A = M("t-button"), W = M("t-checkbox"), d = M("t-popup"), S = M("t-radio-button"), g = M("t-radio-group"), P = M("t-select"), T = M("t-input"), de = M("t-icon"), ue = M("t-dialog");
13200
13216
  return l(), Y(ue, {
13201
13217
  visible: u.value,
13202
- "onUpdate:visible": K[0] || (K[0] = (j) => u.value = j),
13218
+ "onUpdate:visible": G[0] || (G[0] = (j) => u.value = j),
13203
13219
  width: "800px",
13204
13220
  "confirm-btn": null,
13205
13221
  "cancel-btn": null,
@@ -13207,18 +13223,18 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13207
13223
  }, {
13208
13224
  header: i(() => [
13209
13225
  e("div", cc, [
13210
- K[3] || (K[3] = e("span", null, "颜色筛选", -1)),
13226
+ G[3] || (G[3] = e("span", null, "颜色筛选", -1)),
13211
13227
  s(A, {
13212
13228
  theme: "primary",
13213
13229
  variant: "outline",
13214
13230
  size: "small",
13215
- onClick: G
13231
+ onClick: K
13216
13232
  }, {
13217
- icon: i(() => [...K[1] || (K[1] = [
13233
+ icon: i(() => [...G[1] || (G[1] = [
13218
13234
  e("i", { class: "ri-palette-line" }, null, -1)
13219
13235
  ])]),
13220
13236
  default: i(() => [
13221
- K[2] || (K[2] = U(" 智能配色 ", -1))
13237
+ G[2] || (G[2] = U(" 智能配色 ", -1))
13222
13238
  ]),
13223
13239
  _: 1
13224
13240
  })
@@ -13254,7 +13270,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13254
13270
  modelValue: j.isBold,
13255
13271
  "onUpdate:modelValue": (y) => j.isBold = y
13256
13272
  }, {
13257
- default: i(() => [...K[4] || (K[4] = [
13273
+ default: i(() => [...G[4] || (G[4] = [
13258
13274
  e("span", { class: "bold-text" }, "加粗", -1)
13259
13275
  ])]),
13260
13276
  _: 1
@@ -13284,19 +13300,19 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13284
13300
  }, {
13285
13301
  default: i(() => [
13286
13302
  s(S, { value: "cell" }, {
13287
- default: i(() => [...K[5] || (K[5] = [
13303
+ default: i(() => [...G[5] || (G[5] = [
13288
13304
  U("单元格", -1)
13289
13305
  ])]),
13290
13306
  _: 1
13291
13307
  }),
13292
13308
  s(S, { value: "row" }, {
13293
- default: i(() => [...K[6] || (K[6] = [
13309
+ default: i(() => [...G[6] || (G[6] = [
13294
13310
  U("整行", -1)
13295
13311
  ])]),
13296
13312
  _: 1
13297
13313
  }),
13298
13314
  s(S, { value: "column" }, {
13299
- default: i(() => [...K[7] || (K[7] = [
13315
+ default: i(() => [...G[7] || (G[7] = [
13300
13316
  U("整列", -1)
13301
13317
  ])]),
13302
13318
  _: 1
@@ -13340,7 +13356,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13340
13356
  onClick: (y) => O(w),
13341
13357
  disabled: _.value.length === 1
13342
13358
  }, {
13343
- icon: i(() => [...K[8] || (K[8] = [
13359
+ icon: i(() => [...G[8] || (G[8] = [
13344
13360
  e("i", { class: "ri-close-fill" }, null, -1)
13345
13361
  ])]),
13346
13362
  _: 1
@@ -13358,7 +13374,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13358
13374
  s(de, { name: "add" })
13359
13375
  ]),
13360
13376
  default: i(() => [
13361
- K[9] || (K[9] = U(" 添加规则 ", -1))
13377
+ G[9] || (G[9] = U(" 添加规则 ", -1))
13362
13378
  ]),
13363
13379
  _: 1
13364
13380
  }, 8, ["size"])
@@ -13371,7 +13387,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13371
13387
  size: a.size,
13372
13388
  onClick: D
13373
13389
  }, {
13374
- default: i(() => [...K[10] || (K[10] = [
13390
+ default: i(() => [...G[10] || (G[10] = [
13375
13391
  U("取消", -1)
13376
13392
  ])]),
13377
13393
  _: 1
@@ -13381,7 +13397,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13381
13397
  size: a.size,
13382
13398
  onClick: L
13383
13399
  }, {
13384
- default: i(() => [...K[11] || (K[11] = [
13400
+ default: i(() => [...G[11] || (G[11] = [
13385
13401
  U("清除", -1)
13386
13402
  ])]),
13387
13403
  _: 1
@@ -13391,7 +13407,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13391
13407
  size: a.size,
13392
13408
  onClick: ee
13393
13409
  }, {
13394
- default: i(() => [...K[12] || (K[12] = [
13410
+ default: i(() => [...G[12] || (G[12] = [
13395
13411
  U("确定", -1)
13396
13412
  ])]),
13397
13413
  _: 1
@@ -13487,7 +13503,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13487
13503
  const he = $.columns.filter((ke) => ke.show !== !1);
13488
13504
  b("column-change", he);
13489
13505
  }
13490
- }, G = () => {
13506
+ }, K = () => {
13491
13507
  ge();
13492
13508
  }, ge = () => {
13493
13509
  if (n.filterCount === 0) {
@@ -13498,7 +13514,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13498
13514
  { id: 1, connector: C.value, conditions: u.value }
13499
13515
  ]), I = d($, "and");
13500
13516
  b("search", I);
13501
- }, K = () => {
13517
+ }, G = () => {
13502
13518
  _.value = !0;
13503
13519
  }, A = () => {
13504
13520
  _.value = !1;
@@ -13592,7 +13608,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
13592
13608
  F("");
13593
13609
  const E = ($) => {
13594
13610
  b("smart-colors-change", $);
13595
- }, B = ve(() => w.value.filter(($) => $.field && $.operator && $.value).length), Q = ve(() => {
13611
+ }, N = ve(() => w.value.filter(($) => $.field && $.operator && $.value).length), X = ve(() => {
13596
13612
  const $ = w.value.filter((I) => I.field && I.operator && I.value);
13597
13613
  return $.length === 0 ? "颜色筛选" : `
13598
13614
  ${$.map((I) => {
@@ -13611,16 +13627,16 @@ ${$.map((I) => {
13611
13627
  notContains: "不包含"
13612
13628
  })[$] || $;
13613
13629
  return ($, I) => {
13614
- const oe = M("t-radio-button"), he = M("t-radio-group"), ke = M("t-icon"), Ee = M("t-button"), Ce = M("t-badge"), qe = M("t-tooltip"), ce = M("t-dropdown"), N = M("t-input"), h = M("t-form-item"), Me = M("t-form"), Ye = M("t-dialog");
13630
+ const oe = M("t-radio-button"), he = M("t-radio-group"), ke = M("t-icon"), Ee = M("t-button"), Ce = M("t-badge"), qe = M("t-tooltip"), ce = M("t-dropdown"), B = M("t-input"), h = M("t-form-item"), Me = M("t-form"), Ye = M("t-dialog");
13615
13631
  return l(), o("div", Sc, [
13616
13632
  a.filterCount > 0 ? (l(), o("div", Mc, [
13617
- (l(!0), o(fe, null, ye(u.value, (_e, X) => (l(), Y(Ul, {
13618
- key: X,
13633
+ (l(!0), o(fe, null, ye(u.value, (_e, Q) => (l(), Y(Ul, {
13634
+ key: Q,
13619
13635
  "field-options": a.fieldOptions,
13620
13636
  size: a.size,
13621
- "filter-condition": u.value[X],
13637
+ "filter-condition": u.value[Q],
13622
13638
  "select-options": a.selectOptions,
13623
- onSearch: G
13639
+ onSearch: K
13624
13640
  }, null, 8, ["field-options", "size", "filter-condition", "select-options"]))), 128))
13625
13641
  ])) : H("", !0),
13626
13642
  a.filterCount === 0 && a.planFilterOptions.length > 0 ? (l(), o("div", zc, [
@@ -13649,7 +13665,7 @@ ${$.map((I) => {
13649
13665
  theme: "default",
13650
13666
  variant: "outline",
13651
13667
  size: a.size,
13652
- onClick: K,
13668
+ onClick: G,
13653
13669
  title: "高级筛选"
13654
13670
  }, {
13655
13671
  icon: i(() => [
@@ -13663,7 +13679,7 @@ ${$.map((I) => {
13663
13679
  key: 0,
13664
13680
  theme: "primary",
13665
13681
  size: a.size,
13666
- onClick: K,
13682
+ onClick: G,
13667
13683
  title: "高级筛选"
13668
13684
  }, {
13669
13685
  icon: i(() => [
@@ -13673,12 +13689,12 @@ ${$.map((I) => {
13673
13689
  }, 8, ["size"])) : H("", !0),
13674
13690
  a.filterCount > 0 ? (l(), Y(qe, {
13675
13691
  key: 1,
13676
- content: Q.value,
13692
+ content: X.value,
13677
13693
  placement: "top"
13678
13694
  }, {
13679
13695
  default: i(() => [
13680
13696
  s(Ce, {
13681
- count: B.value,
13697
+ count: N.value,
13682
13698
  "max-count": 99
13683
13699
  }, {
13684
13700
  default: i(() => [
@@ -13764,7 +13780,7 @@ ${$.map((I) => {
13764
13780
  required: ""
13765
13781
  }, {
13766
13782
  default: i(() => [
13767
- s(N, {
13783
+ s(B, {
13768
13784
  modelValue: ue.value.name,
13769
13785
  "onUpdate:modelValue": I[10] || (I[10] = (_e) => ue.value.name = _e),
13770
13786
  placeholder: "请输入筛选方案名称"
@@ -13867,7 +13883,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13867
13883
  emits: ["update:visible", "confirm", "search", "load-users", "request-permission", "permission-settings-change", "manage-collaborators", "remove-collaborator", "collaborator-permission-change"],
13868
13884
  setup(a, { emit: le }) {
13869
13885
  var n;
13870
- const b = a, u = le, c = F(b.visible), m = F(b.shareUrl), R = F([]), _ = F(!1), C = F(1), r = F("read"), O = F(!0), D = F(!1), L = F(""), ee = F(""), q = F(!1), G = F(!1), ge = F(!1), K = F(!1), A = F(""), W = F({
13886
+ const b = a, u = le, c = F(b.visible), m = F(b.shareUrl), R = F([]), _ = F(!1), C = F(1), r = F("read"), O = F(!0), D = F(!1), L = F(""), ee = F(""), q = F(!1), K = F(!1), ge = F(!1), G = F(!1), A = F(""), W = F({
13871
13887
  allowExternalShare: ((n = b.defaultPermissionSettings) == null ? void 0 : n.allowExternalShare) ?? !1,
13872
13888
  collaboratorManagement: "org-only",
13873
13889
  copyPermission: "edit",
@@ -13875,7 +13891,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13875
13891
  commentPermission: "all",
13876
13892
  viewerAvatarsPermission: "all"
13877
13893
  }), d = ve(() => {
13878
- const N = b.organizations || [], h = N.filter((_e) => _e.id !== "internet"), Me = N.find((_e) => _e.id === "internet"), Ye = [];
13894
+ const B = b.organizations || [], h = B.filter((_e) => _e.id !== "internet"), Me = B.find((_e) => _e.id === "internet"), Ye = [];
13879
13895
  return h.forEach((_e) => {
13880
13896
  Ye.push({ label: _e.name, value: _e.id });
13881
13897
  }), Me && Ye.push({
@@ -13889,29 +13905,29 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13889
13905
  { label: "可阅读", value: "read" },
13890
13906
  { label: "可编辑", value: "edit" },
13891
13907
  { label: "可管理", value: "manage" }
13892
- ], g = ve(() => T.value === "manage" ? S : T.value === "edit" ? S.filter((N) => N.value !== "manage") : []), P = [
13908
+ ], g = ve(() => T.value === "manage" ? S : T.value === "edit" ? S.filter((B) => B.value !== "manage") : []), P = [
13893
13909
  { label: "所有人", value: "all" },
13894
13910
  { label: "可编辑及以上", value: "edit" },
13895
13911
  { label: "可管理", value: "manage" },
13896
13912
  { label: "仅所有者", value: "owner" }
13897
- ], T = ve(() => b.currentPermission || "edit"), de = ve(() => (b.collaborators || []).map((N) => ({
13898
- id: N.id,
13899
- name: N.displayName || N.name || String(N.id),
13900
- avatar: N.avatar || "",
13913
+ ], T = ve(() => b.currentPermission || "edit"), de = ve(() => (b.collaborators || []).map((B) => ({
13914
+ id: B.id,
13915
+ name: B.displayName || B.name || String(B.id),
13916
+ avatar: B.avatar || "",
13901
13917
  isUser: !0
13902
- }))), ue = ve(() => m.value ? `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(m.value)}` : ""), j = (N) => N ? N.substring(0, 2).toUpperCase() : "所";
13903
- Fe(() => b.visible, (N) => c.value = N), Fe(() => b.shareUrl, (N) => m.value = N), Fe(c, (N) => {
13904
- u("update:visible", N), N && w();
13905
- }), Fe(R, (N) => {
13918
+ }))), ue = ve(() => m.value ? `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(m.value)}` : ""), j = (B) => B ? B.substring(0, 2).toUpperCase() : "所";
13919
+ Fe(() => b.visible, (B) => c.value = B), Fe(() => b.shareUrl, (B) => m.value = B), Fe(c, (B) => {
13920
+ u("update:visible", B), B && w();
13921
+ }), Fe(R, (B) => {
13906
13922
  if (T.value === "read") {
13907
13923
  _.value = !1;
13908
13924
  return;
13909
13925
  }
13910
- _.value = N.length > 0;
13926
+ _.value = B.length > 0;
13911
13927
  });
13912
13928
  const w = () => {
13913
- var N;
13914
- R.value = [], C.value = ((N = b.organizations[0]) == null ? void 0 : N.id) || 1, ee.value = "", r.value = "read", O.value = !0, D.value = !1, L.value = "", _.value = !1;
13929
+ var B;
13930
+ R.value = [], C.value = ((B = b.organizations[0]) == null ? void 0 : B.id) || 1, ee.value = "", r.value = "read", O.value = !0, D.value = !1, L.value = "", _.value = !1;
13915
13931
  }, y = () => {
13916
13932
  _.value = !1;
13917
13933
  }, z = () => {
@@ -13921,7 +13937,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13921
13937
  Oe.warning("您当前为只读权限,无法分享");
13922
13938
  return;
13923
13939
  }
13924
- const N = {
13940
+ const B = {
13925
13941
  sharerIds: R.value.map((h) => h.isUser === !1 ? `depot:${h.id}` : h.isGroup ? `usergroup:${h.id}` : h.isPost ? `post:${h.id}` : h.isOutUser ? `outuser:${h.id}` : `user:${h.id}`),
13926
13942
  orgId: C.value,
13927
13943
  permission: r.value,
@@ -13929,19 +13945,19 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13929
13945
  password: D.value ? L.value : void 0,
13930
13946
  remark: ee.value
13931
13947
  };
13932
- console.log("分享参数:", N), u("confirm", N), c.value = !1;
13948
+ console.log("分享参数:", B), u("confirm", B), c.value = !1;
13933
13949
  }, E = async () => {
13934
13950
  try {
13935
13951
  await navigator.clipboard.writeText(m.value || ""), Oe.success("链接已复制");
13936
13952
  } catch {
13937
13953
  Oe.error("复制失败");
13938
13954
  }
13939
- }, B = () => {
13955
+ }, N = () => {
13940
13956
  b.helpUrl && window.open(b.helpUrl, "_blank");
13941
- }, Q = (N) => {
13942
- u("search", N);
13943
- }, te = (N) => {
13944
- u("load-users", N);
13957
+ }, X = (B) => {
13958
+ u("search", B);
13959
+ }, te = (B) => {
13960
+ u("load-users", B);
13945
13961
  }, $ = () => {
13946
13962
  u("request-permission", "edit"), Oe.info("已发送编辑权限申请");
13947
13963
  }, I = () => {
@@ -13950,21 +13966,21 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13950
13966
  return;
13951
13967
  }
13952
13968
  u("permission-settings-change", W.value), Oe.success("权限设置已保存"), q.value = !1;
13953
- }, oe = (N) => {
13954
- console.log("点击协作者:", N);
13955
- }, he = (N) => {
13969
+ }, oe = (B) => {
13970
+ console.log("点击协作者:", B);
13971
+ }, he = (B) => {
13956
13972
  if (T.value === "read") {
13957
13973
  Oe.warning("只读权限无法添加协作者");
13958
13974
  return;
13959
13975
  }
13960
- console.log("选择人员:", N), u("manage-collaborators", N);
13961
- }, ke = (N) => {
13976
+ console.log("选择人员:", B), u("manage-collaborators", B);
13977
+ }, ke = (B) => {
13962
13978
  if (T.value !== "manage") {
13963
13979
  Oe.warning("只有管理员才能删除协作者");
13964
13980
  return;
13965
13981
  }
13966
- u("remove-collaborator", N);
13967
- }, Ee = (N, h) => {
13982
+ u("remove-collaborator", B);
13983
+ }, Ee = (B, h) => {
13968
13984
  if (T.value === "read") {
13969
13985
  Oe.warning("只读权限无法修改协作者权限");
13970
13986
  return;
@@ -13973,12 +13989,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13973
13989
  Oe.warning("编辑权限无法将协作者设置为管理员");
13974
13990
  return;
13975
13991
  }
13976
- u("collaborator-permission-change", { id: N, permission: h });
13992
+ u("collaborator-permission-change", { id: B, permission: h });
13977
13993
  }, Ce = () => {
13978
- const N = "ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789";
13994
+ const B = "ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789";
13979
13995
  let h = "";
13980
13996
  for (let Me = 0; Me < 6; Me++)
13981
- h += N.charAt(Math.floor(Math.random() * N.length));
13997
+ h += B.charAt(Math.floor(Math.random() * B.length));
13982
13998
  A.value = h;
13983
13999
  }, qe = async () => {
13984
14000
  if (T.value === "read") {
@@ -13989,7 +14005,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
13989
14005
  Oe.warning("请先生成或输入6位密码");
13990
14006
  return;
13991
14007
  }
13992
- const N = m.value || "", h = N.includes("?") ? "&" : "?", Me = `链接:${`${N}${h}pwd=${A.value}`} 密码:${A.value}`;
14008
+ const B = m.value || "", h = B.includes("?") ? "&" : "?", Me = `链接:${`${B}${h}pwd=${A.value}`} 密码:${A.value}`;
13993
14009
  try {
13994
14010
  await navigator.clipboard.writeText(Me), Oe.success("链接和密码已复制");
13995
14011
  } catch {
@@ -14004,12 +14020,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14004
14020
  Oe.warning("请输入6位密码");
14005
14021
  return;
14006
14022
  }
14007
- Oe.success("密码设置成功"), K.value = !1, console.log("链接密码:", A.value);
14023
+ Oe.success("密码设置成功"), G.value = !1, console.log("链接密码:", A.value);
14008
14024
  };
14009
- return Fe(K, (N) => {
14010
- N && !A.value && Ce();
14011
- }), (N, h) => {
14012
- const Me = M("t-icon"), Ye = M("t-tooltip"), _e = M("t-button"), X = M("t-avatar"), ae = M("t-select"), De = M("t-checkbox"), Te = M("t-input"), Se = M("t-textarea"), Ue = M("t-dialog"), ra = M("t-switch"), se = M("t-radio"), ia = M("t-radio-group");
14025
+ return Fe(G, (B) => {
14026
+ B && !A.value && Ce();
14027
+ }), (B, h) => {
14028
+ const Me = M("t-icon"), Ye = M("t-tooltip"), _e = M("t-button"), Q = M("t-avatar"), ae = M("t-select"), De = M("t-checkbox"), Te = M("t-input"), Se = M("t-textarea"), Ue = M("t-dialog"), ra = M("t-switch"), se = M("t-radio"), ia = M("t-radio-group");
14013
14029
  return l(), o(fe, null, [
14014
14030
  s(Ue, {
14015
14031
  visible: c.value,
@@ -14040,14 +14056,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14040
14056
  s(Me, {
14041
14057
  name: "help-circle",
14042
14058
  size: "14px",
14043
- onClick: B
14059
+ onClick: N
14044
14060
  })
14045
14061
  ]),
14046
14062
  _: 1
14047
14063
  })) : H("", !0)
14048
14064
  ]),
14049
14065
  _.value ? H("", !0) : (l(), o("div", Pc, [
14050
- fa(N.$slots, "header-actions", {}, () => [
14066
+ fa(B.$slots, "header-actions", {}, () => [
14051
14067
  T.value === "read" ? (l(), Y(_e, {
14052
14068
  key: 0,
14053
14069
  variant: "text",
@@ -14093,11 +14109,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14093
14109
  h[36] || (h[36] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14094
14110
  e("div", ef, [
14095
14111
  e("div", af, [
14096
- (sa = a.owner) != null && sa.avatar ? (l(), Y(X, {
14112
+ (sa = a.owner) != null && sa.avatar ? (l(), Y(Q, {
14097
14113
  key: 0,
14098
14114
  image: a.owner.avatar,
14099
14115
  size: "medium"
14100
- }, null, 8, ["image"])) : (l(), Y(X, {
14116
+ }, null, 8, ["image"])) : (l(), Y(Q, {
14101
14117
  key: 1,
14102
14118
  size: "medium"
14103
14119
  }, {
@@ -14120,14 +14136,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14120
14136
  "person-organizations": a.organizations,
14121
14137
  onPersonSelect: he,
14122
14138
  onLoadUsers: te,
14123
- onSearch: Q,
14139
+ onSearch: X,
14124
14140
  onUserClick: oe
14125
14141
  }, null, 8, ["users", "person-tabs", "person-organizations"]),
14126
14142
  s(Me, {
14127
14143
  name: "chevron-right",
14128
14144
  size: "16px",
14129
14145
  class: "cd-share-expand-icon",
14130
- onClick: h[7] || (h[7] = (Le) => G.value = !0)
14146
+ onClick: h[7] || (h[7] = (Le) => K.value = !0)
14131
14147
  })
14132
14148
  ])
14133
14149
  ]),
@@ -14141,7 +14157,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14141
14157
  tabs: a.tabs,
14142
14158
  organizations: a.organizations,
14143
14159
  "show-selector": !1,
14144
- onSearch: Q,
14160
+ onSearch: X,
14145
14161
  onLoadUsers: te
14146
14162
  }, null, 8, ["modelValue", "tabs", "organizations"])
14147
14163
  ])
@@ -14207,11 +14223,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14207
14223
  h[30] || (h[30] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
14208
14224
  e("div", Tc, [
14209
14225
  e("div", Nc, [
14210
- (ze = a.owner) != null && ze.avatar ? (l(), Y(X, {
14226
+ (ze = a.owner) != null && ze.avatar ? (l(), Y(Q, {
14211
14227
  key: 0,
14212
14228
  image: a.owner.avatar,
14213
14229
  size: "medium"
14214
- }, null, 8, ["image"])) : (l(), Y(X, {
14230
+ }, null, 8, ["image"])) : (l(), Y(Q, {
14215
14231
  key: 1,
14216
14232
  size: "medium"
14217
14233
  }, {
@@ -14234,14 +14250,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14234
14250
  "person-organizations": a.organizations,
14235
14251
  onPersonSelect: he,
14236
14252
  onLoadUsers: te,
14237
- onSearch: Q,
14253
+ onSearch: X,
14238
14254
  onUserClick: oe
14239
14255
  }, null, 8, ["users", "person-tabs", "person-organizations"]),
14240
14256
  s(Me, {
14241
14257
  name: "chevron-right",
14242
14258
  size: "16px",
14243
14259
  class: "cd-share-expand-icon",
14244
- onClick: h[1] || (h[1] = (Le) => G.value = !0)
14260
+ onClick: h[1] || (h[1] = (Le) => K.value = !0)
14245
14261
  })
14246
14262
  ])
14247
14263
  ]),
@@ -14255,7 +14271,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14255
14271
  tabs: a.tabs,
14256
14272
  organizations: a.organizations,
14257
14273
  "show-selector": !1,
14258
- onSearch: Q,
14274
+ onSearch: X,
14259
14275
  onLoadUsers: te
14260
14276
  }, null, 8, ["modelValue", "tabs", "organizations"])
14261
14277
  ])
@@ -14315,7 +14331,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14315
14331
  h[34] || (h[34] = U(" 复制链接 ", -1))
14316
14332
  ]),
14317
14333
  e("div", Gc, [
14318
- fa(N.$slots, "share-channels", {}, () => [
14334
+ fa(B.$slots, "share-channels", {}, () => [
14319
14335
  s(Ye, { content: "二维码" }, {
14320
14336
  default: i(() => [
14321
14337
  e("div", {
@@ -14341,7 +14357,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14341
14357
  default: i(() => [
14342
14358
  e("div", {
14343
14359
  class: $e(["cd-share-icon-btn", { "is-disabled": T.value === "read" }]),
14344
- onClick: h[6] || (h[6] = (Le) => T.value !== "read" && (K.value = !0))
14360
+ onClick: h[6] || (h[6] = (Le) => T.value !== "read" && (G.value = !0))
14345
14361
  }, [
14346
14362
  s(Me, { name: "lock-on" })
14347
14363
  ], 2)
@@ -14476,8 +14492,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14476
14492
  _: 1
14477
14493
  }, 8, ["visible"]),
14478
14494
  s(Ue, {
14479
- visible: G.value,
14480
- "onUpdate:visible": h[22] || (h[22] = (ze) => G.value = ze),
14495
+ visible: K.value,
14496
+ "onUpdate:visible": h[22] || (h[22] = (ze) => K.value = ze),
14481
14497
  header: "协作者权限管理",
14482
14498
  width: "500px",
14483
14499
  footer: !1,
@@ -14490,11 +14506,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14490
14506
  e("div", bf, [
14491
14507
  e("div", yf, [
14492
14508
  e("div", _f, [
14493
- (ze = a.owner) != null && ze.avatar ? (l(), Y(X, {
14509
+ (ze = a.owner) != null && ze.avatar ? (l(), Y(Q, {
14494
14510
  key: 0,
14495
14511
  image: a.owner.avatar,
14496
14512
  size: "small"
14497
- }, null, 8, ["image"])) : (l(), Y(X, {
14513
+ }, null, 8, ["image"])) : (l(), Y(Q, {
14498
14514
  key: 1,
14499
14515
  size: "small"
14500
14516
  }, {
@@ -14517,11 +14533,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14517
14533
  class: "cd-collaborator-list-item"
14518
14534
  }, [
14519
14535
  e("div", Cf, [
14520
- je.avatar ? (l(), Y(X, {
14536
+ je.avatar ? (l(), Y(Q, {
14521
14537
  key: 0,
14522
14538
  image: je.avatar,
14523
14539
  size: "small"
14524
- }, null, 8, ["image"])) : (l(), Y(X, {
14540
+ }, null, 8, ["image"])) : (l(), Y(Q, {
14525
14541
  key: 1,
14526
14542
  size: "small"
14527
14543
  }, {
@@ -14597,8 +14613,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14597
14613
  _: 1
14598
14614
  }, 8, ["visible"]),
14599
14615
  s(Ue, {
14600
- visible: K.value,
14601
- "onUpdate:visible": h[26] || (h[26] = (ze) => K.value = ze),
14616
+ visible: G.value,
14617
+ "onUpdate:visible": h[26] || (h[26] = (ze) => G.value = ze),
14602
14618
  header: "设置链接密码",
14603
14619
  width: "450px",
14604
14620
  footer: !1,
@@ -14658,7 +14674,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14658
14674
  h[63] || (h[63] = e("div", { style: { flex: "1" } }, null, -1)),
14659
14675
  s(_e, {
14660
14676
  variant: "outline",
14661
- onClick: h[25] || (h[25] = (ze) => K.value = !1)
14677
+ onClick: h[25] || (h[25] = (ze) => G.value = !1)
14662
14678
  }, {
14663
14679
  default: i(() => [...h[61] || (h[61] = [
14664
14680
  U("取消", -1)
@@ -14877,14 +14893,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14877
14893
  }), gl(() => {
14878
14894
  window.removeEventListener("resize", ee);
14879
14895
  });
14880
- const q = ve(() => ae.value.length < 15), G = ve(() => {
14896
+ const q = ve(() => ae.value.length < 15), K = ve(() => {
14881
14897
  if (q.value)
14882
14898
  return {
14883
14899
  trigger: "dblclick",
14884
14900
  mode: "cell",
14885
14901
  showStatus: !0
14886
14902
  };
14887
- }), ge = F(!1), K = F(/* @__PURE__ */ new Map()), A = F(/* @__PURE__ */ new Map()), W = F(/* @__PURE__ */ new Set()), d = F(((bl = m.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = F(((yl = m.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = F(!1), P = F([]), T = F(!0), de = F(!1), ue = F(""), j = F("add"), w = F(null);
14903
+ }), ge = F(!1), G = F(/* @__PURE__ */ new Map()), A = F(/* @__PURE__ */ new Map()), W = F(/* @__PURE__ */ new Set()), d = F(((bl = m.pageConfig) == null ? void 0 : bl.currentPage) || 1), S = F(((yl = m.pageConfig) == null ? void 0 : yl.pageSize) || 20), g = F(!1), P = F([]), T = F(!0), de = F(!1), ue = F(""), j = F("add"), w = F(null);
14888
14904
  let y = pa({});
14889
14905
  const z = ve(() => {
14890
14906
  var Re, Ie;
@@ -14945,7 +14961,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14945
14961
  return We(Je), Je;
14946
14962
  })()
14947
14963
  }, ...t];
14948
- }), re = F(!1), E = F(null), B = F([]), Q = F(/* @__PURE__ */ new Map()), te = F(!1), $ = F([]), I = F(!1), oe = (t, f) => {
14964
+ }), re = F(!1), E = F(null), N = F([]), X = F(/* @__PURE__ */ new Map()), te = F(!1), $ = F([]), I = F(!1), oe = (t, f) => {
14949
14965
  const x = t[f.field];
14950
14966
  switch (f.operator) {
14951
14967
  case "contains":
@@ -14975,8 +14991,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14975
14991
  const k = _.value.rowStyle({ row: t, rowIndex: f });
14976
14992
  k && (x = { ...k });
14977
14993
  }
14978
- if (B.value && B.value.length > 0) {
14979
- for (const k of B.value)
14994
+ if (N.value && N.value.length > 0) {
14995
+ for (const k of N.value)
14980
14996
  if (k.applyTo === "row" && oe(t, k)) {
14981
14997
  k.backgroundColor && (x.backgroundColor = k.backgroundColor), k.textColor && (x.color = k.textColor), k.isBold && (x.fontWeight = "bold");
14982
14998
  break;
@@ -14996,8 +15012,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
14996
15012
  const Z = _.value.cellStyle({ row: t, column: f, rowIndex: x, columnIndex: k });
14997
15013
  Z && (J = { ...Z });
14998
15014
  }
14999
- if (B.value && B.value.length > 0) {
15000
- for (const Z of B.value)
15015
+ if (N.value && N.value.length > 0) {
15016
+ for (const Z of N.value)
15001
15017
  if (Z.applyTo === "cell" && Z.field === f.field && oe(t, Z)) {
15002
15018
  Z.backgroundColor && (J.backgroundColor = Z.backgroundColor), Z.textColor && (J.color = Z.textColor), Z.isBold && (J.fontWeight = "bold");
15003
15019
  break;
@@ -15044,7 +15060,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15044
15060
  } else
15045
15061
  P.value = [];
15046
15062
  }, { immediate: !0 });
15047
- const N = (t, f) => q.value ? t === "edit" : !1, h = (t) => {
15063
+ const B = (t, f) => q.value ? t === "edit" : !1, h = (t) => {
15048
15064
  const f = [];
15049
15065
  return !t || !Array.isArray(t) || t.forEach((x) => {
15050
15066
  const k = x.__config__;
@@ -15110,7 +15126,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15110
15126
  const x = t.__config__, k = x.cdkey, J = t.__vModel__;
15111
15127
  if (!J || x.noShow)
15112
15128
  return null;
15113
- const Z = Q.value.get(J), ne = {
15129
+ const Z = X.value.get(J), ne = {
15114
15130
  field: J,
15115
15131
  title: x.label,
15116
15132
  minwidth: 150,
@@ -15502,7 +15518,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15502
15518
  }, { deep: !0, immediate: !0 }), Fe(() => [
15503
15519
  _.value.headerCellStyle,
15504
15520
  _.value.headerCellClassName,
15505
- B.value
15521
+ N.value
15506
15522
  ], () => {
15507
15523
  _.value.headerCellStyle && (se.headerCellStyle = _.value.headerCellStyle), _.value.headerCellClassName && (se.headerCellClassName = _.value.headerCellClassName), se.rowStyle = he, se.rowClassName = ke, se.cellStyle = Ee, se.cellClassName = Ce;
15508
15524
  }, { deep: !0, immediate: !0 });
@@ -15762,7 +15778,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15762
15778
  const x = t.fid, k = { _originalId: x };
15763
15779
  for (const [J, Z] of Object.entries(t))
15764
15780
  Z !== void 0 && (k[J] = Z);
15765
- K.value.set(x, k), r.value && (r.value.setCheckboxRow(t, !0), W.value.add(x)), ge.value = !0;
15781
+ G.value.set(x, k), r.value && (r.value.setCheckboxRow(t, !0), W.value.add(x)), ge.value = !0;
15766
15782
  }, Ha = ({ row: t, column: f }) => {
15767
15783
  if (q.value)
15768
15784
  if (t._isEmpty) {
@@ -15788,18 +15804,18 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15788
15804
  }
15789
15805
  }
15790
15806
  }, Ja = async () => {
15791
- if (!ge.value || K.value.size === 0) {
15807
+ if (!ge.value || G.value.size === 0) {
15792
15808
  Oe.warning("没有需要保存的更改");
15793
15809
  return;
15794
15810
  }
15795
15811
  try {
15796
- const t = Array.from(K.value.values()).map((f) => {
15812
+ const t = Array.from(G.value.values()).map((f) => {
15797
15813
  const x = {};
15798
15814
  for (const [k, J] of Object.entries(f))
15799
15815
  J !== void 0 && (x[k] = J);
15800
15816
  return x;
15801
15817
  });
15802
- C("inline-save", t), K.value.clear(), W.value.clear(), ge.value = !1, r.value && r.value.clearCheckboxRow();
15818
+ C("inline-save", t), G.value.clear(), W.value.clear(), ge.value = !1, r.value && r.value.clearCheckboxRow();
15803
15819
  } catch {
15804
15820
  Oe.error("保存失败");
15805
15821
  }
@@ -15914,7 +15930,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15914
15930
  C("dept-click", t);
15915
15931
  }, $a = (t) => {
15916
15932
  t && t.length > 0 && (t.forEach((f) => {
15917
- Q.value.set(f.value, {
15933
+ X.value.set(f.value, {
15918
15934
  width: f.width ? parseInt(f.width) : void 0,
15919
15935
  fixed: f.fixed && f.fixed !== "none" ? f.fixed : void 0,
15920
15936
  show: f.show
@@ -15923,9 +15939,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
15923
15939
  se.columns = ra(), r.value && r.value.refreshColumn();
15924
15940
  })), C("column-change", t);
15925
15941
  }, il = (t) => {
15926
- B.value = t || [], C("color-filter-change", t);
15942
+ N.value = t || [], C("color-filter-change", t);
15927
15943
  }, sl = () => {
15928
- B.value = [], C("color-filter-clear");
15944
+ N.value = [], C("color-filter-clear");
15929
15945
  }, rl = ve(() => {
15930
15946
  var t;
15931
15947
  return ((t = m.businessFlow) == null ? void 0 : t.downstream) && m.businessFlow.downstream.length > 0;
@@ -16169,7 +16185,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16169
16185
  }, 1024)
16170
16186
  ]),
16171
16187
  _: 2
16172
- }, 1024)) : be.show && !N(be.value) ? (l(), Y(x, {
16188
+ }, 1024)) : be.show && !B(be.value) ? (l(), Y(x, {
16173
16189
  key: 1,
16174
16190
  variant: "outline",
16175
16191
  size: "small",
@@ -16371,7 +16387,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16371
16387
  ref_key: "tableRef",
16372
16388
  ref: r
16373
16389
  }, se, {
16374
- "edit-config": G.value,
16390
+ "edit-config": K.value,
16375
16391
  onCheckboxChange: ma,
16376
16392
  onCheckboxAll: Qa,
16377
16393
  onEditActived: Wa,
@@ -16799,7 +16815,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16799
16815
  const S = c.value[d];
16800
16816
  c.value[d] = c.value[d + 1], c.value[d + 1] = S;
16801
16817
  }
16802
- }, G = () => {
16818
+ }, K = () => {
16803
16819
  }, ge = () => {
16804
16820
  const d = c.value.map((S) => S._originalConfig ? {
16805
16821
  ...S._originalConfig,
@@ -16813,7 +16829,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16813
16829
  placeholder: S.placeholder || `请输入${S.label}`
16814
16830
  } : O(S));
16815
16831
  b("save", d), u.value = !1, Oe.success("字段配置已保存");
16816
- }, K = () => {
16832
+ }, G = () => {
16817
16833
  u.value = !1;
16818
16834
  }, A = () => {
16819
16835
  b("advanced-edit");
@@ -16830,7 +16846,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16830
16846
  placement: "center",
16831
16847
  footer: !1,
16832
16848
  class: "field-manage-dialog",
16833
- onClose: K
16849
+ onClose: G
16834
16850
  }, {
16835
16851
  header: i(() => [
16836
16852
  e("div", Qf, [
@@ -16896,7 +16912,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16896
16912
  }),
16897
16913
  s(g, {
16898
16914
  variant: "outline",
16899
- onClick: K,
16915
+ onClick: G,
16900
16916
  size: "small"
16901
16917
  }, {
16902
16918
  default: i(() => [...S[10] || (S[10] = [
@@ -16912,7 +16928,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
16912
16928
  data: c.value,
16913
16929
  columns: _,
16914
16930
  editConfig: C,
16915
- onEditClosed: G
16931
+ onEditClosed: K
16916
16932
  }), {
16917
16933
  fieldType_edit: i(({ row: w }) => [
16918
16934
  s(T, {