liyu-pc-base 1.0.839 → 1.0.841

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.
@@ -8,7 +8,7 @@ import { getApiData as u } from "./api/api-model.js";
8
8
  import { I as d, N as f, P as p, S as m, c as h, f as g, r as _, t as v, x as y } from "./function-DQjzcDkk.js";
9
9
  import { ConditionOperatorMap as b, operator_params_count as x } from "./api/typing.js";
10
10
  import { t as ee } from "./RemoteModal-Bcj3dfNQ.js";
11
- import { n as S, r as C, t as w } from "./RemoteSelectPro-YnBcS5C7.js";
11
+ import { n as S, r as C, t as w } from "./RemoteSelectPro-D5yvR7N8.js";
12
12
  import { t as te } from "./RemoteFilterSelect-BthY6Fyt.js";
13
13
  import { t as T } from "./AttributeNomTable-DHED22ju.js";
14
14
  import { t as ne } from "./AttributeTable-muxdKpWW.js";
@@ -17,7 +17,7 @@ import { t as ie } from "./JsonObj-CmylW4Or.js";
17
17
  import { t as E } from "./RemoteText-DwRLI0xq.js";
18
18
  import { t as ae } from "./modal-tools-CrXdI5sg.js";
19
19
  import { a as oe, c as se, f as ce, i as le, l as ue, n as de, o as fe, r as pe, s as me, t as he, u as ge } from "./TinymceEditor-DSqzV0vD.js";
20
- import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as _e, createTextVNode as N, createVNode as P, defineComponent as F, guardReactiveProps as ve, h as ye, inject as be, mergeModels as xe, mergeProps as Se, normalizeClass as I, normalizeProps as Ce, normalizeStyle as L, onActivated as we, onBeforeUnmount as Te, onDeactivated as Ee, onMounted as De, onUnmounted as Oe, openBlock as R, provide as ke, reactive as Ae, ref as z, renderList as B, renderSlot as je, resolveComponent as V, resolveDynamicComponent as Me, toDisplayString as H, unref as U, useAttrs as W, useModel as Ne, watch as G, withCtx as K, withModifiers as q } from "vue";
20
+ import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as _e, createTextVNode as N, createVNode as P, defineComponent as F, guardReactiveProps as ve, h as ye, inject as be, mergeModels as xe, mergeProps as Se, normalizeClass as I, normalizeProps as Ce, normalizeStyle as L, onActivated as we, onBeforeUnmount as Te, onDeactivated as Ee, onMounted as De, onUnmounted as Oe, openBlock as R, provide as ke, reactive as Ae, ref as z, renderList as B, renderSlot as je, resolveComponent as V, resolveDynamicComponent as Me, toDisplayString as H, unref as U, useAttrs as Ne, useModel as W, watch as G, withCtx as K, withModifiers as q } from "vue";
21
21
  import { Modal as Pe, message as Fe } from "ant-design-vue";
22
22
  import { debounce as Ie, isArray as Le, isEqual as Re } from "lodash-es";
23
23
  import J from "moment";
@@ -5046,7 +5046,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
5046
5046
  "change"
5047
5047
  ],
