liyu-pc-base 1.0.494 → 1.0.499
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/components/index.js +154 -153
- package/dist/components/index.js.map +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -64499,15 +64499,15 @@ var gZ = {
|
|
|
64499
64499
|
},
|
|
64500
64500
|
emits: ["dataChange"],
|
|
64501
64501
|
setup(e, { expose: t, emit: n }) {
|
|
64502
|
-
let r = e, o = n, { t: l } = wt(), u = a(), d = c(), f = i(), p = f.userid, m = f.currentOrg, g = L(f.CHECK_AUTH(yZ)), _ = Ct(), b =
|
|
64502
|
+
let r = e, o = n, { t: l } = wt(), u = a(), d = c(), f = i(), p = f.userid, m = f.currentOrg, g = L(f.CHECK_AUTH(yZ)), _ = Ct(), b = Ze([]), x = L(!1), S = L(0), C = Tt(), w = L([]), T = L([]), E = Ce(() => !!r.config.enable_advanced_search_multigroups), D = null, O = !1, k = L(null), ee = L(null), A = L(null), te = L(null), ne = L(0), re = L(null), j = L(null), oe = L([]), se = L([]), ce = L([]), pe = L(r.config.refreshType), ge = L({
|
|
64503
64503
|
rows: [],
|
|
64504
64504
|
columns: [],
|
|
64505
64505
|
values: [],
|
|
64506
64506
|
indicatorsAsCol: !0,
|
|
64507
64507
|
rowHierarchyType: "grid"
|
|
64508
64508
|
});
|
|
64509
|
-
|
|
64510
|
-
let
|
|
64509
|
+
ce.value = f.CHECK_AUTH_BY_BTN_LIST(r.config?.btn_list || []) || [], se.value = f.CHECK_AUTH_BY_BTN_LIST(r.config?.head_btn_list || []) || [], oe.value = f.CHECK_AUTH_BY_BTN_LIST(r.config?.batch_update_list || []) || [];
|
|
64510
|
+
let ve = Ce(() => `table_pro_${r.config.key}`), ye = Ke({
|
|
64511
64511
|
current: 1,
|
|
64512
64512
|
pageSize: r.config?.pageSize || r.config?.query_params?.pageSize || 5e4,
|
|
64513
64513
|
total: 0,
|
|
@@ -64515,12 +64515,12 @@ var gZ = {
|
|
|
64515
64515
|
tableHead: null,
|
|
64516
64516
|
sum_data: null
|
|
64517
64517
|
});
|
|
64518
|
-
Et(
|
|
64519
|
-
|
|
64520
|
-
}), Et(
|
|
64521
|
-
|
|
64518
|
+
Et(k, (e) => {
|
|
64519
|
+
ee.value = e[0].contentRect.height;
|
|
64520
|
+
}), Et(A, (e) => {
|
|
64521
|
+
te.value = e[0].contentRect.height;
|
|
64522
64522
|
});
|
|
64523
|
-
let
|
|
64523
|
+
let be = Ce(() => r.config.search_type === "simple" ? r.config.search_type : "advanced"), xe = Ce(() => r.config?.is_view !== !1), M = L({}), Ee = ({ type: e = "list", viewData: t = null, pageSize: n = 1e3 } = {}) => {
|
|
64524
64524
|
let i = (e) => {
|
|
64525
64525
|
let t = [];
|
|
64526
64526
|
return e.forEach((e) => {
|
|
@@ -64528,10 +64528,10 @@ var gZ = {
|
|
|
64528
64528
|
}), t;
|
|
64529
64529
|
}, a = { ...r.config.query_params || {} };
|
|
64530
64530
|
if (e === "list") {
|
|
64531
|
-
let e = i(
|
|
64531
|
+
let e = i(tt.value || []);
|
|
64532
64532
|
r.config.base_column_fields && e.push(...r.config.base_column_fields), a.current = 1, a.pageSize = n, a.column_fields = e;
|
|
64533
64533
|
}
|
|
64534
|
-
if (
|
|
64534
|
+
if (be.value === "advanced") if (E.value) {
|
|
64535
64535
|
let e = (t ? t.searchGroups || [] : T.value).map((e) => v(e.conditions)).filter((e) => e.length > 0), n = v(r.config.base_conditions), i = [];
|
|
64536
64536
|
e.length > 0 && i.push({
|
|
64537
64537
|
op: "and",
|
|
@@ -64541,7 +64541,7 @@ var gZ = {
|
|
|
64541
64541
|
children: n
|
|
64542
64542
|
}), a.conditions = i;
|
|
64543
64543
|
} else a.conditions = [[...v(r.config.base_conditions), ...v(t ? t.searchConditions || [] : w.value)]];
|
|
64544
|
-
else if (
|
|
64544
|
+
else if (be.value === "simple") for (let e of v(t ? t.searchConditions || [] : w.value)) {
|
|
64545
64545
|
let t = ae(e.operator, e), n = e.value;
|
|
64546
64546
|
t === 1 && (n = n[0]), a[e.field_name] = n;
|
|
64547
64547
|
}
|
|
@@ -64552,17 +64552,18 @@ var gZ = {
|
|
|
64552
64552
|
});
|
|
64553
64553
|
t && Object.assign(a, t);
|
|
64554
64554
|
}
|
|
64555
|
-
let o =
|
|
64555
|
+
let o = mt();
|
|
64556
64556
|
return o && (a.required_condition = o), r.config.get_db_alias && (a.db_alias = r.config.get_db_alias()), a;
|
|
64557
|
-
}, [
|
|
64558
|
-
if (!r.config.list_url) return;
|
|
64557
|
+
}, [De, Oe, { setFull: ke, exitFull: Ae }] = _e(), je = async () => {
|
|
64558
|
+
if (!r.config.list_url || O) return;
|
|
64559
|
+
O = !0;
|
|
64559
64560
|
let e = Symbol();
|
|
64560
64561
|
D = e;
|
|
64561
64562
|
try {
|
|
64562
|
-
x.value = !0, S.value = 0;
|
|
64563
|
-
let t =
|
|
64563
|
+
x.value = !0, b.value = [], S.value = 0;
|
|
64564
|
+
let t = Ee({ type: "list" }), n;
|
|
64564
64565
|
if (n = r.config.query_data_func ? await r.config.query_data_func(t) : await h(t, r.config.list_url.replace("__tree", ""), r.config.list_url.includes("__tree"), { api_log: `pivotTable ${r.config.key} ${r.config.title}` }), D !== e) return;
|
|
64565
|
-
let i = n.total || 0, a =
|
|
64566
|
+
let i = n.total || 0, a = ye.pageSize, s = [...n.data || []], c = s.length;
|
|
64566
64567
|
if (i > a) {
|
|
64567
64568
|
let e = Math.ceil(i / a), n = [], o = Array(e - 1);
|
|
64568
64569
|
for (let s = 2; s <= e; s++) {
|
|
@@ -64578,59 +64579,59 @@ var gZ = {
|
|
|
64578
64579
|
S.value = 0;
|
|
64579
64580
|
}
|
|
64580
64581
|
if (D !== e) return;
|
|
64581
|
-
r.config.process_data_func ? b.value = r.config.process_data_func(s) : b.value = s,
|
|
64582
|
+
await new Promise((e) => setTimeout(e, 100)), r.config.process_data_func ? b.value = r.config.process_data_func(s) : b.value = s, ye.current = 1, ye.total = i, o("dataChange", {
|
|
64582
64583
|
data: b.value,
|
|
64583
64584
|
current: 1,
|
|
64584
64585
|
total: i
|
|
64585
64586
|
});
|
|
64586
64587
|
} finally {
|
|
64587
|
-
if (D !== e) return;
|
|
64588
|
+
if (O = !1, D !== e) return;
|
|
64588
64589
|
x.value = !1, S.value = 0;
|
|
64589
64590
|
}
|
|
64590
|
-
},
|
|
64591
|
+
}, Me = (0, En.debounce)(je, 500), Ne = Ce(() => ge.value.rows.length > 0 || ge.value.columns.length > 0 || ge.value.values.length > 0), Pe = [{
|
|
64591
64592
|
text: "复制",
|
|
64592
64593
|
menuKey: "copy"
|
|
64593
|
-
}],
|
|
64594
|
+
}], Fe = (e) => e.map((e) => Number(e)).filter((e) => !isNaN(e)), Ie = (e) => e.length === 0 ? 0 : e.reduce((e, t) => e + t, 0) / e.length, Le = (e, t) => {
|
|
64594
64595
|
if (e.length === 0 || e.length === 1) return 0;
|
|
64595
|
-
let n =
|
|
64596
|
+
let n = Ie(e);
|
|
64596
64597
|
return e.map((e) => (e - n) ** 2).reduce((e, t) => e + t, 0) / (t ? e.length : e.length - 1);
|
|
64597
|
-
},
|
|
64598
|
+
}, ze = (e, t) => Math.sqrt(Le(e, t)), Be = (e) => {
|
|
64598
64599
|
switch (e) {
|
|
64599
64600
|
case "PRODUCT": return {
|
|
64600
64601
|
aggregationType: "CUSTOM",
|
|
64601
|
-
aggregationFun: (e) =>
|
|
64602
|
+
aggregationFun: (e) => Fe(e).reduce((e, t) => e * t, 1)
|
|
64602
64603
|
};
|
|
64603
64604
|
case "COUNTNUM": return {
|
|
64604
64605
|
aggregationType: "CUSTOM",
|
|
64605
|
-
aggregationFun: (e) =>
|
|
64606
|
+
aggregationFun: (e) => Fe(e).length
|
|
64606
64607
|
};
|
|
64607
64608
|
case "VAR": return {
|
|
64608
64609
|
aggregationType: "CUSTOM",
|
|
64609
|
-
aggregationFun: (e) =>
|
|
64610
|
+
aggregationFun: (e) => Le(Fe(e), !1)
|
|
64610
64611
|
};
|
|
64611
64612
|
case "VARP": return {
|
|
64612
64613
|
aggregationType: "CUSTOM",
|
|
64613
|
-
aggregationFun: (e) =>
|
|
64614
|
+
aggregationFun: (e) => Le(Fe(e), !0)
|
|
64614
64615
|
};
|
|
64615
64616
|
case "STD": return {
|
|
64616
64617
|
aggregationType: "CUSTOM",
|
|
64617
|
-
aggregationFun: (e) =>
|
|
64618
|
+
aggregationFun: (e) => ze(Fe(e), !1)
|
|
64618
64619
|
};
|
|
64619
64620
|
case "STDP": return {
|
|
64620
64621
|
aggregationType: "CUSTOM",
|
|
64621
|
-
aggregationFun: (e) =>
|
|
64622
|
+
aggregationFun: (e) => ze(Fe(e), !0)
|
|
64622
64623
|
};
|
|
64623
64624
|
default: return { aggregationType: e };
|
|
64624
64625
|
}
|
|
64625
|
-
},
|
|
64626
|
-
let e =
|
|
64626
|
+
}, Ve = Ce(() => {
|
|
64627
|
+
let e = ge.value.values.map((e) => ({
|
|
64627
64628
|
indicatorKey: e.id,
|
|
64628
64629
|
field: e.field,
|
|
64629
|
-
...
|
|
64630
|
+
...Be(e.aggregationType)
|
|
64630
64631
|
}));
|
|
64631
64632
|
return {
|
|
64632
|
-
rowHierarchyType:
|
|
64633
|
-
indicatorsAsCol:
|
|
64633
|
+
rowHierarchyType: ge.value.rowHierarchyType || "grid",
|
|
64634
|
+
indicatorsAsCol: ge.value.indicatorsAsCol ?? !0,
|
|
64634
64635
|
rowExpandLevel: 2,
|
|
64635
64636
|
columnExpandLevel: 2,
|
|
64636
64637
|
widthMode: "standard",
|
|
@@ -64702,7 +64703,7 @@ var gZ = {
|
|
|
64702
64703
|
keyboardOptions: { copySelected: !0 },
|
|
64703
64704
|
emptyTip: { text: "暂无数据" }
|
|
64704
64705
|
};
|
|
64705
|
-
}),
|
|
64706
|
+
}), He = (e, t) => e == null ? "" : t.formatFun ? qe(e, t.formatFun) : String(e), qe = (e, t) => {
|
|
64706
64707
|
if (typeof e != "number") return String(e);
|
|
64707
64708
|
switch (t) {
|
|
64708
64709
|
case "0.00": return e.toFixed(2);
|
|
@@ -64714,17 +64715,17 @@ var gZ = {
|
|
|
64714
64715
|
});
|
|
64715
64716
|
default: return String(e);
|
|
64716
64717
|
}
|
|
64717
|
-
},
|
|
64718
|
+
}, Xe = (e) => {
|
|
64718
64719
|
if (e.menuKey === "copy") {
|
|
64719
|
-
let e =
|
|
64720
|
+
let e = j.value?.vTableInstance;
|
|
64720
64721
|
if (e) {
|
|
64721
64722
|
let t = e.getCopyValue();
|
|
64722
64723
|
t && (navigator.clipboard && navigator.clipboard.writeText ? navigator.clipboard.writeText(t).catch(() => {
|
|
64723
|
-
|
|
64724
|
-
}) :
|
|
64724
|
+
Qe(t);
|
|
64725
|
+
}) : Qe(t));
|
|
64725
64726
|
}
|
|
64726
64727
|
}
|
|
64727
|
-
},
|
|
64728
|
+
}, Qe = (e) => {
|
|
64728
64729
|
let t = document.createElement("textarea");
|
|
64729
64730
|
t.value = e, t.style.position = "fixed", t.style.opacity = "0", document.body.appendChild(t), t.select();
|
|
64730
64731
|
try {
|
|
@@ -64733,11 +64734,11 @@ var gZ = {
|
|
|
64733
64734
|
console.error("[pivotTable] copy failed:", e);
|
|
64734
64735
|
}
|
|
64735
64736
|
document.body.removeChild(t);
|
|
64736
|
-
},
|
|
64737
|
-
if (!
|
|
64738
|
-
let e =
|
|
64737
|
+
}, et = Ce(() => {
|
|
64738
|
+
if (!ee.value) return 400;
|
|
64739
|
+
let e = ee.value - te.value - ne.value - 4;
|
|
64739
64740
|
return e < 200 && (e = 200), e;
|
|
64740
|
-
}),
|
|
64741
|
+
}), tt = Ce(() => {
|
|
64741
64742
|
let e = [...r.config.columns || []];
|
|
64742
64743
|
return !e.some((e) => e.dataIndex === "index") && !r.config.hide_index_column && e.unshift({
|
|
64743
64744
|
title: "#",
|
|
@@ -64748,19 +64749,19 @@ var gZ = {
|
|
|
64748
64749
|
checked: !0,
|
|
64749
64750
|
autoHeight: !0
|
|
64750
64751
|
}), e;
|
|
64751
|
-
}),
|
|
64752
|
-
|
|
64753
|
-
},
|
|
64754
|
-
|
|
64755
|
-
},
|
|
64756
|
-
|
|
64757
|
-
},
|
|
64758
|
-
|
|
64759
|
-
},
|
|
64760
|
-
|
|
64761
|
-
},
|
|
64762
|
-
await
|
|
64763
|
-
},
|
|
64752
|
+
}), nt = L({}), it = L([]), at = L(null), ot = L(!1), st = (e) => {
|
|
64753
|
+
ge.value = e, ot.value = !0;
|
|
64754
|
+
}, ct = (e) => {
|
|
64755
|
+
pe.value = e, ot.value = !0;
|
|
64756
|
+
}, lt = () => {
|
|
64757
|
+
ot.value = !0;
|
|
64758
|
+
}, ut = () => {
|
|
64759
|
+
ot.value = !0;
|
|
64760
|
+
}, dt = (e) => {
|
|
64761
|
+
M.value = e, ot.value = !0;
|
|
64762
|
+
}, ft = async () => {
|
|
64763
|
+
await je();
|
|
64764
|
+
}, pt = async () => {}, mt = () => {
|
|
64764
64765
|
let e = r.config.required_condition;
|
|
64765
64766
|
if (e) {
|
|
64766
64767
|
let t = {};
|
|
@@ -64769,7 +64770,7 @@ var gZ = {
|
|
|
64769
64770
|
n != null && (t[e.field_name] = n);
|
|
64770
64771
|
}), t;
|
|
64771
64772
|
} else return null;
|
|
64772
|
-
},
|
|
64773
|
+
}, ht = async () => {
|
|
64773
64774
|
let e = [];
|
|
64774
64775
|
if (r.config?.search_config && r.config.search_config.forEach((t) => {
|
|
64775
64776
|
if (t.default_value) {
|
|
@@ -64786,55 +64787,55 @@ var gZ = {
|
|
|
64786
64787
|
id: y(),
|
|
64787
64788
|
conditions: [...e],
|
|
64788
64789
|
viewSearchConfig: {}
|
|
64789
|
-
}], w.value = []),
|
|
64790
|
-
if (
|
|
64791
|
-
let e =
|
|
64792
|
-
if (e)
|
|
64790
|
+
}], w.value = []), xe.value && at.value?.id !== "no-view") {
|
|
64791
|
+
if (at.value = null, await bt(), r.config?.view_uid) {
|
|
64792
|
+
let e = it.value.find((e) => e.uid == r.config?.view_uid);
|
|
64793
|
+
if (e) yt(e.data), at.value = e;
|
|
64793
64794
|
else {
|
|
64794
64795
|
let e = await de({
|
|
64795
64796
|
org_id: m.id,
|
|
64796
64797
|
is_active: !0,
|
|
64797
64798
|
uid: r.config?.view_uid
|
|
64798
64799
|
});
|
|
64799
|
-
e?.length && (
|
|
64800
|
+
e?.length && (at.value = {
|
|
64800
64801
|
...e[0],
|
|
64801
64802
|
is_other_user_view: !0
|
|
64802
64803
|
});
|
|
64803
64804
|
}
|
|
64804
64805
|
}
|
|
64805
|
-
if (!
|
|
64806
|
-
let e = [...
|
|
64806
|
+
if (!at.value && it.value?.length) {
|
|
64807
|
+
let e = [...it.value], t = (e) => {
|
|
64807
64808
|
let t = e.sort || 0;
|
|
64808
|
-
return e.id !==
|
|
64809
|
+
return e.id !== at.value?.id && (t *= 1e6), e.is_default || (t *= 1e4), e.user_id || (t *= 1e3), t;
|
|
64809
64810
|
};
|
|
64810
|
-
e.sort((e, n) => t(e) - t(n)),
|
|
64811
|
+
e.sort((e, n) => t(e) - t(n)), yt(e[0].data), at.value = e[0];
|
|
64811
64812
|
}
|
|
64812
64813
|
}
|
|
64813
|
-
await
|
|
64814
|
-
},
|
|
64815
|
-
|
|
64816
|
-
},
|
|
64817
|
-
await
|
|
64818
|
-
},
|
|
64814
|
+
await je();
|
|
64815
|
+
}, gt = async () => {
|
|
64816
|
+
ot.value = !1, await ht();
|
|
64817
|
+
}, _t = async () => {
|
|
64818
|
+
await je();
|
|
64819
|
+
}, vt = () => {
|
|
64819
64820
|
let e = {
|
|
64820
|
-
columns:
|
|
64821
|
+
columns: nt.value,
|
|
64821
64822
|
searchConditions: w.value,
|
|
64822
|
-
tableSize:
|
|
64823
|
-
refreshType:
|
|
64824
|
-
searchConfig:
|
|
64825
|
-
pivotConfig:
|
|
64823
|
+
tableSize: ye.tableSize,
|
|
64824
|
+
refreshType: pe.value,
|
|
64825
|
+
searchConfig: M.value,
|
|
64826
|
+
pivotConfig: ge.value
|
|
64826
64827
|
};
|
|
64827
64828
|
if (E.value && (e.searchGroups = T.value, T.value.length > 0 && (e.searchConfig = T.value[0].viewSearchConfig)), r.config.get_view_data_func) {
|
|
64828
64829
|
let t = r.config.get_view_data_func({ viewData: e });
|
|
64829
64830
|
t && Object.assign(e, t);
|
|
64830
64831
|
}
|
|
64831
64832
|
return e;
|
|
64832
|
-
},
|
|
64833
|
+
}, yt = async (e) => {
|
|
64833
64834
|
if (e === null) {
|
|
64834
|
-
await
|
|
64835
|
+
await ht(), ot.value = !1;
|
|
64835
64836
|
return;
|
|
64836
64837
|
}
|
|
64837
|
-
e.columns && (
|
|
64838
|
+
e.columns && (nt.value = e.columns), E.value ? (e.searchGroups && e.searchGroups.length > 0 ? T.value = e.searchGroups : e.searchConditions && (T.value = [{
|
|
64838
64839
|
id: y(),
|
|
64839
64840
|
conditions: e.searchConditions,
|
|
64840
64841
|
viewSearchConfig: e.searchConfig || {}
|
|
@@ -64842,66 +64843,66 @@ var gZ = {
|
|
|
64842
64843
|
id: y(),
|
|
64843
64844
|
conditions: [],
|
|
64844
64845
|
viewSearchConfig: {}
|
|
64845
|
-
}]), w.value = []) : (e.searchConfig && (
|
|
64846
|
-
},
|
|
64847
|
-
|
|
64848
|
-
}, { saveView:
|
|
64849
|
-
currentView:
|
|
64850
|
-
getViewData:
|
|
64851
|
-
isViewChange:
|
|
64846
|
+
}]), w.value = []) : (e.searchConfig && (M.value = e.searchConfig), e.searchConditions && (w.value = e.searchConditions)), e.tableSize && (ye.tableSize = e.tableSize), e.refreshType && (pe.value = e.refreshType), e.pivotConfig && (ge.value = e.pivotConfig), r.config.set_view_callback && r.config.set_view_callback({ viewData: e }), await ft(), ot.value = !1;
|
|
64847
|
+
}, bt = async () => {
|
|
64848
|
+
it.value = await he(ve.value, Ee, r.config.count_url, r.config);
|
|
64849
|
+
}, { saveView: xt, addView: St } = le({
|
|
64850
|
+
currentView: at,
|
|
64851
|
+
getViewData: vt,
|
|
64852
|
+
isViewChange: ot,
|
|
64852
64853
|
userid: p,
|
|
64853
64854
|
view_project__flag: u.VITE_APP_VIEW_PROJECT_FLAG,
|
|
64854
|
-
view_menu__flag:
|
|
64855
|
+
view_menu__flag: ve.value,
|
|
64855
64856
|
view_menu__name: r.config.title,
|
|
64856
|
-
fetchViews:
|
|
64857
|
+
fetchViews: bt,
|
|
64857
64858
|
is_auth: g,
|
|
64858
64859
|
t: l
|
|
64859
64860
|
});
|
|
64860
64861
|
Ge(ue, {
|
|
64861
|
-
setViewData:
|
|
64862
|
-
getViewData:
|
|
64863
|
-
fetchViews:
|
|
64864
|
-
viewDataList:
|
|
64865
|
-
currentView:
|
|
64866
|
-
isViewChange:
|
|
64862
|
+
setViewData: yt,
|
|
64863
|
+
getViewData: vt,
|
|
64864
|
+
fetchViews: bt,
|
|
64865
|
+
viewDataList: it,
|
|
64866
|
+
currentView: at,
|
|
64867
|
+
isViewChange: ot,
|
|
64867
64868
|
config: r.config
|
|
64868
64869
|
}), Ue(async () => {
|
|
64869
|
-
r.config.key || console.error("pivotTable config 未配置 key"), r.config.title || console.error("pivotTable config 未配置 title"), s().on("change",
|
|
64870
|
+
r.config.key || console.error("pivotTable config 未配置 key"), r.config.title || console.error("pivotTable config 未配置 title"), s().on("change", Dt), C.on("refresh", ft), C.on("local_refresh", pt), C.on("reinit", gt), C.on("saveView", xt), C.on("saveNewView", St), r.eventBus && (r.eventBus.on("reinit", gt), r.eventBus.on("refresh", ft), r.eventBus.on("local_refresh", pt), r.eventBus.on("reload_table", _t)), r.config.tableSize && (ye.tableSize = r.config.tableSize), await ht();
|
|
64870
64871
|
});
|
|
64871
|
-
let
|
|
64872
|
-
r.config.required_condition && r.config.required_condition.find((t) => t.key === e) &&
|
|
64872
|
+
let Dt = (e) => {
|
|
64873
|
+
r.config.required_condition && r.config.required_condition.find((t) => t.key === e) && je();
|
|
64873
64874
|
};
|
|
64874
64875
|
return We(() => {
|
|
64875
|
-
C.off("refresh",
|
|
64876
|
+
C.off("refresh", ft), C.off("local_refresh", pt), C.off("reinit", gt), C.off("saveView", xt), C.off("saveNewView", St), r.eventBus && (r.eventBus.off("reinit", gt), r.eventBus.off("refresh", ft), r.eventBus.off("local_refresh", pt), r.eventBus.off("reload_table", _t));
|
|
64876
64877
|
}), rt(() => r.config.query_params, () => {
|
|
64877
|
-
|
|
64878
|
+
Me();
|
|
64878
64879
|
}, { deep: !0 }), rt(() => r.config.base_conditions, () => {
|
|
64879
|
-
|
|
64880
|
+
Me();
|
|
64880
64881
|
}, { deep: !0 }), t({
|
|
64881
|
-
getViewData:
|
|
64882
|
-
setViewData:
|
|
64882
|
+
getViewData: vt,
|
|
64883
|
+
setViewData: yt,
|
|
64883
64884
|
config: r.config,
|
|
64884
|
-
columns:
|
|
64885
|
-
fetchViews:
|
|
64886
|
-
viewDataList:
|
|
64887
|
-
currentView:
|
|
64888
|
-
isViewChange:
|
|
64889
|
-
pivotConfig:
|
|
64890
|
-
refresh:
|
|
64891
|
-
init:
|
|
64885
|
+
columns: tt,
|
|
64886
|
+
fetchViews: bt,
|
|
64887
|
+
viewDataList: it,
|
|
64888
|
+
currentView: at,
|
|
64889
|
+
isViewChange: ot,
|
|
64890
|
+
pivotConfig: ge,
|
|
64891
|
+
refresh: ft,
|
|
64892
|
+
init: ht,
|
|
64892
64893
|
dataSource: b,
|
|
64893
64894
|
get vTableInstance() {
|
|
64894
|
-
return
|
|
64895
|
+
return j.value?.vTableInstance || null;
|
|
64895
64896
|
}
|
|
64896
64897
|
}), (t, n) => {
|
|
64897
64898
|
let r = R("a-spin"), i = R("a-progress"), a = R("a-card");
|
|
64898
64899
|
return I(), P("div", {
|
|
64899
64900
|
class: "pivot-table-wraper",
|
|
64900
64901
|
ref_key: "tableWraperRef",
|
|
64901
|
-
ref:
|
|
64902
|
+
ref: k
|
|
64902
64903
|
}, [Te("div", {
|
|
64903
64904
|
ref_key: "searchRef",
|
|
64904
|
-
ref:
|
|
64905
|
+
ref: A
|
|
64905
64906
|
}, [e.config?.search_config && e.config.search_config.length > 0 && !E.value ? (I(), N(fe, {
|
|
64906
64907
|
key: 0,
|
|
64907
64908
|
searchConfig: e.config?.search_config || [],
|
|
@@ -64909,13 +64910,13 @@ var gZ = {
|
|
|
64909
64910
|
searchConditions: w.value,
|
|
64910
64911
|
"onUpdate:searchConditions": n[0] ||= (e) => w.value = e,
|
|
64911
64912
|
"event-bus": $e(C),
|
|
64912
|
-
searchType:
|
|
64913
|
+
searchType: be.value,
|
|
64913
64914
|
searchDisplayType: e.config?.search_display_type,
|
|
64914
64915
|
searchColumnCount: e.config?.search_column_count,
|
|
64915
|
-
viewSearchConfig:
|
|
64916
|
+
viewSearchConfig: M.value,
|
|
64916
64917
|
disabledShowSearchGroupName: e.config?.disabledShowSearchGroupName,
|
|
64917
|
-
onViewSearchConfigChange:
|
|
64918
|
-
onChange:
|
|
64918
|
+
onViewSearchConfigChange: dt,
|
|
64919
|
+
onChange: ut
|
|
64919
64920
|
}, null, 8, [
|
|
64920
64921
|
"searchConfig",
|
|
64921
64922
|
"autoRefreshOnSearchChange",
|
|
@@ -64933,11 +64934,11 @@ var gZ = {
|
|
|
64933
64934
|
searchGroups: T.value,
|
|
64934
64935
|
"onUpdate:searchGroups": n[1] ||= (e) => T.value = e,
|
|
64935
64936
|
"event-bus": $e(C),
|
|
64936
|
-
searchType:
|
|
64937
|
+
searchType: be.value,
|
|
64937
64938
|
searchDisplayType: e.config?.search_display_type,
|
|
64938
64939
|
searchColumnCount: e.config?.search_column_count,
|
|
64939
64940
|
disabledShowSearchGroupName: e.config?.disabledShowSearchGroupName,
|
|
64940
|
-
onChange:
|
|
64941
|
+
onChange: ut
|
|
64941
64942
|
}, null, 8, [
|
|
64942
64943
|
"searchConfig",
|
|
64943
64944
|
"autoRefreshOnSearchChange",
|
|
@@ -64949,35 +64950,35 @@ var gZ = {
|
|
|
64949
64950
|
"disabledShowSearchGroupName"
|
|
64950
64951
|
])) : we("", !0)], 512), F(a, {
|
|
64951
64952
|
ref_key: "elRef",
|
|
64952
|
-
ref:
|
|
64953
|
+
ref: De,
|
|
64953
64954
|
"body-style": { padding: 0 }
|
|
64954
64955
|
}, {
|
|
64955
64956
|
default: z(() => [F(me, {
|
|
64956
64957
|
config: e.config,
|
|
64957
|
-
auth_batch_update_list:
|
|
64958
|
-
auth_head_btn_list:
|
|
64958
|
+
auth_batch_update_list: oe.value,
|
|
64959
|
+
auth_head_btn_list: se.value,
|
|
64959
64960
|
dataSource: b.value,
|
|
64960
64961
|
current_org: $e(m),
|
|
64961
64962
|
router: $e(_),
|
|
64962
64963
|
selfEventBus: $e(C),
|
|
64963
64964
|
loading: x.value,
|
|
64964
|
-
screenState: $e(
|
|
64965
|
-
tableSize:
|
|
64966
|
-
"onUpdate:tableSize": n[2] ||= (e) =>
|
|
64967
|
-
columns:
|
|
64968
|
-
view_key:
|
|
64965
|
+
screenState: $e(Oe),
|
|
64966
|
+
tableSize: ye.tableSize,
|
|
64967
|
+
"onUpdate:tableSize": n[2] ||= (e) => ye.tableSize = e,
|
|
64968
|
+
columns: tt.value,
|
|
64969
|
+
view_key: ve.value,
|
|
64969
64970
|
view_flag_name: e.config.title,
|
|
64970
|
-
is_view:
|
|
64971
|
-
refreshType:
|
|
64972
|
-
pivotConfig:
|
|
64971
|
+
is_view: xe.value,
|
|
64972
|
+
refreshType: pe.value,
|
|
64973
|
+
pivotConfig: ge.value,
|
|
64973
64974
|
component_type: "pivot_table",
|
|
64974
|
-
onRefresh:
|
|
64975
|
-
onSetFull: $e(
|
|
64976
|
-
onExitFull: $e(
|
|
64977
|
-
onPivotConfigChange:
|
|
64978
|
-
onHeightChange: n[3] ||= (e) =>
|
|
64979
|
-
onRefreshTypeChange:
|
|
64980
|
-
onTableSizeChange:
|
|
64975
|
+
onRefresh: ft,
|
|
64976
|
+
onSetFull: $e(ke),
|
|
64977
|
+
onExitFull: $e(Ae),
|
|
64978
|
+
onPivotConfigChange: st,
|
|
64979
|
+
onHeightChange: n[3] ||= (e) => ne.value = e,
|
|
64980
|
+
onRefreshTypeChange: ct,
|
|
64981
|
+
onTableSizeChange: lt
|
|
64981
64982
|
}, {
|
|
64982
64983
|
header_bar_before_title: z(() => [Ye(t.$slots, "header_bar_before_title", {}, void 0, !0)]),
|
|
64983
64984
|
header_bar_after_title: z(() => [Ye(t.$slots, "header_bar_after_title", {}, void 0, !0)]),
|
|
@@ -65006,38 +65007,38 @@ var gZ = {
|
|
|
65006
65007
|
]), Te("div", {
|
|
65007
65008
|
class: "pivot-vtable-container",
|
|
65008
65009
|
ref_key: "vtableContainerRef",
|
|
65009
|
-
ref:
|
|
65010
|
-
style: Re({ height:
|
|
65010
|
+
ref: re,
|
|
65011
|
+
style: Re({ height: et.value + "px" })
|
|
65011
65012
|
}, [x.value && !e.config?.disabled_table_loading ? (I(), P("div", gZ, [F(r), S.value > 0 ? (I(), P("div", _Z, [F(i, {
|
|
65012
65013
|
percent: S.value,
|
|
65013
65014
|
size: [80, 14],
|
|
65014
65015
|
"stroke-color": "#1677ff"
|
|
65015
|
-
}, null, 8, ["percent"])])) : we("", !0)])) : we("", !0),
|
|
65016
|
-
key:
|
|
65016
|
+
}, null, 8, ["percent"])])) : we("", !0)])) : we("", !0), Ne.value ? (I(), P(Se, { key: 1 }, [b.value?.length > 0 || !x.value ? (I(), N($e(uZ), {
|
|
65017
|
+
key: 0,
|
|
65017
65018
|
ref_key: "pivotTableRef",
|
|
65018
|
-
ref:
|
|
65019
|
-
options:
|
|
65019
|
+
ref: j,
|
|
65020
|
+
options: Ve.value,
|
|
65020
65021
|
records: b.value,
|
|
65021
|
-
onOnDropdownMenuClick:
|
|
65022
|
+
onOnDropdownMenuClick: Xe
|
|
65022
65023
|
}, {
|
|
65023
65024
|
default: z(() => [
|
|
65024
|
-
(I(!0), P(Se, null, Je(
|
|
65025
|
+
(I(!0), P(Se, null, Je(ge.value.columns, (e, t) => (I(), N($e(dZ), {
|
|
65025
65026
|
key: `col-${t}`,
|
|
65026
65027
|
dimensionKey: e.field,
|
|
65027
65028
|
title: e.label
|
|
65028
65029
|
}, null, 8, ["dimensionKey", "title"]))), 128)),
|
|
65029
|
-
(I(!0), P(Se, null, Je(
|
|
65030
|
+
(I(!0), P(Se, null, Je(ge.value.rows, (e, t) => (I(), N($e(fZ), {
|
|
65030
65031
|
key: `row-${t}`,
|
|
65031
65032
|
dimensionKey: e.field,
|
|
65032
65033
|
title: e.label
|
|
65033
65034
|
}, null, 8, ["dimensionKey", "title"]))), 128)),
|
|
65034
|
-
(I(!0), P(Se, null, Je(
|
|
65035
|
+
(I(!0), P(Se, null, Je(ge.value.values, (e, t) => (I(), N($e(pZ), {
|
|
65035
65036
|
key: `val-${t}`,
|
|
65036
65037
|
indicatorKey: e.id,
|
|
65037
65038
|
title: e.title || e.label,
|
|
65038
65039
|
width: 120,
|
|
65039
65040
|
minWidth: 100,
|
|
65040
|
-
format: (t) =>
|
|
65041
|
+
format: (t) => He(t, e)
|
|
65041
65042
|
}, null, 8, [
|
|
65042
65043
|
"indicatorKey",
|
|
65043
65044
|
"title",
|
|
@@ -65045,17 +65046,17 @@ var gZ = {
|
|
|
65045
65046
|
]))), 128)),
|
|
65046
65047
|
F($e(mZ), { titleOnDimension: "row" }),
|
|
65047
65048
|
F($e(hZ), {
|
|
65048
|
-
contextMenuItems:
|
|
65049
|
+
contextMenuItems: Pe,
|
|
65049
65050
|
renderMode: "html"
|
|
65050
65051
|
})
|
|
65051
65052
|
]),
|
|
65052
65053
|
_: 1
|
|
65053
|
-
}, 8, ["options", "records"])) : (I(), P("div", vZ, " 点击右上角\"设置\"按钮配置透视表字段 "))], 4)]),
|
|
65054
|
+
}, 8, ["options", "records"])) : we("", !0)], 64)) : (I(), P("div", vZ, " 点击右上角\"设置\"按钮配置透视表字段 "))], 4)]),
|
|
65054
65055
|
_: 3
|
|
65055
65056
|
}, 512)], 512);
|
|
65056
65057
|
};
|
|
65057
65058
|
}
|
|
65058
|
-
}), [["__scopeId", "data-v-
|
|
65059
|
+
}), [["__scopeId", "data-v-38bcfa8d"]]), xZ = {
|
|
65059
65060
|
key: 0,
|
|
65060
65061
|
class: "pivot-echarts-loading"
|
|
65061
65062
|
}, SZ = {
|