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.
@@ -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 { $ as f, L as p, Q as m, X as h, Z as g, at as _, c as v, et as y, f as b, it as x, nt as S, rt as C, t as w, tt as T } from "./function-DnoIHo24.js";
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-BxL8FgEp.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-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)), _ = gt(), y = 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({
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) => v(e.conditions)).filter((e) => e.length > 0), n = v(a.config.base_conditions), r = [];
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 = [[...v(a.config.base_conditions), ...v(t ? t.searchConditions || [] : E.value)]];
61370
- else if (Ae.value === "simple") for (let e of v(t ? t.searchConditions || [] : E.value)) {
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
- y.value = [], ke.current = 1, ke.total = 0;
61385
+ b.value = [], ke.current = 1, ke.total = 0;
61386
61386
  return;
61387
61387
  }
61388
61388
  let t = Ne({ type: "pivot_table" });
61389
- y.value = [];
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 ? y.value = a.config.process_data_func(i) : y.value = i, ke.current = 1, ke.total = s, o("dataChange", {
61399
- data: y.value,
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(() => y.value), at = [{
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: b(),
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: b(),
61759
+ id: y(),
61760
61760
  conditions: e.searchConditions,
61761
61761
  viewSearchConfig: e.searchConfig || {}
61762
61762
  }]), D.value.length === 0 && (D.value = [{
61763
- id: b(),
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: y,
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: y.value,
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 }, [y.value?.length > 0 || !C.value ? (I(), xe(Ye(eY), {
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)), _ = gt(), y = 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({
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) => v(e.conditions)).filter((e) => e.length > 0), n = v(a.config.base_conditions), i = [];
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 = [[...v(a.config.base_conditions), ...v(t ? t.searchConditions || [] : C.value)]];
62045
- else if (Te.value === "simple") for (let e of v(t ? t.searchConditions || [] : C.value)) {
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 && (y.value = a.config.process_data_func(r || [])), ye.value = r, He(), o("dataChange", { data: y.value });
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: b(),
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: b(),
62307
+ id: y(),
62308
62308
  conditions: e.searchConditions,
62309
62309
  viewSearchConfig: e.searchConfig || {}
62310
62310
  }]), w.value.length === 0 && (w.value = [{
62311
- id: b(),
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: y,
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: y.value,
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 = b()), e), i = (e) => {
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 || b(), delete e.field) : e.id = e.id || b();
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 = g([
63309
- y("normal"),
63310
- y("pivot"),
63311
- y("pivot_charts")
63312
- ], { description: "视图类型: normal(标准) / pivot(透视表) / pivot_charts(透视图)" }), VX = C(g([BX, f()], { description: "可选视图类型。省略或传 null 时表示全部支持类型" })), HX = m({
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 = m({
63315
+ }), UX = p({
63316
63316
  description: "视图名称",
63317
63317
  minLength: 1
63318
- }), WX = x({ description: "完整页面能力配置对象。字段名、枚举和值结构必须来自 page_view_config_data 返回的数据。" }), GX = g([y("create"), y("temporary")], {
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 = g([y("personal"), y("public")], {
63321
+ }), KX = h([T("personal"), T("public")], {
63322
63322
  description: "create 模式下可见性,默认 personal",
63323
63323
  default: "personal"
63324
- }), qX = S({ view_type: VX }, {
63324
+ }), qX = C({ view_type: VX }, {
63325
63325
  description: "判断当前页面支持哪些视图类型。view_type 省略时返回全部支持情况。",
63326
63326
  additionalProperties: !1
63327
- }), JX = S({ view_type: BX }, {
63327
+ }), JX = C({ view_type: BX }, {
63328
63328
  description: "获取构造指定类型视图配置所需的字段清单、搜索字段、现有视图和样例数据。",
63329
63329
  additionalProperties: !1
63330
- }), YX = S({
63330
+ }), YX = C({
63331
63331
  view_type: BX,
63332
- uid: C(HX),
63333
- name: C(UX)
63332
+ uid: b(HX),
63333
+ name: b(UX)
63334
63334
  }, {
63335
63335
  description: "按 uid 或名称定位已有视图。uid 优先。",
63336
63336
  additionalProperties: !1
63337
- }), XX = S({
63337
+ }), XX = C({
63338
63338
  view_type: BX,
63339
- apply_mode: C(GX),
63340
- name: C(m({
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: C(T({ description: "是否设为系统视图" })),
63346
- visibility: C(KX),
63347
- activate: C(T({ description: "create 模式下创建后是否切换,默认 true" }))
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 = S({
63351
+ }), ZX = C({
63352
63352
  view_type: BX,
63353
- uid: C(HX),
63354
- name: C(UX),
63353
+ uid: b(HX),
63354
+ name: b(UX),
63355
63355
  view_data: WX,
63356
- is_system: C(T({ description: "是否同步更新系统视图标记" }))
63356
+ is_system: b(x({ description: "是否同步更新系统视图标记" }))
63357
63357
  }, {
63358
63358
  description: "覆盖更新已有视图的完整配置。",
63359
63359
  additionalProperties: !1
63360
- }), QX = g([
63361
- y("current"),
63362
- y("view"),
63363
- y("new")
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 = g([y("merge"), y("only")], {
63367
+ }), $X = h([T("merge"), T("only")], {
63368
63368
  description: "列的处理范围:merge(默认)=只覆盖 patch.columns 里写到的列,其余列保持当前值;only=先把「当前可见列」全部关掉,只保留 patch.columns 里写到的列(用于「只看某几列」)。",
63369
63369
  default: "merge"
63370
- }), eZ = S({
63370
+ }), eZ = C({
63371
63371
  view_type: VX,
63372
- target: C(QX),
63373
- uid: C(HX),
63374
- name: C(m({
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: C(KX),
63379
- is_system: C(T({ description: "target=new 时是否创建为系统视图(需要 view_system_edit 权限)" })),
63380
- activate: C(T({ description: "target=new 时创建后是否切换过去,默认 true" })),
63381
- columns_scope: C($X),
63382
- unset_columns: C(_(m({ minLength: 1 }), { description: "要恢复「页面默认显隐」的列(删掉这些列的覆盖项)" })),
63383
- unset: C(_(m({ minLength: 1 }), { description: "要恢复「页面默认」的顶层键,如 [\"sortedList\"]、[\"columns\"]" })),
63384
- patch: C(x({ description: "只写要改的部分(与 view_data 同构)。columns 逐列、searchGroups 逐条件、pivotConfig 逐子键;未出现的键/列/字段一律保持当前值。" })),
63385
- dry_run: C(T({ description: "true=只计算并返回改动结果(changed_keys/可见列/预览),不实际应用" })),
63386
- prune_invalid_fields: C(T({
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 = S({
63393
+ }), tZ = C({
63394
63394
  view_type: BX,
63395
- uid: C(HX),
63396
- name: C(UX),
63397
- new_name: m({
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, f = c(), { t: m } = _t(), g = ht(), _ = () => {
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), y = L(null), x = L(null), S = L(""), C = L([]), w = L(""), T = L(!1), E = be(() => l.tableMode === "pivot" ? y.value : l.tableMode === "pivot_charts" ? x.value : v.value), k = Xe(e, "leftOpen"), ee = Xe(e, "heightlightRowKey");
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(p({
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
- }), p({
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
- }), p({
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
- }), p({
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
- }), p({
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
- }), p({
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
- }), p({
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
- }), p({
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
- }), p({
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
- }), p({
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(h({
63918
+ })), M.push(m({
63919
63919
  label: "条件查询",
63920
63920
  sendDirect: !1,
63921
63921
  prompt: "请根据下面的查询条件,不创建或保存视图,直接在当前页面进行数据查询展示(view_config,apply_mode=temporary,view_type=normal):\n"
63922
- }), h({
63922
+ }), m({
63923
63923
  label: "新建标准视图",
63924
63924
  sendDirect: !1,
63925
63925
  prompt: "请帮我新建一个标准视图。先调用页面能力获取视图配置所需数据(view_type=normal),再按下面的要求创建并应用到当前页面(apply_mode=create):\n"
63926
- }), h({
63926
+ }), m({
63927
63927
  label: "新建透视表",
63928
63928
  sendDirect: !1,
63929
63929
  prompt: "请帮我新建一个透视表视图。先调用页面能力获取视图配置所需数据(view_type=pivot),再按下面的行/列/值及汇总方式要求创建并应用(apply_mode=create):\n"
63930
- }), h({
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(f.CHECK_AUTH(OZ)), oe = r(), se = (e) => e === "pivot" ? y : 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) => {
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: f.userid,
64004
- org_id: f.currentOrg?.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: f.currentOrg?.id,
64132
- user_id: i || c === "public" ? null : f.userid,
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 p = se(t).value;
64144
- if (p?.fetchViews) try {
64145
- await p.fetchViews();
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(p?.viewDataList || [], d?.uid, n) || {
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: f.currentOrg?.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: f.currentOrg?.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: f.currentOrg?.id,
64238
+ org_id: p.currentOrg?.id,
64239
64239
  view_settings_id: i.view.id
64240
64240
  }), await fe({
64241
- org_id: f.currentOrg?.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: f.currentOrg?.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 p = se(t).value, m = {}, h = null;
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 = (p?.getViewData ? p.getViewData() : null) || p?.currentView?.data || {}, n === "new" && !String(e?.name ?? "").trim()) return F("target=new 时 name(新视图名称)不能为空");
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: f.currentOrg?.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: f.currentOrg?.id,
64462
- user_id: e?.is_system || b === "public" ? null : f.userid,
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: b(),
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 p = "";
64562
- window.location.hash && (p = window.location.hash.substring(1), a ? p = p.startsWith(a) ? p.substring(a.length) : "" : (p.startsWith("pivot:") || p.startsWith("pivotcharts:")) && (p = "")), l.enable_hash_sync || (p = "");
64563
- let h = null, _ = {
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 ? h = [{
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 ? h = e : n?.length > 0 && (h = n);
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 y = (l.pageConfig.baseColumns || []).filter((e) => e.dataIndex !== "action");
64589
- return f.HAS_ACTION_BTN(l.pageConfig) && y.push({
64590
- title: m("操作"),
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: y,
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: p,
64624
- base_conditions: h,
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: y,
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: y,
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: y.value?.dataSource,
64744
- selectedRowKeys: y.value?.selectedRowKeys,
64743
+ dataSource: b.value?.dataSource,
64744
+ selectedRowKeys: b.value?.selectedRowKeys,
64745
64745
  onOk: _
64746
64746
  }, null, 8, [
64747
64747
  "modalType",