lyflowchart 1.0.157 → 1.0.161

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.
Files changed (39) hide show
  1. package/dist/{ActionsConfig-gWnpd8yJ.js → ActionsConfig-Bx0tgz1e.js} +1 -1
  2. package/dist/{ApprovalEditorModal-Bvxrg96y.js → ApprovalEditorModal-CGZEehE6.js} +1 -1
  3. package/dist/{Cell_click_approve-DMXnrtxc.js → Cell_click_approve-D4BAdjen.js} +1 -1
  4. package/dist/{approval-DfU1MtBL.js → approval-DOumm1tc.js} +1 -1
  5. package/dist/{approval-ekd9_mwq.js → approval-TIlcTs-h.js} +2 -2
  6. package/dist/{approvalHistory-DsHMvx1n.js → approvalHistory-BYTbTSXf.js} +2 -2
  7. package/dist/{approvalPageConfig-BA2SXnnv.js → approvalPageConfig-Yn3tPl7r.js} +7 -7
  8. package/dist/{approveLeftConfig-Cskh4ezK.js → approveLeftConfig-BKDdM87m.js} +1 -1
  9. package/dist/{columnTables-DdOJYJq9.js → columnTables-Drq0OCcY.js} +169 -166
  10. package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +6 -6
  11. package/dist/components/approval/components/approvalPageConfig/searchConfig.vue.d.ts +7 -7
  12. package/dist/components/approval/components/columnDataList.vue.d.ts +1 -0
  13. package/dist/components/approval/components/columnTables.vue.d.ts +1 -0
  14. package/dist/components/approval/components/drawerDataList.vue.d.ts +1 -0
  15. package/dist/components/approval/components/drawerTablesList.vue.d.ts +1 -0
  16. package/dist/components/approval/components/modelTablesList.vue.d.ts +1 -0
  17. package/dist/components/approval/components/table.vue.d.ts +2 -1
  18. package/dist/components/approval/dbViewAdapter.d.ts +40 -0
  19. package/dist/components/approval/typing.d.ts +1 -0
  20. package/dist/{core-o5mxWnrL.js → core-fRduuqmc.js} +4 -4
  21. package/dist/dbViewAdapter-ByVGSDgn.js +25 -0
  22. package/dist/{debugCode-CTU6KCej.js → debugCode-ZiYZUq5N.js} +2 -2
  23. package/dist/index.js +5 -5
  24. package/dist/{leftColumn-CLixXPdW.js → leftColumn-Bn1KoLRy.js} +2 -2
  25. package/dist/lyflowchart.css +1 -1
  26. package/dist/{middleColumn-CTOCcPnB.js → middleColumn-Cdx9-JfV.js} +1 -1
  27. package/dist/{tableConfig-0LuPJS0X.js → tableConfig-B6bfpf7X.js} +586 -562
  28. package/dist/{tableModal-CbEn3HNo.js → tableModal-DJ4BgjcA.js} +1 -1
  29. package/package.json +1 -1
  30. /package/dist/{JsonTags-DQdw3WxB.js → JsonTags-BQZ9jIF_.js} +0 -0
  31. /package/dist/{approvalHistoryViewModal-UzVPPpNH.js → approvalHistoryViewModal-D3_z9bf3.js} +0 -0
  32. /package/dist/{codeHistoryViewModal-BIktV_o6.js → codeHistoryViewModal-DnNI_S8C.js} +0 -0
  33. /package/dist/{dataStoreSettingHistoryViewModal-DjSRPgQC.js → dataStoreSettingHistoryViewModal-Bwf0Kbvh.js} +0 -0
  34. /package/dist/{debugCode-dD1YnQSD.js → debugCode-_6PzXpbO.js} +0 -0
  35. /package/dist/{default-CFd6cRxl.js → default-BNQ2XYku.js} +0 -0
  36. /package/dist/{example_code-DKjqP7KK.js → example_code-Bqj9GjMk.js} +0 -0
  37. /package/dist/{flowHistoryViewModal-CaGj3LP4.js → flowHistoryViewModal-CVg7Wn7_.js} +0 -0
  38. /package/dist/{settingsState-CI81PG-i.js → settingsState-Bz7q-7ZJ.js} +0 -0
  39. /package/dist/{v0001-OaBeBCXI.js → v0001-iEj36Rvz.js} +0 -0
@@ -1,15 +1,16 @@
1
1
  import { a as e, b as t, o as n } from "./init-plugin-CpYzRii0.js";
2
2
  import { O as r, _ as i, b as a, g as o, h as s, k as c, m as l, o as u, u as d, w as f, x as p, y as m } from "./utils-DRldFEoM.js";
3
- import { Fragment as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeClass as T, normalizeStyle as E, onMounted as D, onUnmounted as ee, openBlock as O, reactive as k, ref as A, renderList as j, resolveComponent as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, watch as I, withCtx as L } from "vue";
4
- import { message as te } from "ant-design-vue";
5
- import { cloneDeep as R, debounce as ne, isArray as re, isEqual as z } from "lodash";
6
- import { useI18n as B } from "vue-i18n";
7
- import V from "moment";
3
+ import { r as h } from "./dbViewAdapter-ByVGSDgn.js";
4
+ import { Fragment as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, normalizeClass as E, normalizeStyle as D, onMounted as ee, onUnmounted as te, openBlock as O, reactive as k, ref as A, renderList as j, resolveComponent as M, resolveDynamicComponent as N, toDisplayString as P, unref as F, watch as I, withCtx as L } from "vue";
5
+ import { message as ne } from "ant-design-vue";
6
+ import { cloneDeep as R, debounce as z, isArray as re, isEqual as B } from "lodash";
7
+ import { useI18n as V } from "vue-i18n";
8
+ import H from "moment";
8
9
  import ie from "mitt";
9
- import { useResizeObserver as H } from "@vueuse/core";
10
- import { defineStore as U } from "pinia";
10
+ import { useResizeObserver as U } from "@vueuse/core";
11
+ import { defineStore as W } from "pinia";
11
12
  //#region src/components/approval/components/searchSummary.vue?vue&type=script&lang.ts
