cd-form 2.0.5 → 2.0.6
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 +897 -882
- package/dist/cd-form.umd.cjs +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { MessagePlugin as
|
|
1
|
+
import { defineComponent as Je, computed as ve, resolveComponent as M, createBlock as j, openBlock as l, normalizeClass as xe, withCtx as i, renderSlot as fa, createElementBlock as o, createElementVNode as e, createCommentVNode as Y, normalizeStyle as Ke, toDisplayString as V, createTextVNode as A, withModifiers as Qe, Fragment as fe, renderList as be, ref as F, watch as ze, nextTick as na, createVNode as s, withDirectives as ga, withKeys as Sa, vModelText as ka, vShow as Cl, createSlots as ba, useCssVars as Ol, onMounted as za, onUnmounted as cl, Teleport as dl, Transition as _l, unref as ca, reactive as pa, createStaticVNode as wl, inject as sl, resolveDynamicComponent as Tl, mergeProps as Fa, provide as Ca, watchEffect as xl, h as rl, normalizeProps as Nl, guardReactiveProps as Bl, isRef as ql } from "vue";
|
|
2
|
+
import { MessagePlugin as Ie, DialogPlugin as Ll } from "tdesign-vue-next";
|
|
3
3
|
import Ta from "vxe-table";
|
|
4
|
-
const Ma = /* @__PURE__ */
|
|
4
|
+
const Ma = /* @__PURE__ */ Je({
|
|
5
5
|
__name: "CdFormCol",
|
|
6
6
|
props: {
|
|
7
7
|
span: { default: 12 },
|
|
@@ -29,7 +29,7 @@ const Ma = /* @__PURE__ */ Ke({
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
function
|
|
32
|
+
function la(a) {
|
|
33
33
|
return a.install = (te) => {
|
|
34
34
|
const n = a.name || a.__name;
|
|
35
35
|
n && te.component(n, a);
|
|
@@ -80,7 +80,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
80
80
|
}, ht = {
|
|
81
81
|
key: 3,
|
|
82
82
|
class: "cd-usercard__footer"
|
|
83
|
-
}, bt = /* @__PURE__ */
|
|
83
|
+
}, bt = /* @__PURE__ */ Je({
|
|
84
84
|
name: "CdUserCard",
|
|
85
85
|
__name: "UserCard",
|
|
86
86
|
props: {
|
|
@@ -119,7 +119,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
119
119
|
y("phone", n);
|
|
120
120
|
}, _ = () => {
|
|
121
121
|
n.email && y("email", n.email);
|
|
122
|
-
},
|
|
122
|
+
}, w = () => {
|
|
123
123
|
y("more", n);
|
|
124
124
|
}, r = ve(() => (n.name || "").charAt(0).toUpperCase()), I = ve(() => {
|
|
125
125
|
const D = [
|
|
@@ -153,7 +153,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
153
153
|
}, null, 8, Yl)) : (l(), o("div", {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "cd-usercard__avatar cd-usercard__avatar--placeholder",
|
|
156
|
-
style:
|
|
156
|
+
style: Ke({ backgroundColor: I.value })
|
|
157
157
|
}, V(r.value), 5)),
|
|
158
158
|
a.showStatus ? (l(), o("span", {
|
|
159
159
|
key: 2,
|
|
@@ -179,7 +179,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
179
179
|
theme: "default",
|
|
180
180
|
variant: "text",
|
|
181
181
|
shape: "circle",
|
|
182
|
-
onClick:
|
|
182
|
+
onClick: Qe(m, ["stop"])
|
|
183
183
|
}, {
|
|
184
184
|
icon: i(() => [...q[0] || (q[0] = [
|
|
185
185
|
e("i", { class: "ri-message-3-line" }, null, -1)
|
|
@@ -191,7 +191,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
191
191
|
theme: "default",
|
|
192
192
|
variant: "text",
|
|
193
193
|
shape: "circle",
|
|
194
|
-
onClick:
|
|
194
|
+
onClick: Qe(U, ["stop"])
|
|
195
195
|
}, {
|
|
196
196
|
icon: i(() => [...q[1] || (q[1] = [
|
|
197
197
|
e("i", { class: "ri-phone-line" }, null, -1)
|
|
@@ -203,7 +203,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
203
203
|
theme: "default",
|
|
204
204
|
variant: "text",
|
|
205
205
|
shape: "circle",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: Qe(w, ["stop"])
|
|
207
207
|
}, {
|
|
208
208
|
icon: i(() => [...q[2] || (q[2] = [
|
|
209
209
|
e("i", { class: "ri-more-2-fill" }, null, -1)
|
|
@@ -225,7 +225,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
225
225
|
q[6] || (q[6] = e("span", { class: "cd-usercard__label" }, "邮箱", -1)),
|
|
226
226
|
e("span", {
|
|
227
227
|
class: "cd-usercard__value cd-usercard__value--link",
|
|
228
|
-
onClick:
|
|
228
|
+
onClick: Qe(_, ["stop"])
|
|
229
229
|
}, V(a.email), 1)
|
|
230
230
|
])) : Y("", !0),
|
|
231
231
|
a.mobile ? (l(), o("div", st, [
|
|
@@ -282,12 +282,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
282
282
|
], 2);
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), ea = (a, te) => {
|
|
286
286
|
const n = a.__vccOpts || a;
|
|
287
287
|
for (const [y, u] of te)
|
|
288
288
|
n[y] = u;
|
|
289
289
|
return n;
|
|
290
|
-
}, yt = /* @__PURE__ */
|
|
290
|
+
}, yt = /* @__PURE__ */ ea(bt, [["__scopeId", "data-v-df37fd5c"]]), _t = { class: "avatar-crop-container" }, kt = ["src"], Ct = { class: "crop-preview" }, wt = { class: "crop-footer" }, xt = /* @__PURE__ */ Je({
|
|
291
291
|
name: "AvatarCropDialog",
|
|
292
292
|
__name: "AvatarCropDialog",
|
|
293
293
|
props: {
|
|
@@ -296,7 +296,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
296
296
|
},
|
|
297
297
|
emits: ["update:visible", "confirm", "cancel"],
|
|
298
298
|
setup(a, { emit: te }) {
|
|
299
|
-
const n = a, y = te, u = F(n.visible), c = F(null), m = F(null), U = F(null), _ = F(null),
|
|
299
|
+
const n = a, y = te, u = F(n.visible), c = F(null), m = F(null), U = F(null), _ = F(null), w = F({
|
|
300
300
|
x: 0,
|
|
301
301
|
y: 0,
|
|
302
302
|
width: 200,
|
|
@@ -311,24 +311,24 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
311
311
|
top: 0
|
|
312
312
|
}), D = F(!1), q = F(!1), ee = F(""), N = F({ x: 0, y: 0 }), J = F({ x: 0, y: 0, width: 0, height: 0 });
|
|
313
313
|
ze(() => n.visible, (b) => {
|
|
314
|
-
u.value = b, b &&
|
|
314
|
+
u.value = b, b && na(() => {
|
|
315
315
|
d();
|
|
316
316
|
});
|
|
317
317
|
}), ze(u, (b) => {
|
|
318
318
|
y("update:visible", b);
|
|
319
319
|
});
|
|
320
320
|
const ge = ve(() => ({
|
|
321
|
-
left: `${
|
|
322
|
-
top: `${
|
|
323
|
-
width: `${
|
|
324
|
-
height: `${
|
|
321
|
+
left: `${w.value.x}px`,
|
|
322
|
+
top: `${w.value.y}px`,
|
|
323
|
+
width: `${w.value.width}px`,
|
|
324
|
+
height: `${w.value.height}px`
|
|
325
325
|
})), H = ve(() => ({
|
|
326
326
|
width: `${r.value.width}px`,
|
|
327
327
|
height: `${r.value.height}px`,
|
|
328
328
|
left: `${I.value.left}px`,
|
|
329
329
|
top: `${I.value.top}px`
|
|
330
330
|
})), E = ve(() => {
|
|
331
|
-
const { x: b, y: z, width: P, height: G } =
|
|
331
|
+
const { x: b, y: z, width: P, height: G } = w.value;
|
|
332
332
|
return {
|
|
333
333
|
clipPath: `polygon(
|
|
334
334
|
0% 0%,
|
|
@@ -359,31 +359,31 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
359
359
|
}, d = () => {
|
|
360
360
|
if (!c.value) return;
|
|
361
361
|
const b = Math.min(r.value.width, r.value.height) * 0.7;
|
|
362
|
-
|
|
362
|
+
w.value = {
|
|
363
363
|
x: (r.value.width - b) / 2,
|
|
364
364
|
y: (r.value.height - b) / 2,
|
|
365
365
|
width: b,
|
|
366
366
|
height: b
|
|
367
367
|
}, ue();
|
|
368
368
|
}, S = (b) => {
|
|
369
|
-
D.value = !0, N.value = { x: b.clientX, y: b.clientY }, J.value = { ...
|
|
369
|
+
D.value = !0, N.value = { x: b.clientX, y: b.clientY }, J.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", R);
|
|
370
370
|
}, g = (b) => {
|
|
371
371
|
if (D.value) {
|
|
372
372
|
const z = b.clientX - N.value.x, P = b.clientY - N.value.y;
|
|
373
373
|
let G = J.value.x + z, X = J.value.y + P;
|
|
374
|
-
G = Math.max(0, Math.min(G, r.value.width -
|
|
374
|
+
G = Math.max(0, Math.min(G, r.value.width - w.value.width)), X = Math.max(0, Math.min(X, r.value.height - w.value.height)), w.value.x = G, w.value.y = X, ue();
|
|
375
375
|
} else q.value && de(b);
|
|
376
376
|
}, R = () => {
|
|
377
377
|
D.value = !1, q.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", R);
|
|
378
378
|
}, O = (b, z) => {
|
|
379
|
-
q.value = !0, ee.value = z, N.value = { x: b.clientX, y: b.clientY }, J.value = { ...
|
|
379
|
+
q.value = !0, ee.value = z, N.value = { x: b.clientX, y: b.clientY }, J.value = { ...w.value }, document.addEventListener("mousemove", g), document.addEventListener("mouseup", R);
|
|
380
380
|
}, de = (b) => {
|
|
381
381
|
const z = b.clientX - N.value.x, P = b.clientY - N.value.y, G = ee.value;
|
|
382
382
|
let X = { ...J.value };
|
|
383
383
|
const oe = Math.max(Math.abs(z), Math.abs(P)) * (z < 0 || P < 0 ? -1 : 1);
|
|
384
384
|
G.includes("n") && (X.y = J.value.y + oe, X.height = J.value.height - oe), G.includes("s") && (X.height = J.value.height + oe), G.includes("w") && (X.x = J.value.x + oe, X.width = J.value.width - oe), G.includes("e") && (X.width = J.value.width + oe);
|
|
385
385
|
const ne = Math.max(50, Math.min(X.width, X.height));
|
|
386
|
-
G.includes("n") && (X.y = J.value.y + J.value.height - ne), G.includes("w") && (X.x = J.value.x + J.value.width - ne), X.width = ne, X.height = ne, X.x = Math.max(0, Math.min(X.x, r.value.width - X.width)), X.y = Math.max(0, Math.min(X.y, r.value.height - X.height)),
|
|
386
|
+
G.includes("n") && (X.y = J.value.y + J.value.height - ne), G.includes("w") && (X.x = J.value.x + J.value.width - ne), X.width = ne, X.height = ne, X.x = Math.max(0, Math.min(X.x, r.value.width - X.width)), X.y = Math.max(0, Math.min(X.y, r.value.height - X.height)), w.value = X, ue();
|
|
387
387
|
}, ue = () => {
|
|
388
388
|
if (!_.value || !c.value) return;
|
|
389
389
|
const z = _.value.getContext("2d");
|
|
@@ -391,10 +391,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
391
391
|
const P = r.value.naturalWidth / r.value.width;
|
|
392
392
|
z.clearRect(0, 0, 80, 80), z.drawImage(
|
|
393
393
|
c.value,
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
394
|
+
w.value.x * P,
|
|
395
|
+
w.value.y * P,
|
|
396
|
+
w.value.width * P,
|
|
397
|
+
w.value.height * P,
|
|
398
398
|
0,
|
|
399
399
|
0,
|
|
400
400
|
80,
|
|
@@ -409,10 +409,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
409
409
|
const G = r.value.naturalWidth / r.value.width;
|
|
410
410
|
P.drawImage(
|
|
411
411
|
c.value,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
412
|
+
w.value.x * G,
|
|
413
|
+
w.value.y * G,
|
|
414
|
+
w.value.width * G,
|
|
415
|
+
w.value.height * G,
|
|
416
416
|
0,
|
|
417
417
|
0,
|
|
418
418
|
z,
|
|
@@ -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: U,
|
|
447
|
-
style:
|
|
447
|
+
style: Ke(H.value)
|
|
448
448
|
}, [
|
|
449
449
|
e("img", {
|
|
450
450
|
ref_key: "imageRef",
|
|
@@ -453,18 +453,18 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
453
453
|
class: "crop-image",
|
|
454
454
|
draggable: "false",
|
|
455
455
|
onLoad: W,
|
|
456
|
-
onDragstart: z[0] || (z[0] =
|
|
456
|
+
onDragstart: z[0] || (z[0] = Qe(() => {
|
|
457
457
|
}, ["prevent"])),
|
|
458
|
-
onContextmenu: z[1] || (z[1] =
|
|
458
|
+
onContextmenu: z[1] || (z[1] = Qe(() => {
|
|
459
459
|
}, ["prevent"]))
|
|
460
460
|
}, null, 40, kt),
|
|
461
461
|
e("div", {
|
|
462
462
|
class: "crop-mask",
|
|
463
|
-
style:
|
|
463
|
+
style: Ke(E.value)
|
|
464
464
|
}, null, 4),
|
|
465
465
|
e("div", {
|
|
466
466
|
class: "crop-box",
|
|
467
|
-
style:
|
|
467
|
+
style: Ke(ge.value),
|
|
468
468
|
onMousedown: S
|
|
469
469
|
}, [
|
|
470
470
|
z[11] || (z[11] = e("div", { class: "crop-box-border" }, null, -1)),
|
|
@@ -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] =
|
|
491
|
+
onMousedown: z[2] || (z[2] = Qe((X) => O(X, "nw"), ["stop"]))
|
|
492
492
|
}, null, 32),
|
|
493
493
|
e("div", {
|
|
494
494
|
class: "resize-handle handle-n",
|
|
495
|
-
onMousedown: z[3] || (z[3] =
|
|
495
|
+
onMousedown: z[3] || (z[3] = Qe((X) => O(X, "n"), ["stop"]))
|
|
496
496
|
}, null, 32),
|
|
497
497
|
e("div", {
|
|
498
498
|
class: "resize-handle handle-ne",
|
|
499
|
-
onMousedown: z[4] || (z[4] =
|
|
499
|
+
onMousedown: z[4] || (z[4] = Qe((X) => O(X, "ne"), ["stop"]))
|
|
500
500
|
}, null, 32),
|
|
501
501
|
e("div", {
|
|
502
502
|
class: "resize-handle handle-e",
|
|
503
|
-
onMousedown: z[5] || (z[5] =
|
|
503
|
+
onMousedown: z[5] || (z[5] = Qe((X) => O(X, "e"), ["stop"]))
|
|
504
504
|
}, null, 32),
|
|
505
505
|
e("div", {
|
|
506
506
|
class: "resize-handle handle-se",
|
|
507
|
-
onMousedown: z[6] || (z[6] =
|
|
507
|
+
onMousedown: z[6] || (z[6] = Qe((X) => O(X, "se"), ["stop"]))
|
|
508
508
|
}, null, 32),
|
|
509
509
|
e("div", {
|
|
510
510
|
class: "resize-handle handle-s",
|
|
511
|
-
onMousedown: z[7] || (z[7] =
|
|
511
|
+
onMousedown: z[7] || (z[7] = Qe((X) => O(X, "s"), ["stop"]))
|
|
512
512
|
}, null, 32),
|
|
513
513
|
e("div", {
|
|
514
514
|
class: "resize-handle handle-sw",
|
|
515
|
-
onMousedown: z[8] || (z[8] =
|
|
515
|
+
onMousedown: z[8] || (z[8] = Qe((X) => O(X, "sw"), ["stop"]))
|
|
516
516
|
}, null, 32),
|
|
517
517
|
e("div", {
|
|
518
518
|
class: "resize-handle handle-w",
|
|
519
|
-
onMousedown: z[9] || (z[9] =
|
|
519
|
+
onMousedown: z[9] || (z[9] = Qe((X) => O(X, "w"), ["stop"]))
|
|
520
520
|
}, null, 32)
|
|
521
521
|
], 36)
|
|
522
522
|
], 4)
|
|
@@ -558,7 +558,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
558
558
|
}, 8, ["visible"]);
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
}), $t = /* @__PURE__ */
|
|
561
|
+
}), $t = /* @__PURE__ */ ea(xt, [["__scopeId", "data-v-bf9fcb25"]]), Vt = { class: "cd-usercard-panel" }, St = { class: "profile" }, Mt = { class: "profile__header" }, zt = { class: "profile__avatar-wrapper" }, Ft = ["src"], Dt = { class: "profile__title" }, At = { class: "profile__name" }, Ut = {
|
|
562
562
|
key: 0,
|
|
563
563
|
class: "profile__alias editable"
|
|
564
564
|
}, Rt = {
|
|
@@ -582,7 +582,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
582
582
|
}, Zt = {
|
|
583
583
|
key: 1,
|
|
584
584
|
class: "section-content"
|
|
585
|
-
}, en = /* @__PURE__ */
|
|
585
|
+
}, en = /* @__PURE__ */ Je({
|
|
586
586
|
name: "CdProfilePanel",
|
|
587
587
|
__name: "ProfilePanel",
|
|
588
588
|
props: {
|
|
@@ -593,8 +593,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
593
593
|
},
|
|
594
594
|
emits: ["edit", "email", "update:modelValue", "field-change", "avatar-upload"],
|
|
595
595
|
setup(a, { emit: te }) {
|
|
596
|
-
const n = a, y = te, u = F(null), c = F(""), m = F(null), U = F(null), _ = F(!1),
|
|
597
|
-
u.value = W, c.value = d,
|
|
596
|
+
const n = a, y = te, u = F(null), c = F(""), m = F(null), U = F(null), _ = F(!1), w = F(""), r = (W, d) => {
|
|
597
|
+
u.value = W, c.value = d, na(() => {
|
|
598
598
|
var S;
|
|
599
599
|
return (S = m.value) == null ? void 0 : S.focus();
|
|
600
600
|
});
|
|
@@ -614,7 +614,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
614
614
|
const R = new FileReader();
|
|
615
615
|
R.onload = (O) => {
|
|
616
616
|
var de;
|
|
617
|
-
|
|
617
|
+
w.value = (de = O.target) == null ? void 0 : de.result, _.value = !0;
|
|
618
618
|
}, R.readAsDataURL(S), d.value = "";
|
|
619
619
|
}
|
|
620
620
|
}, ee = (W) => {
|
|
@@ -656,7 +656,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
656
656
|
}, null, 8, Ft)) : (l(), o("div", {
|
|
657
657
|
key: 1,
|
|
658
658
|
class: "profile__avatar profile__avatar-placeholder",
|
|
659
|
-
style:
|
|
659
|
+
style: Ke({ backgroundColor: E.value })
|
|
660
660
|
}, V(H.value), 5)),
|
|
661
661
|
a.inlineEdit ? (l(), o("div", {
|
|
662
662
|
key: 2,
|
|
@@ -868,19 +868,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
868
868
|
s($t, {
|
|
869
869
|
visible: _.value,
|
|
870
870
|
"onUpdate:visible": d[12] || (d[12] = (O) => _.value = O),
|
|
871
|
-
"image-src":
|
|
871
|
+
"image-src": w.value,
|
|
872
872
|
onConfirm: ee
|
|
873
873
|
}, null, 8, ["visible", "image-src"])
|
|
874
874
|
], 64);
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
|
-
}), $l = /* @__PURE__ */
|
|
877
|
+
}), $l = /* @__PURE__ */ ea(en, [["__scopeId", "data-v-c41100af"]]), an = {
|
|
878
878
|
key: 0,
|
|
879
879
|
class: "cd-usercard-user-center__nav"
|
|
880
880
|
}, ln = { class: "cd-usercard-nav-header" }, tn = { class: "cd-usercard-nav-list" }, nn = ["onClick"], on = {
|
|
881
881
|
key: 0,
|
|
882
882
|
class: "cd-usercard-nav-footer"
|
|
883
|
-
}, sn = { class: "cd-usercard-user-center__content" }, Vl = /* @__PURE__ */
|
|
883
|
+
}, sn = { class: "cd-usercard-user-center__content" }, Vl = /* @__PURE__ */ Je({
|
|
884
884
|
name: "CdProfileDialog",
|
|
885
885
|
__name: "ProfileDialog",
|
|
886
886
|
props: {
|
|
@@ -912,7 +912,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
912
912
|
c.value = I.key, y("nav-click", I);
|
|
913
913
|
}, _ = () => {
|
|
914
914
|
y("edit");
|
|
915
|
-
},
|
|
915
|
+
}, w = (I, D) => {
|
|
916
916
|
y("field-change", I, D);
|
|
917
917
|
}, r = () => {
|
|
918
918
|
y("logout");
|
|
@@ -932,7 +932,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
932
932
|
default: i(() => [
|
|
933
933
|
e("div", {
|
|
934
934
|
class: "cd-usercard-user-center",
|
|
935
|
-
style:
|
|
935
|
+
style: Ke({ height: a.height })
|
|
936
936
|
}, [
|
|
937
937
|
a.showNav ? (l(), o("aside", an, [
|
|
938
938
|
e("div", ln, [
|
|
@@ -972,7 +972,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
972
972
|
editable: a.editable,
|
|
973
973
|
"inline-edit": a.inlineEdit,
|
|
974
974
|
onEdit: _,
|
|
975
|
-
onFieldChange:
|
|
975
|
+
onFieldChange: w,
|
|
976
976
|
onAvatarUpload: D[0] || (D[0] = (ee) => y("avatar-upload", ee))
|
|
977
977
|
}, null, 8, ["model-value", "editable", "inline-edit"])) : Y("", !0)
|
|
978
978
|
])
|
|
@@ -986,7 +986,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
986
986
|
}), rn = { class: "cd-usercard-dropdown-user-info" }, dn = { class: "cd-usercard-header" }, un = { class: "cd-usercard-user-info" }, cn = ["src"], fn = { class: "cd_info cd-usercard-block" }, mn = { class: "cd_name-row" }, vn = { class: "cd_name-wrapper" }, pn = { class: "cd_name cd-usercard-truncate" }, gn = { class: "cd_actions" }, hn = { class: "cd-usercard-status-options" }, bn = { class: "cd_org cd-usercard-truncate" }, yn = { class: "cd-usercard-menu-list" }, _n = ["onClick"], kn = {
|
|
987
987
|
key: 0,
|
|
988
988
|
class: "cd-usercard-footer"
|
|
989
|
-
}, Cn = ["src"], wn = { class: "cd-usercard-user-name" }, xn = /* @__PURE__ */
|
|
989
|
+
}, Cn = ["src"], wn = { class: "cd-usercard-user-name" }, xn = /* @__PURE__ */ Je({
|
|
990
990
|
name: "CdUserInfo",
|
|
991
991
|
__name: "UserInfo",
|
|
992
992
|
props: {
|
|
@@ -1009,7 +1009,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1009
1009
|
},
|
|
1010
1010
|
emits: ["status-change", "menu-click", "edit", "field-change", "avatar-upload", "logout"],
|
|
1011
1011
|
setup(a, { emit: te }) {
|
|
1012
|
-
const n = a, y = te, u = F(!1), c = F(!1), m = F("profile"), U = F(!1), _ = F(n.status),
|
|
1012
|
+
const n = a, y = te, u = F(!1), c = F(!1), m = F("profile"), U = F(!1), _ = F(n.status), w = ve(() => _.value === "dnd" ? "status-badge--dnd" : _.value === "mute" ? "status-badge--mute" : "status-badge--online"), r = ve(() => _.value === "dnd" ? "请勿打扰" : _.value === "mute" ? "静音" : "在线"), I = ve(() => n.profileData ? (n.profileData.displayName || "").charAt(0).toUpperCase() : ""), D = ve(() => n.theme === "light" ? "#ffffff" : getComputedStyle(document.documentElement).getPropertyValue("--td-brand-color").trim() || "#1890ff"), q = 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"), N = () => {
|
|
1013
1013
|
U.value = !U.value;
|
|
1014
1014
|
}, J = (g) => {
|
|
1015
1015
|
_.value = g, U.value = !1, y("status-change", g);
|
|
@@ -1052,7 +1052,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1052
1052
|
}, null, 8, cn)) : (l(), o("div", {
|
|
1053
1053
|
key: 1,
|
|
1054
1054
|
class: "cd_header cd-usercard-avatar-placeholder",
|
|
1055
|
-
style:
|
|
1055
|
+
style: Ke({ backgroundColor: ee.value, color: "#fff" })
|
|
1056
1056
|
}, V(I.value), 5)),
|
|
1057
1057
|
e("div", fn, [
|
|
1058
1058
|
e("div", mn, [
|
|
@@ -1065,7 +1065,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1065
1065
|
]),
|
|
1066
1066
|
e("div", gn, [
|
|
1067
1067
|
e("span", {
|
|
1068
|
-
class: xe(["cd-usercard-status-text cd-usercard-cursor-pointer cd-usercard-ml-2",
|
|
1068
|
+
class: xe(["cd-usercard-status-text cd-usercard-cursor-pointer cd-usercard-ml-2", w.value]),
|
|
1069
1069
|
onClick: N
|
|
1070
1070
|
}, V(r.value), 3),
|
|
1071
1071
|
ga(e("div", hn, [
|
|
@@ -1135,7 +1135,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1135
1135
|
}, null, 8, Cn)) : (l(), o("div", {
|
|
1136
1136
|
key: 1,
|
|
1137
1137
|
class: "cd-usercard-user-avatar cd-usercard-avatar-placeholder",
|
|
1138
|
-
style:
|
|
1138
|
+
style: Ke({ backgroundColor: D.value, color: q.value })
|
|
1139
1139
|
}, V(I.value), 5)),
|
|
1140
1140
|
e("span", wn, V((ue = a.profileData) == null ? void 0 : ue.displayName), 1),
|
|
1141
1141
|
R[11] || (R[11] = e("i", { class: "ri-arrow-down-s-line" }, null, -1))
|
|
@@ -1162,7 +1162,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1162
1162
|
], 64);
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
}), $n = /* @__PURE__ */
|
|
1165
|
+
}), $n = /* @__PURE__ */ ea(xn, [["__scopeId", "data-v-42962883"]]), Vn = { class: "cd-ps-container" }, Sn = {
|
|
1166
1166
|
key: 0,
|
|
1167
1167
|
class: "cd-ps-tips"
|
|
1168
1168
|
}, Mn = {
|
|
@@ -1198,7 +1198,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1198
1198
|
}, lo = {
|
|
1199
1199
|
key: 1,
|
|
1200
1200
|
class: "cd-ps-selected-list"
|
|
1201
|
-
}, to = { class: "cd-ps-item-info" }, no = { class: "cd-ps-info" }, oo = { class: "cd-ps-name" }, io = { class: "cd-ps-meta" }, so = { key: 0 }, ro = { key: 1 }, uo = { key: 2 }, co = { key: 3 }, fo = /* @__PURE__ */
|
|
1201
|
+
}, to = { class: "cd-ps-item-info" }, no = { class: "cd-ps-info" }, oo = { class: "cd-ps-name" }, io = { class: "cd-ps-meta" }, so = { key: 0 }, ro = { key: 1 }, uo = { key: 2 }, co = { key: 3 }, fo = /* @__PURE__ */ Je({
|
|
1202
1202
|
__name: "PersonSelector",
|
|
1203
1203
|
props: {
|
|
1204
1204
|
visible: { type: Boolean, default: !1 },
|
|
@@ -1214,7 +1214,7 @@ 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: te, emit: n }) {
|
|
1216
1216
|
var y, u;
|
|
1217
|
-
const c = a, m = n, U = F(c.visible), _ = F(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""),
|
|
1217
|
+
const c = a, m = n, U = F(c.visible), _ = F(((u = (y = c.tabs) == null ? void 0 : y[0]) == null ? void 0 : u.key) || ""), w = F(null), r = F(""), I = F([]), D = F(/* @__PURE__ */ new Map()), q = F({}), ee = F(!1), N = F(!1), J = F([]), ge = ve(() => c.tabs || []), H = ve(() => c.organizations || []), E = ve(() => c.tips || ""), W = ve(() => c.showSearch), d = ve(() => c.showOrg), S = ve(() => c.dialogWidth), g = F({});
|
|
1218
1218
|
ze(() => c.tabs, (ce) => {
|
|
1219
1219
|
if (ce && ce.length > 0) {
|
|
1220
1220
|
const T = {};
|
|
@@ -1235,7 +1235,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1235
1235
|
ze(() => c.modelValue, (ce) => {
|
|
1236
1236
|
U.value && ce && R();
|
|
1237
1237
|
}, { deep: !0 }), ze(() => c.visible, (ce) => {
|
|
1238
|
-
U.value = ce, ce && (R(), c.organizations.length > 0 && !
|
|
1238
|
+
U.value = ce, ce && (R(), c.organizations.length > 0 && !w.value && (w.value = c.organizations[0].id));
|
|
1239
1239
|
}), ze(U, (ce) => {
|
|
1240
1240
|
m("update:visible", ce);
|
|
1241
1241
|
});
|
|
@@ -1279,29 +1279,29 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1279
1279
|
const ce = (T) => {
|
|
1280
1280
|
J.value = T.map((h) => ({ ...h, isUser: !0 })), N.value = !1;
|
|
1281
1281
|
};
|
|
1282
|
-
m("search", { keyword: r.value, orgId:
|
|
1282
|
+
m("search", { keyword: r.value, orgId: w.value || void 0, callback: ce });
|
|
1283
1283
|
}, oe = () => {
|
|
1284
1284
|
P && (clearTimeout(P), P = null), ee.value = !1, r.value = "", J.value = [], N.value = !1;
|
|
1285
1285
|
}, ne = (ce) => {
|
|
1286
|
-
I.value.indexOf(ce.id) > -1 ? x(ce.id) : (c.multiple || (I.value = [], D.value.clear()), L(ce.id, { ...ce, isUser: !0, typeName: "搜索结果", orgId:
|
|
1286
|
+
I.value.indexOf(ce.id) > -1 ? x(ce.id) : (c.multiple || (I.value = [], D.value.clear()), L(ce.id, { ...ce, isUser: !0, typeName: "搜索结果", orgId: w.value }), c.multiple || ke());
|
|
1287
1287
|
};
|
|
1288
1288
|
function k(ce) {
|
|
1289
1289
|
const T = [], h = (Se) => {
|
|
1290
|
-
for (const
|
|
1291
|
-
T.push(
|
|
1290
|
+
for (const We of Se)
|
|
1291
|
+
T.push(We.id), We.children && h(We.children);
|
|
1292
1292
|
};
|
|
1293
1293
|
return h(ce), T;
|
|
1294
1294
|
}
|
|
1295
1295
|
const B = (ce, T) => {
|
|
1296
1296
|
var h, Se;
|
|
1297
|
-
const
|
|
1298
|
-
if (
|
|
1299
|
-
const Fe =
|
|
1297
|
+
const We = T == null ? void 0 : T.node;
|
|
1298
|
+
if (We) {
|
|
1299
|
+
const Fe = We.value ?? ((h = We.data) == null ? void 0 : h.id);
|
|
1300
1300
|
if (Fe !== void 0) {
|
|
1301
|
-
if (
|
|
1301
|
+
if (We.checked) {
|
|
1302
1302
|
c.multiple || (I.value = [], D.value.clear());
|
|
1303
|
-
const
|
|
1304
|
-
L(Fe, { ...
|
|
1303
|
+
const Oe = c.tabs.find((Ae) => Ae.key === _.value), Ve = Oe ? Oe.name.replace(/^按/, "") : "";
|
|
1304
|
+
L(Fe, { ...We.data, typeName: Ve, orgId: w.value }), !c.multiple && (Se = We.data) != null && Se.isUser && ke();
|
|
1305
1305
|
} else
|
|
1306
1306
|
x(Fe);
|
|
1307
1307
|
return;
|
|
@@ -1321,14 +1321,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1321
1321
|
}
|
|
1322
1322
|
async function _e(ce, T) {
|
|
1323
1323
|
const h = ce.value, Se = q.value[T];
|
|
1324
|
-
m("load-users", { tabKey: T, nodeId: h, node: ce, callback: async (
|
|
1325
|
-
if (
|
|
1326
|
-
const ye =
|
|
1327
|
-
const { id: Fe, name:
|
|
1328
|
-
return { ...Ve, id: Fe, name: ae.displayName ||
|
|
1324
|
+
m("load-users", { tabKey: T, nodeId: h, node: ce, callback: async (We) => {
|
|
1325
|
+
if (We.length > 0) {
|
|
1326
|
+
const ye = We.map((ae) => {
|
|
1327
|
+
const { id: Fe, name: Oe, ...Ve } = ae;
|
|
1328
|
+
return { ...Ve, id: Fe, name: ae.displayName || Oe, isUser: !0 };
|
|
1329
1329
|
}), Q = g.value[T];
|
|
1330
1330
|
if (Q && le(Q, h, ye), Se) {
|
|
1331
|
-
Se.appendTo(h, ye), ce.data.loaded = !0, await
|
|
1331
|
+
Se.appendTo(h, ye), ce.data.loaded = !0, await na();
|
|
1332
1332
|
try {
|
|
1333
1333
|
Se.setItem(h, { expanded: !0 });
|
|
1334
1334
|
} catch {
|
|
@@ -1346,28 +1346,28 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1346
1346
|
}
|
|
1347
1347
|
const we = (ce) => {
|
|
1348
1348
|
x(ce);
|
|
1349
|
-
},
|
|
1349
|
+
}, qe = () => {
|
|
1350
1350
|
I.value = [], D.value.clear();
|
|
1351
1351
|
}, ke = () => {
|
|
1352
1352
|
m("update:modelValue", I.value), m("confirm", ue.value), U.value = !1;
|
|
1353
|
-
},
|
|
1353
|
+
}, Be = () => {
|
|
1354
1354
|
U.value = !1;
|
|
1355
1355
|
};
|
|
1356
1356
|
return te({
|
|
1357
|
-
clearSelection:
|
|
1357
|
+
clearSelection: qe,
|
|
1358
1358
|
appendUsers: (ce, T, h) => {
|
|
1359
1359
|
const Se = q.value[ce];
|
|
1360
1360
|
if (Se && h.length > 0) {
|
|
1361
|
-
const
|
|
1361
|
+
const We = h.map((ye) => {
|
|
1362
1362
|
const { id: Q, name: ae, ...Fe } = ye;
|
|
1363
1363
|
return { ...Fe, id: Q, name: ye.displayName || ae, isUser: !0 };
|
|
1364
1364
|
});
|
|
1365
|
-
Se.appendTo(T,
|
|
1365
|
+
Se.appendTo(T, We);
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
}), (ce, T) => {
|
|
1369
|
-
const h = M("t-icon"), Se = M("t-option"),
|
|
1370
|
-
return l(), j(
|
|
1369
|
+
const h = M("t-icon"), Se = M("t-option"), We = M("t-select"), ye = M("t-input"), Q = M("t-button"), ae = M("t-loading"), Fe = M("t-checkbox"), Oe = M("t-tree"), Ve = M("t-tab-panel"), Ae = M("t-tabs"), ra = M("t-dialog");
|
|
1370
|
+
return l(), j(ra, {
|
|
1371
1371
|
visible: U.value,
|
|
1372
1372
|
"onUpdate:visible": T[4] || (T[4] = (re) => U.value = re),
|
|
1373
1373
|
header: "选择人员",
|
|
@@ -1376,7 +1376,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1376
1376
|
placement: "center",
|
|
1377
1377
|
"destroy-on-close": "",
|
|
1378
1378
|
onConfirm: ke,
|
|
1379
|
-
onClose:
|
|
1379
|
+
onClose: Be
|
|
1380
1380
|
}, {
|
|
1381
1381
|
default: i(() => [
|
|
1382
1382
|
e("div", Vn, [
|
|
@@ -1386,9 +1386,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1386
1386
|
])) : Y("", !0),
|
|
1387
1387
|
W.value ? (l(), o("div", Mn, [
|
|
1388
1388
|
d.value && H.value.length > 0 ? (l(), o("div", zn, [
|
|
1389
|
-
s(
|
|
1390
|
-
modelValue:
|
|
1391
|
-
"onUpdate:modelValue": T[0] || (T[0] = (re) =>
|
|
1389
|
+
s(We, {
|
|
1390
|
+
modelValue: w.value,
|
|
1391
|
+
"onUpdate:modelValue": T[0] || (T[0] = (re) => w.value = re),
|
|
1392
1392
|
placeholder: "选择组织",
|
|
1393
1393
|
style: { width: "200px" },
|
|
1394
1394
|
onChange: z
|
|
@@ -1449,11 +1449,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1449
1449
|
(l(!0), o(fe, null, be(J.value, (re) => (l(), o("div", {
|
|
1450
1450
|
key: re.id,
|
|
1451
1451
|
class: xe(["cd-ps-result-item", { "cd-ps-selected": I.value.includes(re.id) }]),
|
|
1452
|
-
onClick: (
|
|
1452
|
+
onClick: (ia) => ne(re)
|
|
1453
1453
|
}, [
|
|
1454
1454
|
s(Fe, {
|
|
1455
1455
|
checked: I.value.includes(re.id),
|
|
1456
|
-
onClick: T[2] || (T[2] =
|
|
1456
|
+
onClick: T[2] || (T[2] = Qe(() => {
|
|
1457
1457
|
}, ["stop"]))
|
|
1458
1458
|
}, null, 8, ["checked"]),
|
|
1459
1459
|
e("div", Tn, [
|
|
@@ -1482,10 +1482,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1482
1482
|
label: re.name
|
|
1483
1483
|
}, {
|
|
1484
1484
|
default: i(() => {
|
|
1485
|
-
var
|
|
1485
|
+
var ia;
|
|
1486
1486
|
return [
|
|
1487
1487
|
e("div", Yn, [
|
|
1488
|
-
((
|
|
1488
|
+
((ia = g.value[re.key]) == null ? void 0 : ia.length) > 0 ? (l(), j(Oe, {
|
|
1489
1489
|
key: 0,
|
|
1490
1490
|
ref_for: !0,
|
|
1491
1491
|
ref: (Me) => O(re.key, Me),
|
|
@@ -1498,7 +1498,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1498
1498
|
onChange: B
|
|
1499
1499
|
}, {
|
|
1500
1500
|
label: i(({ node: Me }) => {
|
|
1501
|
-
var
|
|
1501
|
+
var sa;
|
|
1502
1502
|
return [
|
|
1503
1503
|
e("div", {
|
|
1504
1504
|
class: xe(["cd-ps-node", { "cd-ps-node-user": Me.data.isUser }])
|
|
@@ -1511,12 +1511,12 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1511
1511
|
Me.data.isUser && Me.data.position ? (l(), o("span", Jn, V(Me.data.position), 1)) : Y("", !0)
|
|
1512
1512
|
]),
|
|
1513
1513
|
Me.data.userCount && !Me.data.isUser ? (l(), o("span", Kn, "(" + V(Me.data.userCount) + ")", 1)) : Y("", !0),
|
|
1514
|
-
!Me.data.isUser && !((
|
|
1514
|
+
!Me.data.isUser && !((sa = Me.data.children) != null && sa.length) && !Me.data.loaded ? (l(), j(Q, {
|
|
1515
1515
|
key: 1,
|
|
1516
1516
|
size: "small",
|
|
1517
1517
|
variant: "text",
|
|
1518
1518
|
class: "cd-ps-load-btn",
|
|
1519
|
-
onClick:
|
|
1519
|
+
onClick: Qe((Le) => _e(Me, re.key), ["stop"])
|
|
1520
1520
|
}, {
|
|
1521
1521
|
default: i(() => [...T[9] || (T[9] = [
|
|
1522
1522
|
A("显示人员", -1)
|
|
@@ -1552,7 +1552,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1552
1552
|
key: 0,
|
|
1553
1553
|
size: "small",
|
|
1554
1554
|
variant: "text",
|
|
1555
|
-
onClick:
|
|
1555
|
+
onClick: qe
|
|
1556
1556
|
}, {
|
|
1557
1557
|
default: i(() => [...T[11] || (T[11] = [
|
|
1558
1558
|
A("清空", -1)
|
|
@@ -1595,7 +1595,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1595
1595
|
size: "small",
|
|
1596
1596
|
variant: "text",
|
|
1597
1597
|
shape: "circle",
|
|
1598
|
-
onClick: (
|
|
1598
|
+
onClick: (ia) => we(re.id)
|
|
1599
1599
|
}, {
|
|
1600
1600
|
icon: i(() => [
|
|
1601
1601
|
s(h, { name: "close" })
|
|
@@ -1627,7 +1627,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1627
1627
|
}, _o = {
|
|
1628
1628
|
key: 2,
|
|
1629
1629
|
class: "ri-building-line cd-input-select__option-icon"
|
|
1630
|
-
}, ko = /* @__PURE__ */
|
|
1630
|
+
}, ko = /* @__PURE__ */ Je({
|
|
1631
1631
|
name: "CdInputPersonSelector",
|
|
1632
1632
|
__name: "InputSelect",
|
|
1633
1633
|
props: {
|
|
@@ -1640,10 +1640,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1640
1640
|
},
|
|
1641
1641
|
emits: ["update:modelValue", "search", "load-users"],
|
|
1642
1642
|
setup(a, { emit: te }) {
|
|
1643
|
-
const n = a, y = te, u = F(!1), c = F([]), m = F(void 0), U = F(!1), _ = F([]),
|
|
1644
|
-
const g = new Set(
|
|
1643
|
+
const n = a, y = te, u = F(!1), c = F([]), m = F(void 0), U = F(!1), _ = F([]), w = F([]), r = F(!1), I = ve(() => {
|
|
1644
|
+
const g = new Set(w.value.map((R) => R.id));
|
|
1645
1645
|
return [
|
|
1646
|
-
...
|
|
1646
|
+
...w.value,
|
|
1647
1647
|
...c.value.filter((R) => !g.has(R.id))
|
|
1648
1648
|
];
|
|
1649
1649
|
}), D = (g) => g ? g.substring(0, 2).toUpperCase() : "", q = (g) => {
|
|
@@ -1675,19 +1675,19 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1675
1675
|
if (de.length > 0) {
|
|
1676
1676
|
const L = de.map((x) => I.value.find((b) => b.id === x)).filter(Boolean);
|
|
1677
1677
|
if (!n.multiple)
|
|
1678
|
-
y("update:modelValue", L),
|
|
1678
|
+
y("update:modelValue", L), w.value = L, c.value = [], r.value = !1;
|
|
1679
1679
|
else {
|
|
1680
1680
|
const x = [...n.modelValue, ...L];
|
|
1681
|
-
y("update:modelValue", x),
|
|
1681
|
+
y("update:modelValue", x), w.value = x;
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
if (ue.length > 0) {
|
|
1685
1685
|
const L = n.modelValue.filter((x) => !ue.includes(x.id));
|
|
1686
|
-
y("update:modelValue", L),
|
|
1686
|
+
y("update:modelValue", L), w.value = L;
|
|
1687
1687
|
}
|
|
1688
1688
|
}, ge = (g) => {
|
|
1689
1689
|
const R = n.modelValue.filter((O) => O.id !== g);
|
|
1690
|
-
y("update:modelValue", R),
|
|
1690
|
+
y("update:modelValue", R), w.value = R;
|
|
1691
1691
|
}, H = (g) => {
|
|
1692
1692
|
g && typeof g.stopPropagation == "function" && g.stopPropagation(), g && typeof g.preventDefault == "function" && g.preventDefault(), r.value = !1, E();
|
|
1693
1693
|
}, E = () => {
|
|
@@ -1706,10 +1706,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1706
1706
|
};
|
|
1707
1707
|
});
|
|
1708
1708
|
if (!n.multiple)
|
|
1709
|
-
y("update:modelValue", R.slice(0, 1)),
|
|
1709
|
+
y("update:modelValue", R.slice(0, 1)), w.value = R.slice(0, 1);
|
|
1710
1710
|
else {
|
|
1711
1711
|
const O = new Set(n.modelValue.map((L) => L.id)), de = R.filter((L) => !O.has(L.id)), ue = [...n.modelValue, ...de];
|
|
1712
|
-
y("update:modelValue", ue),
|
|
1712
|
+
y("update:modelValue", ue), w.value = ue;
|
|
1713
1713
|
}
|
|
1714
1714
|
U.value = !1;
|
|
1715
1715
|
}, d = (g) => {
|
|
@@ -1721,7 +1721,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1721
1721
|
});
|
|
1722
1722
|
};
|
|
1723
1723
|
return ze(() => n.modelValue, (g) => {
|
|
1724
|
-
n.multiple ? m.value = g.map((R) => R.id) : m.value = g.length > 0 ? g[0].id : void 0, _.value = g.map((R) => R.id),
|
|
1724
|
+
n.multiple ? m.value = g.map((R) => R.id) : m.value = g.length > 0 ? g[0].id : void 0, _.value = g.map((R) => R.id), w.value = g;
|
|
1725
1725
|
}, { immediate: !0, deep: !0 }), (g, R) => {
|
|
1726
1726
|
const O = M("t-icon"), de = M("t-tag"), ue = M("t-option"), L = M("t-select");
|
|
1727
1727
|
return l(), o("div", mo, [
|
|
@@ -1745,7 +1745,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1745
1745
|
onPopupVisibleChange: N
|
|
1746
1746
|
}, ba({
|
|
1747
1747
|
valueDisplay: i(() => [
|
|
1748
|
-
(l(!0), o(fe, null, be(
|
|
1748
|
+
(l(!0), o(fe, null, be(w.value, (x) => (l(), j(de, {
|
|
1749
1749
|
key: x.id,
|
|
1750
1750
|
closable: "",
|
|
1751
1751
|
size: "medium",
|
|
@@ -1777,7 +1777,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1777
1777
|
])) : (l(), o("div", {
|
|
1778
1778
|
key: 1,
|
|
1779
1779
|
class: "cd-input-select__option-avatar cd-input-select__option-avatar--placeholder",
|
|
1780
|
-
style:
|
|
1780
|
+
style: Ke({
|
|
1781
1781
|
backgroundColor: x.isUser === !1 ? "#e6f4ff" : q(x.name),
|
|
1782
1782
|
color: x.isUser === !1 ? "#0052d9" : "#fff"
|
|
1783
1783
|
})
|
|
@@ -1873,7 +1873,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1873
1873
|
}, ai = {
|
|
1874
1874
|
key: 1,
|
|
1875
1875
|
class: "cd-users-list-dept-dialog__empty"
|
|
1876
|
-
}, li = /* @__PURE__ */
|
|
1876
|
+
}, li = /* @__PURE__ */ Je({
|
|
1877
1877
|
name: "CdUsersList",
|
|
1878
1878
|
__name: "UsersList",
|
|
1879
1879
|
props: {
|
|
@@ -1892,7 +1892,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1892
1892
|
v2e8fe560: `${J.value}px`,
|
|
1893
1893
|
v959986c2: `-${J.value}px`
|
|
1894
1894
|
}));
|
|
1895
|
-
const n = a, y = te, u = F(!1), c = F(null), m = F("bottom"), U = F({}), _ = F(!1),
|
|
1895
|
+
const n = a, y = te, u = F(!1), c = F(null), m = F("bottom"), U = F({}), _ = F(!1), w = F(!1), r = F([]), I = F(!1), D = F(null), q = F({}), ee = F([]), N = ve(() => ({
|
|
1896
1896
|
width: `${n.avatarSize}px`,
|
|
1897
1897
|
height: `${n.avatarSize}px`,
|
|
1898
1898
|
fontSize: `${Math.floor(n.avatarSize / 3)}px`
|
|
@@ -1904,9 +1904,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1904
1904
|
c.value = ne;
|
|
1905
1905
|
const le = k.currentTarget.getBoundingClientRect(), we = window.innerHeight - le.bottom < 400 ? "top" : "bottom";
|
|
1906
1906
|
m.value = we;
|
|
1907
|
-
const
|
|
1908
|
-
let ce = 0, T = le.left + le.width / 2 -
|
|
1909
|
-
we === "bottom" ? ce = le.bottom +
|
|
1907
|
+
const qe = 400, ke = 500, Be = 12;
|
|
1908
|
+
let ce = 0, T = le.left + le.width / 2 - qe / 2;
|
|
1909
|
+
we === "bottom" ? ce = le.bottom + Be : ce = le.top - ke - Be, T < 10 && (T = 10), T + qe > window.innerWidth - 10 && (T = window.innerWidth - qe - 10), ce < 10 && (ce = 10), ce + ke > window.innerHeight - 10 && (ce = window.innerHeight - ke - 10), U.value = {
|
|
1910
1910
|
position: "fixed",
|
|
1911
1911
|
top: `${ce}px`,
|
|
1912
1912
|
left: `${T}px`,
|
|
@@ -1942,13 +1942,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1942
1942
|
return k[Math.abs(B) % k.length];
|
|
1943
1943
|
}, x = (ne) => {
|
|
1944
1944
|
if (!u.value) return;
|
|
1945
|
-
const k = ne.target, B = document.querySelector(".cd-users-list-popup-wrapper"), le = document.querySelectorAll(".cd-users-list__item"), _e = B == null ? void 0 : B.contains(k), we = Array.from(le).some((
|
|
1945
|
+
const k = ne.target, B = document.querySelector(".cd-users-list-popup-wrapper"), le = document.querySelectorAll(".cd-users-list__item"), _e = B == null ? void 0 : B.contains(k), we = Array.from(le).some((qe) => qe.contains(k));
|
|
1946
1946
|
!_e && !we && (u.value = !1, _.value = !1);
|
|
1947
1947
|
}, b = (ne, k) => {
|
|
1948
1948
|
D.value = ne, ee.value = [];
|
|
1949
|
-
const le = k.currentTarget.getBoundingClientRect(), we = window.innerHeight - le.bottom < 400 ? "top" : "bottom",
|
|
1950
|
-
let ce = 0, T = le.left + le.width / 2 -
|
|
1951
|
-
we === "bottom" ? ce = le.bottom +
|
|
1949
|
+
const le = k.currentTarget.getBoundingClientRect(), we = window.innerHeight - le.bottom < 400 ? "top" : "bottom", qe = 400, ke = 400, Be = 12;
|
|
1950
|
+
let ce = 0, T = le.left + le.width / 2 - qe / 2;
|
|
1951
|
+
we === "bottom" ? ce = le.bottom + Be : ce = le.top - ke - Be, T < 10 && (T = 10), T + qe > window.innerWidth - 10 && (T = window.innerWidth - qe - 10), ce < 10 && (ce = 10), ce + ke > window.innerHeight - 10 && (ce = window.innerHeight - ke - 10), q.value = {
|
|
1952
1952
|
position: "fixed",
|
|
1953
1953
|
top: `${ce}px`,
|
|
1954
1954
|
left: `${T}px`,
|
|
@@ -1960,9 +1960,9 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1960
1960
|
}, z = () => {
|
|
1961
1961
|
I.value = !1, ee.value = [];
|
|
1962
1962
|
}, P = () => {
|
|
1963
|
-
|
|
1963
|
+
w.value = !0;
|
|
1964
1964
|
}, G = (ne) => {
|
|
1965
|
-
y("person-select", ne),
|
|
1965
|
+
y("person-select", ne), w.value = !1;
|
|
1966
1966
|
}, X = (ne) => {
|
|
1967
1967
|
y("load-users", ne);
|
|
1968
1968
|
}, oe = (ne) => {
|
|
@@ -1975,7 +1975,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1975
1975
|
}), cl(() => {
|
|
1976
1976
|
document.removeEventListener("click", x);
|
|
1977
1977
|
}), (ne, k) => {
|
|
1978
|
-
const B = M("t-tooltip"), le = M("t-dropdown-item"), _e = M("t-dropdown-menu"), we = M("t-dropdown"),
|
|
1978
|
+
const B = M("t-tooltip"), le = M("t-dropdown-item"), _e = M("t-dropdown-menu"), we = M("t-dropdown"), qe = M("t-tag");
|
|
1979
1979
|
return l(), o("div", Co, [
|
|
1980
1980
|
s(B, {
|
|
1981
1981
|
content: W.value,
|
|
@@ -1986,13 +1986,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
1986
1986
|
(l(!0), o(fe, null, be(ge.value, (ke) => (l(), o("div", {
|
|
1987
1987
|
key: ke.id,
|
|
1988
1988
|
class: xe(["cd-users-list__item", { "cd-users-list__item--department": ke.isUser === !1 }]),
|
|
1989
|
-
onClick: (
|
|
1989
|
+
onClick: (Be) => d(ke, Be),
|
|
1990
1990
|
ref_for: !0,
|
|
1991
1991
|
ref: "userItemRefs"
|
|
1992
1992
|
}, [
|
|
1993
1993
|
e("div", {
|
|
1994
1994
|
class: xe(["cd-users-list__avatar-wrapper", { "cd-users-list__avatar-wrapper--department": ke.isUser === !1 }]),
|
|
1995
|
-
style:
|
|
1995
|
+
style: Ke({ width: N.value.width, height: N.value.height })
|
|
1996
1996
|
}, [
|
|
1997
1997
|
ke.avatar ? (l(), o("img", {
|
|
1998
1998
|
key: 0,
|
|
@@ -2002,7 +2002,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2002
2002
|
}, null, 8, $o)) : (l(), o("div", {
|
|
2003
2003
|
key: 1,
|
|
2004
2004
|
class: xe(["cd-users-list__avatar cd-users-list__avatar--placeholder", { "cd-users-list__avatar--department": ke.isUser === !1 }]),
|
|
2005
|
-
style:
|
|
2005
|
+
style: Ke({
|
|
2006
2006
|
backgroundColor: ke.isUser === !1 ? "#e6f4ff" : L(ke.name),
|
|
2007
2007
|
fontSize: N.value.fontSize,
|
|
2008
2008
|
color: ke.isUser === !1 ? "#0052d9" : "#fff"
|
|
@@ -2022,11 +2022,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2022
2022
|
}, [
|
|
2023
2023
|
e("div", {
|
|
2024
2024
|
class: "cd-users-list__avatar-wrapper cd-users-list__avatar-wrapper--add",
|
|
2025
|
-
style:
|
|
2025
|
+
style: Ke({ width: N.value.width, height: N.value.height })
|
|
2026
2026
|
}, [
|
|
2027
2027
|
e("div", {
|
|
2028
2028
|
class: "cd-users-list__avatar cd-users-list__avatar--add",
|
|
2029
|
-
style:
|
|
2029
|
+
style: Ke({ fontSize: N.value.fontSize })
|
|
2030
2030
|
}, " + ", 4)
|
|
2031
2031
|
], 4)
|
|
2032
2032
|
])
|
|
@@ -2036,11 +2036,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2036
2036
|
H.value ? (l(), o("div", Vo, [
|
|
2037
2037
|
e("div", {
|
|
2038
2038
|
class: "cd-users-list__avatar-wrapper cd-users-list__avatar-wrapper--more",
|
|
2039
|
-
style:
|
|
2039
|
+
style: Ke({ width: N.value.width, height: N.value.height })
|
|
2040
2040
|
}, [
|
|
2041
2041
|
e("div", {
|
|
2042
2042
|
class: "cd-users-list__avatar cd-users-list__avatar--more",
|
|
2043
|
-
style:
|
|
2043
|
+
style: Ke({ fontSize: N.value.fontSize })
|
|
2044
2044
|
}, " +" + V(E.value), 5)
|
|
2045
2045
|
], 4)
|
|
2046
2046
|
])) : Y("", !0)
|
|
@@ -2058,8 +2058,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2058
2058
|
}, [
|
|
2059
2059
|
e("div", {
|
|
2060
2060
|
class: "cd-users-list-popup-wrapper",
|
|
2061
|
-
style:
|
|
2062
|
-
onClick: k[6] || (k[6] =
|
|
2061
|
+
style: Ke(U.value),
|
|
2062
|
+
onClick: k[6] || (k[6] = Qe(() => {
|
|
2063
2063
|
}, ["stop"]))
|
|
2064
2064
|
}, [
|
|
2065
2065
|
c.value ? (l(), o("div", So, [
|
|
@@ -2117,7 +2117,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2117
2117
|
}, null, 8, zo)) : (l(), o("div", {
|
|
2118
2118
|
key: 1,
|
|
2119
2119
|
class: "cd-users-list-dialog__avatar cd-users-list-dialog__avatar--placeholder",
|
|
2120
|
-
style:
|
|
2120
|
+
style: Ke({ backgroundColor: L(c.value.name) })
|
|
2121
2121
|
}, V(ue(c.value.name)), 5)),
|
|
2122
2122
|
e("h3", Fo, V(c.value.name), 1)
|
|
2123
2123
|
]),
|
|
@@ -2191,7 +2191,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2191
2191
|
A("标签 ")
|
|
2192
2192
|
], -1)),
|
|
2193
2193
|
e("div", Lo, [
|
|
2194
|
-
(l(!0), o(fe, null, be(c.value.tags, (ke) => (l(), j(
|
|
2194
|
+
(l(!0), o(fe, null, be(c.value.tags, (ke) => (l(), j(qe, {
|
|
2195
2195
|
key: ke,
|
|
2196
2196
|
size: "small",
|
|
2197
2197
|
variant: "light"
|
|
@@ -2224,8 +2224,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2224
2224
|
}, [
|
|
2225
2225
|
e("div", {
|
|
2226
2226
|
class: "cd-users-list-popup-wrapper",
|
|
2227
|
-
style:
|
|
2228
|
-
onClick: k[7] || (k[7] =
|
|
2227
|
+
style: Ke(q.value),
|
|
2228
|
+
onClick: k[7] || (k[7] = Qe(() => {
|
|
2229
2229
|
}, ["stop"]))
|
|
2230
2230
|
}, [
|
|
2231
2231
|
D.value ? (l(), o("div", Wo, [
|
|
@@ -2248,7 +2248,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2248
2248
|
}, [
|
|
2249
2249
|
e("div", {
|
|
2250
2250
|
class: "cd-users-list-dept-dialog__member-avatar",
|
|
2251
|
-
style:
|
|
2251
|
+
style: Ke({ backgroundColor: L(ke.name || ke.displayName) })
|
|
2252
2252
|
}, V(ue(ke.name || ke.displayName)), 5),
|
|
2253
2253
|
e("div", Qo, [
|
|
2254
2254
|
e("div", Zo, V(ke.displayName || ke.name), 1),
|
|
@@ -2268,10 +2268,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2268
2268
|
_: 1
|
|
2269
2269
|
})
|
|
2270
2270
|
])),
|
|
2271
|
-
(a.edit || a.mode === "input") && a.personTabs && a.personTabs.length > 0 &&
|
|
2271
|
+
(a.edit || a.mode === "input") && a.personTabs && a.personTabs.length > 0 && w.value ? (l(), j(ca(Ml), {
|
|
2272
2272
|
key: 0,
|
|
2273
|
-
visible:
|
|
2274
|
-
"onUpdate:visible": k[8] || (k[8] = (ke) =>
|
|
2273
|
+
visible: w.value,
|
|
2274
|
+
"onUpdate:visible": k[8] || (k[8] = (ke) => w.value = ke),
|
|
2275
2275
|
modelValue: r.value,
|
|
2276
2276
|
"onUpdate:modelValue": k[9] || (k[9] = (ke) => r.value = ke),
|
|
2277
2277
|
tabs: a.personTabs,
|
|
@@ -2286,7 +2286,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2286
2286
|
]);
|
|
2287
2287
|
};
|
|
2288
2288
|
}
|
|
2289
|
-
}), ti = /* @__PURE__ */
|
|
2289
|
+
}), ti = /* @__PURE__ */ ea(li, [["__scopeId", "data-v-1a31b242"]]), ni = { class: "language-display" }, oi = ["src", "alt"], ii = { class: "current-language" }, si = {
|
|
2290
2290
|
key: 1,
|
|
2291
2291
|
class: "internet-icon",
|
|
2292
2292
|
viewBox: "0 0 24 24",
|
|
@@ -2296,7 +2296,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2296
2296
|
class: "check-icon",
|
|
2297
2297
|
viewBox: "0 0 16 16",
|
|
2298
2298
|
fill: "currentColor"
|
|
2299
|
-
}, fi = /* @__PURE__ */
|
|
2299
|
+
}, fi = /* @__PURE__ */ Je({
|
|
2300
2300
|
name: "CdLanguageSelect",
|
|
2301
2301
|
__name: "LanguageSelect",
|
|
2302
2302
|
props: {
|
|
@@ -2312,7 +2312,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2312
2312
|
new Image().src = D.icon;
|
|
2313
2313
|
});
|
|
2314
2314
|
});
|
|
2315
|
-
const U = ve(() => n.languages), _ = ve(() => U.value.find((D) => D.key === m.value)),
|
|
2315
|
+
const U = ve(() => n.languages), _ = ve(() => U.value.find((D) => D.key === m.value)), w = () => {
|
|
2316
2316
|
u.value = !u.value;
|
|
2317
2317
|
}, r = (D) => {
|
|
2318
2318
|
m.value = D, y("update:modelValue", D), y("change", D), u.value = !1;
|
|
@@ -2325,8 +2325,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2325
2325
|
document.removeEventListener("click", I);
|
|
2326
2326
|
}), (D, q) => (l(), o("div", {
|
|
2327
2327
|
class: "language-select-container",
|
|
2328
|
-
style:
|
|
2329
|
-
onClick:
|
|
2328
|
+
style: Ke({ display: U.value.length === 0 ? "none" : void 0, ...a.style }),
|
|
2329
|
+
onClick: w,
|
|
2330
2330
|
ref_key: "containerRef",
|
|
2331
2331
|
ref: c
|
|
2332
2332
|
}, [
|
|
@@ -2352,7 +2352,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2352
2352
|
u.value ? (l(), o("div", {
|
|
2353
2353
|
key: 0,
|
|
2354
2354
|
class: "language-dropdown",
|
|
2355
|
-
onClick: q[0] || (q[0] =
|
|
2355
|
+
onClick: q[0] || (q[0] = Qe(() => {
|
|
2356
2356
|
}, ["stop"]))
|
|
2357
2357
|
}, [
|
|
2358
2358
|
(l(!0), o(fe, null, be(U.value, (ee) => (l(), o("div", {
|
|
@@ -2374,13 +2374,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2374
2374
|
])) : Y("", !0)
|
|
2375
2375
|
], 4));
|
|
2376
2376
|
}
|
|
2377
|
-
}), zl = /* @__PURE__ */
|
|
2377
|
+
}), zl = /* @__PURE__ */ ea(fi, [["__scopeId", "data-v-de3f6343"]]), mi = { class: "password-dialog-content" }, vi = { class: "method-tabs" }, pi = {
|
|
2378
2378
|
key: 0,
|
|
2379
2379
|
class: "form-content"
|
|
2380
2380
|
}, gi = { class: "form-item" }, hi = { class: "form-item" }, bi = { class: "form-item" }, yi = {
|
|
2381
2381
|
key: 1,
|
|
2382
2382
|
class: "form-content"
|
|
2383
|
-
}, _i = { class: "form-item" }, ki = { class: "form-item" }, Ci = { class: "code-input-group" }, wi = { class: "form-item" }, xi = { class: "form-item" }, $i = { class: "dialog-actions" }, Vi = /* @__PURE__ */
|
|
2383
|
+
}, _i = { class: "form-item" }, ki = { class: "form-item" }, Ci = { class: "code-input-group" }, wi = { class: "form-item" }, xi = { class: "form-item" }, $i = { class: "dialog-actions" }, Vi = /* @__PURE__ */ Je({
|
|
2384
2384
|
name: "CdChangePasswordDialog",
|
|
2385
2385
|
__name: "ChangePasswordDialog",
|
|
2386
2386
|
props: {
|
|
@@ -2407,7 +2407,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2407
2407
|
});
|
|
2408
2408
|
const _ = () => {
|
|
2409
2409
|
u.value = !1;
|
|
2410
|
-
},
|
|
2410
|
+
}, w = () => {
|
|
2411
2411
|
if (!U.phone) {
|
|
2412
2412
|
alert("请输入手机号");
|
|
2413
2413
|
return;
|
|
@@ -2532,7 +2532,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2532
2532
|
}, null, 8, ["modelValue"]),
|
|
2533
2533
|
s(ee, {
|
|
2534
2534
|
disabled: m.value > 0,
|
|
2535
|
-
onClick:
|
|
2535
|
+
onClick: w
|
|
2536
2536
|
}, {
|
|
2537
2537
|
default: i(() => [
|
|
2538
2538
|
A(V(m.value > 0 ? `${m.value}秒后重试` : "发送验证码"), 1)
|
|
@@ -2589,7 +2589,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2589
2589
|
}, 8, ["visible", "header"]);
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
}), Si = /* @__PURE__ */
|
|
2592
|
+
}), Si = /* @__PURE__ */ ea(Vi, [["__scopeId", "data-v-dcb0708e"]]), Mi = { class: "token-dialog-content" }, zi = {
|
|
2593
2593
|
key: 0,
|
|
2594
2594
|
class: "enable-section"
|
|
2595
2595
|
}, Fi = { class: "qrcode-section" }, Di = { class: "qrcode-box" }, Ai = ["src"], Ui = {
|
|
@@ -2598,7 +2598,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2598
2598
|
}, Ri = { class: "form-item" }, Ei = { class: "dialog-actions" }, Pi = {
|
|
2599
2599
|
key: 1,
|
|
2600
2600
|
class: "disable-section"
|
|
2601
|
-
}, Ii = { class: "form-item" }, Oi = { class: "dialog-actions" }, Ti = /* @__PURE__ */
|
|
2601
|
+
}, Ii = { class: "form-item" }, Oi = { class: "dialog-actions" }, Ti = /* @__PURE__ */ Je({
|
|
2602
2602
|
name: "CdDynamicTokenDialog",
|
|
2603
2603
|
__name: "DynamicTokenDialog",
|
|
2604
2604
|
props: {
|
|
@@ -2610,10 +2610,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2610
2610
|
emits: ["update:visible", "enable", "disable"],
|
|
2611
2611
|
setup(a, { emit: te }) {
|
|
2612
2612
|
const n = a, y = te, u = F(n.visible), c = F("");
|
|
2613
|
-
ze(() => n.visible, (
|
|
2614
|
-
u.value =
|
|
2615
|
-
}), ze(u, (
|
|
2616
|
-
y("update:visible",
|
|
2613
|
+
ze(() => n.visible, (w) => {
|
|
2614
|
+
u.value = w, w && (c.value = "");
|
|
2615
|
+
}), ze(u, (w) => {
|
|
2616
|
+
y("update:visible", w);
|
|
2617
2617
|
});
|
|
2618
2618
|
const m = () => {
|
|
2619
2619
|
u.value = !1;
|
|
@@ -2638,7 +2638,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2638
2638
|
}
|
|
2639
2639
|
y("disable", c.value);
|
|
2640
2640
|
};
|
|
2641
|
-
return (
|
|
2641
|
+
return (w, r) => {
|
|
2642
2642
|
const I = M("t-input"), D = M("t-button"), q = M("t-dialog");
|
|
2643
2643
|
return l(), j(q, {
|
|
2644
2644
|
visible: u.value,
|
|
@@ -2751,7 +2751,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2751
2751
|
}, 8, ["visible", "header"]);
|
|
2752
2752
|
};
|
|
2753
2753
|
}
|
|
2754
|
-
}), Ni = /* @__PURE__ */
|
|
2754
|
+
}), Ni = /* @__PURE__ */ ea(Ti, [["__scopeId", "data-v-22bfca30"]]), Bi = { class: "lock-dialog-content" }, qi = { class: "form-item" }, Li = { class: "form-item" }, ji = { class: "dialog-actions" }, Wi = /* @__PURE__ */ Je({
|
|
2755
2755
|
name: "CdScreenLockDialog",
|
|
2756
2756
|
__name: "ScreenLockDialog",
|
|
2757
2757
|
props: {
|
|
@@ -2763,10 +2763,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2763
2763
|
emits: ["update:visible", "submit"],
|
|
2764
2764
|
setup(a, { emit: te }) {
|
|
2765
2765
|
const n = a, y = te, u = F(n.visible), c = F(n.defaultLockTime), m = F([...n.defaultLockMethods]);
|
|
2766
|
-
ze(() => n.visible, (
|
|
2767
|
-
u.value =
|
|
2768
|
-
}), ze(u, (
|
|
2769
|
-
y("update:visible",
|
|
2766
|
+
ze(() => n.visible, (w) => {
|
|
2767
|
+
u.value = w, w && (c.value = n.defaultLockTime, m.value = [...n.defaultLockMethods]);
|
|
2768
|
+
}), ze(u, (w) => {
|
|
2769
|
+
y("update:visible", w);
|
|
2770
2770
|
});
|
|
2771
2771
|
const U = () => {
|
|
2772
2772
|
u.value = !1;
|
|
@@ -2780,7 +2780,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2780
2780
|
lockMethods: m.value
|
|
2781
2781
|
}), u.value = !1;
|
|
2782
2782
|
};
|
|
2783
|
-
return (
|
|
2783
|
+
return (w, r) => {
|
|
2784
2784
|
const I = M("t-radio"), D = M("t-radio-group"), q = M("t-checkbox"), ee = M("t-checkbox-group"), N = M("t-button"), J = M("t-dialog");
|
|
2785
2785
|
return l(), j(J, {
|
|
2786
2786
|
visible: u.value,
|
|
@@ -2892,10 +2892,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2892
2892
|
}, 8, ["visible", "header"]);
|
|
2893
2893
|
};
|
|
2894
2894
|
}
|
|
2895
|
-
}), Yi = /* @__PURE__ */
|
|
2895
|
+
}), Yi = /* @__PURE__ */ ea(Wi, [["__scopeId", "data-v-c92db49c"]]), Hi = { class: "shortcut-dialog-content" }, Ji = { class: "form-item" }, Ki = { class: "form-item" }, Gi = { class: "current-keys" }, Xi = { class: "form-item" }, Qi = {
|
|
2896
2896
|
key: 1,
|
|
2897
2897
|
class: "placeholder"
|
|
2898
|
-
}, Zi = { class: "dialog-actions" }, es = /* @__PURE__ */
|
|
2898
|
+
}, Zi = { class: "dialog-actions" }, es = /* @__PURE__ */ Je({
|
|
2899
2899
|
name: "CdShortcutEditDialog",
|
|
2900
2900
|
__name: "ShortcutEditDialog",
|
|
2901
2901
|
props: {
|
|
@@ -2915,7 +2915,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2915
2915
|
u.value = !1;
|
|
2916
2916
|
}, _ = () => {
|
|
2917
2917
|
c.value = !0, m.value = [];
|
|
2918
|
-
},
|
|
2918
|
+
}, w = () => {
|
|
2919
2919
|
c.value = !1;
|
|
2920
2920
|
}, r = {
|
|
2921
2921
|
Control: "Ctrl",
|
|
@@ -2981,8 +2981,8 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
2981
2981
|
class: xe(["key-input", { recording: c.value }]),
|
|
2982
2982
|
tabindex: "0",
|
|
2983
2983
|
onClick: _,
|
|
2984
|
-
onKeydown:
|
|
2985
|
-
onBlur:
|
|
2984
|
+
onKeydown: Qe(I, ["prevent"]),
|
|
2985
|
+
onBlur: w
|
|
2986
2986
|
}, [
|
|
2987
2987
|
m.value.length > 0 ? (l(!0), o(fe, { key: 0 }, be(m.value, (E, W) => (l(), o("kbd", { key: W }, V(E), 1))), 128)) : (l(), o("span", Qi, V(c.value ? "请按下快捷键..." : "点击此处录制快捷键"), 1))
|
|
2988
2988
|
], 34),
|
|
@@ -3023,7 +3023,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3023
3023
|
}, 8, ["visible", "header"]);
|
|
3024
3024
|
};
|
|
3025
3025
|
}
|
|
3026
|
-
}), as = /* @__PURE__ */
|
|
3026
|
+
}), as = /* @__PURE__ */ ea(es, [["__scopeId", "data-v-446bcaee"]]), ls = { class: "cd-usercard-panel" }, ts = { class: "calendar" }, ns = {
|
|
3027
3027
|
key: 0,
|
|
3028
3028
|
class: "calendar__legend"
|
|
3029
3029
|
}, os = { class: "calendar__list" }, is = ["onClick"], ss = { class: "calendar__time" }, rs = { class: "date" }, ds = { class: "time" }, us = { class: "calendar__content" }, cs = { class: "title" }, fs = {
|
|
@@ -3032,7 +3032,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3032
3032
|
}, ms = { class: "calendar__actions" }, vs = {
|
|
3033
3033
|
key: 0,
|
|
3034
3034
|
class: "calendar__empty"
|
|
3035
|
-
}, ps = /* @__PURE__ */
|
|
3035
|
+
}, ps = /* @__PURE__ */ Je({
|
|
3036
3036
|
name: "CdCalendarPanel",
|
|
3037
3037
|
__name: "CalendarPanel",
|
|
3038
3038
|
props: {
|
|
@@ -3046,7 +3046,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3046
3046
|
n("item-click", m);
|
|
3047
3047
|
};
|
|
3048
3048
|
return (m, U) => {
|
|
3049
|
-
const _ = M("t-tag"),
|
|
3049
|
+
const _ = M("t-tag"), w = M("t-button");
|
|
3050
3050
|
return l(), o("div", ls, [
|
|
3051
3051
|
e("h3", null, [
|
|
3052
3052
|
U[0] || (U[0] = e("i", { class: "ri-calendar-line" }, null, -1)),
|
|
@@ -3084,11 +3084,11 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3084
3084
|
])) : Y("", !0)
|
|
3085
3085
|
]),
|
|
3086
3086
|
e("div", ms, [
|
|
3087
|
-
s(
|
|
3087
|
+
s(w, {
|
|
3088
3088
|
theme: "default",
|
|
3089
3089
|
variant: "text",
|
|
3090
3090
|
size: "small",
|
|
3091
|
-
onClick:
|
|
3091
|
+
onClick: Qe((I) => m.$emit("more", r), ["stop"])
|
|
3092
3092
|
}, {
|
|
3093
3093
|
icon: i(() => [...U[3] || (U[3] = [
|
|
3094
3094
|
e("i", { class: "ri-more-2-fill" }, null, -1)
|
|
@@ -3106,7 +3106,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3106
3106
|
]);
|
|
3107
3107
|
};
|
|
3108
3108
|
}
|
|
3109
|
-
}), gs = /* @__PURE__ */
|
|
3109
|
+
}), gs = /* @__PURE__ */ ea(ps, [["__scopeId", "data-v-cea2996a"]]), hs = { class: "cd-usercard-panel" }, bs = { class: "tasks" }, ys = {
|
|
3110
3110
|
key: 0,
|
|
3111
3111
|
class: "tasks__filters"
|
|
3112
3112
|
}, _s = { class: "tasks__list" }, ks = ["onClick"], Cs = { class: "task__checkbox" }, ws = { class: "task__main" }, xs = { class: "task__header" }, $s = { class: "task__left" }, Vs = { class: "task__right" }, Ss = {
|
|
@@ -3118,7 +3118,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3118
3118
|
}, zs = {
|
|
3119
3119
|
key: 0,
|
|
3120
3120
|
class: "tasks__empty"
|
|
3121
|
-
}, Fs = /* @__PURE__ */
|
|
3121
|
+
}, Fs = /* @__PURE__ */ Je({
|
|
3122
3122
|
name: "CdTasksPanel",
|
|
3123
3123
|
__name: "TasksPanel",
|
|
3124
3124
|
props: {
|
|
@@ -3129,7 +3129,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3129
3129
|
},
|
|
3130
3130
|
emits: ["item-click", "toggle"],
|
|
3131
3131
|
setup(a, { emit: te }) {
|
|
3132
|
-
const n = a, y = te, u = F("all"), c = { todo: "未开始", doing: "进行中", done: "已完成" }, m = { todo: "default", doing: "warning", done: "success" }, U = { high: "高", medium: "中", low: "低" }, _ = ve(() => u.value === "all" ? n.data : n.data.filter((D) => D.status === u.value)),
|
|
3132
|
+
const n = a, y = te, u = F("all"), c = { todo: "未开始", doing: "进行中", done: "已完成" }, m = { todo: "default", doing: "warning", done: "success" }, U = { high: "高", medium: "中", low: "低" }, _ = ve(() => u.value === "all" ? n.data : n.data.filter((D) => D.status === u.value)), w = (D) => {
|
|
3133
3133
|
y("item-click", D);
|
|
3134
3134
|
}, r = (D) => {
|
|
3135
3135
|
y("toggle", D);
|
|
@@ -3182,7 +3182,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3182
3182
|
(l(!0), o(fe, null, be(_.value, (E) => (l(), o("div", {
|
|
3183
3183
|
key: E.id,
|
|
3184
3184
|
class: "task",
|
|
3185
|
-
onClick: (W) =>
|
|
3185
|
+
onClick: (W) => w(E)
|
|
3186
3186
|
}, [
|
|
3187
3187
|
e("div", Cs, [
|
|
3188
3188
|
s(J, {
|
|
@@ -3239,13 +3239,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3239
3239
|
]);
|
|
3240
3240
|
};
|
|
3241
3241
|
}
|
|
3242
|
-
}), Ds = /* @__PURE__ */
|
|
3242
|
+
}), Ds = /* @__PURE__ */ ea(Fs, [["__scopeId", "data-v-d6881f8b"]]), As = { class: "cd-usercard-panel favorites-panel" }, Us = {
|
|
3243
3243
|
key: 0,
|
|
3244
3244
|
class: "favorites-tabs"
|
|
3245
3245
|
}, Rs = ["onClick"], Es = { class: "favorites-list" }, Ps = ["onClick"], Is = { class: "item-info" }, Os = { class: "item-title" }, Ts = { class: "item-desc" }, Ns = { class: "item-time" }, Bs = ["onClick"], qs = {
|
|
3246
3246
|
key: 0,
|
|
3247
3247
|
class: "favorites-empty"
|
|
3248
|
-
}, Ls = /* @__PURE__ */
|
|
3248
|
+
}, Ls = /* @__PURE__ */ Je({
|
|
3249
3249
|
name: "CdFavoritesPanel",
|
|
3250
3250
|
__name: "FavoritesPanel",
|
|
3251
3251
|
props: {
|
|
@@ -3290,7 +3290,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3290
3290
|
e("span", Ns, V(m.time), 1),
|
|
3291
3291
|
e("i", {
|
|
3292
3292
|
class: "ri-more-2-fill item-more",
|
|
3293
|
-
onClick:
|
|
3293
|
+
onClick: Qe((U) => u.$emit("more", m), ["stop"])
|
|
3294
3294
|
}, null, 8, Bs)
|
|
3295
3295
|
], 8, Ps))), 128)),
|
|
3296
3296
|
y.value.length ? Y("", !0) : (l(), o("div", qs, [...c[1] || (c[1] = [
|
|
@@ -3300,13 +3300,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3300
3300
|
])
|
|
3301
3301
|
]));
|
|
3302
3302
|
}
|
|
3303
|
-
}), js = /* @__PURE__ */
|
|
3303
|
+
}), js = /* @__PURE__ */ ea(Ls, [["__scopeId", "data-v-6b819e4a"]]), Ws = { class: "cd-usercard-panel qrcode-panel" }, Ys = { class: "qrcode-cards" }, Hs = { class: "qrcode-box" }, Js = ["src", "alt"], Ks = {
|
|
3304
3304
|
key: 1,
|
|
3305
3305
|
class: "ri-qr-code-line qrcode-placeholder"
|
|
3306
3306
|
}, Gs = { class: "qrcode-info" }, Xs = { class: "qrcode-title" }, Qs = { class: "qrcode-desc" }, Zs = { class: "qrcode-actions" }, er = ["onClick"], ar = ["onClick"], lr = {
|
|
3307
3307
|
key: 0,
|
|
3308
3308
|
class: "link-section"
|
|
3309
|
-
}, tr = { class: "link-url" }, nr = ["onClick"], or = /* @__PURE__ */
|
|
3309
|
+
}, tr = { class: "link-url" }, nr = ["onClick"], or = /* @__PURE__ */ Je({
|
|
3310
3310
|
name: "CdQrcodePanel",
|
|
3311
3311
|
__name: "QrcodePanel",
|
|
3312
3312
|
props: {
|
|
@@ -3377,7 +3377,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3377
3377
|
]);
|
|
3378
3378
|
};
|
|
3379
3379
|
}
|
|
3380
|
-
}), ir = /* @__PURE__ */
|
|
3380
|
+
}), ir = /* @__PURE__ */ ea(or, [["__scopeId", "data-v-89f388c8"]]), sr = { class: "cd-usercard-panel accounts-panel" }, rr = { class: "bind-section" }, dr = { class: "bind-list" }, ur = { class: "bind-info" }, cr = { class: "bind-name" }, fr = { class: "bind-desc" }, mr = ["onClick"], vr = ["onClick"], pr = {
|
|
3381
3381
|
key: 0,
|
|
3382
3382
|
class: "switch-section"
|
|
3383
3383
|
}, gr = {
|
|
@@ -3389,7 +3389,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3389
3389
|
}, yr = { class: "account-info" }, _r = { class: "account-name" }, kr = { class: "account-email" }, Cr = ["onClick"], wr = ["src"], xr = {
|
|
3390
3390
|
key: 1,
|
|
3391
3391
|
class: "ri-user-line"
|
|
3392
|
-
}, $r = { class: "account-info" }, Vr = { class: "account-name" }, Sr = { class: "account-email" }, Mr = /* @__PURE__ */
|
|
3392
|
+
}, $r = { class: "account-info" }, Vr = { class: "account-name" }, Sr = { class: "account-email" }, Mr = /* @__PURE__ */ Je({
|
|
3393
3393
|
name: "CdAccountsPanel",
|
|
3394
3394
|
__name: "AccountsPanel",
|
|
3395
3395
|
props: {
|
|
@@ -3416,7 +3416,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3416
3416
|
}, [
|
|
3417
3417
|
e("div", {
|
|
3418
3418
|
class: "bind-icon",
|
|
3419
|
-
style:
|
|
3419
|
+
style: Ke({ background: u.color })
|
|
3420
3420
|
}, [
|
|
3421
3421
|
e("i", {
|
|
3422
3422
|
class: xe(u.icon)
|
|
@@ -3445,7 +3445,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3445
3445
|
a.current ? (l(), o("div", gr, [
|
|
3446
3446
|
e("div", {
|
|
3447
3447
|
class: "account-avatar",
|
|
3448
|
-
style:
|
|
3448
|
+
style: Ke({ background: a.current.color || "#1890ff" })
|
|
3449
3449
|
}, [
|
|
3450
3450
|
a.current.avatar ? (l(), o("img", {
|
|
3451
3451
|
key: 0,
|
|
@@ -3465,7 +3465,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3465
3465
|
}, [
|
|
3466
3466
|
e("div", {
|
|
3467
3467
|
class: "account-avatar",
|
|
3468
|
-
style:
|
|
3468
|
+
style: Ke({ background: u.color || "#1890ff" })
|
|
3469
3469
|
}, [
|
|
3470
3470
|
u.avatar ? (l(), o("img", {
|
|
3471
3471
|
key: 0,
|
|
@@ -3488,7 +3488,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3488
3488
|
]);
|
|
3489
3489
|
};
|
|
3490
3490
|
}
|
|
3491
|
-
}), zr = /* @__PURE__ */
|
|
3491
|
+
}), zr = /* @__PURE__ */ ea(Mr, [["__scopeId", "data-v-36d182f7"]]), Fr = { class: "cd-usercard-panel settings-panel" }, Dr = { class: "group-title" }, Ar = { class: "setting-info" }, Ur = { class: "setting-label" }, Rr = {
|
|
3492
3492
|
key: 0,
|
|
3493
3493
|
class: "setting-desc"
|
|
3494
3494
|
}, Er = ["value", "onChange"], Pr = ["value"], Ir = {
|
|
@@ -3497,7 +3497,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3497
3497
|
}, Or = ["checked", "onChange"], Tr = {
|
|
3498
3498
|
key: 3,
|
|
3499
3499
|
class: "color-picker"
|
|
3500
|
-
}, Nr = ["onClick"], Br = /* @__PURE__ */
|
|
3500
|
+
}, Nr = ["onClick"], Br = /* @__PURE__ */ Je({
|
|
3501
3501
|
name: "CdSettingsPanel",
|
|
3502
3502
|
__name: "SettingsPanel",
|
|
3503
3503
|
props: {
|
|
@@ -3532,43 +3532,43 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3532
3532
|
key: 0,
|
|
3533
3533
|
languages: _.languages || [],
|
|
3534
3534
|
"model-value": a.modelValue[_.key],
|
|
3535
|
-
onChange: (
|
|
3535
|
+
onChange: (w) => u(_.key, w)
|
|
3536
3536
|
}, null, 8, ["languages", "model-value", "onChange"])) : _.type === "select" ? (l(), o("select", {
|
|
3537
3537
|
key: 1,
|
|
3538
3538
|
value: a.modelValue[_.key],
|
|
3539
3539
|
class: "setting-select",
|
|
3540
|
-
onChange: (
|
|
3540
|
+
onChange: (w) => u(_.key, w.target.value)
|
|
3541
3541
|
}, [
|
|
3542
|
-
(l(!0), o(fe, null, be(_.options, (
|
|
3543
|
-
key:
|
|
3544
|
-
value:
|
|
3545
|
-
}, V(
|
|
3542
|
+
(l(!0), o(fe, null, be(_.options, (w) => (l(), o("option", {
|
|
3543
|
+
key: w.value,
|
|
3544
|
+
value: w.value
|
|
3545
|
+
}, V(w.label), 9, Pr))), 128))
|
|
3546
3546
|
], 40, Er)) : _.type === "switch" ? (l(), o("label", Ir, [
|
|
3547
3547
|
e("input", {
|
|
3548
3548
|
type: "checkbox",
|
|
3549
3549
|
checked: a.modelValue[_.key],
|
|
3550
|
-
onChange: (
|
|
3550
|
+
onChange: (w) => u(_.key, w.target.checked)
|
|
3551
3551
|
}, null, 40, Or),
|
|
3552
3552
|
m[1] || (m[1] = e("span", { class: "slider" }, null, -1))
|
|
3553
3553
|
])) : _.type === "color" ? (l(), o("div", Tr, [
|
|
3554
|
-
(l(!0), o(fe, null, be(_.colors, (
|
|
3555
|
-
key:
|
|
3556
|
-
class: xe(["color-item", { active: a.modelValue[_.key] ===
|
|
3557
|
-
style:
|
|
3558
|
-
onClick: (r) => u(_.key,
|
|
3554
|
+
(l(!0), o(fe, null, be(_.colors, (w) => (l(), o("div", {
|
|
3555
|
+
key: w,
|
|
3556
|
+
class: xe(["color-item", { active: a.modelValue[_.key] === w }]),
|
|
3557
|
+
style: Ke({ backgroundColor: w }),
|
|
3558
|
+
onClick: (r) => u(_.key, w)
|
|
3559
3559
|
}, null, 14, Nr))), 128))
|
|
3560
3560
|
])) : Y("", !0)
|
|
3561
3561
|
]))), 128))
|
|
3562
3562
|
]))), 128))
|
|
3563
3563
|
]));
|
|
3564
3564
|
}
|
|
3565
|
-
}), qr = /* @__PURE__ */
|
|
3565
|
+
}), qr = /* @__PURE__ */ ea(Br, [["__scopeId", "data-v-9df669f9"]]), Lr = { class: "cd-usercard-panel security-panel" }, jr = {
|
|
3566
3566
|
key: 0,
|
|
3567
3567
|
class: "group-title"
|
|
3568
3568
|
}, Wr = { class: "security-icon" }, Yr = { class: "security-content" }, Hr = { class: "security-header" }, Jr = { class: "security-info" }, Kr = { class: "security-label" }, Gr = {
|
|
3569
3569
|
key: 0,
|
|
3570
3570
|
class: "security-desc"
|
|
3571
|
-
}, Xr = { class: "security-status" }, Qr = ["onClick"], Zr = /* @__PURE__ */
|
|
3571
|
+
}, Xr = { class: "security-status" }, Qr = ["onClick"], Zr = /* @__PURE__ */ Je({
|
|
3572
3572
|
name: "CdSecurityPanel",
|
|
3573
3573
|
__name: "SecurityPanel",
|
|
3574
3574
|
props: {
|
|
@@ -3622,13 +3622,13 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3622
3622
|
]))), 128))
|
|
3623
3623
|
]));
|
|
3624
3624
|
}
|
|
3625
|
-
}), ed = /* @__PURE__ */
|
|
3625
|
+
}), ed = /* @__PURE__ */ ea(Zr, [["__scopeId", "data-v-171da489"]]), ad = { class: "cd-usercard-panel help-panel" }, ld = {
|
|
3626
3626
|
key: 0,
|
|
3627
3627
|
class: "help-categories"
|
|
3628
3628
|
}, td = ["href"], nd = {
|
|
3629
3629
|
key: 1,
|
|
3630
3630
|
class: "contact-section"
|
|
3631
|
-
}, od = { class: "contact-options" }, id = { class: "contact-info" }, sd = { class: "contact-title" }, rd = { class: "contact-desc" }, dd = ["href", "target"], ud = ["onClick"], cd = /* @__PURE__ */
|
|
3631
|
+
}, od = { class: "contact-options" }, id = { class: "contact-info" }, sd = { class: "contact-title" }, rd = { class: "contact-desc" }, dd = ["href", "target"], ud = ["onClick"], cd = /* @__PURE__ */ Je({
|
|
3632
3632
|
name: "CdHelpPanel",
|
|
3633
3633
|
__name: "HelpPanel",
|
|
3634
3634
|
props: {
|
|
@@ -3689,7 +3689,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3689
3689
|
}, V(_.action), 11, dd)) : (l(), o("button", {
|
|
3690
3690
|
key: 1,
|
|
3691
3691
|
class: xe(_.primary ? "btn-primary" : "btn-outline"),
|
|
3692
|
-
onClick: (
|
|
3692
|
+
onClick: (w) => y(_)
|
|
3693
3693
|
}, V(_.action), 11, ud))
|
|
3694
3694
|
]))), 128))
|
|
3695
3695
|
])
|
|
@@ -3697,10 +3697,10 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3697
3697
|
]);
|
|
3698
3698
|
};
|
|
3699
3699
|
}
|
|
3700
|
-
}), fd = /* @__PURE__ */
|
|
3700
|
+
}), fd = /* @__PURE__ */ ea(cd, [["__scopeId", "data-v-7a41d616"]]), md = { class: "cd-usercard-panel shortcuts-panel" }, vd = { class: "shortcuts-list" }, pd = ["onClick"], gd = { class: "shortcut-label" }, hd = { class: "shortcut-keys" }, bd = {
|
|
3701
3701
|
key: 0,
|
|
3702
3702
|
class: "shortcuts-empty"
|
|
3703
|
-
}, yd = /* @__PURE__ */
|
|
3703
|
+
}, yd = /* @__PURE__ */ Je({
|
|
3704
3704
|
name: "CdShortcutsPanel",
|
|
3705
3705
|
__name: "ShortcutsPanel",
|
|
3706
3706
|
props: {
|
|
@@ -3720,14 +3720,14 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3720
3720
|
A(V(a.title), 1)
|
|
3721
3721
|
]),
|
|
3722
3722
|
e("div", vd, [
|
|
3723
|
-
(l(!0), o(fe, null, be(u.value, (
|
|
3723
|
+
(l(!0), o(fe, null, be(u.value, (w) => (l(), o("div", {
|
|
3724
3724
|
class: "shortcut-item",
|
|
3725
|
-
key:
|
|
3726
|
-
onClick: (r) => c(
|
|
3725
|
+
key: w.label,
|
|
3726
|
+
onClick: (r) => c(w)
|
|
3727
3727
|
}, [
|
|
3728
|
-
e("span", gd, V(
|
|
3728
|
+
e("span", gd, V(w.label), 1),
|
|
3729
3729
|
e("div", hd, [
|
|
3730
|
-
(l(!0), o(fe, null, be(
|
|
3730
|
+
(l(!0), o(fe, null, be(w.keys, (r, I) => (l(), o("kbd", { key: I }, V(r), 1))), 128))
|
|
3731
3731
|
])
|
|
3732
3732
|
], 8, pd))), 128))
|
|
3733
3733
|
]),
|
|
@@ -3738,7 +3738,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3738
3738
|
]);
|
|
3739
3739
|
};
|
|
3740
3740
|
}
|
|
3741
|
-
}), _d = /* @__PURE__ */
|
|
3741
|
+
}), _d = /* @__PURE__ */ ea(yd, [["__scopeId", "data-v-56b77109"]]), kd = { class: "cd-usercard-panel about-panel" }, Cd = { class: "about-logo" }, wd = ["src", "alt"], xd = { class: "app-name" }, $d = { class: "app-version" }, Vd = { class: "about-info" }, Sd = { class: "info-item" }, Md = { class: "info-value" }, zd = {
|
|
3742
3742
|
key: 0,
|
|
3743
3743
|
class: "info-item"
|
|
3744
3744
|
}, Fd = { class: "info-value" }, Dd = {
|
|
@@ -3750,7 +3750,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3750
3750
|
}, Rd = ["href", "onClick"], Ed = {
|
|
3751
3751
|
key: 1,
|
|
3752
3752
|
class: "about-footer"
|
|
3753
|
-
}, Pd = /* @__PURE__ */
|
|
3753
|
+
}, Pd = /* @__PURE__ */ Je({
|
|
3754
3754
|
name: "CdAboutPanel",
|
|
3755
3755
|
__name: "AboutPanel",
|
|
3756
3756
|
props: {
|
|
@@ -3798,7 +3798,7 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3798
3798
|
(l(!0), o(fe, null, be(a.links, (u) => (l(), o("a", {
|
|
3799
3799
|
key: u.url,
|
|
3800
3800
|
href: u.url,
|
|
3801
|
-
onClick:
|
|
3801
|
+
onClick: Qe((c) => te.$emit("link-click", u), ["prevent"])
|
|
3802
3802
|
}, [
|
|
3803
3803
|
e("i", {
|
|
3804
3804
|
class: xe(u.icon)
|
|
@@ -3810,34 +3810,34 @@ const jl = { class: "cd-usercard__header" }, Wl = { class: "cd-usercard__avatar-
|
|
|
3810
3810
|
]);
|
|
3811
3811
|
};
|
|
3812
3812
|
}
|
|
3813
|
-
}), Id = /* @__PURE__ */
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
const Od =
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
const ul =
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3813
|
+
}), Id = /* @__PURE__ */ ea(Pd, [["__scopeId", "data-v-3bbea5ac"]]);
|
|
3814
|
+
la($l);
|
|
3815
|
+
la(gs);
|
|
3816
|
+
la(Ds);
|
|
3817
|
+
la(js);
|
|
3818
|
+
la(ir);
|
|
3819
|
+
la(zr);
|
|
3820
|
+
la(qr);
|
|
3821
|
+
la(ed);
|
|
3822
|
+
la(fd);
|
|
3823
|
+
la(_d);
|
|
3824
|
+
la(Id);
|
|
3825
|
+
const Od = la(yt);
|
|
3826
|
+
la(Vl);
|
|
3827
|
+
la($n);
|
|
3828
|
+
const ul = la(ti);
|
|
3829
|
+
la(zl);
|
|
3830
|
+
la(Si);
|
|
3831
|
+
la(Ni);
|
|
3832
|
+
la(Yi);
|
|
3833
|
+
la(as);
|
|
3834
3834
|
const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd = ["disabled"], qd = {
|
|
3835
3835
|
key: 0,
|
|
3836
3836
|
class: "search-table-panel"
|
|
3837
3837
|
}, Ld = {
|
|
3838
3838
|
key: 1,
|
|
3839
3839
|
class: "search-empty"
|
|
3840
|
-
}, jd = { class: "relation-form-dialog-content" }, Wd = /* @__PURE__ */
|
|
3840
|
+
}, jd = { class: "relation-form-dialog-content" }, Wd = /* @__PURE__ */ Je({
|
|
3841
3841
|
name: "CdRelationForm",
|
|
3842
3842
|
__name: "RelationForm",
|
|
3843
3843
|
props: {
|
|
@@ -3863,7 +3863,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
3863
3863
|
},
|
|
3864
3864
|
emits: ["update:value", "change", "search", "dialog-search", "dialog-page-change", "advanced-select", "row-select"],
|
|
3865
3865
|
setup(a, { emit: te }) {
|
|
3866
|
-
const n = a, y = te, u = F(""), c = F([]), m = F([]), U = F(!1), _ = F(null),
|
|
3866
|
+
const n = a, y = te, u = F(""), c = F([]), m = F([]), U = F(!1), _ = F(null), w = () => {
|
|
3867
3867
|
var P;
|
|
3868
3868
|
(P = _.value) == null || P.focus();
|
|
3869
3869
|
}, r = () => {
|
|
@@ -3989,14 +3989,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
3989
3989
|
a.multiple && m.value.length > 0 ? (l(), o("div", {
|
|
3990
3990
|
key: 0,
|
|
3991
3991
|
class: "relation-tags-wrapper",
|
|
3992
|
-
onClick:
|
|
3992
|
+
onClick: w
|
|
3993
3993
|
}, [
|
|
3994
3994
|
(l(!0), o(fe, null, be(m.value, (_e, we) => (l(), j(X, {
|
|
3995
3995
|
key: we,
|
|
3996
3996
|
size: "small",
|
|
3997
3997
|
closable: "",
|
|
3998
3998
|
disabled: a.disabled,
|
|
3999
|
-
onClose: (
|
|
3999
|
+
onClose: (qe) => I(we)
|
|
4000
4000
|
}, {
|
|
4001
4001
|
default: i(() => [
|
|
4002
4002
|
A(V(_e), 1)
|
|
@@ -4028,7 +4028,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4028
4028
|
}, null, 8, ["modelValue", "placeholder", "loading", "disabled"])),
|
|
4029
4029
|
e("i", {
|
|
4030
4030
|
class: "ri-search-line cd-relation-form-icon",
|
|
4031
|
-
onClick:
|
|
4031
|
+
onClick: Qe(S, ["stop"]),
|
|
4032
4032
|
title: "高级选择"
|
|
4033
4033
|
})
|
|
4034
4034
|
])
|
|
@@ -4094,13 +4094,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4094
4094
|
]);
|
|
4095
4095
|
};
|
|
4096
4096
|
}
|
|
4097
|
-
}), Fl = /* @__PURE__ */
|
|
4097
|
+
}), Fl = /* @__PURE__ */ ea(Wd, [["__scopeId", "data-v-80b2c5a2"]]), Yd = { class: "add-container" }, Hd = { class: "panel-footer" }, Jd = { class: "column-mapping" }, Kd = { class: "mapping-label" }, Gd = { class: "mapping-preview" }, Xd = {
|
|
4098
4098
|
key: 0,
|
|
4099
4099
|
class: "more-tip"
|
|
4100
4100
|
}, Qd = { class: "preview-table" }, Zd = {
|
|
4101
4101
|
key: 0,
|
|
4102
4102
|
class: "preview-tip"
|
|
4103
|
-
}, eu = { class: "panel-footer" }, au = { class: "dialog-footer" }, lu = /* @__PURE__ */
|
|
4103
|
+
}, eu = { class: "panel-footer" }, au = { class: "dialog-footer" }, lu = /* @__PURE__ */ Je({
|
|
4104
4104
|
__name: "AiAddDialog",
|
|
4105
4105
|
props: {
|
|
4106
4106
|
visible: { type: Boolean, default: !1 },
|
|
@@ -4112,7 +4112,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4112
4112
|
const n = a, y = te, u = ve({
|
|
4113
4113
|
get: () => n.visible,
|
|
4114
4114
|
set: (H) => y("update:visible", H)
|
|
4115
|
-
}), c = F(["ai"]), m = F(""), U = F(""), _ = F("auto"),
|
|
4115
|
+
}), c = F(["ai"]), m = F(""), U = F(""), _ = F("auto"), w = F([]), r = F(!1), I = ve(() => n.columns.map((H) => ({
|
|
4116
4116
|
label: H.title || H.label,
|
|
4117
4117
|
value: H.field || H.value
|
|
4118
4118
|
}))), D = ve(() => {
|
|
@@ -4162,7 +4162,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4162
4162
|
_X_ROW_KEY: `row_${Date.now()}_${d}_${Math.random().toString(36).substr(2, 9)}`
|
|
4163
4163
|
};
|
|
4164
4164
|
H.forEach((g, R) => {
|
|
4165
|
-
const O =
|
|
4165
|
+
const O = w.value[R];
|
|
4166
4166
|
O && g[d] !== void 0 && (S[O] = g[d]);
|
|
4167
4167
|
}), W.push(S);
|
|
4168
4168
|
}
|
|
@@ -4171,7 +4171,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4171
4171
|
const H = [];
|
|
4172
4172
|
return D.value.forEach((E, W) => {
|
|
4173
4173
|
var g;
|
|
4174
|
-
const d =
|
|
4174
|
+
const d = w.value[W], S = d ? ((g = I.value.find((R) => R.value === d)) == null ? void 0 : g.label) || d : `第 ${W + 1} 列`;
|
|
4175
4175
|
H.push({
|
|
4176
4176
|
colKey: d || `col_${W}`,
|
|
4177
4177
|
title: S,
|
|
@@ -4179,21 +4179,21 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4179
4179
|
ellipsis: !0
|
|
4180
4180
|
});
|
|
4181
4181
|
}), H;
|
|
4182
|
-
}), N = ve(() =>
|
|
4182
|
+
}), N = ve(() => w.value.some((H) => H !== void 0 && H !== ""));
|
|
4183
4183
|
ze(() => D.value.length, (H) => {
|
|
4184
|
-
const E =
|
|
4185
|
-
E.length < H ?
|
|
4184
|
+
const E = w.value;
|
|
4185
|
+
E.length < H ? w.value = [
|
|
4186
4186
|
...E,
|
|
4187
4187
|
...new Array(H - E.length).fill("")
|
|
4188
|
-
] : E.length > H && (
|
|
4188
|
+
] : E.length > H && (w.value = E.slice(0, H));
|
|
4189
4189
|
});
|
|
4190
4190
|
const J = () => {
|
|
4191
4191
|
if (!N.value) {
|
|
4192
|
-
|
|
4192
|
+
Ie.warning("请至少为一列选择对应的字段");
|
|
4193
4193
|
return;
|
|
4194
4194
|
}
|
|
4195
4195
|
if (q.value.length === 0) {
|
|
4196
|
-
|
|
4196
|
+
Ie.warning("请输入要添加的数据");
|
|
4197
4197
|
return;
|
|
4198
4198
|
}
|
|
4199
4199
|
const H = q.value.map((E) => {
|
|
@@ -4222,10 +4222,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4222
4222
|
}
|
|
4223
4223
|
}), W;
|
|
4224
4224
|
});
|
|
4225
|
-
y("add-data", H),
|
|
4225
|
+
y("add-data", H), Ie.success(`成功添加 ${H.length} 条数据`), U.value = "", w.value = [], u.value = !1;
|
|
4226
4226
|
}, ge = () => {
|
|
4227
4227
|
if (!m.value.trim()) {
|
|
4228
|
-
|
|
4228
|
+
Ie.warning("请输入描述信息");
|
|
4229
4229
|
return;
|
|
4230
4230
|
}
|
|
4231
4231
|
r.value = !0, y("ai-parse", m.value.trim()), setTimeout(() => {
|
|
@@ -4233,7 +4233,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4233
4233
|
}, 1e3);
|
|
4234
4234
|
};
|
|
4235
4235
|
return ze(u, (H) => {
|
|
4236
|
-
H || (m.value = "", U.value = "",
|
|
4236
|
+
H || (m.value = "", U.value = "", w.value = [], r.value = !1, c.value = ["ai"]);
|
|
4237
4237
|
}), (H, E) => {
|
|
4238
4238
|
const W = M("t-textarea"), d = M("t-form-item"), S = M("t-form"), g = M("t-button"), R = M("t-space"), O = M("t-collapse-panel"), de = M("t-radio"), ue = M("t-radio-group"), L = M("t-select"), x = M("t-tag"), b = M("t-table"), z = M("t-collapse"), P = M("t-dialog");
|
|
4239
4239
|
return l(), j(P, {
|
|
@@ -4386,8 +4386,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4386
4386
|
}, [
|
|
4387
4387
|
e("div", Kd, "第 " + V(X + 1) + " 列", 1),
|
|
4388
4388
|
s(L, {
|
|
4389
|
-
modelValue:
|
|
4390
|
-
"onUpdate:modelValue": (oe) =>
|
|
4389
|
+
modelValue: w.value[X],
|
|
4390
|
+
"onUpdate:modelValue": (oe) => w.value[X] = oe,
|
|
4391
4391
|
placeholder: "请选择字段",
|
|
4392
4392
|
options: I.value,
|
|
4393
4393
|
clearable: ""
|
|
@@ -4474,7 +4474,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4474
4474
|
}, 8, ["visible"]);
|
|
4475
4475
|
};
|
|
4476
4476
|
}
|
|
4477
|
-
}), tu = /* @__PURE__ */
|
|
4477
|
+
}), tu = /* @__PURE__ */ ea(lu, [["__scopeId", "data-v-83250290"]]), nu = ["title"], ou = ["src"], iu = ["src"], su = {
|
|
4478
4478
|
key: 1,
|
|
4479
4479
|
class: "sign-placeholder"
|
|
4480
4480
|
}, ru = ["src"], du = {
|
|
@@ -4506,7 +4506,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4506
4506
|
components: {
|
|
4507
4507
|
RelationFormInternal: Fl
|
|
4508
4508
|
}
|
|
4509
|
-
}, xu = /* @__PURE__ */
|
|
4509
|
+
}, xu = /* @__PURE__ */ Je({
|
|
4510
4510
|
...wu,
|
|
4511
4511
|
props: {
|
|
4512
4512
|
field: {},
|
|
@@ -4517,8 +4517,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4517
4517
|
},
|
|
4518
4518
|
emits: ["change", "i18n-click", "select-org-data", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change"],
|
|
4519
4519
|
setup(a, { emit: te }) {
|
|
4520
|
-
var Me,
|
|
4521
|
-
const n = a, y = F(((Me = n.field.__config__) == null ? void 0 : Me.active) || ((je = (Le = (
|
|
4520
|
+
var Me, sa, Le, je, da;
|
|
4521
|
+
const n = a, y = F(((Me = n.field.__config__) == null ? void 0 : Me.active) || ((je = (Le = (sa = n.field.__config__) == null ? void 0 : sa.children) == null ? void 0 : Le[0]) == null ? void 0 : je.name) || "1"), u = F(((da = n.field.__config__) == null ? void 0 : da.active) || []), c = F(), m = F(!1), U = ve(() => {
|
|
4522
4522
|
var ie;
|
|
4523
4523
|
if (b.value !== "vxeSubGrid") return [];
|
|
4524
4524
|
const p = n.field.btnsList || ((ie = n.field.__config__) == null ? void 0 : ie.btnsList) || [];
|
|
@@ -4535,7 +4535,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4535
4535
|
isBack: !0,
|
|
4536
4536
|
isEsc: !0,
|
|
4537
4537
|
isLastEnterAppendRow: !0
|
|
4538
|
-
}),
|
|
4538
|
+
}), w = ve(() => {
|
|
4539
4539
|
const p = n.field.children || n.field.__config__.children || [];
|
|
4540
4540
|
return Array.isArray(p) ? p.map((v) => {
|
|
4541
4541
|
const ie = v.__vModel__ || v.field;
|
|
@@ -4610,14 +4610,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4610
4610
|
if (!L.value) {
|
|
4611
4611
|
const Te = [...ie], De = Te[Te.length - 1];
|
|
4612
4612
|
if (!(De && De._isEmpty)) {
|
|
4613
|
-
const
|
|
4613
|
+
const Ye = {
|
|
4614
4614
|
_X_ROW_KEY: `__empty_row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}__`,
|
|
4615
4615
|
_isEmpty: !0
|
|
4616
4616
|
};
|
|
4617
|
-
(n.field.children || n.field.__config__.children || []).forEach((
|
|
4618
|
-
const ya =
|
|
4619
|
-
ya && (
|
|
4620
|
-
}), Te.push(
|
|
4617
|
+
(n.field.children || n.field.__config__.children || []).forEach((oa) => {
|
|
4618
|
+
const ya = oa.__vModel__ || oa.field;
|
|
4619
|
+
ya && (Ye[ya] = "");
|
|
4620
|
+
}), Te.push(Ye);
|
|
4621
4621
|
}
|
|
4622
4622
|
return Te;
|
|
4623
4623
|
}
|
|
@@ -4642,7 +4642,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4642
4642
|
if (!Te || Te.noShow) return;
|
|
4643
4643
|
const De = ie.__vModel__ || ie.field;
|
|
4644
4644
|
if (!De) return;
|
|
4645
|
-
const
|
|
4645
|
+
const Ze = {
|
|
4646
4646
|
...ie,
|
|
4647
4647
|
__vModel__: De,
|
|
4648
4648
|
// 确保有 __vModel__ 属性
|
|
@@ -4650,7 +4650,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4650
4650
|
...Te,
|
|
4651
4651
|
layout: "colFormItem"
|
|
4652
4652
|
}
|
|
4653
|
-
},
|
|
4653
|
+
}, Ye = {
|
|
4654
4654
|
field: De,
|
|
4655
4655
|
title: ie.title || Te.label,
|
|
4656
4656
|
width: ie.width || Te.tableWidth || 150,
|
|
@@ -4658,13 +4658,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4658
4658
|
minWidth: ie.minWidth,
|
|
4659
4659
|
sortable: !0
|
|
4660
4660
|
};
|
|
4661
|
-
|
|
4661
|
+
Ye.cellRender = {
|
|
4662
4662
|
name: "$renderFormItem",
|
|
4663
|
-
props: { field:
|
|
4664
|
-
}, L.value || (
|
|
4663
|
+
props: { field: Ze }
|
|
4664
|
+
}, L.value || (Ye.editRender = {
|
|
4665
4665
|
name: "$renderFormItem",
|
|
4666
|
-
props: { field:
|
|
4667
|
-
}), v.push(
|
|
4666
|
+
props: { field: Ze }
|
|
4667
|
+
}), v.push(Ye);
|
|
4668
4668
|
}), v;
|
|
4669
4669
|
}), ge = ve(() => {
|
|
4670
4670
|
var ie;
|
|
@@ -4759,10 +4759,10 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4759
4759
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
4760
4760
|
};
|
|
4761
4761
|
(n.field.children || n.field.__config__.children || []).forEach((De) => {
|
|
4762
|
-
var
|
|
4763
|
-
const
|
|
4764
|
-
if (!
|
|
4765
|
-
switch ((
|
|
4762
|
+
var aa;
|
|
4763
|
+
const Ze = De.__vModel__ || De.field;
|
|
4764
|
+
if (!Ze) return;
|
|
4765
|
+
switch ((aa = De.__config__) == null ? void 0 : aa.cdkey) {
|
|
4766
4766
|
case "input":
|
|
4767
4767
|
case "textarea":
|
|
4768
4768
|
case "work_company":
|
|
@@ -4770,25 +4770,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4770
4770
|
case "work_description":
|
|
4771
4771
|
case "edu_school":
|
|
4772
4772
|
case "edu_major":
|
|
4773
|
-
ie[
|
|
4773
|
+
ie[Ze] = "";
|
|
4774
4774
|
break;
|
|
4775
4775
|
case "number":
|
|
4776
|
-
ie[
|
|
4776
|
+
ie[Ze] = 0;
|
|
4777
4777
|
break;
|
|
4778
4778
|
case "switch":
|
|
4779
|
-
ie[
|
|
4779
|
+
ie[Ze] = !1;
|
|
4780
4780
|
break;
|
|
4781
4781
|
case "checkbox":
|
|
4782
4782
|
case "select":
|
|
4783
4783
|
case "edu_degree":
|
|
4784
|
-
ie[
|
|
4784
|
+
ie[Ze] = De.multiple ? [] : null;
|
|
4785
4785
|
break;
|
|
4786
4786
|
case "date":
|
|
4787
4787
|
case "datetime":
|
|
4788
|
-
ie[
|
|
4788
|
+
ie[Ze] = null;
|
|
4789
4789
|
break;
|
|
4790
4790
|
default:
|
|
4791
|
-
ie[
|
|
4791
|
+
ie[Ze] = null;
|
|
4792
4792
|
}
|
|
4793
4793
|
}), v.push(ie), x("change", p, v);
|
|
4794
4794
|
}, S = async () => {
|
|
@@ -4822,7 +4822,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4822
4822
|
if (p._isEmpty && Object.keys(p).some((ie) => ie === "_X_ROW_KEY" || ie === "_isEmpty" ? !1 : p[ie] !== null && p[ie] !== void 0 && p[ie] !== "")) {
|
|
4823
4823
|
const ie = n.field.__vModel__;
|
|
4824
4824
|
if (!ie) return;
|
|
4825
|
-
const Te = Array.isArray(N.value) ? N.value.filter((
|
|
4825
|
+
const Te = Array.isArray(N.value) ? N.value.filter((Ze) => !Ze._isEmpty) : [], De = { ...p };
|
|
4826
4826
|
delete De._isEmpty, De._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Te.push(De), x("change", ie, Te);
|
|
4827
4827
|
}
|
|
4828
4828
|
}, de = (p) => {
|
|
@@ -4871,33 +4871,33 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4871
4871
|
})), !De)
|
|
4872
4872
|
return console.log("[RenderFormItem displayValue] 未找到关联数据"), "";
|
|
4873
4873
|
if (Array.isArray(De)) {
|
|
4874
|
-
const
|
|
4874
|
+
const Ze = De.map((Ye) => typeof Ye == "object" && Ye !== null ? Ye[v] : Ye).filter((Ye) => Ye != null);
|
|
4875
4875
|
if (ie) {
|
|
4876
|
-
const
|
|
4876
|
+
const Ye = Ze.map((aa) => parseFloat(aa)).filter((aa) => !isNaN(aa));
|
|
4877
4877
|
switch (ie) {
|
|
4878
4878
|
case "sum":
|
|
4879
|
-
return
|
|
4879
|
+
return Ye.reduce((aa, oa) => aa + oa, 0).toString();
|
|
4880
4880
|
case "average":
|
|
4881
|
-
return
|
|
4881
|
+
return Ye.length > 0 ? (Ye.reduce((aa, oa) => aa + oa, 0) / Ye.length).toString() : "";
|
|
4882
4882
|
case "round":
|
|
4883
|
-
return
|
|
4883
|
+
return Ye.length > 0 ? Math.round(Ye.reduce((aa, oa) => aa + oa, 0) / Ye.length).toString() : "";
|
|
4884
4884
|
case "floor":
|
|
4885
|
-
return
|
|
4885
|
+
return Ye.length > 0 ? Math.floor(Ye.reduce((aa, oa) => aa + oa, 0) / Ye.length).toString() : "";
|
|
4886
4886
|
case "ceiling":
|
|
4887
|
-
return
|
|
4887
|
+
return Ye.length > 0 ? Math.ceil(Ye.reduce((aa, oa) => aa + oa, 0) / Ye.length).toString() : "";
|
|
4888
4888
|
default:
|
|
4889
|
-
return
|
|
4889
|
+
return Ze.join(", ");
|
|
4890
4890
|
}
|
|
4891
4891
|
}
|
|
4892
|
-
return
|
|
4892
|
+
return Ze.join(", ");
|
|
4893
4893
|
}
|
|
4894
4894
|
if (typeof De == "object" && De !== null) {
|
|
4895
|
-
const
|
|
4895
|
+
const Ze = De[v] || "";
|
|
4896
4896
|
return console.log("[RenderFormItem displayValue] 从对象中取值:", {
|
|
4897
4897
|
showField: v,
|
|
4898
|
-
result:
|
|
4898
|
+
result: Ze,
|
|
4899
4899
|
relationData: De
|
|
4900
|
-
}),
|
|
4900
|
+
}), Ze;
|
|
4901
4901
|
}
|
|
4902
4902
|
return console.log("[RenderFormItem displayValue] 直接返回关联数据:", De), De || "";
|
|
4903
4903
|
}), G = (p) => {
|
|
@@ -4950,7 +4950,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4950
4950
|
L.value || x("change", `__sign_${n.field.__vModel__ || "sign"}__`, { field: n.field, type: "sign" });
|
|
4951
4951
|
}, we = () => {
|
|
4952
4952
|
L.value || x("change", `__signature_${n.field.__vModel__ || "signature"}__`, { field: n.field, type: "signature" });
|
|
4953
|
-
},
|
|
4953
|
+
}, qe = (p) => {
|
|
4954
4954
|
const v = n.field;
|
|
4955
4955
|
v.startField && v.endField && Array.isArray(p) && (x("change", v.startField, p[0] || null), x("change", v.endField, p[1] || null)), x("change", v.__vModel__ || "", p);
|
|
4956
4956
|
}, ke = () => {
|
|
@@ -4958,7 +4958,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4958
4958
|
if (!p) return "";
|
|
4959
4959
|
const v = p.replace(/Id$/, "Name");
|
|
4960
4960
|
return n.formModel[v] || n.formModel[p] || "";
|
|
4961
|
-
},
|
|
4961
|
+
}, Be = () => {
|
|
4962
4962
|
const p = n.field.__vModel__;
|
|
4963
4963
|
if (!p)
|
|
4964
4964
|
return;
|
|
@@ -4976,7 +4976,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4976
4976
|
x("change", p, null);
|
|
4977
4977
|
const v = p.replace(/Id$/, "Name");
|
|
4978
4978
|
n.formModel[v] !== void 0 && x("change", v, "");
|
|
4979
|
-
}, T = sl("relationFormData", {}), h = sl("relationFormHandlers", null), Se = sl("dynamicFieldOptions", F({})),
|
|
4979
|
+
}, T = sl("relationFormData", {}), h = sl("relationFormHandlers", null), Se = sl("dynamicFieldOptions", F({})), We = (p) => {
|
|
4980
4980
|
var ie;
|
|
4981
4981
|
const v = (ie = Se.value) == null ? void 0 : ie[p.__vModel__];
|
|
4982
4982
|
return Array.isArray(v) && v.length > 0 ? v : Array.isArray(p.options) ? p.options : [];
|
|
@@ -4992,7 +4992,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
4992
4992
|
}, Fe = (p, v) => {
|
|
4993
4993
|
const ie = { field: p.__vModel__, releaseId: p.releaseId, filters: v };
|
|
4994
4994
|
h != null && h.dialogSearch ? h.dialogSearch(ie) : x("relation-form-dialog-search", ie);
|
|
4995
|
-
},
|
|
4995
|
+
}, Oe = (p, v) => {
|
|
4996
4996
|
const ie = { field: p.__vModel__, releaseId: p.releaseId, pagination: v };
|
|
4997
4997
|
h != null && h.pageChange ? h.pageChange(ie) : x("relation-form-page-change", ie);
|
|
4998
4998
|
}, Ve = () => {
|
|
@@ -5025,7 +5025,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5025
5025
|
}, Ae = (p) => {
|
|
5026
5026
|
const v = Array.isArray(I.value) ? [...I.value] : [];
|
|
5027
5027
|
v.splice(p, 1), I.value = v;
|
|
5028
|
-
},
|
|
5028
|
+
}, ra = (p) => {
|
|
5029
5029
|
const v = Array.isArray(I.value) ? [...I.value] : [];
|
|
5030
5030
|
if (v[p]) {
|
|
5031
5031
|
const ie = { ...v[p] };
|
|
@@ -5034,11 +5034,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5034
5034
|
}, re = (p, v, ie) => {
|
|
5035
5035
|
const Te = Array.isArray(I.value) ? [...I.value] : [];
|
|
5036
5036
|
Te[p] && (Te[p][v] = ie, I.value = Te);
|
|
5037
|
-
},
|
|
5037
|
+
}, ia = (p) => {
|
|
5038
5038
|
p.value === "batchRemove" && (I.value = []), x("change", `__btn_${p.value}__`, { btn: p, data: I.value });
|
|
5039
5039
|
};
|
|
5040
5040
|
return (p, v) => {
|
|
5041
|
-
const ie = M("t-input"), Te = M("t-textarea"), De = M("t-input-number"),
|
|
5041
|
+
const ie = M("t-input"), Te = M("t-textarea"), De = M("t-input-number"), Ze = M("t-select"), Ye = M("t-date-picker"), aa = M("t-date-range-picker"), oa = M("t-time-picker"), ya = M("t-time-range-picker"), Na = M("t-switch"), Ba = M("vxe-rate"), qa = M("t-radio"), La = M("t-radio-group"), wa = M("t-checkbox"), ja = M("t-checkbox-group"), Aa = M("t-cascader"), Wa = M("t-tree-select"), Ya = M("t-auto-complete"), Ua = M("t-upload"), ma = M("t-button"), Ha = M("t-color-picker"), Ra = M("t-slider"), Ja = M("t-progress"), Ka = M("t-alert"), _a = M("t-link"), Ga = M("t-tag-input"), Xa = M("t-dropdown-item"), Qa = M("t-dropdown-menu"), Za = M("t-dropdown"), el = M("vxe-grid"), ha = M("render-form-item", !0), xa = M("t-row"), al = M("t-divider"), ll = M("t-tab-panel"), tl = M("t-tabs"), Ea = M("t-collapse-panel"), nl = M("t-collapse"), Pa = M("t-popconfirm"), Ia = M("t-space"), ol = M("t-table");
|
|
5042
5042
|
return a.field.__config__.layout === "colFormItem" ? (l(), j(Tl(a.tableMode ? "div" : "t-form-item"), Fa({
|
|
5043
5043
|
key: 0,
|
|
5044
5044
|
class: a.tableMode ? "table-cell-editor" : ""
|
|
@@ -5048,7 +5048,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5048
5048
|
required: a.field.__config__.required
|
|
5049
5049
|
}), {
|
|
5050
5050
|
default: i(() => {
|
|
5051
|
-
var Ce,
|
|
5051
|
+
var Ce, Ee;
|
|
5052
5052
|
return [
|
|
5053
5053
|
b.value === "input" && !((Ce = a.field.__config__) != null && Ce.i18n) ? (l(), j(ie, {
|
|
5054
5054
|
key: 0,
|
|
@@ -5063,7 +5063,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5063
5063
|
onInput: ne,
|
|
5064
5064
|
onClear: k,
|
|
5065
5065
|
onChange: oe
|
|
5066
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : b.value === "input" && ((
|
|
5066
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "maxlength", "readonly"])) : b.value === "input" && ((Ee = a.field.__config__) != null && Ee.i18n) ? (l(), j(ie, {
|
|
5067
5067
|
key: 1,
|
|
5068
5068
|
modelValue: z.value,
|
|
5069
5069
|
"onUpdate:modelValue": v[1] || (v[1] = (me) => z.value = me),
|
|
@@ -5084,7 +5084,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5084
5084
|
suffix: i(() => [
|
|
5085
5085
|
e("i", {
|
|
5086
5086
|
class: "i18n-icon ri-translate-2",
|
|
5087
|
-
onClick:
|
|
5087
|
+
onClick: Qe(B, ["stop"]),
|
|
5088
5088
|
title: a.field.i18nValue || "多语言",
|
|
5089
5089
|
style: { cursor: "pointer", color: "#0052d9" }
|
|
5090
5090
|
}, null, 8, nu)
|
|
@@ -5113,7 +5113,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5113
5113
|
max: a.field.max,
|
|
5114
5114
|
step: a.field.step || 1,
|
|
5115
5115
|
onChange: oe
|
|
5116
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : b.value === "select" ? (l(), j(
|
|
5116
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "min", "max", "step"])) : b.value === "select" ? (l(), j(Ze, {
|
|
5117
5117
|
key: 4,
|
|
5118
5118
|
modelValue: z.value,
|
|
5119
5119
|
"onUpdate:modelValue": v[5] || (v[5] = (me) => z.value = me),
|
|
@@ -5125,7 +5125,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5125
5125
|
options: Array.isArray(a.field.options) ? a.field.options : [],
|
|
5126
5126
|
keys: a.field.props || { label: "label", value: "value" },
|
|
5127
5127
|
onChange: oe
|
|
5128
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : b.value === "date" ? (l(), j(
|
|
5128
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "options", "keys"])) : b.value === "date" ? (l(), j(Ye, {
|
|
5129
5129
|
key: 5,
|
|
5130
5130
|
modelValue: z.value,
|
|
5131
5131
|
"onUpdate:modelValue": v[6] || (v[6] = (me) => z.value = me),
|
|
@@ -5136,7 +5136,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5136
5136
|
"enable-time-picker": a.field.type === "datetime",
|
|
5137
5137
|
format: G(a.field.type),
|
|
5138
5138
|
onChange: oe
|
|
5139
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : b.value === "dateRange" ? (l(), j(
|
|
5139
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "mode", "enable-time-picker", "format"])) : b.value === "dateRange" ? (l(), j(aa, {
|
|
5140
5140
|
key: 6,
|
|
5141
5141
|
modelValue: z.value,
|
|
5142
5142
|
"onUpdate:modelValue": v[7] || (v[7] = (me) => z.value = me),
|
|
@@ -5145,8 +5145,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5145
5145
|
clearable: a.field.clearable !== !1,
|
|
5146
5146
|
"enable-time-picker": a.field.type === "datetime",
|
|
5147
5147
|
format: G(a.field.type),
|
|
5148
|
-
onChange:
|
|
5149
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : b.value === "time" ? (l(), j(
|
|
5148
|
+
onChange: qe
|
|
5149
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "enable-time-picker", "format"])) : b.value === "time" ? (l(), j(oa, {
|
|
5150
5150
|
key: 7,
|
|
5151
5151
|
modelValue: z.value,
|
|
5152
5152
|
"onUpdate:modelValue": v[8] || (v[8] = (me) => z.value = me),
|
|
@@ -5161,7 +5161,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5161
5161
|
placeholder: a.field.placeholder || ["开始时间", "结束时间"],
|
|
5162
5162
|
disabled: L.value,
|
|
5163
5163
|
clearable: a.field.clearable !== !1,
|
|
5164
|
-
onChange:
|
|
5164
|
+
onChange: qe
|
|
5165
5165
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable"])) : b.value === "switch" ? (l(), j(Na, {
|
|
5166
5166
|
key: 9,
|
|
5167
5167
|
modelValue: z.value,
|
|
@@ -5233,7 +5233,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5233
5233
|
clearable: a.field.clearable !== !1,
|
|
5234
5234
|
filterable: a.field.filterable,
|
|
5235
5235
|
multiple: a.field.multiple,
|
|
5236
|
-
data:
|
|
5236
|
+
data: We(a.field),
|
|
5237
5237
|
"tree-props": a.field.props || { keys: { label: "label", value: "value", children: "children" } },
|
|
5238
5238
|
onChange: oe
|
|
5239
5239
|
}, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "filterable", "multiple", "data", "tree-props"])) : b.value === "autoComplete" ? (l(), j(Ya, {
|
|
@@ -5343,7 +5343,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5343
5343
|
}, 8, ["theme", "disabled", "variant"])) : b.value === "iframe" ? (l(), o("iframe", {
|
|
5344
5344
|
key: 24,
|
|
5345
5345
|
src: a.field.src || a.field.defaultValue,
|
|
5346
|
-
style:
|
|
5346
|
+
style: Ke({
|
|
5347
5347
|
width: a.field.width || "100%",
|
|
5348
5348
|
height: a.field.height || "300px",
|
|
5349
5349
|
border: a.field.border || "none"
|
|
@@ -5408,7 +5408,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5408
5408
|
}, null, 8, ["modelValue", "placeholder", "disabled"])) : b.value === "text" ? (l(), o("div", {
|
|
5409
5409
|
key: 30,
|
|
5410
5410
|
class: "text-component",
|
|
5411
|
-
style:
|
|
5411
|
+
style: Ke({
|
|
5412
5412
|
color: a.field.color,
|
|
5413
5413
|
fontSize: a.field.fontSize ? `${a.field.fontSize}px` : void 0,
|
|
5414
5414
|
fontWeight: a.field.fontWeight,
|
|
@@ -5441,7 +5441,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5441
5441
|
onSearch: v[26] || (v[26] = (me) => Q(a.field, me.keyword)),
|
|
5442
5442
|
onAdvancedSelect: v[27] || (v[27] = (me) => ae(a.field)),
|
|
5443
5443
|
onDialogSearch: v[28] || (v[28] = (me) => Fe(a.field, me)),
|
|
5444
|
-
onDialogPageChange: v[29] || (v[29] = (me) =>
|
|
5444
|
+
onDialogPageChange: v[29] || (v[29] = (me) => Oe(a.field, me))
|
|
5445
5445
|
}, null, 8, ["value", "release-id", "relation-field", "search-fields", "form-type", "column-options", "has-page", "page-size", "multiple", "popup-type", "popup-title", "popup-width", "placeholder", "disabled", "clearable", "search-results", "dialog-table-data", "dialog-loading", "dialog-pagination", "cd-form-config"])) : ["organizeSelect", "depSelect", "posSelect", "userSelect", "roleSelect", "groupSelect", "popupSelect", "popupTableSelect"].includes(b.value) ? (l(), o(fe, { key: 32 }, [
|
|
5446
5446
|
L.value ? (l(), o("div", fu, [
|
|
5447
5447
|
b.value === "userSelect" && z.value ? (l(), j(ca(Od), {
|
|
@@ -5465,7 +5465,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5465
5465
|
"suffix-icon": i(() => [
|
|
5466
5466
|
e("i", {
|
|
5467
5467
|
class: "ri-search-line org-search-icon",
|
|
5468
|
-
onClick:
|
|
5468
|
+
onClick: Be
|
|
5469
5469
|
})
|
|
5470
5470
|
]),
|
|
5471
5471
|
_: 1
|
|
@@ -5515,14 +5515,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5515
5515
|
}, 1024),
|
|
5516
5516
|
s(Qa, null, {
|
|
5517
5517
|
default: i(() => [
|
|
5518
|
-
(l(!0), o(fe, null, be(Ce.children.filter((
|
|
5519
|
-
key:
|
|
5520
|
-
value:
|
|
5521
|
-
disabled:
|
|
5522
|
-
divider:
|
|
5518
|
+
(l(!0), o(fe, null, be(Ce.children.filter((Ee) => Ee.show !== !1), (Ee) => (l(), j(Xa, {
|
|
5519
|
+
key: Ee.value || Math.random(),
|
|
5520
|
+
value: Ee.value,
|
|
5521
|
+
disabled: Ee.disabled,
|
|
5522
|
+
divider: Ee.divider
|
|
5523
5523
|
}, {
|
|
5524
5524
|
default: i(() => [
|
|
5525
|
-
A(V(
|
|
5525
|
+
A(V(Ee.label), 1)
|
|
5526
5526
|
]),
|
|
5527
5527
|
_: 2
|
|
5528
5528
|
}, 1032, ["value", "disabled", "divider"]))), 128))
|
|
@@ -5536,7 +5536,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5536
5536
|
variant: "outline",
|
|
5537
5537
|
size: "small",
|
|
5538
5538
|
theme: r(Ce.value),
|
|
5539
|
-
onClick:
|
|
5539
|
+
onClick: Qe((Ee) => W(Ce.value), ["stop"])
|
|
5540
5540
|
}, {
|
|
5541
5541
|
default: i(() => [
|
|
5542
5542
|
A(V(Ce.label), 1)
|
|
@@ -5560,7 +5560,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5560
5560
|
visible: m.value,
|
|
5561
5561
|
"onUpdate:visible": v[31] || (v[31] = (Ce) => m.value = Ce),
|
|
5562
5562
|
columns: J.value,
|
|
5563
|
-
"field-configs":
|
|
5563
|
+
"field-configs": w.value,
|
|
5564
5564
|
onAddData: de,
|
|
5565
5565
|
onAiParse: ue
|
|
5566
5566
|
}, null, 8, ["visible", "columns", "field-configs"])
|
|
@@ -5592,7 +5592,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5592
5592
|
"form-model": a.formModel,
|
|
5593
5593
|
"form-conf": a.formConf,
|
|
5594
5594
|
disabled: L.value,
|
|
5595
|
-
onChange: v[32] || (v[32] = (
|
|
5595
|
+
onChange: v[32] || (v[32] = (Ee, me) => p.$emit("change", Ee, me))
|
|
5596
5596
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"])
|
|
5597
5597
|
]),
|
|
5598
5598
|
_: 2
|
|
@@ -5636,17 +5636,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5636
5636
|
class: "cd-row"
|
|
5637
5637
|
}, {
|
|
5638
5638
|
default: i(() => [
|
|
5639
|
-
(l(!0), o(fe, null, be(Ce.__config__.children, (
|
|
5640
|
-
key:
|
|
5639
|
+
(l(!0), o(fe, null, be(Ce.__config__.children, (Ee) => (l(), o(fe, {
|
|
5640
|
+
key: Ee.__config__.formId
|
|
5641
5641
|
}, [
|
|
5642
|
-
|
|
5642
|
+
Ee.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
|
|
5643
5643
|
key: 0,
|
|
5644
|
-
span:
|
|
5645
|
-
class: xe(
|
|
5644
|
+
span: Ee.__config__.span,
|
|
5645
|
+
class: xe(Ee.__config__.className)
|
|
5646
5646
|
}, {
|
|
5647
5647
|
default: i(() => [
|
|
5648
5648
|
s(ha, {
|
|
5649
|
-
field:
|
|
5649
|
+
field: Ee,
|
|
5650
5650
|
"form-model": a.formModel,
|
|
5651
5651
|
"form-conf": a.formConf,
|
|
5652
5652
|
disabled: L.value,
|
|
@@ -5667,7 +5667,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5667
5667
|
}, 8, ["modelValue", "class", "placement", "theme"])) : b.value === "tableGrid" ? (l(), o("div", {
|
|
5668
5668
|
key: 6,
|
|
5669
5669
|
class: xe(["table-grid-container", a.field.__config__.className]),
|
|
5670
|
-
style:
|
|
5670
|
+
style: Ke({
|
|
5671
5671
|
borderWidth: a.field.__config__.borderWidth ? `${a.field.__config__.borderWidth}px` : "1px",
|
|
5672
5672
|
borderStyle: a.field.__config__.borderType || "solid",
|
|
5673
5673
|
borderColor: a.field.__config__.borderColor || "#e5e5e5"
|
|
@@ -5675,21 +5675,21 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5675
5675
|
}, [
|
|
5676
5676
|
e("table", _u, [
|
|
5677
5677
|
e("tbody", null, [
|
|
5678
|
-
(l(!0), o(fe, null, be(a.field.__config__.children, (Ce,
|
|
5679
|
-
key: `tr-${
|
|
5678
|
+
(l(!0), o(fe, null, be(a.field.__config__.children, (Ce, Ee) => (l(), o("tr", {
|
|
5679
|
+
key: `tr-${Ee}`
|
|
5680
5680
|
}, [
|
|
5681
5681
|
(l(!0), o(fe, null, be(Ce.__config__.children, (me, va) => (l(), o("td", {
|
|
5682
|
-
key: `td-${
|
|
5683
|
-
style:
|
|
5682
|
+
key: `td-${Ee}-${va}`,
|
|
5683
|
+
style: Ke({
|
|
5684
5684
|
backgroundColor: me.__config__.backgroundColor
|
|
5685
5685
|
})
|
|
5686
5686
|
}, [
|
|
5687
|
-
(l(!0), o(fe, null, be(me.__config__.children, (
|
|
5688
|
-
key:
|
|
5687
|
+
(l(!0), o(fe, null, be(me.__config__.children, (ua) => (l(), o(fe, {
|
|
5688
|
+
key: ua.__config__.formId
|
|
5689
5689
|
}, [
|
|
5690
|
-
|
|
5690
|
+
ua.__config__.noShow ? Y("", !0) : (l(), j(ha, {
|
|
5691
5691
|
key: 0,
|
|
5692
|
-
field:
|
|
5692
|
+
field: ua,
|
|
5693
5693
|
"form-model": a.formModel,
|
|
5694
5694
|
"form-conf": a.formConf,
|
|
5695
5695
|
disabled: L.value,
|
|
@@ -5721,17 +5721,17 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5721
5721
|
class: "cd-row"
|
|
5722
5722
|
}, {
|
|
5723
5723
|
default: i(() => [
|
|
5724
|
-
(l(!0), o(fe, null, be(Ce.__config__.children, (
|
|
5725
|
-
key:
|
|
5724
|
+
(l(!0), o(fe, null, be(Ce.__config__.children, (Ee) => (l(), o(fe, {
|
|
5725
|
+
key: Ee.__config__.formId
|
|
5726
5726
|
}, [
|
|
5727
|
-
|
|
5727
|
+
Ee.__config__.noShow ? Y("", !0) : (l(), j(Ma, {
|
|
5728
5728
|
key: 0,
|
|
5729
|
-
span:
|
|
5730
|
-
class: xe(
|
|
5729
|
+
span: Ee.__config__.span,
|
|
5730
|
+
class: xe(Ee.__config__.className)
|
|
5731
5731
|
}, {
|
|
5732
5732
|
default: i(() => [
|
|
5733
5733
|
s(ha, {
|
|
5734
|
-
field:
|
|
5734
|
+
field: Ee,
|
|
5735
5735
|
"form-model": a.formModel,
|
|
5736
5736
|
"form-conf": a.formConf,
|
|
5737
5737
|
disabled: L.value,
|
|
@@ -5779,7 +5779,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5779
5779
|
}, 1032, ["theme"])) : Ce.showConfirm ? (l(), j(Pa, {
|
|
5780
5780
|
key: 1,
|
|
5781
5781
|
content: `确定${Ce.label}吗?`,
|
|
5782
|
-
onConfirm: (
|
|
5782
|
+
onConfirm: (Ee) => ia(Ce)
|
|
5783
5783
|
}, {
|
|
5784
5784
|
default: i(() => [
|
|
5785
5785
|
s(ma, {
|
|
@@ -5804,7 +5804,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5804
5804
|
theme: Ce.btnType || "default",
|
|
5805
5805
|
variant: "outline",
|
|
5806
5806
|
size: "small",
|
|
5807
|
-
onClick: (
|
|
5807
|
+
onClick: (Ee) => ia(Ce)
|
|
5808
5808
|
}, {
|
|
5809
5809
|
icon: i(() => [
|
|
5810
5810
|
e("i", {
|
|
@@ -5832,14 +5832,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5832
5832
|
}, ba({ _: 2 }, [
|
|
5833
5833
|
be(a.field.__config__.children, (Ce) => ({
|
|
5834
5834
|
name: `cell-${Ce.__vModel__}`,
|
|
5835
|
-
fn: i(({ row:
|
|
5835
|
+
fn: i(({ row: Ee, rowIndex: me }) => [
|
|
5836
5836
|
s(ha, {
|
|
5837
5837
|
field: Ce,
|
|
5838
|
-
"form-model":
|
|
5838
|
+
"form-model": Ee,
|
|
5839
5839
|
"form-conf": a.formConf,
|
|
5840
5840
|
disabled: L.value,
|
|
5841
5841
|
"table-mode": !0,
|
|
5842
|
-
onChange: (va,
|
|
5842
|
+
onChange: (va, ua) => re(me, va, ua)
|
|
5843
5843
|
}, null, 8, ["field", "form-model", "form-conf", "disabled", "onChange"])
|
|
5844
5844
|
])
|
|
5845
5845
|
})),
|
|
@@ -5848,50 +5848,50 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5848
5848
|
fn: i(({ rowIndex: Ce }) => [
|
|
5849
5849
|
s(Ia, null, {
|
|
5850
5850
|
default: i(() => [
|
|
5851
|
-
(l(!0), o(fe, null, be(q.value, (
|
|
5852
|
-
key:
|
|
5851
|
+
(l(!0), o(fe, null, be(q.value, (Ee) => (l(), o(fe, {
|
|
5852
|
+
key: Ee.value
|
|
5853
5853
|
}, [
|
|
5854
|
-
|
|
5854
|
+
Ee.value === "copy" ? (l(), j(_a, {
|
|
5855
5855
|
key: 0,
|
|
5856
5856
|
theme: "primary",
|
|
5857
|
-
onClick: (me) =>
|
|
5857
|
+
onClick: (me) => ra(Ce)
|
|
5858
5858
|
}, {
|
|
5859
5859
|
default: i(() => [
|
|
5860
5860
|
e("i", {
|
|
5861
|
-
class: xe(
|
|
5861
|
+
class: xe(Ee.btnIcon || "ri-file-copy-line")
|
|
5862
5862
|
}, null, 2),
|
|
5863
|
-
A(" " + V(
|
|
5863
|
+
A(" " + V(Ee.label), 1)
|
|
5864
5864
|
]),
|
|
5865
5865
|
_: 2
|
|
5866
|
-
}, 1032, ["onClick"])) :
|
|
5866
|
+
}, 1032, ["onClick"])) : Ee.value === "remove" && Ee.showConfirm ? (l(), j(Pa, {
|
|
5867
5867
|
key: 1,
|
|
5868
5868
|
content: "确定删除该行吗?",
|
|
5869
5869
|
onConfirm: (me) => Ae(Ce)
|
|
5870
5870
|
}, {
|
|
5871
5871
|
default: i(() => [
|
|
5872
5872
|
s(_a, {
|
|
5873
|
-
theme:
|
|
5873
|
+
theme: Ee.btnType === "error" ? "danger" : "default"
|
|
5874
5874
|
}, {
|
|
5875
5875
|
default: i(() => [
|
|
5876
5876
|
e("i", {
|
|
5877
|
-
class: xe(
|
|
5877
|
+
class: xe(Ee.btnIcon || "ri-delete-bin-line")
|
|
5878
5878
|
}, null, 2),
|
|
5879
|
-
A(" " + V(
|
|
5879
|
+
A(" " + V(Ee.label), 1)
|
|
5880
5880
|
]),
|
|
5881
5881
|
_: 2
|
|
5882
5882
|
}, 1032, ["theme"])
|
|
5883
5883
|
]),
|
|
5884
5884
|
_: 2
|
|
5885
|
-
}, 1032, ["onConfirm"])) :
|
|
5885
|
+
}, 1032, ["onConfirm"])) : Ee.value === "remove" ? (l(), j(_a, {
|
|
5886
5886
|
key: 2,
|
|
5887
|
-
theme:
|
|
5887
|
+
theme: Ee.btnType === "error" ? "danger" : "default",
|
|
5888
5888
|
onClick: (me) => Ae(Ce)
|
|
5889
5889
|
}, {
|
|
5890
5890
|
default: i(() => [
|
|
5891
5891
|
e("i", {
|
|
5892
|
-
class: xe(
|
|
5892
|
+
class: xe(Ee.btnIcon || "ri-delete-bin-line")
|
|
5893
5893
|
}, null, 2),
|
|
5894
|
-
A(" " + V(
|
|
5894
|
+
A(" " + V(Ee.label), 1)
|
|
5895
5895
|
]),
|
|
5896
5896
|
_: 2
|
|
5897
5897
|
}, 1032, ["theme", "onClick"])) : Y("", !0)
|
|
@@ -5906,7 +5906,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5906
5906
|
], 2)) : Y("", !0);
|
|
5907
5907
|
};
|
|
5908
5908
|
}
|
|
5909
|
-
}), Dl = /* @__PURE__ */
|
|
5909
|
+
}), Dl = /* @__PURE__ */ ea(xu, [["__scopeId", "data-v-158cd013"]]), $u = /* @__PURE__ */ Je({
|
|
5910
5910
|
__name: "FormRender",
|
|
5911
5911
|
props: {
|
|
5912
5912
|
formConf: {},
|
|
@@ -5926,7 +5926,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
5926
5926
|
x[b] !== void 0 && (U[b] = { ...U[b] || {}, ...x[b] });
|
|
5927
5927
|
});
|
|
5928
5928
|
});
|
|
5929
|
-
const _ = pa({}),
|
|
5929
|
+
const _ = pa({}), w = (x) => x ? x.startsWith("t-") ? x.toLowerCase() : "t-" + x.replace(/([A-Z])/g, (z, P, G) => G > 0 ? "-" + P.toLowerCase() : P.toLowerCase()) : "", r = (x, b) => {
|
|
5930
5930
|
!x || !Array.isArray(x) || x.forEach((z) => {
|
|
5931
5931
|
const P = z.__config__, G = P.cdkey;
|
|
5932
5932
|
P.layout === "colFormItem" && z.__vModel__ ? b(z) : P.layout === "rowFormItem" && P.children && Array.isArray(P.children) ? r(P.children, b) : G === "tab" && P.children && Array.isArray(P.children) ? P.children.forEach((X) => {
|
|
@@ -6072,7 +6072,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6072
6072
|
else if ("defaultValue" in P && P.defaultValue !== void 0)
|
|
6073
6073
|
_[z] = P.defaultValue;
|
|
6074
6074
|
else
|
|
6075
|
-
switch (
|
|
6075
|
+
switch (w(P.tag)) {
|
|
6076
6076
|
case "t-input":
|
|
6077
6077
|
case "t-textarea":
|
|
6078
6078
|
_[z] = "";
|
|
@@ -6126,25 +6126,25 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6126
6126
|
method: "POST",
|
|
6127
6127
|
headers: { "Content-Type": "application/json", Authorization: "Bearer token" },
|
|
6128
6128
|
body: JSON.stringify({ currentPage: 1, pageSize: 9999 })
|
|
6129
|
-
})).json()).data) == null ? void 0 : k.list) || [], we = /* @__PURE__ */ new Map(),
|
|
6130
|
-
for (const
|
|
6129
|
+
})).json()).data) == null ? void 0 : k.list) || [], we = /* @__PURE__ */ new Map(), qe = [];
|
|
6130
|
+
for (const Be of _e) {
|
|
6131
6131
|
const ce = {
|
|
6132
|
-
value:
|
|
6133
|
-
label:
|
|
6132
|
+
value: Be[X],
|
|
6133
|
+
label: Be[oe] || Be[X],
|
|
6134
6134
|
children: [],
|
|
6135
|
-
_parentId:
|
|
6135
|
+
_parentId: Be[G]
|
|
6136
6136
|
};
|
|
6137
6137
|
we.set(String(ce.value), ce);
|
|
6138
6138
|
}
|
|
6139
|
-
for (const
|
|
6140
|
-
const ce = String(
|
|
6141
|
-
T && T !==
|
|
6139
|
+
for (const Be of we.values()) {
|
|
6140
|
+
const ce = String(Be._parentId || "0"), T = we.get(ce);
|
|
6141
|
+
T && T !== Be ? T.children.push(Be) : qe.push(Be), delete Be._parentId;
|
|
6142
6142
|
}
|
|
6143
|
-
const ke = (
|
|
6144
|
-
for (const ce of
|
|
6143
|
+
const ke = (Be) => {
|
|
6144
|
+
for (const ce of Be)
|
|
6145
6145
|
ce.children.length === 0 ? delete ce.children : ke(ce.children);
|
|
6146
6146
|
};
|
|
6147
|
-
ke(
|
|
6147
|
+
ke(qe), b.options = qe, m.value = { ...m.value, [b.__vModel__]: qe }, b.props || (b.props = { keys: { label: "label", value: "value", children: "children" } });
|
|
6148
6148
|
} catch (B) {
|
|
6149
6149
|
console.error(`[FormRender] 加载 treeSelect "${b.__vModel__}" 选项失败:`, B);
|
|
6150
6150
|
}
|
|
@@ -6237,7 +6237,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
6237
6237
|
}, 8, ["model", "rules", "label-width", "label-align", "colon", "size", "disabled"]);
|
|
6238
6238
|
};
|
|
6239
6239
|
}
|
|
6240
|
-
}), Al = /* @__PURE__ */
|
|
6240
|
+
}), Al = /* @__PURE__ */ ea($u, [["__scopeId", "data-v-5992081b"]]), Vu = [
|
|
6241
6241
|
{
|
|
6242
6242
|
name: "北京市",
|
|
6243
6243
|
city: [{
|
|
@@ -11764,7 +11764,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
11764
11764
|
}
|
|
11765
11765
|
]
|
|
11766
11766
|
}
|
|
11767
|
-
], Su = { class: "filter-component" }, Mu = /* @__PURE__ */
|
|
11767
|
+
], Su = { class: "filter-component" }, Mu = /* @__PURE__ */ Je({
|
|
11768
11768
|
__name: "FilterComponent",
|
|
11769
11769
|
props: {
|
|
11770
11770
|
fieldOptions: {},
|
|
@@ -11816,14 +11816,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
11816
11816
|
(d) => d.columnName === E
|
|
11817
11817
|
);
|
|
11818
11818
|
if (W && W.value)
|
|
11819
|
-
return
|
|
11819
|
+
return w(W.value.map((d) => ({
|
|
11820
11820
|
label: d,
|
|
11821
11821
|
value: d
|
|
11822
11822
|
})));
|
|
11823
11823
|
}
|
|
11824
11824
|
return [];
|
|
11825
11825
|
};
|
|
11826
|
-
function
|
|
11826
|
+
function w(E) {
|
|
11827
11827
|
return [...E].sort((W, d) => W.value.localeCompare(d.value, "zh-CN"));
|
|
11828
11828
|
}
|
|
11829
11829
|
const r = a, I = te, D = F({
|
|
@@ -11838,11 +11838,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
11838
11838
|
const W = r.fieldOptions.find((d) => d.value === E);
|
|
11839
11839
|
return W ? W.type : "text";
|
|
11840
11840
|
}, ee = () => {
|
|
11841
|
-
typeof r.filterCondition.value == "string" && (r.filterCondition.value = r.filterCondition.value.trim()),
|
|
11841
|
+
typeof r.filterCondition.value == "string" && (r.filterCondition.value = r.filterCondition.value.trim()), na(() => {
|
|
11842
11842
|
I("search", { ...r.filterCondition });
|
|
11843
11843
|
});
|
|
11844
11844
|
}, N = () => {
|
|
11845
|
-
|
|
11845
|
+
na(() => {
|
|
11846
11846
|
I("search", { ...r.filterCondition });
|
|
11847
11847
|
});
|
|
11848
11848
|
}, J = (E) => {
|
|
@@ -11929,7 +11929,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
11929
11929
|
];
|
|
11930
11930
|
}
|
|
11931
11931
|
}), H = () => {
|
|
11932
|
-
|
|
11932
|
+
na(() => {
|
|
11933
11933
|
I("search", { ...r.filterCondition });
|
|
11934
11934
|
});
|
|
11935
11935
|
};
|
|
@@ -12127,7 +12127,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12127
12127
|
shareType: "specific",
|
|
12128
12128
|
selectedUsers: []
|
|
12129
12129
|
}, c.value = [], m.value = [];
|
|
12130
|
-
},
|
|
12130
|
+
}, w = (N) => {
|
|
12131
12131
|
console.log("选中人员:", N), N.map((J) => ({
|
|
12132
12132
|
id: J.id,
|
|
12133
12133
|
name: J.displayName || J.name,
|
|
@@ -12151,11 +12151,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12151
12151
|
y("dept-click", N);
|
|
12152
12152
|
}, q = () => {
|
|
12153
12153
|
if (!u.value.planName.trim()) {
|
|
12154
|
-
|
|
12154
|
+
Ie.warning("请输入方案名称");
|
|
12155
12155
|
return;
|
|
12156
12156
|
}
|
|
12157
12157
|
if ((u.value.shareMode === "share" || u.value.shareMode === "copy") && u.value.shareType === "specific" && u.value.selectedUsers.length === 0) {
|
|
12158
|
-
|
|
12158
|
+
Ie.warning("请选择要共享的用户");
|
|
12159
12159
|
return;
|
|
12160
12160
|
}
|
|
12161
12161
|
y("confirm", {
|
|
@@ -12280,7 +12280,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12280
12280
|
"person-tabs": a.tabs,
|
|
12281
12281
|
"person-organizations": a.organizations,
|
|
12282
12282
|
"dept-members-data": m.value,
|
|
12283
|
-
onPersonSelect:
|
|
12283
|
+
onPersonSelect: w,
|
|
12284
12284
|
onLoadUsers: r,
|
|
12285
12285
|
onSearch: I,
|
|
12286
12286
|
onDeptClick: D
|
|
@@ -12399,7 +12399,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12399
12399
|
"column-change"
|
|
12400
12400
|
],
|
|
12401
12401
|
setup(a, { emit: te }) {
|
|
12402
|
-
const n = a, y = te, u = F(JSON.parse(JSON.stringify(n.filterCards))), c = F(n.topOp), m = F(null), U = F(!1), _ = F([]),
|
|
12402
|
+
const n = a, y = te, u = F(JSON.parse(JSON.stringify(n.filterCards))), c = F(n.topOp), m = F(null), U = F(!1), _ = F([]), w = F("filter"), r = F(!1), I = F(""), D = F("none"), q = F("specific"), ee = F([]), N = F(null);
|
|
12403
12403
|
let J = 100;
|
|
12404
12404
|
ze(() => n.filterCards, (Q) => {
|
|
12405
12405
|
u.value = JSON.parse(JSON.stringify(Q));
|
|
@@ -12413,7 +12413,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12413
12413
|
conditions: [{ field: "", operator: "eq", value: "" }]
|
|
12414
12414
|
});
|
|
12415
12415
|
}, H = (Q) => {
|
|
12416
|
-
u.value.length > 1 ? u.value.splice(Q, 1) :
|
|
12416
|
+
u.value.length > 1 ? u.value.splice(Q, 1) : Ie.warning("至少需要保留一个筛选卡片");
|
|
12417
12417
|
}, E = (Q) => {
|
|
12418
12418
|
Q >= 0 && Q < u.value.length && u.value[Q].conditions.push({
|
|
12419
12419
|
field: "",
|
|
@@ -12423,14 +12423,14 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12423
12423
|
}, W = (Q, ae) => {
|
|
12424
12424
|
if (Q >= 0 && Q < u.value.length) {
|
|
12425
12425
|
const Fe = u.value[Q];
|
|
12426
|
-
Fe.conditions.length > 1 && ae >= 0 && ae < Fe.conditions.length ? Fe.conditions.splice(ae, 1) : Fe.conditions.length <= 1 &&
|
|
12426
|
+
Fe.conditions.length > 1 && ae >= 0 && ae < Fe.conditions.length ? Fe.conditions.splice(ae, 1) : Fe.conditions.length <= 1 && Ie.warning("每个卡片至少需要一个筛选条件");
|
|
12427
12427
|
}
|
|
12428
12428
|
}, d = (Q) => Q.map((ae) => {
|
|
12429
|
-
const Fe = ae.conditions.filter((
|
|
12429
|
+
const Fe = ae.conditions.filter((Oe) => Oe.field && Oe.field.trim() !== "").map((Oe) => {
|
|
12430
12430
|
let Ve = "";
|
|
12431
|
-
return
|
|
12432
|
-
field:
|
|
12433
|
-
operator:
|
|
12431
|
+
return Oe.value !== null && Oe.value !== void 0 && (Array.isArray(Oe.value) ? Ve = Oe.value.join("/") : Ve = String(Oe.value)), {
|
|
12432
|
+
field: Oe.field.trim(),
|
|
12433
|
+
operator: Oe.operator || "eq",
|
|
12434
12434
|
value: Ve
|
|
12435
12435
|
};
|
|
12436
12436
|
});
|
|
@@ -12445,11 +12445,11 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12445
12445
|
Ae.width && (k.value[Ae.value] = parseInt(Ae.width)), Ae.fixed ? B.value[Ae.value] = Ae.fixed : B.value[Ae.value] = "none";
|
|
12446
12446
|
});
|
|
12447
12447
|
const ae = Q.columns.map((Ae) => Ae.value), Fe = ae.map(
|
|
12448
|
-
(Ae) => n.fieldOptions.find((
|
|
12449
|
-
).filter(Boolean),
|
|
12448
|
+
(Ae) => n.fieldOptions.find((ra) => ra.value === Ae)
|
|
12449
|
+
).filter(Boolean), Oe = n.fieldOptions.filter(
|
|
12450
12450
|
(Ae) => !ae.includes(Ae.value)
|
|
12451
12451
|
);
|
|
12452
|
-
le.value = [...Fe, ...
|
|
12452
|
+
le.value = [...Fe, ...Oe], ne.value = oe.value.length === n.fieldOptions.length;
|
|
12453
12453
|
const Ve = Q.columns.filter((Ae) => Ae.show !== !1);
|
|
12454
12454
|
y("column-change", Ve);
|
|
12455
12455
|
}
|
|
@@ -12457,12 +12457,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12457
12457
|
r.value = !1, N.value = null, I.value = "", D.value = "none", q.value = "specific", ee.value = [], U.value = !0;
|
|
12458
12458
|
}, R = (Q) => {
|
|
12459
12459
|
const ae = le.value.map((Fe) => {
|
|
12460
|
-
const
|
|
12460
|
+
const Oe = k.value[Fe.value], Ve = B.value[Fe.value] || "none";
|
|
12461
12461
|
return {
|
|
12462
12462
|
value: Fe.value,
|
|
12463
12463
|
show: oe.value.includes(Fe.value),
|
|
12464
12464
|
// 是否显示
|
|
12465
|
-
width:
|
|
12465
|
+
width: Oe ? `${Oe}px` : "120px",
|
|
12466
12466
|
fixed: Ve
|
|
12467
12467
|
// 冻结状态
|
|
12468
12468
|
};
|
|
@@ -12499,13 +12499,13 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12499
12499
|
}
|
|
12500
12500
|
], c.value = "and", y("reset");
|
|
12501
12501
|
}, b = () => {
|
|
12502
|
-
if (
|
|
12502
|
+
if (w.value === "filter") {
|
|
12503
12503
|
const Q = d(u.value);
|
|
12504
12504
|
y("confirm", {
|
|
12505
12505
|
filterCards: Q,
|
|
12506
12506
|
type1: c.value
|
|
12507
12507
|
});
|
|
12508
|
-
} else
|
|
12508
|
+
} else w.value === "column" && ye();
|
|
12509
12509
|
z();
|
|
12510
12510
|
}, z = () => {
|
|
12511
12511
|
y("update:visible", !1);
|
|
@@ -12526,16 +12526,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12526
12526
|
});
|
|
12527
12527
|
const ae = Q.map((Ve) => Ve.value), Fe = ae.map(
|
|
12528
12528
|
(Ve) => n.fieldOptions.find((Ae) => Ae.value === Ve)
|
|
12529
|
-
).filter(Boolean),
|
|
12529
|
+
).filter(Boolean), Oe = n.fieldOptions.filter(
|
|
12530
12530
|
(Ve) => !ae.includes(Ve.value)
|
|
12531
12531
|
);
|
|
12532
|
-
le.value = [...Fe, ...
|
|
12532
|
+
le.value = [...Fe, ...Oe];
|
|
12533
12533
|
} else {
|
|
12534
12534
|
oe.value = [...Q];
|
|
12535
12535
|
const ae = Q.map(
|
|
12536
|
-
(
|
|
12536
|
+
(Oe) => n.fieldOptions.find((Ve) => Ve.value === Oe)
|
|
12537
12537
|
).filter(Boolean), Fe = n.fieldOptions.filter(
|
|
12538
|
-
(
|
|
12538
|
+
(Oe) => !Q.includes(Oe.value)
|
|
12539
12539
|
);
|
|
12540
12540
|
le.value = [...ae, ...Fe];
|
|
12541
12541
|
}
|
|
@@ -12547,7 +12547,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12547
12547
|
}, { immediate: !0 }), ze(() => n.fieldOptions, (Q) => {
|
|
12548
12548
|
le.value.length || (le.value = [...Q]);
|
|
12549
12549
|
}, { immediate: !0 });
|
|
12550
|
-
const
|
|
12550
|
+
const qe = (Q, ae) => {
|
|
12551
12551
|
if (ae)
|
|
12552
12552
|
oe.value.includes(Q) || oe.value.push(Q);
|
|
12553
12553
|
else {
|
|
@@ -12557,7 +12557,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12557
12557
|
ne.value = oe.value.length === n.fieldOptions.length;
|
|
12558
12558
|
}, ke = (Q) => {
|
|
12559
12559
|
Q ? oe.value = le.value.map((ae) => ae.value) : oe.value = [];
|
|
12560
|
-
},
|
|
12560
|
+
}, Be = (Q) => {
|
|
12561
12561
|
if (Q > 0) {
|
|
12562
12562
|
const ae = le.value[Q];
|
|
12563
12563
|
le.value[Q] = le.value[Q - 1], le.value[Q - 1] = ae, le.value = [...le.value];
|
|
@@ -12573,32 +12573,32 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12573
12573
|
ae.preventDefault(), ae.dataTransfer.dropEffect = "move", we.value = Q;
|
|
12574
12574
|
}, Se = () => {
|
|
12575
12575
|
_e.value = null, we.value = null;
|
|
12576
|
-
},
|
|
12576
|
+
}, We = (Q, ae) => {
|
|
12577
12577
|
ae.preventDefault();
|
|
12578
12578
|
const Fe = _e.value;
|
|
12579
12579
|
if (Fe === null || Fe === Q)
|
|
12580
12580
|
return;
|
|
12581
|
-
const
|
|
12582
|
-
|
|
12581
|
+
const Oe = [...le.value], Ve = Oe[Fe];
|
|
12582
|
+
Oe.splice(Fe, 1), Oe.splice(Q, 0, Ve), le.value = Oe, _e.value = null, we.value = null;
|
|
12583
12583
|
}, ye = () => {
|
|
12584
12584
|
const Q = le.value.filter((ae) => oe.value.includes(ae.value)).map((ae) => {
|
|
12585
|
-
const Fe = k.value[ae.value],
|
|
12585
|
+
const Fe = k.value[ae.value], Oe = B.value[ae.value] || "none";
|
|
12586
12586
|
return {
|
|
12587
12587
|
value: ae.value,
|
|
12588
12588
|
show: !0,
|
|
12589
12589
|
// 已通过filter筛选,都是显示的
|
|
12590
12590
|
width: Fe ? `${Fe}px` : "120px",
|
|
12591
12591
|
// 没有设置宽度时使用默认值120px
|
|
12592
|
-
fixed:
|
|
12592
|
+
fixed: Oe
|
|
12593
12593
|
// 冻结状态
|
|
12594
12594
|
};
|
|
12595
12595
|
});
|
|
12596
12596
|
y("column-change", Q);
|
|
12597
12597
|
};
|
|
12598
12598
|
return (Q, ae) => {
|
|
12599
|
-
const Fe = M("t-radio-button"),
|
|
12599
|
+
const Fe = M("t-radio-button"), Oe = M("t-radio-group"), Ve = M("t-icon"), Ae = M("t-button"), ra = M("t-tab-panel"), re = M("t-checkbox"), ia = M("t-option"), Me = M("t-select"), sa = M("t-input-number"), Le = M("t-tabs"), je = M("t-tooltip"), da = M("t-dialog");
|
|
12600
12600
|
return l(), o(fe, null, [
|
|
12601
|
-
s(
|
|
12601
|
+
s(da, {
|
|
12602
12602
|
header: "方案设置",
|
|
12603
12603
|
placement: "center",
|
|
12604
12604
|
visible: a.visible,
|
|
@@ -12615,12 +12615,12 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12615
12615
|
e("div", Ru, [
|
|
12616
12616
|
e("div", Eu, [
|
|
12617
12617
|
s(Le, {
|
|
12618
|
-
modelValue:
|
|
12619
|
-
"onUpdate:modelValue": ae[2] || (ae[2] = (p) =>
|
|
12618
|
+
modelValue: w.value,
|
|
12619
|
+
"onUpdate:modelValue": ae[2] || (ae[2] = (p) => w.value = p),
|
|
12620
12620
|
size: "medium"
|
|
12621
12621
|
}, {
|
|
12622
12622
|
default: i(() => [
|
|
12623
|
-
s(
|
|
12623
|
+
s(ra, {
|
|
12624
12624
|
value: "filter",
|
|
12625
12625
|
label: "筛选"
|
|
12626
12626
|
}, {
|
|
@@ -12628,7 +12628,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12628
12628
|
e("div", Pu, [
|
|
12629
12629
|
u.value.length > 1 ? (l(), o("div", Iu, [
|
|
12630
12630
|
e("div", Ou, [
|
|
12631
|
-
s(
|
|
12631
|
+
s(Oe, {
|
|
12632
12632
|
size: a.size,
|
|
12633
12633
|
class: "connector-selector",
|
|
12634
12634
|
modelValue: c.value,
|
|
@@ -12660,7 +12660,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12660
12660
|
e("div", Nu, [
|
|
12661
12661
|
e("div", Bu, [
|
|
12662
12662
|
e("span", qu, "筛选卡片 " + V(v + 1), 1),
|
|
12663
|
-
s(
|
|
12663
|
+
s(Oe, {
|
|
12664
12664
|
size: a.size,
|
|
12665
12665
|
modelValue: p.connector,
|
|
12666
12666
|
"onUpdate:modelValue": (ie) => p.connector = ie,
|
|
@@ -12751,7 +12751,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12751
12751
|
]),
|
|
12752
12752
|
_: 1
|
|
12753
12753
|
}),
|
|
12754
|
-
s(
|
|
12754
|
+
s(ra, {
|
|
12755
12755
|
value: "column",
|
|
12756
12756
|
label: "列配置"
|
|
12757
12757
|
}, {
|
|
@@ -12779,7 +12779,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12779
12779
|
onDragstart: (ie) => T(v, ie),
|
|
12780
12780
|
onDragover: (ie) => h(v, ie),
|
|
12781
12781
|
onDragend: Se,
|
|
12782
|
-
onDrop: (ie) =>
|
|
12782
|
+
onDrop: (ie) => We(v, ie)
|
|
12783
12783
|
}, [
|
|
12784
12784
|
e("div", Xu, [
|
|
12785
12785
|
s(Ve, {
|
|
@@ -12791,7 +12791,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12791
12791
|
e("div", Qu, [
|
|
12792
12792
|
s(re, {
|
|
12793
12793
|
checked: oe.value.includes(p.value),
|
|
12794
|
-
onChange: (ie) =>
|
|
12794
|
+
onChange: (ie) => qe(p.value, ie)
|
|
12795
12795
|
}, null, 8, ["checked", "onChange"])
|
|
12796
12796
|
]),
|
|
12797
12797
|
e("div", Zu, [
|
|
@@ -12802,15 +12802,15 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12802
12802
|
style: { width: "120px" }
|
|
12803
12803
|
}, {
|
|
12804
12804
|
default: i(() => [
|
|
12805
|
-
s(
|
|
12805
|
+
s(ia, {
|
|
12806
12806
|
value: "none",
|
|
12807
12807
|
label: "不冻结"
|
|
12808
12808
|
}),
|
|
12809
|
-
s(
|
|
12809
|
+
s(ia, {
|
|
12810
12810
|
value: "left",
|
|
12811
12811
|
label: "左侧冻结"
|
|
12812
12812
|
}),
|
|
12813
|
-
s(
|
|
12813
|
+
s(ia, {
|
|
12814
12814
|
value: "right",
|
|
12815
12815
|
label: "右侧冻结"
|
|
12816
12816
|
})
|
|
@@ -12819,7 +12819,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12819
12819
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
12820
12820
|
]),
|
|
12821
12821
|
e("div", ec, [
|
|
12822
|
-
s(
|
|
12822
|
+
s(sa, {
|
|
12823
12823
|
modelValue: k.value[p.value],
|
|
12824
12824
|
"onUpdate:modelValue": (ie) => k.value[p.value] = ie,
|
|
12825
12825
|
min: 50,
|
|
@@ -12835,7 +12835,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12835
12835
|
theme: "default",
|
|
12836
12836
|
variant: "text",
|
|
12837
12837
|
size: "small",
|
|
12838
|
-
onClick: (ie) =>
|
|
12838
|
+
onClick: (ie) => Be(v),
|
|
12839
12839
|
disabled: v === 0
|
|
12840
12840
|
}, {
|
|
12841
12841
|
icon: i(() => [
|
|
@@ -12889,7 +12889,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12889
12889
|
e("span", oc, V(p.name), 1),
|
|
12890
12890
|
e("div", {
|
|
12891
12891
|
class: "plan-actions",
|
|
12892
|
-
onClick: ae[3] || (ae[3] =
|
|
12892
|
+
onClick: ae[3] || (ae[3] = Qe(() => {
|
|
12893
12893
|
}, ["stop"]))
|
|
12894
12894
|
}, [
|
|
12895
12895
|
s(je, {
|
|
@@ -12901,7 +12901,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12901
12901
|
theme: "default",
|
|
12902
12902
|
variant: "text",
|
|
12903
12903
|
size: "small",
|
|
12904
|
-
onClick:
|
|
12904
|
+
onClick: Qe((ie) => O(p), ["stop"]),
|
|
12905
12905
|
disabled: !p.value || p.value === "empty"
|
|
12906
12906
|
}, {
|
|
12907
12907
|
icon: i(() => [
|
|
@@ -12930,7 +12930,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
12930
12930
|
icon: i(() => [
|
|
12931
12931
|
s(Ve, {
|
|
12932
12932
|
name: p.isDefault ? "check-circle-filled" : "check-circle",
|
|
12933
|
-
style:
|
|
12933
|
+
style: Ke({ color: p.isDefault ? "#0052d9" : "#bbb" })
|
|
12934
12934
|
}, null, 8, ["name", "style"])
|
|
12935
12935
|
]),
|
|
12936
12936
|
_: 2
|
|
@@ -13134,7 +13134,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13134
13134
|
}), ze(u, (ge) => {
|
|
13135
13135
|
y("update:visible", ge);
|
|
13136
13136
|
});
|
|
13137
|
-
const
|
|
13137
|
+
const w = (ge, H) => {
|
|
13138
13138
|
_.value[ge].backgroundColor = H, _.value[ge].showColorPicker = !1;
|
|
13139
13139
|
}, r = () => {
|
|
13140
13140
|
_.value.push({
|
|
@@ -13226,8 +13226,8 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13226
13226
|
(l(), o(fe, null, be(c, (b) => e("div", {
|
|
13227
13227
|
key: b,
|
|
13228
13228
|
class: xe(["preset-color-item", { active: L.backgroundColor === b }]),
|
|
13229
|
-
style:
|
|
13230
|
-
onClick: (z) =>
|
|
13229
|
+
style: Ke({ backgroundColor: b }),
|
|
13230
|
+
onClick: (z) => w(x, b)
|
|
13231
13231
|
}, null, 14, _c)), 64))
|
|
13232
13232
|
]),
|
|
13233
13233
|
e("div", kc, [
|
|
@@ -13247,7 +13247,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13247
13247
|
e("div", gc, [
|
|
13248
13248
|
e("div", {
|
|
13249
13249
|
class: "color-block",
|
|
13250
|
-
style:
|
|
13250
|
+
style: Ke({ backgroundColor: L.backgroundColor })
|
|
13251
13251
|
}, [
|
|
13252
13252
|
L.isBold ? (l(), o("span", hc, "B")) : Y("", !0)
|
|
13253
13253
|
], 4)
|
|
@@ -13452,16 +13452,16 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13452
13452
|
return;
|
|
13453
13453
|
}
|
|
13454
13454
|
u.value = Array.from({ length: n.filterCount }, () => c());
|
|
13455
|
-
}, U = F("保存筛选方案"), _ = F(!1),
|
|
13456
|
-
ze(() => n.topOp, (k) =>
|
|
13455
|
+
}, U = F("保存筛选方案"), _ = F(!1), w = F(n.topOp), r = F(JSON.parse(JSON.stringify(n.filterCards)));
|
|
13456
|
+
ze(() => n.topOp, (k) => w.value = k), ze(() => n.filterCards, (k) => r.value = JSON.parse(JSON.stringify(k)));
|
|
13457
13457
|
const I = F(null), D = F(""), q = ve(() => n.planFilterOptions && n.planFilterOptions.length > 0 ? n.planFilterOptions : [{ content: "暂无方案", value: "empty", disabled: !0 }]), ee = (k) => {
|
|
13458
13458
|
const B = n.planFilterOptions.find((le) => le.value === k);
|
|
13459
13459
|
B && N(B);
|
|
13460
13460
|
}, N = (k) => {
|
|
13461
13461
|
if (!k.precepts || k.precepts.length === 0) return;
|
|
13462
|
-
if (I.value = k, D.value = k.value, r.value = JSON.parse(JSON.stringify(k.precepts)),
|
|
13462
|
+
if (I.value = k, D.value = k.value, r.value = JSON.parse(JSON.stringify(k.precepts)), w.value = k.sqlConnectType, n.filterCount > 0) {
|
|
13463
13463
|
const _e = k.precepts[0];
|
|
13464
|
-
_e && _e.conditions && (u.value = Array.from({ length: n.filterCount }, (we,
|
|
13464
|
+
_e && _e.conditions && (u.value = Array.from({ length: n.filterCount }, (we, qe) => _e.conditions[qe] ? JSON.parse(JSON.stringify(_e.conditions[qe])) : c()));
|
|
13465
13465
|
}
|
|
13466
13466
|
const B = W(k.precepts), le = d(B, k.sqlConnectType);
|
|
13467
13467
|
if (y("confirm", le), k.columns && k.columns.length > 0) {
|
|
@@ -13476,7 +13476,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13476
13476
|
return;
|
|
13477
13477
|
}
|
|
13478
13478
|
const k = W([
|
|
13479
|
-
{ id: 1, connector:
|
|
13479
|
+
{ id: 1, connector: w.value, conditions: u.value }
|
|
13480
13480
|
]), B = d(k, "and");
|
|
13481
13481
|
y("search", B);
|
|
13482
13482
|
}, H = () => {
|
|
@@ -13531,7 +13531,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13531
13531
|
{ field: "", operator: "eq", value: "" }
|
|
13532
13532
|
]
|
|
13533
13533
|
}
|
|
13534
|
-
],
|
|
13534
|
+
], w.value = "and", y("reset"), ge();
|
|
13535
13535
|
}, R = () => {
|
|
13536
13536
|
const k = ue.value.name.trim();
|
|
13537
13537
|
if (I.value) {
|
|
@@ -13539,7 +13539,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13539
13539
|
y("update-plan", {
|
|
13540
13540
|
name: k,
|
|
13541
13541
|
precepts: B,
|
|
13542
|
-
topOp:
|
|
13542
|
+
topOp: w.value,
|
|
13543
13543
|
plan: I.value,
|
|
13544
13544
|
columns: n.visibleColumns || []
|
|
13545
13545
|
// 包含当前列配置
|
|
@@ -13549,7 +13549,7 @@ const Td = { class: "cd-relation-form" }, Nd = { class: "input-wrapper" }, Bd =
|
|
|
13549
13549
|
y("save-plan", {
|
|
13550
13550
|
name: k,
|
|
13551
13551
|
precepts: B,
|
|
13552
|
-
topOp:
|
|
13552
|
+
topOp: w.value,
|
|
13553
13553
|
plan: I.value,
|
|
13554
13554
|
columns: n.visibleColumns || []
|
|
13555
13555
|
// 包含当前列配置
|
|
@@ -13592,7 +13592,7 @@ ${k.map((B) => {
|
|
|
13592
13592
|
notContains: "不包含"
|
|
13593
13593
|
})[k] || k;
|
|
13594
13594
|
return (k, B) => {
|
|
13595
|
-
const le = M("t-radio-button"), _e = M("t-radio-group"), we = M("t-icon"),
|
|
13595
|
+
const le = M("t-radio-button"), _e = M("t-radio-group"), we = M("t-icon"), qe = M("t-button"), ke = M("t-badge"), Be = M("t-tooltip"), ce = M("t-dropdown"), T = M("t-input"), h = M("t-form-item"), Se = M("t-form"), We = M("t-dialog");
|
|
13596
13596
|
return l(), o("div", Sc, [
|
|
13597
13597
|
a.filterCount > 0 ? (l(), o("div", Mc, [
|
|
13598
13598
|
(l(!0), o(fe, null, be(u.value, (ye, Q) => (l(), j(Ul, {
|
|
@@ -13626,7 +13626,7 @@ ${k.map((B) => {
|
|
|
13626
13626
|
]),
|
|
13627
13627
|
_: 1
|
|
13628
13628
|
}, 8, ["modelValue", "size"]),
|
|
13629
|
-
s(
|
|
13629
|
+
s(qe, {
|
|
13630
13630
|
theme: "default",
|
|
13631
13631
|
variant: "outline",
|
|
13632
13632
|
size: a.size,
|
|
@@ -13640,7 +13640,7 @@ ${k.map((B) => {
|
|
|
13640
13640
|
}, 8, ["size"])
|
|
13641
13641
|
])) : Y("", !0),
|
|
13642
13642
|
e("div", Fc, [
|
|
13643
|
-
a.filterCount > 0 ? (l(), j(
|
|
13643
|
+
a.filterCount > 0 ? (l(), j(qe, {
|
|
13644
13644
|
key: 0,
|
|
13645
13645
|
theme: "primary",
|
|
13646
13646
|
size: a.size,
|
|
@@ -13652,7 +13652,7 @@ ${k.map((B) => {
|
|
|
13652
13652
|
]),
|
|
13653
13653
|
_: 1
|
|
13654
13654
|
}, 8, ["size"])) : Y("", !0),
|
|
13655
|
-
a.filterCount > 0 ? (l(), j(
|
|
13655
|
+
a.filterCount > 0 ? (l(), j(Be, {
|
|
13656
13656
|
key: 1,
|
|
13657
13657
|
content: oe.value,
|
|
13658
13658
|
placement: "top"
|
|
@@ -13663,7 +13663,7 @@ ${k.map((B) => {
|
|
|
13663
13663
|
"max-count": 99
|
|
13664
13664
|
}, {
|
|
13665
13665
|
default: i(() => [
|
|
13666
|
-
s(
|
|
13666
|
+
s(qe, {
|
|
13667
13667
|
theme: "primary",
|
|
13668
13668
|
size: a.size,
|
|
13669
13669
|
onClick: b
|
|
@@ -13686,7 +13686,7 @@ ${k.map((B) => {
|
|
|
13686
13686
|
"overlay-class-name": "filter-dropdown"
|
|
13687
13687
|
}, {
|
|
13688
13688
|
default: i(() => [
|
|
13689
|
-
s(
|
|
13689
|
+
s(qe, {
|
|
13690
13690
|
theme: "primary",
|
|
13691
13691
|
size: a.size,
|
|
13692
13692
|
class: "margin-reset"
|
|
@@ -13710,7 +13710,7 @@ ${k.map((B) => {
|
|
|
13710
13710
|
"select-options": a.selectOptions,
|
|
13711
13711
|
"plan-filter-options": a.planFilterOptions,
|
|
13712
13712
|
"filter-cards": r.value,
|
|
13713
|
-
"top-op":
|
|
13713
|
+
"top-op": w.value,
|
|
13714
13714
|
size: a.size,
|
|
13715
13715
|
"person-tabs": a.personTabs,
|
|
13716
13716
|
"person-organizations": a.personOrganizations,
|
|
@@ -13727,7 +13727,7 @@ ${k.map((B) => {
|
|
|
13727
13727
|
onDeptClick: B[8] || (B[8] = (ye) => y("dept-click", ye)),
|
|
13728
13728
|
onColumnChange: B[9] || (B[9] = (ye) => y("column-change", ye))
|
|
13729
13729
|
}, null, 8, ["visible", "field-options", "select-options", "plan-filter-options", "filter-cards", "top-op", "size", "person-tabs", "person-organizations", "visible-columns"]),
|
|
13730
|
-
s(
|
|
13730
|
+
s(We, {
|
|
13731
13731
|
header: U.value,
|
|
13732
13732
|
visible: de.value,
|
|
13733
13733
|
width: "600px",
|
|
@@ -13759,7 +13759,7 @@ ${k.map((B) => {
|
|
|
13759
13759
|
])
|
|
13760
13760
|
]),
|
|
13761
13761
|
footer: i(() => [
|
|
13762
|
-
s(
|
|
13762
|
+
s(qe, {
|
|
13763
13763
|
theme: "default",
|
|
13764
13764
|
onClick: S
|
|
13765
13765
|
}, {
|
|
@@ -13768,7 +13768,7 @@ ${k.map((B) => {
|
|
|
13768
13768
|
])]),
|
|
13769
13769
|
_: 1
|
|
13770
13770
|
}),
|
|
13771
|
-
s(
|
|
13771
|
+
s(qe, {
|
|
13772
13772
|
theme: "primary",
|
|
13773
13773
|
onClick: R
|
|
13774
13774
|
}, {
|
|
@@ -13828,7 +13828,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13828
13828
|
}, Vf = {
|
|
13829
13829
|
key: 0,
|
|
13830
13830
|
class: "cd-collaborator-item-permission-text"
|
|
13831
|
-
}, Sf = { class: "cd-qrcode-content" }, Mf = ["src"], zf = { class: "cd-qrcode-url" }, Ff = { class: "cd-encrypt-content" }, Df = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */
|
|
13831
|
+
}, Sf = { class: "cd-qrcode-content" }, Mf = ["src"], zf = { class: "cd-qrcode-url" }, Ff = { class: "cd-encrypt-content" }, Df = { class: "cd-encrypt-field" }, Af = { class: "cd-encrypt-note" }, Uf = { class: "cd-encrypt-actions" }, Rf = /* @__PURE__ */ Je({
|
|
13832
13832
|
name: "CdShareDialog",
|
|
13833
13833
|
__name: "ShareDialog",
|
|
13834
13834
|
props: {
|
|
@@ -13848,7 +13848,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13848
13848
|
emits: ["update:visible", "confirm", "search", "load-users", "request-permission", "permission-settings-change", "manage-collaborators", "remove-collaborator", "collaborator-permission-change"],
|
|
13849
13849
|
setup(a, { emit: te }) {
|
|
13850
13850
|
var n;
|
|
13851
|
-
const y = a, u = te, c = F(y.visible), m = F(y.shareUrl), U = F([]), _ = F(!1),
|
|
13851
|
+
const y = a, u = te, c = F(y.visible), m = F(y.shareUrl), U = F([]), _ = F(!1), w = F(1), r = F("read"), I = F(!0), D = F(!1), q = F(""), ee = F(""), N = F(!1), J = F(!1), ge = F(!1), H = F(!1), E = F(""), W = F({
|
|
13852
13852
|
allowExternalShare: ((n = y.defaultPermissionSettings) == null ? void 0 : n.allowExternalShare) ?? !1,
|
|
13853
13853
|
collaboratorManagement: "org-only",
|
|
13854
13854
|
copyPermission: "edit",
|
|
@@ -13856,15 +13856,15 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13856
13856
|
commentPermission: "all",
|
|
13857
13857
|
viewerAvatarsPermission: "all"
|
|
13858
13858
|
}), d = ve(() => {
|
|
13859
|
-
const T = y.organizations || [], h = T.filter((ye) => ye.id !== "internet"), Se = T.find((ye) => ye.id === "internet"),
|
|
13859
|
+
const T = y.organizations || [], h = T.filter((ye) => ye.id !== "internet"), Se = T.find((ye) => ye.id === "internet"), We = [];
|
|
13860
13860
|
return h.forEach((ye) => {
|
|
13861
|
-
|
|
13862
|
-
}), Se &&
|
|
13861
|
+
We.push({ label: ye.name, value: ye.id });
|
|
13862
|
+
}), Se && We.push({
|
|
13863
13863
|
label: "互联网获得链接的人",
|
|
13864
13864
|
value: Se.id
|
|
13865
13865
|
}), [{
|
|
13866
13866
|
group: "分享范围",
|
|
13867
|
-
children:
|
|
13867
|
+
children: We
|
|
13868
13868
|
}];
|
|
13869
13869
|
}), S = [
|
|
13870
13870
|
{ label: "可阅读", value: "read" },
|
|
@@ -13892,19 +13892,19 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13892
13892
|
});
|
|
13893
13893
|
const x = () => {
|
|
13894
13894
|
var T;
|
|
13895
|
-
U.value = [],
|
|
13895
|
+
U.value = [], w.value = ((T = y.organizations[0]) == null ? void 0 : T.id) || 1, ee.value = "", r.value = "read", I.value = !0, D.value = !1, q.value = "", _.value = !1;
|
|
13896
13896
|
}, b = () => {
|
|
13897
13897
|
_.value = !1;
|
|
13898
13898
|
}, z = () => {
|
|
13899
13899
|
b();
|
|
13900
13900
|
}, P = () => {
|
|
13901
13901
|
if (O.value === "read") {
|
|
13902
|
-
|
|
13902
|
+
Ie.warning("您当前为只读权限,无法分享");
|
|
13903
13903
|
return;
|
|
13904
13904
|
}
|
|
13905
13905
|
const T = {
|
|
13906
13906
|
sharerIds: U.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}`),
|
|
13907
|
-
orgId:
|
|
13907
|
+
orgId: w.value,
|
|
13908
13908
|
permission: r.value,
|
|
13909
13909
|
sendNotification: I.value,
|
|
13910
13910
|
password: D.value ? q.value : void 0,
|
|
@@ -13913,9 +13913,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13913
13913
|
console.log("分享参数:", T), u("confirm", T), c.value = !1;
|
|
13914
13914
|
}, G = async () => {
|
|
13915
13915
|
try {
|
|
13916
|
-
await navigator.clipboard.writeText(m.value || ""),
|
|
13916
|
+
await navigator.clipboard.writeText(m.value || ""), Ie.success("链接已复制");
|
|
13917
13917
|
} catch {
|
|
13918
|
-
|
|
13918
|
+
Ie.error("复制失败");
|
|
13919
13919
|
}
|
|
13920
13920
|
}, X = () => {
|
|
13921
13921
|
y.helpUrl && window.open(y.helpUrl, "_blank");
|
|
@@ -13924,34 +13924,34 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13924
13924
|
}, ne = (T) => {
|
|
13925
13925
|
u("load-users", T);
|
|
13926
13926
|
}, k = () => {
|
|
13927
|
-
u("request-permission", "edit"),
|
|
13927
|
+
u("request-permission", "edit"), Ie.info("已发送编辑权限申请");
|
|
13928
13928
|
}, B = () => {
|
|
13929
13929
|
if (O.value !== "manage") {
|
|
13930
|
-
|
|
13930
|
+
Ie.warning("只有管理员才能修改权限设置");
|
|
13931
13931
|
return;
|
|
13932
13932
|
}
|
|
13933
|
-
u("permission-settings-change", W.value),
|
|
13933
|
+
u("permission-settings-change", W.value), Ie.success("权限设置已保存"), N.value = !1;
|
|
13934
13934
|
}, le = (T) => {
|
|
13935
13935
|
console.log("点击协作者:", T);
|
|
13936
13936
|
}, _e = (T) => {
|
|
13937
13937
|
if (O.value === "read") {
|
|
13938
|
-
|
|
13938
|
+
Ie.warning("只读权限无法添加协作者");
|
|
13939
13939
|
return;
|
|
13940
13940
|
}
|
|
13941
13941
|
console.log("选择人员:", T), u("manage-collaborators", T);
|
|
13942
13942
|
}, we = (T) => {
|
|
13943
13943
|
if (O.value !== "manage") {
|
|
13944
|
-
|
|
13944
|
+
Ie.warning("只有管理员才能删除协作者");
|
|
13945
13945
|
return;
|
|
13946
13946
|
}
|
|
13947
13947
|
u("remove-collaborator", T);
|
|
13948
|
-
},
|
|
13948
|
+
}, qe = (T, h) => {
|
|
13949
13949
|
if (O.value === "read") {
|
|
13950
|
-
|
|
13950
|
+
Ie.warning("只读权限无法修改协作者权限");
|
|
13951
13951
|
return;
|
|
13952
13952
|
}
|
|
13953
13953
|
if (O.value === "edit" && h === "manage") {
|
|
13954
|
-
|
|
13954
|
+
Ie.warning("编辑权限无法将协作者设置为管理员");
|
|
13955
13955
|
return;
|
|
13956
13956
|
}
|
|
13957
13957
|
u("collaborator-permission-change", { id: T, permission: h });
|
|
@@ -13961,36 +13961,36 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
13961
13961
|
for (let Se = 0; Se < 6; Se++)
|
|
13962
13962
|
h += T.charAt(Math.floor(Math.random() * T.length));
|
|
13963
13963
|
E.value = h;
|
|
13964
|
-
},
|
|
13964
|
+
}, Be = async () => {
|
|
13965
13965
|
if (O.value === "read") {
|
|
13966
|
-
|
|
13966
|
+
Ie.warning("只读权限无法设置链接密码");
|
|
13967
13967
|
return;
|
|
13968
13968
|
}
|
|
13969
13969
|
if (!E.value || E.value.length !== 6) {
|
|
13970
|
-
|
|
13970
|
+
Ie.warning("请先生成或输入6位密码");
|
|
13971
13971
|
return;
|
|
13972
13972
|
}
|
|
13973
13973
|
const T = m.value || "", h = T.includes("?") ? "&" : "?", Se = `链接:${`${T}${h}pwd=${E.value}`} 密码:${E.value}`;
|
|
13974
13974
|
try {
|
|
13975
|
-
await navigator.clipboard.writeText(Se),
|
|
13975
|
+
await navigator.clipboard.writeText(Se), Ie.success("链接和密码已复制");
|
|
13976
13976
|
} catch {
|
|
13977
|
-
|
|
13977
|
+
Ie.error("复制失败");
|
|
13978
13978
|
}
|
|
13979
13979
|
}, ce = () => {
|
|
13980
13980
|
if (O.value === "read") {
|
|
13981
|
-
|
|
13981
|
+
Ie.warning("只读权限无法设置链接密码");
|
|
13982
13982
|
return;
|
|
13983
13983
|
}
|
|
13984
13984
|
if (!E.value || E.value.length !== 6) {
|
|
13985
|
-
|
|
13985
|
+
Ie.warning("请输入6位密码");
|
|
13986
13986
|
return;
|
|
13987
13987
|
}
|
|
13988
|
-
|
|
13988
|
+
Ie.success("密码设置成功"), H.value = !1, console.log("链接密码:", E.value);
|
|
13989
13989
|
};
|
|
13990
13990
|
return ze(H, (T) => {
|
|
13991
13991
|
T && !E.value && ke();
|
|
13992
13992
|
}), (T, h) => {
|
|
13993
|
-
const Se = M("t-icon"),
|
|
13993
|
+
const Se = M("t-icon"), We = M("t-tooltip"), ye = M("t-button"), Q = M("t-avatar"), ae = M("t-select"), Fe = M("t-checkbox"), Oe = M("t-input"), Ve = M("t-textarea"), Ae = M("t-dialog"), ra = M("t-switch"), re = M("t-radio"), ia = M("t-radio-group");
|
|
13994
13994
|
return l(), o(fe, null, [
|
|
13995
13995
|
s(Ae, {
|
|
13996
13996
|
visible: c.value,
|
|
@@ -14013,7 +14013,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14013
14013
|
onClick: b
|
|
14014
14014
|
})) : Y("", !0),
|
|
14015
14015
|
A(" " + V(a.title) + " ", 1),
|
|
14016
|
-
!_.value && a.helpUrl ? (l(), j(
|
|
14016
|
+
!_.value && a.helpUrl ? (l(), j(We, {
|
|
14017
14017
|
key: 1,
|
|
14018
14018
|
content: "查看详情"
|
|
14019
14019
|
}, {
|
|
@@ -14067,14 +14067,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14067
14067
|
])
|
|
14068
14068
|
]),
|
|
14069
14069
|
default: i(() => {
|
|
14070
|
-
var Me,
|
|
14070
|
+
var Me, sa;
|
|
14071
14071
|
return [
|
|
14072
14072
|
_.value ? (l(), o("div", Qc, [
|
|
14073
14073
|
e("div", Zc, [
|
|
14074
14074
|
h[36] || (h[36] = e("div", { class: "cd-share-label" }, "邀请协作者", -1)),
|
|
14075
14075
|
e("div", ef, [
|
|
14076
14076
|
e("div", af, [
|
|
14077
|
-
(
|
|
14077
|
+
(sa = a.owner) != null && sa.avatar ? (l(), j(Q, {
|
|
14078
14078
|
key: 0,
|
|
14079
14079
|
image: a.owner.avatar,
|
|
14080
14080
|
size: "medium"
|
|
@@ -14146,7 +14146,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14146
14146
|
])]),
|
|
14147
14147
|
_: 1
|
|
14148
14148
|
}, 8, ["modelValue"]),
|
|
14149
|
-
D.value ? (l(), j(
|
|
14149
|
+
D.value ? (l(), j(Oe, {
|
|
14150
14150
|
key: 0,
|
|
14151
14151
|
modelValue: q.value,
|
|
14152
14152
|
"onUpdate:modelValue": h[11] || (h[11] = (Le) => q.value = Le),
|
|
@@ -14260,8 +14260,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14260
14260
|
}),
|
|
14261
14261
|
e("div", Jc, [
|
|
14262
14262
|
s(ae, {
|
|
14263
|
-
modelValue:
|
|
14264
|
-
"onUpdate:modelValue": h[3] || (h[3] = (Le) =>
|
|
14263
|
+
modelValue: w.value,
|
|
14264
|
+
"onUpdate:modelValue": h[3] || (h[3] = (Le) => w.value = Le),
|
|
14265
14265
|
options: d.value,
|
|
14266
14266
|
placeholder: "选择组织",
|
|
14267
14267
|
disabled: O.value === "read",
|
|
@@ -14297,7 +14297,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14297
14297
|
]),
|
|
14298
14298
|
e("div", Gc, [
|
|
14299
14299
|
fa(T.$slots, "share-channels", {}, () => [
|
|
14300
|
-
s(
|
|
14300
|
+
s(We, { content: "二维码" }, {
|
|
14301
14301
|
default: i(() => [
|
|
14302
14302
|
e("div", {
|
|
14303
14303
|
class: "cd-share-icon-btn",
|
|
@@ -14308,7 +14308,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14308
14308
|
]),
|
|
14309
14309
|
_: 1
|
|
14310
14310
|
}),
|
|
14311
|
-
s(
|
|
14311
|
+
s(We, { content: "邮件" }, {
|
|
14312
14312
|
default: i(() => [
|
|
14313
14313
|
e("div", Xc, [
|
|
14314
14314
|
s(Se, { name: "mail" })
|
|
@@ -14316,7 +14316,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14316
14316
|
]),
|
|
14317
14317
|
_: 1
|
|
14318
14318
|
}),
|
|
14319
|
-
s(
|
|
14319
|
+
s(We, {
|
|
14320
14320
|
content: O.value === "read" ? "只读权限无法设置密码" : "加密连接"
|
|
14321
14321
|
}, {
|
|
14322
14322
|
default: i(() => [
|
|
@@ -14353,7 +14353,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14353
14353
|
h[42] || (h[42] = e("div", { class: "cd-permission-section-title" }, "对外分享", -1)),
|
|
14354
14354
|
e("div", df, [
|
|
14355
14355
|
h[41] || (h[41] = e("div", { class: "cd-permission-item-label" }, "允许内容被分享到组织外", -1)),
|
|
14356
|
-
s(
|
|
14356
|
+
s(ra, {
|
|
14357
14357
|
modelValue: W.value.allowExternalShare,
|
|
14358
14358
|
"onUpdate:modelValue": h[14] || (h[14] = (Me) => W.value.allowExternalShare = Me),
|
|
14359
14359
|
disabled: O.value !== "manage"
|
|
@@ -14363,7 +14363,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14363
14363
|
]),
|
|
14364
14364
|
e("div", uf, [
|
|
14365
14365
|
h[46] || (h[46] = e("div", { class: "cd-permission-section-title" }, "谁可以查看、添加、移除协作者", -1)),
|
|
14366
|
-
s(
|
|
14366
|
+
s(ia, {
|
|
14367
14367
|
modelValue: W.value.collaboratorManagement,
|
|
14368
14368
|
"onUpdate:modelValue": h[15] || (h[15] = (Me) => W.value.collaboratorManagement = Me),
|
|
14369
14369
|
disabled: O.value !== "manage"
|
|
@@ -14466,7 +14466,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14466
14466
|
class: "cd-collaborator-list-dialog"
|
|
14467
14467
|
}, {
|
|
14468
14468
|
default: i(() => {
|
|
14469
|
-
var Me,
|
|
14469
|
+
var Me, sa, Le;
|
|
14470
14470
|
return [
|
|
14471
14471
|
e("div", bf, [
|
|
14472
14472
|
e("div", yf, [
|
|
@@ -14480,19 +14480,19 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14480
14480
|
size: "small"
|
|
14481
14481
|
}, {
|
|
14482
14482
|
default: i(() => {
|
|
14483
|
-
var je,
|
|
14483
|
+
var je, da;
|
|
14484
14484
|
return [
|
|
14485
|
-
A(V(L(((je = a.owner) == null ? void 0 : je.displayName) || ((
|
|
14485
|
+
A(V(L(((je = a.owner) == null ? void 0 : je.displayName) || ((da = a.owner) == null ? void 0 : da.name))), 1)
|
|
14486
14486
|
];
|
|
14487
14487
|
}),
|
|
14488
14488
|
_: 1
|
|
14489
14489
|
})),
|
|
14490
|
-
e("span", kf, V(((
|
|
14490
|
+
e("span", kf, V(((sa = a.owner) == null ? void 0 : sa.displayName) || ((Le = a.owner) == null ? void 0 : Le.name) || "所有者"), 1)
|
|
14491
14491
|
]),
|
|
14492
14492
|
h[55] || (h[55] = e("div", { class: "cd-collaborator-item-role" }, "所有者", -1))
|
|
14493
14493
|
]),
|
|
14494
14494
|
(l(!0), o(fe, null, be(a.collaborators, (je) => {
|
|
14495
|
-
var
|
|
14495
|
+
var da;
|
|
14496
14496
|
return l(), o("div", {
|
|
14497
14497
|
key: je.id,
|
|
14498
14498
|
class: "cd-collaborator-list-item"
|
|
@@ -14514,13 +14514,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14514
14514
|
e("span", wf, V(je.displayName || je.name), 1)
|
|
14515
14515
|
]),
|
|
14516
14516
|
e("div", xf, [
|
|
14517
|
-
O.value === "read" ? (l(), o("div", $f, V(((
|
|
14517
|
+
O.value === "read" ? (l(), o("div", $f, V(((da = S.find((p) => p.value === je.permission)) == null ? void 0 : da.label) || "可阅读"), 1)) : O.value === "edit" ? (l(), o(fe, { key: 1 }, [
|
|
14518
14518
|
je.permission === "manage" ? (l(), o("div", Vf, " 可管理 ")) : (l(), j(ae, {
|
|
14519
14519
|
key: 1,
|
|
14520
14520
|
value: je.permission,
|
|
14521
14521
|
options: g.value,
|
|
14522
14522
|
size: "small",
|
|
14523
|
-
onChange: (p) =>
|
|
14523
|
+
onChange: (p) => qe(je.id, p),
|
|
14524
14524
|
style: { width: "100px" }
|
|
14525
14525
|
}, null, 8, ["value", "options", "onChange"]))
|
|
14526
14526
|
], 64)) : (l(), o(fe, { key: 2 }, [
|
|
@@ -14528,7 +14528,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14528
14528
|
value: je.permission,
|
|
14529
14529
|
options: g.value,
|
|
14530
14530
|
size: "small",
|
|
14531
|
-
onChange: (p) =>
|
|
14531
|
+
onChange: (p) => qe(je.id, p),
|
|
14532
14532
|
style: { width: "100px" }
|
|
14533
14533
|
}, null, 8, ["value", "options", "onChange"]),
|
|
14534
14534
|
s(ye, {
|
|
@@ -14590,7 +14590,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14590
14590
|
e("div", Ff, [
|
|
14591
14591
|
e("div", Df, [
|
|
14592
14592
|
h[58] || (h[58] = e("div", { class: "cd-encrypt-label" }, "链接密码", -1)),
|
|
14593
|
-
s(
|
|
14593
|
+
s(Oe, {
|
|
14594
14594
|
modelValue: E.value,
|
|
14595
14595
|
"onUpdate:modelValue": h[24] || (h[24] = (Me) => E.value = Me),
|
|
14596
14596
|
placeholder: "6位数字和字母组合",
|
|
@@ -14626,7 +14626,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14626
14626
|
s(ye, {
|
|
14627
14627
|
variant: "outline",
|
|
14628
14628
|
disabled: O.value === "read",
|
|
14629
|
-
onClick:
|
|
14629
|
+
onClick: Be
|
|
14630
14630
|
}, {
|
|
14631
14631
|
icon: i(() => [
|
|
14632
14632
|
s(Se, { name: "link" })
|
|
@@ -14681,7 +14681,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14681
14681
|
}, Kf = { class: "sub-grid-title" }, Gf = {
|
|
14682
14682
|
key: 1,
|
|
14683
14683
|
class: "cd-form-pagination"
|
|
14684
|
-
}, Xf = /* @__PURE__ */
|
|
14684
|
+
}, Xf = /* @__PURE__ */ Je({
|
|
14685
14685
|
__name: "CdForm",
|
|
14686
14686
|
props: {
|
|
14687
14687
|
formData: {},
|
|
@@ -14725,12 +14725,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14725
14725
|
if (["rate", "tag", "Rate"].includes(t))
|
|
14726
14726
|
return !0;
|
|
14727
14727
|
if (t === "calculate" && f) {
|
|
14728
|
-
const
|
|
14729
|
-
if (
|
|
14728
|
+
const C = (($ = f.__config__) == null ? void 0 : $.type) || f.type;
|
|
14729
|
+
if (C && ["rate", "tag", "Rate"].includes(C))
|
|
14730
14730
|
return !0;
|
|
14731
14731
|
}
|
|
14732
14732
|
return !1;
|
|
14733
|
-
}, u = (t, f, $,
|
|
14733
|
+
}, u = (t, f, $, C = !0) => {
|
|
14734
14734
|
if (!t || !t.__config__ || !t.__vModel__)
|
|
14735
14735
|
return (f == null ? void 0 : f[$.field]) ?? "";
|
|
14736
14736
|
const K = f[$.field];
|
|
@@ -14742,11 +14742,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14742
14742
|
};
|
|
14743
14743
|
}, c = (t, f) => {
|
|
14744
14744
|
try {
|
|
14745
|
-
const { row: $, column:
|
|
14745
|
+
const { row: $, column: C } = f, { field: K } = t.props || {};
|
|
14746
14746
|
if (!K || !K.__config__ || !K.__vModel__)
|
|
14747
|
-
return ($ == null ? void 0 : $[
|
|
14747
|
+
return ($ == null ? void 0 : $[C.field]) ?? "";
|
|
14748
14748
|
const Z = K.__config__.cdkey;
|
|
14749
|
-
return y(Z, K) ? u(K, $,
|
|
14749
|
+
return y(Z, K) ? u(K, $, C, !0) : ($ == null ? void 0 : $[C.field]) ?? "";
|
|
14750
14750
|
} catch {
|
|
14751
14751
|
return "";
|
|
14752
14752
|
}
|
|
@@ -14760,10 +14760,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14760
14760
|
},
|
|
14761
14761
|
renderEdit(t, f) {
|
|
14762
14762
|
try {
|
|
14763
|
-
const { row: $, column:
|
|
14763
|
+
const { row: $, column: C } = f, { field: K, onI18nClick: Z } = t.props || {};
|
|
14764
14764
|
if (!K || !K.__config__ || !K.__vModel__)
|
|
14765
14765
|
return [];
|
|
14766
|
-
const se = $[
|
|
14766
|
+
const se = $[C.field], pe = pa({ [K.__vModel__]: se }), $e = {
|
|
14767
14767
|
...K,
|
|
14768
14768
|
disabled: !1,
|
|
14769
14769
|
readonly: !1,
|
|
@@ -14781,8 +14781,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14781
14781
|
formConf: { labelWidth: 0, labelPosition: "left" },
|
|
14782
14782
|
disabled: !1,
|
|
14783
14783
|
tableMode: !0,
|
|
14784
|
-
onChange: (Ue,
|
|
14785
|
-
$[
|
|
14784
|
+
onChange: (Ue, Pe) => {
|
|
14785
|
+
$[C.field] = Pe, pe[Ue + "_data"] && ($[C.field + "_data"] = pe[Ue + "_data"]), f.$table && f.$table.updateStatus && f.$table.updateStatus(f);
|
|
14786
14786
|
},
|
|
14787
14787
|
"onI18n-click": (Ue) => {
|
|
14788
14788
|
Z && Z(Ue);
|
|
@@ -14794,29 +14794,29 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14794
14794
|
}
|
|
14795
14795
|
}), Ta.renderer.get("$relationCell") || Ta.renderer.add("$relationCell", {
|
|
14796
14796
|
renderDefault(t, f) {
|
|
14797
|
-
const { row: $, column:
|
|
14797
|
+
const { row: $, column: C } = f, { field: K, isMultiple: Z } = t.props || {}, se = (K == null ? void 0 : K.__vModel__) || C.field, pe = $[se];
|
|
14798
14798
|
if (pe == null || pe === "" || pe === "0")
|
|
14799
14799
|
return [];
|
|
14800
14800
|
const $e = $[se + "_data"];
|
|
14801
14801
|
let Ue = [];
|
|
14802
14802
|
if ($e) {
|
|
14803
|
-
const
|
|
14803
|
+
const Pe = typeof $e == "string" ? (() => {
|
|
14804
14804
|
try {
|
|
14805
14805
|
return JSON.parse($e);
|
|
14806
14806
|
} catch {
|
|
14807
14807
|
return null;
|
|
14808
14808
|
}
|
|
14809
14809
|
})() : $e;
|
|
14810
|
-
Array.isArray(
|
|
14810
|
+
Array.isArray(Pe) ? Ue = Pe.map((Ne) => Ne.fname || Ne.FNAME || Ne.fullName || Ne.name || "") : Pe && (Ue = [Pe.fname || Pe.FNAME || Pe.fullName || Pe.name || ""]);
|
|
14811
14811
|
}
|
|
14812
|
-
if (Ue.length === 0 || Ue.every((
|
|
14813
|
-
const
|
|
14814
|
-
Ue =
|
|
14812
|
+
if (Ue.length === 0 || Ue.every((Pe) => !Pe)) {
|
|
14813
|
+
const Pe = String(pe);
|
|
14814
|
+
Ue = Pe.includes(",") ? Pe.split(",").map((Ne) => Ne.trim()).filter((Ne) => Ne && Ne !== "0") : [Pe];
|
|
14815
14815
|
}
|
|
14816
|
-
return Ue = Ue.filter((
|
|
14816
|
+
return Ue = Ue.filter((Pe) => Pe), Ue.length === 0 ? [] : Z && Ue.length > 1 ? Ue.map((Pe) => rl("span", {
|
|
14817
14817
|
class: "cd-relation-tag",
|
|
14818
14818
|
style: "display:inline-block;padding:1px 8px;margin:1px 4px 1px 0;background:#f0f2f5;border-radius:3px;font-size:12px;line-height:20px;"
|
|
14819
|
-
},
|
|
14819
|
+
}, Pe)) : [rl("span", {}, Ue.join(", "))];
|
|
14820
14820
|
}
|
|
14821
14821
|
});
|
|
14822
14822
|
const m = a, U = pa({});
|
|
@@ -14847,7 +14847,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14847
14847
|
expandAll: !0
|
|
14848
14848
|
}
|
|
14849
14849
|
} : f;
|
|
14850
|
-
}),
|
|
14850
|
+
}), w = n, r = F(), I = F(), D = F(), q = F(600), ee = () => {
|
|
14851
14851
|
if (D.value) {
|
|
14852
14852
|
const t = D.value.getBoundingClientRect(), $ = window.innerHeight - t.top - 80;
|
|
14853
14853
|
q.value = Math.max(400, $);
|
|
@@ -14868,22 +14868,22 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14868
14868
|
}), ge = F(!1), H = F(/* @__PURE__ */ new Map()), E = F(/* @__PURE__ */ new Map()), W = F(/* @__PURE__ */ new Set()), d = F(((ml = m.pageConfig) == null ? void 0 : ml.currentPage) || 1), S = F(((vl = m.pageConfig) == null ? void 0 : vl.pageSize) || 20), g = F(!1), R = F([]), O = F(!0), de = F(!1), ue = F(""), L = F("add"), x = F(null);
|
|
14869
14869
|
let b = pa({});
|
|
14870
14870
|
const z = ve(() => {
|
|
14871
|
-
var Ue,
|
|
14871
|
+
var Ue, Pe;
|
|
14872
14872
|
const t = ((Ue = m.formData) == null ? void 0 : Ue.fields) || [], f = _.value.treeConfig;
|
|
14873
14873
|
if (!(f != null && f.enabled)) return t;
|
|
14874
14874
|
const $ = f.parentField || "parentId";
|
|
14875
14875
|
if (t.some(
|
|
14876
|
-
(
|
|
14877
|
-
var
|
|
14878
|
-
return
|
|
14876
|
+
(Ne) => {
|
|
14877
|
+
var Ge, Xe;
|
|
14878
|
+
return Ne.__vModel__ === $ || ((Ge = Ne.__vModel__) == null ? void 0 : Ge.toUpperCase()) === "FPARENTID" || ((Xe = Ne.__config__) == null ? void 0 : Xe.cdkey) === "treeSelect";
|
|
14879
14879
|
}
|
|
14880
14880
|
)) return t;
|
|
14881
|
-
const K = f.rowField || "fid", Z = m.data || [], se = ((
|
|
14882
|
-
(
|
|
14883
|
-
var
|
|
14884
|
-
return ((
|
|
14881
|
+
const K = f.rowField || "fid", Z = m.data || [], se = ((Pe = t.find(
|
|
14882
|
+
(Ne) => {
|
|
14883
|
+
var Ge, Xe;
|
|
14884
|
+
return ((Ge = Ne.__config__) == null ? void 0 : Ge.cdkey) === "input" && ((Xe = Ne.__config__) == null ? void 0 : Xe.required);
|
|
14885
14885
|
}
|
|
14886
|
-
)) == null ? void 0 :
|
|
14886
|
+
)) == null ? void 0 : Pe.__vModel__) || "fname";
|
|
14887
14887
|
return [{
|
|
14888
14888
|
__vModel__: $,
|
|
14889
14889
|
__config__: {
|
|
@@ -14904,26 +14904,26 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14904
14904
|
props: { keys: { label: "label", value: "value", children: "children" } },
|
|
14905
14905
|
options: (() => {
|
|
14906
14906
|
if (!Z.length) return [];
|
|
14907
|
-
const
|
|
14908
|
-
for (const
|
|
14909
|
-
const
|
|
14910
|
-
|
|
14911
|
-
value: String(
|
|
14912
|
-
label:
|
|
14907
|
+
const Ne = /* @__PURE__ */ new Map(), Ge = [];
|
|
14908
|
+
for (const Re of Z) {
|
|
14909
|
+
const ta = Re[se] || Re.fname || Re.fnumber || Re.fullName || Re.name || String(Re[K]);
|
|
14910
|
+
Ne.set(String(Re[K]), {
|
|
14911
|
+
value: String(Re[K]),
|
|
14912
|
+
label: ta,
|
|
14913
14913
|
children: [],
|
|
14914
|
-
_pid: String(
|
|
14914
|
+
_pid: String(Re[$] || "0")
|
|
14915
14915
|
});
|
|
14916
14916
|
}
|
|
14917
|
-
for (const
|
|
14918
|
-
const
|
|
14919
|
-
|
|
14917
|
+
for (const Re of Ne.values()) {
|
|
14918
|
+
const ta = Ne.get(Re._pid);
|
|
14919
|
+
ta && ta !== Re ? ta.children.push(Re) : Ge.push(Re), delete Re._pid;
|
|
14920
14920
|
}
|
|
14921
|
-
const
|
|
14922
|
-
var
|
|
14923
|
-
for (const $a of
|
|
14924
|
-
(
|
|
14921
|
+
const Xe = (Re) => {
|
|
14922
|
+
var ta;
|
|
14923
|
+
for (const $a of Re)
|
|
14924
|
+
(ta = $a.children) != null && ta.length ? Xe($a.children) : delete $a.children;
|
|
14925
14925
|
};
|
|
14926
|
-
return
|
|
14926
|
+
return Xe(Ge), Ge;
|
|
14927
14927
|
})()
|
|
14928
14928
|
}, ...t];
|
|
14929
14929
|
}), P = F(!1), G = F(null), X = F([]), oe = F(/* @__PURE__ */ new Map()), ne = F(!1), k = F([]), B = F(!1), le = (t, f) => {
|
|
@@ -14953,13 +14953,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14953
14953
|
}, _e = ({ row: t, rowIndex: f }) => {
|
|
14954
14954
|
let $ = {};
|
|
14955
14955
|
if (_.value.rowStyle) {
|
|
14956
|
-
const
|
|
14957
|
-
|
|
14956
|
+
const C = _.value.rowStyle({ row: t, rowIndex: f });
|
|
14957
|
+
C && ($ = { ...C });
|
|
14958
14958
|
}
|
|
14959
14959
|
if (X.value && X.value.length > 0) {
|
|
14960
|
-
for (const
|
|
14961
|
-
if (
|
|
14962
|
-
|
|
14960
|
+
for (const C of X.value)
|
|
14961
|
+
if (C.applyTo === "row" && le(t, C)) {
|
|
14962
|
+
C.backgroundColor && ($.backgroundColor = C.backgroundColor), C.textColor && ($.color = C.textColor), C.isBold && ($.fontWeight = "bold");
|
|
14963
14963
|
break;
|
|
14964
14964
|
}
|
|
14965
14965
|
}
|
|
@@ -14967,14 +14967,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14967
14967
|
}, we = ({ row: t, rowIndex: f }) => {
|
|
14968
14968
|
const $ = [];
|
|
14969
14969
|
if (_.value.rowClassName) {
|
|
14970
|
-
const
|
|
14971
|
-
|
|
14970
|
+
const C = _.value.rowClassName({ row: t, rowIndex: f });
|
|
14971
|
+
C && $.push(C);
|
|
14972
14972
|
}
|
|
14973
14973
|
return $.length > 0 ? $.join(" ") : null;
|
|
14974
|
-
},
|
|
14974
|
+
}, qe = ({ row: t, column: f, rowIndex: $, columnIndex: C }) => {
|
|
14975
14975
|
let K = {};
|
|
14976
14976
|
if (_.value.cellStyle) {
|
|
14977
|
-
const Z = _.value.cellStyle({ row: t, column: f, rowIndex: $, columnIndex:
|
|
14977
|
+
const Z = _.value.cellStyle({ row: t, column: f, rowIndex: $, columnIndex: C });
|
|
14978
14978
|
Z && (K = { ...Z });
|
|
14979
14979
|
}
|
|
14980
14980
|
if (X.value && X.value.length > 0) {
|
|
@@ -14982,37 +14982,37 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
14982
14982
|
if (Z.applyTo === "cell" && Z.field === f.field && le(t, Z)) {
|
|
14983
14983
|
Z.backgroundColor && (K.backgroundColor = Z.backgroundColor), Z.textColor && (K.color = Z.textColor), Z.isBold && (K.fontWeight = "bold");
|
|
14984
14984
|
break;
|
|
14985
|
-
} else if (Z.applyTo === "column" && Z.field === f.field &&
|
|
14985
|
+
} else if (Z.applyTo === "column" && Z.field === f.field && Be.value.some((pe) => le(pe, Z))) {
|
|
14986
14986
|
Z.backgroundColor && (K.backgroundColor = Z.backgroundColor), Z.textColor && (K.color = Z.textColor), Z.isBold && (K.fontWeight = "bold");
|
|
14987
14987
|
break;
|
|
14988
14988
|
}
|
|
14989
14989
|
}
|
|
14990
14990
|
return Object.keys(K).length > 0 ? K : void 0;
|
|
14991
|
-
}, ke = ({ row: t, column: f, rowIndex: $, columnIndex:
|
|
14991
|
+
}, ke = ({ row: t, column: f, rowIndex: $, columnIndex: C }) => {
|
|
14992
14992
|
const K = [];
|
|
14993
14993
|
if (_.value.cellClassName) {
|
|
14994
|
-
const Z = _.value.cellClassName({ row: t, column: f, rowIndex: $, columnIndex:
|
|
14994
|
+
const Z = _.value.cellClassName({ row: t, column: f, rowIndex: $, columnIndex: C });
|
|
14995
14995
|
Z && K.push(Z);
|
|
14996
14996
|
}
|
|
14997
14997
|
return K.length > 0 ? K.join(" ") : null;
|
|
14998
|
-
},
|
|
14998
|
+
}, Be = ve(() => m.data || []), ce = ve(() => {
|
|
14999
14999
|
var f, $;
|
|
15000
|
-
let t =
|
|
15000
|
+
let t = Be.value;
|
|
15001
15001
|
if (_.value.groupField || ((f = _.value.treeConfig) == null ? void 0 : f.enabled) === !0)
|
|
15002
15002
|
return t;
|
|
15003
15003
|
if (($ = m.pageConfig) != null && $.enabled && !m.enableVirtualScroll) {
|
|
15004
|
-
const
|
|
15005
|
-
t = t.slice(
|
|
15004
|
+
const C = (d.value - 1) * S.value, K = C + S.value;
|
|
15005
|
+
t = t.slice(C, K);
|
|
15006
15006
|
}
|
|
15007
15007
|
if (N.value) {
|
|
15008
|
-
const
|
|
15008
|
+
const C = [...t], K = {
|
|
15009
15009
|
fid: "__empty_row__",
|
|
15010
15010
|
_isEmpty: !0
|
|
15011
15011
|
};
|
|
15012
15012
|
return h(m.formData.fields).forEach((se) => {
|
|
15013
15013
|
const pe = se.__vModel__;
|
|
15014
15014
|
pe && (K[pe] = "");
|
|
15015
|
-
}),
|
|
15015
|
+
}), C.push(K), C;
|
|
15016
15016
|
}
|
|
15017
15017
|
return t;
|
|
15018
15018
|
});
|
|
@@ -15028,22 +15028,22 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15028
15028
|
const T = (t, f) => N.value ? t === "edit" : !1, h = (t) => {
|
|
15029
15029
|
const f = [];
|
|
15030
15030
|
return !t || !Array.isArray(t) || t.forEach(($) => {
|
|
15031
|
-
const
|
|
15032
|
-
|
|
15031
|
+
const C = $.__config__;
|
|
15032
|
+
C.layout === "rowFormItem" && C.children && Array.isArray(C.children) ? f.push(...h(C.children)) : C.layout === "colFormItem" && f.push($);
|
|
15033
15033
|
}), f;
|
|
15034
15034
|
};
|
|
15035
15035
|
Ca("relationFormHandlers", {
|
|
15036
15036
|
search: (t) => {
|
|
15037
|
-
|
|
15037
|
+
w("relation-form-search", t);
|
|
15038
15038
|
},
|
|
15039
15039
|
advanced: (t) => {
|
|
15040
|
-
|
|
15040
|
+
w("relation-form-advanced", t);
|
|
15041
15041
|
},
|
|
15042
15042
|
dialogSearch: (t) => {
|
|
15043
|
-
|
|
15043
|
+
w("relation-form-dialog-search", t);
|
|
15044
15044
|
},
|
|
15045
15045
|
pageChange: (t) => {
|
|
15046
|
-
|
|
15046
|
+
w("relation-form-page-change", t);
|
|
15047
15047
|
}
|
|
15048
15048
|
});
|
|
15049
15049
|
const ae = ve(() => {
|
|
@@ -15051,13 +15051,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15051
15051
|
return Array.isArray(m.fieldOptions) ? m.fieldOptions : [];
|
|
15052
15052
|
const t = [];
|
|
15053
15053
|
return h(m.formData.fields).forEach(($) => {
|
|
15054
|
-
const
|
|
15055
|
-
if (!K ||
|
|
15054
|
+
const C = $.__config__, K = $.__vModel__, Z = C.cdkey;
|
|
15055
|
+
if (!K || C.noShow || Z === "billno" || Z === "divider" || Z === "vxeSubGrid" || Z === "table")
|
|
15056
15056
|
return;
|
|
15057
15057
|
let se = "text";
|
|
15058
15058
|
["select", "radio", "checkbox"].includes(Z) ? se = "select" : Z === "number" ? se = "number" : Z === "date" || Z === "datetime" ? se = "date" : Z === "time" ? se = "time" : Z === "switch" && (se = "select"), t.push({
|
|
15059
|
-
key:
|
|
15060
|
-
label:
|
|
15059
|
+
key: C.label,
|
|
15060
|
+
label: C.label,
|
|
15061
15061
|
value: K,
|
|
15062
15062
|
type: se
|
|
15063
15063
|
});
|
|
@@ -15065,7 +15065,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15065
15065
|
}), Fe = ve(() => {
|
|
15066
15066
|
const t = [];
|
|
15067
15067
|
return h(m.formData.fields).forEach(($) => {
|
|
15068
|
-
const
|
|
15068
|
+
const C = $.__config__, K = $.__vModel__, Z = C.cdkey;
|
|
15069
15069
|
if (["select", "radio", "checkbox"].includes(Z) && $.options && Array.isArray($.options)) {
|
|
15070
15070
|
const se = $.options.map((pe) => pe.label || pe.fullName || String(pe.value));
|
|
15071
15071
|
t.push({
|
|
@@ -15077,18 +15077,18 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15077
15077
|
value: ["是", "否"]
|
|
15078
15078
|
});
|
|
15079
15079
|
}), t;
|
|
15080
|
-
}),
|
|
15080
|
+
}), Oe = ve(() => {
|
|
15081
15081
|
const t = [];
|
|
15082
15082
|
return h(m.formData.fields).forEach(($) => {
|
|
15083
|
-
const
|
|
15084
|
-
!$.__vModel__ ||
|
|
15085
|
-
label:
|
|
15083
|
+
const C = $.__config__;
|
|
15084
|
+
!$.__vModel__ || C.noShow || C.cdkey === "billno" || C.cdkey === "calculate" || t.push({
|
|
15085
|
+
label: C.label,
|
|
15086
15086
|
value: $.__vModel__
|
|
15087
15087
|
});
|
|
15088
15088
|
}), t;
|
|
15089
15089
|
}), Ve = (t, f = !1) => {
|
|
15090
|
-
var $e, Ue,
|
|
15091
|
-
const $ = t.__config__,
|
|
15090
|
+
var $e, Ue, Pe, Ne;
|
|
15091
|
+
const $ = t.__config__, C = $.cdkey, K = t.__vModel__;
|
|
15092
15092
|
if (!K || $.noShow)
|
|
15093
15093
|
return null;
|
|
15094
15094
|
const Z = oe.value.get(K), se = {
|
|
@@ -15100,71 +15100,86 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15100
15100
|
headerAlign: "center",
|
|
15101
15101
|
sortable: !0
|
|
15102
15102
|
};
|
|
15103
|
-
|
|
15103
|
+
Z != null && Z.fixed && Z.fixed !== "none" ? se.fixed = Z.fixed : $.fixed && $.fixed !== "none" && (se.fixed = $.fixed);
|
|
15104
|
+
const pe = y(C, t);
|
|
15105
|
+
if (pe && (se.cellRender = {
|
|
15104
15106
|
name: "$renderFormItem",
|
|
15105
15107
|
props: { field: t }
|
|
15106
|
-
}),
|
|
15107
|
-
const
|
|
15108
|
+
}), C === "relationForm") {
|
|
15109
|
+
const Ge = t.multiple === !0;
|
|
15108
15110
|
se.cellRender = {
|
|
15109
15111
|
name: "$relationCell",
|
|
15110
|
-
props: { field: t, isMultiple:
|
|
15112
|
+
props: { field: t, isMultiple: Ge }
|
|
15111
15113
|
};
|
|
15112
15114
|
}
|
|
15113
|
-
if (
|
|
15114
|
-
const
|
|
15115
|
-
se.formatter = ({ row:
|
|
15116
|
-
const
|
|
15117
|
-
return
|
|
15115
|
+
if (C === "switch") {
|
|
15116
|
+
const Ge = t["active-value"] ?? 1;
|
|
15117
|
+
se.formatter = ({ row: Xe }) => {
|
|
15118
|
+
const Re = Xe[K];
|
|
15119
|
+
return Re === Ge || Re === !0 ? "启用" : "禁用";
|
|
15118
15120
|
};
|
|
15119
15121
|
}
|
|
15120
|
-
if (
|
|
15121
|
-
|
|
15122
|
+
if ((C === "select" || C === "radio") && !pe) {
|
|
15123
|
+
const Ge = t.options || (($e = t.__slot__) == null ? void 0 : $e.options) || [];
|
|
15124
|
+
if (Ge.length > 0) {
|
|
15125
|
+
const Xe = {};
|
|
15126
|
+
Ge.forEach((Re) => {
|
|
15127
|
+
const ta = String(Re.value ?? Re.id ?? "");
|
|
15128
|
+
Xe[ta] = Re.label || Re.fullName || Re.name || ta;
|
|
15129
|
+
}), se.formatter = ({ row: Re }) => {
|
|
15130
|
+
const ta = Re[K];
|
|
15131
|
+
return ta == null || ta === "" ? "" : Xe[String(ta)] ?? String(ta);
|
|
15132
|
+
};
|
|
15133
|
+
}
|
|
15134
|
+
}
|
|
15135
|
+
if (N.value && !["upload", "uploadImg", "editor", "colorPicker", "cascader"].includes(C))
|
|
15136
|
+
if (C === "relationForm")
|
|
15122
15137
|
se.editRender = {
|
|
15123
15138
|
name: "$renderFormItem",
|
|
15124
15139
|
props: {
|
|
15125
15140
|
field: t,
|
|
15126
|
-
onI18nClick: (
|
|
15141
|
+
onI18nClick: (Xe) => w("i18n-click", Xe)
|
|
15127
15142
|
}
|
|
15128
15143
|
};
|
|
15129
|
-
else if (
|
|
15144
|
+
else if (C === "input" && ((Ue = t.__config__) != null && Ue.i18n))
|
|
15130
15145
|
se.editRender = {
|
|
15131
15146
|
name: "$renderFormItem",
|
|
15132
15147
|
props: {
|
|
15133
15148
|
field: t,
|
|
15134
|
-
onI18nClick: (
|
|
15149
|
+
onI18nClick: (Xe) => w("i18n-click", Xe)
|
|
15135
15150
|
}
|
|
15136
15151
|
};
|
|
15137
|
-
else if (
|
|
15152
|
+
else if (C === "numInput" || C === "inputNumber" || C === "amount" || C === "rate" || C === "slider")
|
|
15138
15153
|
se.editRender = { name: "VxeNumberInput" };
|
|
15139
|
-
else if (
|
|
15140
|
-
const
|
|
15141
|
-
label:
|
|
15142
|
-
value:
|
|
15154
|
+
else if (C === "select" || C === "radio") {
|
|
15155
|
+
const Xe = (t.options || ((Pe = t.__slot__) == null ? void 0 : Pe.options) || []).map((Re) => ({
|
|
15156
|
+
label: Re.label || Re.fullName || Re.name || Re.value,
|
|
15157
|
+
value: Re.value ?? Re.id
|
|
15143
15158
|
}));
|
|
15144
|
-
se.editRender = { name: "VxeSelect", options:
|
|
15145
|
-
} else if (
|
|
15146
|
-
const
|
|
15147
|
-
label:
|
|
15148
|
-
value:
|
|
15149
|
-
parentValue:
|
|
15159
|
+
se.editRender = { name: "VxeSelect", options: Xe };
|
|
15160
|
+
} else if (C === "treeSelect") {
|
|
15161
|
+
const Xe = (t.options || []).map((Re) => ({
|
|
15162
|
+
label: Re.label || Re.fullName || Re.name,
|
|
15163
|
+
value: Re.value ?? Re.id,
|
|
15164
|
+
parentValue: Re.parentId ?? Re.parentValue
|
|
15150
15165
|
}));
|
|
15151
|
-
se.editRender = { name: "VxeTreeSelect", options:
|
|
15152
|
-
} else if (
|
|
15166
|
+
se.editRender = { name: "VxeTreeSelect", options: Xe, props: { treeConfig: { transform: !0, rowField: "value", parentField: "parentValue" } } };
|
|
15167
|
+
} else if (C === "datePicker")
|
|
15153
15168
|
se.editRender = { name: "VxeDatePicker", props: { type: "date", valueFormat: "YYYY-MM-DD" } };
|
|
15154
|
-
else if (
|
|
15169
|
+
else if (C === "switch")
|
|
15155
15170
|
se.editRender = { name: "VxeSwitch" };
|
|
15156
|
-
else if (
|
|
15157
|
-
const
|
|
15158
|
-
label:
|
|
15159
|
-
value:
|
|
15171
|
+
else if (C === "checkbox") {
|
|
15172
|
+
const Xe = (t.options || ((Ne = t.__slot__) == null ? void 0 : Ne.options) || []).map((Re) => ({
|
|
15173
|
+
label: Re.label || Re.value,
|
|
15174
|
+
value: Re.value ?? Re.id
|
|
15160
15175
|
}));
|
|
15161
|
-
se.editRender = { name: "VxeCheckboxGroup", options:
|
|
15176
|
+
se.editRender = { name: "VxeCheckboxGroup", options: Xe };
|
|
15162
15177
|
} else
|
|
15163
15178
|
se.editRender = { name: "VxeInput" };
|
|
15164
15179
|
return Ae(se, t), se;
|
|
15165
15180
|
}, Ae = (t, f) => {
|
|
15166
|
-
const
|
|
15167
|
-
if (
|
|
15181
|
+
const C = f.__config__.cdkey, K = f.__vModel__, Z = /* @__PURE__ */ new Set();
|
|
15182
|
+
if (Be.value.forEach((se) => {
|
|
15168
15183
|
const pe = se[K];
|
|
15169
15184
|
pe != null && pe !== "" && (Array.isArray(pe) ? pe.forEach(($e) => {
|
|
15170
15185
|
$e != null && $e !== "" && Z.add($e);
|
|
@@ -15173,45 +15188,45 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15173
15188
|
t.filters = [];
|
|
15174
15189
|
return;
|
|
15175
15190
|
}
|
|
15176
|
-
if (
|
|
15191
|
+
if (C === "relationForm") {
|
|
15177
15192
|
t.filterMultiple = !0;
|
|
15178
15193
|
const se = /* @__PURE__ */ new Set();
|
|
15179
|
-
|
|
15194
|
+
Be.value.forEach(($e) => {
|
|
15180
15195
|
const Ue = $e[K];
|
|
15181
|
-
Ue != null && Ue !== "" && Ue !== "0" && String(Ue).split(",").forEach((
|
|
15182
|
-
const
|
|
15183
|
-
|
|
15196
|
+
Ue != null && Ue !== "" && Ue !== "0" && String(Ue).split(",").forEach((Pe) => {
|
|
15197
|
+
const Ne = Pe.trim();
|
|
15198
|
+
Ne && Ne !== "0" && se.add(Ne);
|
|
15184
15199
|
});
|
|
15185
15200
|
});
|
|
15186
15201
|
const pe = {};
|
|
15187
|
-
|
|
15202
|
+
Be.value.forEach(($e) => {
|
|
15188
15203
|
const Ue = $e[K + "_data"];
|
|
15189
15204
|
if (Ue) {
|
|
15190
|
-
const
|
|
15205
|
+
const Pe = typeof Ue == "string" ? (() => {
|
|
15191
15206
|
try {
|
|
15192
15207
|
return JSON.parse(Ue);
|
|
15193
15208
|
} catch {
|
|
15194
15209
|
return null;
|
|
15195
15210
|
}
|
|
15196
15211
|
})() : Ue;
|
|
15197
|
-
if (Array.isArray(
|
|
15198
|
-
|
|
15199
|
-
const
|
|
15200
|
-
|
|
15212
|
+
if (Array.isArray(Pe))
|
|
15213
|
+
Pe.forEach((Ne) => {
|
|
15214
|
+
const Ge = String(Ne.fid ?? Ne.id ?? ""), Xe = Ne.fname || Ne.FNAME || Ne.fullName || Ne.name || "";
|
|
15215
|
+
Ge && Xe && (pe[Ge] = Xe);
|
|
15201
15216
|
});
|
|
15202
|
-
else if (
|
|
15203
|
-
const
|
|
15204
|
-
|
|
15217
|
+
else if (Pe) {
|
|
15218
|
+
const Ne = String(Pe.fid ?? Pe.id ?? ""), Ge = Pe.fname || Pe.FNAME || Pe.fullName || Pe.name || "";
|
|
15219
|
+
Ne && Ge && (pe[Ne] = Ge);
|
|
15205
15220
|
}
|
|
15206
15221
|
}
|
|
15207
15222
|
}), t.filters = Array.from(se).map(($e) => ({
|
|
15208
15223
|
label: pe[$e] || $e,
|
|
15209
15224
|
value: $e
|
|
15210
15225
|
})), t.filterMethod = ({ value: $e, row: Ue }) => {
|
|
15211
|
-
const
|
|
15212
|
-
return
|
|
15226
|
+
const Pe = Ue[K];
|
|
15227
|
+
return Pe ? String(Pe).split(",").map((Ge) => Ge.trim()).includes(String($e)) : !1;
|
|
15213
15228
|
};
|
|
15214
|
-
} else
|
|
15229
|
+
} else C === "select" || C === "radio" || C === "checkbox" || C === "cascader" ? (t.filterMultiple = !0, t.filters = [], Z.forEach((se) => {
|
|
15215
15230
|
let pe = String(se);
|
|
15216
15231
|
if (f.options && Array.isArray(f.options)) {
|
|
15217
15232
|
const $e = f.options.find((Ue) => (Ue.value || Ue.key || Ue.id) == se);
|
|
@@ -15221,27 +15236,27 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15221
15236
|
label: pe,
|
|
15222
15237
|
value: se
|
|
15223
15238
|
});
|
|
15224
|
-
})) :
|
|
15239
|
+
})) : C === "switch" ? (t.filterMultiple = !1, t.filters = [], Z.has(!0) && t.filters.push({ label: "是", value: !0 }), Z.has(!1) && t.filters.push({ label: "否", value: !1 })) : C === "input" || C === "textarea" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((se) => ({
|
|
15225
15240
|
label: String(se),
|
|
15226
15241
|
value: se
|
|
15227
|
-
}))) :
|
|
15242
|
+
}))) : C === "number" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort((se, pe) => Number(se) - Number(pe)).map((se) => ({
|
|
15228
15243
|
label: String(se),
|
|
15229
15244
|
value: se
|
|
15230
|
-
}))) :
|
|
15245
|
+
}))) : C === "date" || C === "time" ? (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((se) => ({
|
|
15231
15246
|
label: String(se),
|
|
15232
15247
|
value: se
|
|
15233
15248
|
}))) : (t.filterMultiple = !0, t.filters = Array.from(Z).sort().map((se) => ({
|
|
15234
15249
|
label: String(se),
|
|
15235
15250
|
value: se
|
|
15236
15251
|
})));
|
|
15237
|
-
},
|
|
15252
|
+
}, ra = () => {
|
|
15238
15253
|
var $;
|
|
15239
15254
|
if (m.tableColumns && m.tableColumns.length > 0)
|
|
15240
|
-
return m.tableColumns.map((
|
|
15241
|
-
...
|
|
15242
|
-
sortable:
|
|
15255
|
+
return m.tableColumns.map((C, K) => ({
|
|
15256
|
+
...C,
|
|
15257
|
+
sortable: C.sortable !== void 0 ? C.sortable : !0
|
|
15243
15258
|
}));
|
|
15244
|
-
const t = [], f = ($ = re.columns) == null ? void 0 : $.find((
|
|
15259
|
+
const t = [], f = ($ = re.columns) == null ? void 0 : $.find((C) => C.field === "group");
|
|
15245
15260
|
if (t.push({
|
|
15246
15261
|
type: "checkbox",
|
|
15247
15262
|
width: 60,
|
|
@@ -15254,9 +15269,9 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15254
15269
|
slots: {
|
|
15255
15270
|
footer: "checkbox_footer"
|
|
15256
15271
|
}
|
|
15257
|
-
}), f && t.push(f), (!m.formData.fields || m.formData.fields.length === 0) &&
|
|
15258
|
-
const
|
|
15259
|
-
return Object.keys(
|
|
15272
|
+
}), f && t.push(f), (!m.formData.fields || m.formData.fields.length === 0) && Be.value.length > 0) {
|
|
15273
|
+
const C = Be.value[0];
|
|
15274
|
+
return Object.keys(C).forEach((K) => {
|
|
15260
15275
|
const Z = {
|
|
15261
15276
|
field: K,
|
|
15262
15277
|
title: K.charAt(0).toUpperCase() + K.slice(1),
|
|
@@ -15268,7 +15283,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15268
15283
|
}), t;
|
|
15269
15284
|
}
|
|
15270
15285
|
if (m.formData.fields && m.formData.fields.length > 0) {
|
|
15271
|
-
const
|
|
15286
|
+
const C = (Z, se = !1) => {
|
|
15272
15287
|
const pe = Z.__config__;
|
|
15273
15288
|
if (pe.noShow)
|
|
15274
15289
|
return null;
|
|
@@ -15291,11 +15306,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15291
15306
|
}
|
|
15292
15307
|
if (pe.layout === "rowFormItem" && pe.children && Array.isArray(pe.children)) {
|
|
15293
15308
|
const Ue = [];
|
|
15294
|
-
if (pe.children.forEach((
|
|
15295
|
-
const
|
|
15296
|
-
if (
|
|
15297
|
-
const
|
|
15298
|
-
|
|
15309
|
+
if (pe.children.forEach((Pe) => {
|
|
15310
|
+
const Ne = Pe.__config__;
|
|
15311
|
+
if (Ne.layout === "colFormItem" && Pe.__vModel__ && !Ne.noShow) {
|
|
15312
|
+
const Ge = Ve(Pe, !0);
|
|
15313
|
+
Ge && Ue.push(Ge);
|
|
15299
15314
|
}
|
|
15300
15315
|
}), Ue.length > 0)
|
|
15301
15316
|
return {
|
|
@@ -15311,7 +15326,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15311
15326
|
return null;
|
|
15312
15327
|
};
|
|
15313
15328
|
m.formData.fields.forEach((Z) => {
|
|
15314
|
-
const se =
|
|
15329
|
+
const se = C(Z);
|
|
15315
15330
|
se && t.push(se);
|
|
15316
15331
|
}), t.length < 6 && (t[t.length - 1].width = "20%"), m.formData.fields.some(
|
|
15317
15332
|
(Z) => {
|
|
@@ -15392,14 +15407,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15392
15407
|
}, { immediate: !0 }), ze(() => ce.value, (t) => {
|
|
15393
15408
|
re.data = t || [];
|
|
15394
15409
|
}, { immediate: !1 }), ze(() => [m.formData.fields, m.tableColumns, _.value.groupField], () => {
|
|
15395
|
-
re.columns =
|
|
15396
|
-
}, { deep: !0, immediate: !0 }), ze(() =>
|
|
15397
|
-
if (!
|
|
15410
|
+
re.columns = ra();
|
|
15411
|
+
}, { deep: !0, immediate: !0 }), ze(() => Be.value.length, () => {
|
|
15412
|
+
if (!Be.value.length || !re.columns) return;
|
|
15398
15413
|
const t = h(m.formData.fields), f = new Map(t.map(($) => [$.__vModel__, $]));
|
|
15399
15414
|
re.columns.forEach(($) => {
|
|
15400
|
-
const
|
|
15401
|
-
|
|
15402
|
-
}),
|
|
15415
|
+
const C = f.get($.field);
|
|
15416
|
+
C && Ae($, C);
|
|
15417
|
+
}), na(() => {
|
|
15403
15418
|
r.value && r.value.refreshColumn();
|
|
15404
15419
|
});
|
|
15405
15420
|
}), ze(() => _.value.groupField, (t) => {
|
|
@@ -15437,62 +15452,62 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15437
15452
|
_.value.headerCellClassName,
|
|
15438
15453
|
X.value
|
|
15439
15454
|
], () => {
|
|
15440
|
-
_.value.headerCellStyle && (re.headerCellStyle = _.value.headerCellStyle), _.value.headerCellClassName && (re.headerCellClassName = _.value.headerCellClassName), re.rowStyle = _e, re.rowClassName = we, re.cellStyle =
|
|
15455
|
+
_.value.headerCellStyle && (re.headerCellStyle = _.value.headerCellStyle), _.value.headerCellClassName && (re.headerCellClassName = _.value.headerCellClassName), re.rowStyle = _e, re.rowClassName = we, re.cellStyle = qe, re.cellClassName = ke;
|
|
15441
15456
|
}, { deep: !0, immediate: !0 });
|
|
15442
|
-
const
|
|
15457
|
+
const ia = {
|
|
15443
15458
|
// 求和
|
|
15444
15459
|
sum: (t, f, $ = 2) => {
|
|
15445
|
-
let
|
|
15460
|
+
let C = 0;
|
|
15446
15461
|
return t.forEach((K) => {
|
|
15447
15462
|
const Z = Number(K[f]);
|
|
15448
|
-
isNaN(Z) || (
|
|
15449
|
-
}),
|
|
15463
|
+
isNaN(Z) || (C += Z);
|
|
15464
|
+
}), C.toFixed($);
|
|
15450
15465
|
},
|
|
15451
15466
|
// 平均值
|
|
15452
15467
|
average: (t, f, $ = 2) => {
|
|
15453
15468
|
if (t.length === 0) return "0";
|
|
15454
|
-
let
|
|
15469
|
+
let C = 0;
|
|
15455
15470
|
return t.forEach((K) => {
|
|
15456
15471
|
const Z = Number(K[f]);
|
|
15457
|
-
isNaN(Z) || (
|
|
15458
|
-
}), (
|
|
15472
|
+
isNaN(Z) || (C += Z);
|
|
15473
|
+
}), (C / t.length).toFixed($);
|
|
15459
15474
|
},
|
|
15460
15475
|
// 最大值
|
|
15461
15476
|
max: (t, f, $ = 2) => {
|
|
15462
15477
|
if (t.length === 0) return "0";
|
|
15463
|
-
let
|
|
15478
|
+
let C = -1 / 0;
|
|
15464
15479
|
return t.forEach((K) => {
|
|
15465
15480
|
const Z = Number(K[f]);
|
|
15466
|
-
!isNaN(Z) && Z >
|
|
15467
|
-
}),
|
|
15481
|
+
!isNaN(Z) && Z > C && (C = Z);
|
|
15482
|
+
}), C === -1 / 0 ? "0" : C.toFixed($);
|
|
15468
15483
|
},
|
|
15469
15484
|
// 最小值
|
|
15470
15485
|
min: (t, f, $ = 2) => {
|
|
15471
15486
|
if (t.length === 0) return "0";
|
|
15472
|
-
let
|
|
15487
|
+
let C = 1 / 0;
|
|
15473
15488
|
return t.forEach((K) => {
|
|
15474
15489
|
const Z = Number(K[f]);
|
|
15475
|
-
!isNaN(Z) && Z <
|
|
15476
|
-
}),
|
|
15490
|
+
!isNaN(Z) && Z < C && (C = Z);
|
|
15491
|
+
}), C === 1 / 0 ? "0" : C.toFixed($);
|
|
15477
15492
|
},
|
|
15478
15493
|
// 计数
|
|
15479
15494
|
count: (t, f) => t.filter(($) => $[f] !== null && $[f] !== void 0 && $[f] !== "").length.toString(),
|
|
15480
15495
|
// 中位数
|
|
15481
15496
|
median: (t, f, $ = 2) => {
|
|
15482
|
-
const
|
|
15483
|
-
if (
|
|
15484
|
-
const K = Math.floor(
|
|
15485
|
-
return (
|
|
15497
|
+
const C = t.map((se) => Number(se[f])).filter((se) => !isNaN(se)).sort((se, pe) => se - pe);
|
|
15498
|
+
if (C.length === 0) return "0";
|
|
15499
|
+
const K = Math.floor(C.length / 2);
|
|
15500
|
+
return (C.length % 2 === 0 ? (C[K - 1] + C[K]) / 2 : C[K]).toFixed($);
|
|
15486
15501
|
},
|
|
15487
15502
|
// 众数
|
|
15488
15503
|
mode: (t, f, $ = 2) => {
|
|
15489
|
-
const
|
|
15504
|
+
const C = {};
|
|
15490
15505
|
let K = 0, Z = 0;
|
|
15491
15506
|
return t.forEach((se) => {
|
|
15492
15507
|
const pe = Number(se[f]);
|
|
15493
15508
|
if (!isNaN(pe)) {
|
|
15494
15509
|
const $e = pe.toString();
|
|
15495
|
-
|
|
15510
|
+
C[$e] = (C[$e] || 0) + 1, C[$e] > K && (K = C[$e], Z = pe);
|
|
15496
15511
|
}
|
|
15497
15512
|
}), Z.toFixed($);
|
|
15498
15513
|
}
|
|
@@ -15501,11 +15516,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15501
15516
|
enabled: !1,
|
|
15502
15517
|
operations: []
|
|
15503
15518
|
};
|
|
15504
|
-
return h(m.formData.fields).forEach((
|
|
15505
|
-
const K =
|
|
15519
|
+
return h(m.formData.fields).forEach((C) => {
|
|
15520
|
+
const K = C.__config__, Z = C.__vModel__, se = K.cdkey;
|
|
15506
15521
|
if (!Z || K.noShow || se === "billno" || se === "divider")
|
|
15507
15522
|
return;
|
|
15508
|
-
const pe = K.summary ||
|
|
15523
|
+
const pe = K.summary || C.summary;
|
|
15509
15524
|
(se === "number" || se === "calculate") && (t.push(Z), pe != null && pe.enabled && (f.enabled = !0, pe.operations && Array.isArray(pe.operations) && pe.operations.forEach(($e) => {
|
|
15510
15525
|
$e.enabled !== !1 && f.operations.push({
|
|
15511
15526
|
...$e,
|
|
@@ -15516,13 +15531,13 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15516
15531
|
}), t.length > 0 && !f.enabled && (f.enabled = !0, f.operations = [
|
|
15517
15532
|
{ type: "sum", label: "总计", enabled: !0, decimalPlaces: 2, showUnit: !1 }
|
|
15518
15533
|
]), { numericFields: t, summaryConfig: f };
|
|
15519
|
-
},
|
|
15534
|
+
}, sa = (t) => {
|
|
15520
15535
|
if (!t || t.length === 0)
|
|
15521
15536
|
return [];
|
|
15522
15537
|
const { numericFields: f, summaryConfig: $ } = Me();
|
|
15523
15538
|
if (!$.enabled || f.length === 0)
|
|
15524
15539
|
return [];
|
|
15525
|
-
const
|
|
15540
|
+
const C = [];
|
|
15526
15541
|
return $.operations.forEach((K) => {
|
|
15527
15542
|
if (!K.enabled) return;
|
|
15528
15543
|
const Z = {
|
|
@@ -15530,16 +15545,16 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15530
15545
|
name: "-"
|
|
15531
15546
|
};
|
|
15532
15547
|
f.forEach((se) => {
|
|
15533
|
-
const pe =
|
|
15548
|
+
const pe = ia[K.type];
|
|
15534
15549
|
if (pe) {
|
|
15535
15550
|
const $e = pe(t, se, K.decimalPlaces);
|
|
15536
15551
|
Z[se] = K.showUnit && K.unit ? `${$e} ${K.unit}` : $e;
|
|
15537
15552
|
}
|
|
15538
|
-
}),
|
|
15539
|
-
}),
|
|
15553
|
+
}), C.push(Z);
|
|
15554
|
+
}), C;
|
|
15540
15555
|
};
|
|
15541
15556
|
ze(() => ce.value, (t) => {
|
|
15542
|
-
re.footerData =
|
|
15557
|
+
re.footerData = sa(t);
|
|
15543
15558
|
}, { deep: !0, immediate: !0 });
|
|
15544
15559
|
const Le = () => {
|
|
15545
15560
|
const t = m.formData.popupType;
|
|
@@ -15557,10 +15572,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15557
15572
|
De();
|
|
15558
15573
|
break;
|
|
15559
15574
|
case "remove":
|
|
15560
|
-
|
|
15575
|
+
oa();
|
|
15561
15576
|
break;
|
|
15562
15577
|
case "detail":
|
|
15563
|
-
|
|
15578
|
+
Ze();
|
|
15564
15579
|
break;
|
|
15565
15580
|
case "group":
|
|
15566
15581
|
g.value = !0;
|
|
@@ -15578,18 +15593,18 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15578
15593
|
B.value = !0;
|
|
15579
15594
|
break;
|
|
15580
15595
|
default:
|
|
15581
|
-
|
|
15596
|
+
w("custom-button", { value: f, label: "", icon: "", show: !0 });
|
|
15582
15597
|
}
|
|
15583
|
-
},
|
|
15584
|
-
|
|
15598
|
+
}, da = (t) => {
|
|
15599
|
+
w("custom-button", t);
|
|
15585
15600
|
}, p = (t) => {
|
|
15586
15601
|
const { field: f, filterValue: $ } = t;
|
|
15587
|
-
|
|
15602
|
+
w("column-filter", { field: f, filterValue: $ });
|
|
15588
15603
|
}, v = (t) => {
|
|
15589
15604
|
const { field: f } = t;
|
|
15590
|
-
|
|
15605
|
+
w("column-filter-reset", f);
|
|
15591
15606
|
}, ie = () => {
|
|
15592
|
-
L.value = "add", ue.value = "新增", de.value = !0,
|
|
15607
|
+
L.value = "add", ue.value = "新增", de.value = !0, na(() => {
|
|
15593
15608
|
var t;
|
|
15594
15609
|
(t = I.value) == null || t.initFormData({});
|
|
15595
15610
|
});
|
|
@@ -15597,10 +15612,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15597
15612
|
var f;
|
|
15598
15613
|
const t = (f = r.value) == null ? void 0 : f.getCheckboxRecords();
|
|
15599
15614
|
if (!t || t.length === 0) {
|
|
15600
|
-
|
|
15615
|
+
Ie.warning("请选择要复制的数据");
|
|
15601
15616
|
return;
|
|
15602
15617
|
}
|
|
15603
|
-
L.value = "copy", ue.value = "复制", de.value = !0,
|
|
15618
|
+
L.value = "copy", ue.value = "复制", de.value = !0, na(() => {
|
|
15604
15619
|
var $;
|
|
15605
15620
|
($ = I.value) == null || $.initFormData({ ...t[0] });
|
|
15606
15621
|
});
|
|
@@ -15608,141 +15623,141 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15608
15623
|
var $;
|
|
15609
15624
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15610
15625
|
if (!t || t.length === 0) {
|
|
15611
|
-
|
|
15626
|
+
Ie.warning("请选择要编辑的数据");
|
|
15612
15627
|
return;
|
|
15613
15628
|
}
|
|
15614
15629
|
if (t.length > 1) {
|
|
15615
|
-
|
|
15630
|
+
Ie.warning("只能选择一条数据进行编辑");
|
|
15616
15631
|
return;
|
|
15617
15632
|
}
|
|
15618
15633
|
const f = t[0];
|
|
15619
|
-
L.value = "edit", x.value = f, ue.value = "编辑", de.value = !0,
|
|
15620
|
-
var
|
|
15621
|
-
(
|
|
15634
|
+
L.value = "edit", x.value = f, ue.value = "编辑", de.value = !0, na(() => {
|
|
15635
|
+
var C;
|
|
15636
|
+
(C = I.value) == null || C.initFormData({ ...f });
|
|
15622
15637
|
});
|
|
15623
|
-
},
|
|
15638
|
+
}, Ze = () => {
|
|
15624
15639
|
var $;
|
|
15625
15640
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15626
15641
|
if (!t || t.length === 0) {
|
|
15627
|
-
|
|
15642
|
+
Ie.warning("请选择要查看的数据");
|
|
15628
15643
|
return;
|
|
15629
15644
|
}
|
|
15630
15645
|
if (t.length > 1) {
|
|
15631
|
-
|
|
15646
|
+
Ie.warning("只能选择一条数据查看详情");
|
|
15632
15647
|
return;
|
|
15633
15648
|
}
|
|
15634
15649
|
const f = t[0];
|
|
15635
|
-
L.value = "detail", ue.value = "详情", de.value = !0,
|
|
15636
|
-
var
|
|
15637
|
-
(
|
|
15650
|
+
L.value = "detail", ue.value = "详情", de.value = !0, na(() => {
|
|
15651
|
+
var C;
|
|
15652
|
+
(C = I.value) == null || C.initFormData({ ...f });
|
|
15638
15653
|
});
|
|
15639
|
-
},
|
|
15654
|
+
}, Ye = ({ row: t, column: f }) => {
|
|
15640
15655
|
var Z, se, pe;
|
|
15641
15656
|
if (!t || t._isEmpty)
|
|
15642
15657
|
return;
|
|
15643
|
-
|
|
15644
|
-
const $ = ((Z = m.formData) == null ? void 0 : Z.hasWorkflow) || !1,
|
|
15658
|
+
w("row-dblclick", t);
|
|
15659
|
+
const $ = ((Z = m.formData) == null ? void 0 : Z.hasWorkflow) || !1, C = t.FDOCUMENTSTATE === "C" || t.fdocumentstate === "C", K = !($ && C);
|
|
15645
15660
|
if (m.showType !== "dialog")
|
|
15646
15661
|
if (N.value && K) {
|
|
15647
15662
|
const $e = f && ((pe = (se = r.value) == null ? void 0 : se.getColumnByField) == null ? void 0 : pe.call(se, f.field));
|
|
15648
|
-
$e != null && $e.editRender || (L.value = "edit", x.value = t, ue.value = "编辑", de.value = !0,
|
|
15663
|
+
$e != null && $e.editRender || (L.value = "edit", x.value = t, ue.value = "编辑", de.value = !0, na(() => {
|
|
15649
15664
|
I.value && I.value.initFormData({ ...t });
|
|
15650
15665
|
}));
|
|
15651
|
-
} else !N.value && K ? (L.value = "edit", x.value = t, ue.value = "编辑", de.value = !0,
|
|
15666
|
+
} else !N.value && K ? (L.value = "edit", x.value = t, ue.value = "编辑", de.value = !0, na(() => {
|
|
15652
15667
|
I.value && I.value.initFormData({ ...t });
|
|
15653
|
-
})) : K || (L.value = "detail", ue.value = "详情", de.value = !0,
|
|
15668
|
+
})) : K || (L.value = "detail", ue.value = "详情", de.value = !0, na(() => {
|
|
15654
15669
|
I.value && I.value.initFormData({ ...t });
|
|
15655
|
-
}),
|
|
15656
|
-
},
|
|
15670
|
+
}), w("detail", t));
|
|
15671
|
+
}, aa = ({ row: t, column: f }) => {
|
|
15657
15672
|
if (!(!t || t._isEmpty)) {
|
|
15658
15673
|
if (m.showType === "dialog" && r.value)
|
|
15659
15674
|
if (m.selectionMode === "single")
|
|
15660
|
-
r.value.clearCheckboxRow(), r.value.setCheckboxRow(t, !0),
|
|
15675
|
+
r.value.clearCheckboxRow(), r.value.setCheckboxRow(t, !0), w("selection-change", [t]);
|
|
15661
15676
|
else {
|
|
15662
15677
|
const $ = r.value.isCheckedByCheckboxRow(t);
|
|
15663
15678
|
r.value.setCheckboxRow(t, !$);
|
|
15664
|
-
const
|
|
15665
|
-
|
|
15679
|
+
const C = r.value.getCheckboxRecords();
|
|
15680
|
+
w("selection-change", C);
|
|
15666
15681
|
}
|
|
15667
|
-
|
|
15682
|
+
w("row-click", t);
|
|
15668
15683
|
}
|
|
15669
|
-
},
|
|
15684
|
+
}, oa = () => {
|
|
15670
15685
|
var f;
|
|
15671
15686
|
const t = (f = r.value) == null ? void 0 : f.getCheckboxRecords();
|
|
15672
15687
|
if (!t || t.length === 0) {
|
|
15673
|
-
|
|
15688
|
+
Ie.warning("请选择要删除的数据");
|
|
15674
15689
|
return;
|
|
15675
15690
|
}
|
|
15676
|
-
|
|
15691
|
+
w("delete", t.length === 1 ? t[0] : t);
|
|
15677
15692
|
}, ya = () => {
|
|
15678
15693
|
var $;
|
|
15679
15694
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15680
15695
|
if (!t || t.length === 0) {
|
|
15681
|
-
|
|
15696
|
+
Ie.warning("请选择要删除的数据");
|
|
15682
15697
|
return;
|
|
15683
15698
|
}
|
|
15684
|
-
const f = t.map((
|
|
15685
|
-
|
|
15699
|
+
const f = t.map((C) => String(C.fid || C.id));
|
|
15700
|
+
w("batch-delete", f);
|
|
15686
15701
|
}, Na = ({ row: t, column: f }) => {
|
|
15687
15702
|
if (!N.value || !t || !f) return;
|
|
15688
15703
|
const $ = f.field || f.property;
|
|
15689
15704
|
if ($) {
|
|
15690
|
-
const
|
|
15691
|
-
E.value.set(
|
|
15705
|
+
const C = `${t.fid}_${$}`;
|
|
15706
|
+
E.value.set(C, t[$]);
|
|
15692
15707
|
}
|
|
15693
15708
|
}, Ba = ({ row: t, column: f }) => {
|
|
15694
15709
|
if (!N.value || !t || t._isEmpty) return;
|
|
15695
|
-
const $ = t.fid,
|
|
15710
|
+
const $ = t.fid, C = { _originalId: $ };
|
|
15696
15711
|
for (const [K, Z] of Object.entries(t))
|
|
15697
|
-
Z !== void 0 && (
|
|
15698
|
-
H.value.set($,
|
|
15712
|
+
Z !== void 0 && (C[K] = Z);
|
|
15713
|
+
H.value.set($, C), r.value && (r.value.setCheckboxRow(t, !0), W.value.add($)), ge.value = !0;
|
|
15699
15714
|
}, qa = ({ row: t, column: f }) => {
|
|
15700
15715
|
if (N.value)
|
|
15701
15716
|
if (t._isEmpty) {
|
|
15702
|
-
if (Object.keys(t).some((
|
|
15703
|
-
const
|
|
15704
|
-
delete
|
|
15717
|
+
if (Object.keys(t).some((C) => C === "fid" || C === "_isEmpty" ? !1 : t[C] !== null && t[C] !== void 0 && t[C] !== "")) {
|
|
15718
|
+
const C = { ...t };
|
|
15719
|
+
delete C._isEmpty, C.fid = `temp_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
15705
15720
|
const K = {};
|
|
15706
|
-
for (const [Z, se] of Object.entries(
|
|
15721
|
+
for (const [Z, se] of Object.entries(C))
|
|
15707
15722
|
se !== void 0 && (K[Z] = se);
|
|
15708
|
-
|
|
15723
|
+
w("inline-save", [K]);
|
|
15709
15724
|
}
|
|
15710
15725
|
} else {
|
|
15711
15726
|
const $ = (f == null ? void 0 : f.field) || (f == null ? void 0 : f.property);
|
|
15712
15727
|
if ($ && t.fid) {
|
|
15713
|
-
const
|
|
15728
|
+
const C = `${t.fid}_${$}`, K = E.value.get(C), Z = t[$];
|
|
15714
15729
|
if (K !== Z) {
|
|
15715
15730
|
const se = { _originalId: t.fid };
|
|
15716
15731
|
for (const [pe, $e] of Object.entries(t))
|
|
15717
15732
|
$e !== void 0 && (se[pe] = $e);
|
|
15718
|
-
|
|
15733
|
+
w("inline-save", [se]);
|
|
15719
15734
|
}
|
|
15720
|
-
E.value.delete(
|
|
15735
|
+
E.value.delete(C);
|
|
15721
15736
|
}
|
|
15722
15737
|
}
|
|
15723
15738
|
}, La = async () => {
|
|
15724
15739
|
if (!ge.value || H.value.size === 0) {
|
|
15725
|
-
|
|
15740
|
+
Ie.warning("没有需要保存的更改");
|
|
15726
15741
|
return;
|
|
15727
15742
|
}
|
|
15728
15743
|
try {
|
|
15729
15744
|
const t = Array.from(H.value.values()).map((f) => {
|
|
15730
15745
|
const $ = {};
|
|
15731
|
-
for (const [
|
|
15732
|
-
K !== void 0 && ($[
|
|
15746
|
+
for (const [C, K] of Object.entries(f))
|
|
15747
|
+
K !== void 0 && ($[C] = K);
|
|
15733
15748
|
return $;
|
|
15734
15749
|
});
|
|
15735
|
-
|
|
15750
|
+
w("inline-save", t), H.value.clear(), W.value.clear(), ge.value = !1, r.value && r.value.clearCheckboxRow();
|
|
15736
15751
|
} catch {
|
|
15737
|
-
|
|
15752
|
+
Ie.error("保存失败");
|
|
15738
15753
|
}
|
|
15739
15754
|
}, wa = async () => {
|
|
15740
|
-
var $,
|
|
15755
|
+
var $, C, K, Z;
|
|
15741
15756
|
if (!await (($ = I.value) == null ? void 0 : $.validate())) {
|
|
15742
|
-
|
|
15757
|
+
Ie.error("请完善表单信息");
|
|
15743
15758
|
return;
|
|
15744
15759
|
}
|
|
15745
|
-
const f = (
|
|
15760
|
+
const f = (C = I.value) == null ? void 0 : C.getFormData();
|
|
15746
15761
|
if ((K = m.formData.funcs) != null && K.beforeSubmit)
|
|
15747
15762
|
try {
|
|
15748
15763
|
await new Function("context", `
|
|
@@ -15760,10 +15775,10 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15760
15775
|
onlineUtils: {}
|
|
15761
15776
|
});
|
|
15762
15777
|
} catch (se) {
|
|
15763
|
-
console.error("执行 beforeSubmit 出错:", se),
|
|
15778
|
+
console.error("执行 beforeSubmit 出错:", se), Ie.error("提交前验证失败");
|
|
15764
15779
|
return;
|
|
15765
15780
|
}
|
|
15766
|
-
if (L.value === "add" ?
|
|
15781
|
+
if (L.value === "add" ? w("add", f) : L.value === "edit" && (x.value && (x.value.fid !== void 0 && (f.fid = x.value.fid), x.value.id !== void 0 && (f.id = x.value.id)), w("edit", f)), (Z = m.formData.funcs) != null && Z.afterSubmit)
|
|
15767
15782
|
try {
|
|
15768
15783
|
new Function("context", `
|
|
15769
15784
|
const { formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
|
|
@@ -15783,7 +15798,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15783
15798
|
} catch (se) {
|
|
15784
15799
|
console.error("执行 afterSubmit 出错:", se);
|
|
15785
15800
|
}
|
|
15786
|
-
de.value = !1,
|
|
15801
|
+
de.value = !1, w("refresh");
|
|
15787
15802
|
}, ja = async () => {
|
|
15788
15803
|
await wa(), setTimeout(() => {
|
|
15789
15804
|
ie();
|
|
@@ -15791,14 +15806,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15791
15806
|
}, Aa = () => {
|
|
15792
15807
|
de.value = !1;
|
|
15793
15808
|
}, Wa = (t) => {
|
|
15794
|
-
|
|
15809
|
+
w("select-org-data", t);
|
|
15795
15810
|
}, Ya = (t) => {
|
|
15796
|
-
|
|
15811
|
+
w("page-change", {
|
|
15797
15812
|
currentPage: t.current,
|
|
15798
15813
|
pageSize: S.value
|
|
15799
15814
|
});
|
|
15800
15815
|
}, Ua = (t) => {
|
|
15801
|
-
d.value = 1,
|
|
15816
|
+
d.value = 1, w("page-change", {
|
|
15802
15817
|
currentPage: 1,
|
|
15803
15818
|
pageSize: t
|
|
15804
15819
|
});
|
|
@@ -15807,44 +15822,44 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15807
15822
|
const f = t.records || [];
|
|
15808
15823
|
if (f.length > 1) {
|
|
15809
15824
|
const $ = f[f.length - 1];
|
|
15810
|
-
|
|
15811
|
-
r.value.clearCheckboxRow(), r.value.setCheckboxRow($, !0),
|
|
15825
|
+
na(() => {
|
|
15826
|
+
r.value.clearCheckboxRow(), r.value.setCheckboxRow($, !0), w("selection-change", [$]);
|
|
15812
15827
|
});
|
|
15813
15828
|
return;
|
|
15814
15829
|
}
|
|
15815
15830
|
}
|
|
15816
|
-
|
|
15831
|
+
w("selection-change", t.records || []);
|
|
15817
15832
|
}, Ha = (t) => {
|
|
15818
15833
|
if (m.selectionMode === "single" && r.value) {
|
|
15819
15834
|
const f = t.records || [];
|
|
15820
15835
|
if (f.length > 0) {
|
|
15821
|
-
|
|
15822
|
-
r.value.clearCheckboxRow(), r.value.setCheckboxRow(f[0], !0),
|
|
15836
|
+
na(() => {
|
|
15837
|
+
r.value.clearCheckboxRow(), r.value.setCheckboxRow(f[0], !0), w("selection-change", [f[0]]);
|
|
15823
15838
|
});
|
|
15824
15839
|
return;
|
|
15825
15840
|
}
|
|
15826
15841
|
}
|
|
15827
|
-
|
|
15842
|
+
w("selection-change", t.records || []);
|
|
15828
15843
|
}, Ra = (t) => {
|
|
15829
|
-
|
|
15844
|
+
w("filter-search", t);
|
|
15830
15845
|
}, Ja = () => {
|
|
15831
|
-
|
|
15846
|
+
w("filter-reset");
|
|
15832
15847
|
}, Ka = (t) => {
|
|
15833
|
-
|
|
15848
|
+
w("save-plan", t);
|
|
15834
15849
|
}, _a = (t) => {
|
|
15835
|
-
|
|
15850
|
+
w("delete-plan", t);
|
|
15836
15851
|
}, Ga = (t) => {
|
|
15837
|
-
|
|
15852
|
+
w("copy-plan", t);
|
|
15838
15853
|
}, Xa = (t) => {
|
|
15839
|
-
|
|
15854
|
+
w("set-default-plan", t);
|
|
15840
15855
|
}, Qa = (t) => {
|
|
15841
|
-
|
|
15856
|
+
w("update-plan", t);
|
|
15842
15857
|
}, Za = (t) => {
|
|
15843
|
-
|
|
15858
|
+
w("load-users", t);
|
|
15844
15859
|
}, el = (t) => {
|
|
15845
|
-
|
|
15860
|
+
w("search-persons", t);
|
|
15846
15861
|
}, ha = (t) => {
|
|
15847
|
-
|
|
15862
|
+
w("dept-click", t);
|
|
15848
15863
|
}, xa = (t) => {
|
|
15849
15864
|
t && t.length > 0 && (t.forEach((f) => {
|
|
15850
15865
|
oe.value.set(f.value, {
|
|
@@ -15852,55 +15867,55 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15852
15867
|
fixed: f.fixed && f.fixed !== "none" ? f.fixed : void 0,
|
|
15853
15868
|
show: f.show
|
|
15854
15869
|
});
|
|
15855
|
-
}),
|
|
15856
|
-
re.columns =
|
|
15857
|
-
})),
|
|
15870
|
+
}), na(() => {
|
|
15871
|
+
re.columns = ra(), r.value && r.value.refreshColumn();
|
|
15872
|
+
})), w("column-change", t);
|
|
15858
15873
|
}, al = (t) => {
|
|
15859
|
-
X.value = t || [],
|
|
15874
|
+
X.value = t || [], w("color-filter-change", t);
|
|
15860
15875
|
}, ll = () => {
|
|
15861
|
-
X.value = [],
|
|
15876
|
+
X.value = [], w("color-filter-clear");
|
|
15862
15877
|
}, tl = ve(() => {
|
|
15863
15878
|
var t;
|
|
15864
15879
|
return ((t = m.businessFlow) == null ? void 0 : t.downstream) && m.businessFlow.downstream.length > 0;
|
|
15865
15880
|
}), Ea = () => {
|
|
15866
|
-
var $,
|
|
15881
|
+
var $, C;
|
|
15867
15882
|
const t = ($ = r.value) == null ? void 0 : $.getCheckboxRecords();
|
|
15868
15883
|
if (!t || t.length === 0) {
|
|
15869
|
-
|
|
15884
|
+
Ie.warning("请选择要下推的数据");
|
|
15870
15885
|
return;
|
|
15871
15886
|
}
|
|
15872
|
-
const f = ((
|
|
15887
|
+
const f = ((C = m.businessFlow) == null ? void 0 : C.downstream) || [];
|
|
15873
15888
|
if (f.length === 0) {
|
|
15874
|
-
|
|
15889
|
+
Ie.warning("未配置下游单据");
|
|
15875
15890
|
return;
|
|
15876
15891
|
}
|
|
15877
|
-
f.length === 1 ?
|
|
15892
|
+
f.length === 1 ? w("push-down", { downstream: f[0], selectedRows: t }) : P.value = !0;
|
|
15878
15893
|
}, nl = () => {
|
|
15879
15894
|
var f;
|
|
15880
15895
|
if (!G.value) {
|
|
15881
|
-
|
|
15896
|
+
Ie.warning("请选择下推目标");
|
|
15882
15897
|
return;
|
|
15883
15898
|
}
|
|
15884
15899
|
const t = (f = r.value) == null ? void 0 : f.getCheckboxRecords();
|
|
15885
|
-
|
|
15900
|
+
w("push-down", { downstream: G.value, selectedRows: t }), P.value = !1, G.value = null;
|
|
15886
15901
|
}, Pa = (t) => {
|
|
15887
|
-
|
|
15902
|
+
w("select-upstream", { upstream: t });
|
|
15888
15903
|
}, Ia = () => {
|
|
15889
15904
|
var $;
|
|
15890
15905
|
if (!R.value || R.value.length === 0) {
|
|
15891
15906
|
if (re.aggregateConfig = {}, re.columns) {
|
|
15892
|
-
const
|
|
15893
|
-
|
|
15907
|
+
const C = re.columns.findIndex((K) => K.field === "group");
|
|
15908
|
+
C > -1 && re.columns.splice(C, 1), re.columns.forEach((K) => {
|
|
15894
15909
|
K.rowGroupNode && (K.rowGroupNode = !1, delete K.slots);
|
|
15895
15910
|
});
|
|
15896
15911
|
}
|
|
15897
|
-
return g.value = !1,
|
|
15912
|
+
return g.value = !1, w("group", { groupFields: [], mergeFields: !1 }), !0;
|
|
15898
15913
|
}
|
|
15899
15914
|
g.value = !1;
|
|
15900
|
-
const t = R.value.filter((
|
|
15901
|
-
return t.length === 0 ? (re.aggregateConfig = {}, g.value = !1,
|
|
15902
|
-
|
|
15903
|
-
}), !(($ = re.columns) == null ? void 0 : $.some((
|
|
15915
|
+
const t = R.value.filter((C) => C && C.trim() !== "");
|
|
15916
|
+
return t.length === 0 ? (re.aggregateConfig = {}, g.value = !1, w("group", { groupFields: [], mergeFields: !1 }), !0) : (re.data && Array.isArray(re.data) && re.data.forEach((C) => {
|
|
15917
|
+
C.group = t.map((K) => C[K] || "").join("-");
|
|
15918
|
+
}), !(($ = re.columns) == null ? void 0 : $.some((C) => C.field === "group")) && re.columns && re.columns.splice(1, 0, {
|
|
15904
15919
|
field: "group",
|
|
15905
15920
|
title: "分组",
|
|
15906
15921
|
width: 200,
|
|
@@ -15916,34 +15931,34 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15916
15931
|
mode: "column",
|
|
15917
15932
|
groupFields: t,
|
|
15918
15933
|
showTotal: !0
|
|
15919
|
-
},
|
|
15934
|
+
}, w("group", {
|
|
15920
15935
|
groupFields: t,
|
|
15921
15936
|
mergeFields: O.value,
|
|
15922
|
-
updatedData:
|
|
15937
|
+
updatedData: Be.value
|
|
15923
15938
|
}), g.value = !1, !0);
|
|
15924
15939
|
}, ol = () => {
|
|
15925
15940
|
g.value = !1;
|
|
15926
15941
|
}, Ce = (t) => {
|
|
15927
15942
|
console.log("选择文件:", t);
|
|
15928
|
-
},
|
|
15943
|
+
}, Ee = () => {
|
|
15929
15944
|
if (k.value.length === 0) {
|
|
15930
|
-
|
|
15945
|
+
Ie.warning("请选择要导入的文件");
|
|
15931
15946
|
return;
|
|
15932
15947
|
}
|
|
15933
15948
|
const t = k.value[0];
|
|
15934
|
-
|
|
15949
|
+
w("import", t), ne.value = !1, k.value = [];
|
|
15935
15950
|
}, me = () => {
|
|
15936
|
-
|
|
15951
|
+
w("export");
|
|
15937
15952
|
}, va = (t) => {
|
|
15938
|
-
|
|
15939
|
-
},
|
|
15953
|
+
w("share", t), B.value = !1;
|
|
15954
|
+
}, ua = F(/* @__PURE__ */ new Map()), Oa = ve(() => {
|
|
15940
15955
|
const t = [];
|
|
15941
15956
|
return !m.formData.fields || m.formData.fields.length === 0 || m.formData.fields.forEach((f) => {
|
|
15942
15957
|
const $ = f.__config__;
|
|
15943
15958
|
if ($.cdkey === "vxeSubGrid" && !$.noShow) {
|
|
15944
|
-
const
|
|
15959
|
+
const C = f.__vModel__, K = f.children || f.__config__.children || [];
|
|
15945
15960
|
t.push({
|
|
15946
|
-
vModel:
|
|
15961
|
+
vModel: C,
|
|
15947
15962
|
label: $.label,
|
|
15948
15963
|
children: K,
|
|
15949
15964
|
field: f
|
|
@@ -15952,27 +15967,27 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
15952
15967
|
}), t;
|
|
15953
15968
|
}), il = (t, f) => {
|
|
15954
15969
|
const $ = String(t.id);
|
|
15955
|
-
|
|
15956
|
-
const
|
|
15957
|
-
|
|
15970
|
+
ua.value.has(f) || ua.value.set(f, /* @__PURE__ */ new Set());
|
|
15971
|
+
const C = ua.value.get(f);
|
|
15972
|
+
C.has($) ? (C.delete($), !Array.from(ua.value.entries()).some(([se, pe]) => se !== f && pe.has($)) && r.value && r.value.setRowExpand(t, !1)) : (C.add($), r.value && r.value.setRowExpand(t, !0));
|
|
15958
15973
|
}, fl = (t, f) => {
|
|
15959
|
-
var
|
|
15974
|
+
var C;
|
|
15960
15975
|
const $ = String(t.id);
|
|
15961
|
-
return ((
|
|
15976
|
+
return ((C = ua.value.get(f)) == null ? void 0 : C.has($)) || !1;
|
|
15962
15977
|
}, Pl = (t) => {
|
|
15963
15978
|
const f = [];
|
|
15964
|
-
return (t.children || []).forEach((
|
|
15965
|
-
const K =
|
|
15979
|
+
return (t.children || []).forEach((C) => {
|
|
15980
|
+
const K = C.__config__;
|
|
15966
15981
|
if (!K || K.noShow)
|
|
15967
15982
|
return;
|
|
15968
|
-
const Z =
|
|
15983
|
+
const Z = C.field || C.__vModel__;
|
|
15969
15984
|
if (!Z)
|
|
15970
15985
|
return;
|
|
15971
15986
|
const se = {
|
|
15972
15987
|
field: Z,
|
|
15973
|
-
title:
|
|
15974
|
-
width:
|
|
15975
|
-
align:
|
|
15988
|
+
title: C.title || K.label || Z,
|
|
15989
|
+
width: C.width || C.minWidth || K.tableWidth || 150,
|
|
15990
|
+
align: C.align || K.tableAlign || "left",
|
|
15976
15991
|
sortable: !1
|
|
15977
15992
|
};
|
|
15978
15993
|
f.push(se);
|
|
@@ -16002,8 +16017,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16002
16017
|
formRenderRef: I,
|
|
16003
16018
|
handleAdd: ie,
|
|
16004
16019
|
handleEdit: De,
|
|
16005
|
-
handleDelete:
|
|
16006
|
-
handleDetail:
|
|
16020
|
+
handleDelete: oa,
|
|
16021
|
+
handleDetail: Ze,
|
|
16007
16022
|
handleSaveChanges: La,
|
|
16008
16023
|
handlePushDown: Ea,
|
|
16009
16024
|
handleSelectUpstream: Pa,
|
|
@@ -16012,14 +16027,14 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16012
16027
|
selectedGroupField: R,
|
|
16013
16028
|
mergeGroupFields: O,
|
|
16014
16029
|
openFormPopup: (t = {}, f = "新增") => {
|
|
16015
|
-
L.value = "add", ue.value = f, de.value = !0,
|
|
16030
|
+
L.value = "add", ue.value = f, de.value = !0, na(() => {
|
|
16016
16031
|
var $;
|
|
16017
16032
|
($ = I.value) == null || $.initFormData(t);
|
|
16018
16033
|
});
|
|
16019
16034
|
}
|
|
16020
16035
|
}), (t, f) => {
|
|
16021
16036
|
var pl, gl, hl, bl, yl;
|
|
16022
|
-
const $ = M("t-button"),
|
|
16037
|
+
const $ = M("t-button"), C = M("t-dropdown-item"), K = M("t-dropdown-menu"), Z = M("t-dropdown"), se = M("t-select"), pe = M("t-switch"), $e = M("t-dialog"), Ue = M("t-radio"), Pe = M("t-radio-group"), Ne = M("t-upload"), Ge = M("t-tag"), Xe = M("vxe-grid"), Re = M("t-pagination"), ta = M("t-space"), $a = M("t-drawer");
|
|
16023
16038
|
return l(), o("div", Pf, [
|
|
16024
16039
|
e("div", If, [
|
|
16025
16040
|
e("div", Of, [
|
|
@@ -16083,17 +16098,17 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16083
16098
|
} : void 0
|
|
16084
16099
|
]), 1024),
|
|
16085
16100
|
s(K, {
|
|
16086
|
-
onClick: f[0] || (f[0] = (
|
|
16101
|
+
onClick: f[0] || (f[0] = (He) => je({ value: He.value }))
|
|
16087
16102
|
}, {
|
|
16088
16103
|
default: i(() => [
|
|
16089
|
-
(l(!0), o(fe, null, be(he.children.filter((
|
|
16090
|
-
key:
|
|
16091
|
-
value:
|
|
16092
|
-
disabled:
|
|
16093
|
-
divider:
|
|
16104
|
+
(l(!0), o(fe, null, be(he.children.filter((He) => He.show !== !1), (He) => (l(), j(C, {
|
|
16105
|
+
key: He.value || Math.random(),
|
|
16106
|
+
value: He.value,
|
|
16107
|
+
disabled: He.disabled,
|
|
16108
|
+
divider: He.divider
|
|
16094
16109
|
}, {
|
|
16095
16110
|
default: i(() => [
|
|
16096
|
-
A(V(
|
|
16111
|
+
A(V(He.label), 1)
|
|
16097
16112
|
]),
|
|
16098
16113
|
_: 2
|
|
16099
16114
|
}, 1032, ["value", "disabled", "divider"]))), 128))
|
|
@@ -16107,7 +16122,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16107
16122
|
variant: "outline",
|
|
16108
16123
|
size: "small",
|
|
16109
16124
|
theme: "primary",
|
|
16110
|
-
onClick: (
|
|
16125
|
+
onClick: (He) => je({ value: he.value })
|
|
16111
16126
|
}, ba({
|
|
16112
16127
|
default: i(() => [
|
|
16113
16128
|
A(" " + V(he.label), 1)
|
|
@@ -16125,7 +16140,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16125
16140
|
variant: "outline",
|
|
16126
16141
|
size: "small",
|
|
16127
16142
|
key: he.value,
|
|
16128
|
-
onClick: (
|
|
16143
|
+
onClick: (He) => da(he)
|
|
16129
16144
|
}, ba({
|
|
16130
16145
|
default: i(() => [
|
|
16131
16146
|
A(" " + V(he.label), 1)
|
|
@@ -16173,7 +16188,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16173
16188
|
modelValue: R.value,
|
|
16174
16189
|
"onUpdate:modelValue": f[1] || (f[1] = (he) => R.value = he),
|
|
16175
16190
|
placeholder: "请选择要分组的字段(可多选)",
|
|
16176
|
-
options:
|
|
16191
|
+
options: Oe.value,
|
|
16177
16192
|
keys: { label: "label", value: "value" },
|
|
16178
16193
|
multiple: "",
|
|
16179
16194
|
clearable: ""
|
|
@@ -16200,7 +16215,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16200
16215
|
onConfirm: nl
|
|
16201
16216
|
}, {
|
|
16202
16217
|
default: i(() => [
|
|
16203
|
-
s(
|
|
16218
|
+
s(Pe, {
|
|
16204
16219
|
modelValue: G.value,
|
|
16205
16220
|
"onUpdate:modelValue": f[4] || (f[4] = (he) => G.value = he),
|
|
16206
16221
|
class: "push-down-options"
|
|
@@ -16208,12 +16223,12 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16208
16223
|
default: i(() => {
|
|
16209
16224
|
var he;
|
|
16210
16225
|
return [
|
|
16211
|
-
(l(!0), o(fe, null, be(((he = a.businessFlow) == null ? void 0 : he.downstream) || [], (
|
|
16212
|
-
key:
|
|
16213
|
-
value:
|
|
16226
|
+
(l(!0), o(fe, null, be(((he = a.businessFlow) == null ? void 0 : he.downstream) || [], (He) => (l(), j(Ue, {
|
|
16227
|
+
key: He.formId,
|
|
16228
|
+
value: He
|
|
16214
16229
|
}, {
|
|
16215
16230
|
default: i(() => [
|
|
16216
|
-
A(V(
|
|
16231
|
+
A(V(He.formName), 1)
|
|
16217
16232
|
]),
|
|
16218
16233
|
_: 2
|
|
16219
16234
|
}, 1032, ["value"]))), 128))
|
|
@@ -16234,7 +16249,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16234
16249
|
}, {
|
|
16235
16250
|
default: i(() => [
|
|
16236
16251
|
e("div", jf, [
|
|
16237
|
-
s(
|
|
16252
|
+
s(Ne, {
|
|
16238
16253
|
modelValue: k.value,
|
|
16239
16254
|
"onUpdate:modelValue": f[6] || (f[6] = (he) => k.value = he),
|
|
16240
16255
|
theme: "file-input",
|
|
@@ -16270,7 +16285,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16270
16285
|
}),
|
|
16271
16286
|
s($, {
|
|
16272
16287
|
theme: "primary",
|
|
16273
|
-
onClick:
|
|
16288
|
+
onClick: Ee
|
|
16274
16289
|
}, {
|
|
16275
16290
|
default: i(() => [...f[25] || (f[25] = [
|
|
16276
16291
|
A("确定导入", -1)
|
|
@@ -16300,7 +16315,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16300
16315
|
ref_key: "tableContainerRef",
|
|
16301
16316
|
ref: D
|
|
16302
16317
|
}, [
|
|
16303
|
-
s(
|
|
16318
|
+
s(Xe, Fa({
|
|
16304
16319
|
ref_key: "tableRef",
|
|
16305
16320
|
ref: r
|
|
16306
16321
|
}, re, {
|
|
@@ -16310,8 +16325,8 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16310
16325
|
onEditActived: Na,
|
|
16311
16326
|
onEditClosed: qa,
|
|
16312
16327
|
onEditChange: Ba,
|
|
16313
|
-
onCellClick:
|
|
16314
|
-
onCellDblclick:
|
|
16328
|
+
onCellClick: aa,
|
|
16329
|
+
onCellDblclick: Ye,
|
|
16315
16330
|
onFilterChange: p,
|
|
16316
16331
|
onFilterReset: v,
|
|
16317
16332
|
style: {
|
|
@@ -16323,7 +16338,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16323
16338
|
re.footerData && re.footerData[he] ? (l(), o("span", Yf, V(re.footerData[he].checkbox), 1)) : Y("", !0)
|
|
16324
16339
|
]),
|
|
16325
16340
|
nameGroupContent: i(({ groupContent: he }) => [
|
|
16326
|
-
s(
|
|
16341
|
+
s(Ge, {
|
|
16327
16342
|
theme: "warning",
|
|
16328
16343
|
variant: "light"
|
|
16329
16344
|
}, {
|
|
@@ -16333,19 +16348,19 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16333
16348
|
_: 2
|
|
16334
16349
|
}, 1024)
|
|
16335
16350
|
]),
|
|
16336
|
-
nameDefault: i(({ row: he, column:
|
|
16337
|
-
A(V(he[
|
|
16351
|
+
nameDefault: i(({ row: he, column: He }) => [
|
|
16352
|
+
A(V(he[He.field]), 1)
|
|
16338
16353
|
]),
|
|
16339
16354
|
expand_content_unified: i(({ row: he }) => [
|
|
16340
16355
|
e("div", Hf, [
|
|
16341
|
-
(l(!0), o(fe, null, be(Oa.value, (
|
|
16342
|
-
key: `content_${
|
|
16356
|
+
(l(!0), o(fe, null, be(Oa.value, (He) => (l(), o(fe, {
|
|
16357
|
+
key: `content_${He.vModel}`
|
|
16343
16358
|
}, [
|
|
16344
|
-
fl(he,
|
|
16345
|
-
e("div", Kf, V(
|
|
16346
|
-
s(
|
|
16347
|
-
data: he[
|
|
16348
|
-
columns: Pl(
|
|
16359
|
+
fl(he, He.vModel) ? (l(), o("div", Jf, [
|
|
16360
|
+
e("div", Kf, V(He.label), 1),
|
|
16361
|
+
s(Xe, Fa({ ref_for: !0 }, Il, {
|
|
16362
|
+
data: he[He.vModel] || [],
|
|
16363
|
+
columns: Pl(He)
|
|
16349
16364
|
}), null, 16, ["data", "columns"])
|
|
16350
16365
|
])) : Y("", !0)
|
|
16351
16366
|
], 64))), 128))
|
|
@@ -16355,38 +16370,38 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16355
16370
|
}, [
|
|
16356
16371
|
be(Oa.value, (he) => ({
|
|
16357
16372
|
name: `subgrid_trigger_${he.vModel}`,
|
|
16358
|
-
fn: i(({ row:
|
|
16373
|
+
fn: i(({ row: He }) => [
|
|
16359
16374
|
s($, {
|
|
16360
16375
|
variant: "text",
|
|
16361
16376
|
size: "small",
|
|
16362
|
-
disabled: !
|
|
16363
|
-
onClick: (Va) => il(
|
|
16377
|
+
disabled: !He[he.vModel] || He[he.vModel].length === 0,
|
|
16378
|
+
onClick: (Va) => il(He, he.vModel)
|
|
16364
16379
|
}, {
|
|
16365
16380
|
icon: i(() => [
|
|
16366
16381
|
e("i", {
|
|
16367
|
-
class: xe(fl(
|
|
16382
|
+
class: xe(fl(He, he.vModel) ? "ri-arrow-down-s-line" : "ri-arrow-right-s-line")
|
|
16368
16383
|
}, null, 2)
|
|
16369
16384
|
]),
|
|
16370
16385
|
default: i(() => {
|
|
16371
16386
|
var Va;
|
|
16372
16387
|
return [
|
|
16373
|
-
A(" " + V(((Va =
|
|
16388
|
+
A(" " + V(((Va = He[he.vModel]) == null ? void 0 : Va.length) || 0) + " 条 ", 1)
|
|
16374
16389
|
];
|
|
16375
16390
|
}),
|
|
16376
16391
|
_: 2
|
|
16377
16392
|
}, 1032, ["disabled", "onClick"])
|
|
16378
16393
|
])
|
|
16379
16394
|
})),
|
|
16380
|
-
be(t.$slots, (he,
|
|
16381
|
-
name:
|
|
16395
|
+
be(t.$slots, (he, He) => ({
|
|
16396
|
+
name: He,
|
|
16382
16397
|
fn: i((Va) => [
|
|
16383
|
-
fa(t.$slots,
|
|
16398
|
+
fa(t.$slots, He, Nl(Bl(Va)), void 0, !0)
|
|
16384
16399
|
])
|
|
16385
16400
|
}))
|
|
16386
16401
|
]), 1040, ["edit-config"])
|
|
16387
16402
|
], 512),
|
|
16388
|
-
_.value.hasPage &&
|
|
16389
|
-
s(
|
|
16403
|
+
_.value.hasPage && Be.value.length > 0 ? (l(), o("div", Gf, [
|
|
16404
|
+
s(Re, {
|
|
16390
16405
|
modelValue: d.value,
|
|
16391
16406
|
"onUpdate:modelValue": f[10] || (f[10] = (he) => d.value = he),
|
|
16392
16407
|
pageSize: S.value,
|
|
@@ -16424,11 +16439,11 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16424
16439
|
mode: L.value,
|
|
16425
16440
|
"relation-form-data": a.relationFormData,
|
|
16426
16441
|
onSelectOrgData: Wa,
|
|
16427
|
-
onI18nClick: f[13] || (f[13] = (he) =>
|
|
16428
|
-
onRelationFormSearch: f[14] || (f[14] = (he) =>
|
|
16429
|
-
onRelationFormAdvanced: f[15] || (f[15] = (he) =>
|
|
16430
|
-
onRelationFormDialogSearch: f[16] || (f[16] = (he) =>
|
|
16431
|
-
onRelationFormPageChange: f[17] || (f[17] = (he) =>
|
|
16442
|
+
onI18nClick: f[13] || (f[13] = (he) => w("i18n-click", he)),
|
|
16443
|
+
onRelationFormSearch: f[14] || (f[14] = (he) => w("relation-form-search", he)),
|
|
16444
|
+
onRelationFormAdvanced: f[15] || (f[15] = (he) => w("relation-form-advanced", he)),
|
|
16445
|
+
onRelationFormDialogSearch: f[16] || (f[16] = (he) => w("relation-form-dialog-search", he)),
|
|
16446
|
+
onRelationFormPageChange: f[17] || (f[17] = (he) => w("relation-form-page-change", he))
|
|
16432
16447
|
}, null, 8, ["form-conf", "fields", "modelValue", "mode", "relation-form-data"])
|
|
16433
16448
|
]),
|
|
16434
16449
|
_: 2
|
|
@@ -16436,7 +16451,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16436
16451
|
L.value !== "detail" ? {
|
|
16437
16452
|
name: "footer",
|
|
16438
16453
|
fn: i(() => [
|
|
16439
|
-
s(
|
|
16454
|
+
s(ta, null, {
|
|
16440
16455
|
default: i(() => [
|
|
16441
16456
|
a.formData.hasCancelBtn ? (l(), j($, {
|
|
16442
16457
|
key: 0,
|
|
@@ -16479,7 +16494,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16479
16494
|
]);
|
|
16480
16495
|
};
|
|
16481
16496
|
}
|
|
16482
|
-
}), El = /* @__PURE__ */
|
|
16497
|
+
}), El = /* @__PURE__ */ ea(Xf, [["__scopeId", "data-v-75bd63e1"]]), Qf = { class: "field-manage-header" }, Zf = { class: "field-manage-content" }, em = { class: "field-manage-toolbar" }, am = /* @__PURE__ */ Je({
|
|
16483
16498
|
__name: "FieldManageDialog",
|
|
16484
16499
|
props: {
|
|
16485
16500
|
modelValue: { type: Boolean },
|
|
@@ -16583,7 +16598,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16583
16598
|
default: "actions"
|
|
16584
16599
|
}
|
|
16585
16600
|
}
|
|
16586
|
-
],
|
|
16601
|
+
], w = {
|
|
16587
16602
|
trigger: "click",
|
|
16588
16603
|
mode: "cell",
|
|
16589
16604
|
showStatus: !0
|
|
@@ -16598,7 +16613,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16598
16613
|
span: 12,
|
|
16599
16614
|
options: []
|
|
16600
16615
|
};
|
|
16601
|
-
c.value.push(S),
|
|
16616
|
+
c.value.push(S), Ie.success("字段已添加");
|
|
16602
16617
|
}, I = (d) => {
|
|
16603
16618
|
const S = {
|
|
16604
16619
|
__config__: {
|
|
@@ -16721,7 +16736,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16721
16736
|
uploadImg: "Upload",
|
|
16722
16737
|
uploadFile: "Upload"
|
|
16723
16738
|
})[d] || "Input", q = (d) => {
|
|
16724
|
-
c.value.splice(d, 1),
|
|
16739
|
+
c.value.splice(d, 1), Ie.success("字段已删除");
|
|
16725
16740
|
}, ee = (d) => {
|
|
16726
16741
|
if (d > 0) {
|
|
16727
16742
|
const S = c.value[d];
|
|
@@ -16745,7 +16760,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16745
16760
|
__vModel__: S.fieldName,
|
|
16746
16761
|
placeholder: S.placeholder || `请输入${S.label}`
|
|
16747
16762
|
} : I(S));
|
|
16748
|
-
y("save", d), u.value = !1,
|
|
16763
|
+
y("save", d), u.value = !1, Ie.success("字段配置已保存");
|
|
16749
16764
|
}, H = () => {
|
|
16750
16765
|
u.value = !1;
|
|
16751
16766
|
}, E = () => {
|
|
@@ -16844,7 +16859,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16844
16859
|
s(ue, Fa({ ref: "gridRef" }, U, {
|
|
16845
16860
|
data: c.value,
|
|
16846
16861
|
columns: _,
|
|
16847
|
-
editConfig:
|
|
16862
|
+
editConfig: w,
|
|
16848
16863
|
onEditClosed: J
|
|
16849
16864
|
}), {
|
|
16850
16865
|
fieldType_edit: i(({ row: x }) => [
|
|
@@ -16913,7 +16928,7 @@ const Rc = { class: "cd-share-header" }, Ec = { class: "cd-share-title" }, Pc =
|
|
|
16913
16928
|
}, 8, ["visible"]);
|
|
16914
16929
|
};
|
|
16915
16930
|
}
|
|
16916
|
-
}), lm = /* @__PURE__ */
|
|
16931
|
+
}), lm = /* @__PURE__ */ ea(am, [["__scopeId", "data-v-36fbcb77"]]);
|
|
16917
16932
|
function sm(a) {
|
|
16918
16933
|
const {
|
|
16919
16934
|
formModel: te,
|
|
@@ -16924,7 +16939,7 @@ function sm(a) {
|
|
|
16924
16939
|
context: m = {},
|
|
16925
16940
|
onRefresh: U,
|
|
16926
16941
|
onClose: _,
|
|
16927
|
-
onSave:
|
|
16942
|
+
onSave: w,
|
|
16928
16943
|
httpClient: r
|
|
16929
16944
|
} = a, I = /* @__PURE__ */ new Map(), D = (d, S) => {
|
|
16930
16945
|
!d || !Array.isArray(d) || d.forEach((g) => {
|
|
@@ -16966,10 +16981,10 @@ function sm(a) {
|
|
|
16966
16981
|
};
|
|
16967
16982
|
},
|
|
16968
16983
|
msg: {
|
|
16969
|
-
info: (d) =>
|
|
16970
|
-
success: (d) =>
|
|
16971
|
-
warning: (d) =>
|
|
16972
|
-
error: (d) =>
|
|
16984
|
+
info: (d) => Ie.info(d),
|
|
16985
|
+
success: (d) => Ie.success(d),
|
|
16986
|
+
warning: (d) => Ie.warning(d),
|
|
16987
|
+
error: (d) => Ie.error(d),
|
|
16973
16988
|
confirm: (d, S) => new Promise((g) => {
|
|
16974
16989
|
const R = Ll.confirm({
|
|
16975
16990
|
header: (S == null ? void 0 : S.title) || "确认",
|
|
@@ -17000,7 +17015,7 @@ function sm(a) {
|
|
|
17000
17015
|
n && (n.disabled = !1);
|
|
17001
17016
|
},
|
|
17002
17017
|
close: () => _ == null ? void 0 : _(),
|
|
17003
|
-
save: () =>
|
|
17018
|
+
save: () => w == null ? void 0 : w(),
|
|
17004
17019
|
// 子表操作
|
|
17005
17020
|
entry_row_count: (d) => {
|
|
17006
17021
|
const S = te[d];
|