5048
5048
  setup(e, { emit: t }) {
5049
- let n = e, r = t, i = W(), a = O(() => {
5049
+ let n = e, r = t, i = Ne(), a = O(() => {
5050
5050
  let e = {};
5051
5051
  for (let [t, n] of Object.entries(i)) t === "onChange" || t === "onUpdate:value" || t === "onUpdate:modelValue" || (e[t] = n);
5052
5052
  return e;
@@ -5495,12 +5495,12 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
5495
5495
  kind: "string",
5496
5496
  value: x.value
5497
5497
  };
5498
- }, W = (e) => {
5498
+ }, Ne = (e) => {
5499
5499
  De(C.value.length, {
5500
5500
  type: "bool",
5501
5501
  value: e
5502
5502
  });
5503
- }, Ne = () => {
5503
+ }, W = () => {
5504
5504
  ce([]);
5505
5505
  };
5506
5506
  return (e, t) => {
@@ -5553,7 +5553,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
5553
5553
  size: "small",
5554
5554
  class: "vee-op-btn vee-bool-btn",
5555
5555
  draggable: "true",
5556
- onClick: t[4] ||= (e) => W("true"),
5556
+ onClick: t[4] ||= (e) => Ne("true"),
5557
5557
  onDragstart: t[5] ||= (e) => fe("true"),
5558
5558
  onDragend: _e
5559
5559
  }, {
@@ -5564,7 +5564,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
5564
5564
  size: "small",
5565
5565
  class: "vee-op-btn vee-bool-btn",
5566
5566
  draggable: "true",
5567
- onClick: t[6] ||= (e) => W("false"),
5567
+ onClick: t[6] ||= (e) => Ne("false"),
5568
5568
  onDragstart: t[7] ||= (e) => fe("false"),
5569
5569
  onDragend: _e
5570
5570
  }, {
@@ -5657,7 +5657,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
5657
5657
  size: "small",
5658
5658
  type: "text",
5659
5659
  danger: "",
5660
- onClick: Ne
5660
+ onClick: W
5661
5661
  }, {
5662
5662
  default: K(() => [N(H(e.$t("清空表达式")), 1)]),
5663
5663
  _: 1
@@ -6487,7 +6487,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
6487
6487
  }
6488
6488
  }
6489
6489
  xe(), X();
6490
- }, W = (e, t, n, r) => {
6490
+ }, Ne = (e, t, n, r) => {
6491
6491
  let i = o.value;
6492
6492
  if (!i || i.kind !== "field") return;
6493
6493
  r.preventDefault(), r.stopPropagation(), f.value = null;
@@ -6504,7 +6504,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
6504
6504
  fieldIndex: n,
6505
6505
  pos: r.clientY < s.top + s.height / 2 ? "before" : "after"
6506
6506
  };
6507
- }, Ne = (e, t, n, r) => {
6507
+ }, W = (e, t, n, r) => {
6508
6508
  let i = o.value;
6509
6509
  if (!i || i.kind !== "field") return;
6510
6510
  r.preventDefault(), r.stopPropagation();
@@ -6755,8 +6755,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
6755
6755
  draggable: "true",
6756
6756
  onDragstart: q((e) => ye(e, n, "columns", o), ["stop"]),
6757
6757
  onDragend: be,
6758
- onDragover: (e) => W("columns", r, o, e),
6759
- onDrop: (e) => Ne("columns", r, o, e)
6758
+ onDragover: (e) => Ne("columns", r, o, e),
6759
+ onDrop: (e) => W("columns", r, o, e)
6760
6760
  }, [
6761
6761
  M("span", {
6762
6762
  class: "pivot-chip-label",
@@ -6904,8 +6904,8 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
6904
6904
  draggable: "true",
6905
6905
  onDragstart: q((e) => ye(e, n, "rows", o), ["stop"]),
6906
6906
  onDragend: be,
6907
- onDragover: (e) => W("rows", r, o, e),
6908
- onDrop: (e) => Ne("rows", r, o, e)
6907
+ onDragover: (e) => Ne("rows", r, o, e),
6908
+ onDrop: (e) => W("rows", r, o, e)
6909
6909
  }, [
6910
6910
  M("span", {
6911
6911
  class: "pivot-chip-label",
@@ -7882,7 +7882,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
7882
7882
  fieldIndex: n,
7883
7883
  pos: r.clientY < s.top + s.height / 2 ? "before" : "after"
7884
7884
  };
7885
- }, W = (e, t, n, r) => {
7885
+ }, Ne = (e, t, n, r) => {
7886
7886
  let i = o.value;
7887
7887
  if (!i || i.kind !== "field") return;
7888
7888
  r.preventDefault(), r.stopPropagation();
@@ -7902,7 +7902,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
7902
7902
  }
7903
7903
  let u = _.value[i.zone][l], [d] = u.fields.splice(i.fieldIndex, 1), f = i.zone === e && l === t, p = t, m = c ? n : n + 1;
7904
7904
  f && i.fieldIndex < n && --m, u.fields.length === 0 && !f && (_.value[i.zone].splice(l, 1), i.zone === e && l < p && --p), _.value[e][p].fields.splice(m, 0, d), be(), Y();
7905
- }, Ne = (e, t) => {
7905
+ }, W = (e, t) => {
7906
7906
  o.value = {
7907
7907
  kind: "value",
7908
7908
  field: t
@@ -8121,7 +8121,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
8121
8121
  onDragstart: q((e) => ve(e, n, "category", o), ["stop"]),
8122
8122
  onDragend: ye,
8123
8123
  onDragover: (e) => Me("category", r, o, e),
8124
- onDrop: (e) => W("category", r, o, e)
8124
+ onDrop: (e) => Ne("category", r, o, e)
8125
8125
  }, [
8126
8126
  M("span", {
8127
8127
  class: "pivot-chip-label",
@@ -8270,7 +8270,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
8270
8270
  onDragstart: q((e) => ve(e, n, "series", o), ["stop"]),
8271
8271
  onDragend: ye,
8272
8272
  onDragover: (e) => Me("series", r, o, e),
8273
- onDrop: (e) => W("series", r, o, e)
8273
+ onDrop: (e) => Ne("series", r, o, e)
8274
8274
  }, [
8275
8275
  M("span", {
8276
8276
  class: "pivot-chip-label",
@@ -8368,7 +8368,7 @@ var Yi = { class: "column-edit-view-wrapper" }, Xi = { class: "vf-display-expr"
8368
8368
  "value-item-invalid": pt(n)
8369
8369
  }]),
8370
8370
  draggable: "true",
8371
- onDragstart: (e) => Ne(e, n),
8371
+ onDragstart: (e) => W(e, n),
8372
8372
  onDragend: ye,
8373
8373
  onDragover: q((e) => Pe(a, e), ["prevent", "stop"])
8374
8374
  }, [
@@ -10131,7 +10131,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
10131
10131
  }),
10132
10132
  emits: /*@__PURE__*/ xe(["change"], ["update:selectedConditionGroup", "update:groupConditionValue"]),
10133
10133
  setup(e, { emit: t }) {
10134
- let n = e, r = t, i = Ne(e, "selectedConditionGroup"), a = Ne(e, "groupConditionValue"), o = z(""), s = O(() => n.config?.condition_group_config_list?.filter((e) => e.label.includes(o.value))), c = O(() => i.value?.field_name ? [i.value.field_name] : []), l = () => {
10134
+ let n = e, r = t, i = W(e, "selectedConditionGroup"), a = W(e, "groupConditionValue"), o = z(""), s = O(() => n.config?.condition_group_config_list?.filter((e) => e.label.includes(o.value))), c = O(() => i.value?.field_name ? [i.value.field_name] : []), l = () => {
10135
10135
  a.value = null, i.value = null, r("change", i.value), n.selfEventBus.emit("refresh");
10136
10136
  }, u = (e) => {
10137
10137
  a.value = null, i.value = e, r("change", i.value), n.selfEventBus.emit("refresh");
@@ -10205,7 +10205,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
10205
10205
  "update:groupConditionValue"
10206
10206
  ]),
10207
10207
  setup(e, { emit: t }) {
10208
- let n = e, r = t, i = Ne(e, "selectedConditionGroup"), a = Ne(e, "conditionGroupDataList"), o = Ne(e, "groupConditionValue"), s = () => {
10208
+ let n = e, r = t, i = W(e, "selectedConditionGroup"), a = W(e, "conditionGroupDataList"), o = W(e, "groupConditionValue"), s = () => {
10209
10209
  a.value = [], i.value = null, o.value = null, r("change", o.value), n.selfEventBus.emit("refresh");
10210
10210
  }, c = (e) => {
10211
10211
  o.value = e, r("change", e), n.selfEventBus.emit("refresh");
@@ -10360,7 +10360,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
10360
10360
  "update:groupConditionValue"
10361
10361
  ]),
10362
10362
  setup(e, { emit: t }) {
10363
- let r = e, i = t, a = Ne(e, "settingOpen"), o = n(), s = o.currentOrg, c = z(o.CHECK_AUTH(lu)), l = O(() => _.value?.is_other_user_view || _.value?.is_system && !c.value ? !1 : v.value && _.value && _.value.id !== "no-view"), u = Ne(e, "selectedConditionGroup"), d = Ne(e, "conditionGroupDataList"), f = Ne(e, "groupConditionValue"), p = O(() => r.config?.setting_mode || "modal"), m = O(() => r.config?.setting_drawer_width ?? "700px"), h = O(() => r.config?.setting_drawer_placement || "left"), g = z(null);
10363
+ let r = e, i = t, a = W(e, "settingOpen"), o = n(), s = o.currentOrg, c = z(o.CHECK_AUTH(lu)), l = O(() => _.value?.is_other_user_view || _.value?.is_system && !c.value ? !1 : v.value && _.value && _.value.id !== "no-view"), u = W(e, "selectedConditionGroup"), d = W(e, "conditionGroupDataList"), f = W(e, "groupConditionValue"), p = O(() => r.config?.setting_mode || "modal"), m = O(() => r.config?.setting_drawer_width ?? "700px"), h = O(() => r.config?.setting_drawer_placement || "left"), g = z(null);
10364
10364
  ht(g, (e) => {
10365
10365
  i("heightChange", e[0].contentRect.height);
10366
10366
  });
@@ -10965,9 +10965,9 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
10965
10965
  let e = {};
10966
10966
  for (let t of E.value) t?.field_name && (e[t.field_name] = t);
10967
10967
  return e;
10968
- }), oe = null, se = z(null), ce = z(null), le = z(null), ue = z(null), de = z(0), fe = z(30), pe = z({}), me = z([]), he = z([]), ge = z([]), F = z([]), ve = z(!1), ye = z(), be = z(s.config.refreshType), xe = z(null), Se = z([]), Ce = z(null), we = O(() => s.config?.rowKey || "id");
10968
+ }), oe = null, se = z(null), ce = z(null), le = z(null), ue = z(null), de = z(0), fe = z(30), pe = z({}), me = z([]), he = z([]), ge = z([]), F = z([]), ve = z(!1), ye = z(), be = z(s.config.refreshType), xe = z(null), Se = z([]), Ce = z(null), we = z(null), Te = O(() => s.config?.rowKey || "id");
10969
10969
  F.value = p.CHECK_AUTH_BY_BTN_LIST(s.config?.btn_list || []) || [], ge.value = p.CHECK_AUTH_BY_BTN_LIST(s.config?.head_btn_list || []) || [], he.value = p.CHECK_AUTH_BY_BTN_LIST(s.config?.batch_update_list || []) || [];
10970
- let Te = z(s.config?.pageSizeOptions || [
10970
+ let Ee = z(s.config?.pageSizeOptions || [
10971
10971
  "10",
10972
10972
  "20",
10973
10973
  "50",
@@ -10980,7 +10980,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
10980
10980
  "50000",
10981
10981
  "60000",
10982
10982
  "70000"
10983
- ]), Ee = O(() => `table_pro_${s.config.key}`), W = Ae({
10983
+ ]), Ne = O(() => `table_pro_${s.config.key}`), W = Ae({
10984
10984
  current: 1,
10985
10985
  pageSize: s.config?.pageSize || s.config?.query_params?.pageSize || pu,
10986
10986
  total: 0,
@@ -10993,7 +10993,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
10993
10993
  }), ht(le, (e) => {
10994
10994
  ue.value = e[0].contentRect.height;
10995
10995
  });
10996
- let Ne = () => !1, q = ({ type: e = "list", viewData: t = null, groupDataList: n = null } = {}) => {
10996
+ let q = () => !1, Pe = ({ type: e = "list", viewData: t = null, groupDataList: n = null } = {}) => {
10997
10997
  let r = (e) => {
10998
10998
  let t = [];
10999
10999
  return e.forEach((e) => {
@@ -11010,10 +11010,10 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11010
11010
  sort_fields: i
11011
11011
  };
11012
11012
  if (e === "list") {
11013
- let e = r(Je.value || []);
11013
+ let e = r(Ye.value || []);
11014
11014
  s.config.base_column_fields && e.push(...s.config.base_column_fields), o.current = W.current, o.pageSize = W.pageSize, o.column_fields = e;
11015
11015
  }
11016
- if (He.value === "advanced") {
11016
+ if (Ue.value === "advanced") {
11017
11017
  if (T.value) {
11018
11018
  let e = (t ? t.searchGroups || [] : w.value).map((e) => h(e.conditions)).filter((e) => e.length > 0), n = h(s.config.base_conditions), r = [];
11019
11019
  e.length > 0 && r.push({
@@ -11040,7 +11040,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11040
11040
  }]
11041
11041
  }]);
11042
11042
  }
11043
- } else if (He.value === "simple") for (let e of h(t ? t.searchConditions || [] : C.value)) {
11043
+ } else if (Ue.value === "simple") for (let e of h(t ? t.searchConditions || [] : C.value)) {
11044
11044
  let t = Xt(e.operator, e), n = e.value;
11045
11045
  t === 1 && (n = n[0]), o[e.field_name] = n;
11046
11046
  }
@@ -11051,9 +11051,9 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11051
11051
  });
11052
11052
  t && Object.assign(o, t);
11053
11053
  }
11054
- let c = _t();
11054
+ let c = vt();
11055
11055
  return c && (o.required_condition = c), s.config.get_db_alias && (o.db_alias = s.config.get_db_alias()), o;
11056
- }, [Pe, Fe, { setFull: Ie, exitFull: Le }] = qt(), Re = async () => {
11056
+ }, [Fe, Ie, { setFull: Le, exitFull: Re }] = qt(), J = async () => {
11057
11057
  if (!xe.value) {
11058
11058
  Se.value?.length > 0 && (Se.value = []);
11059
11059
  return;
@@ -11062,40 +11062,42 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11062
11062
  console.error("query_group_url 未配置"), Se.value?.length > 0 && (Se.value = []);
11063
11063
  return;
11064
11064
  }
11065
- if (!Se.value?.length) {
11066
- let e = q({ type: "group" });
11067
- e.group_condition = {
11068
- field_name: xe.value.field_name,
11069
- display_name: xe.value.display_name,
11070
- order_name: xe.value.order_name || []
11071
- }, Se.value = await u(e, s.config.query_group_url || "", !1, { api_log: `tablePro ${s.config.key} ${s.config.title}` }) || [];
11072
- }
11073
- }, J = async () => {
11065
+ let e = Pe({ type: "group" }), t = JSON.stringify(e);
11066
+ if (Se.value?.length && t === we.value) return;
11067
+ let n = e;
11068
+ n.group_condition = {
11069
+ field_name: xe.value.field_name,
11070
+ display_name: xe.value.display_name,
11071
+ order_name: xe.value.order_name || []
11072
+ };
11073
+ let r = await u(n, s.config.query_group_url || "", !1, { api_log: `tablePro ${s.config.key} ${s.config.title}` });
11074
+ Se.value = r || [], we.value = t, Ce.value != null && ((r || []).some((e) => e?.group_info && e.group_info.value === Ce.value) || (Ce.value = null));
11075
+ }, Be = async () => {
11074
11076
  if (!s.config.list_url) return;
11075
11077
  let e = Symbol();
11076
11078
  oe = e;
11077
11079
  try {
11078
- ee.value = !0, await Re();
11079
- let t = q({ type: "list" }), n;
11080
+ ee.value = !0, await J();
11081
+ let t = Pe({ type: "list" }), n;
11080
11082
  if (n = s.config.query_data_func ? await s.config.query_data_func(t) : await u(t, s.config.list_url.replace("__tree", ""), s.config.list_url.includes("__tree"), { api_log: `tablePro ${s.config.key} ${s.config.title}` }), oe !== e) return;
11081
11083
  s.config.process_data_func ? b.value = s.config.process_data_func(n.data) : b.value = n.data || [], W.current = n.current, W.total = n.total, W.tableHead = n.table_head ? n.table_head : null, W.sum_data = n.sum_data ?? null, c("dataChange", {
11082
11084
  data: b.value,
11083
11085
  current: n.current,
11084
11086
  total: n.total
11085
- }), ct();
11087
+ }), lt();
11086
11088
  } finally {
11087
11089
  if (oe !== e) return;
11088
11090
  ee.value = !1;
11089
11091
  }
11090
- }, Be = (0, Z.debounce)(J, 500), Ve = (e, t) => {
11091
- W.current == e && W.pageSize == t || (W.current = e || 1, W.pageSize = t || pu, J());
11092
- }, He = O(() => s.config.search_type === "simple" ? s.config.search_type : "advanced"), Ue = O(() => s.config?.is_view !== !1), We = O(() => ({
11092
+ }, Ve = (0, Z.debounce)(Be, 500), He = (e, t) => {
11093
+ W.current == e && W.pageSize == t || (W.current = e || 1, W.pageSize = t || pu, Be());
11094
+ }, Ue = O(() => s.config.search_type === "simple" ? s.config.search_type : "advanced"), We = O(() => s.config?.is_view !== !1), Ge = O(() => ({
11093
11095
  type: s.config.rowSelectionType || "checkbox",
11094
11096
  checkStrictly: s.config.rowSelectionCheckStrictly || !1,
11095
11097
  onChange: (e, t) => {
11096
11098
  c("selectChange", t, b.value.filter((t) => !e.includes(t.id)));
11097
11099
  }
11098
- })), Ge = z({}), Ke = z({}), qe = O(() => {
11100
+ })), Ke = z({}), qe = z({}), Je = O(() => {
11099
11101
  let e = (t) => t.filter((e) => e.checked !== !1).map((t) => {
11100
11102
  if (t.children && t.children.length > 0) {
11101
11103
  let n = e(t.children);
@@ -11106,8 +11108,8 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11106
11108
  }
11107
11109
  return t;
11108
11110
  }).filter(Boolean);
11109
- return e(Je.value);
11110
- }), Je = O(() => {
11111
+ return e(Ye.value);
11112
+ }), Ye = O(() => {
11111
11113
  let e = {};
11112
11114
  for (let t of ne.value) ["in", "eq"].includes(t.operator) && (e[t.field_name] = t.value);
11113
11115
  let t = pe.value || {}, n = [...s.config.columns || []];
@@ -11121,7 +11123,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11121
11123
  checked: !0
11122
11124
  }));
11123
11125
  let r = (n, i = !1) => n.map((e) => {
11124
- let t = e.dataIndex || e.key || e.title, n = Ge.value[t] || {}, a = {
11126
+ let t = e.dataIndex || e.key || e.title, n = Ke.value[t] || {}, a = {
11125
11127
  ...e,
11126
11128
  ...n,
11127
11129
  is_children: i,
@@ -11169,12 +11171,12 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11169
11171
  checked: !0,
11170
11172
  autoHeight: !0
11171
11173
  }), i;
11172
- }), Ye = O(() => {
11174
+ }), Xe = O(() => {
11173
11175
  let e = 0, t = (n) => {
11174
11176
  for (let r of n) r.children && r.children.length > 0 ? t(r.children) : e += r.width || r.minWidth || 120;
11175
11177
  };
11176
- t(Je.value);
11177
- }), Xe = O(() => `${s.config.title || "data"}_${ze().format("YYYYMMDD_HHmmss")}`), Qe = O(() => {
11178
+ t(Ye.value);
11179
+ }), Qe = O(() => `${s.config.title || "data"}_${ze().format("YYYYMMDD_HHmmss")}`), $e = O(() => {
11178
11180
  let e = [], t = (n) => {
11179
11181
  n.forEach((n) => {
11180
11182
  if (n.children && n.children.length > 0) t(n.children);
@@ -11190,8 +11192,8 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11190
11192
  }
11191
11193
  });
11192
11194
  };
11193
- return t(Je.value), e;
11194
- }), $e = O(() => {
11195
+ return t(Ye.value), e;
11196
+ }), et = O(() => {
11195
11197
  let e = [], t = (n) => {
11196
11198
  n.forEach((n) => {
11197
11199
  if (n.children && n.children.length > 0) t(n.children);
@@ -11201,32 +11203,32 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11201
11203
  }
11202
11204
  });
11203
11205
  };
11204
- return t(Je.value), e;
11205
- }), et = ({ confirm: e, dataIndex: t, value: n }) => {
11206
- e(), J(), kt.value = !0;
11207
- }, tt = ({ clearFilters: e, dataIndex: t }) => {
11206
+ return t(Ye.value), e;
11207
+ }), tt = ({ confirm: e, dataIndex: t, value: n }) => {
11208
+ e(), Be(), At.value = !0;
11209
+ }, nt = ({ clearFilters: e, dataIndex: t }) => {
11208
11210
  e();
11209
11211
  let n = (0, Z.cloneDeep)(ne.value), r = n.findIndex((e) => e.field_name === t);
11210
- r > -1 && n.splice(r, 1), ne.value = n, J(), kt.value = !0;
11211
- }, nt = async () => {
11212
- await J();
11212
+ r > -1 && n.splice(r, 1), ne.value = n, Be(), At.value = !0;
11213
11213
  }, rt = async () => {
11214
+ await Be();
11215
+ }, it = async () => {
11214
11216
  b.value = [...b.value];
11215
- }, it = (e) => {
11216
- be.value = e, kt.value = !0;
11217
- }, at = z(64), ot = O(() => {
11217
+ }, at = (e) => {
11218
+ be.value = e, At.value = !0;
11219
+ }, ot = z(64), st = O(() => {
11218
11220
  if (!ce.value) return 0;
11219
11221
  let e = ce.value - ue.value - de.value - 4;
11220
- return s.config.is_pagination && (e -= at.value), console.log("tableWraperHeight", ce.value), console.log("searchHeight", ue.value), console.log("headerHeight", de.value), console.log("paginationHeight", at.value), console.log("tableHeight", e), e;
11221
- }), st = () => {
11222
- kt.value = !0;
11222
+ return s.config.is_pagination && (e -= ot.value), console.log("tableWraperHeight", ce.value), console.log("searchHeight", ue.value), console.log("headerHeight", de.value), console.log("paginationHeight", ot.value), console.log("tableHeight", e), e;
11223
+ }), ct = () => {
11224
+ At.value = !0;
11223
11225
  };
