liyu-pc-base 1.0.625 → 1.0.629
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
CHANGED
|
@@ -97457,17 +97457,25 @@ var sQ = function(e, t, n, r) {
|
|
|
97457
97457
|
}
|
|
97458
97458
|
}
|
|
97459
97459
|
}, Qe = async (e) => {
|
|
97460
|
-
let t = e.cellHeaderPaths?.colHeaderPaths || [], n = e.cellHeaderPaths?.rowHeaderPaths || [], a = [];
|
|
97461
|
-
for (let e of [...
|
|
97460
|
+
let t = e.cellHeaderPaths?.colHeaderPaths || [], n = e.cellHeaderPaths?.rowHeaderPaths || [], a = [], o = {};
|
|
97461
|
+
for (let e of [...Me.value, ...Ne.value]) o[e.key] = e.label;
|
|
97462
|
+
let s = [];
|
|
97463
|
+
for (let e of [...t, ...n]) !e.role && e.dimensionKey && (a.push({
|
|
97462
97464
|
id: e.dimensionKey,
|
|
97463
97465
|
value: e.value
|
|
97464
|
-
})
|
|
97466
|
+
}), s.push({
|
|
97467
|
+
label: o[e.dimensionKey],
|
|
97468
|
+
value: e.value
|
|
97469
|
+
}));
|
|
97465
97470
|
if (!a.length) return;
|
|
97466
|
-
let
|
|
97471
|
+
let c = ye({
|
|
97467
97472
|
type: "pivot_table_match",
|
|
97468
97473
|
matchFields: a
|
|
97469
|
-
}),
|
|
97470
|
-
i("filterForIdKey",
|
|
97474
|
+
}), l = r.config.pivot_table_url;
|
|
97475
|
+
i("filterForIdKey", {
|
|
97476
|
+
filter_id_key: (await g(c, l.replace("__tree", ""), l.includes("__tree"), { api_log: `pivotTable ${r.config.key} ${r.config.title}` }))?.filter_id_key || "",
|
|
97477
|
+
filterStrList: s
|
|
97478
|
+
});
|
|
97471
97479
|
}, $e = (e) => {
|
|
97472
97480
|
let t = document.createElement("textarea");
|
|
97473
97481
|
t.value = e, t.style.position = "fixed", t.style.opacity = "0", document.body.appendChild(t), t.select();
|
|
@@ -97842,7 +97850,7 @@ var sQ = function(e, t, n, r) {
|
|
|
97842
97850
|
}, 512)], 512);
|
|
97843
97851
|
};
|
|
97844
97852
|
}
|
|
97845
|
-
}), [["__scopeId", "data-v-
|
|
97853
|
+
}), [["__scopeId", "data-v-def4e337"]]), mQ = {
|
|
97846
97854
|
key: 0,
|
|
97847
97855
|
class: "pivot-echarts-loading"
|
|
97848
97856
|
}, hQ = {
|
|
@@ -98408,7 +98416,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98408
98416
|
}, 8, ["disabled"])])) : H("", !0);
|
|
98409
98417
|
};
|
|
98410
98418
|
}
|
|
98411
|
-
}), bQ = { class: "table-wrapper" }, xQ = {
|
|
98419
|
+
}), bQ = { class: "table-wrapper" }, xQ = { class: "filter-message" }, SQ = { key: 0 }, CQ = { key: 0 }, wQ = { key: 0 }, TQ = /*#__PURE__*/ m(/* @__PURE__ */ Te({
|
|
98412
98420
|
__name: "rightTable",
|
|
98413
98421
|
props: /*@__PURE__*/ je({
|
|
98414
98422
|
eventBus: { default: null },
|
|
@@ -98423,23 +98431,23 @@ var sQ = function(e, t, n, r) {
|
|
|
98423
98431
|
emits: /*@__PURE__*/ je(["changeMode"], ["update:leftOpen"]),
|
|
98424
98432
|
setup(e, { expose: t, emit: n }) {
|
|
98425
98433
|
let r = G(null), i = G(null), o = G(null), s = e, c = n, l = a(), { t: u } = Ct(), d = xt(), f = () => {
|
|
98426
|
-
|
|
98427
|
-
}, p = G(null), m = G(null), h = G(null), g = G(""), _ = be(() => s.tableMode === "pivot" ? m.value : s.tableMode === "pivot_charts" ? h.value : p.value),
|
|
98434
|
+
v.value?.refresh();
|
|
98435
|
+
}, p = G(null), m = G(null), h = G(null), g = G(""), _ = G([]), v = be(() => s.tableMode === "pivot" ? m.value : s.tableMode === "pivot_charts" ? h.value : p.value), y = Qe(e, "leftOpen");
|
|
98428
98436
|
Be(() => {
|
|
98429
|
-
r.value =
|
|
98437
|
+
r.value = w("normal"), i.value = w("pivot"), o.value = w("pivot_charts");
|
|
98430
98438
|
}), tt(() => s.tableMode, async (e) => {
|
|
98431
98439
|
await Ne();
|
|
98432
|
-
let t = e === "pivot" ? "pivot:" : e === "pivot_charts" ? "pivotcharts:" : "", n =
|
|
98440
|
+
let t = e === "pivot" ? "pivot:" : e === "pivot_charts" ? "pivotcharts:" : "", n = v.value?.currentView?.uid || "";
|
|
98433
98441
|
window.location.hash = `${t}${n}`;
|
|
98434
98442
|
}), t({
|
|
98435
98443
|
tableProRef: p,
|
|
98436
98444
|
pivotTableRef: m,
|
|
98437
98445
|
pivotChartsRef: h,
|
|
98438
|
-
activeTableRef:
|
|
98446
|
+
activeTableRef: v
|
|
98439
98447
|
});
|
|
98440
|
-
let
|
|
98441
|
-
|
|
98442
|
-
},
|
|
98448
|
+
let x = () => {
|
|
98449
|
+
y.value = !y.value;
|
|
98450
|
+
}, S = (e, t, n) => {
|
|
98443
98451
|
let r = {
|
|
98444
98452
|
...e,
|
|
98445
98453
|
name: void 0,
|
|
@@ -98447,7 +98455,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98447
98455
|
operator_list: []
|
|
98448
98456
|
};
|
|
98449
98457
|
return n[e.name] && (r.options = n[e.name]), t[e.name] && (r.default_value = t[e.name]), ["rangepicker", "monthrangepicker"].includes(r.type) ? r.default_operator = "between" : r.default_operator = "eq", r;
|
|
98450
|
-
},
|
|
98458
|
+
}, C = () => {
|
|
98451
98459
|
let e = {};
|
|
98452
98460
|
d.query?.query_json && (e = JSON.parse(d.query?.query_json));
|
|
98453
98461
|
let t = JSON.parse(JSON.stringify({
|
|
@@ -98470,7 +98478,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98470
98478
|
n[e] = t[e];
|
|
98471
98479
|
}), n;
|
|
98472
98480
|
} else return t;
|
|
98473
|
-
},
|
|
98481
|
+
}, w = (e) => {
|
|
98474
98482
|
let t = e === "normal", n = e === "pivot", r = e === "pivot_charts", i = "", a = "";
|
|
98475
98483
|
n ? (i = "pivot-", a = "pivot:") : r && (i = "pivotcharts-", a = "pivotcharts:");
|
|
98476
98484
|
let o = s.pageConfig.is_show_normal_search || s.pageConfig.is_show_advantage, c = s.pageConfig.is_show_advantage, f = [], p = [];
|
|
@@ -98498,7 +98506,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98498
98506
|
}
|
|
98499
98507
|
} else {
|
|
98500
98508
|
let e = s.pageConfig.searchConfig;
|
|
98501
|
-
if (e) for (let t of e.fields) f.push(
|
|
98509
|
+
if (e) for (let t of e.fields) f.push(S(t, e.model || {}, e.options || {}));
|
|
98502
98510
|
}
|
|
98503
98511
|
let m = "";
|
|
98504
98512
|
window.location.hash && (m = window.location.hash.substring(1), a ? m = m.startsWith(a) ? m.substring(a.length) : "" : (m.startsWith("pivot:") || m.startsWith("pivotcharts:")) && (m = ""));
|
|
@@ -98507,7 +98515,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98507
98515
|
let e = null;
|
|
98508
98516
|
Array.isArray(s.pageConfig.advanced_base_conditions) && s.pageConfig.advanced_base_conditions.length > 0 && (e = s.pageConfig.advanced_base_conditions);
|
|
98509
98517
|
let t = [];
|
|
98510
|
-
Object.entries(
|
|
98518
|
+
Object.entries(C()).forEach(([e, n]) => {
|
|
98511
98519
|
Array.isArray(n) || (n = [n]), t.push({
|
|
98512
98520
|
field_name: e,
|
|
98513
98521
|
operator: "in",
|
|
@@ -98522,7 +98530,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98522
98530
|
op: "and",
|
|
98523
98531
|
children: t
|
|
98524
98532
|
}] : e?.length > 0 ? h = e : t?.length > 0 && (h = t);
|
|
98525
|
-
} else Object.assign(_,
|
|
98533
|
+
} else Object.assign(_, C());
|
|
98526
98534
|
g.value && (_.filter_id_key = g.value);
|
|
98527
98535
|
let v = (s.pageConfig.baseColumns || []).filter((e) => e.dataIndex !== "action");
|
|
98528
98536
|
return l.HAS_ACTION_BTN(s.pageConfig) && v.push({
|
|
@@ -98581,32 +98589,37 @@ var sQ = function(e, t, n, r) {
|
|
|
98581
98589
|
pageConfig: s.pageConfig
|
|
98582
98590
|
}
|
|
98583
98591
|
};
|
|
98584
|
-
},
|
|
98585
|
-
g.value = e, r.value =
|
|
98592
|
+
}, T = (e) => {
|
|
98593
|
+
g.value = e.filter_id_key, _.value = e.filterStrList, r.value = w("normal"), c("changeMode", "normal"), Ne(() => {
|
|
98586
98594
|
p.value.currentView = { id: "no-view" }, p.value.setViewData(null);
|
|
98587
98595
|
});
|
|
98588
|
-
},
|
|
98589
|
-
g.value = "", r.value =
|
|
98596
|
+
}, E = () => {
|
|
98597
|
+
g.value = "", r.value = w("normal");
|
|
98590
98598
|
};
|
|
98591
98599
|
return (e, t) => {
|
|
98592
|
-
let n = qe("a-
|
|
98593
|
-
return W(), xe("div", bQ, [(W(), V(ve, null, [r.value && e.tableMode === "normal" ? (W(), xe(_e, { key: 0 }, [g.value ? (W(), V(
|
|
98600
|
+
let n = qe("a-tag"), a = qe("a-alert"), s = qe("MenuFoldOutlined"), c = qe("MenuUnfoldOutlined");
|
|
98601
|
+
return W(), xe("div", bQ, [(W(), V(ve, null, [r.value && e.tableMode === "normal" ? (W(), xe(_e, { key: 0 }, [g.value ? (W(), V(a, {
|
|
98594
98602
|
key: 0,
|
|
98595
|
-
message: "当前数据通过透视表定位,关闭可恢复",
|
|
98596
98603
|
type: "warning",
|
|
98597
98604
|
closable: "",
|
|
98598
98605
|
"show-icon": "",
|
|
98599
|
-
onClose:
|
|
98606
|
+
onClose: E
|
|
98607
|
+
}, {
|
|
98608
|
+
message: K(() => [Se("div", xQ, [(W(!0), xe(_e, null, Ge(_.value, (e) => (W(), xe("span", { key: e.label }, [Ce(Xe(e.label) + ": ", 1), U(n, null, {
|
|
98609
|
+
default: K(() => [Ce(Xe(e.value), 1)]),
|
|
98610
|
+
_: 2
|
|
98611
|
+
}, 1024)]))), 128))]), t[0] ||= Se("div", null, " 当前数据已通过透视表定位,此功能为临时过滤,不会被视图记录。关闭可恢复原始数据。 ", -1)]),
|
|
98612
|
+
_: 1
|
|
98600
98613
|
})) : H("", !0), U(de, {
|
|
98601
98614
|
config: r.value,
|
|
98602
98615
|
ref_key: "tableProRef",
|
|
98603
98616
|
ref: p,
|
|
98604
98617
|
eventBus: e.eventBus
|
|
98605
98618
|
}, {
|
|
98606
|
-
header_bar_before_title: K(() => [e.pageConfig.isView ? (W(), xe("div",
|
|
98619
|
+
header_bar_before_title: K(() => [e.pageConfig.isView ? (W(), xe("div", SQ, [Se("div", {
|
|
98607
98620
|
class: "toggle-button",
|
|
98608
|
-
onClick:
|
|
98609
|
-
}, [
|
|
98621
|
+
onClick: x
|
|
98622
|
+
}, [y.value ? (W(), V(s, { key: 0 })) : (W(), V(c, { key: 1 }))])])) : H("", !0)]),
|
|
98610
98623
|
header_bar_before_btn: K(() => [U(yQ, {
|
|
98611
98624
|
modalType: e.modalType,
|
|
98612
98625
|
app_flag: e.app_flag,
|
|
@@ -98628,12 +98641,12 @@ var sQ = function(e, t, n, r) {
|
|
|
98628
98641
|
ref_key: "pivotTableRef",
|
|
98629
98642
|
ref: m,
|
|
98630
98643
|
eventBus: e.eventBus,
|
|
98631
|
-
onFilterForIdKey:
|
|
98644
|
+
onFilterForIdKey: T
|
|
98632
98645
|
}, {
|
|
98633
|
-
header_bar_before_title: K(() => [e.pageConfig.isView ? (W(), xe("div",
|
|
98646
|
+
header_bar_before_title: K(() => [e.pageConfig.isView ? (W(), xe("div", CQ, [Se("div", {
|
|
98634
98647
|
class: "toggle-button",
|
|
98635
|
-
onClick:
|
|
98636
|
-
}, [
|
|
98648
|
+
onClick: x
|
|
98649
|
+
}, [y.value ? (W(), V(s, { key: 0 })) : (W(), V(c, { key: 1 }))])])) : H("", !0)]),
|
|
98637
98650
|
header_bar_before_btn: K(() => [U(yQ, {
|
|
98638
98651
|
modalType: e.modalType,
|
|
98639
98652
|
app_flag: e.app_flag,
|
|
@@ -98656,10 +98669,10 @@ var sQ = function(e, t, n, r) {
|
|
|
98656
98669
|
ref: h,
|
|
98657
98670
|
eventBus: e.eventBus
|
|
98658
98671
|
}, {
|
|
98659
|
-
header_bar_before_title: K(() => [e.pageConfig.isView ? (W(), xe("div",
|
|
98672
|
+
header_bar_before_title: K(() => [e.pageConfig.isView ? (W(), xe("div", wQ, [Se("div", {
|
|
98660
98673
|
class: "toggle-button",
|
|
98661
|
-
onClick:
|
|
98662
|
-
}, [
|
|
98674
|
+
onClick: x
|
|
98675
|
+
}, [y.value ? (W(), V(s, { key: 0 })) : (W(), V(c, { key: 1 }))])])) : H("", !0)]),
|
|
98663
98676
|
header_bar_before_btn: K(() => [U(yQ, {
|
|
98664
98677
|
modalType: e.modalType,
|
|
98665
98678
|
app_flag: e.app_flag,
|
|
@@ -98678,10 +98691,10 @@ var sQ = function(e, t, n, r) {
|
|
|
98678
98691
|
}, 8, ["config", "eventBus"])) : H("", !0)], 1024))]);
|
|
98679
98692
|
};
|
|
98680
98693
|
}
|
|
98681
|
-
}), [["__scopeId", "data-v-
|
|
98694
|
+
}), [["__scopeId", "data-v-5a706579"]]), EQ = {
|
|
98682
98695
|
key: 0,
|
|
98683
98696
|
class: "pri-page"
|
|
98684
|
-
},
|
|
98697
|
+
}, DQ = { class: "pri-wrapper" }, OQ = { class: "right-wrapper" }, kQ = /*#__PURE__*/ m(/* @__PURE__ */ Te({
|
|
98685
98698
|
__name: "index",
|
|
98686
98699
|
setup(e) {
|
|
98687
98700
|
let t = G(!0), n = G(!1), r = G(null), i = wt(), o = G("normal"), s = a(), c = G(null), { t: d } = Ct(), f = s.currentOrg, p = xt(), m = l(), h = p.path.split("/"), g = {
|
|
@@ -98720,7 +98733,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98720
98733
|
}), ze(() => {
|
|
98721
98734
|
u()?.off("refresh", x), u()?.off("reset_and_reload", b), u()?.off("local_refresh", S);
|
|
98722
98735
|
}), (e, a) => (W(), V(On, null, {
|
|
98723
|
-
default: K(() => [n.value ? (W(), xe("div",
|
|
98736
|
+
default: K(() => [n.value ? (W(), xe("div", EQ, [Se("div", DQ, [U(ye, { name: "left-slide" }, {
|
|
98724
98737
|
default: K(() => [t.value ? (W(), xe("div", {
|
|
98725
98738
|
key: 0,
|
|
98726
98739
|
class: Pe(["left-slide-outer", { "setting-open": v.value }])
|
|
@@ -98738,7 +98751,7 @@ var sQ = function(e, t, n, r) {
|
|
|
98738
98751
|
"tableMode"
|
|
98739
98752
|
])], 2)], 2)) : H("", !0)]),
|
|
98740
98753
|
_: 1
|
|
98741
|
-
}), Se("div",
|
|
98754
|
+
}), Se("div", OQ, [U(TQ, {
|
|
98742
98755
|
pageConfig: c.value,
|
|
98743
98756
|
modalType: g.modalType,
|
|
98744
98757
|
ref_key: "rightTableRef",
|
|
@@ -98762,4 +98775,4 @@ var sQ = function(e, t, n, r) {
|
|
|
98762
98775
|
}
|
|
98763
98776
|
}), [["__scopeId", "data-v-d9ad39ea"]]);
|
|
98764
98777
|
//#endregion
|
|
98765
|
-
export { Vt as AddConditionGroupModal, p as BoldMatcher, j as CodeEditor, O as FieldRender, N as FieldRender2, en as FormRender, rn as FormRender2, P as FormRender3, Zt as GeneralFilter, M as IconSelect, E as JsonObj, T as JsonStr, C as RemoteModal, w as RemoteSelectPro, k as RemoteTreeSelectPro, ee as SearchRender, Tn as SideSearchRender, L as SmallTableSerarchField, Sn as ViewManage, A as debugCode, On as fullLayout, f as getFormConfig, br as gridPage,
|
|
98778
|
+
export { Vt as AddConditionGroupModal, p as BoldMatcher, j as CodeEditor, O as FieldRender, N as FieldRender2, en as FormRender, rn as FormRender2, P as FormRender3, Zt as GeneralFilter, M as IconSelect, E as JsonObj, T as JsonStr, C as RemoteModal, w as RemoteSelectPro, k as RemoteTreeSelectPro, ee as SearchRender, Tn as SideSearchRender, L as SmallTableSerarchField, Sn as ViewManage, A as debugCode, On as fullLayout, f as getFormConfig, br as gridPage, kQ as remotePagesV2, de as tablePro };
|