hs-admin-ui 16.4.7 → 16.4.8
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/index.js +1 -1
- package/dist/index.mjs +608 -609
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { E as mi, I as ml, S as hl, v as qa, F as xn, u as hi, A as Ta, B as gl,
|
|
|
6
6
|
import { aS as Rv, aT as qv, aU as Vv, aV as Ov, aW as Nv, aX as Lv, aY as Mv, aZ as Av, a_ as Fv, a$ as Pv, b0 as jv, b1 as Bv, b2 as Uv, b3 as zv, b4 as Wv, b5 as Hv, b6 as Kv, c2 as Yv, b7 as Gv, b8 as Xv, b9 as Qv, aQ as Jv, ba as Zv, bb as eb, bc as tb, bd as ab, be as nb, bf as ob, bg as lb, bh as sb, bi as ib, bj as rb, bk as ub, bl as db, bm as cb, bn as fb, bo as mb, r as hb, s as gb, t as pb, w as vb, x as bb, y as yb, z as _b, G as wb, H as Sb, J as Db, K as Cb, L as xb, M as Ib, N as Eb, O as kb, P as $b, Q as Tb, T as Rb, U as qb, V as Vb, W as Ob, X as Nb, Y as Lb, Z as Mb, _ as Ab, $ as Fb, a0 as Pb, a1 as jb, a2 as Bb, a3 as Ub, a4 as zb, a5 as Wb, a6 as Hb, a7 as Kb, a8 as Yb, a9 as Gb, aa as Xb, ab as Qb, ac as Jb, ad as Zb, ah as ey, ae as ty, af as ay, ag as ny, ai as oy, aj as ly, ak as sy, al as iy, am as ry, an as uy, ao as dy, ap as cy, aq as fy, ar as my, as as hy, at as gy, au as py, av as vy, aw as by, ax as yy, ay as _y, az as wy, aC as Sy, aA as Dy, aB as Cy, aD as xy, aE as Iy, aF as Ey, aG as ky, aH as $y, aI as Ty, aJ as Ry, aK as qy, aL as Vy, aM as Oy, aN as Ny, aO as Ly, aP as My, bp as Ay, bq as Fy, br as Py, bs as jy, bt as By, bu as Uy, bv as zy, bw as Wy, bx as Hy, by as Ky, bz as Yy, bA as Gy, bB as Xy, bC as Qy, bD as Jy, bS as Zy, bT as e_, bF as t_, bG as a_, bH as n_, bI as o_, bJ as l_, bK as s_, bL as i_, bM as r_, bN as u_, bO as d_, bP as c_, bQ as f_, bR as m_, bU as h_, bV as g_, bW as p_, bX as v_, bY as b_, bE as y_, bZ as __, c0 as w_, b_ as S_, b$ as D_, c1 as C_, c3 as x_, c4 as I_, c7 as E_, c8 as k_, c5 as $_, c6 as T_, c9 as R_, ca as q_, cb as V_, cc as O_, cd as N_, ce as L_, cf as M_, cg as A_, ch as F_, aR as P_ } from "./index-453NBUwC.js";
|
|
7
7
|
import { _ as xi } from "./bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-BwEGGUoG.js";
|
|
8
8
|
import { ref as Q, onMounted as vt, watch as at, defineComponent as fe, computed as X, createElementBlock as j, openBlock as I, normalizeStyle as nt, normalizeClass as Ge, unref as m, createBlock as K, renderSlot as _e, withCtx as N, resolveDynamicComponent as Tt, useSlots as Ii, createCommentVNode as le, createElementVNode as P, createVNode as T, createTextVNode as Ie, toDisplayString as Ne, getCurrentInstance as Qa, nextTick as Me, h as la, Fragment as Se, toRef as $o, mergeProps as be, renderList as De, normalizeProps as ct, watchEffect as Ei, isVNode as fa, shallowRef as Ve, onBeforeUnmount as Bt, inject as je, provide as Vt, useAttrs as ao, resolveComponent as U, onBeforeMount as no, resolveDirective as Ja, withDirectives as da, createSlots as _t, guardReactiveProps as yt, onActivated as Ko, onDeactivated as ss, withModifiers as ta, onUnmounted as Da, toRefs as ki, reactive as ma, isRef as Va, createStaticVNode as Yo, toValue as qe, mergeModels as Oa, useModel as Rt, vShow as To, Teleport as is, Transition as $i, shallowReactive as Ti, withAsyncContext as Ri, Suspense as qi, KeepAlive as Vi, triggerRef as Oi, TransitionGroup as Ni } from "vue";
|
|
9
|
-
import { b as Wt, d as He, i as rs, a as ft, c as us, _ as oo, u as Xt, e as Bn, f as un, E as lo, w as Za, g as Li, h as Mi, j as Ai, r as Fi, k as Pi, l as ji, m as Bi, n as Ui, t as Un, o as gn, p as zi, q as Wi, s as Hi, v as aa, P as ga, x as wl, y as Ki, z as Go, A as Yi, B as Gi, C as Xi, D as Qi, F as Ji, G as Zi, H as
|
|
9
|
+
import { b as Wt, d as He, i as rs, a as ft, c as us, _ as oo, u as Xt, e as Bn, f as un, E as lo, w as Za, g as Li, h as Mi, j as Ai, r as Fi, k as Pi, l as ji, m as Bi, n as Ui, t as Un, o as gn, p as zi, q as Wi, s as Hi, v as aa, P as ga, x as wl, y as Ki, z as Go, A as Yi, B as Gi, C as Xi, D as Qi, F as Ji, G as Zi, H as g, I as Na, J as Ot, K as It, M as er, L as gt, N as Ro, O as qo, Q as Ke, R as Mt, S as bt, T as ia, U as Ka, V as tr, W as Zt, X as Vo, Y as Aa, Z as ds, $ as zn, a0 as cs, a1 as fs, a2 as Oo, a3 as Pe, a4 as wn, a5 as No, a6 as ar, a7 as Xo, a8 as dt, a9 as Ya, aa as Sa, ab as nr, ac as Wn, ad as or, ae as Sl, af as lr, ag as sr, ah as ir, ai as Qo, aj as Jo, ak as ms, al as rr, am as ur, an as en, ao as dr, ap as hs, aq as zt, ar as Fe, as as ra, at as Ga, au as Lo, av as cr, aw as fr, ax as mr, ay as Zo, az as hr, aA as gr, aB as pr, aC as Dl, aD as vr, aE as br, aF as yr, aG as _r, aH as Cl, aI as Mo, aJ as wr, aK as Sr, aL as Dr, aM as Cr, aN as xr, aO as Ir, aP as Er, aQ as Hn, aR as At, aS as On, aT as we, aU as kr, aV as We, aW as $r, aX as Tr, aY as Rr, aZ as qr, a_ as Vr, a$ as En, b0 as ut, b1 as Or, b2 as Nr, b3 as Lr, b4 as Mr, b5 as Ar, b6 as Fr, b7 as gs, b8 as xt, b9 as Pr, ba as jr, bb as Br, bc as Yt, bd as xl, be as on, bf as Ur, bg as Ao, bh as zr, bi as Wr, bj as ps, bk as Kn, bl as Hr, bm as Fa, bn as ba, bo as Kr, bp as Yr, bq as Gr, br as Xr, bs as Qr } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DVwBTR_W.js";
|
|
10
10
|
import { bx as B_, by as U_, bz as z_, bt as W_, bu as H_, bC as K_, bB as Y_, bw as G_, bD as X_, bv as Q_, bA as J_ } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DVwBTR_W.js";
|
|
11
11
|
import { g as Jr, p as Zr, e as eu, a as tu, b as au, c as nu, D as ou, d as lu } from "./index-BQ9uBuxk.js";
|
|
12
12
|
import { i as ew } from "./index-BQ9uBuxk.js";
|
|
@@ -56,16 +56,16 @@ typeof String.prototype.removeHTMLTag > "u" && (String.prototype.removeHTMLTag =
|
|
|
56
56
|
typeof c[h] < "u" ? this[h] = c[h] : this[h] = o[h];
|
|
57
57
|
this.host = u || this.host, this.port = d || this.port, this.url = this.getURL(), this.readyState = WebSocket.CONNECTING;
|
|
58
58
|
for (var v in s) this[v] = s[v];
|
|
59
|
-
return a.addEventListener("connecting", function(
|
|
60
|
-
f !== window && f.onconnecting(
|
|
61
|
-
}), a.addEventListener("open", function(
|
|
62
|
-
f !== window && f.onopen(
|
|
63
|
-
}), a.addEventListener("message", function(
|
|
64
|
-
f !== window && f.onmessage(
|
|
65
|
-
}), a.addEventListener("close", function(
|
|
66
|
-
f !== window && f.onclose(
|
|
67
|
-
}), a.addEventListener("error", function(
|
|
68
|
-
f !== window && f.onerror(
|
|
59
|
+
return a.addEventListener("connecting", function(p) {
|
|
60
|
+
f !== window && f.onconnecting(p);
|
|
61
|
+
}), a.addEventListener("open", function(p) {
|
|
62
|
+
f !== window && f.onopen(p);
|
|
63
|
+
}), a.addEventListener("message", function(p) {
|
|
64
|
+
f !== window && f.onmessage(p);
|
|
65
|
+
}), a.addEventListener("close", function(p) {
|
|
66
|
+
f !== window && f.onclose(p);
|
|
67
|
+
}), a.addEventListener("error", function(p) {
|
|
68
|
+
f !== window && f.onerror(p);
|
|
69
69
|
}), this.addEventListener = a.addEventListener.bind(a), this.removeEventListener = a.removeEventListener.bind(a), this.dispatchEvent = a.dispatchEvent.bind(a), this.automaticOpen === !0 && this !== window && this.open(), this;
|
|
70
70
|
}
|
|
71
71
|
function i(u, d) {
|
|
@@ -352,23 +352,23 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
352
352
|
name: e ?? "ElVirtualList",
|
|
353
353
|
props: qa,
|
|
354
354
|
emits: [ml, hl],
|
|
355
|
-
setup(
|
|
355
|
+
setup(p, { emit: w, expose: b, slots: x }) {
|
|
356
356
|
const y = Xt("vl");
|
|
357
|
-
v(
|
|
358
|
-
const E = Qa(), R = Q(f(
|
|
357
|
+
v(p);
|
|
358
|
+
const E = Qa(), R = Q(f(p, E));
|
|
359
359
|
h == null || h(E, R);
|
|
360
360
|
const _ = Q(), S = Q(), M = Q(), V = Q(null), D = Q({
|
|
361
361
|
isScrolling: !1,
|
|
362
|
-
scrollLeft: ft(
|
|
363
|
-
scrollTop: ft(
|
|
362
|
+
scrollLeft: ft(p.initScrollLeft) ? p.initScrollLeft : 0,
|
|
363
|
+
scrollTop: ft(p.initScrollTop) ? p.initScrollTop : 0,
|
|
364
364
|
updateRequested: !1,
|
|
365
365
|
xAxisScrollDir: xn,
|
|
366
366
|
yAxisScrollDir: xn
|
|
367
|
-
}), k = hi(), C = X(() => Number.parseInt(`${
|
|
368
|
-
const { totalColumn: oe, totalRow: ie, columnCache: ge } =
|
|
367
|
+
}), k = hi(), C = X(() => Number.parseInt(`${p.height}`, 10)), $ = X(() => Number.parseInt(`${p.width}`, 10)), O = X(() => {
|
|
368
|
+
const { totalColumn: oe, totalRow: ie, columnCache: ge } = p, { isScrolling: ke, xAxisScrollDir: Re, scrollLeft: Le } = m(D);
|
|
369
369
|
if (oe === 0 || ie === 0)
|
|
370
370
|
return [0, 0, 0, 0];
|
|
371
|
-
const Ae = a(
|
|
371
|
+
const Ae = a(p, Le, m(R)), ze = o(p, Ae, Le, m(R)), tt = !ke || Re === gl ? Math.max(1, ge) : 1, lt = !ke || Re === xn ? Math.max(1, ge) : 1;
|
|
372
372
|
return [
|
|
373
373
|
Math.max(0, Ae - tt),
|
|
374
374
|
Math.max(0, Math.min(oe - 1, ze + lt)),
|
|
@@ -376,17 +376,17 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
376
376
|
ze
|
|
377
377
|
];
|
|
378
378
|
}), q = X(() => {
|
|
379
|
-
const { totalColumn: oe, totalRow: ie, rowCache: ge } =
|
|
379
|
+
const { totalColumn: oe, totalRow: ie, rowCache: ge } = p, { isScrolling: ke, yAxisScrollDir: Re, scrollTop: Le } = m(D);
|
|
380
380
|
if (oe === 0 || ie === 0)
|
|
381
381
|
return [0, 0, 0, 0];
|
|
382
|
-
const Ae = d(
|
|
382
|
+
const Ae = d(p, Le, m(R)), ze = c(p, Ae, Le, m(R)), tt = !ke || Re === gl ? Math.max(1, ge) : 1, lt = !ke || Re === xn ? Math.max(1, ge) : 1;
|
|
383
383
|
return [
|
|
384
384
|
Math.max(0, Ae - tt),
|
|
385
385
|
Math.max(0, Math.min(ie - 1, ze + lt)),
|
|
386
386
|
Ae,
|
|
387
387
|
ze
|
|
388
388
|
];
|
|
389
|
-
}), z = X(() => l(
|
|
389
|
+
}), z = X(() => l(p, m(R))), Y = X(() => s(p, m(R))), se = X(() => {
|
|
390
390
|
var oe;
|
|
391
391
|
return [
|
|
392
392
|
{
|
|
@@ -396,11 +396,11 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
396
396
|
willChange: "transform"
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
|
-
direction:
|
|
400
|
-
height: ft(
|
|
401
|
-
width: ft(
|
|
399
|
+
direction: p.direction,
|
|
400
|
+
height: ft(p.height) ? `${p.height}px` : p.height,
|
|
401
|
+
width: ft(p.width) ? `${p.width}px` : p.width
|
|
402
402
|
},
|
|
403
|
-
(oe =
|
|
403
|
+
(oe = p.style) != null ? oe : {}
|
|
404
404
|
];
|
|
405
405
|
}), W = X(() => {
|
|
406
406
|
const oe = `${m(Y)}px`;
|
|
@@ -410,7 +410,7 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
410
410
|
width: oe
|
|
411
411
|
};
|
|
412
412
|
}), L = () => {
|
|
413
|
-
const { totalColumn: oe, totalRow: ie } =
|
|
413
|
+
const { totalColumn: oe, totalRow: ie } = p;
|
|
414
414
|
if (oe > 0 && ie > 0) {
|
|
415
415
|
const [
|
|
416
416
|
ze,
|
|
@@ -455,7 +455,7 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
455
455
|
if (ze.scrollTop === Le && ze.scrollLeft === Re)
|
|
456
456
|
return;
|
|
457
457
|
let tt = Re;
|
|
458
|
-
if (yl(
|
|
458
|
+
if (yl(p.direction))
|
|
459
459
|
switch (pl()) {
|
|
460
460
|
case vl:
|
|
461
461
|
tt = -Re;
|
|
@@ -516,18 +516,18 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
516
516
|
}, Me(() => ne()), ye(), L());
|
|
517
517
|
}, J = (oe = 0, ie = 0, ge = Ta) => {
|
|
518
518
|
const ke = m(D);
|
|
519
|
-
ie = Math.max(0, Math.min(ie,
|
|
520
|
-
const Re = Bi(y.namespace.value), Le = m(R), Ae = l(
|
|
519
|
+
ie = Math.max(0, Math.min(ie, p.totalColumn - 1)), oe = Math.max(0, Math.min(oe, p.totalRow - 1));
|
|
520
|
+
const Re = Bi(y.namespace.value), Le = m(R), Ae = l(p, Le), ze = s(p, Le);
|
|
521
521
|
G({
|
|
522
|
-
scrollLeft: r(
|
|
523
|
-
scrollTop: i(
|
|
522
|
+
scrollLeft: r(p, ie, ge, ke.scrollLeft, Le, ze > p.width ? Re : 0),
|
|
523
|
+
scrollTop: i(p, oe, ge, ke.scrollTop, Le, Ae > p.height ? Re : 0)
|
|
524
524
|
});
|
|
525
525
|
}, re = (oe, ie) => {
|
|
526
|
-
const { columnWidth: ge, direction: ke, rowHeight: Re } =
|
|
526
|
+
const { columnWidth: ge, direction: ke, rowHeight: Re } = p, Le = k.value(t && ge, t && Re, t && ke), Ae = `${oe},${ie}`;
|
|
527
527
|
if (Ui(Le, Ae))
|
|
528
528
|
return Le[Ae];
|
|
529
529
|
{
|
|
530
|
-
const [, ze] = n(
|
|
530
|
+
const [, ze] = n(p, ie, m(R)), tt = m(R), lt = yl(ke), [st, Qe] = u(p, oe, tt), [et] = n(p, ie, tt);
|
|
531
531
|
return Le[Ae] = {
|
|
532
532
|
position: "absolute",
|
|
533
533
|
left: lt ? void 0 : `${ze}px`,
|
|
@@ -545,11 +545,11 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
545
545
|
vt(() => {
|
|
546
546
|
if (!ji)
|
|
547
547
|
return;
|
|
548
|
-
const { initScrollLeft: oe, initScrollTop: ie } =
|
|
548
|
+
const { initScrollLeft: oe, initScrollTop: ie } = p, ge = m(_);
|
|
549
549
|
ge && (ft(oe) && (ge.scrollLeft = oe), ft(ie) && (ge.scrollTop = ie)), L();
|
|
550
550
|
});
|
|
551
551
|
const ye = () => {
|
|
552
|
-
const { direction: oe } =
|
|
552
|
+
const { direction: oe } = p, { scrollLeft: ie, scrollTop: ge, updateRequested: ke } = m(D), Re = m(_);
|
|
553
553
|
if (ke && Re) {
|
|
554
554
|
if (oe === gi)
|
|
555
555
|
switch (pl()) {
|
|
@@ -590,7 +590,7 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
590
590
|
scrollbarEndGap: ge,
|
|
591
591
|
totalColumn: ke,
|
|
592
592
|
totalRow: Re
|
|
593
|
-
} =
|
|
593
|
+
} = p, Le = m($), Ae = m(C), ze = m(Y), tt = m(z), { scrollLeft: lt, scrollTop: st } = m(D), Qe = la(bl, {
|
|
594
594
|
ref: S,
|
|
595
595
|
alwaysOn: oe,
|
|
596
596
|
startGap: ie,
|
|
@@ -623,7 +623,7 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
623
623
|
};
|
|
624
624
|
}, he = () => {
|
|
625
625
|
var oe;
|
|
626
|
-
const [ie, ge] = m(O), [ke, Re] = m(q), { data: Le, totalColumn: Ae, totalRow: ze, useIsScrolling: tt, itemKey: lt } =
|
|
626
|
+
const [ie, ge] = m(O), [ke, Re] = m(q), { data: Le, totalColumn: Ae, totalRow: ze, useIsScrolling: tt, itemKey: lt } = p, st = [];
|
|
627
627
|
if (ze > 0 && Ae > 0)
|
|
628
628
|
for (let Qe = ke; Qe <= Re; Qe++)
|
|
629
629
|
for (let et = ie; et <= ge; et++) {
|
|
@@ -638,7 +638,7 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
638
638
|
}
|
|
639
639
|
return st;
|
|
640
640
|
}, xe = () => {
|
|
641
|
-
const oe = Tt(
|
|
641
|
+
const oe = Tt(p.innerElement), ie = he();
|
|
642
642
|
return [
|
|
643
643
|
la(oe, {
|
|
644
644
|
style: m(W),
|
|
@@ -649,14 +649,14 @@ const tv = Za(pu), vu = ({ atXEndEdge: e, atXStartEdge: t, atYEndEdge: n, atYSta
|
|
|
649
649
|
];
|
|
650
650
|
};
|
|
651
651
|
return () => {
|
|
652
|
-
const oe = Tt(
|
|
652
|
+
const oe = Tt(p.containerElement), { horizontalScrollbar: ie, verticalScrollbar: ge } = ue(), ke = xe();
|
|
653
653
|
return la("div", {
|
|
654
654
|
key: 0,
|
|
655
655
|
class: y.e("wrapper"),
|
|
656
|
-
role:
|
|
656
|
+
role: p.role
|
|
657
657
|
}, [
|
|
658
658
|
la(oe, {
|
|
659
|
-
class:
|
|
659
|
+
class: p.className,
|
|
660
660
|
style: m(se),
|
|
661
661
|
onScroll: ee,
|
|
662
662
|
ref: _
|
|
@@ -1090,8 +1090,8 @@ const qu = Wt({
|
|
|
1090
1090
|
if (r) {
|
|
1091
1091
|
const c = d.length - 1;
|
|
1092
1092
|
d = d.reduce((f, h, v) => {
|
|
1093
|
-
const
|
|
1094
|
-
return v !== c &&
|
|
1093
|
+
const p = [...f, h];
|
|
1094
|
+
return v !== c && p.push(T("span", {
|
|
1095
1095
|
style: [
|
|
1096
1096
|
o.value,
|
|
1097
1097
|
i === "vertical" ? "width: 100%" : null
|
|
@@ -1099,7 +1099,7 @@ const qu = Wt({
|
|
|
1099
1099
|
key: v
|
|
1100
1100
|
}, [
|
|
1101
1101
|
fa(r) ? r : Ie(r, ga.TEXT)
|
|
1102
|
-
], ga.STYLE)),
|
|
1102
|
+
], ga.STYLE)), p;
|
|
1103
1103
|
}, []);
|
|
1104
1104
|
}
|
|
1105
1105
|
return T("div", {
|
|
@@ -1160,7 +1160,7 @@ function Nu(e, t, n) {
|
|
|
1160
1160
|
}), u = X(() => m(l).length || m(s).length), d = X(() => m(a).reduce((w, b) => (w[b.key] = Ou(b, m(n), e.fixed), w), {})), c = X(() => m(o).reduce((w, b) => w + b.width, 0)), f = (w) => m(a).find((b) => b.key === w), h = (w) => m(d)[w], v = (w, b) => {
|
|
1161
1161
|
w.width = b;
|
|
1162
1162
|
};
|
|
1163
|
-
function
|
|
1163
|
+
function p(w) {
|
|
1164
1164
|
var b;
|
|
1165
1165
|
const { key: x } = w.currentTarget.dataset;
|
|
1166
1166
|
if (!x)
|
|
@@ -1182,7 +1182,7 @@ function Nu(e, t, n) {
|
|
|
1182
1182
|
getColumn: f,
|
|
1183
1183
|
getColumnStyle: h,
|
|
1184
1184
|
updateColumnWidth: v,
|
|
1185
|
-
onColumnSorted:
|
|
1185
|
+
onColumnSorted: p
|
|
1186
1186
|
};
|
|
1187
1187
|
}
|
|
1188
1188
|
const Lu = (e, {
|
|
@@ -1193,9 +1193,9 @@ const Lu = (e, {
|
|
|
1193
1193
|
}) => {
|
|
1194
1194
|
const l = Q({ scrollLeft: 0, scrollTop: 0 });
|
|
1195
1195
|
function s(h) {
|
|
1196
|
-
var v,
|
|
1196
|
+
var v, p, w;
|
|
1197
1197
|
const { scrollTop: b } = h;
|
|
1198
|
-
(v = t.value) == null || v.scrollTo(h), (
|
|
1198
|
+
(v = t.value) == null || v.scrollTo(h), (p = n.value) == null || p.scrollToTop(b), (w = a.value) == null || w.scrollToTop(b);
|
|
1199
1199
|
}
|
|
1200
1200
|
function r(h) {
|
|
1201
1201
|
l.value = h, s(h);
|
|
@@ -1204,8 +1204,8 @@ const Lu = (e, {
|
|
|
1204
1204
|
l.value.scrollTop = h, s(m(l));
|
|
1205
1205
|
}
|
|
1206
1206
|
function u(h) {
|
|
1207
|
-
var v,
|
|
1208
|
-
l.value.scrollLeft = h, (
|
|
1207
|
+
var v, p;
|
|
1208
|
+
l.value.scrollLeft = h, (p = (v = t.value) == null ? void 0 : v.scrollTo) == null || p.call(v, m(l));
|
|
1209
1209
|
}
|
|
1210
1210
|
function d(h) {
|
|
1211
1211
|
var v;
|
|
@@ -1216,8 +1216,8 @@ const Lu = (e, {
|
|
|
1216
1216
|
h !== v && i(h);
|
|
1217
1217
|
}
|
|
1218
1218
|
function f(h, v = "auto") {
|
|
1219
|
-
var
|
|
1220
|
-
(
|
|
1219
|
+
var p;
|
|
1220
|
+
(p = t.value) == null || p.scrollToRow(h, v);
|
|
1221
1221
|
}
|
|
1222
1222
|
return at(() => m(l).scrollTop, (h, v) => {
|
|
1223
1223
|
h > v && o();
|
|
@@ -1238,7 +1238,7 @@ const Lu = (e, {
|
|
|
1238
1238
|
ns: l,
|
|
1239
1239
|
isScrolling: s
|
|
1240
1240
|
}) => {
|
|
1241
|
-
const r = Qa(), { emit: i } = r, u = Ve(!1), d = Q(e.defaultExpandedRowKeys || []), c = Q(-1), f = Ve(null), h = Q({}), v = Q({}),
|
|
1241
|
+
const r = Qa(), { emit: i } = r, u = Ve(!1), d = Q(e.defaultExpandedRowKeys || []), c = Q(-1), f = Ve(null), h = Q({}), v = Q({}), p = Ve({}), w = Ve({}), b = Ve({}), x = X(() => ft(e.estimatedRowHeight));
|
|
1242
1242
|
function y(D) {
|
|
1243
1243
|
var k;
|
|
1244
1244
|
(k = e.onRowsRendered) == null || k.call(e, D), D.rowCacheEnd > m(c) && (c.value = D.rowCacheEnd);
|
|
@@ -1280,8 +1280,8 @@ const Lu = (e, {
|
|
|
1280
1280
|
($ === null || $ > C) && (f.value = C), v.value[D] = k;
|
|
1281
1281
|
}
|
|
1282
1282
|
function V({ rowKey: D, height: k, rowIndex: C }, $) {
|
|
1283
|
-
$ ? $ === Ds.RIGHT ? b.value[D] = k :
|
|
1284
|
-
const O = Math.max(...[
|
|
1283
|
+
$ ? $ === Ds.RIGHT ? b.value[D] = k : p.value[D] = k : w.value[D] = k;
|
|
1284
|
+
const O = Math.max(...[p, b, w].map((q) => q.value[D] || 0));
|
|
1285
1285
|
m(h)[D] !== O && (M(D, O, C), _());
|
|
1286
1286
|
}
|
|
1287
1287
|
return {
|
|
@@ -1306,7 +1306,7 @@ const Lu = (e, {
|
|
|
1306
1306
|
let h = i.slice();
|
|
1307
1307
|
for (h.forEach((v) => r[v[u]] = 0); h.length > 0; ) {
|
|
1308
1308
|
const v = h.shift();
|
|
1309
|
-
c.push(v), f.has(v[u]) && Array.isArray(v.children) && v.children.length > 0 && (h = [...v.children, ...h], v.children.forEach((
|
|
1309
|
+
c.push(v), f.has(v[u]) && Array.isArray(v.children) && v.children.length > 0 && (h = [...v.children, ...h], v.children.forEach((p) => r[p[u]] = r[v[u]] + 1));
|
|
1310
1310
|
}
|
|
1311
1311
|
return o.value = r, c;
|
|
1312
1312
|
}), s = X(() => {
|
|
@@ -1349,7 +1349,7 @@ const Lu = (e, {
|
|
|
1349
1349
|
}), d = (y) => y.width, c = X(() => Nn(m(a).map(d))), f = X(() => Nn(m(o).map(d))), h = X(() => Nn(e.headerHeight)), v = X(() => {
|
|
1350
1350
|
var y;
|
|
1351
1351
|
return (((y = e.fixedData) == null ? void 0 : y.length) || 0) * e.rowHeight;
|
|
1352
|
-
}),
|
|
1352
|
+
}), p = X(() => m(r) - m(h) - m(v)), w = X(() => {
|
|
1353
1353
|
const { style: y = {}, height: E, width: R } = e;
|
|
1354
1354
|
return ya({
|
|
1355
1355
|
...y,
|
|
@@ -1369,7 +1369,7 @@ const Lu = (e, {
|
|
|
1369
1369
|
rightTableWidth: f,
|
|
1370
1370
|
headerWidth: s,
|
|
1371
1371
|
rowsHeight: i,
|
|
1372
|
-
windowHeight:
|
|
1372
|
+
windowHeight: p,
|
|
1373
1373
|
footerHeight: b,
|
|
1374
1374
|
emptyStyle: x,
|
|
1375
1375
|
rootStyle: w,
|
|
@@ -1380,8 +1380,8 @@ const Lu = (e, {
|
|
|
1380
1380
|
let o;
|
|
1381
1381
|
return vt(() => {
|
|
1382
1382
|
o = Yi(t, ([l]) => {
|
|
1383
|
-
const { width: s, height: r } = l.contentRect, { paddingLeft: i, paddingRight: u, paddingTop: d, paddingBottom: c } = getComputedStyle(l.target), f = Number.parseInt(i) || 0, h = Number.parseInt(u) || 0, v = Number.parseInt(d) || 0,
|
|
1384
|
-
n.value = s - f - h, a.value = r - v -
|
|
1383
|
+
const { width: s, height: r } = l.contentRect, { paddingLeft: i, paddingRight: u, paddingTop: d, paddingBottom: c } = getComputedStyle(l.target), f = Number.parseInt(i) || 0, h = Number.parseInt(u) || 0, v = Number.parseInt(d) || 0, p = Number.parseInt(c) || 0;
|
|
1384
|
+
n.value = s - f - h, a.value = r - v - p;
|
|
1385
1385
|
}).stop;
|
|
1386
1386
|
}), Bt(() => {
|
|
1387
1387
|
o == null || o();
|
|
@@ -1411,7 +1411,7 @@ function Bu(e) {
|
|
|
1411
1411
|
scrollTo: f,
|
|
1412
1412
|
scrollToLeft: h,
|
|
1413
1413
|
scrollToTop: v,
|
|
1414
|
-
scrollToRow:
|
|
1414
|
+
scrollToRow: p,
|
|
1415
1415
|
onScroll: w,
|
|
1416
1416
|
onVerticalScroll: b,
|
|
1417
1417
|
scrollPos: x
|
|
@@ -1514,7 +1514,7 @@ function Bu(e) {
|
|
|
1514
1514
|
scrollTo: f,
|
|
1515
1515
|
scrollToLeft: h,
|
|
1516
1516
|
scrollToTop: v,
|
|
1517
|
-
scrollToRow:
|
|
1517
|
+
scrollToRow: p,
|
|
1518
1518
|
onScroll: w,
|
|
1519
1519
|
onVerticalScroll: b
|
|
1520
1520
|
};
|
|
@@ -1816,7 +1816,7 @@ const Wu = Wt({
|
|
|
1816
1816
|
fixedHeaderData: h,
|
|
1817
1817
|
rowHeight: v
|
|
1818
1818
|
} = e;
|
|
1819
|
-
return h == null ? void 0 : h.map((
|
|
1819
|
+
return h == null ? void 0 : h.map((p, w) => {
|
|
1820
1820
|
var b;
|
|
1821
1821
|
const x = ya({
|
|
1822
1822
|
height: v,
|
|
@@ -1825,7 +1825,7 @@ const Wu = Wt({
|
|
|
1825
1825
|
return (b = t.fixed) == null ? void 0 : b.call(t, {
|
|
1826
1826
|
class: c,
|
|
1827
1827
|
columns: f,
|
|
1828
|
-
rowData:
|
|
1828
|
+
rowData: p,
|
|
1829
1829
|
rowIndex: -(w + 1),
|
|
1830
1830
|
style: x
|
|
1831
1831
|
});
|
|
@@ -1835,12 +1835,12 @@ const Wu = Wt({
|
|
|
1835
1835
|
columns: f
|
|
1836
1836
|
} = e;
|
|
1837
1837
|
return m(r).map((h, v) => {
|
|
1838
|
-
var
|
|
1838
|
+
var p;
|
|
1839
1839
|
const w = ya({
|
|
1840
1840
|
width: "100%",
|
|
1841
1841
|
height: h
|
|
1842
1842
|
});
|
|
1843
|
-
return (
|
|
1843
|
+
return (p = t.dynamic) == null ? void 0 : p.call(t, {
|
|
1844
1844
|
class: c,
|
|
1845
1845
|
columns: f,
|
|
1846
1846
|
headerIndex: v,
|
|
@@ -1877,14 +1877,14 @@ const Wu = Wt({
|
|
|
1877
1877
|
rowIndex: h,
|
|
1878
1878
|
style: v
|
|
1879
1879
|
} = e, {
|
|
1880
|
-
height:
|
|
1880
|
+
height: p
|
|
1881
1881
|
} = u.getBoundingClientRect();
|
|
1882
1882
|
n.value = !0, Me(() => {
|
|
1883
|
-
if (i ||
|
|
1883
|
+
if (i || p !== Number.parseInt(v.height)) {
|
|
1884
1884
|
const w = d[0], b = (w == null ? void 0 : w.placeholderSign) === bn;
|
|
1885
1885
|
c == null || c({
|
|
1886
1886
|
rowKey: f,
|
|
1887
|
-
height:
|
|
1887
|
+
height: p,
|
|
1888
1888
|
rowIndex: h
|
|
1889
1889
|
}, w && !b && w.fixed);
|
|
1890
1890
|
}
|
|
@@ -1896,9 +1896,9 @@ const Wu = Wt({
|
|
|
1896
1896
|
rowKey: d,
|
|
1897
1897
|
onRowHover: c
|
|
1898
1898
|
} = e, f = e.rowEventHandlers || {}, h = {};
|
|
1899
|
-
return Object.entries(f).forEach(([v,
|
|
1900
|
-
gn(
|
|
1901
|
-
|
|
1899
|
+
return Object.entries(f).forEach(([v, p]) => {
|
|
1900
|
+
gn(p) && (h[v] = (w) => {
|
|
1901
|
+
p({
|
|
1902
1902
|
event: w,
|
|
1903
1903
|
rowData: i,
|
|
1904
1904
|
rowIndex: u,
|
|
@@ -1913,13 +1913,13 @@ const Wu = Wt({
|
|
|
1913
1913
|
hovered: !0
|
|
1914
1914
|
}].forEach(({
|
|
1915
1915
|
name: v,
|
|
1916
|
-
hovered:
|
|
1916
|
+
hovered: p
|
|
1917
1917
|
}) => {
|
|
1918
1918
|
const w = h[v];
|
|
1919
1919
|
h[v] = (b) => {
|
|
1920
1920
|
c({
|
|
1921
1921
|
event: b,
|
|
1922
|
-
hovered:
|
|
1922
|
+
hovered: p,
|
|
1923
1923
|
rowData: i,
|
|
1924
1924
|
rowIndex: u,
|
|
1925
1925
|
rowKey: d
|
|
@@ -1975,7 +1975,7 @@ const Wu = Wt({
|
|
|
1975
1975
|
expandColumnKey: f,
|
|
1976
1976
|
depth: h,
|
|
1977
1977
|
rowData: v,
|
|
1978
|
-
rowIndex:
|
|
1978
|
+
rowIndex: p,
|
|
1979
1979
|
style: w
|
|
1980
1980
|
} = e;
|
|
1981
1981
|
let b = d.map((x, y) => {
|
|
@@ -1987,11 +1987,11 @@ const Wu = Wt({
|
|
|
1987
1987
|
depth: h,
|
|
1988
1988
|
style: c[x.key],
|
|
1989
1989
|
rowData: v,
|
|
1990
|
-
rowIndex:
|
|
1990
|
+
rowIndex: p,
|
|
1991
1991
|
isScrolling: m(l),
|
|
1992
1992
|
expandIconProps: E ? {
|
|
1993
1993
|
rowData: v,
|
|
1994
|
-
rowIndex:
|
|
1994
|
+
rowIndex: p,
|
|
1995
1995
|
onExpand: u
|
|
1996
1996
|
} : void 0
|
|
1997
1997
|
});
|
|
@@ -2002,7 +2002,7 @@ const Wu = Wt({
|
|
|
2002
2002
|
columns: d,
|
|
2003
2003
|
depth: h,
|
|
2004
2004
|
rowData: v,
|
|
2005
|
-
rowIndex:
|
|
2005
|
+
rowIndex: p,
|
|
2006
2006
|
isScrolling: m(l)
|
|
2007
2007
|
})), m(s)) {
|
|
2008
2008
|
const {
|
|
@@ -2054,65 +2054,65 @@ const Wu = Wt({
|
|
|
2054
2054
|
}, ed = "ElTableV2Grid", td = (e) => {
|
|
2055
2055
|
const t = Q(), n = Q(), a = X(() => {
|
|
2056
2056
|
const {
|
|
2057
|
-
data:
|
|
2057
|
+
data: p,
|
|
2058
2058
|
rowHeight: w,
|
|
2059
2059
|
estimatedRowHeight: b
|
|
2060
2060
|
} = e;
|
|
2061
2061
|
if (!b)
|
|
2062
|
-
return
|
|
2062
|
+
return p.length * w;
|
|
2063
2063
|
}), o = X(() => {
|
|
2064
2064
|
const {
|
|
2065
|
-
fixedData:
|
|
2065
|
+
fixedData: p,
|
|
2066
2066
|
rowHeight: w
|
|
2067
2067
|
} = e;
|
|
2068
|
-
return ((
|
|
2068
|
+
return ((p == null ? void 0 : p.length) || 0) * w;
|
|
2069
2069
|
}), l = X(() => Nn(e.headerHeight)), s = X(() => {
|
|
2070
2070
|
const {
|
|
2071
|
-
height:
|
|
2071
|
+
height: p
|
|
2072
2072
|
} = e;
|
|
2073
|
-
return Math.max(0,
|
|
2073
|
+
return Math.max(0, p - m(l) - m(o));
|
|
2074
2074
|
}), r = X(() => m(l) + m(o) > 0), i = ({
|
|
2075
|
-
data:
|
|
2075
|
+
data: p,
|
|
2076
2076
|
rowIndex: w
|
|
2077
|
-
}) =>
|
|
2077
|
+
}) => p[w][e.rowKey];
|
|
2078
2078
|
function u({
|
|
2079
|
-
rowCacheStart:
|
|
2079
|
+
rowCacheStart: p,
|
|
2080
2080
|
rowCacheEnd: w,
|
|
2081
2081
|
rowVisibleStart: b,
|
|
2082
2082
|
rowVisibleEnd: x
|
|
2083
2083
|
}) {
|
|
2084
2084
|
var y;
|
|
2085
2085
|
(y = e.onRowsRendered) == null || y.call(e, {
|
|
2086
|
-
rowCacheStart:
|
|
2086
|
+
rowCacheStart: p,
|
|
2087
2087
|
rowCacheEnd: w,
|
|
2088
2088
|
rowVisibleStart: b,
|
|
2089
2089
|
rowVisibleEnd: x
|
|
2090
2090
|
});
|
|
2091
2091
|
}
|
|
2092
|
-
function d(
|
|
2092
|
+
function d(p, w) {
|
|
2093
2093
|
var b;
|
|
2094
|
-
(b = n.value) == null || b.resetAfterRowIndex(
|
|
2094
|
+
(b = n.value) == null || b.resetAfterRowIndex(p, w);
|
|
2095
2095
|
}
|
|
2096
|
-
function c(
|
|
2096
|
+
function c(p, w) {
|
|
2097
2097
|
const b = m(t), x = m(n);
|
|
2098
|
-
Go(
|
|
2099
|
-
scrollLeft:
|
|
2098
|
+
Go(p) ? (b == null || b.scrollToLeft(p.scrollLeft), x == null || x.scrollTo(p)) : (b == null || b.scrollToLeft(p), x == null || x.scrollTo({
|
|
2099
|
+
scrollLeft: p,
|
|
2100
2100
|
scrollTop: w
|
|
2101
2101
|
}));
|
|
2102
2102
|
}
|
|
2103
|
-
function f(
|
|
2103
|
+
function f(p) {
|
|
2104
2104
|
var w;
|
|
2105
2105
|
(w = m(n)) == null || w.scrollTo({
|
|
2106
|
-
scrollTop:
|
|
2106
|
+
scrollTop: p
|
|
2107
2107
|
});
|
|
2108
2108
|
}
|
|
2109
|
-
function h(
|
|
2109
|
+
function h(p, w) {
|
|
2110
2110
|
var b;
|
|
2111
|
-
(b = m(n)) == null || b.scrollToItem(
|
|
2111
|
+
(b = m(n)) == null || b.scrollToItem(p, 1, w);
|
|
2112
2112
|
}
|
|
2113
2113
|
function v() {
|
|
2114
|
-
var
|
|
2115
|
-
(
|
|
2114
|
+
var p, w;
|
|
2115
|
+
(p = m(n)) == null || p.$forceUpdate(), (w = m(t)) == null || w.$forceUpdate();
|
|
2116
2116
|
}
|
|
2117
2117
|
return {
|
|
2118
2118
|
bodyRef: n,
|
|
@@ -2151,14 +2151,14 @@ const Wu = Wt({
|
|
|
2151
2151
|
itemKey: f,
|
|
2152
2152
|
onItemRendered: h,
|
|
2153
2153
|
resetAfterRowIndex: v,
|
|
2154
|
-
scrollTo:
|
|
2154
|
+
scrollTo: p,
|
|
2155
2155
|
scrollToTop: w,
|
|
2156
2156
|
scrollToRow: b
|
|
2157
2157
|
} = td(e);
|
|
2158
2158
|
n({
|
|
2159
2159
|
forceUpdate: c,
|
|
2160
2160
|
totalHeight: d,
|
|
2161
|
-
scrollTo:
|
|
2161
|
+
scrollTo: p,
|
|
2162
2162
|
scrollToTop: w,
|
|
2163
2163
|
scrollToRow: b,
|
|
2164
2164
|
resetAfterRowIndex: v
|
|
@@ -2309,7 +2309,7 @@ const ud = (e, {
|
|
|
2309
2309
|
isScrolling: f,
|
|
2310
2310
|
rowProps: h,
|
|
2311
2311
|
rowClass: v,
|
|
2312
|
-
rowKey:
|
|
2312
|
+
rowKey: p,
|
|
2313
2313
|
rowEventHandlers: w,
|
|
2314
2314
|
ns: b,
|
|
2315
2315
|
onRowHovered: x,
|
|
@@ -2322,7 +2322,7 @@ const ud = (e, {
|
|
|
2322
2322
|
columns: n,
|
|
2323
2323
|
rowData: u,
|
|
2324
2324
|
rowIndex: d
|
|
2325
|
-
}), _ = u[
|
|
2325
|
+
}), _ = u[p], S = o[_] || 0, M = !!l, V = d < 0, D = [b.e("row"), E, {
|
|
2326
2326
|
[b.e(`row-depth-${S}`)]: M && d >= 0,
|
|
2327
2327
|
[b.is("expanded")]: M && s.includes(_),
|
|
2328
2328
|
[b.is("fixed")]: !S && V,
|
|
@@ -2382,7 +2382,7 @@ const ud = (e, {
|
|
|
2382
2382
|
expandColumnKey: f,
|
|
2383
2383
|
indentSize: h,
|
|
2384
2384
|
iconSize: v,
|
|
2385
|
-
rowKey:
|
|
2385
|
+
rowKey: p
|
|
2386
2386
|
}, {
|
|
2387
2387
|
slots: w
|
|
2388
2388
|
}) => {
|
|
@@ -2418,7 +2418,7 @@ const ud = (e, {
|
|
|
2418
2418
|
isScrolling: l,
|
|
2419
2419
|
rowData: s,
|
|
2420
2420
|
rowIndex: r
|
|
2421
|
-
}, M = Cs(x), V = M ? M(S) : _e(w, "default", S, () => [T(nl, S, null)]), D = [d.e("row-cell"), t.class, t.align === vn.CENTER && d.is("align-center"), t.align === vn.RIGHT && d.is("align-right")], k = r >= 0 && f && t.key === f, C = r >= 0 && u.includes(s[
|
|
2421
|
+
}, M = Cs(x), V = M ? M(S) : _e(w, "default", S, () => [T(nl, S, null)]), D = [d.e("row-cell"), t.class, t.align === vn.CENTER && d.is("align-center"), t.align === vn.RIGHT && d.is("align-right")], k = r >= 0 && f && t.key === f, C = r >= 0 && u.includes(s[p]);
|
|
2422
2422
|
let $;
|
|
2423
2423
|
const O = `margin-inline-start: ${a * h}px;`;
|
|
2424
2424
|
return k && (Go(o) ? $ = T(Zu, be(o, {
|
|
@@ -2491,7 +2491,7 @@ const cd = ({
|
|
|
2491
2491
|
}, c = Cs(r), f = c ? c(d) : _e(t, "default", d, () => [T(ol, d, null)]), {
|
|
2492
2492
|
sortBy: h,
|
|
2493
2493
|
sortState: v,
|
|
2494
|
-
headerCellProps:
|
|
2494
|
+
headerCellProps: p
|
|
2495
2495
|
} = e;
|
|
2496
2496
|
let w, b;
|
|
2497
2497
|
if (v) {
|
|
@@ -2500,7 +2500,7 @@ const cd = ({
|
|
|
2500
2500
|
} else
|
|
2501
2501
|
w = n.key === h.key, b = w ? h.order : pn.ASC;
|
|
2502
2502
|
const x = [a.e("header-cell"), La(i, e, ""), n.align === vn.CENTER && a.is("align-center"), n.align === vn.RIGHT && a.is("align-right"), u && a.is("sortable")], y = {
|
|
2503
|
-
...La(
|
|
2503
|
+
...La(p, e),
|
|
2504
2504
|
onClick: n.sortable ? l : void 0,
|
|
2505
2505
|
class: x,
|
|
2506
2506
|
style: s,
|
|
@@ -2564,7 +2564,7 @@ const fd = "ElTableV2", md = fe({
|
|
|
2564
2564
|
data: f,
|
|
2565
2565
|
depthMap: h,
|
|
2566
2566
|
expandedRowKeys: v,
|
|
2567
|
-
hasFixedColumns:
|
|
2567
|
+
hasFixedColumns: p,
|
|
2568
2568
|
mainTableRef: w,
|
|
2569
2569
|
leftTableRef: b,
|
|
2570
2570
|
rightTableRef: x,
|
|
@@ -2693,7 +2693,7 @@ const fd = "ElTableV2", md = fe({
|
|
|
2693
2693
|
expandColumnKey: re,
|
|
2694
2694
|
expandedRowKeys: m(v),
|
|
2695
2695
|
estimatedRowHeight: J,
|
|
2696
|
-
hasFixedColumns: m(
|
|
2696
|
+
hasFixedColumns: m(p),
|
|
2697
2697
|
rowProps: ge,
|
|
2698
2698
|
rowClass: me,
|
|
2699
2699
|
rowKey: ie,
|
|
@@ -2888,7 +2888,7 @@ const fd = "ElTableV2", md = fe({
|
|
|
2888
2888
|
});
|
|
2889
2889
|
function vd(e) {
|
|
2890
2890
|
var n, a, o, l;
|
|
2891
|
-
if (
|
|
2891
|
+
if (g.isEmpty(e)) return {};
|
|
2892
2892
|
const t = {
|
|
2893
2893
|
config_type: e.config_type,
|
|
2894
2894
|
config_name: e.config_name,
|
|
@@ -2938,7 +2938,7 @@ function vd(e) {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
function bd(e) {
|
|
2940
2940
|
var n, a;
|
|
2941
|
-
if (
|
|
2941
|
+
if (g.isEmpty(e)) return {};
|
|
2942
2942
|
const t = {
|
|
2943
2943
|
config_type: e.config_type,
|
|
2944
2944
|
config_name: e.config_name,
|
|
@@ -3082,9 +3082,9 @@ async function iv(e, t) {
|
|
|
3082
3082
|
varsion: (i == null ? void 0 : i.version) || {}
|
|
3083
3083
|
}) ? (Object.keys(i.version).forEach((c) => {
|
|
3084
3084
|
Na.value[c] = (t == null ? void 0 : t.isAuth) ?? !0;
|
|
3085
|
-
}), t != null && t.preParsing && (
|
|
3085
|
+
}), t != null && t.preParsing && (g.isEmpty(i.form) || Object.keys(i.form).forEach((c) => {
|
|
3086
3086
|
i.form[c] = Ro(i.form[c]), i.form[c].preParsing = !0, i.form[c].batch_id = r;
|
|
3087
|
-
}),
|
|
3087
|
+
}), g.isEmpty(i.table) || await Promise.all(
|
|
3088
3088
|
Object.keys(i.table).map(async (c) => {
|
|
3089
3089
|
i.table[c] = await qo(i.table[c]), i.table[c].preParsing = !0, i.table[c].batch_id = r;
|
|
3090
3090
|
})
|
|
@@ -3097,32 +3097,32 @@ async function iv(e, t) {
|
|
|
3097
3097
|
config_json_data: s
|
|
3098
3098
|
}
|
|
3099
3099
|
}).then(async (c) => {
|
|
3100
|
-
const f =
|
|
3101
|
-
if (
|
|
3100
|
+
const f = g.get(c, "data", {});
|
|
3101
|
+
if (g.isEmpty(f)) {
|
|
3102
3102
|
Mt.warning("未查询到配置数据!");
|
|
3103
3103
|
return;
|
|
3104
3104
|
}
|
|
3105
3105
|
const h = {
|
|
3106
|
-
...
|
|
3106
|
+
...g.omit(t, "config_json_data"),
|
|
3107
3107
|
mid: n,
|
|
3108
3108
|
projectCode: o,
|
|
3109
3109
|
uid: t == null ? void 0 : t.uid
|
|
3110
3110
|
}, v = await sl(h), w = (await Promise.all(
|
|
3111
3111
|
Object.keys(f).map((b) => {
|
|
3112
3112
|
Na.value[b] = (t == null ? void 0 : t.isAuth) ?? !0;
|
|
3113
|
-
const x =
|
|
3114
|
-
return qs(x, { ...h, type:
|
|
3113
|
+
const x = g.get(f, b);
|
|
3114
|
+
return qs(x, { ...h, type: g.get(x, "0.config_type") }, v);
|
|
3115
3115
|
})
|
|
3116
3116
|
)).reduce(
|
|
3117
3117
|
(b, x) => {
|
|
3118
3118
|
var y, E;
|
|
3119
|
-
return
|
|
3119
|
+
return g.get(x, "form.config_unique_id") && (g.set(b, `form.${g.get(x, "form.config_unique_id")}`, x.form), g.set(b, `version.${g.get(x, "form.config_unique_id")}`, (y = x.form) == null ? void 0 : y.config_version)), g.get(x, "table.config_unique_id") && (g.set(b, `table.${g.get(x, "table.config_unique_id")}`, x.table), g.set(b, `version.${g.get(x, "table.config_unique_id")}`, (E = x.table) == null ? void 0 : E.config_version)), b;
|
|
3120
3120
|
},
|
|
3121
3121
|
{ form: {}, table: {}, version: {} }
|
|
3122
3122
|
);
|
|
3123
|
-
return bt({ mid: n, id: r, uid: t == null ? void 0 : t.uid },
|
|
3123
|
+
return bt({ mid: n, id: r, uid: t == null ? void 0 : t.uid }, g.cloneDeep(w), `batch_${r}`), t != null && t.preParsing && (g.isEmpty(w.form) || Object.keys(w.form).forEach((b) => {
|
|
3124
3124
|
w.form[b] = Ro(w.form[b]), w.form[b].preParsing = !0, w.form[b].batch_id = r;
|
|
3125
|
-
}),
|
|
3125
|
+
}), g.isEmpty(w.table) || await Promise.all(
|
|
3126
3126
|
Object.keys(w.table).map(async (b) => {
|
|
3127
3127
|
w.table[b] = await qo(w.table[b]), w.table[b].preParsing = !0, w.table[b].batch_id = r;
|
|
3128
3128
|
})
|
|
@@ -3139,9 +3139,9 @@ async function Cd(e) {
|
|
|
3139
3139
|
config_json_data: e.config_json_data
|
|
3140
3140
|
}
|
|
3141
3141
|
}).then((t) => {
|
|
3142
|
-
const n =
|
|
3143
|
-
if (
|
|
3144
|
-
if (
|
|
3142
|
+
const n = g.get(t, "data", {});
|
|
3143
|
+
if (g.isEmpty(n) || g.isEmpty(e.varsion)) return !1;
|
|
3144
|
+
if (g.isEqual(e.varsion, n))
|
|
3145
3145
|
return Ke({
|
|
3146
3146
|
url: `/${e.projectCode}-web/pri/v2/perminssion/get_menu_perm_version`,
|
|
3147
3147
|
method: "get",
|
|
@@ -3222,18 +3222,17 @@ async function sl(e) {
|
|
|
3222
3222
|
dictCodeStr: e.dictCodeStr
|
|
3223
3223
|
}
|
|
3224
3224
|
}).then(async (u) => {
|
|
3225
|
-
let d = (u == null ? void 0 : u.data) || []
|
|
3226
|
-
const
|
|
3227
|
-
for (let
|
|
3228
|
-
if (!
|
|
3229
|
-
const
|
|
3230
|
-
|
|
3225
|
+
let d = (u == null ? void 0 : u.data) || [];
|
|
3226
|
+
const c = i.dict_functions.map((f) => f.code);
|
|
3227
|
+
for (let f in d)
|
|
3228
|
+
if (!c.includes(f)) {
|
|
3229
|
+
const h = d[f].map((v) => ({ ...v, show: !0 }));
|
|
3230
|
+
i.dict_functions.push({
|
|
3231
3231
|
name: "",
|
|
3232
|
-
code:
|
|
3233
|
-
json_data: JSON.stringify(
|
|
3232
|
+
code: f,
|
|
3233
|
+
json_data: JSON.stringify(h)
|
|
3234
3234
|
});
|
|
3235
3235
|
}
|
|
3236
|
-
i.dict_functions = c;
|
|
3237
3236
|
});
|
|
3238
3237
|
} catch (u) {
|
|
3239
3238
|
console.error("批量获取字典报错=>>>>", u);
|
|
@@ -3243,18 +3242,18 @@ async function sl(e) {
|
|
|
3243
3242
|
});
|
|
3244
3243
|
}
|
|
3245
3244
|
async function qs(e, t, n) {
|
|
3246
|
-
|
|
3245
|
+
g.isEmpty(e) && (console.error("当前配置信息属性props=>>", t), Zt.warning("未查询到配置数据信息!"));
|
|
3247
3246
|
const [a, o, l, s, r, i] = (e == null ? void 0 : e.map((c) => [JSON.parse(c.business_json), c.config_version, c.project_code, c.is_auth, c.menu_id, c.config_unique_id]).flat()) || [];
|
|
3248
3247
|
t.unique && (a.uuid = pt()), a.mid = r, a.uid = t.uid, a.config_date = Vo().format("YYYY-MM-DD"), a.config_version = o, a.project_code = l, a.is_auth = a.is_auth || s, a.config_unique_id = i;
|
|
3249
3248
|
let u, d = yn();
|
|
3250
|
-
return t.type == "1" && (a.is_auth == "1" ?
|
|
3249
|
+
return t.type == "1" && (a.is_auth == "1" ? g.isEmpty(n.field_functions.table) ? (console.error("authData.field_functions.table=>>", n.field_functions.table, n.field_functions), console.error("当前配置信息=>>", a), Aa.value && (Mt.warning("暂无权限查看,请联系管理员配置权限!"), Aa.value = !1, setTimeout(() => {
|
|
3251
3250
|
Aa.value = !0;
|
|
3252
3251
|
}, 1e3)), u = {
|
|
3253
3252
|
config_name: "",
|
|
3254
3253
|
config_unique_id: a.config_unique_id,
|
|
3255
3254
|
btns: [],
|
|
3256
3255
|
tables: []
|
|
3257
|
-
}) : u = Ed(a, n) : u = kd(a), u = await Vs(t, u)), t.type == "2" && (a.is_auth == "1" ?
|
|
3256
|
+
}) : u = Ed(a, n) : u = kd(a), u = await Vs(t, u)), t.type == "2" && (a.is_auth == "1" ? g.isEmpty(n.field_functions.form) ? (Aa.value && (console.error("authData.field_functions.table=>>", n.field_functions.table, n.field_functions), console.error("当前配置信息=>>", a), Mt.warning("暂无权限查看,请联系管理员配置权限!"), Aa.value = !1, setTimeout(() => {
|
|
3258
3257
|
Aa.value = !0;
|
|
3259
3258
|
}, 1e3)), d = yn(a.config_unique_id)) : d = qd(a, n) : d = Vd(a)), {
|
|
3260
3259
|
table: u,
|
|
@@ -3270,17 +3269,17 @@ async function Id(e, t) {
|
|
|
3270
3269
|
const c = {}, f = ((d = i.form) == null ? void 0 : d.formConfig) || [];
|
|
3271
3270
|
f == null || f.forEach((v) => {
|
|
3272
3271
|
if (v.data.baseData.groupMark) {
|
|
3273
|
-
const
|
|
3274
|
-
c[
|
|
3272
|
+
const p = Ka + v.data.baseData.groupMark;
|
|
3273
|
+
c[p] || (c[p] = []), c[p].push(v.data.baseData.prop + "=" + v.data.baseData.positionInGroup), c[p].sort((w) => w.indexOf("start") > -1 ? -1 : 1);
|
|
3275
3274
|
}
|
|
3276
3275
|
});
|
|
3277
3276
|
for (let v in c)
|
|
3278
|
-
c[v] = c[v].map((
|
|
3277
|
+
c[v] = c[v].map((p) => p.split("=").shift());
|
|
3279
3278
|
const h = {};
|
|
3280
3279
|
f == null || f.forEach((v) => {
|
|
3281
3280
|
if (v.data.baseData.groupMark) {
|
|
3282
|
-
const
|
|
3283
|
-
h[
|
|
3281
|
+
const p = Ka + v.data.baseData.groupMark;
|
|
3282
|
+
h[p] || (h[p] = v);
|
|
3284
3283
|
} else
|
|
3285
3284
|
h[v.data.baseData.prop] = v;
|
|
3286
3285
|
}), i.form.formConfig = Object.values(h), Object.assign(i.form.formData, c, { menu_id: s });
|
|
@@ -3324,7 +3323,7 @@ async function Vs(e, t) {
|
|
|
3324
3323
|
return u.data.baseData.label = ((d = l == null ? void 0 : l[u.data.baseData.prop]) == null ? void 0 : d.showName) || u.data.baseData.label, u.data.baseData.userFieldShow = ((c = l == null ? void 0 : l[u.data.baseData.prop]) == null ? void 0 : c.userFieldShow) || u.data.baseData.isShow, u.sort = ((f = l == null ? void 0 : l[u.data.baseData.prop]) == null ? void 0 : f.sort) || 0, u;
|
|
3325
3324
|
}).sort((u, d) => u.sort - d.sort), Object.assign(t.form.formData, s, { menu_id: n });
|
|
3326
3325
|
}
|
|
3327
|
-
if (!
|
|
3326
|
+
if (!g.isEmpty(t == null ? void 0 : t.tables)) {
|
|
3328
3327
|
const o = e.projectCode || "qwp", l = await Promise.all(
|
|
3329
3328
|
t.tables.map((s) => Ll({
|
|
3330
3329
|
projectCode: o,
|
|
@@ -3335,7 +3334,7 @@ async function Vs(e, t) {
|
|
|
3335
3334
|
}))
|
|
3336
3335
|
);
|
|
3337
3336
|
t.tables.forEach((s, r) => {
|
|
3338
|
-
s.baseData.border =
|
|
3337
|
+
s.baseData.border = g.get(l, `${r}._baseconfig._border.${s.id}`, s.baseData.border), s.baseData.stripe = g.get(l, `${r}._baseconfig._stripe.${s.id}`, s.baseData.stripe), s.tableConfig = s.tableConfig.map((i) => (i.data.title = g.get(l, `${r}.${i.data.field}.showName`, i.data.title), i.data.userFieldShow = g.get(l, `${r}.${i.data.field}.userFieldShow`, i.data.isShow), i.data.width = g.get(l, `${r}.${i.data.field}.columnWidth`, i.data.width), i.sort = g.get(l, `${r}.${i.data.field}.sort`, i.sort ?? 0), i)).sort((i, u) => i.sort - u.sort);
|
|
3339
3338
|
});
|
|
3340
3339
|
}
|
|
3341
3340
|
return Promise.resolve(t);
|
|
@@ -3348,7 +3347,7 @@ async function Ll({
|
|
|
3348
3347
|
table_id: o
|
|
3349
3348
|
}) {
|
|
3350
3349
|
const l = await ds({ table_id: o, uid: a }), s = await gt({ mid: t, id: n, uid: a }, o);
|
|
3351
|
-
if (!
|
|
3350
|
+
if (!g.isEmpty(s)) {
|
|
3352
3351
|
for (let r in s)
|
|
3353
3352
|
s[r].fieldShow = ["1", "true", 1, !0].includes(s[r].fieldShow), s[r].userFieldShow = ["1", "true", 1, !0].includes(s[r].userFieldShow);
|
|
3354
3353
|
return s;
|
|
@@ -3368,13 +3367,13 @@ async function Ll({
|
|
|
3368
3367
|
userFieldShow: [0, 1, "0", "1"].includes(v == null ? void 0 : v.userFieldShow) ? v.userFieldShow == 1 : !0,
|
|
3369
3368
|
fieldProp: v.fieldProp,
|
|
3370
3369
|
fieldName: v.fieldName,
|
|
3371
|
-
columnWidth:
|
|
3370
|
+
columnWidth: g.get(l, v.fieldProp, v.columnWidth),
|
|
3372
3371
|
showName: v.showName,
|
|
3373
3372
|
sort: v.sort
|
|
3374
3373
|
}, h),
|
|
3375
3374
|
{}
|
|
3376
3375
|
);
|
|
3377
|
-
return u._baseconfig =
|
|
3376
|
+
return u._baseconfig = g.isEmpty((c = r.data) == null ? void 0 : c.base_config) ? {
|
|
3378
3377
|
_color: {},
|
|
3379
3378
|
_stripe: {},
|
|
3380
3379
|
_border: {}
|
|
@@ -3434,21 +3433,21 @@ function Td(e, t) {
|
|
|
3434
3433
|
var u, d, c;
|
|
3435
3434
|
const r = n[s.data.baseData.prop];
|
|
3436
3435
|
s.data.baseData.fieldShow = (r == null ? void 0 : r.fieldShow) ?? !1, s.data.baseData.userFieldShow = (r == null ? void 0 : r.userFieldShow) ?? s.data.baseData.isShow;
|
|
3437
|
-
const i =
|
|
3436
|
+
const i = g.get(s, "data.elData.groupAttrs.permissionsDict") || g.get(s, "data.elData.attrs.permissionsDict");
|
|
3438
3437
|
if (i && ((d = (u = e.form) == null ? void 0 : u.baseData) != null && d.isShowDictValue)) {
|
|
3439
|
-
const f = JSON.parse(((c = t.dict_functions.find((y) => y.code === i)) == null ? void 0 : c.json_data) || "[]"), h =
|
|
3440
|
-
let
|
|
3441
|
-
const w =
|
|
3442
|
-
b && !x && (
|
|
3438
|
+
const f = JSON.parse(((c = t.dict_functions.find((y) => y.code === i)) == null ? void 0 : c.json_data) || "[]"), h = g.find(f, { is_default: "1", show: !0 }), v = g.get(s, "data.elData.groupAttrs.value") ?? g.get(s, "data.elData.optionAttrs.value");
|
|
3439
|
+
let p = g.get(h, v, "");
|
|
3440
|
+
const w = g.get(e, `form.formData.${s.data.baseData.prop}`, ""), b = g.get(s, "data.elData.attrs.multiple"), x = !p.split(",").filter(Boolean).join(",");
|
|
3441
|
+
b && !x && (p = p.split(",")), g.set(e, `form.formData.${s.data.baseData.prop}`, !s.data.baseData.isHideDictDefaultValue && p || w);
|
|
3443
3442
|
}
|
|
3444
|
-
if (r && r.fieldChange && (s.data.baseData.label = r.showName,
|
|
3443
|
+
if (r && r.fieldChange && (s.data.baseData.label = r.showName, g.set(s, "data.elData.rules.required", r.fieldRequired ?? g.get(s, "data.elData.rules.required", !1))), g.get(s, "data.elData.rules.required")) {
|
|
3445
3444
|
const f = zn.includes(s.data.baseData.el) ? "请选择" : "请输入", h = zn.includes(s.data.baseData.el) ? "change" : "blur";
|
|
3446
|
-
if (
|
|
3447
|
-
|
|
3445
|
+
if (g.isEmpty(g.get(s, "data.elData.rules.rules")))
|
|
3446
|
+
g.set(s, "data.elData.rules.rules", [{ required: !0, message: `${f}${r.showName}`, trigger: h }]);
|
|
3448
3447
|
else {
|
|
3449
|
-
const v =
|
|
3450
|
-
if (/string=/.test(v) &&
|
|
3451
|
-
const w = new Function("return " +
|
|
3448
|
+
const v = g.get(s, "data.elData.rules.rules"), p = v.split("=")[1];
|
|
3449
|
+
if (/string=/.test(v) && p) {
|
|
3450
|
+
const w = new Function("return " + p)(), [b] = w.filter((y) => (y == null ? void 0 : y.required) == !0 || (y == null ? void 0 : y.required) == !1), x = b != null && b.required ? w : [
|
|
3452
3451
|
...w,
|
|
3453
3452
|
{
|
|
3454
3453
|
required: !0,
|
|
@@ -3456,11 +3455,11 @@ function Td(e, t) {
|
|
|
3456
3455
|
trigger: h
|
|
3457
3456
|
}
|
|
3458
3457
|
];
|
|
3459
|
-
|
|
3458
|
+
g.set(s, "data.elData.rules.rules", "string=" + cs(x));
|
|
3460
3459
|
}
|
|
3461
3460
|
}
|
|
3462
3461
|
}
|
|
3463
|
-
return s.data.baseData.el === "hs-select" &&
|
|
3462
|
+
return s.data.baseData.el === "hs-select" && g.get(s, "data.elData.attrs.multiple") && (g.set(s, "data.elData.attrs.max-collapse-tags", 1), g.set(s, "data.elData.attrs.collapse-tags", !0), g.set(s, "data.elData.attrs.collapse-tags-tooltip", !0)), s;
|
|
3464
3463
|
})) || [];
|
|
3465
3464
|
}
|
|
3466
3465
|
function Rd(e, t, n) {
|
|
@@ -3479,8 +3478,8 @@ function Rd(e, t, n) {
|
|
|
3479
3478
|
return Os(o);
|
|
3480
3479
|
}
|
|
3481
3480
|
function Os(e) {
|
|
3482
|
-
const t = e.reduce((a, o) => (o.data.type &&
|
|
3483
|
-
const o =
|
|
3481
|
+
const t = e.reduce((a, o) => (o.data.type && g.set(a, o.data.type, o), a), {}), n = ia.map((a) => {
|
|
3482
|
+
const o = g.get(t, a);
|
|
3484
3483
|
return o && ((o == null ? void 0 : o.data.type) === "checkbox" && (o.data.align = "center", o.data.headerAlign = "center", o.data.title = ""), o.data.fixed = "left", o.data.width = 50, o.data.minWidth = 50), o;
|
|
3485
3484
|
}).filter(Boolean);
|
|
3486
3485
|
return e = e.filter((a) => {
|
|
@@ -3540,10 +3539,10 @@ function Nd(e, t, n) {
|
|
|
3540
3539
|
const a = ((o = n.field_functions.form[t.config_unique_id]) == null ? void 0 : o.form) || {};
|
|
3541
3540
|
return ((l = e.config) == null ? void 0 : l.map((s) => {
|
|
3542
3541
|
const [r] = s.config, i = a[r.baseData.prop];
|
|
3543
|
-
if (s.label = (i == null ? void 0 : i.showName) ?? s.label, i != null && i.fieldChange &&
|
|
3542
|
+
if (s.label = (i == null ? void 0 : i.showName) ?? s.label, i != null && i.fieldChange && g.set(r, "elData.rules.required", i.fieldRequired ?? g.get(r, "elData.rules.required", !1)), g.get(r, "elData.rules.required")) {
|
|
3544
3543
|
const u = zn.includes(r.baseData.el) ? "请选择" : "请输入";
|
|
3545
|
-
if (
|
|
3546
|
-
|
|
3544
|
+
if (g.isEmpty(g.get(r, "elData.rules.rules")))
|
|
3545
|
+
g.set(r, "elData.rules.rules", [
|
|
3547
3546
|
{
|
|
3548
3547
|
required: !0,
|
|
3549
3548
|
message: `${u}${s.label}`,
|
|
@@ -3551,9 +3550,9 @@ function Nd(e, t, n) {
|
|
|
3551
3550
|
}
|
|
3552
3551
|
]);
|
|
3553
3552
|
else {
|
|
3554
|
-
const d =
|
|
3553
|
+
const d = g.get(r, "elData.rules.rules"), c = d.split("=")[1];
|
|
3555
3554
|
if (/string=/.test(d) && c) {
|
|
3556
|
-
const f = new Function("return " + c)(), [h] = f.filter((
|
|
3555
|
+
const f = new Function("return " + c)(), [h] = f.filter((p) => p.required), v = h != null && h.required ? f : [
|
|
3557
3556
|
...f,
|
|
3558
3557
|
{
|
|
3559
3558
|
required: !0,
|
|
@@ -3569,12 +3568,12 @@ function Nd(e, t, n) {
|
|
|
3569
3568
|
var f;
|
|
3570
3569
|
const d = a[u.baseData.prop];
|
|
3571
3570
|
u.baseData.fieldShow = (d == null ? void 0 : d.fieldShow) ?? !1, u.baseData.userFieldShow = (d == null ? void 0 : d.userFieldShow) ?? u.baseData.isShow;
|
|
3572
|
-
const c =
|
|
3571
|
+
const c = g.get(u, "elData.groupAttrs.permissionsDict") || g.get(u, "elData.attrs.permissionsDict");
|
|
3573
3572
|
if (c) {
|
|
3574
|
-
const v = JSON.parse(((f = n.dict_functions.find((E) => E.code === c)) == null ? void 0 : f.json_data) || "[]").find((E) => ["true", !0].includes(E.show) && E.is_default == "1"),
|
|
3575
|
-
let x =
|
|
3573
|
+
const v = JSON.parse(((f = n.dict_functions.find((E) => E.code === c)) == null ? void 0 : f.json_data) || "[]").find((E) => ["true", !0].includes(E.show) && E.is_default == "1"), p = g.get(u, "elData.groupAttrs.value") ?? g.get(u, "elData.optionAttrs.value"), w = g.get(t, `data.${e.fieldID}.${u.baseData.prop}`, ""), b = g.get(u, "elData.attrs.multiple");
|
|
3574
|
+
let x = g.get(v, p, "");
|
|
3576
3575
|
const y = !x.split(",").filter(Boolean).join(",");
|
|
3577
|
-
b && !y && (x = x.split(",")),
|
|
3576
|
+
b && !y && (x = x.split(",")), g.set(t, `data.${e.fieldID}.${u.baseData.prop}`, x || w);
|
|
3578
3577
|
}
|
|
3579
3578
|
return u;
|
|
3580
3579
|
}), s;
|
|
@@ -3637,7 +3636,7 @@ function Md(e) {
|
|
|
3637
3636
|
for (let l of o)
|
|
3638
3637
|
n[l.data.field] && (l.children = n[l.data.field], a(l.children));
|
|
3639
3638
|
};
|
|
3640
|
-
return
|
|
3639
|
+
return g.cloneDeep(e).forEach((o) => {
|
|
3641
3640
|
o.data.parent_field ? (n[o.data.parent_field] || (n[o.data.parent_field] = []), n[o.data.parent_field].push(o)) : (o.children = [], t.push(o));
|
|
3642
3641
|
}), a(t), t;
|
|
3643
3642
|
}
|
|
@@ -3663,7 +3662,7 @@ const Ad = /* @__PURE__ */ fe({
|
|
|
3663
3662
|
typeof (n == null ? void 0 : n.setLoading) == "function" ? n == null || n.setLoading(!0) : s.value = !0;
|
|
3664
3663
|
}, f = () => {
|
|
3665
3664
|
typeof (n == null ? void 0 : n.setLoading) == "function" ? n == null || n.setLoading(!1) : s.value = !1;
|
|
3666
|
-
}, h = Q({}), v = (S, M) => h.value[S] = M,
|
|
3665
|
+
}, h = Q({}), v = (S, M) => h.value[S] = M, p = (S) => S === "-1" ? h.value : h.value[S];
|
|
3667
3666
|
let w = {
|
|
3668
3667
|
dict_functions: [],
|
|
3669
3668
|
data_functions: [],
|
|
@@ -3708,7 +3707,7 @@ const Ad = /* @__PURE__ */ fe({
|
|
|
3708
3707
|
refreshData: b,
|
|
3709
3708
|
getAuthData: y,
|
|
3710
3709
|
setOptions: v,
|
|
3711
|
-
getOptions:
|
|
3710
|
+
getOptions: p,
|
|
3712
3711
|
isInitLoad: l,
|
|
3713
3712
|
setInitLoad: E,
|
|
3714
3713
|
showLoading: c,
|
|
@@ -3774,25 +3773,25 @@ const Ad = /* @__PURE__ */ fe({
|
|
|
3774
3773
|
});
|
|
3775
3774
|
r();
|
|
3776
3775
|
async function r(c = {}) {
|
|
3777
|
-
var h, v,
|
|
3776
|
+
var h, v, p, w, b;
|
|
3778
3777
|
if ((h = o == null ? void 0 : o.groupAttrs) != null && h.permissionsDict) {
|
|
3779
3778
|
const y = (await wn(o.mid, o.uid))[o.groupAttrs.permissionsDict] || [];
|
|
3780
|
-
|
|
3779
|
+
g.isEmpty(y) || (s.value = y, typeof (a == null ? void 0 : a.setOptionMap) == "function" && (a == null || a.setOptionMap(o.field, y)), typeof (n == null ? void 0 : n.setOptions) == "function" && (n == null || n.setOptions(o.field, y)));
|
|
3781
3780
|
return;
|
|
3782
3781
|
}
|
|
3783
3782
|
if (!((v = o == null ? void 0 : o.groupAttrs) != null && v.url)) return;
|
|
3784
|
-
const f = (
|
|
3783
|
+
const f = (p = o == null ? void 0 : o.groupAttrs) != null && p.params ? new Function("return " + ((w = o == null ? void 0 : o.groupAttrs) == null ? void 0 : w.params))() : {};
|
|
3785
3784
|
return Object.assign(f, c), i((b = o == null ? void 0 : o.groupAttrs) == null ? void 0 : b.url, f);
|
|
3786
3785
|
}
|
|
3787
3786
|
function i(c, f = {}, h) {
|
|
3788
|
-
var
|
|
3787
|
+
var p, w;
|
|
3789
3788
|
const v = Object.assign({ menu_id: o.mid }, f);
|
|
3790
3789
|
return Ke({
|
|
3791
|
-
url: "/" + ((
|
|
3790
|
+
url: "/" + ((p = o == null ? void 0 : o.groupAttrs) == null ? void 0 : p.proxy) + c,
|
|
3792
3791
|
method: ((w = o == null ? void 0 : o.groupAttrs) == null ? void 0 : w.method) || "get",
|
|
3793
3792
|
params: v
|
|
3794
3793
|
}).then((b) => {
|
|
3795
|
-
b && (s.value = typeof h == "function" ? h(
|
|
3794
|
+
b && (s.value = typeof h == "function" ? h(g.get(b, "data", [])) : g.get(b, "data", []), typeof (a == null ? void 0 : a.setOptionMap) == "function" && (a == null || a.setOptionMap(o.field, b.data)), typeof (n == null ? void 0 : n.setOptions) == "function" && (n == null || n.setOptions(o.field, b.data)));
|
|
3796
3795
|
});
|
|
3797
3796
|
}
|
|
3798
3797
|
function u(c) {
|
|
@@ -3802,19 +3801,19 @@ const Ad = /* @__PURE__ */ fe({
|
|
|
3802
3801
|
const h = U("el-radio"), v = U("el-radio-group");
|
|
3803
3802
|
return e.groupAttrs.isGroupEnabled ? (I(), K(v, ct(be({ key: 1 }, e.groupAttrs)), {
|
|
3804
3803
|
default: N(() => [
|
|
3805
|
-
(I(!0), j(Se, null, De(s.value, (
|
|
3804
|
+
(I(!0), j(Se, null, De(s.value, (p, w) => {
|
|
3806
3805
|
var b;
|
|
3807
3806
|
return I(), K(h, {
|
|
3808
3807
|
key: w,
|
|
3809
3808
|
border: c.$attrs.isButtonEnabled,
|
|
3810
3809
|
size: c.$attrs.size,
|
|
3811
|
-
disabled:
|
|
3812
|
-
value:
|
|
3810
|
+
disabled: p == null ? void 0 : p.disabled,
|
|
3811
|
+
value: p[(b = e.groupAttrs) == null ? void 0 : b.value]
|
|
3813
3812
|
}, {
|
|
3814
3813
|
default: N(() => {
|
|
3815
3814
|
var x;
|
|
3816
3815
|
return [
|
|
3817
|
-
Ie(Ne(
|
|
3816
|
+
Ie(Ne(p[(x = e.groupAttrs) == null ? void 0 : x.label]), 1)
|
|
3818
3817
|
];
|
|
3819
3818
|
}),
|
|
3820
3819
|
_: 2
|
|
@@ -3859,33 +3858,33 @@ const Ad = /* @__PURE__ */ fe({
|
|
|
3859
3858
|
var w, b, x, y, E;
|
|
3860
3859
|
if ((w = s == null ? void 0 : s.groupAttrs) != null && w.permissionsDict) {
|
|
3861
3860
|
const _ = (await wn(s.mid, s.uid))[s.groupAttrs.permissionsDict] || [];
|
|
3862
|
-
|
|
3861
|
+
g.isEmpty(_) || (u.value = _, typeof (l == null ? void 0 : l.setOptionMap) == "function" && (l == null || l.setOptionMap(s.field, _)), typeof (o == null ? void 0 : o.setOptions) == "function" && (o == null || o.setOptions(s.field, _)));
|
|
3863
3862
|
return;
|
|
3864
3863
|
}
|
|
3865
3864
|
if (!((b = s == null ? void 0 : s.groupAttrs) != null && b.url)) return;
|
|
3866
|
-
const
|
|
3867
|
-
return Object.assign(
|
|
3865
|
+
const p = (x = s == null ? void 0 : s.groupAttrs) != null && x.params ? new Function("return " + ((y = s == null ? void 0 : s.groupAttrs) == null ? void 0 : y.params))() : {};
|
|
3866
|
+
return Object.assign(p, v), c((E = s == null ? void 0 : s.groupAttrs) == null ? void 0 : E.url, p);
|
|
3868
3867
|
}
|
|
3869
|
-
function c(v,
|
|
3868
|
+
function c(v, p = {}, w) {
|
|
3870
3869
|
var x, y;
|
|
3871
|
-
const b = Object.assign({ menu_id: s.mid },
|
|
3870
|
+
const b = Object.assign({ menu_id: s.mid }, p);
|
|
3872
3871
|
return Ke({
|
|
3873
3872
|
url: "/" + ((x = s == null ? void 0 : s.groupAttrs) == null ? void 0 : x.proxy) + v,
|
|
3874
3873
|
method: ((y = s == null ? void 0 : s.groupAttrs) == null ? void 0 : y.method) || "get",
|
|
3875
3874
|
params: b
|
|
3876
3875
|
}).then((E) => {
|
|
3877
|
-
E && (u.value = typeof w == "function" ? w(
|
|
3876
|
+
E && (u.value = typeof w == "function" ? w(g.get(E, "data", [])) : g.get(E, "data", []), typeof (l == null ? void 0 : l.setOptionMap) == "function" && (l == null || l.setOptionMap(s.field, E.data)), typeof (o == null ? void 0 : o.setOptions) == "function" && (o == null || o.setOptions(s.field, E.data)));
|
|
3878
3877
|
});
|
|
3879
3878
|
}
|
|
3880
3879
|
function f(v) {
|
|
3881
3880
|
u.value = v;
|
|
3882
3881
|
}
|
|
3883
|
-
return t({ setOption: f, fetchData: d, getOptionList: c }), (v,
|
|
3882
|
+
return t({ setOption: f, fetchData: d, getOptionList: c }), (v, p) => {
|
|
3884
3883
|
const w = U("el-checkbox"), b = U("el-checkbox-group");
|
|
3885
3884
|
return e.groupAttrs.isGroupEnabled ? (I(), K(b, {
|
|
3886
3885
|
key: 1,
|
|
3887
3886
|
modelValue: r.value,
|
|
3888
|
-
"onUpdate:modelValue":
|
|
3887
|
+
"onUpdate:modelValue": p[0] || (p[0] = (x) => r.value = x)
|
|
3889
3888
|
}, {
|
|
3890
3889
|
default: N(() => [
|
|
3891
3890
|
(I(!0), j(Se, null, De(u.value, (x, y) => {
|
|
@@ -3955,7 +3954,7 @@ function Ns(e, t = { isIinit: !0 }) {
|
|
|
3955
3954
|
]), i.push([
|
|
3956
3955
|
h,
|
|
3957
3956
|
(v) => {
|
|
3958
|
-
r(h, v, 1), h.every((
|
|
3957
|
+
r(h, v, 1), h.every((p) => a[p] === 1) && f(v);
|
|
3959
3958
|
},
|
|
3960
3959
|
{ dedupe: !0, eventName: "keydown" }
|
|
3961
3960
|
]), !1;
|
|
@@ -4005,7 +4004,7 @@ function Wd(e) {
|
|
|
4005
4004
|
// 键盘上移动
|
|
4006
4005
|
["ArrowUp", v],
|
|
4007
4006
|
// 键盘下移动
|
|
4008
|
-
["ArrowDown",
|
|
4007
|
+
["ArrowDown", p]
|
|
4009
4008
|
],
|
|
4010
4009
|
{ isIinit: !1 }
|
|
4011
4010
|
), c = at(t, (D) => {
|
|
@@ -4014,10 +4013,10 @@ function Wd(e) {
|
|
|
4014
4013
|
if (C > -1 && (i.root = C), !((O = t.value) != null && O.closest(".hs-form-wraper"))) return;
|
|
4015
4014
|
const $ = (q = a.value) == null ? void 0 : q.closest(".el-tab-pane");
|
|
4016
4015
|
if ($) {
|
|
4017
|
-
$.style.display !== "none" && (z = e.data) != null && z.config_name && (dt.value = (Y =
|
|
4016
|
+
$.style.display !== "none" && (z = e.data) != null && z.config_name && (dt.value = (Y = g.cloneDeep(e.data)) == null ? void 0 : Y.config_unique_id);
|
|
4018
4017
|
return;
|
|
4019
4018
|
}
|
|
4020
|
-
(se = e.data) != null && se.config_name && (dt.value = (W =
|
|
4019
|
+
(se = e.data) != null && se.config_name && (dt.value = (W = g.cloneDeep(e.data)) == null ? void 0 : W.config_unique_id);
|
|
4021
4020
|
});
|
|
4022
4021
|
Ya(
|
|
4023
4022
|
() => {
|
|
@@ -4071,7 +4070,7 @@ function Wd(e) {
|
|
|
4071
4070
|
const $ = Number(u[k]);
|
|
4072
4071
|
w($ - C, "up") ? C > 1 && C < $ ? i.root = i.root - $ + C : i.root = i.root - Number(u[k]) : i.root--, i.root < 0 && (i.root = s.length - 1), E();
|
|
4073
4072
|
}
|
|
4074
|
-
function
|
|
4073
|
+
function p(D) {
|
|
4075
4074
|
var O, q, z, Y;
|
|
4076
4075
|
if (((O = t.value) == null ? void 0 : O.getAttribute("type")) === "number" || (D.preventDefault(), dt.value !== ((q = e.data) == null ? void 0 : q.config_unique_id)) || !((z = t.value) != null && z.closest(".hs-form-wraper"))) return;
|
|
4077
4076
|
const { fieldID: k, colSpan: C } = b((Y = t.value) == null ? void 0 : Y.closest(".el-form-item"));
|
|
@@ -4131,10 +4130,10 @@ function Wd(e) {
|
|
|
4131
4130
|
}
|
|
4132
4131
|
const S = Ve({});
|
|
4133
4132
|
function M(D, k, C) {
|
|
4134
|
-
|
|
4133
|
+
g.set(S.value, `${k}_${C}`, D);
|
|
4135
4134
|
}
|
|
4136
4135
|
function V(D, k) {
|
|
4137
|
-
return
|
|
4136
|
+
return g.get(S.value, `${D}_${k}`);
|
|
4138
4137
|
}
|
|
4139
4138
|
return {
|
|
4140
4139
|
formRef: a,
|
|
@@ -4189,7 +4188,7 @@ const Hd = {
|
|
|
4189
4188
|
const D = V == null ? void 0 : V.config;
|
|
4190
4189
|
return (D == null ? void 0 : D.filter((k) => h(k))) || [];
|
|
4191
4190
|
}
|
|
4192
|
-
function
|
|
4191
|
+
function p(V) {
|
|
4193
4192
|
return V == null ? void 0 : V.config;
|
|
4194
4193
|
}
|
|
4195
4194
|
function w(V) {
|
|
@@ -4205,25 +4204,25 @@ const Hd = {
|
|
|
4205
4204
|
return {
|
|
4206
4205
|
...V.baseData,
|
|
4207
4206
|
...V.elData.attrs,
|
|
4208
|
-
...
|
|
4207
|
+
...g.omit(V.elData, ["attrs", "rules"])
|
|
4209
4208
|
};
|
|
4210
4209
|
}
|
|
4211
4210
|
function y(V, D) {
|
|
4212
4211
|
V.fnName && typeof V.fnName == "function" && V.fnName(D);
|
|
4213
4212
|
}
|
|
4214
4213
|
function E(V) {
|
|
4215
|
-
const D =
|
|
4214
|
+
const D = g.get(V, "config.0.elData.rules.rules");
|
|
4216
4215
|
if (Array.isArray(D))
|
|
4217
4216
|
return D;
|
|
4218
|
-
const k =
|
|
4217
|
+
const k = g.get(V, "config.0.elData.rules");
|
|
4219
4218
|
return Array.isArray(k) ? k : [];
|
|
4220
4219
|
}
|
|
4221
4220
|
function R(V, D, k = ".") {
|
|
4222
|
-
const C =
|
|
4221
|
+
const C = g.get(V, "config.0.baseData.prop", "");
|
|
4223
4222
|
return `${D}${k}${C}`;
|
|
4224
4223
|
}
|
|
4225
4224
|
function _(V) {
|
|
4226
|
-
return
|
|
4225
|
+
return g.get(V, "config.0.baseData.tooltip", "");
|
|
4227
4226
|
}
|
|
4228
4227
|
function S(V) {
|
|
4229
4228
|
var D;
|
|
@@ -4311,7 +4310,7 @@ const Hd = {
|
|
|
4311
4310
|
key: L,
|
|
4312
4311
|
style: nt({ "--bg-color": (ee = W == null ? void 0 : W.attrs) == null ? void 0 : ee.bg })
|
|
4313
4312
|
}, [
|
|
4314
|
-
W.formItemType === "form" && !m(
|
|
4313
|
+
W.formItemType === "form" && !m(g).isEmpty(v(W)) ? (I(), j("div", {
|
|
4315
4314
|
key: 0,
|
|
4316
4315
|
class: Ge([`wrap_${W.fieldID}`])
|
|
4317
4316
|
}, [
|
|
@@ -4329,7 +4328,7 @@ const Hd = {
|
|
|
4329
4328
|
"row-gap": W.attrs.rowGap + "px"
|
|
4330
4329
|
})
|
|
4331
4330
|
}, [
|
|
4332
|
-
(I(!0), j(Se, null, De(
|
|
4331
|
+
(I(!0), j(Se, null, De(p(W), (H, te) => (I(), j(Se, { key: te }, [
|
|
4333
4332
|
h(H) ? (I(), K(O, {
|
|
4334
4333
|
key: 0,
|
|
4335
4334
|
label: H.label,
|
|
@@ -4447,7 +4446,7 @@ const Hd = {
|
|
|
4447
4446
|
setup(e, { emit: t }) {
|
|
4448
4447
|
const n = e, a = t, o = je("bcBoxApi", {}), l = je("popupApi", {});
|
|
4449
4448
|
let s = {}, r = {}, i = {};
|
|
4450
|
-
const u = Q(!1), d = Q(), c = Ve(), f = Q({}), h = (A, G) => f.value[A] = G, v = (A) => A === "-1" ? f.value : f.value[A],
|
|
4449
|
+
const u = Q(!1), d = Q(), c = Ve(), f = Q({}), h = (A, G) => f.value[A] = G, v = (A) => A === "-1" ? f.value : f.value[A], p = () => n.data.config_unique_id, w = () => {
|
|
4451
4450
|
var A;
|
|
4452
4451
|
return (A = c.value) == null ? void 0 : A.getInstance();
|
|
4453
4452
|
}, b = (A, G) => {
|
|
@@ -4464,33 +4463,33 @@ const Hd = {
|
|
|
4464
4463
|
return A ? (re = d.value) == null ? void 0 : re.data[A] : (ne = d.value) == null ? void 0 : ne.data;
|
|
4465
4464
|
}, E = () => Jr([{ getData: y }]), R = (A, G, J) => {
|
|
4466
4465
|
const re = A.split(".");
|
|
4467
|
-
return re.length > 1 &&
|
|
4466
|
+
return re.length > 1 && g.has(d.value.data, A) ? g.set(d.value.data, re, G) : J ? d.value.data[A][J] = G : g.set(d.value.data, A, G), Me();
|
|
4468
4467
|
}, _ = (A, G, J = ["id"]) => (Zr(d.value.data[A], G, J), Me()), S = (A, G = ["id"]) => {
|
|
4469
|
-
const J = Object.assign(
|
|
4468
|
+
const J = Object.assign(g.cloneDeep(i), A), re = g.keys(d.value.data);
|
|
4470
4469
|
return re.forEach((ne) => {
|
|
4471
|
-
|
|
4470
|
+
g.keys(d.value.data[ne]).forEach((ye) => {
|
|
4472
4471
|
Object.assign(d.value.data[ne], { [ye]: J[ye] });
|
|
4473
4472
|
});
|
|
4474
4473
|
}), G.forEach((ne) => {
|
|
4475
4474
|
Object.assign(d.value.data[re[0]], { [ne]: J[ne] });
|
|
4476
4475
|
}), Me();
|
|
4477
4476
|
}, M = (A) => d.value.btns.find((G) => G.data.key === A), V = (A, G = !0) => {
|
|
4478
|
-
const J = Array.isArray(A) ? A : [A], re = d.value.btns.reduce((ne, ye) => (
|
|
4477
|
+
const J = Array.isArray(A) ? A : [A], re = d.value.btns.reduce((ne, ye) => (g.set(ne, ye.data.key, ye), ne), {});
|
|
4479
4478
|
J.forEach((ne) => {
|
|
4480
|
-
const ye =
|
|
4479
|
+
const ye = g.get(re, ne);
|
|
4481
4480
|
ye && (ye.data.isShow = !G);
|
|
4482
4481
|
});
|
|
4483
4482
|
}, D = (A, G = !0) => {
|
|
4484
|
-
const J = Array.isArray(A) ? A : [A], re = d.value.btns.reduce((ne, ye) => (
|
|
4483
|
+
const J = Array.isArray(A) ? A : [A], re = d.value.btns.reduce((ne, ye) => (g.set(ne, ye.data.key, ye), ne), {});
|
|
4485
4484
|
J.forEach((ne) => {
|
|
4486
|
-
const ye =
|
|
4485
|
+
const ye = g.get(re, ne);
|
|
4487
4486
|
ye && (ye.data.disabled = G);
|
|
4488
4487
|
});
|
|
4489
4488
|
}, k = (A, G) => {
|
|
4490
4489
|
var re;
|
|
4491
4490
|
const J = d.value.form.find((ne) => ne.formItemType === "form" && ne.fieldID === A);
|
|
4492
4491
|
if (J) {
|
|
4493
|
-
let ne =
|
|
4492
|
+
let ne = g.cloneDeep(g.get(J.config, "0.config.0"));
|
|
4494
4493
|
for (let ye in J.config) {
|
|
4495
4494
|
const pe = (re = J.config[ye].config) == null ? void 0 : re.find((Ce) => Ce.baseData.prop === G);
|
|
4496
4495
|
if (pe) {
|
|
@@ -4504,7 +4503,7 @@ const Hd = {
|
|
|
4504
4503
|
var re;
|
|
4505
4504
|
const J = d.value.form.find((ne) => ne.formItemType === "form" && ne.fieldID === A);
|
|
4506
4505
|
if (J) {
|
|
4507
|
-
let ne =
|
|
4506
|
+
let ne = g.cloneDeep(g.get(J.config, "0.layoutData"));
|
|
4508
4507
|
for (let ye in J.config)
|
|
4509
4508
|
if ((re = J.config[ye].config) == null ? void 0 : re.find((Ce) => Ce.baseData.prop === G)) {
|
|
4510
4509
|
ne = J.config[ye].layoutData;
|
|
@@ -4518,12 +4517,12 @@ const Hd = {
|
|
|
4518
4517
|
const ye = ne.config.reduce(
|
|
4519
4518
|
(pe, Ce) => {
|
|
4520
4519
|
const [Be] = Ce.config;
|
|
4521
|
-
return
|
|
4520
|
+
return g.set(pe, Be.baseData.prop, Be), pe;
|
|
4522
4521
|
},
|
|
4523
4522
|
{}
|
|
4524
4523
|
);
|
|
4525
4524
|
re.forEach((pe) => {
|
|
4526
|
-
const Ce =
|
|
4525
|
+
const Ce = g.get(ye, pe);
|
|
4527
4526
|
Ce && (Ce.baseData.isShow = !J);
|
|
4528
4527
|
});
|
|
4529
4528
|
}, O = (A, G, J = !0) => {
|
|
@@ -4532,12 +4531,12 @@ const Hd = {
|
|
|
4532
4531
|
const ye = ne.config.reduce(
|
|
4533
4532
|
(pe, Ce) => {
|
|
4534
4533
|
const [Be] = Ce.config;
|
|
4535
|
-
return
|
|
4534
|
+
return g.set(pe, Be.baseData.prop, Be), pe;
|
|
4536
4535
|
},
|
|
4537
4536
|
{}
|
|
4538
4537
|
);
|
|
4539
4538
|
re.forEach((pe) => {
|
|
4540
|
-
const Ce =
|
|
4539
|
+
const Ce = g.get(ye, pe);
|
|
4541
4540
|
Ce && (Ce.elData.attrs.disabled = J);
|
|
4542
4541
|
});
|
|
4543
4542
|
}, q = (A, G, J = !0) => {
|
|
@@ -4546,15 +4545,15 @@ const Hd = {
|
|
|
4546
4545
|
const ye = ne.config.reduce(
|
|
4547
4546
|
(pe, Ce) => {
|
|
4548
4547
|
const [Be] = Ce.config;
|
|
4549
|
-
return
|
|
4548
|
+
return g.set(pe, Be.baseData.prop, Be), pe;
|
|
4550
4549
|
},
|
|
4551
4550
|
{}
|
|
4552
4551
|
);
|
|
4553
4552
|
re.forEach((pe) => {
|
|
4554
|
-
const Ce =
|
|
4553
|
+
const Ce = g.get(ye, pe);
|
|
4555
4554
|
if (Ce) {
|
|
4556
4555
|
const Be = zn.includes(Ce.baseData.el) ? "请选择" : "请输入" + Ce.baseData.label;
|
|
4557
|
-
|
|
4556
|
+
g.set(
|
|
4558
4557
|
Ce,
|
|
4559
4558
|
"elData.rules",
|
|
4560
4559
|
J ? [
|
|
@@ -4575,7 +4574,7 @@ const Hd = {
|
|
|
4575
4574
|
function ee(A) {
|
|
4576
4575
|
var G, J, re;
|
|
4577
4576
|
return (re = (J = (G = c.value) == null ? void 0 : G.getInstance()) == null ? void 0 : J.validate()) == null ? void 0 : re.then(() => {
|
|
4578
|
-
const ne = d.value.attrs, ye = d.value.attrs.action_name || d.value.config_name, pe =
|
|
4577
|
+
const ne = d.value.attrs, ye = d.value.attrs.action_name || d.value.config_name, pe = g.isEmpty(A) ? {
|
|
4579
4578
|
...E(),
|
|
4580
4579
|
other_log_info: { title: ye }
|
|
4581
4580
|
} : { ...A, other_log_info: { title: ye } }, Ce = {
|
|
@@ -4594,13 +4593,13 @@ const Hd = {
|
|
|
4594
4593
|
},
|
|
4595
4594
|
() => {
|
|
4596
4595
|
Me(() => {
|
|
4597
|
-
const A = bd(
|
|
4598
|
-
i =
|
|
4596
|
+
const A = bd(g.cloneDeep(d.value)), G = X(() => d.value.data), J = E();
|
|
4597
|
+
i = g.omit(J, Sl), L(), a("ready", {
|
|
4599
4598
|
data: G,
|
|
4600
4599
|
configData: A,
|
|
4601
4600
|
getData: y,
|
|
4602
4601
|
getFullData: E,
|
|
4603
|
-
getConfigId:
|
|
4602
|
+
getConfigId: p,
|
|
4604
4603
|
setData: R,
|
|
4605
4604
|
mergeData: _,
|
|
4606
4605
|
merageAllData: S,
|
|
@@ -4635,7 +4634,7 @@ const Hd = {
|
|
|
4635
4634
|
},
|
|
4636
4635
|
(A) => {
|
|
4637
4636
|
Me(() => {
|
|
4638
|
-
s =
|
|
4637
|
+
s = g.cloneDeep(A);
|
|
4639
4638
|
});
|
|
4640
4639
|
}
|
|
4641
4640
|
);
|
|
@@ -4651,7 +4650,7 @@ const Hd = {
|
|
|
4651
4650
|
);
|
|
4652
4651
|
function te(A) {
|
|
4653
4652
|
var G, J;
|
|
4654
|
-
(A.includes(((G = n == null ? void 0 : n.data) == null ? void 0 : G.mid) || "") || A.length == 0) && (r =
|
|
4653
|
+
(A.includes(((G = n == null ? void 0 : n.data) == null ? void 0 : G.mid) || "") || A.length == 0) && (r = g.cloneDeep(d.value.data), (J = w()) == null || J.clearValidate(), d.value.data = g.cloneDeep(s));
|
|
4655
4654
|
}
|
|
4656
4655
|
return Wn.on("closeTabs", te), Da(() => {
|
|
4657
4656
|
H(), Wn.off("closeTabs", te);
|
|
@@ -4659,12 +4658,12 @@ const Hd = {
|
|
|
4659
4658
|
n.closeLoading || W();
|
|
4660
4659
|
}), Bt(() => {
|
|
4661
4660
|
var A;
|
|
4662
|
-
a("destroy",
|
|
4661
|
+
a("destroy", g.isEmpty(r) ? g.cloneDeep((A = d.value) == null ? void 0 : A.data) : g.cloneDeep(r));
|
|
4663
4662
|
}), Vt("bcFormApi", {
|
|
4664
4663
|
getData: y,
|
|
4665
4664
|
setData: R,
|
|
4666
4665
|
getInstance: w,
|
|
4667
|
-
getConfigId:
|
|
4666
|
+
getConfigId: p,
|
|
4668
4667
|
getDataInstance: Y,
|
|
4669
4668
|
getItemConfig: k,
|
|
4670
4669
|
getOptions: se,
|
|
@@ -4734,11 +4733,11 @@ function cc(e, t) {
|
|
|
4734
4733
|
let a = o();
|
|
4735
4734
|
function o() {
|
|
4736
4735
|
return at(Xo(), (r) => {
|
|
4737
|
-
var f, h, v,
|
|
4738
|
-
const i =
|
|
4736
|
+
var f, h, v, p, w, b;
|
|
4737
|
+
const i = g.find((f = r == null ? void 0 : r.closest(".el-form-item")) == null ? void 0 : f.classList, (x) => x.includes("query_"));
|
|
4739
4738
|
if (!i) return;
|
|
4740
4739
|
const u = i.replace("query_", ""), d = (h = e.value) == null ? void 0 : h.find((x) => x.data.baseData.prop === u);
|
|
4741
|
-
!d ||
|
|
4740
|
+
!d || g.find(n, (x) => r === x) || (v = r == null ? void 0 : r.classList) != null && v.contains("el-select__input") || (p = r == null ? void 0 : r.classList) != null && p.contains("el-select__wrapper") || ((b = (w = d.data) == null ? void 0 : w.baseData) == null ? void 0 : b.el2) != "hs-date-picker" && (d.data.baseData.isCloseQuickSearch || (n.push(r), r == null || r.addEventListener("keydown", (x) => {
|
|
4742
4741
|
x.key === "Enter" && t();
|
|
4743
4742
|
})));
|
|
4744
4743
|
});
|
|
@@ -4747,7 +4746,7 @@ function cc(e, t) {
|
|
|
4747
4746
|
s(), a = o();
|
|
4748
4747
|
}
|
|
4749
4748
|
function s() {
|
|
4750
|
-
a(),
|
|
4749
|
+
a(), g.forEach(n, (r) => {
|
|
4751
4750
|
r == null || r.removeEventListener("keydown", t);
|
|
4752
4751
|
}), n.length = 0;
|
|
4753
4752
|
}
|
|
@@ -4780,7 +4779,7 @@ const fc = { class: "bc-form__wrapper" }, mc = { class: "bc-form__btn" }, Al = 1
|
|
|
4780
4779
|
return ((O = n.formConfig) == null ? void 0 : O.filter((q) => Sa({ ...q.data.baseData, uniqueId: n.uniqueId }))) || [];
|
|
4781
4780
|
}), f = Q([]);
|
|
4782
4781
|
let h = "";
|
|
4783
|
-
const v =
|
|
4782
|
+
const v = g.throttle(b, 300), p = at(
|
|
4784
4783
|
[u, () => c.value],
|
|
4785
4784
|
() => {
|
|
4786
4785
|
v(u.value);
|
|
@@ -4788,7 +4787,7 @@ const fc = { class: "bc-form__wrapper" }, mc = { class: "bc-form__btn" }, Al = 1
|
|
|
4788
4787
|
{ immediate: !0 }
|
|
4789
4788
|
), { resetwatch: w } = cc(c, V);
|
|
4790
4789
|
Bt(() => {
|
|
4791
|
-
|
|
4790
|
+
p();
|
|
4792
4791
|
});
|
|
4793
4792
|
function b(O) {
|
|
4794
4793
|
return Me().then(() => {
|
|
@@ -4822,7 +4821,7 @@ const fc = { class: "bc-form__wrapper" }, mc = { class: "bc-form__btn" }, Al = 1
|
|
|
4822
4821
|
}
|
|
4823
4822
|
function y(O) {
|
|
4824
4823
|
return {
|
|
4825
|
-
...
|
|
4824
|
+
...g.omit(O.baseData, [
|
|
4826
4825
|
"el",
|
|
4827
4826
|
"el2",
|
|
4828
4827
|
"groupField",
|
|
@@ -4848,10 +4847,10 @@ const fc = { class: "bc-form__wrapper" }, mc = { class: "bc-form__btn" }, Al = 1
|
|
|
4848
4847
|
};
|
|
4849
4848
|
}
|
|
4850
4849
|
function E(O) {
|
|
4851
|
-
return
|
|
4850
|
+
return g.omit(
|
|
4852
4851
|
{
|
|
4853
4852
|
...O.data.elData,
|
|
4854
|
-
shortcut:
|
|
4853
|
+
shortcut: g.get(O, "data.baseData.shortcut", "")
|
|
4855
4854
|
},
|
|
4856
4855
|
"rules"
|
|
4857
4856
|
);
|
|
@@ -4867,7 +4866,7 @@ const fc = { class: "bc-form__wrapper" }, mc = { class: "bc-form__btn" }, Al = 1
|
|
|
4867
4866
|
i.value = !1;
|
|
4868
4867
|
}
|
|
4869
4868
|
function S() {
|
|
4870
|
-
return f.value.map((O) =>
|
|
4869
|
+
return f.value.map((O) => g.get(s.value, O.data.baseData.prop));
|
|
4871
4870
|
}
|
|
4872
4871
|
function M() {
|
|
4873
4872
|
return l.value;
|
|
@@ -4890,12 +4889,12 @@ const fc = { class: "bc-form__wrapper" }, mc = { class: "bc-form__btn" }, Al = 1
|
|
|
4890
4889
|
}
|
|
4891
4890
|
let k = {};
|
|
4892
4891
|
function C(O, q) {
|
|
4893
|
-
|
|
4894
|
-
|
|
4892
|
+
g.has(k, q) || (g.set(k, q), g.set(s.value, q, O), setTimeout(() => {
|
|
4893
|
+
g.unset(k, q);
|
|
4895
4894
|
}));
|
|
4896
4895
|
}
|
|
4897
4896
|
function $(O) {
|
|
4898
|
-
return
|
|
4897
|
+
return g.get(s.value, O);
|
|
4899
4898
|
}
|
|
4900
4899
|
return Vt("setItemInstance", C), t({
|
|
4901
4900
|
componentRef: r,
|
|
@@ -5218,8 +5217,8 @@ function ht(e, t, n, a, o) {
|
|
|
5218
5217
|
}
|
|
5219
5218
|
while (o = o.parentNode);
|
|
5220
5219
|
if (a && e !== window) {
|
|
5221
|
-
var h = Ha(o || e), v = h && h.a,
|
|
5222
|
-
h && (s /=
|
|
5220
|
+
var h = Ha(o || e), v = h && h.a, p = h && h.d;
|
|
5221
|
+
h && (s /= p, r /= v, c /= v, d /= p, i = s + d, u = r + c);
|
|
5223
5222
|
}
|
|
5224
5223
|
return {
|
|
5225
5224
|
top: s,
|
|
@@ -5466,14 +5465,14 @@ var Pa = [], go = {
|
|
|
5466
5465
|
function Bc(e) {
|
|
5467
5466
|
var t = e.sortable, n = e.rootEl, a = e.name, o = e.targetEl, l = e.cloneEl, s = e.toEl, r = e.fromEl, i = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, f = e.originalEvent, h = e.putSortable, v = e.extraEventProperties;
|
|
5468
5467
|
if (t = t || n && n[jt], !!t) {
|
|
5469
|
-
var
|
|
5470
|
-
window.CustomEvent && !ha && !Dn ?
|
|
5468
|
+
var p, w = t.options, b = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
5469
|
+
window.CustomEvent && !ha && !Dn ? p = new CustomEvent(a, {
|
|
5471
5470
|
bubbles: !0,
|
|
5472
5471
|
cancelable: !0
|
|
5473
|
-
}) : (
|
|
5472
|
+
}) : (p = document.createEvent("Event"), p.initEvent(a, !0, !0)), p.to = s || n, p.from = r || n, p.item = o || n, p.clone = l, p.oldIndex = i, p.newIndex = u, p.oldDraggableIndex = d, p.newDraggableIndex = c, p.originalEvent = f, p.pullMode = h ? h.lastPutMode : void 0;
|
|
5474
5473
|
var x = oa(oa({}, v), Cn.getEventProperties(a, t));
|
|
5475
|
-
for (var y in x)
|
|
5476
|
-
n && n.dispatchEvent(
|
|
5474
|
+
for (var y in x) p[y] = x[y];
|
|
5475
|
+
n && n.dispatchEvent(p), w[b] && w[b].call(t, p);
|
|
5477
5476
|
}
|
|
5478
5477
|
}
|
|
5479
5478
|
var Uc = ["evt"], Lt = function(e, t) {
|
|
@@ -5868,7 +5867,7 @@ Oe.prototype = /** @lends Sortable.prototype */
|
|
|
5868
5867
|
_onDragOver: function(e) {
|
|
5869
5868
|
var t = this.el, n = e.target, a, o, l, s = this.options, r = s.group, i = Oe.active, u = $n === r, d = s.sort, c = Ct || i, f, h = this, v = !1;
|
|
5870
5869
|
if (Bo) return;
|
|
5871
|
-
function
|
|
5870
|
+
function p(Y, se) {
|
|
5872
5871
|
Lt(
|
|
5873
5872
|
Y,
|
|
5874
5873
|
h,
|
|
@@ -5894,13 +5893,13 @@ Oe.prototype = /** @lends Sortable.prototype */
|
|
|
5894
5893
|
);
|
|
5895
5894
|
}
|
|
5896
5895
|
function w() {
|
|
5897
|
-
|
|
5896
|
+
p("dragOverAnimationCapture"), h.captureAnimationState(), h !== c && c.captureAnimationState();
|
|
5898
5897
|
}
|
|
5899
5898
|
function b(Y) {
|
|
5900
|
-
return
|
|
5899
|
+
return p("dragOverCompleted", {
|
|
5901
5900
|
insertion: Y
|
|
5902
5901
|
}), Y && (u ? i._hideClone() : i._showClone(h), h !== c && (Ft(ce, Ct ? Ct.options.ghostClass : i.options.ghostClass, !1), Ft(ce, s.ghostClass, !0)), Ct !== h && h !== Oe.active ? Ct = h : h === Oe.active && Ct && (Ct = null), c === h && (h._ignoreWhileAnimating = n), h.animateAll(function() {
|
|
5903
|
-
|
|
5902
|
+
p("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
|
|
5904
5903
|
}), h !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (n === ce && !ce.animated || n === t && !n.animated) && (ja = null), !s.dragoverBubble && !e.rootEl && n !== document && (ce.parentNode[jt]._isOutsideThisEl(e.target), !Y && Ea(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), v = !0;
|
|
5905
5904
|
}
|
|
5906
5905
|
function x() {
|
|
@@ -5913,15 +5912,15 @@ Oe.prototype = /** @lends Sortable.prototype */
|
|
|
5913
5912
|
originalEvent: e
|
|
5914
5913
|
});
|
|
5915
5914
|
}
|
|
5916
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ea(n, s.draggable, t, !0),
|
|
5915
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = ea(n, s.draggable, t, !0), p("dragOver"), Oe.eventCanceled)
|
|
5917
5916
|
return v;
|
|
5918
5917
|
if (ce.contains(e.target) || n.animated && n.animatingX && n.animatingY || h._ignoreWhileAnimating === n)
|
|
5919
5918
|
return b(!1);
|
|
5920
5919
|
if (Jn = !1, i && !s.disabled && (u ? d || (l = rt !== ot) : Ct === this || (this.lastPutMode = $n.checkPull(this, i, ce, e)) && r.checkPut(this, i, ce, e))) {
|
|
5921
|
-
if (f = this._getDirection(e, n) === "vertical", a = ht(ce),
|
|
5920
|
+
if (f = this._getDirection(e, n) === "vertical", a = ht(ce), p("dragOverValid"), Oe.eventCanceled)
|
|
5922
5921
|
return v;
|
|
5923
5922
|
if (l)
|
|
5924
|
-
return rt = ot, w(), this._hideClone(),
|
|
5923
|
+
return rt = ot, w(), this._hideClone(), p("revert"), Oe.eventCanceled || (ka ? ot.insertBefore(ce, ka) : ot.appendChild(ce)), b(!0);
|
|
5925
5924
|
var y = il(t, s.draggable);
|
|
5926
5925
|
if (!y || Qc(e, f, this) && !y.animated) {
|
|
5927
5926
|
if (y === ce) return b(!1);
|
|
@@ -6294,9 +6293,9 @@ var So = Ws(function(e, t, n, a) {
|
|
|
6294
6293
|
zo !== n && (zo = n, jn(), sn = t.scroll, d = t.scrollFn, sn === !0 && (sn = _a(n, !0)));
|
|
6295
6294
|
var c = 0, f = sn;
|
|
6296
6295
|
do {
|
|
6297
|
-
var h = f, v = ht(h),
|
|
6296
|
+
var h = f, v = ht(h), p = v.top, w = v.bottom, b = v.left, x = v.right, y = v.width, E = v.height, R = void 0, _ = void 0, S = h.scrollWidth, M = h.scrollHeight, V = Te(h), D = h.scrollLeft, k = h.scrollTop;
|
|
6298
6297
|
h === i ? (R = y < S && (V.overflowX === "auto" || V.overflowX === "scroll" || V.overflowX === "visible"), _ = E < M && (V.overflowY === "auto" || V.overflowY === "scroll" || V.overflowY === "visible")) : (R = y < S && (V.overflowX === "auto" || V.overflowX === "scroll"), _ = E < M && (V.overflowY === "auto" || V.overflowY === "scroll"));
|
|
6299
|
-
var C = R && (Math.abs(x - o) <= s && D + y < S) - (Math.abs(b - o) <= s && !!D), $ = _ && (Math.abs(w - l) <= s && k + E < M) - (Math.abs(
|
|
6298
|
+
var C = R && (Math.abs(x - o) <= s && D + y < S) - (Math.abs(b - o) <= s && !!D), $ = _ && (Math.abs(w - l) <= s && k + E < M) - (Math.abs(p - l) <= s && !!k);
|
|
6300
6299
|
if (!mt[c]) for (var O = 0; O <= c; O++) mt[O] || (mt[O] = {});
|
|
6301
6300
|
(mt[c].vx != C || mt[c].vy != $ || mt[c].el !== h) && (mt[c].el = h, mt[c].vx = C, mt[c].vy = $, clearInterval(mt[c].pid), (C != 0 || $ != 0) && (u = !0, mt[c].pid = setInterval(
|
|
6302
6301
|
(function() {
|
|
@@ -6420,7 +6419,7 @@ function sf(...e) {
|
|
|
6420
6419
|
}
|
|
6421
6420
|
Bl(m(l), V, D);
|
|
6422
6421
|
}
|
|
6423
|
-
const
|
|
6422
|
+
const p = {
|
|
6424
6423
|
onUpdate: v,
|
|
6425
6424
|
onStart: c,
|
|
6426
6425
|
onAdd: f,
|
|
@@ -6433,7 +6432,7 @@ function sf(...e) {
|
|
|
6433
6432
|
function b() {
|
|
6434
6433
|
var _;
|
|
6435
6434
|
const S = (_ = m(s)) != null ? _ : {}, { immediate: M, clone: V } = S, D = As(S, ["immediate", "clone"]);
|
|
6436
|
-
return kc(l === null ? {} :
|
|
6435
|
+
return kc(l === null ? {} : p, D);
|
|
6437
6436
|
}
|
|
6438
6437
|
const x = (_) => {
|
|
6439
6438
|
_ = w(_), r && y.destroy(), r = new Oe(_, b());
|
|
@@ -6531,9 +6530,9 @@ const Ho = [
|
|
|
6531
6530
|
const f = `on${c.replace(/^\S/, (h) => h.toUpperCase())}`;
|
|
6532
6531
|
return d[f] = (...h) => n(c, ...h), d;
|
|
6533
6532
|
}, {}), s = X(() => {
|
|
6534
|
-
const d = ki(e), { modelValue: c } = d, f = As(d, ["modelValue"]), h = Object.entries(f).reduce((v, [
|
|
6533
|
+
const d = ki(e), { modelValue: c } = d, f = As(d, ["modelValue"]), h = Object.entries(f).reduce((v, [p, w]) => {
|
|
6535
6534
|
const b = m(w);
|
|
6536
|
-
return b !== void 0 && (v[
|
|
6535
|
+
return b !== void 0 && (v[p] = b), v;
|
|
6537
6536
|
}, {});
|
|
6538
6537
|
return za(za({}, l), wc(za(za({}, o), h)));
|
|
6539
6538
|
}), r = X({
|
|
@@ -6567,22 +6566,22 @@ const Ho = [
|
|
|
6567
6566
|
return a.formConfig.filter((v) => Sa({ ...v.data.baseData, uniqueId: a.uniqueId }));
|
|
6568
6567
|
},
|
|
6569
6568
|
set(v) {
|
|
6570
|
-
const
|
|
6571
|
-
o("update:formConfig", [...v, ...
|
|
6569
|
+
const p = a.formConfig.filter((w) => !Sa({ ...w.data.baseData, uniqueId: a.uniqueId }));
|
|
6570
|
+
o("update:formConfig", [...v, ...p]);
|
|
6572
6571
|
}
|
|
6573
6572
|
});
|
|
6574
6573
|
function d(v) {
|
|
6575
|
-
return
|
|
6574
|
+
return g.omit(
|
|
6576
6575
|
{
|
|
6577
6576
|
...v.data.elData,
|
|
6578
|
-
shortcut:
|
|
6577
|
+
shortcut: g.get(v, "data.baseData.shortcut", "")
|
|
6579
6578
|
},
|
|
6580
6579
|
"rules"
|
|
6581
6580
|
);
|
|
6582
6581
|
}
|
|
6583
6582
|
function c(v) {
|
|
6584
6583
|
return {
|
|
6585
|
-
...
|
|
6584
|
+
...g.omit(v.baseData, ["el", "isSlot", "isAuth", "isApply", "isShow"]),
|
|
6586
6585
|
...v.elData.rules
|
|
6587
6586
|
};
|
|
6588
6587
|
}
|
|
@@ -6596,7 +6595,7 @@ const Ho = [
|
|
|
6596
6595
|
componentRef: r,
|
|
6597
6596
|
getComponents: f,
|
|
6598
6597
|
getInstance: h
|
|
6599
|
-
}), (v,
|
|
6598
|
+
}), (v, p) => {
|
|
6600
6599
|
const w = U("el-form-item"), b = U("el-form");
|
|
6601
6600
|
return I(), K(b, be({
|
|
6602
6601
|
ref_key: "hsFormRef",
|
|
@@ -6614,7 +6613,7 @@ const Ho = [
|
|
|
6614
6613
|
handle: ".el-form-item__label",
|
|
6615
6614
|
ghostClass: "ghost",
|
|
6616
6615
|
modelValue: u.value,
|
|
6617
|
-
"onUpdate:modelValue":
|
|
6616
|
+
"onUpdate:modelValue": p[0] || (p[0] = (x) => u.value = x),
|
|
6618
6617
|
animation: 150
|
|
6619
6618
|
}, {
|
|
6620
6619
|
default: N(() => [
|
|
@@ -6663,7 +6662,7 @@ const Ho = [
|
|
|
6663
6662
|
_e(v.$slots, "query-setting", {}, void 0, !0)
|
|
6664
6663
|
])
|
|
6665
6664
|
]),
|
|
6666
|
-
|
|
6665
|
+
p[1] || (p[1] = P("div", { class: "h-4 divide" }, null, -1))
|
|
6667
6666
|
]),
|
|
6668
6667
|
_: 3
|
|
6669
6668
|
}, 16, ["model"]);
|
|
@@ -6708,11 +6707,11 @@ const Ho = [
|
|
|
6708
6707
|
const _ = document.querySelector(".drag-component");
|
|
6709
6708
|
l.value < 0 ? _.scrollTop = 0 : _.scrollTop = _.scrollHeight;
|
|
6710
6709
|
}
|
|
6711
|
-
}),
|
|
6710
|
+
}), p();
|
|
6712
6711
|
function v(_) {
|
|
6713
6712
|
o = _, w();
|
|
6714
6713
|
}
|
|
6715
|
-
function
|
|
6714
|
+
function p() {
|
|
6716
6715
|
return gt(
|
|
6717
6716
|
{
|
|
6718
6717
|
mid: i.mid,
|
|
@@ -6727,9 +6726,9 @@ const Ho = [
|
|
|
6727
6726
|
i == null || i.refreshData(), i.close();
|
|
6728
6727
|
}), Promise.reject();
|
|
6729
6728
|
const S = i.batchId ? `table.${i.uniqueId}` : "table";
|
|
6730
|
-
t = (D =
|
|
6731
|
-
const { tableConfig: M } =
|
|
6732
|
-
return c._color[i.id] =
|
|
6729
|
+
t = (D = g.get(_, S)) == null ? void 0 : D.project_code;
|
|
6730
|
+
const { tableConfig: M } = g.get(_, S).tables.find((k) => k.id === i.id), V = await gt({ mid: i.mid, id: i.uniqueId, uid: i.uid }, i.id);
|
|
6731
|
+
return c._color[i.id] = g.get(V, `_baseconfig._color.${i.id}`, "#000"), g.get(_, S).tables.forEach((k) => {
|
|
6733
6732
|
c._stripe[k.id] = k.baseData.stripe ?? !1, c._border[k.id] = k.baseData.border ?? "full";
|
|
6734
6733
|
}), u.value = M.filter((k) => !k.data.type), setTimeout(() => {
|
|
6735
6734
|
typeof (i == null ? void 0 : i.resetReady) == "function" && (i == null || i.resetReady()), w();
|
|
@@ -6739,7 +6738,7 @@ const Ho = [
|
|
|
6739
6738
|
function w() {
|
|
6740
6739
|
setTimeout(() => {
|
|
6741
6740
|
Array.from(document.querySelectorAll(".sort-target__wraper")).filter((_) => !_.classList.contains("hide")).forEach((_, S) => {
|
|
6742
|
-
|
|
6741
|
+
g.set(_.lastChild, "innerText", S + 1);
|
|
6743
6742
|
});
|
|
6744
6743
|
});
|
|
6745
6744
|
}
|
|
@@ -6759,7 +6758,7 @@ const Ho = [
|
|
|
6759
6758
|
}
|
|
6760
6759
|
}), S = await ur(i.mid, i.uid), [M] = ((V = _.data) == null ? void 0 : V.map(($) => JSON.parse($.business_json))) || [];
|
|
6761
6760
|
if (M) {
|
|
6762
|
-
const $ =
|
|
6761
|
+
const $ = g.get(S, `table.${i.uniqueId}.tables.${i.id}`);
|
|
6763
6762
|
M.tables.forEach((q) => {
|
|
6764
6763
|
c._color[q.id] = "#000", c._stripe[q.id] = q.baseData.stripe ?? !0, c._border[q.id] = q.baseData.border ?? "full";
|
|
6765
6764
|
});
|
|
@@ -6768,7 +6767,7 @@ const Ho = [
|
|
|
6768
6767
|
var Y, se, W;
|
|
6769
6768
|
return q[z.id] = {
|
|
6770
6769
|
sort: z.sort,
|
|
6771
|
-
title:
|
|
6770
|
+
title: g.get($, `${z.data.field}.showName`, (Y = z.data) == null ? void 0 : Y.title),
|
|
6772
6771
|
columnWidth: (se = z.data) == null ? void 0 : se.width,
|
|
6773
6772
|
minWidth: (W = z.data) == null ? void 0 : W.minWidth
|
|
6774
6773
|
}, q;
|
|
@@ -6830,11 +6829,11 @@ const Ho = [
|
|
|
6830
6829
|
i.batchId ? `batch_${i.batchId}` : ""
|
|
6831
6830
|
).then((_) => {
|
|
6832
6831
|
const S = i.batchId ? `table.${i.uniqueId}` : "table";
|
|
6833
|
-
|
|
6834
|
-
const M =
|
|
6835
|
-
M.tableConfig =
|
|
6832
|
+
g.get(_, S).tables = g.get(_, S).tables.map((D) => (D.baseData.stripe = c._stripe[D.id], D.baseData.border = c._border[D.id], D));
|
|
6833
|
+
const M = g.get(_, S).tables.find((D) => D.id === i.id), V = M.tableConfig.filter((D) => D.data.type);
|
|
6834
|
+
M.tableConfig = g.cloneDeep([...V, ...u.value]), n = g.cloneDeep([...V, ...u.value]), bt({ mid: i.mid, id: i.uniqueId, uid: i.uid }, _, i.batchId ? `batch_${i.batchId}` : "").then(() => {
|
|
6836
6835
|
R().then(() => {
|
|
6837
|
-
i.close(), typeof (i == null ? void 0 : i.refreshData) == "function" && (i == null || i.refreshData(i.batchId ? { ...
|
|
6836
|
+
i.close(), typeof (i == null ? void 0 : i.refreshData) == "function" && (i == null || i.refreshData(i.batchId ? { ...g.get(_, S), batch_id: i.batchId } : !0)), Mt.success("保存成功");
|
|
6838
6837
|
});
|
|
6839
6838
|
});
|
|
6840
6839
|
});
|
|
@@ -6850,7 +6849,7 @@ const Ho = [
|
|
|
6850
6849
|
userFieldShow: D.data.userFieldShow ? 1 : 0,
|
|
6851
6850
|
sort: D.sort
|
|
6852
6851
|
};
|
|
6853
|
-
return
|
|
6852
|
+
return g.isEmpty(_) || (k.columnWidth = _[D.data.field]), V[D.data.field] = k, V;
|
|
6854
6853
|
}, {});
|
|
6855
6854
|
if (d.value)
|
|
6856
6855
|
return y();
|
|
@@ -7083,7 +7082,7 @@ function Tf(e, t, n, a) {
|
|
|
7083
7082
|
var O;
|
|
7084
7083
|
dt.value = e.uniqueId;
|
|
7085
7084
|
const $ = s.getActiveTab();
|
|
7086
|
-
|
|
7085
|
+
g.set(Fe, `rowIndex.${$}`, C.rowIndex), g.set(Fe, `columnIndex.${$}`, C.columnIndex), (O = e.baseData) != null && O.isClosedEditRow || v(C), a("cell-click", C);
|
|
7087
7086
|
}
|
|
7088
7087
|
function v(C) {
|
|
7089
7088
|
var ee, H, te, A, G;
|
|
@@ -7097,7 +7096,7 @@ function Tf(e, t, n, a) {
|
|
|
7097
7096
|
const { visibleColumn: Y } = C.$table.getTableColumn();
|
|
7098
7097
|
z(Y);
|
|
7099
7098
|
const se = (te = Y[O]) == null ? void 0 : te.field;
|
|
7100
|
-
if (!se ||
|
|
7099
|
+
if (!se || g.isEqual(d, { rowIndex: q, columnField: se })) return;
|
|
7101
7100
|
const { scrollLeft: W = 0, scrollTop: L = 0 } = ((A = C.$table) == null ? void 0 : A.getScroll()) || {};
|
|
7102
7101
|
(G = C.$table) == null || G.setEditCell(C.row, se).then(() => {
|
|
7103
7102
|
var ye, pe, Ce;
|
|
@@ -7105,7 +7104,7 @@ function Tf(e, t, n, a) {
|
|
|
7105
7104
|
d = { rowIndex: J, columnField: re == null ? void 0 : re.field }, (pe = ne == null ? void 0 : ne.querySelector("input")) == null || pe.blur(), (Ce = C.$table) == null || Ce.scrollTo(W, L);
|
|
7106
7105
|
});
|
|
7107
7106
|
}
|
|
7108
|
-
function
|
|
7107
|
+
function p(C) {
|
|
7109
7108
|
a("cell-dblclick", C);
|
|
7110
7109
|
}
|
|
7111
7110
|
function w(C) {
|
|
@@ -7146,7 +7145,7 @@ function Tf(e, t, n, a) {
|
|
|
7146
7145
|
function _(C) {
|
|
7147
7146
|
a("page-change", C);
|
|
7148
7147
|
}
|
|
7149
|
-
const S =
|
|
7148
|
+
const S = g.debounce((C) => {
|
|
7150
7149
|
const $ = String(C).length * 9 + 20;
|
|
7151
7150
|
r.value = $ < 50 ? 50 : $;
|
|
7152
7151
|
}, 10);
|
|
@@ -7166,7 +7165,7 @@ function Tf(e, t, n, a) {
|
|
|
7166
7165
|
}
|
|
7167
7166
|
}
|
|
7168
7167
|
function D(C, $) {
|
|
7169
|
-
return
|
|
7168
|
+
return g.omit({ ...C, ...$ }, [
|
|
7170
7169
|
"footerMethod",
|
|
7171
7170
|
"formatter_2",
|
|
7172
7171
|
"footerMethod_2",
|
|
@@ -7205,7 +7204,7 @@ function Tf(e, t, n, a) {
|
|
|
7205
7204
|
showPagerAll: i,
|
|
7206
7205
|
isIndeterminate: u,
|
|
7207
7206
|
handleCellClick: h,
|
|
7208
|
-
handleCellDblclick:
|
|
7207
|
+
handleCellDblclick: p,
|
|
7209
7208
|
headerCellClick: w,
|
|
7210
7209
|
handleCheckboxAll: x,
|
|
7211
7210
|
handleCheckboxChange: y,
|
|
@@ -7223,7 +7222,7 @@ function Rf(e) {
|
|
|
7223
7222
|
width: 0
|
|
7224
7223
|
}), s = Q("#000");
|
|
7225
7224
|
gt({ mid: e.mid, id: e.uniqueId, uid: e.uid }, e.id).then((i) => {
|
|
7226
|
-
s.value =
|
|
7225
|
+
s.value = g.get(i, `_baseconfig._color.${e.id}`, "#000");
|
|
7227
7226
|
});
|
|
7228
7227
|
const r = X(() => ({
|
|
7229
7228
|
height: `${e.height - l.value}px`,
|
|
@@ -7260,7 +7259,7 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7260
7259
|
let y = "";
|
|
7261
7260
|
for (let R in b)
|
|
7262
7261
|
typeof b[R] == "function" && (y = b[R](x));
|
|
7263
|
-
const E =
|
|
7262
|
+
const E = g.get(x, `row.customTotal.${x.column.field}`);
|
|
7264
7263
|
if (E >= 0 && !c[x.column.field] && s.value !== "0") {
|
|
7265
7264
|
c[x.column.field] = 1;
|
|
7266
7265
|
const R = x.column.title.length * 14 + 50;
|
|
@@ -7274,20 +7273,20 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7274
7273
|
var x;
|
|
7275
7274
|
return {
|
|
7276
7275
|
...(x = b.slotTemplateConfig) == null ? void 0 : x.attrs,
|
|
7277
|
-
...
|
|
7276
|
+
...g.omit(b.slotTemplateConfig, "attrs"),
|
|
7278
7277
|
uniqueId: a.uniqueId,
|
|
7279
7278
|
mid: a.mid,
|
|
7280
7279
|
uid: a.uid
|
|
7281
7280
|
};
|
|
7282
7281
|
}
|
|
7283
7282
|
let v = 0;
|
|
7284
|
-
const
|
|
7283
|
+
const p = g.debounce((b, x, y) => {
|
|
7285
7284
|
var R, _;
|
|
7286
7285
|
const E = (R = r == null ? void 0 : r.getDataInstance()) == null ? void 0 : R.uuid;
|
|
7287
7286
|
(a.baseData.isSimulate || a.baseData.isGetCanche) && (v++, gt({ mid: a.mid, id: a.uniqueId }, E ? `cache_${a.baseData.id}_${E}` : `cache_${a.baseData.id}`).then((S) => {
|
|
7288
|
-
|
|
7287
|
+
g.set(g.find(S, { id: b.id }), `${x}`, y), bt(
|
|
7289
7288
|
{ mid: a.mid, id: a.uniqueId },
|
|
7290
|
-
|
|
7289
|
+
g.cloneDeep(S),
|
|
7291
7290
|
E ? `cache_${a.baseData.id}_${E}` : `cache_${a.baseData.id}`
|
|
7292
7291
|
).finally(() => {
|
|
7293
7292
|
v--, o.emit("cell-value-changed", v);
|
|
@@ -7300,7 +7299,7 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7300
7299
|
return Reflect.get(x, y, E);
|
|
7301
7300
|
},
|
|
7302
7301
|
set: function(x, y, E, R) {
|
|
7303
|
-
o.emit("cell-value-changed", 1),
|
|
7302
|
+
o.emit("cell-value-changed", 1), p(x, y, E);
|
|
7304
7303
|
const _ = Reflect.get(x, y, R);
|
|
7305
7304
|
return r == null || r.updateCheckboxRow(x, y), n("field-change", {
|
|
7306
7305
|
type: "table",
|
|
@@ -7394,7 +7393,7 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7394
7393
|
return (n, a) => {
|
|
7395
7394
|
var l;
|
|
7396
7395
|
const o = U("vxe-colgroup");
|
|
7397
|
-
return m(
|
|
7396
|
+
return m(g).isEmpty((l = e.columnItem) == null ? void 0 : l.children) ? (I(), K(es, be({ key: 1 }, n.$attrs, {
|
|
7398
7397
|
baseData: e.baseData,
|
|
7399
7398
|
columnItem: e.columnItem,
|
|
7400
7399
|
uniqueId: e.uniqueId,
|
|
@@ -7417,7 +7416,7 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7417
7416
|
(I(!0), j(Se, null, De((s = e.columnItem) == null ? void 0 : s.children, (r) => (I(), j(Se, {
|
|
7418
7417
|
key: r.id
|
|
7419
7418
|
}, [
|
|
7420
|
-
m(
|
|
7419
|
+
m(g).isEmpty(r == null ? void 0 : r.children) ? (I(), K(es, be({
|
|
7421
7420
|
key: 1,
|
|
7422
7421
|
ref_for: !0
|
|
7423
7422
|
}, n.$attrs, {
|
|
@@ -7482,7 +7481,7 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7482
7481
|
handleCellClick: f,
|
|
7483
7482
|
handleCellDblclick: h,
|
|
7484
7483
|
handleCheckboxAll: v,
|
|
7485
|
-
handleCheckboxChange:
|
|
7484
|
+
handleCheckboxChange: p,
|
|
7486
7485
|
handleResizableChange: w,
|
|
7487
7486
|
headerCellClick: b,
|
|
7488
7487
|
pageChange: x,
|
|
@@ -7537,7 +7536,7 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7537
7536
|
onCellDblclick: m(h),
|
|
7538
7537
|
onHeaderCellClick: m(b),
|
|
7539
7538
|
onCheckboxAll: m(v),
|
|
7540
|
-
onCheckboxChange: m(
|
|
7539
|
+
onCheckboxChange: m(p),
|
|
7541
7540
|
onResizableChange: m(w)
|
|
7542
7541
|
}), {
|
|
7543
7542
|
default: N(() => [
|
|
@@ -7621,7 +7620,7 @@ const qf = { class: "title-tooltip" }, Vf = { key: 2 }, Of = /* @__PURE__ */ fe(
|
|
|
7621
7620
|
function Ff(e) {
|
|
7622
7621
|
const t = Ve(), n = Ve(), a = Ve(), o = Ve(), l = Ve(), s = Ve({}), r = Q(""), i = X({
|
|
7623
7622
|
get() {
|
|
7624
|
-
return r.value === "" ?
|
|
7623
|
+
return r.value === "" ? g.get(e, "data.tables.0.id", "") : r.value;
|
|
7625
7624
|
},
|
|
7626
7625
|
set(b) {
|
|
7627
7626
|
r.value = b;
|
|
@@ -7642,7 +7641,7 @@ function Ff(e) {
|
|
|
7642
7641
|
}), { height: v } = ra(l, {
|
|
7643
7642
|
height: 0,
|
|
7644
7643
|
width: 0
|
|
7645
|
-
}),
|
|
7644
|
+
}), p = X(() => ({
|
|
7646
7645
|
height: f.value > 0 ? `${f.value - h.value - v.value}px` : "0px"
|
|
7647
7646
|
}));
|
|
7648
7647
|
function w(b, x) {
|
|
@@ -7655,7 +7654,7 @@ function Ff(e) {
|
|
|
7655
7654
|
btnQueryRef: t,
|
|
7656
7655
|
centerSlotRef: l,
|
|
7657
7656
|
tableApi: s,
|
|
7658
|
-
style:
|
|
7657
|
+
style: p,
|
|
7659
7658
|
activeTabs: i,
|
|
7660
7659
|
onReady: w,
|
|
7661
7660
|
getApi: u,
|
|
@@ -7667,7 +7666,7 @@ function Pf(e, t, n) {
|
|
|
7667
7666
|
const a = je("bcTableApi"), o = {
|
|
7668
7667
|
search: f,
|
|
7669
7668
|
reset: c,
|
|
7670
|
-
exportSelect:
|
|
7669
|
+
exportSelect: p,
|
|
7671
7670
|
exportSelectedData: w,
|
|
7672
7671
|
exportAllData: x,
|
|
7673
7672
|
exportVoucher: b
|
|
@@ -7680,7 +7679,7 @@ function Pf(e, t, n) {
|
|
|
7680
7679
|
},
|
|
7681
7680
|
() => {
|
|
7682
7681
|
var y, E;
|
|
7683
|
-
s =
|
|
7682
|
+
s = g.cloneDeep(((E = (y = t.data) == null ? void 0 : y.form) == null ? void 0 : E.formData) || {});
|
|
7684
7683
|
}
|
|
7685
7684
|
);
|
|
7686
7685
|
const r = X(() => {
|
|
@@ -7696,34 +7695,34 @@ function Pf(e, t, n) {
|
|
|
7696
7695
|
}
|
|
7697
7696
|
function u() {
|
|
7698
7697
|
var y, E, R;
|
|
7699
|
-
return
|
|
7698
|
+
return g.isEmpty((E = (y = t.data) == null ? void 0 : y.form) == null ? void 0 : E.formData) ? {} : (R = qe(e)) == null ? void 0 : R.getInstance();
|
|
7700
7699
|
}
|
|
7701
7700
|
function d(y) {
|
|
7702
7701
|
var E, R, _;
|
|
7703
|
-
return
|
|
7702
|
+
return g.isEmpty((R = (E = t.data) == null ? void 0 : E.form) == null ? void 0 : R.formData) ? {} : (_ = qe(e)) == null ? void 0 : _.getItemInstance(y);
|
|
7704
7703
|
}
|
|
7705
7704
|
async function c(y = !1) {
|
|
7706
7705
|
var E, R, _, S, M, V, D, k, C, $, O, q;
|
|
7707
|
-
if (!
|
|
7706
|
+
if (!g.isEmpty((R = (E = t.data) == null ? void 0 : E.form) == null ? void 0 : R.formData)) {
|
|
7708
7707
|
if ((S = (_ = qe(e)) == null ? void 0 : _.getInstance()) == null || S.clearValidate(), (V = (M = qe(e)) == null ? void 0 : M.getComponents()) == null || V.forEach((Y) => {
|
|
7709
7708
|
var se;
|
|
7710
7709
|
typeof ((se = qe(Y)) == null ? void 0 : se.clearData) == "function" && qe(Y).clearData();
|
|
7711
|
-
}),
|
|
7710
|
+
}), g.isEmpty(s)) {
|
|
7712
7711
|
const Y = new RegExp(Ka);
|
|
7713
7712
|
Object.keys(t.data.form.formData).filter((se) => Y.test(se)).map((se) => t.data.form.formData[se]).flat().forEach((se) => {
|
|
7714
7713
|
t.data.form.formData[se] = "";
|
|
7715
7714
|
});
|
|
7716
7715
|
} else if ((C = (k = (D = t.data) == null ? void 0 : D.form) == null ? void 0 : k.baseData) != null && C.isShowQuerySearch) {
|
|
7717
|
-
const Y = (a == null ? void 0 : a.getShowQueryData()) || {}, se =
|
|
7716
|
+
const Y = (a == null ? void 0 : a.getShowQueryData()) || {}, se = g.cloneDeep(s);
|
|
7718
7717
|
Object.keys(Y).forEach((W) => {
|
|
7719
7718
|
t.data.form.formData[W] = se[W];
|
|
7720
7719
|
});
|
|
7721
7720
|
} else
|
|
7722
|
-
t.data.form.formData =
|
|
7723
|
-
const z =
|
|
7724
|
-
|
|
7721
|
+
t.data.form.formData = g.cloneDeep(s);
|
|
7722
|
+
const z = g.cloneDeep(Zo.value[t.data.config_unique_id]);
|
|
7723
|
+
g.isEmpty(z) || Object.keys(z).forEach((Y) => {
|
|
7725
7724
|
t.data.form.formData[Y] = z[Y];
|
|
7726
|
-
}), zt.value[t.data.config_unique_id] =
|
|
7725
|
+
}), zt.value[t.data.config_unique_id] = g.cloneDeep(t.data.form.formData), t.data.form.formData = a == null ? void 0 : a.proxyFormData(g.cloneDeep(t.data.form.formData));
|
|
7727
7726
|
}
|
|
7728
7727
|
return a == null || a.getTab(-1).forEach((z) => {
|
|
7729
7728
|
a == null || a.getApi(z).clearSort();
|
|
@@ -7731,7 +7730,7 @@ function Pf(e, t, n) {
|
|
|
7731
7730
|
}
|
|
7732
7731
|
function f(y = a == null ? void 0 : a.getActiveTab(), E = {}) {
|
|
7733
7732
|
var R, _, S;
|
|
7734
|
-
return (S = (_ = (R = t.data) == null ? void 0 : R.form) == null ? void 0 : _.baseData) != null && S.isShowQuerySearch ? h(y, a == null ? void 0 : a.getShowQueryData()) : h(y,
|
|
7733
|
+
return (S = (_ = (R = t.data) == null ? void 0 : R.form) == null ? void 0 : _.baseData) != null && S.isShowQuerySearch ? h(y, a == null ? void 0 : a.getShowQueryData()) : h(y, g.isEmpty(E) ? a == null ? void 0 : a.getQueryData(!1) : E);
|
|
7735
7734
|
}
|
|
7736
7735
|
async function h(y, E) {
|
|
7737
7736
|
var S, M;
|
|
@@ -7742,16 +7741,16 @@ function Pf(e, t, n) {
|
|
|
7742
7741
|
return (M = a == null ? void 0 : a.searchValidate()) == null ? void 0 : M.then(() => {
|
|
7743
7742
|
let V = [];
|
|
7744
7743
|
y === "-1" ? V = t.data.tables : V = y ? t.data.tables.filter((k) => k.id === y) : t.data.tables;
|
|
7745
|
-
const D =
|
|
7744
|
+
const D = g.isEmpty(E) ? a == null ? void 0 : a.getQueryData(!1) : E;
|
|
7746
7745
|
return Promise.allSettled(
|
|
7747
|
-
V.map((k) => (
|
|
7746
|
+
V.map((k) => (g.isEmpty(E) && (k.baseData.table_page_data.currentPage = 1), a == null || a.reloadCountTableData(k.id, D), v(k, D)))
|
|
7748
7747
|
).then(() => new Promise((k) => {
|
|
7749
7748
|
setTimeout(() => {
|
|
7750
7749
|
var z, Y, se, W;
|
|
7751
7750
|
const C = (z = t.data) == null ? void 0 : z.btns.find((L) => L.data.key === (a == null ? void 0 : a.btnKey.value));
|
|
7752
7751
|
C && (C.data.loading = !1, a == null || a.setBtnKey(""));
|
|
7753
7752
|
const { data: $, uniqId: O } = a.getCheckboxRow(), q = ((Y = a == null ? void 0 : a.getApi()) == null ? void 0 : Y.getData()) || [];
|
|
7754
|
-
if (!
|
|
7753
|
+
if (!g.isEmpty($)) {
|
|
7755
7754
|
const L = ($ == null ? void 0 : $.map((H) => H[O])) || [], ee = q.filter((H) => L.includes(H[O]));
|
|
7756
7755
|
(se = a == null ? void 0 : a.getApi()) == null || se.setCheckboxRow(ee, !0);
|
|
7757
7756
|
}
|
|
@@ -7766,7 +7765,7 @@ function Pf(e, t, n) {
|
|
|
7766
7765
|
var R, _, S;
|
|
7767
7766
|
return hr(y.baseData, E, (S = (_ = (R = t.data) == null ? void 0 : R.form) == null ? void 0 : _.baseData) == null ? void 0 : S.isShowQuerySearch).then((M) => (y.tableData = M, M));
|
|
7768
7767
|
}
|
|
7769
|
-
async function
|
|
7768
|
+
async function p() {
|
|
7770
7769
|
var R;
|
|
7771
7770
|
if (l)
|
|
7772
7771
|
return;
|
|
@@ -7774,7 +7773,7 @@ function Pf(e, t, n) {
|
|
|
7774
7773
|
const y = (R = t.data) == null ? void 0 : R.btns.find((_) => _.data.key === (a == null ? void 0 : a.btnKey.value));
|
|
7775
7774
|
y && (y.data.loading = !1, a == null || a.setBtnKey(""));
|
|
7776
7775
|
const { data: E } = a.getCheckboxRow();
|
|
7777
|
-
if (
|
|
7776
|
+
if (g.isEmpty(E)) {
|
|
7778
7777
|
Zt.warning("请选择导出数据");
|
|
7779
7778
|
return;
|
|
7780
7779
|
}
|
|
@@ -7794,7 +7793,7 @@ function Pf(e, t, n) {
|
|
|
7794
7793
|
return;
|
|
7795
7794
|
l = !0;
|
|
7796
7795
|
const { data: y } = a.getCheckboxRow();
|
|
7797
|
-
if (
|
|
7796
|
+
if (g.isEmpty(y)) {
|
|
7798
7797
|
Zt.warning("请选择导出数据");
|
|
7799
7798
|
const M = (S = t.data) == null ? void 0 : S.btns.find((V) => V.data.key === (a == null ? void 0 : a.btnKey.value));
|
|
7800
7799
|
M && (M.data.loading = !1, a == null || a.setBtnKey(""));
|
|
@@ -7917,7 +7916,7 @@ const jf = { class: "sort-form-wraper" }, Bf = { class: "sort-form-wraper__conte
|
|
|
7917
7916
|
function h() {
|
|
7918
7917
|
setTimeout(() => {
|
|
7919
7918
|
Array.from(document.querySelectorAll(".sort-target__wraper")).filter((y) => !y.classList.contains("hide")).forEach((y, E) => {
|
|
7920
|
-
|
|
7919
|
+
g.set(y.lastChild, "innerText", E + 1);
|
|
7921
7920
|
});
|
|
7922
7921
|
});
|
|
7923
7922
|
}
|
|
@@ -7932,7 +7931,7 @@ const jf = { class: "sort-form-wraper" }, Bf = { class: "sort-form-wraper__conte
|
|
|
7932
7931
|
}
|
|
7933
7932
|
}).then(async () => bt({ mid: t.mid, id: t.id, uid: t == null ? void 0 : t.uid }, {}, `form_${t.form_id}`));
|
|
7934
7933
|
}
|
|
7935
|
-
async function
|
|
7934
|
+
async function p() {
|
|
7936
7935
|
var _, S, M;
|
|
7937
7936
|
if (typeof t.getReportBaseConfig == "function")
|
|
7938
7937
|
return w();
|
|
@@ -7952,7 +7951,7 @@ const jf = { class: "sort-form-wraper" }, Bf = { class: "sort-form-wraper__conte
|
|
|
7952
7951
|
projectCode: t.project_code
|
|
7953
7952
|
}), [R] = ((_ = y.data) == null ? void 0 : _.map((V) => JSON.parse(V.business_json))) || [];
|
|
7954
7953
|
if (R) {
|
|
7955
|
-
const V =
|
|
7954
|
+
const V = g.get(E, `field_functions.table.${t.id}.form`), D = (M = (S = R.form) == null ? void 0 : S.formConfig) == null ? void 0 : M.reduce(
|
|
7956
7955
|
(k, C) => {
|
|
7957
7956
|
var $;
|
|
7958
7957
|
return k[C.data.baseData.prop] = {
|
|
@@ -7965,7 +7964,7 @@ const jf = { class: "sort-form-wraper" }, Bf = { class: "sort-form-wraper__conte
|
|
|
7965
7964
|
);
|
|
7966
7965
|
n.value = n.value.map((k) => {
|
|
7967
7966
|
var C, $, O;
|
|
7968
|
-
return k.sort = ((C = D == null ? void 0 : D[k.data.baseData.prop]) == null ? void 0 : C.sort) ?? 0, k.data.baseData.el = (($ = D == null ? void 0 : D[k.data.baseData.prop]) == null ? void 0 : $.el) ?? k.data.baseData.el, k.data.baseData.label = ((O = D == null ? void 0 : D[k.data.baseData.prop]) == null ? void 0 : O.title) ?? k.data.baseData.label, k.data.baseData.userFieldShow = k.data.baseData.isShow,
|
|
7967
|
+
return k.sort = ((C = D == null ? void 0 : D[k.data.baseData.prop]) == null ? void 0 : C.sort) ?? 0, k.data.baseData.el = (($ = D == null ? void 0 : D[k.data.baseData.prop]) == null ? void 0 : $.el) ?? k.data.baseData.el, k.data.baseData.label = ((O = D == null ? void 0 : D[k.data.baseData.prop]) == null ? void 0 : O.title) ?? k.data.baseData.label, k.data.baseData.userFieldShow = k.data.baseData.isShow, g.unset(k, "data.baseData.el2"), k;
|
|
7969
7968
|
}).sort((k, C) => k.sort - C.sort);
|
|
7970
7969
|
}
|
|
7971
7970
|
a.value = !0, o.value = !1;
|
|
@@ -7984,7 +7983,7 @@ const jf = { class: "sort-form-wraper" }, Bf = { class: "sort-form-wraper__conte
|
|
|
7984
7983
|
);
|
|
7985
7984
|
n.value = n.value.map((S) => {
|
|
7986
7985
|
var M, V, D;
|
|
7987
|
-
return S.sort = ((M = E == null ? void 0 : E[S.data.baseData.prop]) == null ? void 0 : M.sort) ?? 0, S.data.baseData.el = ((V = E == null ? void 0 : E[S.data.baseData.prop]) == null ? void 0 : V.el) ?? S.data.baseData.el, S.data.baseData.label = ((D = E == null ? void 0 : E[S.data.baseData.prop]) == null ? void 0 : D.title) ?? S.data.baseData.label, S.data.baseData.userFieldShow = S.data.baseData.isShow ?? !0,
|
|
7986
|
+
return S.sort = ((M = E == null ? void 0 : E[S.data.baseData.prop]) == null ? void 0 : M.sort) ?? 0, S.data.baseData.el = ((V = E == null ? void 0 : E[S.data.baseData.prop]) == null ? void 0 : V.el) ?? S.data.baseData.el, S.data.baseData.label = ((D = E == null ? void 0 : E[S.data.baseData.prop]) == null ? void 0 : D.title) ?? S.data.baseData.label, S.data.baseData.userFieldShow = S.data.baseData.isShow ?? !0, g.unset(S, "data.baseData.el2"), S;
|
|
7988
7987
|
}).sort((S, M) => S.sort - M.sort);
|
|
7989
7988
|
});
|
|
7990
7989
|
}
|
|
@@ -8085,7 +8084,7 @@ const jf = { class: "sort-form-wraper" }, Bf = { class: "sort-form-wraper__conte
|
|
|
8085
8084
|
T(M, {
|
|
8086
8085
|
type: "primary",
|
|
8087
8086
|
size: "small",
|
|
8088
|
-
onClick:
|
|
8087
|
+
onClick: p,
|
|
8089
8088
|
loading: o.value
|
|
8090
8089
|
}, {
|
|
8091
8090
|
default: N(() => [...E[5] || (E[5] = [
|
|
@@ -8151,7 +8150,7 @@ function Zf(e, t) {
|
|
|
8151
8150
|
mid: t.data.mid,
|
|
8152
8151
|
uid: (f = t.data) == null ? void 0 : f.uid
|
|
8153
8152
|
}).then(async (h) => {
|
|
8154
|
-
var
|
|
8153
|
+
var p;
|
|
8155
8154
|
const v = JSON.parse(JSON.stringify(t.data.form.formConfig));
|
|
8156
8155
|
v.forEach((w) => {
|
|
8157
8156
|
if (w.data.baseData.el2) {
|
|
@@ -8162,25 +8161,25 @@ function Zf(e, t) {
|
|
|
8162
8161
|
{
|
|
8163
8162
|
id: t.data.config_unique_id,
|
|
8164
8163
|
mid: t.data.mid,
|
|
8165
|
-
uid: (
|
|
8164
|
+
uid: (p = t.data) == null ? void 0 : p.uid
|
|
8166
8165
|
},
|
|
8167
8166
|
h
|
|
8168
8167
|
), await d(v);
|
|
8169
8168
|
}), o.value = !o.value;
|
|
8170
8169
|
}, s = () => {
|
|
8171
|
-
var f, h, v,
|
|
8170
|
+
var f, h, v, p;
|
|
8172
8171
|
Jf(
|
|
8173
8172
|
t.data.config_unique_id,
|
|
8174
8173
|
t.data.mid,
|
|
8175
8174
|
n.refreshData,
|
|
8176
8175
|
(f = t.data) == null ? void 0 : f.uid,
|
|
8177
8176
|
(v = (h = t.data) == null ? void 0 : h.form) == null ? void 0 : v.id,
|
|
8178
|
-
(
|
|
8177
|
+
(p = t.data) == null ? void 0 : p.project_code,
|
|
8179
8178
|
n == null ? void 0 : n.getReportBaseConfig,
|
|
8180
8179
|
r
|
|
8181
8180
|
).then(async (w) => {
|
|
8182
8181
|
var b;
|
|
8183
|
-
w === "cancel" ||
|
|
8182
|
+
w === "cancel" || g.isEmpty((b = t.data) == null ? void 0 : b.form) || (t.data.form.formConfig = w);
|
|
8184
8183
|
});
|
|
8185
8184
|
};
|
|
8186
8185
|
function r() {
|
|
@@ -8189,7 +8188,7 @@ function Zf(e, t) {
|
|
|
8189
8188
|
typeof (a == null ? void 0 : a.resetReady) == "function" && (a == null || a.resetReady("query"));
|
|
8190
8189
|
}
|
|
8191
8190
|
const i = async () => {
|
|
8192
|
-
const f =
|
|
8191
|
+
const f = g.cloneDeep(t.data);
|
|
8193
8192
|
Ke({
|
|
8194
8193
|
url: `/${f == null ? void 0 : f.project_code}-web/pri/v2/field_user/clear_user_field`,
|
|
8195
8194
|
method: "post",
|
|
@@ -8219,7 +8218,7 @@ function Zf(e, t) {
|
|
|
8219
8218
|
{ label: "重置设置", value: "333", click: i }
|
|
8220
8219
|
];
|
|
8221
8220
|
async function d(f) {
|
|
8222
|
-
var v,
|
|
8221
|
+
var v, p, w, b, x, y;
|
|
8223
8222
|
f.forEach((E, R) => {
|
|
8224
8223
|
E.sort = R;
|
|
8225
8224
|
});
|
|
@@ -8240,7 +8239,7 @@ function Zf(e, t) {
|
|
|
8240
8239
|
h,
|
|
8241
8240
|
`form_${t.data.form.id}`
|
|
8242
8241
|
), Ke({
|
|
8243
|
-
url: `/${(
|
|
8242
|
+
url: `/${(p = t.data) == null ? void 0 : p.project_code}-web/pri/v2/field_user/batch_save_user_field`,
|
|
8244
8243
|
method: "post",
|
|
8245
8244
|
data: {
|
|
8246
8245
|
config_unique_id: (w = t.data) == null ? void 0 : w.config_unique_id,
|
|
@@ -8254,7 +8253,7 @@ function Zf(e, t) {
|
|
|
8254
8253
|
function c(f, h = 600) {
|
|
8255
8254
|
setTimeout(() => {
|
|
8256
8255
|
var v;
|
|
8257
|
-
(v =
|
|
8256
|
+
(v = g.get(qe(e), `componentRef.${f}`)) == null || v.focus();
|
|
8258
8257
|
}, h);
|
|
8259
8258
|
}
|
|
8260
8259
|
return {
|
|
@@ -8274,7 +8273,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8274
8273
|
const A = f.getApi(), G = A == null ? void 0 : A.getCurrentRecord();
|
|
8275
8274
|
return ((ee == null ? void 0 : ee.tagName) === "INPUT" || (ee == null ? void 0 : ee.tagName) === "TEXTAREA") && (te = ((re = H == null ? void 0 : H.find((ne) => ne.startsWith(Lo))) == null ? void 0 : re.replace(Lo, "")) || ""), te ? [
|
|
8276
8275
|
{ label: "复制", value: "copy", click: z },
|
|
8277
|
-
{ label: "粘贴", value: "paste", row:
|
|
8276
|
+
{ label: "粘贴", value: "paste", row: g.cloneDeep(G), column: { field: te } }
|
|
8278
8277
|
] : [{ label: "复制", value: "copy", click: z }];
|
|
8279
8278
|
};
|
|
8280
8279
|
Ya(
|
|
@@ -8288,7 +8287,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8288
8287
|
);
|
|
8289
8288
|
const v = at(l, (L) => {
|
|
8290
8289
|
var ee;
|
|
8291
|
-
(L != null && L.closest(`#${r}`) || L != null && L.closest(".bc-tree-search-input")) && (dt.value = (ee =
|
|
8290
|
+
(L != null && L.closest(`#${r}`) || L != null && L.closest(".bc-tree-search-input")) && (dt.value = (ee = g.cloneDeep(e.data)) == null ? void 0 : ee.config_unique_id);
|
|
8292
8291
|
});
|
|
8293
8292
|
vt(() => {
|
|
8294
8293
|
c || (c = No(!0, b, {
|
|
@@ -8297,7 +8296,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8297
8296
|
}));
|
|
8298
8297
|
}), Ko(() => {
|
|
8299
8298
|
var L, ee;
|
|
8300
|
-
(L = e.data) != null && L.config_name && (dt.value = (ee =
|
|
8299
|
+
(L = e.data) != null && L.config_name && (dt.value = (ee = g.cloneDeep(e.data)) == null ? void 0 : ee.config_unique_id), c || (c = No(!0, b, {
|
|
8301
8300
|
dedupe: !0,
|
|
8302
8301
|
eventName: "keydown"
|
|
8303
8302
|
}));
|
|
@@ -8306,7 +8305,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8306
8305
|
}), Bt(() => {
|
|
8307
8306
|
v(), dt.value = u, c && c(), c = null;
|
|
8308
8307
|
});
|
|
8309
|
-
const
|
|
8308
|
+
const p = {
|
|
8310
8309
|
Tab: M,
|
|
8311
8310
|
ArrowRight: D,
|
|
8312
8311
|
ArrowLeft: V,
|
|
@@ -8328,7 +8327,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8328
8327
|
if (ee.closest(".bc-tree-search-input") && (L.code === "ArrowRight" || L.code === "ArrowLeft") && (A = "query", o.emit("close", "bc-tree-search")), ee.closest(`#${r}`) || ee.closest(".bc-tree-search-input")) {
|
|
8329
8328
|
if ((J = e.data) != null && J.form && !((ye = (ne = (re = e.data) == null ? void 0 : re.form) == null ? void 0 : ne.baseData) != null && ye.isClosedKeyStroke)) {
|
|
8330
8329
|
const Ce = L.code;
|
|
8331
|
-
|
|
8330
|
+
p[Ce] && p[Ce]({ $event: L, $table: H, $api: te, type: A });
|
|
8332
8331
|
}
|
|
8333
8332
|
} else {
|
|
8334
8333
|
const Ce = L.code, Be = f == null ? void 0 : f.getTableConfig();
|
|
@@ -8337,7 +8336,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8337
8336
|
if (L.code === "ArrowRight" && a("keydown-right", { $event: L, $table: H, $api: te, type: A }), L.code === "ArrowDown" && a("keydown-down", { $event: L, $table: H, $api: te, type: A }), L.code === "ArrowLeft" && a("keydown-left", { $event: L, $table: H, $api: te, type: A }), L.code === "ArrowUp" && a("keydown-up", { $event: L, $table: H, $api: te, type: A }), L.key === "Enter" && a("keydown-enter", { $event: L, $table: H, $api: te, type: A }), A === "table" && H) {
|
|
8338
8337
|
const Ce = H.getRowIndex(H.getCurrentRecord());
|
|
8339
8338
|
a("current-row", {
|
|
8340
|
-
row:
|
|
8339
|
+
row: g.get(te.getData(), Ce),
|
|
8341
8340
|
rowIndex: Ce,
|
|
8342
8341
|
code: L.code,
|
|
8343
8342
|
key: L.key,
|
|
@@ -8351,9 +8350,9 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8351
8350
|
if (L.type !== "table") return;
|
|
8352
8351
|
L.$event.preventDefault();
|
|
8353
8352
|
const { visibleColumn: ee } = f.getApi().getTableColumn(), H = f.getActiveTab();
|
|
8354
|
-
Fe.columnIndex[H] ||
|
|
8353
|
+
Fe.columnIndex[H] || g.set(Fe, `columnIndex.${H}`, 0), Fe.columnIndex[H]++, Fe.columnIndex[H] > ee.length - 1 && g.set(Fe, `columnIndex.${H}`, 0);
|
|
8355
8354
|
const te = Fe.rowIndex[H];
|
|
8356
|
-
return d = 0, $(ee), te !== Fe.rowIndex[H] ? (Fe.rowIndex[H] ||
|
|
8355
|
+
return d = 0, $(ee), te !== Fe.rowIndex[H] ? (Fe.rowIndex[H] || g.set(Fe, `rowIndex.${H}`, 0), Fe.rowIndex[H]--, _(L)) : O();
|
|
8357
8356
|
}
|
|
8358
8357
|
function y({ $event: L, $api: ee, type: H }) {
|
|
8359
8358
|
if (H !== "table") return;
|
|
@@ -8364,7 +8363,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8364
8363
|
pageSize: A.pageSize
|
|
8365
8364
|
}).then(() => {
|
|
8366
8365
|
const G = f.getActiveTab();
|
|
8367
|
-
return
|
|
8366
|
+
return g.set(Fe, `rowIndex.${G}`, 0), O();
|
|
8368
8367
|
})) : Me();
|
|
8369
8368
|
}
|
|
8370
8369
|
function E({ $event: L, $api: ee, type: H }) {
|
|
@@ -8376,7 +8375,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8376
8375
|
pageSize: A.pageSize
|
|
8377
8376
|
}).then(() => {
|
|
8378
8377
|
const G = f.getActiveTab();
|
|
8379
|
-
return
|
|
8378
|
+
return g.set(Fe, `rowIndex.${G}`, 0), O();
|
|
8380
8379
|
})) : Me();
|
|
8381
8380
|
}
|
|
8382
8381
|
function R(L) {
|
|
@@ -8384,13 +8383,13 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8384
8383
|
if (L.type !== "table") return;
|
|
8385
8384
|
L.$event.preventDefault();
|
|
8386
8385
|
const ee = f.getActiveTab();
|
|
8387
|
-
if (Fe.rowIndex[ee] ||
|
|
8388
|
-
|
|
8386
|
+
if (Fe.rowIndex[ee] || g.set(Fe, `rowIndex.${ee}`, 0), Fe.rowIndex[ee]--, Fe.rowIndex[ee] < 0) {
|
|
8387
|
+
g.set(Fe, `rowIndex.${ee}`, 0);
|
|
8389
8388
|
const J = (te = (H = e.data) == null ? void 0 : H.tables) == null ? void 0 : te.find((re) => {
|
|
8390
8389
|
var ne;
|
|
8391
8390
|
return re.id === ((ne = L.$api) == null ? void 0 : ne.getActiveTab());
|
|
8392
8391
|
});
|
|
8393
|
-
J && !((A = J == null ? void 0 : J.baseData) != null && A.isClosedKeyStroke) && ((G =
|
|
8392
|
+
J && !((A = J == null ? void 0 : J.baseData) != null && A.isClosedKeyStroke) && ((G = g.get(qe(t), "componentRef.0")) == null || G.focus(), L.$table.clearCurrentRow()), a("loop-up", L);
|
|
8394
8393
|
return;
|
|
8395
8394
|
}
|
|
8396
8395
|
return O();
|
|
@@ -8399,7 +8398,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8399
8398
|
if (H !== "table") return;
|
|
8400
8399
|
L.preventDefault();
|
|
8401
8400
|
const te = f.getActiveTab(), A = ee.getData();
|
|
8402
|
-
return Fe.rowIndex[te] ||
|
|
8401
|
+
return Fe.rowIndex[te] || g.set(Fe, `rowIndex.${te}`, 0), Fe.rowIndex[te]++, Fe.rowIndex[te] > A.length - 1 && g.set(Fe, `rowIndex.${te}`, 0), O();
|
|
8403
8402
|
}
|
|
8404
8403
|
function S(L, ee) {
|
|
8405
8404
|
if (L.type !== "table") return;
|
|
@@ -8461,7 +8460,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8461
8460
|
if (L.type !== "query") return;
|
|
8462
8461
|
L.$event.preventDefault();
|
|
8463
8462
|
const ee = f.getActiveTab();
|
|
8464
|
-
|
|
8463
|
+
g.set(Fe, `rowIndex.${ee}`, 0), g.set(Fe, `columnIndex.${ee}`, 0);
|
|
8465
8464
|
const H = document.activeElement;
|
|
8466
8465
|
H == null || H.blur();
|
|
8467
8466
|
const { visibleColumn: te } = L.$table.getTableColumn();
|
|
@@ -8470,7 +8469,7 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8470
8469
|
function $(L, ee = !0) {
|
|
8471
8470
|
var A;
|
|
8472
8471
|
const H = f.getActiveTab(), te = L[Fe.columnIndex[H]];
|
|
8473
|
-
!((A = te == null ? void 0 : te.editRender) != null && A.enabled) && d < 2 && (Fe.columnIndex[H] ||
|
|
8472
|
+
!((A = te == null ? void 0 : te.editRender) != null && A.enabled) && d < 2 && (Fe.columnIndex[H] || g.set(Fe, `columnIndex.${H}`, 0), Fe.columnIndex[H]++, Fe.columnIndex[H] > L.length - 1 && (d++, g.set(Fe, `columnIndex.${H}`, 0), ee && (Fe.rowIndex[H] || g.set(Fe, `rowIndex.${H}`, 0), Fe.rowIndex[H]++)), $(L, ee));
|
|
8474
8473
|
}
|
|
8475
8474
|
function O() {
|
|
8476
8475
|
const L = f.getActiveTab();
|
|
@@ -8478,9 +8477,9 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8478
8477
|
}
|
|
8479
8478
|
function q(L, ee) {
|
|
8480
8479
|
var A;
|
|
8481
|
-
dt.value = (A =
|
|
8480
|
+
dt.value = (A = g.cloneDeep(e.data)) == null ? void 0 : A.config_unique_id;
|
|
8482
8481
|
const H = f.getActiveTab(), te = f == null ? void 0 : f.getApi();
|
|
8483
|
-
return L == -1 ? (te == null || te.clearCurrentRow(),
|
|
8482
|
+
return L == -1 ? (te == null || te.clearCurrentRow(), g.set(Fe, `rowIndex.${H}`, 0), g.set(Fe, `columnIndex.${H}`, 0), Promise.reject()) : Me().then(() => {
|
|
8484
8483
|
var pe;
|
|
8485
8484
|
const G = document.activeElement;
|
|
8486
8485
|
G == null || G.blur();
|
|
@@ -8488,11 +8487,11 @@ function em({ props: e, formRef: t, onPageChange: n, emit: a }) {
|
|
|
8488
8487
|
te == null || te.setCurrentRow(J), te == null || te.scrollToRow(J);
|
|
8489
8488
|
const { visibleColumn: re } = te.getTableColumn();
|
|
8490
8489
|
let ne = "";
|
|
8491
|
-
typeof ee == "string" && (ne = ee), typeof ee == "number" &&
|
|
8490
|
+
typeof ee == "string" && (ne = ee), typeof ee == "number" && g.set(Fe, `columnIndex.${H}`, ee);
|
|
8492
8491
|
const ye = ne || ((pe = re[Fe.columnIndex[H]]) == null ? void 0 : pe.field);
|
|
8493
8492
|
return ye ? te == null ? void 0 : te.setEditRow(J, ye).then(() => {
|
|
8494
8493
|
const Ce = te == null ? void 0 : te.getCurrentRecord(), { rowIndex: Be, columnIndex: ue } = (te == null ? void 0 : te.getEditRecord()) || {};
|
|
8495
|
-
return
|
|
8494
|
+
return g.set(Fe, `rowIndex.${H}`, Be ?? (te == null ? void 0 : te.getRowIndex(Ce)) ?? 0), g.set(Fe, `columnIndex.${H}`, ue ?? 0), Me().then(() => {
|
|
8496
8495
|
var oe, ie, ge;
|
|
8497
8496
|
const he = document.querySelector(`#${i} .vxe-table`), xe = (oe = document.activeElement) == null ? void 0 : oe.closest(".vxe-table--body-wrapper"), me = (ie = document.activeElement) == null ? void 0 : ie.closest(".vxe-body--column");
|
|
8498
8497
|
if (he && xe && me) {
|
|
@@ -8569,7 +8568,7 @@ const tm = ["id"], am = /* @__PURE__ */ fe({
|
|
|
8569
8568
|
},
|
|
8570
8569
|
emits: ["ready", "keydown", "keydown-right", "keydown-down", "keydown-left", "keydown-up", "keydown-enter", "loop-up", "field-change", "current-row"],
|
|
8571
8570
|
setup(e, { expose: t, emit: n }) {
|
|
8572
|
-
const a = e, o = n, l = Q(!1), { wrapRef: s, btnRef: r, formRef: i, btnQueryRef: u, centerSlotRef: d, tableApi: c, style: f, activeTabs: h, onReady: v, getApi:
|
|
8571
|
+
const a = e, o = n, l = Q(!1), { wrapRef: s, btnRef: r, formRef: i, btnQueryRef: u, centerSlotRef: d, tableApi: c, style: f, activeTabs: h, onReady: v, getApi: p, getActiveTab: w, setActiveTab: b } = Ff(a), { menuForm: x, isShowDrag: y, setQueryFocus: E } = Zf(i, a), { onPageChange: R, onTabClick: _, onCheckboxAll: S, onCheckboxChange: M, onResizableChange: V, onCheckboxSelect: D } = pr(h, a), { btns: k, validate: C, search: $, searchTo: O, reset: q, getQueryInstance: z, getQueryItemInstance: Y } = Pf(i, a, D), {
|
|
8573
8572
|
uid: se,
|
|
8574
8573
|
query_uid: W,
|
|
8575
8574
|
table_uid: L,
|
|
@@ -8613,7 +8612,7 @@ const tm = ["id"], am = /* @__PURE__ */ fe({
|
|
|
8613
8612
|
searchTo: O,
|
|
8614
8613
|
reset: q,
|
|
8615
8614
|
validate: C,
|
|
8616
|
-
getApi:
|
|
8615
|
+
getApi: p,
|
|
8617
8616
|
getQueryInstance: z,
|
|
8618
8617
|
getQueryItemInstance: Y,
|
|
8619
8618
|
getActiveTab: w,
|
|
@@ -8663,7 +8662,7 @@ const tm = ["id"], am = /* @__PURE__ */ fe({
|
|
|
8663
8662
|
])
|
|
8664
8663
|
}))
|
|
8665
8664
|
]), 1032, ["btns", "unique-id", "mid", "uid"])) : le("", !0),
|
|
8666
|
-
m(
|
|
8665
|
+
m(g).isEmpty((tt = (ze = e.data) == null ? void 0 : ze.form) == null ? void 0 : tt.formConfig) ? le("", !0) : (I(), K(ge, {
|
|
8667
8666
|
key: 1,
|
|
8668
8667
|
class: "query-box-wapper",
|
|
8669
8668
|
id: m(W),
|
|
@@ -8680,7 +8679,7 @@ const tm = ["id"], am = /* @__PURE__ */ fe({
|
|
|
8680
8679
|
formConfig: e.data.form.formConfig,
|
|
8681
8680
|
"onUpdate:formConfig": oe[0] || (oe[0] = (Et) => e.data.form.formConfig = Et),
|
|
8682
8681
|
"column-num": (et = e.data.form.baseData) == null ? void 0 : et.columnNum
|
|
8683
|
-
}, m(
|
|
8682
|
+
}, m(g).omit(e.data.form, "formConfig"), {
|
|
8684
8683
|
"unique-id": e.data.config_unique_id,
|
|
8685
8684
|
mid: e.data.mid,
|
|
8686
8685
|
uid: e.data.uid
|
|
@@ -8762,7 +8761,7 @@ const tm = ["id"], am = /* @__PURE__ */ fe({
|
|
|
8762
8761
|
}, [
|
|
8763
8762
|
_e(me.$slots, "centerSlot", ct(yt(e.data || {})), void 0, !0)
|
|
8764
8763
|
], 512)) : le("", !0),
|
|
8765
|
-
m(
|
|
8764
|
+
m(g).isEmpty((lt = e.data) == null ? void 0 : lt.tables) ? le("", !0) : (I(), K(ge, {
|
|
8766
8765
|
key: 1,
|
|
8767
8766
|
id: m(L),
|
|
8768
8767
|
class: "table-box-wapper",
|
|
@@ -8842,41 +8841,41 @@ function om(e, t) {
|
|
|
8842
8841
|
}, v = () => {
|
|
8843
8842
|
const F = c();
|
|
8844
8843
|
return i.value.tables.findIndex((B) => B.id === F);
|
|
8845
|
-
},
|
|
8844
|
+
}, p = (F = 0) => {
|
|
8846
8845
|
var Z;
|
|
8847
8846
|
const B = d(F);
|
|
8848
8847
|
(Z = r.value) == null || Z.setActiveTab(B);
|
|
8849
8848
|
}, w = (F) => i.value.btns.find((B) => B.data.key === F), b = (F, B = !0) => {
|
|
8850
|
-
const Z = Array.isArray(F) ? F : [F], ae = i.value.btns.reduce((ve, de) => (
|
|
8849
|
+
const Z = Array.isArray(F) ? F : [F], ae = i.value.btns.reduce((ve, de) => (g.set(ve, de.data.key, de), ve), {});
|
|
8851
8850
|
Z.forEach((ve) => {
|
|
8852
|
-
const de =
|
|
8851
|
+
const de = g.get(ae, ve);
|
|
8853
8852
|
de && (de.data.isShow = !B);
|
|
8854
8853
|
});
|
|
8855
8854
|
}, x = (F, B = !0) => {
|
|
8856
|
-
const Z = Array.isArray(F) ? F : [F], ae = i.value.btns.reduce((ve, de) => (
|
|
8855
|
+
const Z = Array.isArray(F) ? F : [F], ae = i.value.btns.reduce((ve, de) => (g.set(ve, de.data.key, de), ve), {});
|
|
8857
8856
|
Z.forEach((ve) => {
|
|
8858
|
-
const de =
|
|
8857
|
+
const de = g.get(ae, ve);
|
|
8859
8858
|
de && (de.data.disabled = B);
|
|
8860
8859
|
});
|
|
8861
8860
|
}, y = (F) => o.value = F, E = () => i.value, R = (F) => i.value.form.formConfig.find((B) => B.data.baseData.prop === F).data, _ = (F, B) => {
|
|
8862
8861
|
const Z = B || c(), ae = i.value.tables.find((ve) => ve.id === Z);
|
|
8863
|
-
ae && (
|
|
8862
|
+
ae && (g.set(ae, "baseData.mergeCells", F), setTimeout(() => {
|
|
8864
8863
|
Array.from(document.querySelectorAll(`#table-${Z} td[rowspan][colspan]`)).map((ve) => {
|
|
8865
8864
|
ve.classList.contains("merge-cell") || ve.classList.add("merge-cell");
|
|
8866
8865
|
});
|
|
8867
8866
|
}, 20));
|
|
8868
8867
|
}, S = (F, B = !0) => {
|
|
8869
8868
|
const Z = Array.isArray(F) ? F : [F];
|
|
8870
|
-
if (
|
|
8871
|
-
const ae = i.value.form.formConfig.reduce((de, Ee) => (
|
|
8872
|
-
|
|
8873
|
-
const Ee =
|
|
8869
|
+
if (g.isEmpty(i.value.form)) return;
|
|
8870
|
+
const ae = i.value.form.formConfig.reduce((de, Ee) => (g.set(de, Ee.data.baseData.prop, Ee), de), {}), ve = g.get(Mo.value, `query.${c()}`, []);
|
|
8871
|
+
g.set(Mo.value, `query.${c()}`, [.../* @__PURE__ */ new Set([...ve, ...Z])]), Z.forEach((de) => {
|
|
8872
|
+
const Ee = g.get(ae, de);
|
|
8874
8873
|
Ee && (Ee.data.baseData.isShow = !B);
|
|
8875
8874
|
});
|
|
8876
8875
|
}, M = (F, B = !0) => {
|
|
8877
|
-
const Z = Array.isArray(F) ? F : [F], ae = i.value.form.formConfig.reduce((ve, de) => (
|
|
8876
|
+
const Z = Array.isArray(F) ? F : [F], ae = i.value.form.formConfig.reduce((ve, de) => (g.set(ve, de.data.baseData.prop, de), ve), {});
|
|
8878
8877
|
Z.forEach((ve) => {
|
|
8879
|
-
const de =
|
|
8878
|
+
const de = g.get(ae, ve);
|
|
8880
8879
|
de && (Reflect.has(de.data.elData, "disabled") ? de.data.elData.disabled = B : Reflect.has(de.data.elData.attrs, "disabled") && (de.data.elData.attrs.disabled = B));
|
|
8881
8880
|
});
|
|
8882
8881
|
}, V = () => {
|
|
@@ -8926,19 +8925,19 @@ function om(e, t) {
|
|
|
8926
8925
|
return (B = i.value.tables) == null ? void 0 : B.find((Z) => Z.id === (F || c()));
|
|
8927
8926
|
}, J = (F, B = !0) => {
|
|
8928
8927
|
var ve;
|
|
8929
|
-
const Z = Array.isArray(F) ? F : [F], ae = (((ve = G()) == null ? void 0 : ve.tableConfig) || []).reduce((de, Ee) => (
|
|
8928
|
+
const Z = Array.isArray(F) ? F : [F], ae = (((ve = G()) == null ? void 0 : ve.tableConfig) || []).reduce((de, Ee) => (g.set(de, Ee.data.field, Ee), de), {});
|
|
8930
8929
|
Z.forEach((de) => {
|
|
8931
|
-
const Ee =
|
|
8930
|
+
const Ee = g.get(ae, de);
|
|
8932
8931
|
Ee && (Ee.data.isShow = !B);
|
|
8933
8932
|
});
|
|
8934
8933
|
}, re = (F) => {
|
|
8935
8934
|
var Z;
|
|
8936
8935
|
const B = ((Z = G(F)) == null ? void 0 : Z.tableConfig) || [];
|
|
8937
|
-
return
|
|
8936
|
+
return g.cloneDeep(B);
|
|
8938
8937
|
}, ne = (F = "1") => {
|
|
8939
8938
|
const B = vr(i.value);
|
|
8940
8939
|
return Object.keys(B).reduce(
|
|
8941
|
-
(Z, ae) => (F === "-1" &&
|
|
8940
|
+
(Z, ae) => (F === "-1" && g.isEmpty(B[ae]) || (Z[ae] = B[ae]), Z),
|
|
8942
8941
|
{}
|
|
8943
8942
|
);
|
|
8944
8943
|
}, ye = (F) => {
|
|
@@ -8949,12 +8948,12 @@ function om(e, t) {
|
|
|
8949
8948
|
return br(de, i.value.form.formData, F === "-1", !1);
|
|
8950
8949
|
const Ee = ((Z = i.value.form) == null ? void 0 : Z.formData) || {}, Ye = new RegExp(Ka);
|
|
8951
8950
|
return Object.keys(Ee).reduce(
|
|
8952
|
-
($e, Je) => (Ye.test(Je) || F === "-1" &&
|
|
8951
|
+
($e, Je) => (Ye.test(Je) || F === "-1" && g.isEmpty(Ee[Je]) || ($e[Je] = Ee[Je]), $e),
|
|
8953
8952
|
{}
|
|
8954
8953
|
);
|
|
8955
8954
|
}
|
|
8956
8955
|
return (ve = (ae = i.value) == null ? void 0 : ae.form) == null ? void 0 : ve.formData;
|
|
8957
|
-
}, pe = (F, B) => (
|
|
8956
|
+
}, pe = (F, B) => (g.set(i.value, `form.formData.${F}`, B), zt.value[e.data.config_unique_id] || (zt.value[e.data.config_unique_id] = {}), zt.value[e.data.config_unique_id][F] = B, Me()), Ce = (F, B = !1) => {
|
|
8958
8957
|
const Z = {
|
|
8959
8958
|
...ye(!1),
|
|
8960
8959
|
...F
|
|
@@ -8962,7 +8961,7 @@ function om(e, t) {
|
|
|
8962
8961
|
return i.value.form.formData = Be(Z), zt.value[e.data.config_unique_id] = Z, B && (Zo.value[e.data.config_unique_id] = F), Me();
|
|
8963
8962
|
};
|
|
8964
8963
|
function Be(F) {
|
|
8965
|
-
return new Proxy(
|
|
8964
|
+
return new Proxy(g.cloneDeep(F), {
|
|
8966
8965
|
get: function(B, Z, ae) {
|
|
8967
8966
|
return Reflect.get(B, Z, ae);
|
|
8968
8967
|
},
|
|
@@ -8986,7 +8985,7 @@ function om(e, t) {
|
|
|
8986
8985
|
return (B = r.value) == null ? void 0 : B.getApi(F);
|
|
8987
8986
|
};
|
|
8988
8987
|
function oe(F) {
|
|
8989
|
-
if (!
|
|
8988
|
+
if (!g.isEmpty(F))
|
|
8990
8989
|
for (let B in F)
|
|
8991
8990
|
i.value.form.formData[B] = F[B];
|
|
8992
8991
|
}
|
|
@@ -8996,11 +8995,11 @@ function om(e, t) {
|
|
|
8996
8995
|
(B = i.value.tables) == null || B.forEach((ae) => {
|
|
8997
8996
|
var ve;
|
|
8998
8997
|
if (ae.tableData = [], ae.baseData.is_apply_page) {
|
|
8999
|
-
const de = ae.baseData.uuid ? `${ae.baseData.uuid}${ae.baseData.id}` : ae.baseData.id, Ee =
|
|
8998
|
+
const de = ae.baseData.uuid ? `${ae.baseData.uuid}${ae.baseData.id}` : ae.baseData.id, Ee = g.get(F, `_user_pageSize.${de}`, F == null ? void 0 : F._sys_pageSize);
|
|
9000
8999
|
ae.baseData.table_page_data.currentPage = 1, ae.baseData.table_page_data.total = 0, ae.baseData.table_page_data.pageSize = Number(Ee);
|
|
9001
9000
|
}
|
|
9002
|
-
(ve = me(ae.id)) == null || ve.clearAll(),
|
|
9003
|
-
}),
|
|
9001
|
+
(ve = me(ae.id)) == null || ve.clearAll(), g.isEmpty(i.value.form) || delete i.value.form.formData[`${hs}${ae.id}`];
|
|
9002
|
+
}), g.isEmpty(i.value.form) || (Z = V()) == null || Z.clearValidate(), Ae();
|
|
9004
9003
|
}
|
|
9005
9004
|
function ge(F, B) {
|
|
9006
9005
|
const Z = i.value.tables.find((ae) => ae.id === F);
|
|
@@ -9008,7 +9007,7 @@ function om(e, t) {
|
|
|
9008
9007
|
}
|
|
9009
9008
|
function ke() {
|
|
9010
9009
|
var F, B, Z, ae, ve;
|
|
9011
|
-
return !
|
|
9010
|
+
return !g.isEmpty((F = e.data) == null ? void 0 : F.form) && ((ae = (Z = (B = e.data) == null ? void 0 : B.form) == null ? void 0 : Z.baseData) != null && ae.isVerifySearch) ? (ve = r.value) == null ? void 0 : ve.validate() : Me();
|
|
9012
9011
|
}
|
|
9013
9012
|
function Re() {
|
|
9014
9013
|
return {
|
|
@@ -9020,9 +9019,9 @@ function om(e, t) {
|
|
|
9020
9019
|
}
|
|
9021
9020
|
function Le(F) {
|
|
9022
9021
|
var B;
|
|
9023
|
-
return
|
|
9022
|
+
return g.set(l.value, `data.${c()}`, F || []), (B = me()) == null ? void 0 : B.clearCheckboxRow().then(() => {
|
|
9024
9023
|
var ae;
|
|
9025
|
-
const Z =
|
|
9024
|
+
const Z = g.isEmpty(g.get(l.value, `data.${c()}`, []));
|
|
9026
9025
|
if ((ae = i.value) == null || ae.btns.filter((ve) => ["exportSelect", "exportSelectedData"].includes(ve.data.key)).forEach((ve) => {
|
|
9027
9026
|
ve.data.disabled = Z;
|
|
9028
9027
|
}), !Z)
|
|
@@ -9030,7 +9029,7 @@ function om(e, t) {
|
|
|
9030
9029
|
setTimeout(() => {
|
|
9031
9030
|
var $e, Je;
|
|
9032
9031
|
const { data: de, uniqId: Ee } = tt(), Ye = (($e = me()) == null ? void 0 : $e.getData()) || [];
|
|
9033
|
-
if (!
|
|
9032
|
+
if (!g.isEmpty(de)) {
|
|
9034
9033
|
const St = (de == null ? void 0 : de.map((Nt) => Nt[Ee])) || [], kt = Ye.filter((Nt) => St.includes(Nt[Ee]));
|
|
9035
9034
|
(Je = me()) == null || Je.setCheckboxRow(kt, !0), ve();
|
|
9036
9035
|
}
|
|
@@ -9041,7 +9040,7 @@ function om(e, t) {
|
|
|
9041
9040
|
function Ae() {
|
|
9042
9041
|
var F;
|
|
9043
9042
|
return Object.keys(l.value.data).forEach((B) => {
|
|
9044
|
-
|
|
9043
|
+
g.set(l.value, `data.${B}`, []);
|
|
9045
9044
|
}), (F = i.value) == null || F.btns.filter((B) => ["exportSelect", "exportSelectedData"].includes(B.data.key)).forEach((B) => {
|
|
9046
9045
|
B.data.disabled = !0;
|
|
9047
9046
|
}), d(-1).forEach((B) => {
|
|
@@ -9052,41 +9051,41 @@ function om(e, t) {
|
|
|
9052
9051
|
function ze(F, B = !0, Z) {
|
|
9053
9052
|
if (l.value.uniqId = Z || l.value.uniqId, !l.value.uniqId)
|
|
9054
9053
|
return console.error("未设置uniqId唯一匹配值"), Me();
|
|
9055
|
-
let ae =
|
|
9054
|
+
let ae = g.get(l.value, `data.${c()}`, []);
|
|
9056
9055
|
if (l.value.isSelected = B, B)
|
|
9057
|
-
ae =
|
|
9056
|
+
ae = g.uniqBy([...ae, ...F], l.value.uniqId);
|
|
9058
9057
|
else {
|
|
9059
9058
|
const ve = F.map((de) => de[l.value.uniqId]);
|
|
9060
9059
|
ae = ae.filter((de) => !ve.includes(de[l.value.uniqId]));
|
|
9061
9060
|
}
|
|
9062
|
-
return
|
|
9061
|
+
return g.set(l.value, `data.${c()}`, ae), Me().then(() => {
|
|
9063
9062
|
var de, Ee, Ye;
|
|
9064
9063
|
Z && ((Ee = (de = me()) == null ? void 0 : de.clearCheckboxRow()) == null || Ee.then(() => {
|
|
9065
9064
|
var kt, Nt;
|
|
9066
9065
|
const { data: $e, uniqId: Je } = tt(), St = ((kt = me()) == null ? void 0 : kt.getData()) || [];
|
|
9067
|
-
if (!
|
|
9066
|
+
if (!g.isEmpty($e)) {
|
|
9068
9067
|
const xa = ($e == null ? void 0 : $e.map((Ma) => Ma[Je])) || [], Jt = St.filter((Ma) => xa.includes(Ma[Je]));
|
|
9069
9068
|
(Nt = me()) == null || Nt.setCheckboxRow(Jt, !0);
|
|
9070
9069
|
}
|
|
9071
9070
|
}));
|
|
9072
|
-
const ve =
|
|
9071
|
+
const ve = g.isEmpty(g.get(l.value, `data.${c()}`, []));
|
|
9073
9072
|
return (Ye = i.value) == null || Ye.btns.filter(($e) => ["exportSelect", "exportSelectedData"].includes($e.data.key)).forEach(($e) => {
|
|
9074
9073
|
$e.data.disabled = ve;
|
|
9075
9074
|
}), Me();
|
|
9076
9075
|
});
|
|
9077
9076
|
}
|
|
9078
9077
|
function tt(F = c()) {
|
|
9079
|
-
const B = F == "-1" ?
|
|
9078
|
+
const B = F == "-1" ? g.uniqBy(Object.values(g.get(l.value, "data", {})).flat(1), l.value.uniqId) : g.get(l.value, `data.${F}`, []);
|
|
9080
9079
|
return {
|
|
9081
9080
|
...l.value,
|
|
9082
|
-
data: B.map((Z) =>
|
|
9081
|
+
data: B.map((Z) => g.omit(Z, ["customTotal", "_X_ROW_KEY"]))
|
|
9083
9082
|
};
|
|
9084
9083
|
}
|
|
9085
9084
|
function lt(F) {
|
|
9086
9085
|
if (!F) return Mt.error("请选择要删除的数据!");
|
|
9087
|
-
const B =
|
|
9086
|
+
const B = g.isString(F) ? F : g.get(F, l.value.uniqId);
|
|
9088
9087
|
Object.entries(l.value.data).forEach(([Z, ae]) => {
|
|
9089
|
-
const ve = ae.findIndex((de) =>
|
|
9088
|
+
const ve = ae.findIndex((de) => g.get(de, l.value.uniqId) == B);
|
|
9090
9089
|
if (ve > -1) {
|
|
9091
9090
|
const [de] = ae.splice(ve, 1);
|
|
9092
9091
|
me(Z).setCheckboxRow(de, !1);
|
|
@@ -9094,7 +9093,7 @@ function om(e, t) {
|
|
|
9094
9093
|
});
|
|
9095
9094
|
}
|
|
9096
9095
|
function st(F, B) {
|
|
9097
|
-
const Z = l.value.uniqId, ae =
|
|
9096
|
+
const Z = l.value.uniqId, ae = g.get(l.value, `data.${c()}`, []).find((ve) => ve[Z] === F[Z]);
|
|
9098
9097
|
ae && (ae[B] = F[B]);
|
|
9099
9098
|
}
|
|
9100
9099
|
async function Qe(F, B) {
|
|
@@ -9134,7 +9133,7 @@ function om(e, t) {
|
|
|
9134
9133
|
id: i.value.config_unique_id
|
|
9135
9134
|
},
|
|
9136
9135
|
i.value.uuid ? `cache_${Z}_${i.value.uuid}` : `cache_${Z}`
|
|
9137
|
-
).then((de) => de || [])) : ((ae == null ? void 0 : ae.tableData) || []).map((de) =>
|
|
9136
|
+
).then((de) => de || [])) : ((ae == null ? void 0 : ae.tableData) || []).map((de) => g.omit(de, B));
|
|
9138
9137
|
}, tn = (F, B) => {
|
|
9139
9138
|
var ve, de, Ee, Ye, $e;
|
|
9140
9139
|
const Z = B || c(), ae = G(Z);
|
|
@@ -9151,14 +9150,14 @@ function om(e, t) {
|
|
|
9151
9150
|
is_apply_page: ae.baseData.is_apply_page
|
|
9152
9151
|
}).then((St) => (ae.baseData.is_apply_page && (ae.baseData.table_page_data.currentPage = 1, ae.baseData.table_page_data.pageSize = Je, ae.baseData.table_page_data.total = St.totalPage), ge(Z, St.currentData)));
|
|
9153
9152
|
}
|
|
9154
|
-
return ae != null && ae.baseData.is_apply_page && (ae.baseData.table_page_data.total = F.length),
|
|
9153
|
+
return ae != null && ae.baseData.is_apply_page && (ae.baseData.table_page_data.total = F.length), g.set(Sr, Z, F), ge(Z, F);
|
|
9155
9154
|
};
|
|
9156
9155
|
function Qt(F, B = "id") {
|
|
9157
9156
|
var de;
|
|
9158
9157
|
const Z = c(), ae = ((de = i.value.tables.find((Ee) => Ee.id === Z)) == null ? void 0 : de.tableData) || [];
|
|
9159
9158
|
return (Array.isArray(F) ? F : [F]).forEach((Ee) => {
|
|
9160
9159
|
const Ye = ae.find(($e) => $e[B] === Ee[B]);
|
|
9161
|
-
Ye && Object.assign(Ye,
|
|
9160
|
+
Ye && Object.assign(Ye, g.omit(Ee, ["customTotal", "_X_ROW_KEY", "_X_ROW_CHILD"]));
|
|
9162
9161
|
}), Me();
|
|
9163
9162
|
}
|
|
9164
9163
|
function an(F, B, Z = "id") {
|
|
@@ -9194,7 +9193,7 @@ function om(e, t) {
|
|
|
9194
9193
|
getApi: me,
|
|
9195
9194
|
getConfigId: u,
|
|
9196
9195
|
getTab: d,
|
|
9197
|
-
setTab:
|
|
9196
|
+
setTab: p,
|
|
9198
9197
|
hideBtn: b,
|
|
9199
9198
|
hideQuery: S,
|
|
9200
9199
|
hideColumn: J,
|
|
@@ -9265,7 +9264,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9265
9264
|
searchTo: f,
|
|
9266
9265
|
reset: h,
|
|
9267
9266
|
getData: v,
|
|
9268
|
-
setData:
|
|
9267
|
+
setData: p,
|
|
9269
9268
|
hideBtn: w,
|
|
9270
9269
|
hideQuery: b,
|
|
9271
9270
|
hideColumn: x,
|
|
@@ -9337,7 +9336,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9337
9336
|
async function F($e) {
|
|
9338
9337
|
Me(() => {
|
|
9339
9338
|
o.emit("is-ready", !0);
|
|
9340
|
-
const Je = vd(
|
|
9339
|
+
const Je = vd(g.cloneDeep(d.value)), St = X(() => {
|
|
9341
9340
|
var kt;
|
|
9342
9341
|
return (kt = d.value.form) == null ? void 0 : kt.formData;
|
|
9343
9342
|
});
|
|
@@ -9361,7 +9360,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9361
9360
|
data: d,
|
|
9362
9361
|
dataInstance: d,
|
|
9363
9362
|
getData: v,
|
|
9364
|
-
setData:
|
|
9363
|
+
setData: p,
|
|
9365
9364
|
insertBefore: R,
|
|
9366
9365
|
insertAfter: _,
|
|
9367
9366
|
setRow: S,
|
|
@@ -9430,20 +9429,20 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9430
9429
|
async function de($e) {
|
|
9431
9430
|
var Je, St, kt, Nt, xa;
|
|
9432
9431
|
if ($e) {
|
|
9433
|
-
if (d.value = await qo($e),
|
|
9432
|
+
if (d.value = await qo($e), g.isEmpty((St = (Je = d.value) == null ? void 0 : Je.form) == null ? void 0 : St.formData) || (d.value.form.formData = Ca(d.value.form.formData)), Oo.value && typeof (r == null ? void 0 : r.emitAttr) == "function" && setTimeout(() => {
|
|
9434
9433
|
r == null || r.emitAttr();
|
|
9435
9434
|
}), Oo.value = !1, (kt = r == null ? void 0 : r.isInitLoad) != null && kt.value) {
|
|
9436
|
-
const Jt =
|
|
9437
|
-
|
|
9435
|
+
const Jt = g.cloneDeep(Zo.value[d.value.config_unique_id]);
|
|
9436
|
+
g.isEmpty(Jt) || (g.isEmpty((Nt = d.value.form) == null ? void 0 : Nt.formData) ? d.value.form.formData = Jt : g.merge(d.value.form.formData, Jt)), Ee();
|
|
9438
9437
|
}
|
|
9439
|
-
zt.value[n.data.config_unique_id] =
|
|
9438
|
+
zt.value[n.data.config_unique_id] = g.cloneDeep((xa = d.value.form) == null ? void 0 : xa.formData), typeof (r == null ? void 0 : r.setInitLoad) == "function" && (r == null || r.setInitLoad(!0));
|
|
9440
9439
|
} else
|
|
9441
9440
|
d.value = oe();
|
|
9442
9441
|
$e && setTimeout(() => {
|
|
9443
9442
|
var dl, cl, fl;
|
|
9444
9443
|
(dl = u.value) == null || dl.onCheckboxSelect();
|
|
9445
9444
|
const { data: Jt, uniqId: Ma } = ge(), ri = ((cl = M()) == null ? void 0 : cl.getData()) || [];
|
|
9446
|
-
if (!
|
|
9445
|
+
if (!g.isEmpty(Jt)) {
|
|
9447
9446
|
const ui = (Jt == null ? void 0 : Jt.map((uo) => uo[Ma])) || [], di = ri.filter((uo) => ui.includes(uo[Ma]));
|
|
9448
9447
|
(fl = M()) == null || fl.setCheckboxRow(di, !0);
|
|
9449
9448
|
}
|
|
@@ -9451,17 +9450,17 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9451
9450
|
}
|
|
9452
9451
|
function Ee($e, Je) {
|
|
9453
9452
|
var kt, Nt, xa;
|
|
9454
|
-
const St =
|
|
9453
|
+
const St = g.isEmpty(Je) ? (xa = (Nt = (kt = n.data) == null ? void 0 : kt.form) == null ? void 0 : Nt.baseData) != null && xa.isShowQuerySearch ? J() : G(!1) : Je;
|
|
9455
9454
|
Dr(d, $e, St);
|
|
9456
9455
|
}
|
|
9457
9456
|
function Ye($e) {
|
|
9458
9457
|
var Je, St;
|
|
9459
|
-
($e.includes(((Je = n == null ? void 0 : n.data) == null ? void 0 : Je.mid) || "") || $e.length == 0) && (s =
|
|
9458
|
+
($e.includes(((Je = n == null ? void 0 : n.data) == null ? void 0 : Je.mid) || "") || $e.length == 0) && (s = g.cloneDeep(v() || []), h(!0), W(), (St = u.value) == null || St.hideMultilineQuery());
|
|
9460
9459
|
}
|
|
9461
9460
|
return Wn.on("closeTabs", Ye), Bt(() => {
|
|
9462
9461
|
var $e;
|
|
9463
|
-
a("destroy",
|
|
9464
|
-
|
|
9462
|
+
a("destroy", g.isEmpty(s) ? g.cloneDeep(v()) : g.cloneDeep(s)), Z(), Wn.off("closeTabs", Ye), ($e = V(-1)) == null || $e.forEach((Je) => {
|
|
9463
|
+
g.set(Mo.value, `query.${Je}`, []);
|
|
9465
9464
|
});
|
|
9466
9465
|
}), Vt("bcTableApi", {
|
|
9467
9466
|
search: c,
|
|
@@ -9593,11 +9592,11 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9593
9592
|
const n = t, a = e, o = Rt(e, "modelValue"), l = Q(), s = Q(""), r = Ve(), i = Ve(), u = Ve(), { height: d } = ra(i), { height: c } = ra(u), f = X(() => d.value - c.value), h = Q(!1), v = ma({
|
|
9594
9593
|
width: "0px",
|
|
9595
9594
|
transform: "translateX(0px)"
|
|
9596
|
-
}),
|
|
9595
|
+
}), p = X(() => a.tabs.length ? a.showALLTabs ? !0 : a.tabs.length > 1 : !1);
|
|
9597
9596
|
at(
|
|
9598
9597
|
o,
|
|
9599
9598
|
(_) => {
|
|
9600
|
-
l.value = a.tabs.find((S) =>
|
|
9599
|
+
l.value = a.tabs.find((S) => g.get(S, a.value) === _), Me(() => {
|
|
9601
9600
|
var M, V;
|
|
9602
9601
|
const S = (M = u.value) == null ? void 0 : M.querySelector(".item.active");
|
|
9603
9602
|
S && (v.width = S.offsetWidth + "px", v.transform = `translateX(${S.offsetLeft}px)`, (V = r.value) == null || V.scrollToElement(S, 300, !0, !0));
|
|
@@ -9619,7 +9618,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9619
9618
|
);
|
|
9620
9619
|
function w(_) {
|
|
9621
9620
|
o.value = _[a.value];
|
|
9622
|
-
const S = a.tabs.findIndex((M) =>
|
|
9621
|
+
const S = a.tabs.findIndex((M) => g.get(M, a.value) === _[a.value]);
|
|
9623
9622
|
n("tab-click", { index: S, value: _[a.value] }), Me(() => {
|
|
9624
9623
|
var M;
|
|
9625
9624
|
(M = document.activeElement) == null || M.blur();
|
|
@@ -9630,7 +9629,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9630
9629
|
}
|
|
9631
9630
|
function x(_) {
|
|
9632
9631
|
var S, M;
|
|
9633
|
-
return ((M = (S = _.find((V) =>
|
|
9632
|
+
return ((M = (S = _.find((V) => g.get(V, a.value) === o.value)) == null ? void 0 : S.baseData) == null ? void 0 : M.tabs) || a.type;
|
|
9634
9633
|
}
|
|
9635
9634
|
function y(_, S) {
|
|
9636
9635
|
const M = _ ? a.tabs.filter(E(_)) : a.tabs;
|
|
@@ -9653,7 +9652,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9653
9652
|
P("div", {
|
|
9654
9653
|
ref_key: "headRef",
|
|
9655
9654
|
ref: u,
|
|
9656
|
-
class: Ge(["tabs-head",
|
|
9655
|
+
class: Ge(["tabs-head", p.value ? "min-h-16" : "min-h-2"])
|
|
9657
9656
|
}, [
|
|
9658
9657
|
_e(_.$slots, "left", {}, void 0, !0),
|
|
9659
9658
|
h.value ? (I(), K(V, {
|
|
@@ -9673,7 +9672,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9673
9672
|
]),
|
|
9674
9673
|
_: 1
|
|
9675
9674
|
}, 8, ["modelValue", "value-key"])) : le("", !0),
|
|
9676
|
-
|
|
9675
|
+
p.value ? (I(), K(m(im), {
|
|
9677
9676
|
key: 1,
|
|
9678
9677
|
ref_key: "betterScrollRef",
|
|
9679
9678
|
ref: r,
|
|
@@ -9684,16 +9683,16 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9684
9683
|
(I(!0), j(Se, null, De(e.tabs, (D, k) => {
|
|
9685
9684
|
var C;
|
|
9686
9685
|
return I(), j("div", {
|
|
9687
|
-
key: m(
|
|
9688
|
-
class: Ge(["item", { active: o.value === m(
|
|
9689
|
-
id: `tab_${m(
|
|
9686
|
+
key: m(g).get(D, e.value),
|
|
9687
|
+
class: Ge(["item", { active: o.value === m(g).get(D, e.value) }, b((C = D == null ? void 0 : D.baseData) == null ? void 0 : C.tabs)]),
|
|
9688
|
+
id: `tab_${m(g).get(D, e.value)}`,
|
|
9690
9689
|
onClick: ($) => w(D)
|
|
9691
9690
|
}, [
|
|
9692
9691
|
_.$slots[`tab_${k}`] ? _e(_.$slots, `tab_${k}`, be({
|
|
9693
9692
|
key: 0,
|
|
9694
9693
|
ref_for: !0
|
|
9695
9694
|
}, D || {}), void 0, !0) : (I(), j(Se, { key: 1 }, [
|
|
9696
|
-
Ie(Ne(m(
|
|
9695
|
+
Ie(Ne(m(g).get(D, e.label) || m(g).get(D, `baseData.${e.label}`)), 1)
|
|
9697
9696
|
], 64))
|
|
9698
9697
|
], 10, um);
|
|
9699
9698
|
}), 128)),
|
|
@@ -9720,7 +9719,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9720
9719
|
], 4)) : le("", !0)
|
|
9721
9720
|
], 64)) : le("", !0),
|
|
9722
9721
|
e.multiple && e.showContent ? (I(!0), j(Se, { key: 1 }, De(e.tabs, (D) => da((I(), j("div", {
|
|
9723
|
-
key: m(
|
|
9722
|
+
key: m(g).get(D, e.value),
|
|
9724
9723
|
class: "tabs-content",
|
|
9725
9724
|
style: nt({ height: f.value + "px" })
|
|
9726
9725
|
}, [
|
|
@@ -9729,7 +9728,7 @@ const lm = /* @__PURE__ */ fe({
|
|
|
9729
9728
|
item: D
|
|
9730
9729
|
}, void 0, !0)
|
|
9731
9730
|
], 4)), [
|
|
9732
|
-
[To, o.value === m(
|
|
9731
|
+
[To, o.value === m(g).get(D, e.value)]
|
|
9733
9732
|
])), 128)) : le("", !0)
|
|
9734
9733
|
], 512);
|
|
9735
9734
|
};
|
|
@@ -9790,7 +9789,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
9790
9789
|
const x = b;
|
|
9791
9790
|
x.style.height = "0";
|
|
9792
9791
|
}
|
|
9793
|
-
function
|
|
9792
|
+
function p(b) {
|
|
9794
9793
|
const x = b;
|
|
9795
9794
|
x.style.height = "auto";
|
|
9796
9795
|
const y = x.clientHeight;
|
|
@@ -9811,7 +9810,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
9811
9810
|
(I(), K(is, { to: "body" }, [
|
|
9812
9811
|
T($i, {
|
|
9813
9812
|
onBeforeEnter: v,
|
|
9814
|
-
onEnter:
|
|
9813
|
+
onEnter: p,
|
|
9815
9814
|
onAfterEnter: w
|
|
9816
9815
|
}, {
|
|
9817
9816
|
default: N(() => [
|
|
@@ -9873,7 +9872,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
9873
9872
|
async function u(w = {}) {
|
|
9874
9873
|
if (l.permissionsDict) {
|
|
9875
9874
|
const y = (await wn(l.mid, l.uid))[l.permissionsDict] || [];
|
|
9876
|
-
|
|
9875
|
+
g.isEmpty(y) || c(y);
|
|
9877
9876
|
return;
|
|
9878
9877
|
}
|
|
9879
9878
|
if (!l.url) return;
|
|
@@ -9888,7 +9887,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
9888
9887
|
params: y
|
|
9889
9888
|
}).then((E) => {
|
|
9890
9889
|
if (E) {
|
|
9891
|
-
const R = typeof x == "function" ? x(
|
|
9890
|
+
const R = typeof x == "function" ? x(g.get(E, "data") || []) : g.get(E, "data") || [];
|
|
9892
9891
|
c(R);
|
|
9893
9892
|
}
|
|
9894
9893
|
});
|
|
@@ -9905,17 +9904,17 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
9905
9904
|
function v() {
|
|
9906
9905
|
s.value.getInstance().blur();
|
|
9907
9906
|
}
|
|
9908
|
-
function
|
|
9907
|
+
function p() {
|
|
9909
9908
|
return s.value.getInstance().inputRef;
|
|
9910
9909
|
}
|
|
9911
9910
|
return vt(() => {
|
|
9912
9911
|
var x, y, E;
|
|
9913
|
-
const w = (x =
|
|
9914
|
-
b && n({ focus: h, blur: v, activeElement:
|
|
9912
|
+
const w = (x = p()) == null ? void 0 : x.closest(".el-form-item"), b = (E = (y = w == null ? void 0 : w.className) == null ? void 0 : y.match(/query_[a-zA-Z0-9_]+/)) == null ? void 0 : E[0];
|
|
9913
|
+
b && n({ focus: h, blur: v, activeElement: p, setOption: c, getOption: f, fetchData: u, getOptionList: d }, b.replace("query_", ""));
|
|
9915
9914
|
}), t({
|
|
9916
9915
|
focus: h,
|
|
9917
9916
|
blur: v,
|
|
9918
|
-
activeElement:
|
|
9917
|
+
activeElement: p,
|
|
9919
9918
|
setOption: c,
|
|
9920
9919
|
getOption: f,
|
|
9921
9920
|
fetchData: u,
|
|
@@ -9976,7 +9975,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
9976
9975
|
emits: ["blur", "change", "focus", "update:modelValue", "visible-change"],
|
|
9977
9976
|
setup(e, { expose: t, emit: n }) {
|
|
9978
9977
|
const a = e, o = n, l = je("setItemInstance", () => {
|
|
9979
|
-
}), s = Ga(), r = ao(), i = "bcTreeInput_" + Math.random().toString(36).slice(2), u = Ve(), d = Ve(), c = Ve(), f = Ve(), h = Q(a.showCheckbox || !1), v = Q([]),
|
|
9978
|
+
}), s = Ga(), r = ao(), i = "bcTreeInput_" + Math.random().toString(36).slice(2), u = Ve(), d = Ve(), c = Ve(), f = Ve(), h = Q(a.showCheckbox || !1), v = Q([]), p = Q([]), w = Ve(), b = Ve(z(a.modelValue));
|
|
9980
9979
|
let x = "";
|
|
9981
9980
|
const y = Ti({
|
|
9982
9981
|
isFocus: !1,
|
|
@@ -10047,10 +10046,10 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10047
10046
|
function me(oe, ie = []) {
|
|
10048
10047
|
return oe.reduce((ge, ke) => {
|
|
10049
10048
|
var Re;
|
|
10050
|
-
return ge.push(ke), (Re =
|
|
10049
|
+
return ge.push(ke), (Re = g.get(ke, xe, [])) != null && Re.length && ge.push(...me(g.get(ke, xe, []))), ge;
|
|
10051
10050
|
}, ie);
|
|
10052
10051
|
}
|
|
10053
|
-
return me(
|
|
10052
|
+
return me(g.cloneDeep(ue), he), he;
|
|
10054
10053
|
}
|
|
10055
10054
|
function z(ue) {
|
|
10056
10055
|
if (a.isString) {
|
|
@@ -10068,13 +10067,13 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10068
10067
|
if (!a.showCheckbox) return;
|
|
10069
10068
|
const { value: xe, children: me } = r.props;
|
|
10070
10069
|
if (y.currentNodeKey = ue[xe], a.multiple)
|
|
10071
|
-
b.value = he.checkedNodes.map((oe) =>
|
|
10070
|
+
b.value = he.checkedNodes.map((oe) => g.omit(oe, me));
|
|
10072
10071
|
else {
|
|
10073
|
-
if (!
|
|
10072
|
+
if (!g.isEmpty(ue[me]) && a.fullPth) {
|
|
10074
10073
|
b.value = [], w.value.setCheckedKeys([]);
|
|
10075
10074
|
return;
|
|
10076
10075
|
}
|
|
10077
|
-
b.value = he.checkedKeys.length ? [
|
|
10076
|
+
b.value = he.checkedKeys.length ? [g.omit(ue, me)] : [];
|
|
10078
10077
|
}
|
|
10079
10078
|
a.isString && (b.value = b.value.map((oe) => oe[xe]).toString()), o("change", b.value), o("update:modelValue", b.value);
|
|
10080
10079
|
}
|
|
@@ -10082,9 +10081,9 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10082
10081
|
var me;
|
|
10083
10082
|
if (a.showCheckbox) return;
|
|
10084
10083
|
const { value: he, children: xe } = r.props;
|
|
10085
|
-
y.currentNodeKey = ue[he], b.value = [
|
|
10084
|
+
y.currentNodeKey = ue[he], b.value = [g.omit(ue, xe)], a.isString && (b.value = ((me = b.value) == null ? void 0 : me.map((oe) => oe[he]).toString()) || ""), o("change", b.value), o("update:modelValue", b.value), re();
|
|
10086
10085
|
}
|
|
10087
|
-
const W =
|
|
10086
|
+
const W = g.debounce(C, 500);
|
|
10088
10087
|
function L(ue) {
|
|
10089
10088
|
w.value.filter(ue), W();
|
|
10090
10089
|
}
|
|
@@ -10098,7 +10097,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10098
10097
|
var xe;
|
|
10099
10098
|
if (a.permissionsDict) {
|
|
10100
10099
|
const me = ((xe = It()) == null ? void 0 : xe.mid) || a.mid, ie = (await wn(me))[a.permissionsDict] || [];
|
|
10101
|
-
|
|
10100
|
+
g.isEmpty(ie) ? console.error("字典数据为空") : (V.value = ie, typeof (S == null ? void 0 : S.setOptionMap) == "function" && (S == null || S.setOptionMap(a.field, ie)), a.field && typeof (_ == null ? void 0 : _.setOptions) == "function" && (_ == null || _.setOptions(a.field, V.value)));
|
|
10102
10101
|
return;
|
|
10103
10102
|
}
|
|
10104
10103
|
if (!a.url) {
|
|
@@ -10115,12 +10114,12 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10115
10114
|
method: a.method || "get",
|
|
10116
10115
|
params: me
|
|
10117
10116
|
}).then((oe) => {
|
|
10118
|
-
oe && (V.value = typeof xe == "function" ? xe(
|
|
10117
|
+
oe && (V.value = typeof xe == "function" ? xe(g.get(oe, "data", [])) : g.get(oe, "data", []), typeof (S == null ? void 0 : S.setOptionMap) == "function" && (S == null || S.setOptionMap(a.field, oe.data)), a.field && typeof (_ == null ? void 0 : _.setOptions) == "function" && (_ == null || _.setOptions(a.field, V.value)));
|
|
10119
10118
|
});
|
|
10120
10119
|
}
|
|
10121
10120
|
function A() {
|
|
10122
10121
|
var he;
|
|
10123
|
-
y.isClearing = !0, b.value = [],
|
|
10122
|
+
y.isClearing = !0, b.value = [], p.value = [], v.value = [], (he = w.value) == null || he.setCheckedKeys([]);
|
|
10124
10123
|
const { value: ue } = r.props;
|
|
10125
10124
|
a.isString && (b.value = b.value.map((xe) => xe[ue]).toString()), o("change", b.value), o("update:modelValue", b.value), y.isClearing = !1;
|
|
10126
10125
|
}
|
|
@@ -10147,7 +10146,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10147
10146
|
}
|
|
10148
10147
|
function pe(ue) {
|
|
10149
10148
|
var he;
|
|
10150
|
-
|
|
10149
|
+
p.value = ue, (he = w.value) == null || he.setCheckedKeys(ue);
|
|
10151
10150
|
}
|
|
10152
10151
|
function Ce(ue) {
|
|
10153
10152
|
var he;
|
|
@@ -10241,7 +10240,7 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10241
10240
|
"current-node-key": m(y).currentNodeKey,
|
|
10242
10241
|
"filter-method": ee,
|
|
10243
10242
|
"default-expanded-keys": v.value,
|
|
10244
|
-
"default-checked-keys":
|
|
10243
|
+
"default-checked-keys": p.value,
|
|
10245
10244
|
"show-checkbox": h.value,
|
|
10246
10245
|
onCheck: Y,
|
|
10247
10246
|
onNodeClick: se,
|
|
@@ -10304,21 +10303,21 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10304
10303
|
async function u(v = {}) {
|
|
10305
10304
|
if (a.permissionsDict) {
|
|
10306
10305
|
const b = (await wn(a.mid, a.uid))[a.permissionsDict] || [];
|
|
10307
|
-
|
|
10306
|
+
g.isEmpty(b) || (i.value = b, typeof (s == null ? void 0 : s.setOptionMap) == "function" && (s == null || s.setOptionMap(a.field, b)), typeof (l == null ? void 0 : l.setOptions) == "function" && (l == null || l.setOptions(a.field, i.value)));
|
|
10308
10307
|
return;
|
|
10309
10308
|
}
|
|
10310
10309
|
if (!a.url) return;
|
|
10311
|
-
const
|
|
10312
|
-
return Object.assign(
|
|
10310
|
+
const p = a.params ? new Function("return " + a.params)() : {};
|
|
10311
|
+
return Object.assign(p, v), d(a.url, p);
|
|
10313
10312
|
}
|
|
10314
|
-
function d(v,
|
|
10315
|
-
const b = Object.assign({ menu_id: a.mid },
|
|
10313
|
+
function d(v, p = {}, w) {
|
|
10314
|
+
const b = Object.assign({ menu_id: a.mid }, p);
|
|
10316
10315
|
return Ke({
|
|
10317
10316
|
url: "/" + a.proxy + v,
|
|
10318
10317
|
method: a.method || "get",
|
|
10319
10318
|
params: b
|
|
10320
10319
|
}).then((x) => {
|
|
10321
|
-
x && (i.value = typeof w == "function" ? w(
|
|
10320
|
+
x && (i.value = typeof w == "function" ? w(g.get(x, "data") || []) : g.get(x, "data") || [], typeof (s == null ? void 0 : s.setOptionMap) == "function" && (s == null || s.setOptionMap(a.field, x.data)), a.field && typeof (l == null ? void 0 : l.setOptions) == "function" && (l == null || l.setOptions(a.field, i.value)));
|
|
10322
10321
|
});
|
|
10323
10322
|
}
|
|
10324
10323
|
function c() {
|
|
@@ -10332,9 +10331,9 @@ const mm = ["id"], hm = ["onClick"], gm = /* @__PURE__ */ fe({
|
|
|
10332
10331
|
}
|
|
10333
10332
|
return vt(() => {
|
|
10334
10333
|
var w, b, x;
|
|
10335
|
-
const v = (w = h()) == null ? void 0 : w.closest(".el-form-item"),
|
|
10336
|
-
|
|
10337
|
-
}), t({ focus: c, blur: f, activeElement: h, fetchData: u, getOptionList: d }), (v,
|
|
10334
|
+
const v = (w = h()) == null ? void 0 : w.closest(".el-form-item"), p = (x = (b = v == null ? void 0 : v.className) == null ? void 0 : b.match(/query_[a-zA-Z0-9_]+/)) == null ? void 0 : x[0];
|
|
10335
|
+
p && n({ focus: c, blur: f, activeElement: h, fetchData: u, getOptionList: d }, p.replace("query_", ""));
|
|
10336
|
+
}), t({ focus: c, blur: f, activeElement: h, fetchData: u, getOptionList: d }), (v, p) => {
|
|
10338
10337
|
const w = U("el-tree-select");
|
|
10339
10338
|
return I(), K(w, be({
|
|
10340
10339
|
ref_key: "treeRef",
|
|
@@ -10374,8 +10373,8 @@ const Dm = /* @__PURE__ */ Pe(Er, [["render", Sm], ["__scopeId", "data-v-df2f727
|
|
|
10374
10373
|
(c = s.value) == null || c.focus();
|
|
10375
10374
|
}
|
|
10376
10375
|
return vt(() => {
|
|
10377
|
-
var h, v,
|
|
10378
|
-
const c = (h = u()) == null ? void 0 : h.closest(".el-form-item"), f = (
|
|
10376
|
+
var h, v, p;
|
|
10377
|
+
const c = (h = u()) == null ? void 0 : h.closest(".el-form-item"), f = (p = (v = c == null ? void 0 : c.className) == null ? void 0 : v.match(/query_[a-zA-Z0-9_]+/)) == null ? void 0 : p[0];
|
|
10379
10378
|
f && a({ focus: d, activeElement: u }, f.replace("query_", ""));
|
|
10380
10379
|
}), t({ focus: d, activeElement: u }), (c, f) => {
|
|
10381
10380
|
const h = U("el-input");
|
|
@@ -10670,7 +10669,7 @@ const km = { class: "w-[800px] flex flex-col" }, $m = { class: "flex justify-cen
|
|
|
10670
10669
|
}), l.send_priPhotoData.connect((f) => {
|
|
10671
10670
|
let h = "data:image/jpg;base64," + f;
|
|
10672
10671
|
l.get_actionType("closePriVideo");
|
|
10673
|
-
let v = /* @__PURE__ */ new Date(),
|
|
10672
|
+
let v = /* @__PURE__ */ new Date(), p = v.getFullYear().toString(), w = (v.getMonth() + 1).toString(), b = v.getDate().toString(), x = v.getHours().toString(), y = v.getMinutes().toString(), E = v.getSeconds().toString(), R = v.getMilliseconds().toString(), _ = p + w + b + x + y + E + R + ".jpg";
|
|
10674
10673
|
for (var S = h.split(","), M = S[0].match(/:(.*?);/)[1], V = atob(S[1]), D = V.length, k = new Uint8Array(D); D--; )
|
|
10675
10674
|
k[D] = V.charCodeAt(D);
|
|
10676
10675
|
let C = new File([k], _, { type: M });
|
|
@@ -10811,12 +10810,12 @@ async function Rm(e, t, n) {
|
|
|
10811
10810
|
text: "Loading"
|
|
10812
10811
|
}), e.annex ? M(C, $) : V(C, "path");
|
|
10813
10812
|
}
|
|
10814
|
-
let
|
|
10813
|
+
let p = Q(!1), w = Q(0);
|
|
10815
10814
|
function b(C) {
|
|
10816
|
-
C && (w.value = r.value.findIndex(($) => $.path === C.path)),
|
|
10815
|
+
C && (w.value = r.value.findIndex(($) => $.path === C.path)), p.value = !0;
|
|
10817
10816
|
}
|
|
10818
10817
|
function x() {
|
|
10819
|
-
|
|
10818
|
+
p.value = !1;
|
|
10820
10819
|
}
|
|
10821
10820
|
const y = X(() => r.value.map((C) => C.url));
|
|
10822
10821
|
function E() {
|
|
@@ -10921,7 +10920,7 @@ async function Rm(e, t, n) {
|
|
|
10921
10920
|
// 上传文件数量超出限制时的钩子
|
|
10922
10921
|
handleDownload: R,
|
|
10923
10922
|
// 下载文件
|
|
10924
|
-
showViewer:
|
|
10923
|
+
showViewer: p,
|
|
10925
10924
|
// 是否显示预览
|
|
10926
10925
|
onClose: x,
|
|
10927
10926
|
// 关闭预览
|
|
@@ -11077,7 +11076,7 @@ const qm = {
|
|
|
11077
11076
|
beforeUpload: f,
|
|
11078
11077
|
onSuccess: h,
|
|
11079
11078
|
onRemove: v,
|
|
11080
|
-
onPreview:
|
|
11079
|
+
onPreview: p,
|
|
11081
11080
|
onExceed: w,
|
|
11082
11081
|
handleDownload: b,
|
|
11083
11082
|
showViewer: x,
|
|
@@ -11146,7 +11145,7 @@ const qm = {
|
|
|
11146
11145
|
P("span", Nm, [
|
|
11147
11146
|
P("span", {
|
|
11148
11147
|
class: "el-upload-list__item-preview",
|
|
11149
|
-
onClick: (se) => m(
|
|
11148
|
+
onClick: (se) => m(p)(Y)
|
|
11150
11149
|
}, [
|
|
11151
11150
|
T($, { name: "ele-ZoomIn" })
|
|
11152
11151
|
], 8, Lm),
|
|
@@ -11233,50 +11232,50 @@ const qm = {
|
|
|
11233
11232
|
setup(e) {
|
|
11234
11233
|
var h, v;
|
|
11235
11234
|
const t = e, n = Q(At.get(`active:${t.id}`) || ((v = (h = t.components[0]) == null ? void 0 : h.component) == null ? void 0 : v.name)), a = Q(At.get(`query:${t.id}`) || {}), o = Ve(s()), l = X(() => {
|
|
11236
|
-
var
|
|
11237
|
-
return (
|
|
11235
|
+
var p;
|
|
11236
|
+
return (p = o.value.find((w) => {
|
|
11238
11237
|
var b;
|
|
11239
11238
|
return ((b = w.component) == null ? void 0 : b.name) === n.value;
|
|
11240
|
-
})) == null ? void 0 :
|
|
11239
|
+
})) == null ? void 0 : p.component;
|
|
11241
11240
|
});
|
|
11242
11241
|
function s() {
|
|
11243
|
-
const
|
|
11244
|
-
return t.components.filter((w) =>
|
|
11242
|
+
const p = (At.get(`breadcrumb:${t.id}`) || [t.components[0]]).map((w) => w.component.name);
|
|
11243
|
+
return t.components.filter((w) => p.includes(w.component.name));
|
|
11245
11244
|
}
|
|
11246
|
-
function r(
|
|
11245
|
+
function r(p) {
|
|
11247
11246
|
const w = t.components.find((x) => {
|
|
11248
11247
|
var y;
|
|
11249
|
-
return ((y = x.component) == null ? void 0 : y.name) ===
|
|
11248
|
+
return ((y = x.component) == null ? void 0 : y.name) === p.name;
|
|
11250
11249
|
}), b = o.value.find((x) => {
|
|
11251
11250
|
var y;
|
|
11252
|
-
return ((y = x.component) == null ? void 0 : y.name) ===
|
|
11251
|
+
return ((y = x.component) == null ? void 0 : y.name) === p.name;
|
|
11253
11252
|
});
|
|
11254
|
-
w && !b && o.value.push(w), n.value =
|
|
11253
|
+
w && !b && o.value.push(w), n.value = p.name, a.value[n.value] = p.query, At.set(`active:${t.id}`, n.value), At.set(`query:${t.id}`, a.value), At.set(`breadcrumb:${t.id}`, o.value);
|
|
11255
11254
|
}
|
|
11256
|
-
function i(
|
|
11255
|
+
function i(p, w) {
|
|
11257
11256
|
var b, x;
|
|
11258
|
-
|
|
11257
|
+
p.component && w !== o.value.length - 1 && (o.value = (b = o.value) == null ? void 0 : b.slice(0, w + 1), n.value = (x = o.value[o.value.length - 1].component) == null ? void 0 : x.name, At.set(`active:${t.id}`, n.value), At.set(`breadcrumb:${t.id}`, o.value));
|
|
11259
11258
|
}
|
|
11260
11259
|
function u() {
|
|
11261
11260
|
var w, b;
|
|
11262
|
-
const
|
|
11261
|
+
const p = o.value.findIndex((x) => {
|
|
11263
11262
|
var y;
|
|
11264
11263
|
return ((y = x.component) == null ? void 0 : y.name) === n.value;
|
|
11265
11264
|
});
|
|
11266
|
-
(w = o.value) == null || w.splice(
|
|
11265
|
+
(w = o.value) == null || w.splice(p, 1), n.value = (b = o.value[o.value.length - 1].component) == null ? void 0 : b.name, At.set(`active:${t.id}`, n.value), At.set(`breadcrumb:${t.id}`, o.value);
|
|
11267
11266
|
}
|
|
11268
|
-
function d(
|
|
11267
|
+
function d(p) {
|
|
11269
11268
|
o.value.find((w) => {
|
|
11270
11269
|
var b;
|
|
11271
11270
|
return ((b = w.component) == null ? void 0 : b.name) === n.value;
|
|
11272
|
-
}).name =
|
|
11271
|
+
}).name = p, Oi(o);
|
|
11273
11272
|
}
|
|
11274
11273
|
function c() {
|
|
11275
11274
|
At.remove(`active:${t.id}`), At.remove(`query:${t.id}`), At.remove(`breadcrumb:${t.id}`);
|
|
11276
11275
|
}
|
|
11277
|
-
function f(
|
|
11276
|
+
function f(p) {
|
|
11278
11277
|
var R, _;
|
|
11279
|
-
const w = `${On.value}:active:${t.id}`, b = `${On.value}:query:${t.id}`, x = `${On.value}:breadcrumb:${t.id}`, { key: y, value: E } =
|
|
11278
|
+
const w = `${On.value}:active:${t.id}`, b = `${On.value}:query:${t.id}`, x = `${On.value}:breadcrumb:${t.id}`, { key: y, value: E } = p.detail;
|
|
11280
11279
|
y === w && !E && (n.value = (_ = (R = t.components[0]) == null ? void 0 : R.component) == null ? void 0 : _.name), y === b && !E && (a.value = {}), y === x && !E && (o.value = s());
|
|
11281
11280
|
}
|
|
11282
11281
|
return vt(() => {
|
|
@@ -11288,7 +11287,7 @@ const qm = {
|
|
|
11288
11287
|
push: r,
|
|
11289
11288
|
back: u,
|
|
11290
11289
|
title: d
|
|
11291
|
-
}), (
|
|
11290
|
+
}), (p, w) => {
|
|
11292
11291
|
const b = U("bc-icon");
|
|
11293
11292
|
return I(), j("div", Pm, [
|
|
11294
11293
|
P("div", jm, [
|
|
@@ -11366,23 +11365,23 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11366
11365
|
const n = ma(Hm()), a = X(() => !n.btns.length && !n.form.length && !n.table.length), o = X(() => n.btns.some((f) => qe(f.isShow))), l = X(() => n.form.some((f) => qe(f.isShow))), s = X(() => n.table.some((f) => qe(f.isShow))), r = X(() => Co(n.btns)), i = X(() => Co(n.form)), u = X(() => Co(n.table));
|
|
11367
11366
|
function d(f, h) {
|
|
11368
11367
|
h.forEach((v) => {
|
|
11369
|
-
var
|
|
11370
|
-
(
|
|
11368
|
+
var p;
|
|
11369
|
+
(p = v.children) == null || p.forEach((w) => {
|
|
11371
11370
|
w.fieldShow = f;
|
|
11372
11371
|
});
|
|
11373
11372
|
});
|
|
11374
11373
|
}
|
|
11375
11374
|
function c(f, h) {
|
|
11376
11375
|
var v;
|
|
11377
|
-
(v = h.children) == null || v.forEach((
|
|
11378
|
-
|
|
11376
|
+
(v = h.children) == null || v.forEach((p) => {
|
|
11377
|
+
p.fieldShow = f;
|
|
11379
11378
|
});
|
|
11380
11379
|
}
|
|
11381
11380
|
return t({
|
|
11382
11381
|
getData() {
|
|
11383
11382
|
}
|
|
11384
11383
|
}), (f, h) => {
|
|
11385
|
-
const v = U("el-empty"),
|
|
11384
|
+
const v = U("el-empty"), p = U("el-checkbox"), w = U("el-scrollbar");
|
|
11386
11385
|
return I(), j("div", Ym, [
|
|
11387
11386
|
T(w, { class: "flex-1" }, {
|
|
11388
11387
|
default: N(() => [
|
|
@@ -11391,7 +11390,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11391
11390
|
description: "暂无数据"
|
|
11392
11391
|
})) : le("", !0),
|
|
11393
11392
|
n.btns.length ? (I(), j("div", Gm, [
|
|
11394
|
-
T(
|
|
11393
|
+
T(p, {
|
|
11395
11394
|
"model-value": qe(o.value),
|
|
11396
11395
|
indeterminate: qe(r.value),
|
|
11397
11396
|
onChange: h[0] || (h[0] = (b) => d(b, n.btns))
|
|
@@ -11402,7 +11401,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11402
11401
|
_: 1
|
|
11403
11402
|
}, 8, ["model-value", "indeterminate"]),
|
|
11404
11403
|
P("div", Xm, [
|
|
11405
|
-
(I(!0), j(Se, null, De(n.btns, (b) => (I(), K(
|
|
11404
|
+
(I(!0), j(Se, null, De(n.btns, (b) => (I(), K(p, {
|
|
11406
11405
|
key: b.fieldProp,
|
|
11407
11406
|
"model-value": qe(b.isShow),
|
|
11408
11407
|
indeterminate: qe(b.indeterminate),
|
|
@@ -11416,7 +11415,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11416
11415
|
])
|
|
11417
11416
|
])) : le("", !0),
|
|
11418
11417
|
n.form.length ? (I(), j("div", Qm, [
|
|
11419
|
-
T(
|
|
11418
|
+
T(p, {
|
|
11420
11419
|
"model-value": qe(l.value),
|
|
11421
11420
|
indeterminate: qe(i.value),
|
|
11422
11421
|
onChange: h[1] || (h[1] = (b) => d(b, n.form))
|
|
@@ -11427,7 +11426,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11427
11426
|
_: 1
|
|
11428
11427
|
}, 8, ["model-value", "indeterminate"]),
|
|
11429
11428
|
P("div", Jm, [
|
|
11430
|
-
(I(!0), j(Se, null, De(n.form, (b) => (I(), K(
|
|
11429
|
+
(I(!0), j(Se, null, De(n.form, (b) => (I(), K(p, {
|
|
11431
11430
|
key: b.fieldProp,
|
|
11432
11431
|
"model-value": qe(b.isShow),
|
|
11433
11432
|
indeterminate: qe(b.indeterminate),
|
|
@@ -11441,7 +11440,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11441
11440
|
])
|
|
11442
11441
|
])) : le("", !0),
|
|
11443
11442
|
n.table.length ? (I(), j("div", Zm, [
|
|
11444
|
-
T(
|
|
11443
|
+
T(p, {
|
|
11445
11444
|
"model-value": qe(s.value),
|
|
11446
11445
|
indeterminate: qe(u.value),
|
|
11447
11446
|
onChange: h[2] || (h[2] = (b) => d(b, n.table))
|
|
@@ -11452,7 +11451,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11452
11451
|
_: 1
|
|
11453
11452
|
}, 8, ["model-value", "indeterminate"]),
|
|
11454
11453
|
P("div", eh, [
|
|
11455
|
-
(I(!0), j(Se, null, De(n.table, (b) => (I(), K(
|
|
11454
|
+
(I(!0), j(Se, null, De(n.table, (b) => (I(), K(p, {
|
|
11456
11455
|
key: b.fieldProp,
|
|
11457
11456
|
"model-value": qe(b.isShow),
|
|
11458
11457
|
indeterminate: qe(b.indeterminate),
|
|
@@ -11808,7 +11807,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11808
11807
|
},
|
|
11809
11808
|
emits: ["update:modelValue"],
|
|
11810
11809
|
setup(e) {
|
|
11811
|
-
const t = Rt(e, "modelValue"), n = X(() =>
|
|
11810
|
+
const t = Rt(e, "modelValue"), n = X(() => g.get(
|
|
11812
11811
|
{
|
|
11813
11812
|
btnsWidget: ai,
|
|
11814
11813
|
formWidget: ni,
|
|
@@ -11817,7 +11816,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11817
11816
|
`${we.typeId}Widget`
|
|
11818
11817
|
));
|
|
11819
11818
|
function a(o) {
|
|
11820
|
-
we.tableId =
|
|
11819
|
+
we.tableId = g.get(t.value, `${qe(o.index)}.tables.0.id`);
|
|
11821
11820
|
}
|
|
11822
11821
|
return (o, l) => {
|
|
11823
11822
|
const s = U("el-empty"), r = U("el-button"), i = U("bc-tabs");
|
|
@@ -11895,7 +11894,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11895
11894
|
},
|
|
11896
11895
|
emits: ["update:modelValue"],
|
|
11897
11896
|
setup(e) {
|
|
11898
|
-
const t = Rt(e, "modelValue"), n = X(() =>
|
|
11897
|
+
const t = Rt(e, "modelValue"), n = X(() => g.get(
|
|
11899
11898
|
{
|
|
11900
11899
|
btnsWidget: ai,
|
|
11901
11900
|
formWidget: ni
|
|
@@ -11964,7 +11963,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
11964
11963
|
setup(e) {
|
|
11965
11964
|
function t() {
|
|
11966
11965
|
Me(() => {
|
|
11967
|
-
we.activeId =
|
|
11966
|
+
we.activeId = g.get(we[we.active], "0.config_unique_id"), we.typeId = "btns", we.tableId = g.get(we[we.active], "0.tables.0.id");
|
|
11968
11967
|
});
|
|
11969
11968
|
}
|
|
11970
11969
|
return (n, a) => {
|
|
@@ -12029,7 +12028,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
12029
12028
|
class: "flex-1 dict"
|
|
12030
12029
|
}, {
|
|
12031
12030
|
default: N(() => [
|
|
12032
|
-
m(
|
|
12031
|
+
m(g).isEmpty(m(we).dictAuth) ? (I(), K(s, {
|
|
12033
12032
|
key: 0,
|
|
12034
12033
|
description: "暂无数据"
|
|
12035
12034
|
})) : le("", !0),
|
|
@@ -12089,7 +12088,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
12089
12088
|
class: "flex-1 data"
|
|
12090
12089
|
}, {
|
|
12091
12090
|
default: N(() => [
|
|
12092
|
-
m(
|
|
12091
|
+
m(g).isEmpty(m(we).dataAuth) ? (I(), K(l, {
|
|
12093
12092
|
key: 0,
|
|
12094
12093
|
description: "暂无数据"
|
|
12095
12094
|
})) : le("", !0),
|
|
@@ -12156,7 +12155,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
12156
12155
|
onPermissionSync: f,
|
|
12157
12156
|
onFastSet: h,
|
|
12158
12157
|
isShowAsync: v,
|
|
12159
|
-
get_async_role_id:
|
|
12158
|
+
get_async_role_id: p,
|
|
12160
12159
|
async_role_id: w,
|
|
12161
12160
|
onSaveAsync: b,
|
|
12162
12161
|
role_name_list: x,
|
|
@@ -12365,7 +12364,7 @@ const Ym = { class: "h-full flex flex-col" }, Gm = {
|
|
|
12365
12364
|
"onUpdate:modelValue": _[5] || (_[5] = (L) => Va(w) ? w.value = L : null),
|
|
12366
12365
|
placeholder: "请选择",
|
|
12367
12366
|
filterable: "",
|
|
12368
|
-
onChange: m(
|
|
12367
|
+
onChange: m(p)
|
|
12369
12368
|
}, {
|
|
12370
12369
|
default: N(() => [
|
|
12371
12370
|
(I(!0), j(Se, null, De(m(x), (L) => (I(), K(S, {
|
|
@@ -12492,10 +12491,10 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
12492
12491
|
function r(u, d, c) {
|
|
12493
12492
|
d.forEach((f) => {
|
|
12494
12493
|
var h, v;
|
|
12495
|
-
c === "fieldRequired" ? f.forceRequired || (h = f.children) == null || h.forEach((
|
|
12496
|
-
|
|
12497
|
-
}) : (v = f.children) == null || v.forEach((
|
|
12498
|
-
|
|
12494
|
+
c === "fieldRequired" ? f.forceRequired || (h = f.children) == null || h.forEach((p) => {
|
|
12495
|
+
p[c] = u;
|
|
12496
|
+
}) : (v = f.children) == null || v.forEach((p) => {
|
|
12497
|
+
p[c] = u;
|
|
12499
12498
|
});
|
|
12500
12499
|
});
|
|
12501
12500
|
}
|
|
@@ -12806,7 +12805,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
12806
12805
|
tablesWidget: Zh
|
|
12807
12806
|
};
|
|
12808
12807
|
function a(o) {
|
|
12809
|
-
We.tableId =
|
|
12808
|
+
We.tableId = g.get(t.value, `${qe(o.index)}.tables.0.id`);
|
|
12810
12809
|
}
|
|
12811
12810
|
return (o, l) => {
|
|
12812
12811
|
const s = U("hs-empty"), r = U("hs-button"), i = U("bc-tabs");
|
|
@@ -12925,7 +12924,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
12925
12924
|
setup(e) {
|
|
12926
12925
|
function t(n) {
|
|
12927
12926
|
Me(() => {
|
|
12928
|
-
We.activeId =
|
|
12927
|
+
We.activeId = g.get(We, `${qe(n.paneName)}.0.config_unique_id`), We.tableId = g.get(We, `${qe(n.paneName)}.0.tables.0.id`);
|
|
12929
12928
|
});
|
|
12930
12929
|
}
|
|
12931
12930
|
return (n, a) => {
|
|
@@ -12976,7 +12975,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
12976
12975
|
setup(e) {
|
|
12977
12976
|
const t = e, { isShowPopup: n, loading: a, treeRef: o, submit: l, nodeClick: s, saveData: r, setSelelctAll: i } = $r(t);
|
|
12978
12977
|
return (u, d) => {
|
|
12979
|
-
const c = U("el-button"), f = U("el-form"), h = U("bc-icon"), v = U("el-tree"),
|
|
12978
|
+
const c = U("el-button"), f = U("el-form"), h = U("bc-icon"), v = U("el-tree"), p = U("el-scrollbar"), w = U("vxe-modal"), b = Ja("loading");
|
|
12980
12979
|
return I(), j("div", null, [
|
|
12981
12980
|
P("div", cg, [
|
|
12982
12981
|
T(f, {
|
|
@@ -13008,7 +13007,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
13008
13007
|
_: 1
|
|
13009
13008
|
}),
|
|
13010
13009
|
P("main", fg, [
|
|
13011
|
-
T(
|
|
13010
|
+
T(p, {
|
|
13012
13011
|
style: { width: "200px" },
|
|
13013
13012
|
class: "border-right-1 h-full"
|
|
13014
13013
|
}, {
|
|
@@ -13106,7 +13105,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
13106
13105
|
return (x = s.value[0]) == null ? void 0 : x.deviceId;
|
|
13107
13106
|
}), i = Q(), u = Q(), d = Q(!1);
|
|
13108
13107
|
let c = 0, f = 0;
|
|
13109
|
-
const { stream: h, start: v, stop:
|
|
13108
|
+
const { stream: h, start: v, stop: p } = qr({
|
|
13110
13109
|
constraints: {
|
|
13111
13110
|
video: {
|
|
13112
13111
|
deviceId: r.value,
|
|
@@ -13127,8 +13126,8 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
13127
13126
|
headers: {
|
|
13128
13127
|
"Content-Type": "multipart/form-data"
|
|
13129
13128
|
},
|
|
13130
|
-
data:
|
|
13131
|
-
}).then((D) =>
|
|
13129
|
+
data: g.assign({ file: _, user_id: o.userId || (V == null ? void 0 : V.id) }, x)
|
|
13130
|
+
}).then((D) => g.assign({}, D, { file: _, dataURL: E })).finally(() => {
|
|
13132
13131
|
d.value = !1;
|
|
13133
13132
|
});
|
|
13134
13133
|
} else
|
|
@@ -13146,7 +13145,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
13146
13145
|
return vt(() => {
|
|
13147
13146
|
v();
|
|
13148
13147
|
}), Da(() => {
|
|
13149
|
-
|
|
13148
|
+
p(), clearTimeout(f);
|
|
13150
13149
|
}), t({
|
|
13151
13150
|
request: w
|
|
13152
13151
|
}), (x, y) => (I(), j("div", {
|
|
@@ -13185,14 +13184,14 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
13185
13184
|
}
|
|
13186
13185
|
},
|
|
13187
13186
|
setup(e) {
|
|
13188
|
-
const t = e, n = Ve(), a = Ve(), o = Ve(), l = Q(t.size), { width: s, height: r } = ra(o), i = X(() => l.value ?? (t.direction === "horizontal" ? s.value : r.value) / 2), u = X(() => (t.direction === "horizontal" ? s.value : r.value) - i.value), { pressed: d } = Vr({ target: a, touch: !1 }), { elementX: c, elementY: f } = Qo(o), h = at(c, (
|
|
13189
|
-
!d.value || t.direction === "vertical" || (l.value =
|
|
13190
|
-
}), v = at(f, (
|
|
13191
|
-
!d.value || t.direction === "horizontal" || (l.value =
|
|
13187
|
+
const t = e, n = Ve(), a = Ve(), o = Ve(), l = Q(t.size), { width: s, height: r } = ra(o), i = X(() => l.value ?? (t.direction === "horizontal" ? s.value : r.value) / 2), u = X(() => (t.direction === "horizontal" ? s.value : r.value) - i.value), { pressed: d } = Vr({ target: a, touch: !1 }), { elementX: c, elementY: f } = Qo(o), h = at(c, (p) => {
|
|
13188
|
+
!d.value || t.direction === "vertical" || (l.value = p);
|
|
13189
|
+
}), v = at(f, (p) => {
|
|
13190
|
+
!d.value || t.direction === "horizontal" || (l.value = p);
|
|
13192
13191
|
});
|
|
13193
13192
|
return Bt(() => {
|
|
13194
13193
|
h(), v();
|
|
13195
|
-
}), (
|
|
13194
|
+
}), (p, w) => (I(), j("div", {
|
|
13196
13195
|
ref_key: "containerRef",
|
|
13197
13196
|
ref: o,
|
|
13198
13197
|
class: "divider__container",
|
|
@@ -13204,7 +13203,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
13204
13203
|
class: "section1",
|
|
13205
13204
|
style: nt({ flexBasis: `${i.value}px` })
|
|
13206
13205
|
}, [
|
|
13207
|
-
_e(
|
|
13206
|
+
_e(p.$slots, "aside", { size: i.value }, void 0, !0)
|
|
13208
13207
|
], 4),
|
|
13209
13208
|
P("div", {
|
|
13210
13209
|
ref_key: "dividerRef",
|
|
@@ -13212,7 +13211,7 @@ const Fh = { class: "h-full flex flex-col" }, Ph = {
|
|
|
13212
13211
|
class: Ge(["divider", e.direction])
|
|
13213
13212
|
}, null, 2),
|
|
13214
13213
|
P("div", Sg, [
|
|
13215
|
-
_e(
|
|
13214
|
+
_e(p.$slots, "default", { size: u.value }, void 0, !0)
|
|
13216
13215
|
])
|
|
13217
13216
|
], 4));
|
|
13218
13217
|
}
|
|
@@ -13349,8 +13348,8 @@ var Tg = /Android|iPhone|iPad|Mobile/i.test(navigator.userAgent), ns = /* @__PUR
|
|
|
13349
13348
|
if (c.distance = Math.sqrt(Math.pow(c.x - s.x, 2) + Math.pow(c.y - s.y, 2)), c.speed = c.distance / (c.t - s.t || 0.1), c.lineWidth = a.getLineWidth(c.speed), f && f.lineWidth && s.lineWidth) {
|
|
13350
13349
|
var h = (c.lineWidth - s.lineWidth) / s.lineWidth, v = a.maxWidthDiffRate / 100;
|
|
13351
13350
|
if (v = v > 1 ? 1 : v < 0.01 ? 0.01 : v, Math.abs(h) > v) {
|
|
13352
|
-
var
|
|
13353
|
-
c.lineWidth = s.lineWidth * (1 +
|
|
13351
|
+
var p = h > 0 ? v : -v;
|
|
13352
|
+
c.lineWidth = s.lineWidth * (1 + p);
|
|
13354
13353
|
}
|
|
13355
13354
|
}
|
|
13356
13355
|
}
|
|
@@ -13464,7 +13463,7 @@ const Rg = { class: "wrap1" }, qg = { class: "wrap2" }, Vg = /* @__PURE__ */ fe(
|
|
|
13464
13463
|
bgColor: "#ffffff"
|
|
13465
13464
|
};
|
|
13466
13465
|
d.value = new ns(R, _);
|
|
13467
|
-
},
|
|
13466
|
+
}, p = () => {
|
|
13468
13467
|
u.value.clear();
|
|
13469
13468
|
}, w = () => {
|
|
13470
13469
|
d.value.clear();
|
|
@@ -13508,7 +13507,7 @@ const Rg = { class: "wrap1" }, qg = { class: "wrap2" }, Vg = /* @__PURE__ */ fe(
|
|
|
13508
13507
|
P("div", { class: "actions" }, [
|
|
13509
13508
|
P("button", {
|
|
13510
13509
|
class: "danger",
|
|
13511
|
-
onClick:
|
|
13510
|
+
onClick: p
|
|
13512
13511
|
}, "清除"),
|
|
13513
13512
|
P("button", {
|
|
13514
13513
|
class: "warning",
|
|
@@ -13655,33 +13654,33 @@ const zg = { class: "extend-content__text" }, Wg = { key: 0 }, Hg = ["onClick"],
|
|
|
13655
13654
|
}
|
|
13656
13655
|
function s(u) {
|
|
13657
13656
|
const d = {
|
|
13658
|
-
[ut.COLLECT]: () =>
|
|
13659
|
-
|
|
13657
|
+
[ut.COLLECT]: () => g.set(
|
|
13658
|
+
g.find(o.indicator, {
|
|
13660
13659
|
field_key: t.data.data.field_key
|
|
13661
13660
|
}),
|
|
13662
13661
|
"field_way",
|
|
13663
13662
|
u.value
|
|
13664
13663
|
),
|
|
13665
|
-
[ut.CALC]: () =>
|
|
13666
|
-
|
|
13664
|
+
[ut.CALC]: () => g.set(
|
|
13665
|
+
g.find(o.indicator, {
|
|
13667
13666
|
field_key: t.data.data.field_key
|
|
13668
13667
|
}),
|
|
13669
13668
|
"field_proportion",
|
|
13670
13669
|
u.value
|
|
13671
13670
|
),
|
|
13672
13671
|
[ut.SORT]: () => {
|
|
13673
|
-
|
|
13674
|
-
|
|
13672
|
+
g.set(g.find(o.columns, { field_key: t.data.data.field_key }), "report_field_sort", u.value), g.set(
|
|
13673
|
+
g.find(o.indicator, {
|
|
13675
13674
|
field_key: t.data.data.field_key
|
|
13676
13675
|
}),
|
|
13677
13676
|
"report_field_sort",
|
|
13678
13677
|
u.value
|
|
13679
13678
|
);
|
|
13680
13679
|
},
|
|
13681
|
-
[ut.STATISTICS]: () =>
|
|
13680
|
+
[ut.STATISTICS]: () => g.set(g.find(o.columns, { field_key: t.data.data.field_key }), "report_field_group", u.value),
|
|
13682
13681
|
[ut.SUM]: () => {
|
|
13683
|
-
|
|
13684
|
-
|
|
13682
|
+
g.set(g.find(o.columns, { field_key: t.data.data.field_key }), "report_field_sum", u.value), g.set(
|
|
13683
|
+
g.find(o.indicator, {
|
|
13685
13684
|
field_key: t.data.data.field_key
|
|
13686
13685
|
}),
|
|
13687
13686
|
"report_field_sum",
|
|
@@ -13689,8 +13688,8 @@ const zg = { class: "extend-content__text" }, Wg = { key: 0 }, Hg = ["onClick"],
|
|
|
13689
13688
|
);
|
|
13690
13689
|
},
|
|
13691
13690
|
[ut.SHOW]: () => {
|
|
13692
|
-
|
|
13693
|
-
|
|
13691
|
+
g.set(g.find(o.columns, { field_key: t.data.data.field_key }), "report_field_show", u.value), g.set(
|
|
13692
|
+
g.find(o.indicator, {
|
|
13694
13693
|
field_key: t.data.data.field_key
|
|
13695
13694
|
}),
|
|
13696
13695
|
"report_field_show",
|
|
@@ -13698,7 +13697,7 @@ const zg = { class: "extend-content__text" }, Wg = { key: 0 }, Hg = ["onClick"],
|
|
|
13698
13697
|
);
|
|
13699
13698
|
}
|
|
13700
13699
|
};
|
|
13701
|
-
|
|
13700
|
+
g.get(d, t.data.value) && (g.get(d, t.data.value)(), Me(() => {
|
|
13702
13701
|
var c, f;
|
|
13703
13702
|
n.value = ((f = (c = document.querySelector(".context-box")) == null ? void 0 : c.getBoundingClientRect()) == null ? void 0 : f.right) || t.size.right;
|
|
13704
13703
|
}));
|
|
@@ -13723,19 +13722,19 @@ const zg = { class: "extend-content__text" }, Wg = { key: 0 }, Hg = ["onClick"],
|
|
|
13723
13722
|
var u, d, c, f, h, v;
|
|
13724
13723
|
switch (t.data.value) {
|
|
13725
13724
|
case ut.COLLECT:
|
|
13726
|
-
return ((u =
|
|
13725
|
+
return ((u = g.find(Fr, { value: t.data.data.field_way })) == null ? void 0 : u.label) || "";
|
|
13727
13726
|
case ut.CALC:
|
|
13728
|
-
return ((d =
|
|
13727
|
+
return ((d = g.find(Ar, { value: t.data.data.field_proportion })) == null ? void 0 : d.label) || "";
|
|
13729
13728
|
case ut.SORT:
|
|
13730
|
-
return ((c =
|
|
13729
|
+
return ((c = g.find(Mr, { value: t.data.data.report_field_sort })) == null ? void 0 : c.label) || "";
|
|
13731
13730
|
case ut.POINT:
|
|
13732
13731
|
return t.data.data.report_field_point || "";
|
|
13733
13732
|
case ut.SUM:
|
|
13734
|
-
return ((f =
|
|
13733
|
+
return ((f = g.find(Lr, { value: t.data.data.report_field_sum })) == null ? void 0 : f.label) || "";
|
|
13735
13734
|
case ut.SHOW:
|
|
13736
|
-
return ((h =
|
|
13735
|
+
return ((h = g.find(Nr, { value: t.data.data.report_field_show })) == null ? void 0 : h.label) || "";
|
|
13737
13736
|
case ut.STATISTICS:
|
|
13738
|
-
return ((v =
|
|
13737
|
+
return ((v = g.find(Or, { value: t.data.data.report_field_group })) == null ? void 0 : v.label) || "";
|
|
13739
13738
|
default:
|
|
13740
13739
|
return "";
|
|
13741
13740
|
}
|
|
@@ -13812,27 +13811,27 @@ const zg = { class: "extend-content__text" }, Wg = { key: 0 }, Hg = ["onClick"],
|
|
|
13812
13811
|
}
|
|
13813
13812
|
});
|
|
13814
13813
|
function o(r) {
|
|
13815
|
-
const i = n.value.findIndex((u) =>
|
|
13814
|
+
const i = n.value.findIndex((u) => g.get(u, t.field) === r);
|
|
13816
13815
|
n.value.splice(i, 1);
|
|
13817
13816
|
}
|
|
13818
13817
|
function l(r, i) {
|
|
13819
13818
|
var u;
|
|
13820
13819
|
r.value === ut.EDIT_NAME && Ug({
|
|
13821
|
-
name:
|
|
13822
|
-
field:
|
|
13823
|
-
show_name:
|
|
13820
|
+
name: g.get(r, `data.${t.title}`),
|
|
13821
|
+
field: g.get(r, `data.${t.field}`),
|
|
13822
|
+
show_name: g.get(r, "data.show_name", "")
|
|
13824
13823
|
}).then((d) => {
|
|
13825
|
-
d !== "cancel" && (
|
|
13824
|
+
d !== "cancel" && (g.set(g.find(n.value, { field_key: r.data.field_key }), "show_name", d), i());
|
|
13826
13825
|
}), r.value === ut.POINT && Jo.prompt("请填写小数位数", "提示", {
|
|
13827
13826
|
confirmButtonText: "确定",
|
|
13828
13827
|
cancelButtonText: "取消",
|
|
13829
13828
|
inputPattern: /^\d+$/,
|
|
13830
13829
|
inputErrorMessage: "请输入数字",
|
|
13831
13830
|
draggable: !0,
|
|
13832
|
-
inputValue: (u =
|
|
13831
|
+
inputValue: (u = g.find(n.value, { field_key: r.data.field_key })) == null ? void 0 : u.report_field_point,
|
|
13833
13832
|
customClass: "context-wrap__content"
|
|
13834
13833
|
}).then(({ value: d }) => {
|
|
13835
|
-
|
|
13834
|
+
g.set(g.find(n.value, { field_key: r.data.field_key }), "report_field_point", d);
|
|
13836
13835
|
});
|
|
13837
13836
|
}
|
|
13838
13837
|
function s(r) {
|
|
@@ -13841,7 +13840,7 @@ const zg = { class: "extend-content__text" }, Wg = { key: 0 }, Hg = ["onClick"],
|
|
|
13841
13840
|
querys: jr,
|
|
13842
13841
|
indicator: Pr
|
|
13843
13842
|
};
|
|
13844
|
-
return t.type === "columns" && r.query_type !== xt.NUMBER ?
|
|
13843
|
+
return t.type === "columns" && r.query_type !== xt.NUMBER ? g.get(i, t.type, []).filter((u) => u.value !== ut.POINT).map((u) => Object.assign(u, { data: r })) : g.get(i, t.type, []).map((u) => Object.assign(u, { data: r }));
|
|
13845
13844
|
}
|
|
13846
13845
|
return (r, i) => {
|
|
13847
13846
|
const u = U("el-empty"), d = U("bc-icon"), c = U("bc-context-box");
|
|
@@ -13869,23 +13868,23 @@ const zg = { class: "extend-content__text" }, Wg = { key: 0 }, Hg = ["onClick"],
|
|
|
13869
13868
|
default: N(() => [
|
|
13870
13869
|
(I(!0), j(Se, null, De(a.value, (f) => (I(), K(c, {
|
|
13871
13870
|
getMenu: () => s(f),
|
|
13872
|
-
key: m(
|
|
13871
|
+
key: m(g).get(f, t.field),
|
|
13873
13872
|
trigger: "click",
|
|
13874
13873
|
class: "field-column-item"
|
|
13875
13874
|
}, {
|
|
13876
|
-
content: N(({ data: h, size: v, close:
|
|
13875
|
+
content: N(({ data: h, size: v, close: p }) => [
|
|
13877
13876
|
T(Yg, {
|
|
13878
13877
|
data: h,
|
|
13879
13878
|
size: v,
|
|
13880
|
-
onClick: (w) => l(h,
|
|
13879
|
+
onClick: (w) => l(h, p)
|
|
13881
13880
|
}, null, 8, ["data", "size", "onClick"])
|
|
13882
13881
|
]),
|
|
13883
13882
|
default: N(() => [
|
|
13884
13883
|
P("span", Jg, Ne(m(gs)(f.query_type)), 1),
|
|
13885
|
-
P("span", null, Ne(m(
|
|
13884
|
+
P("span", null, Ne(m(g).get(f, "show_name") || m(g).get(f, t.title)), 1),
|
|
13886
13885
|
P("div", {
|
|
13887
13886
|
class: "icon-delete",
|
|
13888
|
-
onClick: ta((h) => o(m(
|
|
13887
|
+
onClick: ta((h) => o(m(g).get(f, t.field)), ["stop"])
|
|
13889
13888
|
}, [
|
|
13890
13889
|
T(d, { name: "ele-Delete" })
|
|
13891
13890
|
], 8, Zg)
|
|
@@ -13928,16 +13927,16 @@ function tp() {
|
|
|
13928
13927
|
const i = r.target.closest(".column-cell");
|
|
13929
13928
|
if (!i) return;
|
|
13930
13929
|
i.classList.remove("drag-enter");
|
|
13931
|
-
const u = i.getAttribute("data-column"), d =
|
|
13932
|
-
if (
|
|
13930
|
+
const u = i.getAttribute("data-column"), d = g.cloneDeep(g.find(e.sourceFields, { field_key: t.value }));
|
|
13931
|
+
if (g.find(g.get(e, u), { id: d.id }))
|
|
13933
13932
|
return Mt.warning("该字段已存在");
|
|
13934
|
-
if (u === "columns" &&
|
|
13933
|
+
if (u === "columns" && g.find(g.get(e, "indicator"), { id: d.id }))
|
|
13935
13934
|
return Mt.warning("列字段/指标已存在该字段");
|
|
13936
|
-
if (u === "indicator" &&
|
|
13935
|
+
if (u === "indicator" && g.find(g.get(e, "columns"), { id: d.id }))
|
|
13937
13936
|
return Mt.warning("列字段/维度已存在该字段");
|
|
13938
13937
|
if (u === "indicator" && d.query_type !== xt.NUMBER)
|
|
13939
13938
|
return Mt.warning("只有数值型字段允许拖入指标列中!");
|
|
13940
|
-
u === "columns" && (d.field_data_type = Yt.WEI_DU, d.report_field_sort = xl.NONE, d.report_field_show = on.SHOW, d.report_field_group = Ur.NONE, d.query_type === xt.NUMBER && (d.report_field_point = 2), d.report_field_sum = Ao.NONE), u === "indicator" && (d.field_way = zr.NONE, d.field_data_type = Yt.ZHI_BIAO, d.field_proportion = Wr.NONE, d.report_field_sort = xl.NONE, d.report_field_point = 2, d.report_field_sum = Ao.NONE, d.report_field_show = on.SHOW), u === "drills" && (d.field_data_type = Yt.Z_WEI_DU, d.report_field_show = on.SHOW), u === "querys" && (d.field_data_type = Yt.SHAI_XUAN, d.report_field_show = on.SHOW), (c =
|
|
13939
|
+
u === "columns" && (d.field_data_type = Yt.WEI_DU, d.report_field_sort = xl.NONE, d.report_field_show = on.SHOW, d.report_field_group = Ur.NONE, d.query_type === xt.NUMBER && (d.report_field_point = 2), d.report_field_sum = Ao.NONE), u === "indicator" && (d.field_way = zr.NONE, d.field_data_type = Yt.ZHI_BIAO, d.field_proportion = Wr.NONE, d.report_field_sort = xl.NONE, d.report_field_point = 2, d.report_field_sum = Ao.NONE, d.report_field_show = on.SHOW), u === "drills" && (d.field_data_type = Yt.Z_WEI_DU, d.report_field_show = on.SHOW), u === "querys" && (d.field_data_type = Yt.SHAI_XUAN, d.report_field_show = on.SHOW), (c = g.get(e, u)) == null || c.push(d), (f = g.get(e, u)) == null || f.forEach((h, v) => {
|
|
13941
13940
|
h.data_sort = v;
|
|
13942
13941
|
}), t.value = "";
|
|
13943
13942
|
}
|
|
@@ -14032,7 +14031,7 @@ const ap = { class: "node-tree" }, np = { class: "node" }, op = {
|
|
|
14032
14031
|
_: 1
|
|
14033
14032
|
})) : le("", !0)
|
|
14034
14033
|
])) : le("", !0),
|
|
14035
|
-
m(
|
|
14034
|
+
m(g).isEmpty(d.children) ? le("", !0) : (I(), K(li, {
|
|
14036
14035
|
key: 2,
|
|
14037
14036
|
class: "node-tree-children",
|
|
14038
14037
|
modelValue: d.children,
|
|
@@ -14069,14 +14068,14 @@ const ap = { class: "node-tree" }, np = { class: "node" }, op = {
|
|
|
14069
14068
|
function s(u) {
|
|
14070
14069
|
const d = [];
|
|
14071
14070
|
function c(f, h = []) {
|
|
14072
|
-
return f.reduce((v,
|
|
14071
|
+
return f.reduce((v, p) => (v.push(p), p != null && p.children && p.children.length && v.push(...c(p.children)), v), h);
|
|
14073
14072
|
}
|
|
14074
14073
|
return c(u, d), d;
|
|
14075
14074
|
}
|
|
14076
14075
|
function r(u) {
|
|
14077
|
-
const c = s(o.value).find((
|
|
14076
|
+
const c = s(o.value).find((p) => p.nodeId == u.nodeId);
|
|
14078
14077
|
if (!c) return;
|
|
14079
|
-
const f = c.children.length, h = pt(), v =
|
|
14078
|
+
const f = c.children.length, h = pt(), v = g.cloneDeep(c.children);
|
|
14080
14079
|
v.splice(f - 1, 0, {
|
|
14081
14080
|
nodeName: "",
|
|
14082
14081
|
pId: c.nodeId,
|
|
@@ -14094,7 +14093,7 @@ const ap = { class: "node-tree" }, np = { class: "node" }, op = {
|
|
|
14094
14093
|
children: []
|
|
14095
14094
|
}
|
|
14096
14095
|
]
|
|
14097
|
-
}), v.length > 1 &&
|
|
14096
|
+
}), v.length > 1 && g.get(v, "0.children.0.btnType") && g.set(v, "0.children.0.btnType", ["addCondition"]), c.children = v;
|
|
14098
14097
|
}
|
|
14099
14098
|
function i(u) {
|
|
14100
14099
|
const c = s(o.value).find((f) => f.nodeId == u.pId);
|
|
@@ -14311,7 +14310,7 @@ const Cp = { class: "source-wraper__left" }, xp = ["data-field"], Ip = { class:
|
|
|
14311
14310
|
});
|
|
14312
14311
|
}
|
|
14313
14312
|
return (c, f) => {
|
|
14314
|
-
const h = U("el-option"), v = U("el-select"),
|
|
14313
|
+
const h = U("el-option"), v = U("el-select"), p = U("el-empty"), w = U("el-scrollbar"), b = U("el-segmented"), x = U("bc-button");
|
|
14315
14314
|
return I(), j("div", {
|
|
14316
14315
|
class: "source-wraper",
|
|
14317
14316
|
onDragstart: f[6] || (f[6] = //@ts-ignore
|
|
@@ -14345,7 +14344,7 @@ const Cp = { class: "source-wraper__left" }, xp = ["data-field"], Ip = { class:
|
|
|
14345
14344
|
}, 8, ["modelValue", "onChange"]),
|
|
14346
14345
|
T(w, { class: "flex-1" }, {
|
|
14347
14346
|
default: N(() => [
|
|
14348
|
-
m(a).sourceFields.length ? le("", !0) : (I(), K(
|
|
14347
|
+
m(a).sourceFields.length ? le("", !0) : (I(), K(p, { key: 0 })),
|
|
14349
14348
|
(I(!0), j(Se, null, De(m(a).sourceFields, (y) => (I(), j("div", {
|
|
14350
14349
|
key: y.field_key,
|
|
14351
14350
|
"data-field": y.field_key,
|
|
@@ -14538,8 +14537,8 @@ function Lp({ field_key: e, field_name: t, width: n, minWidth: a, query_type: o,
|
|
|
14538
14537
|
id: pt(),
|
|
14539
14538
|
data: {
|
|
14540
14539
|
field: e,
|
|
14541
|
-
title:
|
|
14542
|
-
width:
|
|
14540
|
+
title: g.get(r, `${e}.title`, t),
|
|
14541
|
+
width: g.get(r, `${e}.width`, n),
|
|
14543
14542
|
minWidth: a || t.length * 14 + 40,
|
|
14544
14543
|
isSlot: !1,
|
|
14545
14544
|
isApply: !0,
|
|
@@ -14549,13 +14548,13 @@ function Lp({ field_key: e, field_name: t, width: n, minWidth: a, query_type: o,
|
|
|
14549
14548
|
visible: !0,
|
|
14550
14549
|
sortable: !0,
|
|
14551
14550
|
fieldShow: !0,
|
|
14552
|
-
userFieldShow:
|
|
14551
|
+
userFieldShow: g.get(r, `${e}.userFieldShow`) ?? !0,
|
|
14553
14552
|
fieldExport: !0,
|
|
14554
14553
|
formatAmount: o === xt.NUMBER,
|
|
14555
14554
|
formatter: "functionBody=function({row,column}){return row[`${column.field}_name`] || row[column.field]}"
|
|
14556
14555
|
},
|
|
14557
14556
|
btnData: [],
|
|
14558
|
-
sort:
|
|
14557
|
+
sort: g.get(r, `${e}.sort`, 0),
|
|
14559
14558
|
children: []
|
|
14560
14559
|
};
|
|
14561
14560
|
}
|
|
@@ -14604,7 +14603,7 @@ function si(e, t, n) {
|
|
|
14604
14603
|
showIcon: !0
|
|
14605
14604
|
}
|
|
14606
14605
|
},
|
|
14607
|
-
tableConfig: [...Np(), ...t.map((o) => Lp(o,
|
|
14606
|
+
tableConfig: [...Np(), ...t.map((o) => Lp(o, g.get(n, `canche.table_${e}`)))],
|
|
14608
14607
|
tableData: [],
|
|
14609
14608
|
isStatic: !1
|
|
14610
14609
|
};
|
|
@@ -14809,7 +14808,7 @@ function ii(e, t) {
|
|
|
14809
14808
|
[xt.SELECT_R]: os,
|
|
14810
14809
|
[xt.SELECT_M]: os,
|
|
14811
14810
|
[xt.SELECT_T]: Ap
|
|
14812
|
-
}, a = e.map((r) => r.query_type === xt.DATE ? [Io(r, t, "begin"), Io(r, t, "end")] : r.query_type === xt.NUMBER ? [xo(r, t, "begin"), xo(r, t, "end")] :
|
|
14811
|
+
}, a = e.map((r) => r.query_type === xt.DATE ? [Io(r, t, "begin"), Io(r, t, "end")] : r.query_type === xt.NUMBER ? [xo(r, t, "begin"), xo(r, t, "end")] : g.get(n, r.query_type)(r, t)).flat(1);
|
|
14813
14812
|
let o = {}, l = {};
|
|
14814
14813
|
const s = a.reduce(
|
|
14815
14814
|
(r, i) => {
|
|
@@ -14867,8 +14866,8 @@ async function Fp({ querys: e, columns: t, options: n }) {
|
|
|
14867
14866
|
btnIcon: "ele-Download"
|
|
14868
14867
|
})
|
|
14869
14868
|
], i = await gt({ mid: l, id: s }).then((c) => {
|
|
14870
|
-
var v,
|
|
14871
|
-
const f = ((w = (
|
|
14869
|
+
var v, p, w, b, x;
|
|
14870
|
+
const f = ((w = (p = (v = c == null ? void 0 : c.table) == null ? void 0 : v.form) == null ? void 0 : p.formConfig) == null ? void 0 : w.reduce((y, E) => (y[E.data.baseData.prop] = {
|
|
14872
14871
|
label: E.data.baseData.label,
|
|
14873
14872
|
userFieldShow: E.data.baseData.userFieldShow,
|
|
14874
14873
|
sort: E.sort
|
|
@@ -14903,7 +14902,7 @@ async function Fp({ querys: e, columns: t, options: n }) {
|
|
|
14903
14902
|
project_code: o,
|
|
14904
14903
|
config_unique_id: s,
|
|
14905
14904
|
config_type: "1",
|
|
14906
|
-
config_name:
|
|
14905
|
+
config_name: g.get(t, "0.report_name", "报表统计"),
|
|
14907
14906
|
is_auth: "1",
|
|
14908
14907
|
config_version: 1
|
|
14909
14908
|
};
|
|
@@ -14914,7 +14913,7 @@ async function Fp({ querys: e, columns: t, options: n }) {
|
|
|
14914
14913
|
projectCode: o
|
|
14915
14914
|
},
|
|
14916
14915
|
u
|
|
14917
|
-
).then((c) => (bt({ mid: l, id: s },
|
|
14916
|
+
).then((c) => (bt({ mid: l, id: s }, g.cloneDeep({ table: u })), c));
|
|
14918
14917
|
}
|
|
14919
14918
|
async function Pp({ querys: e, columns: t, options: n }) {
|
|
14920
14919
|
var c;
|
|
@@ -14950,7 +14949,7 @@ async function Pp({ querys: e, columns: t, options: n }) {
|
|
|
14950
14949
|
project_code: o,
|
|
14951
14950
|
config_unique_id: s,
|
|
14952
14951
|
config_type: "1",
|
|
14953
|
-
config_name:
|
|
14952
|
+
config_name: g.get(t, "0.report_name", "报表统计"),
|
|
14954
14953
|
is_auth: "1",
|
|
14955
14954
|
config_version: 1
|
|
14956
14955
|
};
|
|
@@ -15004,8 +15003,8 @@ const jp = {
|
|
|
15004
15003
|
});
|
|
15005
15004
|
const s = at(
|
|
15006
15005
|
() => t.reportId,
|
|
15007
|
-
(
|
|
15008
|
-
t.preview && (
|
|
15006
|
+
(p) => {
|
|
15007
|
+
t.preview && (p ? (l.isEmpty = !1, u(p)) : (l.isEmpty = !0, o.value = void 0));
|
|
15009
15008
|
}
|
|
15010
15009
|
);
|
|
15011
15010
|
Bt(() => {
|
|
@@ -15013,7 +15012,7 @@ const jp = {
|
|
|
15013
15012
|
});
|
|
15014
15013
|
async function r() {
|
|
15015
15014
|
var M, V, D, k, C;
|
|
15016
|
-
const { querys:
|
|
15015
|
+
const { querys: p, columns: w, indicator: b, drills: x, sql: y } = l, E = await Ot.get("userInfo"), R = t.project_code || E.project_code, _ = t.reportId, S = [...p, ...w, ...b, ...x].map(($) => ({
|
|
15017
15016
|
report_set_id: _,
|
|
15018
15017
|
report_set_type: $.field_data_type,
|
|
15019
15018
|
report_field_id: $.id,
|
|
@@ -15056,12 +15055,12 @@ const jp = {
|
|
|
15056
15055
|
}
|
|
15057
15056
|
}).then(($) => $.code === 1 ? Promise.resolve() : Promise.reject()), u();
|
|
15058
15057
|
}
|
|
15059
|
-
async function i(
|
|
15058
|
+
async function i(p) {
|
|
15060
15059
|
const w = await Ot.get("userInfo"), b = t.project_code || w.project_code, y = (await Ke({
|
|
15061
15060
|
url: `/${b}-web/pri/report_set/get_list_report_config`,
|
|
15062
15061
|
method: "get",
|
|
15063
15062
|
params: {
|
|
15064
|
-
report_set_id:
|
|
15063
|
+
report_set_id: p
|
|
15065
15064
|
// 报表信息id
|
|
15066
15065
|
}
|
|
15067
15066
|
}).then((_) => _.code === 1 ? Promise.resolve(_.data) : Promise.reject([])).finally(() => {
|
|
@@ -15080,8 +15079,8 @@ const jp = {
|
|
|
15080
15079
|
columns: R
|
|
15081
15080
|
};
|
|
15082
15081
|
}
|
|
15083
|
-
async function u(
|
|
15084
|
-
const w =
|
|
15082
|
+
async function u(p) {
|
|
15083
|
+
const w = p || t.reportId;
|
|
15085
15084
|
a.value = !0, o.value = void 0;
|
|
15086
15085
|
const { querys: b, columns: x } = await i(w);
|
|
15087
15086
|
await Fp({ querys: b, columns: x, options: t }).then((y) => {
|
|
@@ -15089,7 +15088,7 @@ const jp = {
|
|
|
15089
15088
|
});
|
|
15090
15089
|
}
|
|
15091
15090
|
async function d() {
|
|
15092
|
-
const
|
|
15091
|
+
const p = await Ot.get("userInfo"), w = t.project_code || p.project_code;
|
|
15093
15092
|
await Ke({
|
|
15094
15093
|
url: `/${w}-web/pri/report_data/get_list_report_data`,
|
|
15095
15094
|
method: "get",
|
|
@@ -15097,41 +15096,41 @@ const jp = {
|
|
|
15097
15096
|
sys_id: t.sysId
|
|
15098
15097
|
}
|
|
15099
15098
|
}).then((b) => {
|
|
15100
|
-
l.sourceList = (
|
|
15099
|
+
l.sourceList = (g.get(b, "data") || []).map((x) => ({
|
|
15101
15100
|
field_name: x.data_set_name,
|
|
15102
15101
|
field_key: x.id,
|
|
15103
15102
|
query_type: x.data_set_type
|
|
15104
15103
|
}));
|
|
15105
15104
|
});
|
|
15106
15105
|
}
|
|
15107
|
-
async function c(
|
|
15106
|
+
async function c(p) {
|
|
15108
15107
|
const w = await Ot.get("userInfo"), b = t.project_code || w.project_code;
|
|
15109
15108
|
await Ke({
|
|
15110
15109
|
url: `/${b}-web/pri/report_data/get_list_report_data_field`,
|
|
15111
15110
|
method: "get",
|
|
15112
15111
|
params: {
|
|
15113
|
-
data_set_id:
|
|
15112
|
+
data_set_id: p
|
|
15114
15113
|
}
|
|
15115
15114
|
}).then((x) => {
|
|
15116
15115
|
if (x.code === 1)
|
|
15117
|
-
l.sourceFields =
|
|
15116
|
+
l.sourceFields = g.get(x, "data") || [];
|
|
15118
15117
|
else
|
|
15119
15118
|
return Promise.reject();
|
|
15120
15119
|
}).catch(() => {
|
|
15121
15120
|
l.sourceFields = [];
|
|
15122
15121
|
});
|
|
15123
15122
|
}
|
|
15124
|
-
async function f(
|
|
15123
|
+
async function f(p) {
|
|
15125
15124
|
const w = await Ot.get("userInfo"), b = t.project_code || w.project_code;
|
|
15126
15125
|
await Ke({
|
|
15127
15126
|
url: `/${b}-web/pri/report_set/get_list_report_set_data`,
|
|
15128
15127
|
method: "get",
|
|
15129
15128
|
params: {
|
|
15130
|
-
report_set_id:
|
|
15129
|
+
report_set_id: p
|
|
15131
15130
|
}
|
|
15132
15131
|
}).then((x) => {
|
|
15133
15132
|
if (x.code === 1) {
|
|
15134
|
-
const y = (
|
|
15133
|
+
const y = (g.get(x, "data") || []).map((E) => ({
|
|
15135
15134
|
...E,
|
|
15136
15135
|
field_name: E.field_name || E.report_name_show,
|
|
15137
15136
|
show_name: E.report_name_show,
|
|
@@ -15140,13 +15139,13 @@ const jp = {
|
|
|
15140
15139
|
field_way: E.report_field_way,
|
|
15141
15140
|
id: E.report_field_id
|
|
15142
15141
|
}));
|
|
15143
|
-
l.querys =
|
|
15142
|
+
l.querys = g.filter(y, {
|
|
15144
15143
|
field_data_type: Yt.SHAI_XUAN
|
|
15145
|
-
}).sort((E, R) => E.data_sort - R.data_sort), l.columns =
|
|
15144
|
+
}).sort((E, R) => E.data_sort - R.data_sort), l.columns = g.filter(y, {
|
|
15146
15145
|
field_data_type: Yt.WEI_DU
|
|
15147
|
-
}).sort((E, R) => E.data_sort - R.data_sort), l.indicator =
|
|
15146
|
+
}).sort((E, R) => E.data_sort - R.data_sort), l.indicator = g.filter(y, {
|
|
15148
15147
|
field_data_type: Yt.ZHI_BIAO
|
|
15149
|
-
}).sort((E, R) => E.data_sort - R.data_sort), l.drills =
|
|
15148
|
+
}).sort((E, R) => E.data_sort - R.data_sort), l.drills = g.filter(y, {
|
|
15150
15149
|
field_data_type: Yt.Z_WEI_DU
|
|
15151
15150
|
}).sort((E, R) => E.data_sort - R.data_sort);
|
|
15152
15151
|
}
|
|
@@ -15155,27 +15154,27 @@ const jp = {
|
|
|
15155
15154
|
async function h() {
|
|
15156
15155
|
var w;
|
|
15157
15156
|
o.value = void 0;
|
|
15158
|
-
const
|
|
15157
|
+
const p = await gt({
|
|
15159
15158
|
mid: (w = It()) == null ? void 0 : w.mid,
|
|
15160
15159
|
id: t.reportId
|
|
15161
15160
|
});
|
|
15162
|
-
if (!
|
|
15161
|
+
if (!p)
|
|
15163
15162
|
return u().then(() => {
|
|
15164
15163
|
setTimeout(() => {
|
|
15165
15164
|
var b;
|
|
15166
15165
|
(b = n.value) == null || b.search();
|
|
15167
15166
|
}, 300);
|
|
15168
15167
|
});
|
|
15169
|
-
o.value =
|
|
15168
|
+
o.value = p.table;
|
|
15170
15169
|
}
|
|
15171
15170
|
async function v() {
|
|
15172
|
-
const { querys:
|
|
15173
|
-
return Pp({ querys:
|
|
15171
|
+
const { querys: p, columns: w } = await i(t.reportId);
|
|
15172
|
+
return Pp({ querys: p, columns: w, options: t });
|
|
15174
15173
|
}
|
|
15175
15174
|
return Vt("refreshTable", r), Vt("getReportList", d), Vt("getReportFields", c), Vt("stateTable", o), Vt("stateSetting", l), Vt("bcBoxApi", {
|
|
15176
15175
|
refreshData: h,
|
|
15177
15176
|
getReportBaseConfig: v
|
|
15178
|
-
}), (
|
|
15177
|
+
}), (p, w) => {
|
|
15179
15178
|
const b = Ja("loading");
|
|
15180
15179
|
return I(), j("div", {
|
|
15181
15180
|
class: Ge(["contain-visual", [{ "is-design": !e.preview }]])
|
|
@@ -15184,7 +15183,7 @@ const jp = {
|
|
|
15184
15183
|
T(Rp)
|
|
15185
15184
|
])),
|
|
15186
15185
|
P("div", Bp, [
|
|
15187
|
-
l.isEmpty ? _e(
|
|
15186
|
+
l.isEmpty ? _e(p.$slots, "empty", { key: 1 }, void 0, !0) : da((I(), K(Op, {
|
|
15188
15187
|
key: 0,
|
|
15189
15188
|
ref_key: "visualTableRef",
|
|
15190
15189
|
ref: n
|