12
- var W = w({
13
+ var G = T({
13
14
  name: "searchSummary",
14
15
  props: {
15
16
  searchConfig: {
@@ -27,7 +28,7 @@ var W = w({
27
28
  },
28
29
  emits: ["update:searchConditions"],
29
30
  setup(e, { emit: t }) {
30
- let n = f(), { t: i } = B(), a = (e, t, r) => {
31
+ let n = f(), { t: i } = V(), a = (e, t, r) => {
31
32
  let a = [], o;
32
33
  if (t === "is_or_not_blank_or_null" || t === "is_or_not_null") return i(r === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
33
34
  if (t === "_eq") {
@@ -49,14 +50,14 @@ var W = w({
49
50
  if (r instanceof Array) {
50
51
  let t = [];
51
52
  r.forEach((n) => {
52
- n ? t.push(V(n).format(e.dateFormat)) : t.push(n);
53
+ n ? t.push(H(n).format(e.dateFormat)) : t.push(n);
53
54
  }), o = t.join(",");
54
- } else o = V(r).format(e.dateFormat);
55
+ } else o = H(r).format(e.dateFormat);
55
56
  return `${n[t]} ${o}`;
56
57
  } else return `${n[t]} ${r}`;
57
58
  };
58
59
  return {
59
- dataSource: g(() => {
60
+ dataSource: _(() => {
60
61
  let t = {};
61
62
  for (let n of e.searchConditions) t[n.field_name] = {
62
63
  value: n.value,
@@ -82,29 +83,29 @@ var W = w({
82
83
  };
83
84
  },
84
85
  components: {}
85
- }), G = { class: "search-summary" };
86
- function K(e, t, n, r, i, a) {
86
+ }), K = { class: "search-summary" };
87
+ function q(e, t, n, r, i, a) {
87
88
  let o = M("a-tag"), s = M("RedoOutlined"), c = M("a-button");
88
- return O(), y("span", G, [(O(!0), y(h, null, j(e.dataSource, (t) => (O(), _(o, {
89
+ return O(), b("span", K, [(O(!0), b(g, null, j(e.dataSource, (t) => (O(), v(o, {
89
90
  key: t.field_name,
90
91
  color: "green",
91
92
  closable: "",
92
93
  onClose: (n) => e.handleClose(t.field_name)
93
94
  }, {
94
- default: L(() => [S(P(t.summary), 1)]),
95
+ default: L(() => [C(P(t.summary), 1)]),
95
96
  _: 2
96
- }, 1032, ["onClose"]))), 128)), C(c, {
97
+ }, 1032, ["onClose"]))), 128)), w(c, {
97
98
  size: "small",
98
99
  type: "text",
99
100
  onClick: e.handleRefresh
100
101
  }, {
101
- default: L(() => [C(s)]),
102
+ default: L(() => [w(s)]),
102
103
  _: 1
103
104
  }, 8, ["onClick"])]);
104
105
  }
105
106
  //#endregion
106
107
  //#region src/components/approval/components/search.vue?vue&type=script&lang.ts
107
- var q = w({
108
+ var J = T({
108
109
  name: "Search",
109
110
  props: {
110
111
  searchConfig: {
@@ -122,7 +123,7 @@ var q = w({
122
123
  },
123
124
  emits: ["update:searchConditions"],
124
125
  setup(e, { emit: t }) {
125
- let n = f(), { t: i } = B(), o = A(!0), s = A({}), u = A({}), d = A({}), p = A([{
126
+ let n = f(), { t: i } = V(), o = A(!0), s = A({}), u = A({}), d = A({}), p = A([{
126
127
  value: "yes",
127
128
  label: i("is_or_not_blank_or_null.yes")
128
129
  }, {
@@ -132,7 +133,7 @@ var q = w({
132
133
  return {
133
134
  isShowForm: o,
134
135
  searchModel: s,
135
- dataSource: g(() => {
136
+ dataSource: _(() => {
136
137
  let t = {};
137
138
  for (let n of e.searchConditions) t[n.field_name] = {
138
139
  value: n.value,
@@ -211,29 +212,29 @@ var q = w({
211
212
  }
212
213
  };
213
214
  },
214
- components: { searchSummary: /* @__PURE__ */ t(W, [["render", K], ["__scopeId", "data-v-af740a0c"]]) }
215
- }), J = { class: "search-switch" }, Y = { class: "expand-btn" }, X = { class: "btn-content" };
216
- function Z(e, t, n, r, i, a) {
215
+ components: { searchSummary: /* @__PURE__ */ t(G, [["render", q], ["__scopeId", "data-v-af740a0c"]]) }
216
+ }), Y = { class: "search-switch" }, X = { class: "expand-btn" }, Z = { class: "btn-content" };
217
+ function Q(e, t, n, r, i, a) {
217
218
  let o = M("a-button"), s = M("search-summary"), c = M("a-select-option"), l = M("a-select"), u = M("SmallTableSerarchField"), d = M("a-input-group"), f = M("a-form-item"), p = M("a-form");
218
- return O(), y(h, null, [
219
- b("span", J, [e.isShowForm ? (O(), _(o, {
219
+ return O(), b(g, null, [
220
+ x("span", Y, [e.isShowForm ? (O(), v(o, {
220
221
  key: 1,
221
222
  type: "link",
222
223
  size: "small",
223
224
  onClick: t[1] ||= (t) => e.isShowForm = !1
224
225
  }, {
225
- default: L(() => [S(P(e.$t("隐藏")), 1)]),
226
+ default: L(() => [C(P(e.$t("隐藏")), 1)]),
226
227
  _: 1
227
- })) : (O(), _(o, {
228
+ })) : (O(), v(o, {
228
229
  key: 0,
229
230
  type: "link",
230
231
  size: "small",
231
232
  onClick: t[0] ||= (t) => e.isShowForm = !0
232
233
  }, {
233
- default: L(() => [b("span", Y, P(e.$t("展开")), 1)]),
234
+ default: L(() => [x("span", X, P(e.$t("展开")), 1)]),
234
235
  _: 1
235
236
  }))]),
236
- e.isShowForm ? v("", !0) : (O(), _(s, {
237
+ e.isShowForm ? y("", !0) : (O(), v(s, {
237
238
  key: 0,
238
239
  "search-conditions": e.searchConditions,
239
240
  "search-config": e.searchConfig,
@@ -245,31 +246,31 @@ function Z(e, t, n, r, i, a) {
245
246
  "event-bus",
246
247
  "onUpdate:searchConditions"
247
248
  ])),
248
- e.isShowForm ? (O(), y(h, { key: 1 }, [C(p, { layout: "inline" }, {
249
- default: L(() => [(O(!0), y(h, null, j(e.dataSource, (n, r) => (O(), _(f, {
249
+ e.isShowForm ? (O(), b(g, { key: 1 }, [w(p, { layout: "inline" }, {
250
+ default: L(() => [(O(!0), b(g, null, j(e.dataSource, (n, r) => (O(), v(f, {
250
251
  key: n.field_name,
251
252
  label: n.label
252
253
  }, {
253
- default: L(() => [C(d, {
254
+ default: L(() => [w(d, {
254
255
  compact: "",
255
256
  size: "small"
256
257
  }, {
257
- default: L(() => [n.operator_list.length > 0 ? (O(), _(l, {
258
+ default: L(() => [n.operator_list.length > 0 ? (O(), v(l, {
258
259
  key: 0,
259
260
  dropdownMatchSelectWidth: !1,
260
261
  value: n.operator,
261
262
  onChange: (t) => e.onChange(n.field_name, "operator", t),
262
263
  size: "small"
263
264
  }, {
264
- default: L(() => [(O(!0), y(h, null, j(n.operator_list, (t) => (O(), _(c, {
265
+ default: L(() => [(O(!0), b(g, null, j(n.operator_list, (t) => (O(), v(c, {
265
266
  value: t,
266
267
  key: t
267
268
  }, {
268
- default: L(() => [S(P(e.operator_type_map[t]), 1)]),
269
+ default: L(() => [C(P(e.operator_type_map[t]), 1)]),
269
270
  _: 2
270
271
  }, 1032, ["value"]))), 128))]),
271
272
  _: 2
272
- }, 1032, ["value", "onChange"])) : v("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (O(), _(u, {
273
+ }, 1032, ["value", "onChange"])) : y("", !0), ["is_or_not_blank_or_null", "is_or_not_null"].includes(n.operator) ? (O(), v(u, {
273
274
  key: 1,
274
275
  is_show_label: !1,
275
276
  label: n.field_name,
@@ -294,7 +295,7 @@ function Z(e, t, n, r, i, a) {
294
295
  "options",
295
296
  "validateInfos",
296
297
  "onUpdate:value"
297
- ])) : ["input"].includes(n.format) ? (O(), y(h, { key: 2 }, [n.operator === "between" || n.operator === "notbetween" ? (O(), y(h, { key: 0 }, [n.type === "datepicker" ? (O(), _(u, {
298
+ ])) : ["input"].includes(n.format) ? (O(), b(g, { key: 2 }, [n.operator === "between" || n.operator === "notbetween" ? (O(), b(g, { key: 0 }, [n.type === "datepicker" ? (O(), v(u, {
298
299
  key: 0,
299
300
  is_show_label: !1,
300
301
  label: n.field_name,
@@ -314,7 +315,7 @@ function Z(e, t, n, r, i, a) {
314
315
  "formModel",
315
316
  "validateInfos",
316
317
  "onUpdate:value"
317
- ])) : n.type === "monthpicker" ? (O(), _(u, {
318
+ ])) : n.type === "monthpicker" ? (O(), v(u, {
318
319
  key: 1,
319
320
  is_show_label: !1,
320
321
  label: n.field_name,
@@ -333,8 +334,8 @@ function Z(e, t, n, r, i, a) {
333
334
  "formModel",
334
335
  "validateInfos",
335
336
  "onUpdate:value"
336
- ])) : (O(), y(h, { key: 2 }, [
337
- C(u, {
337
+ ])) : (O(), b(g, { key: 2 }, [
338
+ w(u, {
338
339
  is_show_label: !1,
339
340
  label: n.field_name,
340
341
  value: n.value?.[0],
@@ -353,8 +354,8 @@ function Z(e, t, n, r, i, a) {
353
354
  "validateInfos",
354
355
  "onUpdate:value"
355
356
  ]),
356
- t[2] ||= b("span", { class: "range" }, "~", -1),
357
- C(u, {
357
+ t[2] ||= x("span", { class: "range" }, "~", -1),
358
+ w(u, {
358
359
  is_show_label: !1,
359
360
  label: n.field_name,
360
361
  value: n.value?.[1],
@@ -373,7 +374,7 @@ function Z(e, t, n, r, i, a) {
373
374
  "validateInfos",
374
375
  "onUpdate:value"
375
376
  ])
376
- ], 64))], 64)) : n.operator === "_eq" ? (O(), _(u, {
377
+ ], 64))], 64)) : n.operator === "_eq" ? (O(), v(u, {
377
378
  key: 1,
378
379
  is_show_label: !1,
379
380
  label: n.field_name,
@@ -398,7 +399,7 @@ function Z(e, t, n, r, i, a) {
398
399
  "options",
399
400
  "validateInfos",
400
401
  "onUpdate:value"
401
- ])) : n.type === "datepicker" || n.type === "monthpicker" ? (O(), _(u, {
402
+ ])) : n.type === "datepicker" || n.type === "monthpicker" ? (O(), v(u, {
402
403
  key: 2,
403
404
  is_show_label: !1,
404
405
  label: n.field_name,
@@ -419,7 +420,7 @@ function Z(e, t, n, r, i, a) {
419
420
  "options",
420
421
  "validateInfos",
421
422
  "onUpdate:value"
422
- ])) : (O(), _(u, {
423
+ ])) : (O(), v(u, {
423
424
  key: 3,
424
425
  is_show_label: !1,
425
426
  label: n.field_name,
@@ -437,7 +438,7 @@ function Z(e, t, n, r, i, a) {
437
438
  "options",
438
439
  "validateInfos",
439
440
  "onUpdate:value"
440
- ]))], 64)) : ["choices", "remote"].includes(n.format) ? (O(), y(h, { key: 3 }, [n.format === "choices" ? (O(), _(u, {
441
+ ]))], 64)) : ["choices", "remote"].includes(n.format) ? (O(), b(g, { key: 3 }, [n.format === "choices" ? (O(), v(u, {
441
442
  key: 0,
442
443
  is_show_label: !1,
443
444
  label: n.field_name,
@@ -455,7 +456,7 @@ function Z(e, t, n, r, i, a) {
455
456
  "options",
456
457
  "validateInfos",
457
458
  "onUpdate:value"
458
- ])) : n.format === "remote" ? (O(), _(u, {
459
+ ])) : n.format === "remote" ? (O(), v(u, {
459
460
  key: 1,
460
461
  is_show_label: !1,
461
462
  label: n.field_name,
@@ -476,23 +477,23 @@ function Z(e, t, n, r, i, a) {
476
477
  "options",
477
478
  "validateInfos",
478
479
  "onUpdate:value"
479
- ])) : v("", !0)], 64)) : v("", !0)]),
480
+ ])) : y("", !0)], 64)) : y("", !0)]),
480
481
  _: 2
481
482
  }, 1024)]),
482
483
  _: 2
483
484
  }, 1032, ["label"]))), 128))]),
484
485
  _: 1
485
- }), b("div", X, [C(o, {
486
+ }), x("div", Z, [w(o, {
486
487
  size: "small",
487
488
  type: "primary",
488
489
  onClick: e.handleRefresh
489
490
  }, {
490
- default: L(() => [...t[3] ||= [S(" 查询 ", -1)]]),
491
+ default: L(() => [...t[3] ||= [C(" 查询 ", -1)]]),
491
492
  _: 1
492
- }, 8, ["onClick"])])], 64)) : v("", !0)
493
+ }, 8, ["onClick"])])], 64)) : y("", !0)
493
494
  ], 64);
494
495
  }
495
- var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]]), Q = "SET_SEARCH_CONDITIONS", oe = "SET_SELECTED_ROWKEYS", se = "SET_DATASOURCE", ce = "SET_FORM_MODEL", le = "SET_RAW", ue = "SET_CURRENT_HISTORY_ID", de = "SET_REQUST_HISTORY_ID", fe = "CLEAR_CONTEXT", pe = "SET_EDIT", me = "SET_CURRENT_FLOW_HISTORY_ID", he = "SET_REQUST_FLOW_HISTORY_ID", ge = "SET_GLOBAL_DATA", _e = U("approval_context", {
496
+ var $ = /* @__PURE__ */ t(J, [["render", Q], ["__scopeId", "data-v-6db64c14"]]), ae = "SET_SEARCH_CONDITIONS", oe = "SET_SELECTED_ROWKEYS", se = "SET_DATASOURCE", ce = "SET_FORM_MODEL", le = "SET_RAW", ue = "SET_CURRENT_HISTORY_ID", de = "SET_REQUST_HISTORY_ID", fe = "CLEAR_CONTEXT", pe = "SET_EDIT", me = "SET_CURRENT_FLOW_HISTORY_ID", he = "SET_REQUST_FLOW_HISTORY_ID", ge = "SET_GLOBAL_DATA", _e = W("approval_context", {
496
497
  persist: !1,
497
498
  state: () => ({ contexts: null }),
498
499
  actions: {
@@ -514,7 +515,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
514
515
  datasource: []
515
516
  }), n.tables[t];
516
517
  },
517
- [Q](e, t, n) {
518
+ [ae](e, t, n) {
518
519
  let r = this.initTable(e, t);
519
520
  r.searchConditions = n;
520
521
  },
@@ -566,7 +567,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
566
567
  cursor: "pointer",
567
568
  padding: "4px 16px"
568
569
  }
569
- }, ye = /* @__PURE__ */ t(/* @__PURE__ */ w({
570
+ }, ye = /* @__PURE__ */ t(/* @__PURE__ */ T({
570
571
  name: "actionBar",
571
572
  __name: "actionsBar",
572
573
  props: {
@@ -576,11 +577,11 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
576
577
  },
577
578
  emits: ["click", "update:action_width"],
578
579
  setup(t, { emit: n }) {
579
- let r = t, i = n, a = A(null), o = A({}), s = A({}), c = g(() => r.actions.filter((e) => !e.is_dropdown));
580
- H(a, (e) => {
580
+ let r = t, i = n, a = A(null), o = A({}), s = A({}), c = _(() => r.actions.filter((e) => !e.is_dropdown));
581
+ U(a, (e) => {
581
582
  i("update:action_width", e[0].contentRect.width);
582
583
  });
583
- let l = g(() => {
584
+ let l = _(() => {
584
585
  let e = {}, t = [];
585
586
  for (let n of r.actions) n.is_dropdown && (e[n.group_name] || (e[n.group_name] = {
586
587
  name: n.group_name,
@@ -591,7 +592,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
591
592
  let e = R(o.value), t = R(s.value);
592
593
  for (let n of r.actions || []) e[n.action_code_id] = !0, t[n.action_code_id] = !1;
593
594
  o.value = e, s.value = t;
594
- }, f = ne(async (t) => {
595
+ }, f = z(async (t) => {
595
596
  let n = R(o.value), i = R(s.value);
596
597
  for (let a of r.actions || []) {
597
598
  if (n[a.action_code_id] = !0, i[a.action_code_id] = !1, a.showCode?.enable && a.showCode?.code) try {
@@ -636,13 +637,13 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
636
637
  i("click", e);
637
638
  };
638
639
  return (e, n) => {
639
- let r = M("a-button"), i = M("debugCode"), d = M("a-menu-item"), f = M("a-menu"), m = M("DownOutlined"), g = M("a-dropdown");
640
- return t.actions ? (O(), y("div", {
640
+ let r = M("a-button"), i = M("debugCode"), d = M("a-menu-item"), f = M("a-menu"), m = M("DownOutlined"), h = M("a-dropdown");
641
+ return t.actions ? (O(), b("div", {
641
642
  key: 0,
642
643
  class: "actions",
643
644
  ref_key: "rowActionTestRef",
644
645
  ref: a
645
- }, [(O(!0), y(h, null, j(c.value, (e, t) => (O(), _(i, {
646
+ }, [(O(!0), b(g, null, j(c.value, (e, t) => (O(), v(i, {
646
647
  key: t,
647
648
  action_code_id: e.action_code_id,
648
649
  code: e.code,
@@ -656,7 +657,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
656
657
  options: F(u),
657
658
  show: o.value[e.action_code_id]
658
659
  }, {
659
- default: L(() => [C(r, {
660
+ default: L(() => [w(r, {
660
661
  size: "small",
661
662
  type: e.type,
662
663
  danger: e.danger,
@@ -664,7 +665,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
664
665
  onClick: (t) => p(e),
665
666
  disabled: s.value[e.action_code_id]
666
667
  }, {
667
- default: L(() => [S(P(e.label), 1)]),
668
+ default: L(() => [C(P(e.label), 1)]),
668
669
  _: 2
669
670
  }, 1032, [
670
671
  "type",
@@ -686,9 +687,9 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
686
687
  "onUpdate:disableCode",
687
688
  "options",
688
689
  "show"
689
- ]))), 128)), (O(!0), y(h, null, j(l.value, (e) => (O(), _(g, null, {
690
- overlay: L(() => [C(f, null, {
691
- default: L(() => [(O(!0), y(h, null, j(e.children, (e, t) => (O(), _(i, {
690
+ ]))), 128)), (O(!0), b(g, null, j(l.value, (e) => (O(), v(h, null, {
691
+ overlay: L(() => [w(f, null, {
692
+ default: L(() => [(O(!0), b(g, null, j(e.children, (e, t) => (O(), v(i, {
692
693
  key: t,
693
694
  action_code_id: e.action_code_id,
694
695
  code: e.code,
@@ -702,11 +703,11 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
702
703
  options: F(u),
703
704
  show: o.value[e.action_code_id]
704
705
  }, {
705
- default: L(() => [C(d, {
706
+ default: L(() => [w(d, {
706
707
  onClick: (t) => p(e),
707
708
  disabled: s.value[e.action_code_id]
708
709
  }, {
709
- default: L(() => [S(P(e.label), 1)]),
710
+ default: L(() => [C(P(e.label), 1)]),
710
711
  _: 2
711
712
  }, 1032, ["onClick", "disabled"])]),
712
713
  _: 2
@@ -725,18 +726,18 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
725
726
  ]))), 128))]),
726
727
  _: 2
727
728
  }, 1024)]),
728
- default: L(() => [e.name ? (O(), _(r, {
729
+ default: L(() => [e.name ? (O(), v(r, {
729
730
  key: 0,
730
731
  size: "small"
731
732
  }, {
732
- default: L(() => [S(P(e.name) + " ", 1), C(m)]),
733
+ default: L(() => [C(P(e.name) + " ", 1), w(m)]),
733
734
  _: 2
734
- }, 1024)) : (O(), y("div", ve, " · · · "))]),
735
+ }, 1024)) : (O(), b("div", ve, " · · · "))]),
735
736
  _: 2
736
- }, 1024))), 256))], 512)) : v("", !0);
737
+ }, 1024))), 256))], 512)) : y("", !0);
737
738
  };
738
739
  }
739
- }), [["__scopeId", "data-v-f6310668"]]), be = /* @__PURE__ */ w({
740
+ }), [["__scopeId", "data-v-f6310668"]]), be = /* @__PURE__ */ T({
740
741
  __name: "TableSummary",
741
742
  props: {
742
743
  item: {
@@ -749,7 +750,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
749
750
  }
750
751
  },
751
752
  setup(e) {
752
- let t = e, n = g(() => {
753
+ let t = e, n = _(() => {
753
754
  let e = 0;
754
755
  for (let n of t.summaryParams.pageData) {
755
756
  let a = n[t.summaryParams.column.dataIndex];
@@ -762,18 +763,18 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
762
763
  return parseFloat((e + t).toFixed(n));
763
764
  }
764
765
  let i = (e) => (typeof e == "string" && (e = parseFloat(e)), e);
765
- return (t, r) => e.item.cellSummaryComponent ? (O(), _(N("CellSummary_" + e.item.cellSummaryComponent), {
766
+ return (t, r) => e.item.cellSummaryComponent ? (O(), v(N("CellSummary_" + e.item.cellSummaryComponent), {
766
767
  key: 0,
767
768
  cmpObj: {
768
769
  item: e.item,
769
770
  total: n.value
770
771
  }
771
- }, null, 8, ["cmpObj"])) : (O(), y("span", {
772
+ }, null, 8, ["cmpObj"])) : (O(), b("span", {
772
773
  key: 1,
773
- style: E(e.item.total_color ? e.item.total_color(e.item) : null)
774
+ style: D(e.item.total_color ? e.item.total_color(e.item) : null)
774
775
  }, P(e.item.total_content ? e.item.total_content(e.item) : n.value), 5));
775
776
  }
776
- }), xe = 50, Se = w({
777
+ }), xe = 50, Se = T({
777
778
  name: "ApprovalTable",
778
779
  props: {
779
780
  config: {
@@ -803,7 +804,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
803
804
  },
804
805
  emits: ["selection-change"],
805
806
  setup(e, { emit: t }) {
806
- let r = _e(), i = A([]), a = A([]), o = A(!1), l = ie(), u = A([]), f = null, m = A(null), h = A(null), _ = A(null), v = A(null), y = A(null), b = A(null), x = A(70), S = A({}), C = A([]), w = !1, T = !1, E = A([
807
+ let r = _e(), i = A([]), a = A([]), o = A(!1), l = ie(), u = A([]), f = null, m = A(null), g = A(null), v = A(null), y = A(null), b = A(null), x = A(null), S = A(70), C = A({}), w = A([]), T = !1, E = !1, D = A([
807
808
  "10",
808
809
  "20",
809
810
  "50",
@@ -821,12 +822,12 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
821
822
  pageSize: xe,
822
823
  total: 0
823
824
  });
824
- H(m, (e) => {
825
- h.value = e[0].contentRect.height;
826
- }), H(_, (e) => {
827
- v.value = e[0].contentRect.height;
828
- }), H(y, (e) => {
829
- b.value = e[0].contentRect.height;
825
+ U(m, (e) => {
826
+ g.value = e[0].contentRect.height;
827
+ }), U(v, (e) => {
828
+ y.value = e[0].contentRect.height;
829
+ }), U(b, (e) => {
830
+ x.value = e[0].contentRect.height;
830
831
  });
831
832
  let j = () => !1, M = (t) => {
832
833
  if (!t) return [];
@@ -838,12 +839,12 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
838
839
  let o = (e) => {
839
840
  let t = e.value;
840
841
  if (e.value_type == "global") if (e.value?.length == 2) {
841
- w = !0;
842
+ T = !0;
842
843
  let n = i.globalData?.[e.value[0]]?.[e.value[1]];
843
844
  t = n ? [n] : null;
844
845
  } else t = null;
845
846
  else if (e.value_type == "form") if (e.value?.length == 2) {
846
- T = !0;
847
+ E = !0;
847
848
  let n = i.formModel?.[a[e.value[1]]];
848
849
  t = n ? [n] : null;
849
850
  } else t = null;
@@ -865,7 +866,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
865
866
  try {
866
867
  a = M(e.config.base_conditions);
867
868
  } catch (e) {
868
- console.error(e), te.error(e instanceof Error ? e.message : String(e));
869
+ console.error(e), ne.error(e instanceof Error ? e.message : String(e));
869
870
  return;
870
871
  }
871
872
  let s = d(u.value), c = [];
@@ -877,7 +878,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
877
878
  children: a
878
879
  });
879
880
  let l = e.config.columns?.map((e) => e.dataIndex), p = [];
880
- for (let e of C.value) e.order == "descend" ? p.push("-" + e.key) : p.push(e.key);
881
+ for (let e of w.value) e.order == "descend" ? p.push("-" + e.key) : p.push(e.key);
881
882
  let m = await n({
882
883
  ...e.config.query_params || {},
883
884
  current: O.current,
@@ -892,12 +893,12 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
892
893
  if (f !== t) return;
893
894
  o.value = !1;
894
895
  }
895
- }, P = ne(N, 500), F = (e, t) => {
896
+ }, P = z(N, 500), F = (e, t) => {
896
897
  O.current == e && O.pageSize == t || (O.current = e || 1, O.pageSize = t || xe, N());
897
- }, L = g(() => ({
898
+ }, L = _(() => e.config.rowKey ? e.config.rowKey : h(e.config.list_url) ? "_id" : "id"), V = _(() => ({
898
899
  type: e.rowSelectionType || e.config.rowSelectionType || "checkbox",
899
900
  onChange: (t) => {
900
- let n = i.value.filter((e) => t.includes(e.id));
901
+ let n = i.value.filter((e) => t.includes(e[L.value]));
901
902
  e.modelType && r[oe](e.modelType, e.config.id, t, n);
902
903
  }
903
904
  }));
@@ -907,10 +908,10 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
907
908
  deep: !0,
908
909
  immediate: !0
909
910
  });
910
- let B = g(() => {
911
+ let H = _(() => {
911
912
  let t = {};
912
913
  for (let e of u.value) ["in", "eq"].includes(e.operator) && (t[e.field_name] = e.value);
913
- let n = S.value || {}, r = R(e.config.columns || []);
914
+ let n = C.value || {}, r = R(e.config.columns || []);
914
915
  !r.some((e) => e.autoWidth) && r.length && (r[r.length - 1].autoWidth = !0);
915
916
  let i = r.map((e) => e.autoWidth ? {
916
917
  ...e,
@@ -930,13 +931,13 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
930
931
  return e.config.row_actions && e.config.row_actions.length > 0 && !e.hideAllButtons ? [...i, {
931
932
  title: "操作",
932
933
  dataIndex: "_action",
933
- width: x.value + 20,
934
+ width: S.value + 20,
934
935
  resizable: !0,
935
936
  fixed: "right"
936
937
  }] : i;
937
- }), V = () => {
938
+ }), W = () => {
938
939
  N();
939
- }, U = async (t, n) => {
940
+ }, G = async (t, n) => {
940
941
  if (!t.action) {
941
942
  console.error("未定义action");
942
943
  return;
@@ -951,7 +952,7 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
951
952
  settings: t.settings
952
953
  }
953
954
  });
954
- }, W = (t, n) => {
955
+ }, K = (t, n) => {
955
956
  let r = e.config && e.config.row_actions || [];
956
957
  if (!r.length) return;
957
958
  let i = r.find((e) => e.label === t);
@@ -959,10 +960,10 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
959
960
  console.warn("cellComponent 触发的行按钮未找到:", t);
960
961
  return;
961
962
  }
962
- U(i, n);
963
- }, G = ({ title: e, record: t }) => {
964
- W(e, t);
965
- }, K = async (t) => {
963
+ G(i, n);
964
+ }, q = ({ title: e, record: t }) => {
965
+ K(e, t);
966
+ }, J = async (t) => {
966
967
  if (!t.action) {
967
968
  console.error("未定义action");
968
969
  return;
@@ -976,65 +977,66 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
976
977
  settings: t.settings
977
978
  }
978
979
  });
979
- }, q = g(() => {
980
- let e = h.value - v.value - b.value - 130;
981
- return Z.value.length > 0 && (e -= 40), e;
982
- }), J = async () => {
980
+ }, Y = _(() => {
981
+ let e = g.value - y.value - x.value - 130;
982
+ return $.value.length > 0 && (e -= 40), e;
983
+ }), X = async () => {
983
984
  await N();
984
985
  let t = r.contexts?.[e.modelType]?.tables?.[e.config.id]?.searchConditions;
985
986
  t && (u.value = t);
986
- }, Y = async () => {
987
- J();
988
- }, X = async () => {
987
+ }, Z = async () => {
988
+ X();
989
+ }, Q = async () => {
989
990
  await N();
990
- }, Z = g(() => {
991
+ }, $ = _(() => {
991
992
  let e = [], t = 0;
992
- for (let n of B.value) n.approve_summary && e.push({
993
+ for (let n of H.value) n.approve_summary && e.push({
993
994
  index: t + 1,
994
995
  cellSummaryComponent: n.approve_cellSummaryComponent,
995
996
  column: n
996
997
  }), t++;
997
998
  return e;
998
999
  });
999
- return D(async () => {
1000
- l.on("refresh", V), e.eventBus && (e.eventBus.on("reinit", Y), e.eventBus.on("reload_table", X), e.eventBus.on("cell_execute_row_action", G)), await J();
1000
+ return ee(async () => {
1001
+ l.on("refresh", W), e.eventBus && (e.eventBus.on("reinit", Z), e.eventBus.on("reload_table", Q), e.eventBus.on("cell_execute_row_action", q)), await X();
1001
1002
  let t = e.config.columns.filter((e) => e.sorter && e.defaultSortOrder);
1002
1003
  t.sort((e, t) => (e.defaultSortIndex || 0) - (t.defaultSortIndex || 0));
1003
- for (let e of t) S.value[e.dataIndex] = e.defaultSortOrder, C.value.push({
1004
+ for (let e of t) C.value[e.dataIndex] = e.defaultSortOrder, w.value.push({
1004
1005
  key: e.dataIndex,
1005
1006
  order: e.defaultSortOrder
1006
1007
  });
1007
- }), ee(() => {
1008
- l.off("refresh", V), e.eventBus && (e.eventBus.off("reinit", Y), e.eventBus.off("reload_table", X), e.eventBus.off("cell_execute_row_action", G));
1008
+ }), te(() => {
1009
+ l.off("refresh", W), e.eventBus && (e.eventBus.off("reinit", Z), e.eventBus.off("reload_table", Q), e.eventBus.off("cell_execute_row_action", q));
1009
1010
  }), e.modelType && (I(() => u.value, (t, n) => {
1010
- z(d(t), d(n)) || (r[Q](e.modelType, e.config.id, t), P());
1011
+ B(d(t), d(n)) || (r[ae](e.modelType, e.config.id, t), P());
1011
1012
  }, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.globalData), (e, t) => {
1012
- !z(e, t) && w && P();
1013
+ !B(e, t) && T && P();
1013
1014
  }, { deep: !0 }), I(() => R(r.contexts[e.modelType]?.formModel), (e, t) => {
1014
- !z(e, t) && T && P();
1015
+ !B(e, t) && E && P();
1015
1016
  }, { deep: !0 })), {
1016
1017
  dataSource: i,
1017
1018
  selectedRowKeys: a,
1018
1019
  loading: o,
1019
1020
  state: O,
1020
1021
  handlePageChange: F,
1021
- handleRowAction: U,
1022
- callRowActionByTitle: W,
1023
- pageSizeOptions: E,
1024
- columns: B,
1022
+ handleRowAction: G,
1023
+ callRowActionByTitle: K,
1024
+ pageSizeOptions: D,
1025
+ columns: H,
1025
1026
  searchConditions: u,
1026
1027
  delayGetDate: P,
1027
1028
  selfEventBus: l,
1028
- row_selection: L,
1029
- handleAction: K,
1030
- searchRef: _,
1031
- actionRef: y,
1032
- searchHeight: v,
1033
- actionHeight: b,
1034
- tableHeight: q,
1035
- rowActionWidth: x,
1029
+ row_selection: V,
1030
+ handleAction: J,
1031
+ searchRef: v,
1032
+ actionRef: b,
1033
+ searchHeight: y,
1034
+ actionHeight: x,
1035
+ tableHeight: Y,
1036
+ rowActionWidth: S,
1036
1037
  context: r,
1037
- summaryColumns: Z,
1038
+ summaryColumns: $,
1039
+ rowKeyField: L,
1038
1040
  preserveRow: j,
1039
1041
  handleChange: (e, t, n, r) => {
1040
1042
  if (r.action !== "paginate") {
@@ -1062,16 +1064,16 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
1062
1064
  key: r.columnKey,
1063
1065
  order: r.order
1064
1066
  });
1065
- S.value = e, C.value = t, N();
1067
+ C.value = e, w.value = t, N();
1066
1068
  }
1067
1069
  }
1068
1070
  },
1069
- tableWraperHeight: h,
1071
+ tableWraperHeight: g,
1070
1072
  tableWraperRef: m
1071
1073
  };
1072
1074
  },
1073
1075
  components: {
1074
- Search: ae,
1076
+ Search: $,
1075
1077
  actionsBar: ye,
1076
1078
  TableSummary: be
1077
1079
  }
@@ -1090,8 +1092,8 @@ var ae = /* @__PURE__ */ t(q, [["render", Z], ["__scopeId", "data-v-6db64c14"]])
1090
1092
  } };
1091
1093
  function De(e, t, n, r, i, a) {
1092
1094
  let o = M("Search"), s = M("actions-bar"), c = M("s-table-summary-cell"), l = M("TableSummary"), u = M("s-table-summary-row"), d = M("s-table");
1093
- return O(), y("div", Ce, [
1094
- b("div", we, [e.config.search_config ? (O(), _(o, {
1095
+ return O(), b("div", Ce, [
1096
+ x("div", we, [e.config.search_config ? (O(), v(o, {
1095
1097
  key: 0,
1096
1098
  searchConfig: e.config.search_config,
1097
1099
  searchConditions: e.searchConditions,
@@ -1101,8 +1103,8 @@ function De(e, t, n, r, i, a) {
1101
1103
  "searchConfig",
1102
1104
  "searchConditions",
1103
1105
  "event-bus"
1104
- ])) : v("", !0)], 512),
1105
- C(d, {
1106
+ ])) : y("", !0)], 512),
1107
+ w(d, {
1106
1108
  columns: e.columns,
1107
1109
  selectedRowKeys: e.selectedRowKeys,
1108
1110
  "onUpdate:selectedRowKeys": t[1] ||= (t) => e.selectedRowKeys = t,
@@ -1122,7 +1124,7 @@ function De(e, t, n, r, i, a) {
1122
1124
  showSizeChanger: !0,
1123
1125
  pageSizeOptions: e.pageSizeOptions
1124
1126
  },
1125
- rowKey: "id",
1127
+ rowKey: e.rowKeyField,
1126
1128
  rowSelection: e.row_selection,
1127
1129
  virtual: !0,
1128
1130
  wrapText: !0,
@@ -1132,8 +1134,8 @@ function De(e, t, n, r, i, a) {
1132
1134
  "table-layout": "auto",
1133
1135
  preserveRow: e.preserveRow,
1134
1136
  onChange: e.handleChange
1135
- }, x({
1136
- bodyCell: L(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (O(), y(h, { key: 0 }, [S(P(n + 1 + e.state.pageSize * (e.state.current - 1)), 1)], 64)) : t.dataIndex == "_action" ? (O(), _(s, {
1137
+ }, S({
1138
+ bodyCell: L(({ column: t, index: n, text: r, record: i }) => [t.dataIndex == "index" ? (O(), b(g, { key: 0 }, [C(P(n + 1 + e.state.pageSize * (e.state.current - 1)), 1)], 64)) : t.dataIndex == "_action" ? (O(), v(s, {
1137
1139
  key: 1,
1138
1140
  actions: e.config.row_actions,
1139
1141
  onClick: (t) => e.handleRowAction(t, i),
@@ -1146,7 +1148,7 @@ function De(e, t, n, r, i, a) {
1146
1148
  "actions",
1147
1149
  "onClick",
1148
1150
  "params"
1149
- ])) : t.cellComponent ? (O(), _(N("Cell_" + t.cellComponent), {
1151
+ ])) : t.cellComponent ? (O(), v(N("Cell_" + t.cellComponent), {
1150
1152
  key: 2,
1151
1153
  cmpObj: {
1152
1154
  column: t || {},
@@ -1159,19 +1161,19 @@ function De(e, t, n, r, i, a) {
1159
1161
  eventBus: e.eventBus,
1160
1162
  call_cell_row_action: (t) => e.callRowActionByTitle(t, i)
1161
1163
  }
1162
- }, null, 8, ["cmpObj"])) : (O(), y(h, { key: 3 }, [S(P(r), 1)], 64))]),
1164
+ }, null, 8, ["cmpObj"])) : (O(), b(g, { key: 3 }, [C(P(r), 1)], 64))]),
1163
1165
  _: 2
1164
1166
  }, [e.summaryColumns.length > 0 ? {
1165
1167
  name: "summary",
1166
- fn: L(() => [C(u, null, {
1167
- default: L(() => [C(c, { index: 0 }, {
1168
- default: L(() => [...t[3] ||= [S("合计", -1)]]),
1168
+ fn: L(() => [w(u, null, {
1169
+ default: L(() => [w(c, { index: 0 }, {
1170
+ default: L(() => [...t[3] ||= [C("合计", -1)]]),
1169
1171
  _: 1
1170
- }), (O(!0), y(h, null, j(e.summaryColumns, (t) => (O(), _(c, {
1172
+ }), (O(!0), b(g, null, j(e.summaryColumns, (t) => (O(), v(c, {
1171
1173
  key: t.index,
1172
1174
  index: t.index
1173
1175
  }, {
1174
- default: L(() => [C(l, {
1176
+ default: L(() => [w(l, {
1175
1177
  item: t,
1176
1178
  summaryParams: {
1177
1179
  pageData: e.dataSource,
@@ -1190,11 +1192,12 @@ function De(e, t, n, r, i, a) {
1190
1192
  "scroll",
1191
1193
  "loading",
1192
1194
  "pagination",
1195
+ "rowKey",
1193
1196
  "rowSelection",
1194
1197
  "preserveRow",
1195
1198
  "onChange"
1196
1199
  ]),
1197
- b("div", Te, [e.hideAllButtons ? v("", !0) : (O(), _(s, {
1200
+ x("div", Te, [e.hideAllButtons ? y("", !0) : (O(), v(s, {
1198
1201
  key: 0,
1199
1202
  actions: e.config.actions,
1200
1203
  onClick: e.handleAction,
@@ -1207,14 +1210,14 @@ function De(e, t, n, r, i, a) {
1207
1210
  "onClick",
1208
1211
  "params"
1209
1212
  ]))], 512),
1210
- b("div", Ee, [C(s, {
1213
+ x("div", Ee, [w(s, {
1211
1214
  actions: e.config.row_actions,
1212
1215
  action_width: e.rowActionWidth,
1213
1216
  "onUpdate:action_width": t[2] ||= (t) => e.rowActionWidth = t
1214
1217
  }, null, 8, ["actions", "action_width"])])
1215
1218
  ], 512);
1216
1219
  }
1217
- var $ = /* @__PURE__ */ t(Se, [["render", De], ["__scopeId", "data-v-34282dc0"]]), Oe = w({
1220
+ var Oe = /* @__PURE__ */ t(Se, [["render", De], ["__scopeId", "data-v-299c96f5"]]), ke = T({
1218
1221
  name: "ApprovalColumnTables",
1219
1222
  props: {
1220
1223
  columnConfig: {
@@ -1254,17 +1257,17 @@ var $ = /* @__PURE__ */ t(Se, [["render", De], ["__scopeId", "data-v-34282dc0"]]
1254
1257
  emits: ["selected-counts-change"],
1255
1258
  setup(e, { emit: t }) {
1256
1259
  let n = A([]);
1257
- D(() => {
1260
+ ee(() => {
1258
1261
  n.value = e.columnConfig.tables?.map((e, t) => t);
1259
1262
  });
1260
- let r = g(() => {
1263
+ let r = _(() => {
1261
1264
  let t = e.filterTables.map((e) => e.id);
1262
1265
  return e.columnConfig.tables.filter((n) => t && t.length > 0 ? t.includes(n.id) : e.groupTitle ? (n.group_title || "未命名") === e.groupTitle : !0);
1263
- }), a = g(() => {
1266
+ }), a = _(() => {
1264
1267
  let t = {};
1265
1268
  for (let n of e.filterTables) t[n.id] = n.isMul ? "checkbox" : "radio";
1266
1269
  return t;
1267
- }), s = g(() => {
1270
+ }), s = _(() => {
1268
1271
  let t = {};
1269
1272
  for (let n of e.filterTables || []) {
1270
1273
  let e = o(n);
@@ -1285,17 +1288,17 @@ var $ = /* @__PURE__ */ t(Se, [["render", De], ["__scopeId", "data-v-34282dc0"]]
1285
1288
  }
1286
1289
  };
1287
1290
  },
1288
- components: { ApprovalTable: $ }
1289
- }), ke = { class: "approval-column-tables" }, Ae = { class: "title" }, je = { class: "title-text" };
1290
- function Me(e, t, n, r, i, a) {
1291
+ components: { ApprovalTable: Oe }
1292
+ }), Ae = { class: "approval-column-tables" }, je = { class: "title" }, Me = { class: "title-text" };
1293
+ function Ne(e, t, n, r, i, a) {
1291
1294
  let o = M("ApprovalTable");
1292
- return O(), y("div", ke, [(O(!0), y(h, null, j(e.filterTables, (t, n) => (O(), y("div", {
1295
+ return O(), b("div", Ae, [(O(!0), b(g, null, j(e.filterTables, (t, n) => (O(), b("div", {
1293
1296
  key: n,
1294
1297
  class: "table-item"
1295
- }, [b("div", Ae, [b("span", je, P(t.title), 1), e.getSelectLimit(t.id) ? (O(), y("span", {
1298
+ }, [x("div", je, [x("span", Me, P(t.title), 1), e.getSelectLimit(t.id) ? (O(), b("span", {
1296
1299
  key: 0,
1297
- class: T(["select-limit", { "is-invalid": e.isSelectCountInvalid(t.id) }])
1298
- }, " (" + P(e.getSelectLimitText(t.id)) + " · 已选 " + P(e.getSelectedCount(t.id)) + " 条) ", 3)) : v("", !0)]), C(o, {
1300
+ class: E(["select-limit", { "is-invalid": e.isSelectCountInvalid(t.id) }])
1301
+ }, " (" + P(e.getSelectLimitText(t.id)) + " · 已选 " + P(e.getSelectedCount(t.id)) + " 条) ", 3)) : y("", !0)]), w(o, {
1299
1302
  config: t,
1300
1303
  modelType: e.modelType,
1301
1304
  eventBus: e.eventBus,
@@ -1313,6 +1316,6 @@ function Me(e, t, n, r, i, a) {
1313
1316
  "onSelectionChange"
1314
1317
  ])]))), 128))]);
1315
1318
  }
1316
- var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-3e52fe46"]]);
1319
+ var Pe = /* @__PURE__ */ t(ke, [["render", Ne], ["__scopeId", "data-v-3e52fe46"]]);
1317
1320
  //#endregion
1318
- export { me as a, ce as c, he as d, de as f, fe as i, ge as l, $ as n, ue as o, _e as p, ye as r, pe as s, Ne as t, le as u };
1321
+ export { me as a, ce as c, he as d, de as f, fe as i, ge as l, Oe as n, ue as o, _e as p, ye as r, pe as s, Pe as t, le as u };