liyu-pc-base 1.0.985 → 1.0.987
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/{FieldRender-D3i6PJTs.js → FieldRender-0Qq9zXcd.js} +2 -2
- package/dist/{FieldRender2-DVdznD-F.js → FieldRender2-DsW_O7-a.js} +5 -5
- package/dist/{FormRender3-DEKzMot4.js → FormRender3-sJ27j-CK.js} +3 -3
- package/dist/{RemoteModal-Ca1pTaYZ.js → RemoteModal-DZkqi64T.js} +1 -1
- package/dist/{RemoteSelectPro-BB45o7ie.js → RemoteSelectPro-BH20NlAS.js} +3 -3
- package/dist/{SearchRender-ChqsjuUY.js → SearchRender-Dh8G6EPt.js} +1 -1
- package/dist/{TinymceEditor-RuTN5CLa.js → TinymceEditor-B6KX-4ep.js} +2 -2
- package/dist/components/index.js +10 -10
- package/dist/{components-dPNURSio.js → components-BIWVmal0.js} +10 -10
- package/dist/{dbViewConfig-DPzhYUOh.js → dbViewConfig-P5HeZ2Mc.js} +1047 -947
- package/dist/{detailTablePro-CPs1Mxjk.js → detailTablePro-9PjEyBBa.js} +1 -1
- package/dist/{function-DnoIHo24.js → function-CstOzCwb.js} +69 -66
- package/dist/index.js +1 -1
- package/dist/liyu-pc-base.css +1 -1
- package/dist/{tableModal-B_2QSE8m.js → tableModal-DBfAmrxI.js} +1 -1
- package/dist/{tablePageHost-9q2NumMy.js → tablePageHost-CXw4Whb1.js} +127 -127
- package/dist/{tablePro-BxL8FgEp.js → tablePro-DSaUt_pj.js} +4 -4
- package/dist/utils/function.js +1 -1
- package/dist/utils/hooks/useFetchData.js +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@ import { A as r, L as i, N as a, c as o, v as s, z as c } from "./init-plugin-CE
|
|
|
3
3
|
import { t as l } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
4
4
|
import { t as u } from "./lodash-CMVwnWxD.js";
|
|
5
5
|
import { getApiData as d } from "./api/api-model.js";
|
|
6
|
-
import {
|
|
6
|
+
import { L as f, Q as p, X as m, Z as h, at as g, c as _, et as v, f as y, it as b, nt as x, ot as S, rt as C, t as w, tt as T } from "./function-CstOzCwb.js";
|
|
7
7
|
import { t as E } from "./modal-tools-CZkYEwEr.js";
|
|
8
|
-
import { C as D, S as O, _ as k, b as ee, c as A, d as j, f as M, g as te, h as ne, i as re, l as ie, m as ae, p as oe, r as se, s as ce, t as le, u as ue, v as de, x as fe, y as pe } from "./tablePro-
|
|
8
|
+
import { C as D, S as O, _ as k, b as ee, c as A, d as j, f as M, g as te, h as ne, i as re, l as ie, m as ae, p as oe, r as se, s as ce, t as le, u as ue, v as de, x as fe, y as pe } from "./tablePro-DSaUt_pj.js";
|
|
9
9
|
import { n as me, r as he } from "./remotePages-CiB0soAy.js";
|
|
10
10
|
import { t as ge } from "./exceljs.min-BPhBd8yF.js";
|
|
11
11
|
import { Fragment as _e, KeepAlive as ve, Transition as ye, computed as be, createBlock as xe, createCommentVNode as N, createElementBlock as Se, createElementVNode as Ce, createTextVNode as we, createVNode as P, customRef as Te, defineComponent as F, getCurrentInstance as Ee, h as De, inject as Oe, isVNode as ke, mergeModels as Ae, mergeProps as je, nextTick as Me, normalizeClass as Ne, normalizeStyle as Pe, onActivated as Fe, onBeforeUnmount as Ie, onDeactivated as Le, onMounted as Re, onUnmounted as ze, openBlock as I, provide as Be, reactive as Ve, ref as L, render as He, renderList as Ue, renderSlot as We, resolveComponent as Ge, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as Je, unref as Ye, useModel as Xe, useSlots as Ze, watch as Qe, watchEffect as $e, withCtx as R, withModifiers as et } from "vue";
|
|
@@ -61309,7 +61309,7 @@ var HY = function(e, t, n, r) {
|
|
|
61309
61309
|
"filterForIdKeyStart"
|
|
61310
61310
|
],
|
|
61311
61311
|
setup(e, { expose: t, emit: n }) {
|
|
61312
|
-
let a = e, o = n, { t: l } = _t(), u = r(), f = i(), p = c(), m = p.userid, h = p.currentOrg, g = L(p.CHECK_AUTH(JY)),
|
|
61312
|
+
let a = e, o = n, { t: l } = _t(), u = r(), f = i(), p = c(), m = p.userid, h = p.currentOrg, g = L(p.CHECK_AUTH(JY)), v = gt(), b = qe([]), x = L(null), S = L(null), C = L(!1), w = L(0), T = vt(), E = L([]), D = L([]), O = be(() => !!a.config.enable_advanced_search_multigroups), k = null, ne = !1, le = L(null), de = L(null), fe = L(null), pe = L(null), me = L(0), he = L(null), ge = L([]), ve = L([]), ye = L([]), we = L(a.config.refreshType), Te = L(!1), F = L({
|
|
61313
61313
|
rows: [],
|
|
61314
61314
|
columns: [],
|
|
61315
61315
|
values: [],
|
|
@@ -61358,7 +61358,7 @@ var HY = function(e, t, n, r) {
|
|
|
61358
61358
|
let Ae = be(() => a.config.search_type === "simple" ? a.config.search_type : "advanced"), je = be(() => a.config?.is_view !== !1), Me = L({}), Ne = ({ type: e = "pivot_table", viewData: t = null, matchFields: n = null, matchValueId: r = null } = {}) => {
|
|
61359
61359
|
let i = { ...a.config.query_params || {} };
|
|
61360
61360
|
if (e === "pivot_table" ? i.pivot_table_config = F.value : e === "pivot_table_match" && (i.pivot_table_config = F.value, i.match_fields = n, i.match_value_id = r), Ae.value === "advanced") if (O.value) {
|
|
61361
|
-
let e = (t ? t.searchGroups || [] : D.value).map((e) =>
|
|
61361
|
+
let e = (t ? t.searchGroups || [] : D.value).map((e) => _(e.conditions)).filter((e) => e.length > 0), n = _(a.config.base_conditions), r = [];
|
|
61362
61362
|
e.length > 0 && r.push({
|
|
61363
61363
|
op: "and",
|
|
61364
61364
|
children: e
|
|
@@ -61366,8 +61366,8 @@ var HY = function(e, t, n, r) {
|
|
|
61366
61366
|
op: "and",
|
|
61367
61367
|
children: n
|
|
61368
61368
|
}), i.conditions = r;
|
|
61369
|
-
} else i.conditions = [[...
|
|
61370
|
-
else if (Ae.value === "simple") for (let e of
|
|
61369
|
+
} else i.conditions = [[..._(a.config.base_conditions), ..._(t ? t.searchConditions || [] : E.value)]];
|
|
61370
|
+
else if (Ae.value === "simple") for (let e of _(t ? t.searchConditions || [] : E.value)) {
|
|
61371
61371
|
let t = oe(e.operator, e), n = e.value;
|
|
61372
61372
|
t === 1 && (n = n[0]), i[e.field_name] = n;
|
|
61373
61373
|
}
|
|
@@ -61382,11 +61382,11 @@ var HY = function(e, t, n, r) {
|
|
|
61382
61382
|
return o && (i.required_condition = o), a.config.get_db_alias && (i.db_alias = a.config.get_db_alias()), a.config.pivot_table_max_records && (i.max_records = a.config.pivot_table_max_records), i;
|
|
61383
61383
|
}, [Fe, Ie, { setFull: Le, exitFull: He }] = te(), Ke = async (e) => {
|
|
61384
61384
|
if (!Ze.value) {
|
|
61385
|
-
|
|
61385
|
+
b.value = [], ke.current = 1, ke.total = 0;
|
|
61386
61386
|
return;
|
|
61387
61387
|
}
|
|
61388
61388
|
let t = Ne({ type: "pivot_table" });
|
|
61389
|
-
|
|
61389
|
+
b.value = [];
|
|
61390
61390
|
let n = a.config.pivot_table_url, r;
|
|
61391
61391
|
try {
|
|
61392
61392
|
r = a.config.query_data_func ? await a.config.query_data_func(t) : await d(t, n.replace("__tree", ""), n.includes("__tree"), { api_log: `pivotTable ${a.config.key} ${a.config.title}` });
|
|
@@ -61395,8 +61395,8 @@ var HY = function(e, t, n, r) {
|
|
|
61395
61395
|
}
|
|
61396
61396
|
if (k !== e) return;
|
|
61397
61397
|
let i = r.records || r.data || [], s = r.total ?? i.length;
|
|
61398
|
-
x.value = r.rowTree || null, S.value = r.columnTree || null, a.config.process_data_func ?
|
|
61399
|
-
data:
|
|
61398
|
+
x.value = r.rowTree || null, S.value = r.columnTree || null, a.config.process_data_func ? b.value = a.config.process_data_func(i) : b.value = i, ke.current = 1, ke.total = s, o("dataChange", {
|
|
61399
|
+
data: b.value,
|
|
61400
61400
|
current: 1,
|
|
61401
61401
|
total: s
|
|
61402
61402
|
});
|
|
@@ -61442,7 +61442,7 @@ var HY = function(e, t, n, r) {
|
|
|
61442
61442
|
key: t,
|
|
61443
61443
|
label: et(e)
|
|
61444
61444
|
};
|
|
61445
|
-
})), it = be(() =>
|
|
61445
|
+
})), it = be(() => b.value), at = [{
|
|
61446
61446
|
text: "复制",
|
|
61447
61447
|
menuKey: "copy"
|
|
61448
61448
|
}], ot = be(() => {
|
|
@@ -61702,7 +61702,7 @@ var HY = function(e, t, n, r) {
|
|
|
61702
61702
|
});
|
|
61703
61703
|
}
|
|
61704
61704
|
}), E.value = e, O.value && (a.config.default_advanced_search_multigroups ? D.value = a.config.default_advanced_search_multigroups : D.value = [{
|
|
61705
|
-
id:
|
|
61705
|
+
id: y(),
|
|
61706
61706
|
conditions: [...e],
|
|
61707
61707
|
viewSearchConfig: {}
|
|
61708
61708
|
}], E.value = []), je.value && bt.value?.id !== "no-view") {
|
|
@@ -61756,11 +61756,11 @@ var HY = function(e, t, n, r) {
|
|
|
61756
61756
|
return;
|
|
61757
61757
|
}
|
|
61758
61758
|
e.columns && (mt.value = e.columns), O.value ? (e.searchGroups && e.searchGroups.length > 0 ? D.value = e.searchGroups : e.searchConditions && (D.value = [{
|
|
61759
|
-
id:
|
|
61759
|
+
id: y(),
|
|
61760
61760
|
conditions: e.searchConditions,
|
|
61761
61761
|
viewSearchConfig: e.searchConfig || {}
|
|
61762
61762
|
}]), D.value.length === 0 && (D.value = [{
|
|
61763
|
-
id:
|
|
61763
|
+
id: y(),
|
|
61764
61764
|
conditions: [],
|
|
61765
61765
|
viewSearchConfig: {}
|
|
61766
61766
|
}]), E.value = []) : (e.searchConfig && (Me.value = e.searchConfig), e.searchConditions && (E.value = e.searchConditions)), e.tableSize && (ke.tableSize = e.tableSize), e.refreshType && (we.value = e.refreshType), e.pivotConfig && (F.value = e.pivotConfig), e.pivotColumnWidths && (St.value = Dt(e.pivotColumnWidths)), e.pivotRowHeaderWidths && (Ct.value = Dt(e.pivotRowHeaderWidths)), a.config.set_view_callback && a.config.set_view_callback({ viewData: e }), await Je(), xt.value = !1;
|
|
@@ -61810,7 +61810,7 @@ var HY = function(e, t, n, r) {
|
|
|
61810
61810
|
pivotConfig: F,
|
|
61811
61811
|
refresh: Nt,
|
|
61812
61812
|
init: It,
|
|
61813
|
-
dataSource:
|
|
61813
|
+
dataSource: b,
|
|
61814
61814
|
get vTableInstance() {
|
|
61815
61815
|
return he.value?.vTableInstance || null;
|
|
61816
61816
|
},
|
|
@@ -61878,9 +61878,9 @@ var HY = function(e, t, n, r) {
|
|
|
61878
61878
|
config: e.config,
|
|
61879
61879
|
auth_batch_update_list: ge.value,
|
|
61880
61880
|
auth_head_btn_list: ve.value,
|
|
61881
|
-
dataSource:
|
|
61881
|
+
dataSource: b.value,
|
|
61882
61882
|
current_org: Ye(h),
|
|
61883
|
-
router: Ye(
|
|
61883
|
+
router: Ye(v),
|
|
61884
61884
|
selfEventBus: Ye(T),
|
|
61885
61885
|
loading: C.value,
|
|
61886
61886
|
screenState: Ye(Ie),
|
|
@@ -61936,7 +61936,7 @@ var HY = function(e, t, n, r) {
|
|
|
61936
61936
|
percent: w.value,
|
|
61937
61937
|
size: [80, 14],
|
|
61938
61938
|
"stroke-color": "#1677ff"
|
|
61939
|
-
}, null, 8, ["percent"])])) : N("", !0)])) : N("", !0), Ze.value ? (I(), Se(_e, { key: 1 }, [
|
|
61939
|
+
}, null, 8, ["percent"])])) : N("", !0)])) : N("", !0), Ze.value ? (I(), Se(_e, { key: 1 }, [b.value?.length > 0 || !C.value ? (I(), xe(Ye(eY), {
|
|
61940
61940
|
key: 0,
|
|
61941
61941
|
ref_key: "pivotTableRef",
|
|
61942
61942
|
ref: he,
|
|
@@ -62006,7 +62006,7 @@ var HY = function(e, t, n, r) {
|
|
|
62006
62006
|
},
|
|
62007
62007
|
emits: ["dataChange"],
|
|
62008
62008
|
setup(e, { expose: t, emit: n }) {
|
|
62009
|
-
let a = e, o = n, { t: l } = _t(), u = r(), f = i(), p = c(), m = p.userid, h = p.currentOrg, g = L(p.CHECK_AUTH(QY)),
|
|
62009
|
+
let a = e, o = n, { t: l } = _t(), u = r(), f = i(), p = c(), m = p.userid, h = p.currentOrg, g = L(p.CHECK_AUTH(QY)), v = gt(), b = L([]), x = L(!1), S = vt(), C = L([]), w = L([]), T = be(() => !!a.config.enable_advanced_search_multigroups), E = null, D = L(null), O = L(null), k = L(null), ne = L(null), le = L(0), ue = L(null), de = L(null), fe = null, pe = L([]), me = L([]), he = L([]), ge = L(a.config.refreshType), _e = L(!1), ve = L({
|
|
62010
62010
|
series: [],
|
|
62011
62011
|
category: [],
|
|
62012
62012
|
values: [],
|
|
@@ -62033,7 +62033,7 @@ var HY = function(e, t, n, r) {
|
|
|
62033
62033
|
a.config.base_column_fields && e.push(...a.config.base_column_fields), r.is_pagination = !1;
|
|
62034
62034
|
}
|
|
62035
62035
|
if (Te.value === "advanced") if (T.value) {
|
|
62036
|
-
let e = (t ? t.searchGroups || [] : w.value).map((e) =>
|
|
62036
|
+
let e = (t ? t.searchGroups || [] : w.value).map((e) => _(e.conditions)).filter((e) => e.length > 0), n = _(a.config.base_conditions), i = [];
|
|
62037
62037
|
e.length > 0 && i.push({
|
|
62038
62038
|
op: "and",
|
|
62039
62039
|
children: e
|
|
@@ -62041,8 +62041,8 @@ var HY = function(e, t, n, r) {
|
|
|
62041
62041
|
op: "and",
|
|
62042
62042
|
children: n
|
|
62043
62043
|
}), r.conditions = i;
|
|
62044
|
-
} else r.conditions = [[...
|
|
62045
|
-
else if (Te.value === "simple") for (let e of
|
|
62044
|
+
} else r.conditions = [[..._(a.config.base_conditions), ..._(t ? t.searchConditions || [] : C.value)]];
|
|
62045
|
+
else if (Te.value === "simple") for (let e of _(t ? t.searchConditions || [] : C.value)) {
|
|
62046
62046
|
let t = oe(e.operator, e), n = e.value;
|
|
62047
62047
|
t === 1 && (n = n[0]), r[e.field_name] = n;
|
|
62048
62048
|
}
|
|
@@ -62066,7 +62066,7 @@ var HY = function(e, t, n, r) {
|
|
|
62066
62066
|
x.value = !0;
|
|
62067
62067
|
let t = De({ type: "list" }), n = a.config.pivot_charts_url, r;
|
|
62068
62068
|
if (r = a.config.query_data_func ? await a.config.query_data_func(t) : await d(t, n.replace("__tree", ""), n.includes("__tree"), { api_log: `pivotCharts ${a.config.key} ${a.config.title}` }), E !== e) return;
|
|
62069
|
-
a.config.process_data_func && (
|
|
62069
|
+
a.config.process_data_func && (b.value = a.config.process_data_func(r || [])), ye.value = r, He(), o("dataChange", { data: b.value });
|
|
62070
62070
|
} finally {
|
|
62071
62071
|
if (E !== e) return;
|
|
62072
62072
|
x.value = !1;
|
|
@@ -62253,7 +62253,7 @@ var HY = function(e, t, n, r) {
|
|
|
62253
62253
|
});
|
|
62254
62254
|
}
|
|
62255
62255
|
}), C.value = e, T.value && (a.config.default_advanced_search_multigroups ? w.value = a.config.default_advanced_search_multigroups : w.value = [{
|
|
62256
|
-
id:
|
|
62256
|
+
id: y(),
|
|
62257
62257
|
conditions: [...e],
|
|
62258
62258
|
viewSearchConfig: {}
|
|
62259
62259
|
}], C.value = []), F.value && Xe.value?.id !== "no-view") {
|
|
@@ -62304,11 +62304,11 @@ var HY = function(e, t, n, r) {
|
|
|
62304
62304
|
return;
|
|
62305
62305
|
}
|
|
62306
62306
|
e.columns && (qe.value = e.columns), T.value ? (e.searchGroups && e.searchGroups.length > 0 ? w.value = e.searchGroups : e.searchConditions && (w.value = [{
|
|
62307
|
-
id:
|
|
62307
|
+
id: y(),
|
|
62308
62308
|
conditions: e.searchConditions,
|
|
62309
62309
|
viewSearchConfig: e.searchConfig || {}
|
|
62310
62310
|
}]), w.value.length === 0 && (w.value = [{
|
|
62311
|
-
id:
|
|
62311
|
+
id: y(),
|
|
62312
62312
|
conditions: [],
|
|
62313
62313
|
viewSearchConfig: {}
|
|
62314
62314
|
}]), C.value = []) : (e.searchConfig && (Ee.value = e.searchConfig), e.searchConditions && (C.value = e.searchConditions)), e.refreshType && (ge.value = e.refreshType), e.pivotChartsConfig && (ve.value = e.pivotChartsConfig), a.config.set_view_callback && a.config.set_view_callback({ viewData: e }), await rt(), Ze.value = !1;
|
|
@@ -62360,7 +62360,7 @@ var HY = function(e, t, n, r) {
|
|
|
62360
62360
|
pivotChartsConfig: ve,
|
|
62361
62361
|
refresh: rt,
|
|
62362
62362
|
init: ot,
|
|
62363
|
-
dataSource:
|
|
62363
|
+
dataSource: b,
|
|
62364
62364
|
get echartsInstance() {
|
|
62365
62365
|
return fe;
|
|
62366
62366
|
},
|
|
@@ -62428,9 +62428,9 @@ var HY = function(e, t, n, r) {
|
|
|
62428
62428
|
config: e.config,
|
|
62429
62429
|
auth_batch_update_list: pe.value,
|
|
62430
62430
|
auth_head_btn_list: me.value,
|
|
62431
|
-
dataSource:
|
|
62431
|
+
dataSource: b.value,
|
|
62432
62432
|
current_org: Ye(h),
|
|
62433
|
-
router: Ye(
|
|
62433
|
+
router: Ye(v),
|
|
62434
62434
|
selfEventBus: Ye(S),
|
|
62435
62435
|
loading: x.value,
|
|
62436
62436
|
screenState: Ye(ke),
|
|
@@ -63280,13 +63280,13 @@ function LX(e, t) {
|
|
|
63280
63280
|
}
|
|
63281
63281
|
function RX(e, t) {
|
|
63282
63282
|
if (!kX(e)) return e;
|
|
63283
|
-
let n = JSON.parse(JSON.stringify(e)), r = (e) => (e && !e.id && (e.id =
|
|
63283
|
+
let n = JSON.parse(JSON.stringify(e)), r = (e) => (e && !e.id && (e.id = y()), e), i = (e) => {
|
|
63284
63284
|
(e || []).forEach((e) => {
|
|
63285
63285
|
Array.isArray(e.fields) ? r(e) : e.field ? (e.fields = [{
|
|
63286
63286
|
field: e.field,
|
|
63287
63287
|
label: e.label,
|
|
63288
63288
|
processFunc: e.processFunc
|
|
63289
|
-
}], e.id = e.id ||
|
|
63289
|
+
}], e.id = e.id || y(), delete e.field) : e.id = e.id || y();
|
|
63290
63290
|
});
|
|
63291
63291
|
}, a = t === "pivot" ? n.pivotConfig : t === "pivot_charts" ? n.pivotChartsConfig : null;
|
|
63292
63292
|
return a && kX(a) && (t === "pivot" ? (i(a.rows), i(a.columns), (a.values || []).forEach(r), (a.subExpressions || []).forEach(r), (a.aggComputedValues || []).forEach(r)) : (i(a.series), i(a.category), (a.values || []).forEach(r), (a.subExpressions || []).forEach(r), (a.aggComputedValues || []).forEach(r))), n;
|
|
@@ -63305,96 +63305,96 @@ function zX(e, t, n) {
|
|
|
63305
63305
|
}
|
|
63306
63306
|
//#endregion
|
|
63307
63307
|
//#region src/components/remotePages/v2/ai-view-ability-schemas.ts
|
|
63308
|
-
var BX =
|
|
63309
|
-
|
|
63310
|
-
|
|
63311
|
-
|
|
63312
|
-
], { description: "视图类型: normal(标准) / pivot(透视表) / pivot_charts(透视图)" }), VX =
|
|
63308
|
+
var BX = h([
|
|
63309
|
+
T("normal"),
|
|
63310
|
+
T("pivot"),
|
|
63311
|
+
T("pivot_charts")
|
|
63312
|
+
], { description: "视图类型: normal(标准) / pivot(透视表) / pivot_charts(透视图)" }), VX = b(h([BX, v()], { description: "可选视图类型。省略或传 null 时表示全部支持类型" })), HX = p({
|
|
63313
63313
|
description: "视图 uid(优先)",
|
|
63314
63314
|
minLength: 1
|
|
63315
|
-
}), UX =
|
|
63315
|
+
}), UX = p({
|
|
63316
63316
|
description: "视图名称",
|
|
63317
63317
|
minLength: 1
|
|
63318
|
-
}), WX =
|
|
63318
|
+
}), WX = g({ description: "完整页面能力配置对象。字段名、枚举和值结构必须来自 page_view_config_data 返回的数据。" }), GX = h([T("create"), T("temporary")], {
|
|
63319
63319
|
description: "create=保存为新视图, temporary=仅临时应用到当前页面",
|
|
63320
63320
|
default: "create"
|
|
63321
|
-
}), KX =
|
|
63321
|
+
}), KX = h([T("personal"), T("public")], {
|
|
63322
63322
|
description: "create 模式下可见性,默认 personal",
|
|
63323
63323
|
default: "personal"
|
|
63324
|
-
}), qX =
|
|
63324
|
+
}), qX = C({ view_type: VX }, {
|
|
63325
63325
|
description: "判断当前页面支持哪些视图类型。view_type 省略时返回全部支持情况。",
|
|
63326
63326
|
additionalProperties: !1
|
|
63327
|
-
}), JX =
|
|
63327
|
+
}), JX = C({ view_type: BX }, {
|
|
63328
63328
|
description: "获取构造指定类型视图配置所需的字段清单、搜索字段、现有视图和样例数据。",
|
|
63329
63329
|
additionalProperties: !1
|
|
63330
|
-
}), YX =
|
|
63330
|
+
}), YX = C({
|
|
63331
63331
|
view_type: BX,
|
|
63332
|
-
uid:
|
|
63333
|
-
name:
|
|
63332
|
+
uid: b(HX),
|
|
63333
|
+
name: b(UX)
|
|
63334
63334
|
}, {
|
|
63335
63335
|
description: "按 uid 或名称定位已有视图。uid 优先。",
|
|
63336
63336
|
additionalProperties: !1
|
|
63337
|
-
}), XX =
|
|
63337
|
+
}), XX = C({
|
|
63338
63338
|
view_type: BX,
|
|
63339
|
-
apply_mode:
|
|
63340
|
-
name:
|
|
63339
|
+
apply_mode: b(GX),
|
|
63340
|
+
name: b(p({
|
|
63341
63341
|
description: "视图名称。apply_mode=create 时必填",
|
|
63342
63342
|
minLength: 1
|
|
63343
63343
|
})),
|
|
63344
63344
|
view_data: WX,
|
|
63345
|
-
is_system:
|
|
63346
|
-
visibility:
|
|
63347
|
-
activate:
|
|
63345
|
+
is_system: b(x({ description: "是否设为系统视图" })),
|
|
63346
|
+
visibility: b(KX),
|
|
63347
|
+
activate: b(x({ description: "create 模式下创建后是否切换,默认 true" }))
|
|
63348
63348
|
}, {
|
|
63349
63349
|
description: "配置视图。支持创建新视图或临时应用配置。",
|
|
63350
63350
|
additionalProperties: !1
|
|
63351
|
-
}), ZX =
|
|
63351
|
+
}), ZX = C({
|
|
63352
63352
|
view_type: BX,
|
|
63353
|
-
uid:
|
|
63354
|
-
name:
|
|
63353
|
+
uid: b(HX),
|
|
63354
|
+
name: b(UX),
|
|
63355
63355
|
view_data: WX,
|
|
63356
|
-
is_system:
|
|
63356
|
+
is_system: b(x({ description: "是否同步更新系统视图标记" }))
|
|
63357
63357
|
}, {
|
|
63358
63358
|
description: "覆盖更新已有视图的完整配置。",
|
|
63359
63359
|
additionalProperties: !1
|
|
63360
|
-
}), QX =
|
|
63361
|
-
|
|
63362
|
-
|
|
63363
|
-
|
|
63360
|
+
}), QX = h([
|
|
63361
|
+
T("current"),
|
|
63362
|
+
T("view"),
|
|
63363
|
+
T("new")
|
|
63364
63364
|
], {
|
|
63365
63365
|
description: "增量更新的落点:current(默认)=只作用到当前页面显示、不落库;view=增量覆盖某个已有视图并落库;new=以「当前页面配置 + patch」为内容新建一个视图。",
|
|
63366
63366
|
default: "current"
|
|
63367
|
-
}), $X =
|
|
63367
|
+
}), $X = h([T("merge"), T("only")], {
|
|
63368
63368
|
description: "列的处理范围:merge(默认)=只覆盖 patch.columns 里写到的列,其余列保持当前值;only=先把「当前可见列」全部关掉,只保留 patch.columns 里写到的列(用于「只看某几列」)。",
|
|
63369
63369
|
default: "merge"
|
|
63370
|
-
}), eZ =
|
|
63370
|
+
}), eZ = C({
|
|
63371
63371
|
view_type: VX,
|
|
63372
|
-
target:
|
|
63373
|
-
uid:
|
|
63374
|
-
name:
|
|
63372
|
+
target: b(QX),
|
|
63373
|
+
uid: b(HX),
|
|
63374
|
+
name: b(p({
|
|
63375
63375
|
description: "target=view 时用于定位已有视图;target=new 时作为新视图名称(必填)",
|
|
63376
63376
|
minLength: 1
|
|
63377
63377
|
})),
|
|
63378
|
-
visibility:
|
|
63379
|
-
is_system:
|
|
63380
|
-
activate:
|
|
63381
|
-
columns_scope:
|
|
63382
|
-
unset_columns:
|
|
63383
|
-
unset:
|
|
63384
|
-
patch:
|
|
63385
|
-
dry_run:
|
|
63386
|
-
prune_invalid_fields:
|
|
63378
|
+
visibility: b(KX),
|
|
63379
|
+
is_system: b(x({ description: "target=new 时是否创建为系统视图(需要 view_system_edit 权限)" })),
|
|
63380
|
+
activate: b(x({ description: "target=new 时创建后是否切换过去,默认 true" })),
|
|
63381
|
+
columns_scope: b($X),
|
|
63382
|
+
unset_columns: b(S(p({ minLength: 1 }), { description: "要恢复「页面默认显隐」的列(删掉这些列的覆盖项)" })),
|
|
63383
|
+
unset: b(S(p({ minLength: 1 }), { description: "要恢复「页面默认」的顶层键,如 [\"sortedList\"]、[\"columns\"]" })),
|
|
63384
|
+
patch: b(g({ description: "只写要改的部分(与 view_data 同构)。columns 逐列、searchGroups 逐条件、pivotConfig 逐子键;未出现的键/列/字段一律保持当前值。" })),
|
|
63385
|
+
dry_run: b(x({ description: "true=只计算并返回改动结果(changed_keys/可见列/预览),不实际应用" })),
|
|
63386
|
+
prune_invalid_fields: b(x({
|
|
63387
63387
|
description: "默认 true:自动剔除基座(当前生效配置)里「本页已不存在」的字段引用(如平台已删除的旧列残留在老视图里),避免一个历史字段让本次增量整单报错。剔除了哪些会在返回的 pruned_fields 里列出。设为 false 则严格校验,基座含非法字段时直接报错。",
|
|
63388
63388
|
default: !0
|
|
63389
63389
|
}))
|
|
63390
63390
|
}, {
|
|
63391
63391
|
description: "对视图数据做增量(局部)更新:只提交要改的部分,不要求提供全量配置。target 决定落点(当前页面临时 / 已有视图 / 新建视图)。",
|
|
63392
63392
|
additionalProperties: !1
|
|
63393
|
-
}), tZ =
|
|
63393
|
+
}), tZ = C({
|
|
63394
63394
|
view_type: BX,
|
|
63395
|
-
uid:
|
|
63396
|
-
name:
|
|
63397
|
-
new_name:
|
|
63395
|
+
uid: b(HX),
|
|
63396
|
+
name: b(UX),
|
|
63397
|
+
new_name: p({
|
|
63398
63398
|
description: "新的视图名称",
|
|
63399
63399
|
minLength: 1
|
|
63400
63400
|
})
|
|
@@ -63788,9 +63788,9 @@ var vZ = (e, t) => {
|
|
|
63788
63788
|
}),
|
|
63789
63789
|
emits: /*@__PURE__*/ Ae(["changeMode", "heightlightRowChange"], ["update:leftOpen", "update:heightlightRowKey"]),
|
|
63790
63790
|
setup(e, { expose: t, emit: n }) {
|
|
63791
|
-
let i = L(null), a = L(null), s = L(null), l = e, u = n,
|
|
63791
|
+
let i = L(null), a = L(null), s = L(null), l = e, u = n, p = c(), { t: h } = _t(), g = ht(), _ = () => {
|
|
63792
63792
|
E.value?.refresh();
|
|
63793
|
-
}, v = L(null),
|
|
63793
|
+
}, v = L(null), b = L(null), x = L(null), S = L(""), C = L([]), w = L(""), T = L(!1), E = be(() => l.tableMode === "pivot" ? b.value : l.tableMode === "pivot_charts" ? x.value : v.value), k = Xe(e, "leftOpen"), ee = Xe(e, "heightlightRowKey");
|
|
63794
63794
|
Re(() => {
|
|
63795
63795
|
i.value = at("normal"), a.value = at("pivot"), s.value = at("pivot_charts"), l.enable_ai_abilities && ne();
|
|
63796
63796
|
});
|
|
@@ -63811,7 +63811,7 @@ var vZ = (e, t) => {
|
|
|
63811
63811
|
}, M = [], te = () => {
|
|
63812
63812
|
M.forEach((e) => e()), M.length = 0;
|
|
63813
63813
|
}, ne = () => {
|
|
63814
|
-
te(), M.push(
|
|
63814
|
+
te(), M.push(f({
|
|
63815
63815
|
name: "view_capability",
|
|
63816
63816
|
toolName: "page_view_capability",
|
|
63817
63817
|
label: "判断页面能否配置视图",
|
|
@@ -63819,7 +63819,7 @@ var vZ = (e, t) => {
|
|
|
63819
63819
|
promptGuidelines: ["view_type 可选;省略时返回全部支持情况", "supported=false 时按 reason 如实告知用户,不要继续执行视图操作"],
|
|
63820
63820
|
parameters: qX,
|
|
63821
63821
|
execute: je
|
|
63822
|
-
}),
|
|
63822
|
+
}), f({
|
|
63823
63823
|
name: "view_config_data",
|
|
63824
63824
|
toolName: "page_view_config_data",
|
|
63825
63825
|
label: "获取视图配置所需数据",
|
|
@@ -63827,7 +63827,7 @@ var vZ = (e, t) => {
|
|
|
63827
63827
|
promptGuidelines: ["构造 view_data 前必须先调用", "返回的 columns / search_config 是字段名与枚举的唯一依据"],
|
|
63828
63828
|
parameters: JX,
|
|
63829
63829
|
execute: Ne
|
|
63830
|
-
}),
|
|
63830
|
+
}), f({
|
|
63831
63831
|
name: "view_get",
|
|
63832
63832
|
toolName: "page_view_get",
|
|
63833
63833
|
label: "读取已有视图配置",
|
|
@@ -63835,7 +63835,7 @@ var vZ = (e, t) => {
|
|
|
63835
63835
|
promptGuidelines: ["uid 或 name 至少提供一个(uid 优先)"],
|
|
63836
63836
|
parameters: YX,
|
|
63837
63837
|
execute: Pe
|
|
63838
|
-
}),
|
|
63838
|
+
}), f({
|
|
63839
63839
|
name: "view_config",
|
|
63840
63840
|
toolName: "page_view_config",
|
|
63841
63841
|
aliases: ["view_add", "page_view_add"],
|
|
@@ -63850,7 +63850,7 @@ var vZ = (e, t) => {
|
|
|
63850
63850
|
timeoutMs: 6e4,
|
|
63851
63851
|
write: !0,
|
|
63852
63852
|
execute: Ie
|
|
63853
|
-
}),
|
|
63853
|
+
}), f({
|
|
63854
63854
|
name: "view_update",
|
|
63855
63855
|
toolName: "page_view_update",
|
|
63856
63856
|
label: "更新视图配置",
|
|
@@ -63860,7 +63860,7 @@ var vZ = (e, t) => {
|
|
|
63860
63860
|
timeoutMs: 6e4,
|
|
63861
63861
|
write: !0,
|
|
63862
63862
|
execute: qe
|
|
63863
|
-
}),
|
|
63863
|
+
}), f({
|
|
63864
63864
|
name: "view_patch",
|
|
63865
63865
|
toolName: "page_view_patch",
|
|
63866
63866
|
aliases: ["view_patch_update"],
|
|
@@ -63880,7 +63880,7 @@ var vZ = (e, t) => {
|
|
|
63880
63880
|
timeoutMs: 6e4,
|
|
63881
63881
|
write: !0,
|
|
63882
63882
|
execute: $e
|
|
63883
|
-
}),
|
|
63883
|
+
}), f({
|
|
63884
63884
|
name: "view_goto",
|
|
63885
63885
|
toolName: "page_view_goto",
|
|
63886
63886
|
label: "跳转到已有视图",
|
|
@@ -63888,7 +63888,7 @@ var vZ = (e, t) => {
|
|
|
63888
63888
|
promptGuidelines: ["uid 或 name 至少提供一个(uid 优先)"],
|
|
63889
63889
|
parameters: YX,
|
|
63890
63890
|
execute: Be
|
|
63891
|
-
}),
|
|
63891
|
+
}), f({
|
|
63892
63892
|
name: "view_rename",
|
|
63893
63893
|
toolName: "page_view_rename",
|
|
63894
63894
|
label: "重命名视图",
|
|
@@ -63897,7 +63897,7 @@ var vZ = (e, t) => {
|
|
|
63897
63897
|
parameters: tZ,
|
|
63898
63898
|
write: !0,
|
|
63899
63899
|
execute: Ve
|
|
63900
|
-
}),
|
|
63900
|
+
}), f({
|
|
63901
63901
|
name: "view_delete",
|
|
63902
63902
|
toolName: "page_view_delete",
|
|
63903
63903
|
label: "删除视图",
|
|
@@ -63906,7 +63906,7 @@ var vZ = (e, t) => {
|
|
|
63906
63906
|
parameters: YX,
|
|
63907
63907
|
write: !0,
|
|
63908
63908
|
execute: He
|
|
63909
|
-
}),
|
|
63909
|
+
}), f({
|
|
63910
63910
|
name: "view_set_default",
|
|
63911
63911
|
toolName: "page_view_set_default",
|
|
63912
63912
|
label: "设为默认视图",
|
|
@@ -63915,19 +63915,19 @@ var vZ = (e, t) => {
|
|
|
63915
63915
|
parameters: YX,
|
|
63916
63916
|
write: !0,
|
|
63917
63917
|
execute: We
|
|
63918
|
-
})), M.push(
|
|
63918
|
+
})), M.push(m({
|
|
63919
63919
|
label: "条件查询",
|
|
63920
63920
|
sendDirect: !1,
|
|
63921
63921
|
prompt: "请根据下面的查询条件,不创建或保存视图,直接在当前页面进行数据查询展示(view_config,apply_mode=temporary,view_type=normal):\n"
|
|
63922
|
-
}),
|
|
63922
|
+
}), m({
|
|
63923
63923
|
label: "新建标准视图",
|
|
63924
63924
|
sendDirect: !1,
|
|
63925
63925
|
prompt: "请帮我新建一个标准视图。先调用页面能力获取视图配置所需数据(view_type=normal),再按下面的要求创建并应用到当前页面(apply_mode=create):\n"
|
|
63926
|
-
}),
|
|
63926
|
+
}), m({
|
|
63927
63927
|
label: "新建透视表",
|
|
63928
63928
|
sendDirect: !1,
|
|
63929
63929
|
prompt: "请帮我新建一个透视表视图。先调用页面能力获取视图配置所需数据(view_type=pivot),再按下面的行/列/值及汇总方式要求创建并应用(apply_mode=create):\n"
|
|
63930
|
-
}),
|
|
63930
|
+
}), m({
|
|
63931
63931
|
label: "新建透视图",
|
|
63932
63932
|
sendDirect: !1,
|
|
63933
63933
|
prompt: "请帮我新建一个透视图视图。先调用页面能力获取视图配置所需数据(view_type=pivot_charts),再按下面的维度/值/图表类型要求创建并应用(apply_mode=create):\n"
|
|
@@ -63943,7 +63943,7 @@ var vZ = (e, t) => {
|
|
|
63943
63943
|
});
|
|
63944
63944
|
let re = () => {
|
|
63945
63945
|
k.value = !k.value;
|
|
63946
|
-
}, ie = be(() => l.pageConfig?.isView && !["top_tag", "top_tag_flat"].includes(l.view_display_type)), ae = L(
|
|
63946
|
+
}, ie = be(() => l.pageConfig?.isView && !["top_tag", "top_tag_flat"].includes(l.view_display_type)), ae = L(p.CHECK_AUTH(OZ)), oe = r(), se = (e) => e === "pivot" ? b : e === "pivot_charts" ? x : v, ce = (e) => `table_pro_${e === "pivot" ? "pivot-" : e === "pivot_charts" ? "pivotcharts-" : ""}${l.view_key_namespace}-${l.modalType}`, ue = (e) => !!l.pageConfig.queryData, me = () => g.query?.customTitle || g.meta.title || "", he = async (e) => {
|
|
63947
63947
|
let t = se(e).value, n = await Oe(e);
|
|
63948
63948
|
return {
|
|
63949
63949
|
view_type: e,
|
|
@@ -64000,8 +64000,8 @@ var vZ = (e, t) => {
|
|
|
64000
64000
|
}), Ee = async (e) => {
|
|
64001
64001
|
try {
|
|
64002
64002
|
let t = await d({
|
|
64003
|
-
user_id:
|
|
64004
|
-
org_id:
|
|
64003
|
+
user_id: p.userid,
|
|
64004
|
+
org_id: p.currentOrg?.id,
|
|
64005
64005
|
view_project__flag: oe.VITE_APP_VIEW_PROJECT_FLAG,
|
|
64006
64006
|
view_menu__flag: ce(e),
|
|
64007
64007
|
sort_fields: ["sort", "create_time"],
|
|
@@ -64128,8 +64128,8 @@ var vZ = (e, t) => {
|
|
|
64128
64128
|
let c = e?.visibility === "public" ? "public" : "personal", u = RX(r, t), d;
|
|
64129
64129
|
try {
|
|
64130
64130
|
d = await de({
|
|
64131
|
-
org_id:
|
|
64132
|
-
user_id: i || c === "public" ? null :
|
|
64131
|
+
org_id: p.currentOrg?.id,
|
|
64132
|
+
user_id: i || c === "public" ? null : p.userid,
|
|
64133
64133
|
name: String(n).trim(),
|
|
64134
64134
|
view_project__flag: oe.VITE_APP_VIEW_PROJECT_FLAG,
|
|
64135
64135
|
view_menu__flag: ce(t),
|
|
@@ -64140,11 +64140,11 @@ var vZ = (e, t) => {
|
|
|
64140
64140
|
} catch (e) {
|
|
64141
64141
|
return F(`创建视图失败: ${e?.message || e || "未知错误"}`);
|
|
64142
64142
|
}
|
|
64143
|
-
let
|
|
64144
|
-
if (
|
|
64145
|
-
await
|
|
64143
|
+
let f = se(t).value;
|
|
64144
|
+
if (f?.fetchViews) try {
|
|
64145
|
+
await f.fetchViews();
|
|
64146
64146
|
} catch {}
|
|
64147
|
-
return a !== !1 && await ye(zX(
|
|
64147
|
+
return a !== !1 && await ye(zX(f?.viewDataList || [], d?.uid, n) || {
|
|
64148
64148
|
...d || {},
|
|
64149
64149
|
uid: d?.uid || "",
|
|
64150
64150
|
name: String(n).trim(),
|
|
@@ -64180,7 +64180,7 @@ var vZ = (e, t) => {
|
|
|
64180
64180
|
if (o) return F(o);
|
|
64181
64181
|
try {
|
|
64182
64182
|
await D({
|
|
64183
|
-
org_id:
|
|
64183
|
+
org_id: p.currentOrg?.id,
|
|
64184
64184
|
view_settings_id: a.view.id,
|
|
64185
64185
|
name: String(i).trim()
|
|
64186
64186
|
});
|
|
@@ -64208,7 +64208,7 @@ var vZ = (e, t) => {
|
|
|
64208
64208
|
if (a) return F(a);
|
|
64209
64209
|
try {
|
|
64210
64210
|
await pe({
|
|
64211
|
-
org_id:
|
|
64211
|
+
org_id: p.currentOrg?.id,
|
|
64212
64212
|
view_settings_id: i.view.id
|
|
64213
64213
|
});
|
|
64214
64214
|
} catch (e) {
|
|
@@ -64235,10 +64235,10 @@ var vZ = (e, t) => {
|
|
|
64235
64235
|
if (a) return F(a);
|
|
64236
64236
|
try {
|
|
64237
64237
|
await O({
|
|
64238
|
-
org_id:
|
|
64238
|
+
org_id: p.currentOrg?.id,
|
|
64239
64239
|
view_settings_id: i.view.id
|
|
64240
64240
|
}), await fe({
|
|
64241
|
-
org_id:
|
|
64241
|
+
org_id: p.currentOrg?.id,
|
|
64242
64242
|
view_settings_id: i.view.id
|
|
64243
64243
|
});
|
|
64244
64244
|
} catch (e) {
|
|
@@ -64285,7 +64285,7 @@ var vZ = (e, t) => {
|
|
|
64285
64285
|
let u = RX(n, t);
|
|
64286
64286
|
try {
|
|
64287
64287
|
await D({
|
|
64288
|
-
org_id:
|
|
64288
|
+
org_id: p.currentOrg?.id,
|
|
64289
64289
|
view_settings_id: o.view.id,
|
|
64290
64290
|
...r === void 0 ? {} : { is_system: !!r },
|
|
64291
64291
|
data: u
|
|
@@ -64352,7 +64352,7 @@ var vZ = (e, t) => {
|
|
|
64352
64352
|
if (Object.keys(a).length === 0 && o.length === 0 && s.length === 0) return F("没有要改动的内容:请提供 patch,或 unset / unset_columns 中的至少一项");
|
|
64353
64353
|
let c = l.pageConfig.baseColumns || [], u = new Set(uZ(c)), d = Ze(a, u);
|
|
64354
64354
|
if (d) return F(d);
|
|
64355
|
-
let
|
|
64355
|
+
let f = se(t).value, m = {}, h = null;
|
|
64356
64356
|
if (n === "view") {
|
|
64357
64357
|
if (!e?.uid && !e?.name) return F("target=view 时 uid 或 name 至少提供一个(uid 优先)");
|
|
64358
64358
|
let n = await ke(t, e?.uid, e?.name);
|
|
@@ -64361,7 +64361,7 @@ var vZ = (e, t) => {
|
|
|
64361
64361
|
let r = Ae(h);
|
|
64362
64362
|
if (r) return F(r);
|
|
64363
64363
|
m = h.data || {};
|
|
64364
|
-
} else if (m = (
|
|
64364
|
+
} else if (m = (f?.getViewData ? f.getViewData() : null) || f?.currentView?.data || {}, n === "new" && !String(e?.name ?? "").trim()) return F("target=new 时 name(新视图名称)不能为空");
|
|
64365
64365
|
let g = _Z(m, {
|
|
64366
64366
|
patch: a,
|
|
64367
64367
|
unset: o,
|
|
@@ -64424,7 +64424,7 @@ var vZ = (e, t) => {
|
|
|
64424
64424
|
if (!await Ke(h)) return F("用户取消了增量更新视图");
|
|
64425
64425
|
try {
|
|
64426
64426
|
await D({
|
|
64427
|
-
org_id:
|
|
64427
|
+
org_id: p.currentOrg?.id,
|
|
64428
64428
|
view_settings_id: h.id,
|
|
64429
64429
|
data: _
|
|
64430
64430
|
});
|
|
@@ -64458,8 +64458,8 @@ var vZ = (e, t) => {
|
|
|
64458
64458
|
let b = e?.visibility === "public" ? "public" : "personal", x = String(e?.name).trim(), S;
|
|
64459
64459
|
try {
|
|
64460
64460
|
S = await de({
|
|
64461
|
-
org_id:
|
|
64462
|
-
user_id: e?.is_system || b === "public" ? null :
|
|
64461
|
+
org_id: p.currentOrg?.id,
|
|
64462
|
+
user_id: e?.is_system || b === "public" ? null : p.userid,
|
|
64463
64463
|
name: x,
|
|
64464
64464
|
view_project__flag: oe.VITE_APP_VIEW_PROJECT_FLAG,
|
|
64465
64465
|
view_menu__flag: ce(t),
|
|
@@ -64543,7 +64543,7 @@ var vZ = (e, t) => {
|
|
|
64543
64543
|
let o = l.pageConfig.is_show_normal_search || l.pageConfig.is_show_advantage, s = l.pageConfig.is_show_advantage, c = (l.enable_advanced_search_multigroups === void 0 ? s : l.enable_advanced_search_multigroups) && s, u = rt(), d = [];
|
|
64544
64544
|
if (o && c) for (let e of l.pageConfig.default_search_condition_config_list || []) {
|
|
64545
64545
|
let t = {
|
|
64546
|
-
id:
|
|
64546
|
+
id: y(),
|
|
64547
64547
|
conditions: [],
|
|
64548
64548
|
viewSearchConfig: {}
|
|
64549
64549
|
};
|
|
@@ -64558,9 +64558,9 @@ var vZ = (e, t) => {
|
|
|
64558
64558
|
}, n++;
|
|
64559
64559
|
d.push(t);
|
|
64560
64560
|
}
|
|
64561
|
-
let
|
|
64562
|
-
window.location.hash && (
|
|
64563
|
-
let
|
|
64561
|
+
let f = "";
|
|
64562
|
+
window.location.hash && (f = window.location.hash.substring(1), a ? f = f.startsWith(a) ? f.substring(a.length) : "" : (f.startsWith("pivot:") || f.startsWith("pivotcharts:")) && (f = "")), l.enable_hash_sync || (f = "");
|
|
64563
|
+
let m = null, _ = {
|
|
64564
64564
|
...l.pageConfig.query_params || {},
|
|
64565
64565
|
...l.query_params_inject || {}
|
|
64566
64566
|
}, v = !!l.base_conditions_inject?.length;
|
|
@@ -64576,18 +64576,18 @@ var vZ = (e, t) => {
|
|
|
64576
64576
|
format: "input",
|
|
64577
64577
|
class_name: "str"
|
|
64578
64578
|
});
|
|
64579
|
-
}), e?.length > 0 && n?.length > 0 ?
|
|
64579
|
+
}), e?.length > 0 && n?.length > 0 ? m = [{
|
|
64580
64580
|
op: "and",
|
|
64581
64581
|
children: e
|
|
64582
64582
|
}, {
|
|
64583
64583
|
op: "and",
|
|
64584
64584
|
children: n
|
|
64585
|
-
}] : e?.length > 0 ?
|
|
64585
|
+
}] : e?.length > 0 ? m = e : n?.length > 0 && (m = n);
|
|
64586
64586
|
} else Object.assign(_, it());
|
|
64587
64587
|
S.value && (_.filter_id_key = S.value);
|
|
64588
|
-
let
|
|
64589
|
-
return
|
|
64590
|
-
title:
|
|
64588
|
+
let b = (l.pageConfig.baseColumns || []).filter((e) => e.dataIndex !== "action");
|
|
64589
|
+
return p.HAS_ACTION_BTN(l.pageConfig) && b.push({
|
|
64590
|
+
title: h("操作"),
|
|
64591
64591
|
width: 50,
|
|
64592
64592
|
dataIndex: "action",
|
|
64593
64593
|
checked: !0,
|
|
@@ -64609,7 +64609,7 @@ var vZ = (e, t) => {
|
|
|
64609
64609
|
pivot_table_url: l.pageConfig.queryData ? l.pageConfig.queryData.replace("_list", "_pivot_table_rust") : void 0,
|
|
64610
64610
|
pivot_table_max_records: l.pageConfig.pivot_table_max_records,
|
|
64611
64611
|
search_config: u,
|
|
64612
|
-
columns:
|
|
64612
|
+
columns: b,
|
|
64613
64613
|
show_current_view: !0,
|
|
64614
64614
|
enable_custom_filter: !0,
|
|
64615
64615
|
query_field_search_config_url: l.pageConfig.queryData ? l.pageConfig.queryData.replace("/query_", "/obtain_").replace("_list", "_field_search_config") : void 0,
|
|
@@ -64620,8 +64620,8 @@ var vZ = (e, t) => {
|
|
|
64620
64620
|
refreshType: l.pageConfig.refresh_type,
|
|
64621
64621
|
pageSize: l.pageConfig.pageSize,
|
|
64622
64622
|
pageSizeOptions: l.pageConfig.page_size_options,
|
|
64623
|
-
view_uid:
|
|
64624
|
-
base_conditions:
|
|
64623
|
+
view_uid: f,
|
|
64624
|
+
base_conditions: m,
|
|
64625
64625
|
query_params: _,
|
|
64626
64626
|
btn_list: l.pageConfig.btn_list || [],
|
|
64627
64627
|
head_btn_list: l.pageConfig.head_btn_list || [],
|
|
@@ -64657,7 +64657,7 @@ var vZ = (e, t) => {
|
|
|
64657
64657
|
};
|
|
64658
64658
|
return t({
|
|
64659
64659
|
tableProRef: v,
|
|
64660
|
-
pivotTableRef:
|
|
64660
|
+
pivotTableRef: b,
|
|
64661
64661
|
pivotChartsRef: x,
|
|
64662
64662
|
activeTableRef: E,
|
|
64663
64663
|
getPageMeta: he,
|
|
@@ -64726,7 +64726,7 @@ var vZ = (e, t) => {
|
|
|
64726
64726
|
key: 1,
|
|
64727
64727
|
config: a.value,
|
|
64728
64728
|
ref_key: "pivotTableRef",
|
|
64729
|
-
ref:
|
|
64729
|
+
ref: b,
|
|
64730
64730
|
eventBus: e.eventBus,
|
|
64731
64731
|
onFilterForIdKeyStart: ot,
|
|
64732
64732
|
onFilterForIdKey: st
|
|
@@ -64740,8 +64740,8 @@ var vZ = (e, t) => {
|
|
|
64740
64740
|
modalType: e.modalType,
|
|
64741
64741
|
app_flag: e.app_flag,
|
|
64742
64742
|
pageConfig: e.pageConfig,
|
|
64743
|
-
dataSource:
|
|
64744
|
-
selectedRowKeys:
|
|
64743
|
+
dataSource: b.value?.dataSource,
|
|
64744
|
+
selectedRowKeys: b.value?.selectedRowKeys,
|
|
64745
64745
|
onOk: _
|
|
64746
64746
|
}, null, 8, [
|
|
64747
64747
|
"modalType",
|