11224
11226
  G(() => W.tableSize, () => {
11225
- at.value = 64, setTimeout(() => {
11226
- W.tableSize === "small" || W.tableSize === "middle" ? at.value = 56 : W.tableSize === "default" && (at.value = 64);
11227
+ ot.value = 64, setTimeout(() => {
11228
+ W.tableSize === "small" || W.tableSize === "middle" ? ot.value = 56 : W.tableSize === "default" && (ot.value = 64);
11227
11229
  }, 200);
11228
11230
  });
11229
- let ct = () => {
11231
+ let lt = () => {
11230
11232
  if (b.value?.length > 0 && s.initValueKey) {
11231
11233
  let e = {};
11232
11234
  x.value = b.value.filter((t) => {
@@ -11234,7 +11236,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11234
11236
  if (s.initSelectValue?.includes(n) && !e[n]) return e[n] = !0, !0;
11235
11237
  }).map((e) => e.id);
11236
11238
  }
11237
- }, lt = async () => {
11239
+ }, ut = async () => {
11238
11240
  Se.value = [];
11239
11241
  let e = s.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
11240
11242
  e.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
@@ -11258,45 +11260,45 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11258
11260
  id: g(),
11259
11261
  conditions: [...t],
11260
11262
  viewSearchConfig: {}
11261
- }], C.value = []), Ue && Ot.value?.id !== "no-view") {
11262
- if (Ot.value = null, await At(), s.config?.view_uid) {
11263
- let e = Dt.value.find((e) => e.uid == s.config?.view_uid);
11264
- if (e) Ct(e.data), Ot.value = e;
11263
+ }], C.value = []), We && kt.value?.id !== "no-view") {
11264
+ if (kt.value = null, await jt(), s.config?.view_uid) {
11265
+ let e = Ot.value.find((e) => e.uid == s.config?.view_uid);
11266
+ if (e) wt(e.data), kt.value = e;
11265
11267
  else {
11266
11268
  let e = await Gt({
11267
11269
  org_id: _.id,
11268
11270
  is_active: !0,
11269
11271
  uid: s.config?.view_uid
11270
11272
  });
11271
- e?.length && (Ot.value = {
11273
+ e?.length && (kt.value = {
11272
11274
  ...e[0],
11273
11275
  is_other_user_view: !0
11274
11276
  });
11275
11277
  }
11276
11278
  }
11277
- if (!Ot.value && Dt.value?.length) {
11278
- let e = [...Dt.value], t = (e) => {
11279
+ if (!kt.value && Ot.value?.length) {
11280
+ let e = [...Ot.value], t = (e) => {
11279
11281
  let t = e.sort || 0;
11280
- return e.id !== Ot.value?.id && (t *= 1e6), e.is_default || (t *= 1e4), e.user_id || (t *= 1e3), t;
11282
+ return e.id !== kt.value?.id && (t *= 1e6), e.is_default || (t *= 1e4), e.user_id || (t *= 1e3), t;
11281
11283
  };
11282
- e.sort((e, n) => t(e) - t(n)), Ct(e[0].data), Ot.value = e[0];
11284
+ e.sort((e, n) => t(e) - t(n)), wt(e[0].data), kt.value = e[0];
11283
11285
  }
11284
11286
  }
11285
- await J();
11286
- }, ut = async () => {
11287
- kt.value = !1, await lt();
11287
+ await Be();
11288
11288
  }, dt = async () => {
11289
- await J();
11290
- }, ft = O(() => {
11289
+ At.value = !1, await ut();
11290
+ }, ft = async () => {
11291
+ await Be();
11292
+ }, pt = O(() => {
11291
11293
  let e = [], t = (n) => {
11292
11294
  n.forEach((n) => {
11293
11295
  n.children && n.children.length > 0 ? t(n.children) : e.push(n);
11294
11296
  });
11295
11297
  };
11296
- return t(qe.value), e;
11297
- }), pt = async () => {
11298
+ return t(Je.value), e;
11299
+ }), gt = async () => {
11298
11300
  if (!s.config.enable_custom_filter || !s.config.query_field_search_config_url || !_?.id) return;
11299
- let e = ft.value.map((e) => e.dataIndex).filter((e) => !!e && e !== "index" && e !== "action" && !ae.value[e] && !ie.value[e]);
11301
+ let e = pt.value.map((e) => e.dataIndex).filter((e) => !!e && e !== "index" && e !== "action" && !ae.value[e] && !ie.value[e]);
11300
11302
  if (e.length) {
11301
11303
  e.forEach((e) => {
11302
11304
  ie.value[e] = !0;
@@ -11320,9 +11322,9 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11320
11322
  });
11321
11323
  }
11322
11324
  }
11323
- }, gt = O(() => {
11325
+ }, _t = O(() => {
11324
11326
  let e = [], t = 0;
11325
- for (let n of ft.value) {
11327
+ for (let n of pt.value) {
11326
11328
  let r = t;
11327
11329
  s.config?.is_selection && (r = t + 1), n.summary && e.push({
11328
11330
  index: r,
@@ -11336,7 +11338,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11336
11338
  }), t++;
11337
11339
  }
11338
11340
  return e;
11339
- }), _t = () => {
11341
+ }), vt = () => {
11340
11342
  let e = s.config.required_condition;
11341
11343
  if (e) {
11342
11344
  let t = {};
@@ -11345,7 +11347,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11345
11347
  n != null && (t[e.field_name] = n);
11346
11348
  }), t;
11347
11349
  } else return null;
11348
- }, vt = (e, t, n, r) => {
11350
+ }, yt = (e, t, n, r) => {
11349
11351
  if (r.action !== "paginate") {
11350
11352
  if (r.action === "filter") {
11351
11353
  let e = {};
@@ -11360,7 +11362,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11360
11362
  class_name: "str"
11361
11363
  };
11362
11364
  }
11363
- ne.value = Object.values(e), J(), kt.value = !0;
11365
+ ne.value = Object.values(e), Be(), At.value = !0;
11364
11366
  } else if (r.action === "sort") {
11365
11367
  let e = {}, t = [];
11366
11368
  if (!(0, Z.isArray)(n)) e[n.columnKey] = n.order, t.push({
@@ -11371,20 +11373,20 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11371
11373
  key: r.columnKey,
11372
11374
  order: r.order
11373
11375
  });
11374
- pe.value = e, me.value = t, J(), kt.value = !0;
11376
+ pe.value = e, me.value = t, Be(), At.value = !0;
11375
11377
  }
11376
11378
  }
11377
- }, yt = (e, t) => {
11379
+ }, bt = (e, t) => {
11378
11380
  s.config?.is_click_selection && ((s.config.rowSelectionType || "checkbox") === "radio" ? x.value = [t.record.id] : x.value && x.value.includes(t.record.id) ? x.value = x.value.filter((e) => e !== t.record.id) : x.value.push(t.record.id), c("selectChange", b.value.filter((e) => x.value.includes(e.id)), b.value.filter((e) => !x.value.includes(e.id))));
11379
- }, bt = (e) => {
11380
- s.config.required_condition && s.config.required_condition.find((t) => t.key === e) && (Se.value = [], J());
11381
+ }, xt = (e) => {
11382
+ s.config.required_condition && s.config.required_condition.find((t) => t.key === e) && (Se.value = [], Be());
11381
11383
  };
11382
11384
  De(async () => {
11383
- s.config.key || console.error("tablePro config 未配置 key"), s.config.title || console.error("tablePro config 未配置 title"), a().on("change", bt), S.on("refresh", nt), S.on("local_refresh", rt), S.on("reinit", ut), S.on("saveView", Pt), S.on("saveNewView", Ft), s.eventBus && (s.eventBus.on("reinit", ut), s.eventBus.on("refresh", nt), s.eventBus.on("local_refresh", rt), s.eventBus.on("reload_table", dt)), s.config.tableSize && (W.tableSize = s.config.tableSize), await lt();
11385
+ s.config.key || console.error("tablePro config 未配置 key"), s.config.title || console.error("tablePro config 未配置 title"), a().on("change", xt), S.on("refresh", rt), S.on("local_refresh", it), S.on("reinit", dt), S.on("saveView", Ft), S.on("saveNewView", It), s.eventBus && (s.eventBus.on("reinit", dt), s.eventBus.on("refresh", rt), s.eventBus.on("local_refresh", it), s.eventBus.on("reload_table", ft)), s.config.tableSize && (W.tableSize = s.config.tableSize), await ut();
11384
11386
  });
11385
- let xt = () => {
11387
+ let St = () => {
11386
11388
  ve.value = !0;
11387
- }, St = (e) => {
11389
+ }, Ct = (e) => {
11388
11390
  if (!s.config || !s.config.columns) return;
11389
11391
  let t = {}, n = (e) => {
11390
11392
  e.forEach((e, r) => {
@@ -11400,13 +11402,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11400
11402
  }, e.children && e.children.length > 0 && n(e.children));
11401
11403
  });
11402
11404
  };
11403
- n(e), Ge.value = t, kt.value = !0;
11404
- }, Ct = async (e) => {
11405
+ n(e), Ke.value = t, At.value = !0;
11406
+ }, wt = async (e) => {
11405
11407
  if (e === null) {
11406
- await lt(), kt.value = !1;
11408
+ await ut(), At.value = !1;
11407
11409
  return;
11408
11410
  }
11409
- if (e.columns && (Ge.value = e.columns), T.value ? (e.searchGroups && e.searchGroups.length > 0 ? w.value = e.searchGroups : e.searchConditions && (w.value = [{
11411
+ if (e.columns && (Ke.value = e.columns), T.value ? (e.searchGroups && e.searchGroups.length > 0 ? w.value = e.searchGroups : e.searchConditions && (w.value = [{
11410
11412
  id: g(),
11411
11413
  conditions: e.searchConditions,
11412
11414
  viewSearchConfig: e.searchConfig || {}
@@ -11414,25 +11416,25 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11414
11416
  id: g(),
11415
11417
  conditions: [],
11416
11418
  viewSearchConfig: {}
11417
- }]), C.value = []) : (e.searchConfig && (Ke.value = e.searchConfig), e.searchConditions && (C.value = e.searchConditions)), e.tableSize && (W.tableSize = e.tableSize), e.refreshType && (be.value = e.refreshType), e.sortedList) {
11419
+ }]), C.value = []) : (e.searchConfig && (qe.value = e.searchConfig), e.searchConditions && (C.value = e.searchConditions)), e.tableSize && (W.tableSize = e.tableSize), e.refreshType && (be.value = e.refreshType), e.sortedList) {
11418
11420
  me.value = e.sortedList, pe.value = {};
11419
11421
  for (let e of me.value) pe.value[e.key] = e.order;
11420
11422
  }
11421
- e.groupConditionFieldName && s.config.condition_group_config_list?.length > 0 ? xe.value = s.config.condition_group_config_list.find((t) => t.field_name === e.groupConditionFieldName) : xe.value = null, Ce.value = e.groupConditionValue, s.config.set_view_callback && s.config.set_view_callback({ viewData: e }), await nt(), kt.value = !1;
11422
- }, wt = (e, t, n) => {
11423
+ e.groupConditionFieldName && s.config.condition_group_config_list?.length > 0 ? xe.value = s.config.condition_group_config_list.find((t) => t.field_name === e.groupConditionFieldName) : xe.value = null, Ce.value = e.groupConditionValue, s.config.set_view_callback && s.config.set_view_callback({ viewData: e }), await rt(), At.value = !1;
11424
+ }, Tt = (e, t, n) => {
11423
11425
  if (n === "end") {
11424
- let n = Ge.value[t.dataIndex];
11425
- n || (n = {}, Ge.value[t.dataIndex] = n), n.width = e, kt.value = !0;
11426
+ let n = Ke.value[t.dataIndex];
11427
+ n || (n = {}, Ke.value[t.dataIndex] = n), n.width = e, At.value = !0;
11426
11428
  }
11427
- }, Tt = (e) => {
11428
- Ke.value = e, kt.value = !0;
11429
- }, Et = () => {
11429
+ }, Et = (e) => {
11430
+ qe.value = e, At.value = !0;
11431
+ }, Dt = () => {
11430
11432
  let e = {
11431
- columns: Ge.value,
11433
+ columns: Ke.value,
11432
11434
  searchConditions: C.value,
11433
11435
  tableSize: W.tableSize,
11434
11436
  refreshType: be.value,
11435
- searchConfig: Ke.value,
11437
+ searchConfig: qe.value,
11436
11438
  sortedList: me.value,
11437
11439
  groupConditionFieldName: xe.value?.field_name,
11438
11440
  groupConditionValue: Ce.value
@@ -11442,72 +11444,72 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11442
11444
  t && Object.assign(e, t);
11443
11445
  }
11444
11446
  return e;
11445
- }, Dt = z([]), Ot = z(null), kt = z(!1), At = async () => {
11446
- Dt.value = await en(Ee.value, q, s.config.count_url, s.config);
11447
- }, jt = () => {
11448
- kt.value = !0;
11449
- }, Mt = (e) => {
11450
- kt.value = !0;
11447
+ }, Ot = z([]), kt = z(null), At = z(!1), jt = async () => {
11448
+ Ot.value = await en(Ne.value, Pe, s.config.count_url, s.config);
11449
+ }, Mt = () => {
11450
+ At.value = !0;
11451
11451
  }, Nt = (e) => {
11452
- Se.value = [], kt.value = !0;
11453
- }, { saveView: Pt, addView: Ft } = Vc({
11454
- currentView: Ot,
11455
- getViewData: Et,
11456
- isViewChange: kt,
11452
+ At.value = !0;
11453
+ }, Pt = (e) => {
11454
+ Se.value = [], At.value = !0;
11455
+ }, { saveView: Ft, addView: It } = Vc({
11456
+ currentView: kt,
11457
+ getViewData: Dt,
11458
+ isViewChange: At,
11457
11459
  userid: m,
11458
11460
  view_project__flag: d.VITE_APP_VIEW_PROJECT_FLAG,
11459
- view_menu__flag: Ee.value,
11461
+ view_menu__flag: Ne.value,
11460
11462
  view_menu__name: s.config.title,
11461
- fetchViews: At,
11463
+ fetchViews: jt,
11462
11464
  is_auth: v,
11463
11465
  t: l
11464
11466
  });
11465
11467
  return ke(Qt, {
11466
- setViewData: Ct,
11467
- getViewData: Et,
11468
- fetchViews: At,
11469
- viewDataList: Dt,
11470
- currentView: Ot,
11471
- isViewChange: kt,
11468
+ setViewData: wt,
11469
+ getViewData: Dt,
11470
+ fetchViews: jt,
11471
+ viewDataList: Ot,
11472
+ currentView: kt,
11473
+ isViewChange: At,
11472
11474
  config: s.config
11473
11475
  }), Oe(() => {
11474
- S.off("refresh", nt), S.off("local_refresh", rt), S.off("reinit", ut), S.off("saveView", Pt), S.off("saveNewView", Ft), s.eventBus && (s.eventBus.off("reinit", ut), s.eventBus.off("refresh", nt), s.eventBus.off("local_refresh", rt), s.eventBus.off("reload_table", dt));
11476
+ S.off("refresh", rt), S.off("local_refresh", it), S.off("reinit", dt), S.off("saveView", Ft), S.off("saveNewView", It), s.eventBus && (s.eventBus.off("reinit", dt), s.eventBus.off("refresh", rt), s.eventBus.off("local_refresh", it), s.eventBus.off("reload_table", ft));
11475
11477
  }), G(() => s.initSelectValue, () => {
11476
- ct();
11478
+ lt();
11477
11479
  }), G(() => s.config.query_params, () => {
11478
- Be();
11480
+ Ve();
11479
11481
  }, { deep: !0 }), G(() => s.config.base_conditions, () => {
11480
- Be();
11482
+ Ve();
11481
11483
  }, { deep: !0 }), G(() => [s.config.key, s.config.query_field_search_config_url], () => {
11482
11484
  re.value = [], ie.value = {};
11483
11485
  }, { immediate: !0 }), G([
11484
- ft,
11486
+ pt,
11485
11487
  () => s.config.query_field_search_config_url,
11486
11488
  () => s.config.enable_custom_filter,
11487
11489
  () => s.config.search_config,
11488
11490
  () => _?.id
11489
11491
  ], () => {
11490
- pt();
11492
+ gt();
11491
11493
  }, {
11492
11494
  immediate: !0,
11493
11495
  deep: !0
11494
11496
  }), r({
11495
- getViewData: Et,
11496
- setViewData: Ct,
11497
+ getViewData: Dt,
11498
+ setViewData: wt,
11497
11499
  config: s.config,
11498
- columns: Je,
11499
- fetchViews: At,
11500
- viewDataList: Dt,
11501
- currentView: Ot,
11502
- isViewChange: kt,
11503
- viewColumnsConfig: Ge,
11500
+ columns: Ye,
11501
+ fetchViews: jt,
11502
+ viewDataList: Ot,
11503
+ currentView: kt,
11504
+ isViewChange: At,
11505
+ viewColumnsConfig: Ke,
11504
11506
  searchGroups: w,
11505
- refresh: nt,
11506
- init: lt,
11507
+ refresh: rt,
11508
+ init: ut,
11507
11509
  dataSource: b,
11508
11510
  selectedRowKeys: x,
11509
11511
  settingOpen: te,
11510
- getQueryParams: q
11512
+ getQueryParams: Pe
11511
11513
  }), (t, n) => {
11512
11514
  let r = V("s-table-summary-cell"), i = V("s-table-summary-row"), a = V("s-table"), o = V("a-card"), s = V("export-excel-modal-view");
11513
11515
  return R(), j(D, null, [M("div", {
@@ -11524,13 +11526,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11524
11526
  searchConditions: C.value,
11525
11527
  "onUpdate:searchConditions": n[0] ||= (e) => C.value = e,
11526
11528
  "event-bus": U(S),
11527
- searchType: He.value,
11529
+ searchType: Ue.value,
11528
11530
  searchDisplayType: e.config?.search_display_type,
11529
11531
  searchColumnCount: e.config?.search_column_count,
11530
- viewSearchConfig: Ke.value,
11532
+ viewSearchConfig: qe.value,
11531
11533
  disabledShowSearchGroupName: e.config?.disabledShowSearchGroupName,
11532
- onViewSearchConfigChange: Tt,
11533
- onChange: jt
11534
+ onViewSearchConfigChange: Et,
11535
+ onChange: Mt
11534
11536
  }, null, 8, [
11535
11537
  "searchConfig",
11536
11538
  "autoRefreshOnSearchChange",
@@ -11548,11 +11550,11 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11548
11550
  searchGroups: w.value,
11549
11551
  "onUpdate:searchGroups": n[1] ||= (e) => w.value = e,
11550
11552
  "event-bus": U(S),
11551
- searchType: He.value,
11553
+ searchType: Ue.value,
11552
11554
  searchDisplayType: e.config?.search_display_type,
11553
11555
  searchColumnCount: e.config?.search_column_count,
11554
11556
  disabledShowSearchGroupName: e.config?.disabledShowSearchGroupName,
11555
- onChange: jt
11557
+ onChange: Mt
11556
11558
  }, null, 8, [
11557
11559
  "searchConfig",
11558
11560
  "autoRefreshOnSearchChange",
@@ -11564,7 +11566,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11564
11566
  "disabledShowSearchGroupName"
11565
11567
  ])) : A("", !0)], 512), P(o, {
11566
11568
  ref_key: "elRef",
11567
- ref: Pe,
11569
+ ref: Fe,
11568
11570
  "body-style": { padding: 0 }
11569
11571
  }, {
11570
11572
  default: K(() => [P(uu, {
@@ -11577,13 +11579,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11577
11579
  router: U(y),
11578
11580
  selfEventBus: U(S),
11579
11581
  loading: ee.value,
11580
- screenState: U(Fe),
11582
+ screenState: U(Ie),
11581
11583
  tableSize: W.tableSize,
11582
11584
  "onUpdate:tableSize": n[2] ||= (e) => W.tableSize = e,
11583
- columns: Je.value,
11584
- view_key: Ee.value,
11585
+ columns: Ye.value,
11586
+ view_key: Ne.value,
11585
11587
  view_flag_name: e.config.title,
11586
- is_view: Ue.value,
11588
+ is_view: We.value,
11587
11589
  refreshType: be.value,
11588
11590
  selectedConditionGroup: xe.value,
11589
11591
  "onUpdate:selectedConditionGroup": n[3] ||= (e) => xe.value = e,
@@ -11593,16 +11595,16 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11593
11595
  "onUpdate:groupConditionValue": n[5] ||= (e) => Ce.value = e,
11594
11596
  settingOpen: te.value,
11595
11597
  "onUpdate:settingOpen": n[6] ||= (e) => te.value = e,
11596
- onRefresh: nt,
11597
- onExport: xt,
11598
- onSetFull: U(Ie),
11599
- onExitFull: U(Le),
11600
- onColumnsChange: St,
11598
+ onRefresh: rt,
11599
+ onExport: St,
11600
+ onSetFull: U(Le),
11601
+ onExitFull: U(Re),
11602
+ onColumnsChange: Ct,
11601
11603
  onHeightChange: n[7] ||= (e) => de.value = e,
11602
- onRefreshTypeChange: it,
11603
- onTableSizeChange: st,
11604
- onSelectedConditionGroupChange: Nt,
11605
- onGroupConditionValueChange: Mt
11604
+ onRefreshTypeChange: at,
11605
+ onTableSizeChange: ct,
11606
+ onSelectedConditionGroupChange: Pt,
11607
+ onGroupConditionValueChange: Nt
11606
11608
  }, {
11607
11609
  header_bar_before_title: K(() => [je(t.$slots, "header_bar_before_title", {}, void 0, !0)]),
11608
11610
  header_bar_after_title: K(() => [je(t.$slots, "header_bar_after_title", {}, void 0, !0)]),
@@ -11632,51 +11634,51 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11632
11634
  "settingOpen",
11633
11635
  "onSetFull",
11634
11636
  "onExitFull"
11635
- ]), Je.value?.length > 0 ? (R(), k(a, {
11637
+ ]), Ye.value?.length > 0 ? (R(), k(a, {
11636
11638
  key: 0,
11637
- columns: qe.value,
11639
+ columns: Je.value,
11638
11640
  selectedRowKeys: x.value,
11639
11641
  "onUpdate:selectedRowKeys": n[9] ||= (e) => x.value = e,
11640
11642
  "data-source": b.value,
11641
11643
  bordered: !0,
11642
11644
  size: W.tableSize,
11643
- height: ot.value,
11645
+ height: st.value,
11644
11646
  rowHeight: e.config.rowHeightFunc || e.config.rowHeight || void 0,
11645
- scroll: { x: Ye.value },
11647
+ scroll: { x: Xe.value },
11646
11648
  loading: ee.value && !e.config?.disabled_table_loading,
11647
11649
  pagination: e.config?.is_pagination ? {
11648
11650
  current: W.current,
11649
11651
  pageSize: W.pageSize,
11650
11652
  total: W.total,
11651
- onChange: Ve,
11653
+ onChange: He,
11652
11654
  showSizeChanger: !0,
11653
- pageSizeOptions: Te.value
11655
+ pageSizeOptions: Ee.value
11654
11656
  } : !1,
11655
- rowKey: we.value,
11656
- rowSelection: e.config?.is_selection ? We.value : null,
11657
+ rowKey: Te.value,
11658
+ rowSelection: e.config?.is_selection ? Ge.value : null,
11657
11659
  "custom-cell": e.config?.customCell,
11658
11660
  "custom-header-cell": e.config?.customHeaderCell,
11659
11661
  "custom-row": e.config?.customRow,
11660
11662
  virtual: !0,
11661
11663
  sticky: "",
11662
11664
  "summary-fixed": "",
11663
- preserveRow: Ne,
11665
+ preserveRow: q,
11664
11666
  style: L({ "--row-heigth": `${e.config.rowHeight}px` }),
11665
11667
  class: I({ "modify-row-height": !!e.config.rowHeight }),
11666
- onChange: vt,
11667
- onCellClick: yt,
11668
- onResizeColumn: wt
11668
+ onChange: yt,
11669
+ onCellClick: bt,
11670
+ onResizeColumn: Tt
11669
11671
  }, _e({
11670
11672
  customFilterDropdown: K(({ confirm: e, clearFilters: t, column: r }) => [P(Bn, {
11671
11673
  column: r,
11672
11674
  searchConfig: E.value,
11673
11675
  searchConditions: ne.value,
11674
11676
  "onUpdate:searchConditions": n[8] ||= (e) => ne.value = e,
11675
- searchType: He.value,
11677
+ searchType: Ue.value,
11676
11678
  confirm: e,
11677
11679
  clearFilters: t,
11678
- onSearch: et,
11679
- onReset: tt
11680
+ onSearch: tt,
11681
+ onReset: nt
11680
11682
  }, null, 8, [
11681
11683
  "column",
11682
11684
  "searchConfig",
@@ -11696,7 +11698,7 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11696
11698
  pageSize: W.pageSize ? W.pageSize : 500,
11697
11699
  current: W.current ? W.current : 1,
11698
11700
  eventBus: e.eventBus,
11699
- tableHeightY: ot.value,
11701
+ tableHeightY: st.value,
11700
11702
  requestParams: e.config.query_params,
11701
11703
  auth_btn_list: F.value,
11702
11704
  event_obj: U(S),
@@ -11719,14 +11721,14 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11719
11721
  contextmenuPopup: K((t) => [P(fu, {
11720
11722
  contextmenuPopup: t,
11721
11723
  dataSource: b.value,
11722
- columns: Je.value,
11723
- view_key: Ee.value,
11724
+ columns: Ye.value,
11725
+ view_key: Ne.value,
11724
11726
  view_flag_name: e.config.title,
11725
- is_view: Ue.value,
11727
+ is_view: We.value,
11726
11728
  "self-event-bus": U(S),
11727
- onRefresh: nt,
11728
- onExport: xt,
11729
- onColumnsChange: St
11729
+ onRefresh: rt,
11730
+ onExport: St,
11731
+ onColumnsChange: Ct
11730
11732
  }, null, 8, [
11731
11733
  "contextmenuPopup",
11732
11734
  "dataSource",
@@ -11741,13 +11743,13 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11741
11743
  name: "customFilterIcon",
11742
11744
  fn: K(({ filtered: e, column: t }) => [P(U(Ze), { style: L({ color: e || U(h)(ne.value).some((e) => e.field_name === t.dataIndex) ? "#108ee9" : void 0 }) }, null, 8, ["style"])]),
11743
11745
  key: "0"
11744
- } : void 0, gt.value.length > 0 ? {
11746
+ } : void 0, _t.value.length > 0 ? {
11745
11747
  name: "summary",
11746
11748
  fn: K(() => [P(i, null, {
11747
11749
  default: K(() => [P(r, { index: 0 }, {
11748
11750
  default: K(() => n[11] ||= [N("合计")]),
11749
11751
  _: 1
11750
- }), (R(!0), j(D, null, B(gt.value, (e) => (R(), k(r, {
11752
+ }), (R(!0), j(D, null, B(_t.value, (e) => (R(), k(r, {
11751
11753
  key: e.key,
11752
11754
  columnKey: e.key
11753
11755
  }, {
@@ -11781,15 +11783,15 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11781
11783
  _: 3
11782
11784
  }, 512)], 512), ve.value ? (R(), k(s, {
11783
11785
  key: 0,
11784
- "column-list": Qe.value,
11785
- columns: $e.value,
11786
+ "column-list": $e.value,
11787
+ columns: et.value,
11786
11788
  "source-columns": e.config.columns,
11787
11789
  current: W.current,
11788
11790
  datasource: b.value,
11789
- filename: Xe.value,
11791
+ filename: Qe.value,
11790
11792
  pageSize: W.pageSize,
11791
11793
  total: W.total,
11792
- requestParams: q({ type: "list" }),
11794
+ requestParams: Pe({ type: "list" }),
11793
11795
  queryData: e.config.list_url,
11794
11796
  open: ve.value,
11795
11797
  "onUpdate:open": n[10] ||= (e) => ve.value = e
@@ -11808,6 +11810,6 @@ var Bl = /*#__PURE__*/ s(Il, [["render", zl]]), Vl = { key: 0 }, Hl = /* @__PURE
11808
11810
  ])) : A("", !0)], 64);
11809
11811
  };
11810
11812
  }
11811
- }), gu = /* @__PURE__ */ e({ default: () => _u }), _u = /*#__PURE__*/ s(hu, [["__scopeId", "data-v-bd26148f"]]);
11813
+ }), gu = /* @__PURE__ */ e({ default: () => _u }), _u = /*#__PURE__*/ s(hu, [["__scopeId", "data-v-118b8da4"]]);
11812
11814
  //#endregion
11813
11815
  export { Lt as S, Ht as _, qi as a, Vt as b, ln as c, Xt as d, Qt as f, Rt as g, Wt as h, Vc as i, en as l, qt as m, gu as n, Ln as o, un as p, uu as r, On as s, _u as t, Zt as u, Gt as v, zt as x, Bt as y };