lyflowchart 1.0.139 → 1.0.154

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 (44) hide show
  1. package/dist/ActionsConfig-gWnpd8yJ.js +521 -0
  2. package/dist/{ApprovalEditorModal-19j5zbe2.js → ApprovalEditorModal-BsHxlueJ.js} +1 -1
  3. package/dist/{CancelModal-BUi3ieI8.js → CancelModal-CgQeC543.js} +1 -1
  4. package/dist/{Cell_click_approve-BGDZUzTS.js → Cell_click_approve-CzEatC97.js} +34 -32
  5. package/dist/{JsonTags-BbWLqghI.js → JsonTags-DQdw3WxB.js} +1 -1
  6. package/dist/{MyProcess-FWGEwQcv.js → MyProcess-SGZ_-9C3.js} +17 -17
  7. package/dist/{approval-BaD4Bmw6.js → approval-DD00xYMY.js} +1 -1
  8. package/dist/{approval-BW2WjPxY.js → approval-ekd9_mwq.js} +35 -35
  9. package/dist/{approvalHistory-B2gpQbFC.js → approvalHistory-DsHMvx1n.js} +35 -35
  10. package/dist/{approvalHistoryViewModal-DgLpv2ot.js → approvalHistoryViewModal-UzVPPpNH.js} +9 -9
  11. package/dist/{approvalPageConfig-D0zPXOUf.js → approvalPageConfig-DsoxsuXo.js} +83 -83
  12. package/dist/{approveLeftConfig-BOU_UgHp.js → approveLeftConfig-Cskh4ezK.js} +16 -16
  13. package/dist/{codeHistoryViewModal-BfSjIbEU.js → codeHistoryViewModal-BIktV_o6.js} +8 -8
  14. package/dist/{columnTables-DLwtgcC7.js → columnTables-a7yfMH5Q.js} +88 -80
  15. package/dist/components/approval/ApprovalEditorModal.vue.d.ts +2 -0
  16. package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +481 -0
  17. package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +12 -0
  18. package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1222 -0
  19. package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +605 -0
  20. package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +617 -0
  21. package/dist/components/approval/core.vue.d.ts +2 -0
  22. package/dist/components/approval/typing.d.ts +1 -1
  23. package/dist/components/approval/useApprovalRecordActions.d.ts +3 -1
  24. package/dist/constants.d.ts +26 -0
  25. package/dist/{core-Cv0Erg9E.js → core-BY-t0ghx.js} +393 -352
  26. package/dist/{dataStoreSettingHistoryViewModal-D_so-KLp.js → dataStoreSettingHistoryViewModal-DjSRPgQC.js} +9 -9
  27. package/dist/{debugCode-Cm9-WiUG.js → debugCode-CTU6KCej.js} +20 -20
  28. package/dist/{default-VdDMlY4e.js → default-CFd6cRxl.js} +28 -21
  29. package/dist/{example_code-C_xF8RRG.js → example_code-DKjqP7KK.js} +6 -0
  30. package/dist/{flowHistoryViewModal-D8DJP7Te.js → flowHistoryViewModal-CaGj3LP4.js} +9 -9
  31. package/dist/index.js +36 -34
  32. package/dist/{init-plugin-fQTSQzui.js → init-plugin-CpYzRii0.js} +7 -3
  33. package/dist/init-plugin.d.ts +13 -0
  34. package/dist/{leftColumn-CsPjufue.js → leftColumn-Dzw2Dk6g.js} +3 -3
  35. package/dist/lyflowchart.css +1 -1
  36. package/dist/{middleColumn-C7M6-eVo.js → middleColumn-CTOCcPnB.js} +12 -12
  37. package/dist/{recordActions-BgFlNsGU.js → recordActions-z7hvfqGR.js} +1 -1
  38. package/dist/{tableConfig-uLXue-BS.js → tableConfig-CMhKXmQF.js} +740 -585
  39. package/dist/{tableModal-BcYfVL02.js → tableModal-LuDGonFy.js} +2 -2
  40. package/dist/{useApprovalRecordActions-BQ6MgV2L.js → useApprovalRecordActions-6IFZrwvr.js} +68 -68
  41. package/dist/{utils-CLet2gLV.js → utils-DRldFEoM.js} +14 -10
  42. package/dist/{viewer-Dv3kQsMf.js → viewer-BDGXjryM.js} +916 -917
  43. package/package.json +1 -1
  44. package/dist/ActionsConfig-BuvSvRbv.js +0 -395
@@ -1,16 +1,16 @@
1
- import { On as e } from "./viewer-Dv3kQsMf.js";
2
- import { _ as t, f as n, l as r, o as i, p as a, r as o, s, v as c } from "./init-plugin-fQTSQzui.js";
3
- import { E as l, T as u, a as d, f, i as p, k as m, m as h, n as g, r as _, s as v, t as y, v as b } from "./utils-CLet2gLV.js";
4
- import { r as x } from "./settingsState-CI81PG-i.js";
5
- import { t as S } from "./JsonTags-BbWLqghI.js";
6
- import { n as C, t as w } from "./ActionsConfig-BuvSvRbv.js";
7
- import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createTextVNode as j, createVNode as M, defineComponent as N, nextTick as P, normalizeClass as F, normalizeStyle as I, onMounted as L, onUnmounted as R, openBlock as z, reactive as B, ref as V, renderList as H, resolveComponent as U, toDisplayString as W, watch as G, withCtx as K, withKeys as q, withModifiers as J } from "vue";
8
- import { CheckOutlined as Y, CloseCircleOutlined as X, CloseOutlined as ee, EditOutlined as Z, LeftSquareOutlined as te, LeftSquareTwoTone as ne, PlusOutlined as re, RightSquareOutlined as ie, RightSquareTwoTone as ae } from "@ant-design/icons-vue";
9
- import { message as Q } from "ant-design-vue";
10
- import { cloneDeep as $, debounce as oe, isEqual as se } from "lodash";
11
- import { useI18n as ce } from "vue-i18n";
1
+ import { On as e } from "./viewer-BDGXjryM.js";
2
+ import { b as t, h as n, l as r, m as i, o as a, p as o, r as s, s as c, u as l, y as u } from "./init-plugin-CpYzRii0.js";
3
+ import { A as d, D as f, E as p, a as m, f as h, i as g, m as _, n as v, r as y, s as b, t as x, v as S } from "./utils-DRldFEoM.js";
4
+ import { r as C } from "./settingsState-CI81PG-i.js";
5
+ import { t as w } from "./JsonTags-DQdw3WxB.js";
6
+ import { n as T, t as E } from "./ActionsConfig-gWnpd8yJ.js";
7
+ import { Fragment as D, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as N, createVNode as P, defineComponent as F, nextTick as I, normalizeClass as L, normalizeStyle as R, onMounted as z, onUnmounted as B, openBlock as V, reactive as H, ref as U, renderList as W, resolveComponent as G, toDisplayString as K, watch as q, withCtx as J, withKeys as Y, withModifiers as X } from "vue";
8
+ import { CheckOutlined as ee, CloseCircleOutlined as te, CloseOutlined as ne, EditOutlined as re, LeftSquareOutlined as ie, LeftSquareTwoTone as ae, PlusOutlined as Z, RightSquareOutlined as oe, RightSquareTwoTone as Q } from "@ant-design/icons-vue";
9
+ import { message as $ } from "ant-design-vue";
10
+ import { cloneDeep as se, debounce as ce, isEqual as le } from "lodash";
11
+ import { useI18n as ue } from "vue-i18n";
12
12
  //#region src/components/approval/components/approvalPageConfig/JsonInput.vue?vue&type=script&lang.ts
13
- var le = N({
13
+ var de = F({
14
14
  name: "JsonInput",
15
15
  props: {
16
16
  value: {
@@ -35,7 +35,7 @@ var le = N({
35
35
  emits: ["update:value"],
36
36
  setup(e, { emit: t }) {
37
37
  return {
38
- displayValue: E(() => {
38
+ displayValue: O(() => {
39
39
  let t = e.value;
40
40
  if (typeof t == "string") return t;
41
41
  if (t == null) return "";
@@ -45,7 +45,7 @@ var le = N({
45
45
  return String(t);
46
46
  }
47
47
  }),
48
- valueType: E(() => {
48
+ valueType: O(() => {
49
49
  let t = e.value;
50
50
  return t === null ? "null" : t === void 0 || t === "" ? "" : typeof t;
51
51
  }),
@@ -62,19 +62,19 @@ var le = N({
62
62
  }
63
63
  };
64
64
  }
65
- }), ue = {
65
+ }), fe = {
66
66
  key: 0,
67
67
  class: "json-type"
68
68
  };
69
- function de(e, t, n, r, i, a) {
70
- let o = U("a-input");
71
- return z(), D(o, {
69
+ function pe(e, t, n, r, i, a) {
70
+ let o = G("a-input");
71
+ return V(), k(o, {
72
72
  value: e.displayValue,
73
73
  placeholder: e.placeholder,
74
- style: I(e.style),
74
+ style: R(e.style),
75
75
  "onUpdate:value": e.updateValue
76
76
  }, {
77
- addonAfter: K(() => [e.valueType ? (z(), k("span", ue, W(e.valueType), 1)) : O("", !0)]),
77
+ addonAfter: J(() => [e.valueType ? (V(), j("span", fe, K(e.valueType), 1)) : A("", !0)]),
78
78
  _: 1
79
79
  }, 8, [
80
80
  "value",
@@ -85,11 +85,11 @@ function de(e, t, n, r, i, a) {
85
85
  }
86
86
  //#endregion
87
87
  //#region src/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue?vue&type=script&lang.ts
88
- var fe = N({
88
+ var me = F({
89
89
  name: "ConditionFieldMulType",
90
90
  components: {
91
- JsonTags: S,
92
- JsonInput: /* @__PURE__ */ c(le, [["render", de], ["__scopeId", "data-v-903e450b"]])
91
+ JsonTags: w,
92
+ JsonInput: /* @__PURE__ */ t(de, [["render", pe], ["__scopeId", "data-v-903e450b"]])
93
93
  },
94
94
  props: {
95
95
  value: {
@@ -119,7 +119,7 @@ var fe = N({
119
119
  },
120
120
  emits: ["update:value"],
121
121
  setup(e, { emit: t }) {
122
- let n = E(() => h(e.operator) ?? 0), r = E(() => {
122
+ let n = O(() => _(e.operator) ?? 0), r = O(() => {
123
123
  let { width: t, ...n } = e.style || {};
124
124
  return {
125
125
  ...n,
@@ -174,8 +174,8 @@ var fe = N({
174
174
  };
175
175
  return {
176
176
  handleSelectChange: o,
177
- options: E(() => {
178
- if (e.source_type === "global") return b;
177
+ options: O(() => {
178
+ if (e.source_type === "global") return S;
179
179
  if (e.source_type === "form") return c(e.formData?.dynamicFieldList || [], e.batch_form_key_path || []);
180
180
  }),
181
181
  handleInputChange: s,
@@ -188,9 +188,9 @@ var fe = N({
188
188
  });
189
189
  //#endregion
190
190
  //#region src/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue
191
- function pe(e, t, n, r, i, a) {
192
- let o = U("a-cascader"), s = U("JsonInput"), c = U("JsonTags");
193
- return e.source_type && e.source_type !== "fixed" ? (z(), D(o, {
191
+ function he(e, t, n, r, i, a) {
192
+ let o = G("a-cascader"), s = G("JsonInput"), c = G("JsonTags");
193
+ return e.source_type && e.source_type !== "fixed" ? (V(), k(o, {
194
194
  key: 0,
195
195
  value: e.value,
196
196
  "field-names": {
@@ -203,49 +203,49 @@ function pe(e, t, n, r, i, a) {
203
203
  onChange: e.handleSelectChange,
204
204
  onClear: t[0] ||= (t) => e.handleSelectChange(null),
205
205
  "default-value": [],
206
- style: I(e.style),
206
+ style: R(e.style),
207
207
  size: "small"
208
208
  }, null, 8, [
209
209
  "value",
210
210
  "options",
211
211
  "onChange",
212
212
  "style"
213
- ])) : e.paramsCount === 1 ? (z(), D(s, {
213
+ ])) : e.paramsCount === 1 ? (V(), k(s, {
214
214
  key: 1,
215
215
  value: e.value?.[0],
216
216
  "onUpdate:value": e.handleSingleChange,
217
- style: I(e.style),
217
+ style: R(e.style),
218
218
  size: "small",
219
219
  placeholder: "输入值"
220
220
  }, null, 8, [
221
221
  "value",
222
222
  "onUpdate:value",
223
223
  "style"
224
- ])) : e.paramsCount === 2 ? (z(), k("div", {
224
+ ])) : e.paramsCount === 2 ? (V(), j("div", {
225
225
  key: 2,
226
226
  class: "between-inputs",
227
- style: I(e.style)
227
+ style: R(e.style)
228
228
  }, [
229
- M(s, {
229
+ P(s, {
230
230
  value: e.value?.[0],
231
231
  "onUpdate:value": t[1] ||= (t) => e.handleBetweenChange(0, t),
232
- style: I(e.halfStyle),
232
+ style: R(e.halfStyle),
233
233
  size: "small",
234
234
  placeholder: "起始值"
235
235
  }, null, 8, ["value", "style"]),
236
- t[3] ||= A("span", { class: "between-separator" }, "~", -1),
237
- M(s, {
236
+ t[3] ||= M("span", { class: "between-separator" }, "~", -1),
237
+ P(s, {
238
238
  value: e.value?.[1],
239
239
  "onUpdate:value": t[2] ||= (t) => e.handleBetweenChange(1, t),
240
- style: I(e.halfStyle),
240
+ style: R(e.halfStyle),
241
241
  size: "small",
242
242
  placeholder: "结束值"
243
243
  }, null, 8, ["value", "style"])
244
- ], 4)) : (z(), D(c, {
244
+ ], 4)) : (V(), k(c, {
245
245
  key: 3,
246
246
  value: e.value || [],
247
247
  "onUpdate:value": e.handleInputChange,
248
- style: I(e.style),
248
+ style: R(e.style),
249
249
  size: "small",
250
250
  placeholder: "输入值"
251
251
  }, null, 8, [
@@ -256,12 +256,12 @@ function pe(e, t, n, r, i, a) {
256
256
  }
257
257
  //#endregion
258
258
  //#region src/components/approval/components/approvalPageConfig/BaseConditions.vue?vue&type=script&lang.ts
259
- var me = N({
259
+ var ge = F({
260
260
  name: "BasicQueryConditions",
261
261
  components: {
262
- JsonTags: S,
263
- ConditionFieldMulType: /* @__PURE__ */ c(fe, [["render", pe], ["__scopeId", "data-v-33c78a2c"]]),
264
- PlusOutlined: re
262
+ JsonTags: w,
263
+ ConditionFieldMulType: /* @__PURE__ */ t(me, [["render", he], ["__scopeId", "data-v-33c78a2c"]]),
264
+ PlusOutlined: Z
265
265
  },
266
266
  props: {
267
267
  dataSource: {
@@ -279,29 +279,29 @@ var me = N({
279
279
  },
280
280
  emits: ["update:dataSource"],
281
281
  setup(e, { emit: t }) {
282
- let n = r(), i = V([]), a = () => ({
282
+ let n = l(), r = U([]), i = () => ({
283
283
  field_name: "",
284
284
  operator: void 0,
285
285
  class_name: void 0,
286
286
  value_type: "fixed",
287
287
  value: [],
288
288
  format: "input"
289
- }), o = (e) => !Array.isArray(e) || e.length === 0 || Array.isArray(e[0]) ? e : [e], s = () => {
290
- t("update:dataSource", [...o(e.dataSource) || [], [a()]]);
291
- }, c = (t) => {
289
+ }), a = (e) => !Array.isArray(e) || e.length === 0 || Array.isArray(e[0]) ? e : [e], o = () => {
290
+ t("update:dataSource", [...a(e.dataSource) || [], [i()]]);
291
+ }, s = (t) => {
292
292
  e.dataSource.splice(t, 1);
293
- }, l = (t) => {
293
+ }, c = (t) => {
294
294
  let n = e.dataSource?.[t];
295
- n && n.push(a());
295
+ n && n.push(i());
296
296
  }, u = (t, n) => {
297
297
  e.dataSource?.[t]?.splice(n, 1);
298
298
  }, d = Object.entries(n).map(([e, t]) => ({
299
299
  label: `${t} (${e})`,
300
300
  value: e
301
301
  }));
302
- return G(() => e.modelType, async (e) => {
303
- i.value = await f(e);
304
- }, { immediate: !0 }), L(() => {
302
+ return q(() => e.modelType, async (e) => {
303
+ r.value = await h(e);
304
+ }, { immediate: !0 }), z(() => {
305
305
  if (e.dataSource?.length > 0) {
306
306
  if (!Array.isArray(e.dataSource[0])) {
307
307
  let t = [...e.dataSource];
@@ -310,44 +310,44 @@ var me = N({
310
310
  for (let t of e.dataSource) for (let e of t) e.value_type ||= "fixed";
311
311
  }
312
312
  }), {
313
- addGroup: s,
314
- removeGroup: c,
315
- addCondition: l,
313
+ addGroup: o,
314
+ removeGroup: s,
315
+ addCondition: c,
316
316
  removeCondition: u,
317
- columnNameList: i,
317
+ columnNameList: r,
318
318
  operatorOptions: d
319
319
  };
320
320
  }
321
- }), he = { class: "group-header" }, ge = { class: "group-title" }, _e = { class: "item-index" }, ve = { class: "config-body" }, ye = { class: "condition-value" }, be = { class: "condition-value-type" }, xe = { class: "condition-value-input" }, Se = { class: "config-actions" }, Ce = {
321
+ }), _e = { class: "group-header" }, ve = { class: "group-title" }, ye = { class: "item-index" }, be = { class: "config-body" }, xe = { class: "condition-value" }, Se = { class: "condition-value-type" }, Ce = { class: "condition-value-input" }, we = { class: "config-actions" }, Te = {
322
322
  key: 0,
323
323
  class: "group-or"
324
324
  };
325
- function we(e, t, n, r, i, a) {
326
- let o = U("a-button"), s = U("column-name-field"), c = U("a-form-item"), l = U("a-col"), u = U("a-select"), d = U("a-select-option"), f = U("a-row"), p = U("ConditionFieldMulType"), m = U("a-form"), h = U("delete-outlined"), g = U("plus-outlined");
327
- return z(), k("div", null, [(z(!0), k(T, null, H(e.dataSource, (n, r) => (z(), k("div", {
325
+ function Ee(e, t, n, r, i, a) {
326
+ let o = G("a-button"), s = G("column-name-field"), c = G("a-form-item"), l = G("a-col"), u = G("a-select"), d = G("a-select-option"), f = G("a-row"), p = G("ConditionFieldMulType"), m = G("a-form"), h = G("delete-outlined"), g = G("plus-outlined");
327
+ return V(), j("div", null, [(V(!0), j(D, null, W(e.dataSource, (n, r) => (V(), j("div", {
328
328
  key: r,
329
329
  class: "condition-group"
330
330
  }, [
331
- A("div", he, [A("span", ge, "条件组 " + W(r + 1), 1), M(o, {
331
+ M("div", _e, [M("span", ve, "条件组 " + K(r + 1), 1), P(o, {
332
332
  type: "link",
333
333
  danger: "",
334
334
  size: "small",
335
335
  onClick: (t) => e.removeGroup(r)
336
336
  }, {
337
- default: K(() => [...t[0] ||= [j(" 删除条件组 ", -1)]]),
337
+ default: J(() => [...t[0] ||= [N(" 删除条件组 ", -1)]]),
338
338
  _: 1
339
339
  }, 8, ["onClick"])]),
340
- (z(!0), k(T, null, H(n, (n, i) => (z(), k("div", {
340
+ (V(!0), j(D, null, W(n, (n, i) => (V(), j("div", {
341
341
  key: i,
342
342
  class: "condition-item"
343
343
  }, [
344
- A("div", _e, "(" + W(i + 1) + ")", 1),
345
- A("div", ve, [M(m, { layout: "vertical" }, {
346
- default: K(() => [M(f, { gutter: 16 }, {
347
- default: K(() => [
348
- M(l, { span: 8 }, {
349
- default: K(() => [M(c, { label: "字段" }, {
350
- default: K(() => [M(s, {
344
+ M("div", ye, "(" + K(i + 1) + ")", 1),
345
+ M("div", be, [P(m, { layout: "vertical" }, {
346
+ default: J(() => [P(f, { gutter: 16 }, {
347
+ default: J(() => [
348
+ P(l, { span: 8 }, {
349
+ default: J(() => [P(c, { label: "字段" }, {
350
+ default: J(() => [P(s, {
351
351
  value: n.field_name,
352
352
  "onUpdate:value": (e) => n.field_name = e,
353
353
  columnNameList: e.columnNameList
@@ -360,9 +360,9 @@ function we(e, t, n, r, i, a) {
360
360
  }, 1024)]),
361
361
  _: 2
362
362
  }, 1024),
363
- M(l, { span: 8 }, {
364
- default: K(() => [M(c, { label: "运算符" }, {
365
- default: K(() => [M(u, {
363
+ P(l, { span: 8 }, {
364
+ default: J(() => [P(c, { label: "运算符" }, {
365
+ default: J(() => [P(u, {
366
366
  "show-search": "",
367
367
  value: n.operator,
368
368
  "onUpdate:value": (e) => n.operator = e,
@@ -377,41 +377,41 @@ function we(e, t, n, r, i, a) {
377
377
  }, 1024)]),
378
378
  _: 2
379
379
  }, 1024),
380
- M(l, { span: 8 }, {
381
- default: K(() => [M(c, { label: "数据类型" }, {
382
- default: K(() => [M(u, {
380
+ P(l, { span: 8 }, {
381
+ default: J(() => [P(c, { label: "数据类型" }, {
382
+ default: J(() => [P(u, {
383
383
  "show-search": "",
384
384
  value: n.class_name,
385
385
  "onUpdate:value": (e) => n.class_name = e,
386
386
  placeholder: "请选择数据类型"
387
387
  }, {
388
- default: K(() => [
389
- M(d, { value: "int" }, {
390
- default: K(() => [...t[1] ||= [j("整数(int)", -1)]]),
388
+ default: J(() => [
389
+ P(d, { value: "int" }, {
390
+ default: J(() => [...t[1] ||= [N("整数(int)", -1)]]),
391
391
  _: 1
392
392
  }),
393
- M(d, { value: "float" }, {
394
- default: K(() => [...t[2] ||= [j("浮点数(float)", -1)]]),
393
+ P(d, { value: "float" }, {
394
+ default: J(() => [...t[2] ||= [N("浮点数(float)", -1)]]),
395
395
  _: 1
396
396
  }),
397
- M(d, { value: "str" }, {
398
- default: K(() => [...t[3] ||= [j("字符串(str)", -1)]]),
397
+ P(d, { value: "str" }, {
398
+ default: J(() => [...t[3] ||= [N("字符串(str)", -1)]]),
399
399
  _: 1
400
400
  }),
401
- M(d, { value: "bool" }, {
402
- default: K(() => [...t[4] ||= [j("布尔值(bool)", -1)]]),
401
+ P(d, { value: "bool" }, {
402
+ default: J(() => [...t[4] ||= [N("布尔值(bool)", -1)]]),
403
403
  _: 1
404
404
  }),
405
- M(d, { value: "date" }, {
406
- default: K(() => [...t[5] ||= [j("日期(date)", -1)]]),
405
+ P(d, { value: "date" }, {
406
+ default: J(() => [...t[5] ||= [N("日期(date)", -1)]]),
407
407
  _: 1
408
408
  }),
409
- M(d, { value: "datetime" }, {
410
- default: K(() => [...t[6] ||= [j("日期时间(datetime)", -1)]]),
409
+ P(d, { value: "datetime" }, {
410
+ default: J(() => [...t[6] ||= [N("日期时间(datetime)", -1)]]),
411
411
  _: 1
412
412
  }),
413
- M(d, { value: "time" }, {
414
- default: K(() => [...t[7] ||= [j("时间(time)", -1)]]),
413
+ P(d, { value: "time" }, {
414
+ default: J(() => [...t[7] ||= [N("时间(time)", -1)]]),
415
415
  _: 1
416
416
  })
417
417
  ]),
@@ -423,23 +423,23 @@ function we(e, t, n, r, i, a) {
423
423
  }, 1024)
424
424
  ]),
425
425
  _: 2
426
- }, 1024), M(c, { label: "比较值" }, {
427
- default: K(() => [A("div", ye, [A("div", be, [M(u, {
426
+ }, 1024), P(c, { label: "比较值" }, {
427
+ default: J(() => [M("div", xe, [M("div", Se, [P(u, {
428
428
  value: n.value_type,
429
429
  "onUpdate:value": (e) => n.value_type = e,
430
430
  placeholder: "请选择",
431
431
  style: { width: "100px" },
432
432
  size: "small"
433
433
  }, {
434
- default: K(() => [M(d, { value: "global" }, {
435
- default: K(() => [...t[8] ||= [j("全局字段", -1)]]),
434
+ default: J(() => [P(d, { value: "global" }, {
435
+ default: J(() => [...t[8] ||= [N("全局字段", -1)]]),
436
436
  _: 1
437
- }), M(d, { value: "fixed" }, {
438
- default: K(() => [...t[9] ||= [j("固定值", -1)]]),
437
+ }), P(d, { value: "fixed" }, {
438
+ default: J(() => [...t[9] ||= [N("固定值", -1)]]),
439
439
  _: 1
440
440
  })]),
441
441
  _: 1
442
- }, 8, ["value", "onUpdate:value"])]), A("div", xe, [M(p, {
442
+ }, 8, ["value", "onUpdate:value"])]), M("div", Ce, [P(p, {
443
443
  value: n.value,
444
444
  "onUpdate:value": (e) => n.value = e,
445
445
  source_type: n.value_type,
@@ -457,29 +457,29 @@ function we(e, t, n, r, i, a) {
457
457
  }, 1024)]),
458
458
  _: 2
459
459
  }, 1024)]),
460
- A("div", Se, [M(h, {
460
+ M("div", we, [P(h, {
461
461
  onClick: (t) => e.removeCondition(r, i),
462
462
  class: "delete-icon"
463
463
  }, null, 8, ["onClick"])])
464
464
  ]))), 128)),
465
- M(o, {
465
+ P(o, {
466
466
  type: "link",
467
467
  onClick: (t) => e.addCondition(r)
468
468
  }, {
469
- default: K(() => [...t[10] ||= [j(" 添加条件 ", -1)]]),
469
+ default: J(() => [...t[10] ||= [N(" 添加条件 ", -1)]]),
470
470
  _: 1
471
471
  }, 8, ["onClick"]),
472
- r < e.dataSource.length - 1 ? (z(), k("div", Ce, [...t[11] ||= [A("span", null, "或", -1)]])) : O("", !0)
473
- ]))), 128)), M(o, {
472
+ r < e.dataSource.length - 1 ? (V(), j("div", Te, [...t[11] ||= [M("span", null, "或", -1)]])) : A("", !0)
473
+ ]))), 128)), P(o, {
474
474
  type: "dashed",
475
475
  block: "",
476
476
  onClick: e.addGroup
477
477
  }, {
478
- default: K(() => [M(g), t[12] ||= j(" 添加条件组(组与组之间为“或”关系,组内条件为“与”关系) ", -1)]),
478
+ default: J(() => [P(g), t[12] ||= N(" 添加条件组(组与组之间为“或”关系,组内条件为“与”关系) ", -1)]),
479
479
  _: 1
480
480
  }, 8, ["onClick"])]);
481
481
  }
482
- var Te = /* @__PURE__ */ c(me, [["render", we], ["__scopeId", "data-v-b0aa1e4b"]]), Ee = N({
482
+ var De = /* @__PURE__ */ t(ge, [["render", Ee], ["__scopeId", "data-v-b0aa1e4b"]]), Oe = F({
483
483
  name: "BaseColumns",
484
484
  props: { value: {
485
485
  type: String,
@@ -488,7 +488,7 @@ var Te = /* @__PURE__ */ c(me, [["render", we], ["__scopeId", "data-v-b0aa1e4b"]
488
488
  components: {},
489
489
  emits: ["update:value", "change"],
490
490
  setup(e, { emit: t }) {
491
- let n = V(!1), r = V(e.value);
491
+ let n = U(!1), r = U(e.value);
492
492
  return {
493
493
  onEdit: n,
494
494
  tmpValue: r,
@@ -496,7 +496,7 @@ var Te = /* @__PURE__ */ c(me, [["render", we], ["__scopeId", "data-v-b0aa1e4b"]
496
496
  r.value = e.value, n.value = !0;
497
497
  },
498
498
  save: () => {
499
- t("update:value", r.value), n.value = !1, P(() => {
499
+ t("update:value", r.value), n.value = !1, I(() => {
500
500
  t("change", r.value);
501
501
  });
502
502
  },
@@ -505,30 +505,30 @@ var Te = /* @__PURE__ */ c(me, [["render", we], ["__scopeId", "data-v-b0aa1e4b"]
505
505
  }
506
506
  };
507
507
  }
508
- }), De = { class: "editable-cell" }, Oe = {
508
+ }), ke = { class: "editable-cell" }, Ae = {
509
509
  key: 0,
510
510
  class: "editable-cell-input-wrapper"
511
- }, ke = {
511
+ }, je = {
512
512
  key: 1,
513
513
  class: "editable-cell-text-wrapper"
514
514
  };
515
- function Ae(e, t, n, r, i, a) {
516
- let o = U("a-input"), s = U("check-outlined"), c = U("edit-outlined");
517
- return z(), k("div", De, [e.onEdit ? (z(), k("div", Oe, [M(o, {
515
+ function Me(e, t, n, r, i, a) {
516
+ let o = G("a-input"), s = G("check-outlined"), c = G("edit-outlined");
517
+ return V(), j("div", ke, [e.onEdit ? (V(), j("div", Ae, [P(o, {
518
518
  value: e.tmpValue,
519
519
  "onUpdate:value": t[0] ||= (t) => e.tmpValue = t,
520
520
  size: "small",
521
521
  onPressEnter: t[1] ||= (t) => e.save(),
522
- onKeyup: t[2] ||= q((t) => e.cancel(), ["esc"])
523
- }, null, 8, ["value"]), M(s, {
522
+ onKeyup: t[2] ||= Y((t) => e.cancel(), ["esc"])
523
+ }, null, 8, ["value"]), P(s, {
524
524
  class: "editable-cell-icon-check",
525
525
  onClick: t[3] ||= (t) => e.save()
526
- })])) : (z(), k("div", ke, [j(W(e.value || " ") + " ", 1), M(c, {
526
+ })])) : (V(), j("div", je, [N(K(e.value || " ") + " ", 1), P(c, {
527
527
  class: "editable-cell-icon",
528
528
  onClick: t[4] ||= (t) => e.edit()
529
529
  })]))]);
530
530
  }
531
- var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]]), Me = N({
531
+ var Ne = /* @__PURE__ */ t(Oe, [["render", Me], ["__scopeId", "data-v-85d6a01a"]]), Pe = F({
532
532
  name: "BaseColumns",
533
533
  props: {
534
534
  dataSource: {
@@ -541,36 +541,36 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
541
541
  }
542
542
  },
543
543
  components: {
544
- LeftSquareOutlined: te,
545
- LeftSquareTwoTone: ne,
546
- RightSquareOutlined: ie,
547
- RightSquareTwoTone: ae,
548
- CheckOutlined: Y,
549
- EditOutlined: Z,
550
- cellEdit: je
544
+ LeftSquareOutlined: ie,
545
+ LeftSquareTwoTone: ae,
546
+ RightSquareOutlined: oe,
547
+ RightSquareTwoTone: Q,
548
+ CheckOutlined: ee,
549
+ EditOutlined: re,
550
+ cellEdit: Ne
551
551
  },
552
552
  emits: ["update:dataSource"],
553
- setup(e, { emit: n }) {
554
- let { t: r } = ce(), a = V(0), s = t().currentOrg, c = V([]), l = V([]), d = V([]), f = V([]), p = V({}), h = V({}), g = [{
555
- title: r("列名称"),
553
+ setup(e, { emit: t }) {
554
+ let { t: i } = ue(), o = U(0), c = u().currentOrg, l = U([]), f = U([]), m = U([]), h = U([]), g = U({}), _ = U({}), v = [{
555
+ title: i("列名称"),
556
556
  dataIndex: "title",
557
557
  key: "title",
558
558
  width: 200
559
- }], _ = [{
560
- title: r("参数"),
559
+ }], y = [{
560
+ title: i("参数"),
561
561
  dataIndex: "name",
562
562
  checked: !0,
563
563
  width: 200,
564
564
  ellipsis: !0
565
565
  }, {
566
- title: r("名称"),
566
+ title: i("名称"),
567
567
  dataIndex: "verbose_name",
568
568
  checked: !0,
569
569
  width: 150,
570
570
  ellipsis: !0
571
- }], v = [
571
+ }], b = [
572
572
  {
573
- title: r("列名称"),
573
+ title: i("列名称"),
574
574
  dataIndex: "title",
575
575
  key: "title",
576
576
  rowDrag: !0,
@@ -578,20 +578,20 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
578
578
  fixed: "left"
579
579
  },
580
580
  {
581
- title: r("参数"),
581
+ title: i("参数"),
582
582
  dataIndex: "dataIndex",
583
583
  width: 200,
584
584
  fixed: "left",
585
585
  ellipsis: !0
586
586
  },
587
587
  {
588
- title: r("默认排序"),
588
+ title: i("默认排序"),
589
589
  dataIndex: "defaultSort",
590
590
  width: 240,
591
591
  ellipsis: !0
592
592
  },
593
593
  {
594
- title: r("冻结列"),
594
+ title: i("冻结列"),
595
595
  dataIndex: "fixed",
596
596
  key: "fixed",
597
597
  width: 150
@@ -621,149 +621,196 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
621
621
  key: "ellipsis"
622
622
  },
623
623
  {
624
- title: "列组件",
624
+ title: "单元格组件",
625
625
  dataIndex: "cellComponent",
626
- width: 200,
626
+ width: 280,
627
627
  key: "cellComponent"
628
+ },
629
+ {
630
+ title: "组件参数",
631
+ dataIndex: "cellParams",
632
+ width: 300,
633
+ key: "cellParams"
634
+ },
635
+ {
636
+ title: "合计组件",
637
+ dataIndex: "cellSummaryComponent",
638
+ width: 280,
639
+ key: "cellSummaryComponent"
640
+ },
641
+ {
642
+ title: "合计参数",
643
+ dataIndex: "summaryParams",
644
+ width: 300,
645
+ key: "summaryParams"
628
646
  }
629
- ], y = oe(() => {
630
- a.value = window.innerHeight - 165;
631
- }, 200), b = () => {
632
- n("update:dataSource", d.value);
647
+ ], x = ce(() => {
648
+ o.value = window.innerHeight - 165;
649
+ }, 200), S = () => {
650
+ t("update:dataSource", m.value);
633
651
  };
634
- function x(e, t) {
652
+ function C(e, t) {
635
653
  e.disabled = !1, e.name != null && t.has(e.name) && (e.disabled = !0), e.children && Array.isArray(e.children) && e.children.forEach((e) => {
636
- x(e, t);
654
+ C(e, t);
637
655
  });
638
656
  }
639
- let S = (e) => {
657
+ let w = (e) => {
640
658
  e.forEach((e) => {
641
- p.value[e.name] = e, Array.isArray(e.children) && S(e.children);
659
+ g.value[e.name] = e, Array.isArray(e.children) && w(e.children);
642
660
  });
643
- }, C = () => {
661
+ }, T = () => {
644
662
  let e = /* @__PURE__ */ new Set();
645
663
  function t(n) {
646
664
  n.forEach((n) => {
647
665
  e.add(n.dataIndex), n.children && Array.isArray(n.children) && t(n.children);
648
666
  });
649
667
  }
650
- t(d.value), l.value.forEach((t) => {
651
- x(t, e);
652
- }), l.value = [].concat(l.value);
668
+ t(m.value), f.value.forEach((t) => {
669
+ C(t, e);
670
+ }), f.value = [].concat(f.value);
653
671
  };
654
- L(async () => {
655
- if (window.addEventListener("resize", y), y(), d.value = e.dataSource || [], e.modelType) {
672
+ z(async () => {
673
+ if (window.addEventListener("resize", x), x(), m.value = e.dataSource || [], e.modelType) {
656
674
  let t = e.modelType.split("-"), n = `${t[0]}/obtain_${t[1]}_column_data`;
657
- l.value = m(await i({
658
- org_id: s?.id,
675
+ f.value = d(await a({
676
+ org_id: c?.id,
659
677
  is_base_column: !0
660
- }, n, !1, { skip_error: !0 }) || []), S(l.value);
678
+ }, n, !1, { skip_error: !0 }) || []), w(f.value);
661
679
  }
662
- U(), C(), b();
663
- }), R(() => {
664
- window.removeEventListener("resize", y);
680
+ Z(), T(), S();
681
+ }), B(() => {
682
+ window.removeEventListener("resize", x);
665
683
  });
666
- let w = (e) => {
684
+ let E = (e) => {
667
685
  if (e.record.disabled) return { style: { background: "#cbcbcb" } };
668
- }, T = B({
686
+ }, D = H({
669
687
  type: "checkbox",
670
688
  onChange: (e) => {
671
- c.value = e;
689
+ l.value = e;
672
690
  },
673
691
  getCheckboxProps: (e) => ({
674
692
  disabled: e.disabled,
675
693
  name: e.name
676
694
  })
677
- }), E = B({
695
+ }), O = H({
678
696
  type: "checkbox",
679
697
  onChange: (e) => {
680
- f.value = e;
698
+ h.value = e;
681
699
  },
682
700
  getCheckboxProps: (e) => ({
683
701
  disabled: e.dataIndex === "index" || e.dataIndex === "action",
684
702
  name: e.dataIndex
685
703
  })
686
- }), D = (e, t) => {
704
+ }), k = (e, t) => {
687
705
  let n = {};
688
706
  return Object.keys(t).forEach((r) => {
689
707
  e[r] !== void 0 && (n[t[r]] = e[r]);
690
708
  }), n;
691
- }, O = (e) => {
709
+ }, A = (e) => {
692
710
  e.forEach((e) => {
693
- if (c.value.indexOf(e.name) > -1) {
711
+ if (l.value.indexOf(e.name) > -1) {
694
712
  let t = {};
695
- t = D(e, {
713
+ t = k(e, {
696
714
  verbose_name: "title",
697
715
  name: "dataIndex",
698
716
  cell_component: "cellComponent",
717
+ cellComponentParams: "cellComponentParams",
699
718
  filterMultiple: "filterMultiple",
700
719
  contentMap: "contentMap",
701
720
  colorMap: "colorMap",
702
721
  filters: "filters",
703
722
  sorter: "sorter",
704
723
  summary: "approve_summary",
705
- cellSummaryComponent: "cellSummaryComponent"
706
- }), t.fixed = void 0, t.autoHeight = !1, t.autoWidth = !1, t.width = 150, t.resizable = !0, e.disabled = !0, e.cellComponent ? t.ellipsis = !1 : t.ellipsis = !0, d.value.push(t);
724
+ cellSummaryComponent: "cellSummaryComponent",
725
+ cellSummaryComponentParams: "cellSummaryComponentParams"
726
+ }), t.fixed = void 0, t.autoHeight = !1, t.autoWidth = !1, t.width = 150, t.resizable = !0, e.disabled = !0, e.cellComponent ? t.ellipsis = !1 : t.ellipsis = !0, m.value.push(t);
707
727
  }
708
- e.children && Array.isArray(e.children) && O(e.children);
728
+ e.children && Array.isArray(e.children) && A(e.children);
709
729
  });
710
- }, k = () => {
711
- O(l.value), c.value.length = 0, l.value = [].concat(l.value), d.value = [].concat(d.value), b();
712
- }, A = (e) => {
730
+ }, j = () => {
731
+ A(f.value), l.value.length = 0, f.value = [].concat(f.value), m.value = [].concat(m.value), S();
732
+ }, M = (e) => {
713
733
  e.forEach((e) => {
714
- f.value.indexOf(e.name) > -1 && (e.disabled = !1), e.children && Array.isArray(e.children) && A(e.children);
734
+ h.value.indexOf(e.name) > -1 && (e.disabled = !1), e.children && Array.isArray(e.children) && M(e.children);
715
735
  });
716
- }, j = () => {
717
- d.value = d.value.filter((e) => f.value.indexOf(e.dataIndex) == -1), A(l.value), f.value.length = 0, d.value = [].concat(d.value), l.value = [].concat(l.value), b(), U();
718
- }, M = (e, t) => {
736
+ }, N = () => {
737
+ m.value = m.value.filter((e) => h.value.indexOf(e.dataIndex) == -1), M(f.value), h.value.length = 0, m.value = [].concat(m.value), f.value = [].concat(f.value), S(), Z();
738
+ }, P = (e, t) => {
719
739
  let n, r = (e, t, i) => {
720
740
  for (let a of t) if (a.dataIndex === i) return n = e, n;
721
741
  else if (a.children && a.children.length > 0 && (n = r(a.dataIndex, a.children, i), n !== void 0)) return n;
722
742
  };
723
743
  return r(null, e, t);
724
- }, N = ({ record: e, preTargetInfo: t, nextTargetInfo: n }) => new Promise((r, i) => {
744
+ }, F = ({ record: e, preTargetInfo: t, nextTargetInfo: n }) => new Promise((r, i) => {
725
745
  if (t) {
726
- let n = M(d.value, e.dataIndex);
727
- t.record.dataIndex == n || n == M(d.value, t.record.dataIndex) ? r(!0) : i();
728
- } else M(d.value, e.dataIndex) == M(d.value, n.record.dataIndex) ? r(!0) : i();
746
+ let n = P(m.value, e.dataIndex);
747
+ t.record.dataIndex == n || n == P(m.value, t.record.dataIndex) ? r(!0) : i();
748
+ } else P(m.value, e.dataIndex) == P(m.value, n.record.dataIndex) ? r(!0) : i();
729
749
  }).then(() => {
730
750
  setTimeout(() => {
731
- b();
751
+ S();
732
752
  }, 200);
733
- }), P = () => {
734
- d.value = [].concat(d.value), b();
735
- }, F = (e) => {
736
- P();
737
- }, I = (e, t) => {
753
+ }), I = () => {
754
+ m.value = [].concat(m.value), S();
755
+ }, L = (e) => {
756
+ I();
757
+ }, R = n(), V = (e, t) => String(t.value).includes(e), W = (e, t, n) => {
758
+ if (!n) {
759
+ e[t] = null;
760
+ return;
761
+ }
762
+ e[t] = {
763
+ ...e[t] || {},
764
+ pattern: n
765
+ };
766
+ }, G = U(!1), K = U(""), q = U(""), J = null, Y = "", X = (e) => Object.keys(e || {}).length, ee = (e, t, n) => {
767
+ J = t, Y = n, K.value = e == null ? "" : JSON.stringify(e, null, 2), q.value = "", G.value = !0;
768
+ }, te = (e) => {
769
+ let t = e.target?.value ?? "";
770
+ if (K.value = t, !t.trim()) {
771
+ q.value = "";
772
+ return;
773
+ }
774
+ try {
775
+ let e = JSON.parse(t);
776
+ q.value = typeof e != "object" || !e || Array.isArray(e) ? "参数必须是 JSON 对象({...})" : "";
777
+ } catch {
778
+ q.value = "JSON 格式错误";
779
+ }
780
+ }, ne = () => {
781
+ if (q.value) return;
782
+ let e = K.value.trim();
783
+ J && Y && (J[Y] = e ? JSON.parse(e) : null, I()), G.value = !1;
784
+ }, re = (e, t) => {
738
785
  let n = e;
739
786
  return t.forEach((e) => {
740
787
  !Array.isArray(n) && n.children && (n = n.children), n = n[e];
741
788
  }), n;
742
- }, z = (e) => {
743
- let t = p.value[e.dataIndex];
789
+ }, ie = (e) => {
790
+ let t = g.value[e.dataIndex];
744
791
  if (t) {
745
792
  let n = {
746
793
  filters: "filters",
747
794
  sorter: "sorter",
748
795
  summary: "summary",
749
796
  cellSummaryComponent: "cellSummaryComponent"
750
- }, r = D(t, n), i = D(e, Object.values(n).reduce((e, t) => (e[t] = t, e), {})), a = se(r, i);
797
+ }, r = k(t, n), i = k(e, Object.values(n).reduce((e, t) => (e[t] = t, e), {})), a = le(r, i);
751
798
  return a || console.log(`${e.dataIndex} 字段配置不一致`, r, i), a;
752
799
  }
753
800
  return !0;
754
- }, H = (e) => {
801
+ }, ae = (e) => {
755
802
  let t = {};
756
803
  return e.forEach((e) => {
757
- z(e) || (t[e.dataIndex] = e), e.children && Array.isArray(e.children) && Object.assign(t, H(e.children));
804
+ ie(e) || (t[e.dataIndex] = e), e.children && Array.isArray(e.children) && Object.assign(t, ae(e.children));
758
805
  }), t;
759
- }, U = () => {
760
- h.value = H(d.value);
761
- }, W = (e) => {
762
- G(e), b(), U();
763
- }, G = (e) => {
764
- let t = p.value[e.dataIndex];
806
+ }, Z = () => {
807
+ _.value = ae(m.value);
808
+ }, oe = (e) => {
809
+ Q(e), S(), Z();
810
+ }, Q = (e) => {
811
+ let t = g.value[e.dataIndex];
765
812
  if (t) {
766
- let n = D(t, {
813
+ let n = k(t, {
767
814
  filterMultiple: "filterMultiple",
768
815
  contentMap: "contentMap",
769
816
  colorMap: "colorMap",
@@ -776,58 +823,73 @@ var je = /* @__PURE__ */ c(Ee, [["render", Ae], ["__scopeId", "data-v-85d6a01a"]
776
823
  }
777
824
  };
778
825
  return {
779
- selectedRowKeys: c,
780
- allColumnsData: l,
781
- columns: _,
782
- rowSelection: T,
783
- baseColumns: v,
784
- baseColumnList: d,
785
- baseRowSelection: E,
786
- baseSelectKeys: f,
787
- defaultColumns: g,
788
- cellComponentList: o(),
789
- customCell: w,
790
- goRight: k,
791
- goLeft: j,
792
- onRowDragEnd: N,
793
- changeBaseColumnList: P,
794
- updateBaseColumn: G,
795
- getRawRecord: I,
796
- changedFields: h,
826
+ selectedRowKeys: l,
827
+ allColumnsData: f,
828
+ columns: y,
829
+ rowSelection: D,
830
+ baseColumns: b,
831
+ baseColumnList: m,
832
+ baseRowSelection: O,
833
+ baseSelectKeys: h,
834
+ defaultColumns: v,
835
+ cellComponentList: s(),
836
+ cellSummaryComponentList: r(),
837
+ COMMON_NUMBER_COMPONENT: "common_number",
838
+ numfmtPatternPresets: R,
839
+ filterPattern: V,
840
+ onPatternChange: W,
841
+ jsonStrModalOpen: G,
842
+ jsonStrText: K,
843
+ jsonStrError: q,
844
+ onJsonInput: te,
845
+ handleJsonStrModalOk: ne,
846
+ openJsonStrModal: ee,
847
+ paramCount: X,
848
+ customCell: E,
849
+ goRight: j,
850
+ goLeft: N,
851
+ onRowDragEnd: F,
852
+ changeBaseColumnList: I,
853
+ updateBaseColumn: Q,
854
+ getRawRecord: re,
855
+ changedFields: _,
797
856
  updateAllBaseColumn: () => {
798
- Object.values(h.value).forEach((e) => {
799
- G(e);
800
- }), b(), U();
857
+ Object.values(_.value).forEach((e) => {
858
+ Q(e);
859
+ }), S(), Z();
801
860
  },
802
- handleUpdateBaseColumn: W,
861
+ handleUpdateBaseColumn: oe,
803
862
  copyClick: (e) => {
804
- e.column.key !== "operation" && (u(e.text), e.hidePopup());
863
+ e.column.key !== "operation" && (p(e.text), e.hidePopup());
805
864
  },
806
- changeCellComponent: F,
807
- height: a,
808
- emitData: b,
809
- fieldMap: p
865
+ changeCellComponent: L,
866
+ height: o,
867
+ emitData: S,
868
+ fieldMap: g
810
869
  };
811
870
  }
812
- }), Ne = { class: "column-title-container" }, Pe = { class: "column-title" }, Fe = { style: { width: "30px" } }, Ie = { class: "column-title-container" }, Le = { class: "column-title" }, Re = { class: "base-column-table" }, ze = {
871
+ }), Fe = { class: "column-title-container" }, Ie = { class: "column-title" }, Le = { style: { width: "30px" } }, Re = { class: "column-title-container" }, ze = { class: "column-title" }, Be = { class: "base-column-table" }, Ve = {
813
872
  key: 1,
814
873
  class: "default-sort-tip"
874
+ }, He = {
875
+ key: 0,
876
+ class: "json-error-tip"
815
877
  };
816
- function Be(e, t, n, r, i, a) {
817
- let o = U("copy-outlined"), s = U("a-button"), c = U("a-space-compact"), l = U("s-table"), u = U("a-col"), d = U("left-square-outlined"), f = U("left-square-two-tone"), p = U("right-square-outlined"), m = U("right-square-two-tone"), h = U("cell-edit"), g = U("WarningOutlined"), _ = U("a-select-option"), v = U("a-select"), y = U("a-input-number"), b = U("a-row"), x = U("a-radio-button"), S = U("a-radio-group"), C = U("a-switch"), w = U("a-layout-sider"), E = U("a-layout");
818
- return z(), D(E, { class: "antTabs" }, {
819
- default: K(() => [M(w, {
878
+ function Ue(e, t, n, r, i, a) {
879
+ let o = G("copy-outlined"), s = G("a-button"), c = G("a-space-compact"), l = G("s-table"), u = G("a-col"), d = G("left-square-outlined"), f = G("left-square-two-tone"), p = G("right-square-outlined"), m = G("right-square-two-tone"), h = G("cell-edit"), g = G("WarningOutlined"), _ = G("a-select-option"), v = G("a-select"), y = G("a-input-number"), b = G("a-row"), x = G("a-radio-button"), S = G("a-radio-group"), C = G("a-switch"), w = G("a-auto-complete"), T = G("a-layout-sider"), E = G("a-layout"), O = G("a-textarea"), F = G("a-modal");
880
+ return V(), j(D, null, [P(E, { class: "antTabs" }, {
881
+ default: J(() => [P(T, {
820
882
  width: "100%",
821
- style: I({
883
+ style: R({
822
884
  backgroundColor: "white",
823
885
  overflowY: "auto",
824
886
  height: e.height + "px"
825
887
  })
826
888
  }, {
827
- default: K(() => [M(b, { style: { height: "100%" } }, {
828
- default: K(() => [
829
- M(u, { span: 6 }, {
830
- default: K(() => [A("div", Ne, [A("div", Pe, W(e.$t("可选列")), 1)]), M(l, {
889
+ default: J(() => [P(b, { style: { height: "100%" } }, {
890
+ default: J(() => [
891
+ P(u, { span: 6 }, {
892
+ default: J(() => [M("div", Fe, [M("div", Ie, K(e.$t("可选列")), 1)]), P(l, {
831
893
  selectedRowKeys: e.selectedRowKeys,
832
894
  "onUpdate:selectedRowKeys": t[0] ||= (t) => e.selectedRowKeys = t,
833
895
  autoRowHeight: !0,
@@ -847,16 +909,16 @@ function Be(e, t, n, r, i, a) {
847
909
  stripe: "",
848
910
  "summary-fixed": ""
849
911
  }, {
850
- bodyCell: K(({ column: e, index: t, text: n, record: r }) => [A("span", null, W(n), 1)]),
851
- contextmenuPopup: K((t) => [M(c, { direction: "vertical" }, {
852
- default: K(() => [M(s, {
912
+ bodyCell: J(({ column: e, index: t, text: n, record: r }) => [M("span", null, K(n), 1)]),
913
+ contextmenuPopup: J((t) => [P(c, { direction: "vertical" }, {
914
+ default: J(() => [P(s, {
853
915
  block: "",
854
916
  size: "small",
855
917
  type: "text",
856
918
  onClick: (n) => e.copyClick(t, "cell")
857
919
  }, {
858
- icon: K(() => [M(o)]),
859
- default: K(() => [j(" " + W(e.$t("复制")), 1)]),
920
+ icon: J(() => [P(o)]),
921
+ default: J(() => [N(" " + K(e.$t("复制")), 1)]),
860
922
  _: 1
861
923
  }, 8, ["onClick"])]),
862
924
  _: 2
@@ -872,45 +934,45 @@ function Be(e, t, n, r, i, a) {
872
934
  ])]),
873
935
  _: 1
874
936
  }),
875
- M(u, { span: 1 }, {
876
- default: K(() => [A("div", { style: I({
937
+ P(u, { span: 1 }, {
938
+ default: J(() => [M("div", { style: R({
877
939
  display: "flex",
878
940
  alignItems: "center",
879
941
  justifyContent: "center",
880
942
  height: e.height + "px"
881
- }) }, [A("div", Fe, [
882
- e.baseSelectKeys.length === 0 ? (z(), D(d, {
943
+ }) }, [M("div", Le, [
944
+ e.baseSelectKeys.length === 0 ? (V(), k(d, {
883
945
  key: 0,
884
946
  style: {
885
947
  color: "#999999",
886
948
  "font-size": "25px"
887
949
  }
888
- })) : O("", !0),
889
- e.baseSelectKeys.length > 0 ? (z(), D(f, {
950
+ })) : A("", !0),
951
+ e.baseSelectKeys.length > 0 ? (V(), k(f, {
890
952
  key: 1,
891
953
  style: { "font-size": "25px" },
892
954
  onClick: e.goLeft
893
- }, null, 8, ["onClick"])) : O("", !0),
894
- e.selectedRowKeys.length === 0 ? (z(), D(p, {
955
+ }, null, 8, ["onClick"])) : A("", !0),
956
+ e.selectedRowKeys.length === 0 ? (V(), k(p, {
895
957
  key: 2,
896
958
  style: {
897
959
  color: "#999999",
898
960
  "font-size": "25px"
899
961
  }
900
- })) : O("", !0),
901
- e.selectedRowKeys.length > 0 ? (z(), D(m, {
962
+ })) : A("", !0),
963
+ e.selectedRowKeys.length > 0 ? (V(), k(m, {
902
964
  key: 3,
903
965
  style: { "font-size": "25px" },
904
966
  onClick: e.goRight
905
- }, null, 8, ["onClick"])) : O("", !0)
967
+ }, null, 8, ["onClick"])) : A("", !0)
906
968
  ])], 4)]),
907
969
  _: 1
908
970
  }),
909
- M(u, {
971
+ P(u, {
910
972
  span: 17,
911
973
  class: "base-column-content"
912
974
  }, {
913
- default: K(() => [A("div", Ie, [A("div", Le, W(e.$t("列设置")), 1)]), A("div", Re, [M(l, {
975
+ default: J(() => [M("div", Re, [M("div", ze, K(e.$t("列设置")), 1)]), M("div", Be, [P(l, {
914
976
  bordered: !0,
915
977
  columns: e.baseColumns,
916
978
  rowHeight: 30,
@@ -928,8 +990,8 @@ function Be(e, t, n, r, i, a) {
928
990
  x: "100%"
929
991
  }
930
992
  }, {
931
- bodyCell: K(({ column: n, index: r, text: i, record: a, recordIndexs: o }) => [
932
- n.dataIndex === "title" ? (z(), D(h, {
993
+ bodyCell: J(({ column: n, index: r, text: i, record: a, recordIndexs: o }) => [
994
+ n.dataIndex === "title" ? (V(), k(h, {
933
995
  key: 0,
934
996
  value: e.getRawRecord(e.baseColumnList, o).title,
935
997
  "onUpdate:value": (t) => e.getRawRecord(e.baseColumnList, o).title = t,
@@ -938,18 +1000,18 @@ function Be(e, t, n, r, i, a) {
938
1000
  "value",
939
1001
  "onUpdate:value",
940
1002
  "onChange"
941
- ])) : O("", !0),
942
- n.dataIndex === "dataIndex" ? (z(), k(T, { key: 1 }, [j(W(i) + " ", 1), e.fieldMap && !e.fieldMap[i] ? (z(), D(g, {
1003
+ ])) : A("", !0),
1004
+ n.dataIndex === "dataIndex" ? (V(), j(D, { key: 1 }, [N(K(i) + " ", 1), e.fieldMap && !e.fieldMap[i] ? (V(), k(g, {
943
1005
  key: 0,
944
1006
  title: "列参数不存在",
945
1007
  style: { color: "#faad14" }
946
- })) : O("", !0)], 64)) : O("", !0),
947
- n.dataIndex === "defaultSort" ? (z(), k(T, { key: 2 }, [a.sorter ? (z(), D(b, {
1008
+ })) : A("", !0)], 64)) : A("", !0),
1009
+ n.dataIndex === "defaultSort" ? (V(), j(D, { key: 2 }, [a.sorter ? (V(), k(b, {
948
1010
  key: 0,
949
1011
  gutter: 8
950
1012
  }, {
951
- default: K(() => [M(u, { span: 12 }, {
952
- default: K(() => [M(v, {
1013
+ default: J(() => [P(u, { span: 12 }, {
1014
+ default: J(() => [P(v, {
953
1015
  value: a.defaultSortOrder,
954
1016
  "onUpdate:value": (e) => a.defaultSortOrder = e,
955
1017
  onChange: e.changeBaseColumnList,
@@ -957,17 +1019,17 @@ function Be(e, t, n, r, i, a) {
957
1019
  size: "small",
958
1020
  allowClear: ""
959
1021
  }, {
960
- default: K(() => [M(_, {
1022
+ default: J(() => [P(_, {
961
1023
  key: "ascend",
962
1024
  value: "ascend"
963
1025
  }, {
964
- default: K(() => [j(W(e.$t("升序")), 1)]),
1026
+ default: J(() => [N(K(e.$t("升序")), 1)]),
965
1027
  _: 1
966
- }), M(_, {
1028
+ }), P(_, {
967
1029
  key: "descend",
968
1030
  value: "descend"
969
1031
  }, {
970
- default: K(() => [j(W(e.$t("降序")), 1)]),
1032
+ default: J(() => [N(K(e.$t("降序")), 1)]),
971
1033
  _: 1
972
1034
  })]),
973
1035
  _: 1
@@ -977,8 +1039,8 @@ function Be(e, t, n, r, i, a) {
977
1039
  "onChange"
978
1040
  ])]),
979
1041
  _: 2
980
- }, 1024), M(u, { span: 12 }, {
981
- default: K(() => [a.defaultSortOrder ? (z(), D(y, {
1042
+ }, 1024), P(u, { span: 12 }, {
1043
+ default: J(() => [a.defaultSortOrder ? (V(), k(y, {
982
1044
  key: 0,
983
1045
  size: "small",
984
1046
  value: a.defaultSortIndex,
@@ -992,29 +1054,29 @@ function Be(e, t, n, r, i, a) {
992
1054
  "value",
993
1055
  "onUpdate:value",
994
1056
  "onClick"
995
- ])) : O("", !0)]),
1057
+ ])) : A("", !0)]),
996
1058
  _: 2
997
1059
  }, 1024)]),
998
1060
  _: 2
999
- }, 1024)) : (z(), k("div", ze, " 不支持排序 "))], 64)) : O("", !0),
1000
- n.dataIndex === "fixed" ? (z(), k(T, { key: 3 }, [a?.is_children ? O("", !0) : (z(), D(S, {
1061
+ }, 1024)) : (V(), j("div", Ve, " 不支持排序 "))], 64)) : A("", !0),
1062
+ n.dataIndex === "fixed" ? (V(), j(D, { key: 3 }, [a?.is_children ? A("", !0) : (V(), k(S, {
1001
1063
  key: 0,
1002
1064
  value: a.fixed,
1003
1065
  "onUpdate:value": (e) => a.fixed = e,
1004
1066
  size: "small",
1005
1067
  onClick: e.changeBaseColumnList
1006
1068
  }, {
1007
- default: K(() => [
1008
- M(x, { value: "left" }, {
1009
- default: K(() => [...t[2] ||= [j(W("左"), -1)]]),
1069
+ default: J(() => [
1070
+ P(x, { value: "left" }, {
1071
+ default: J(() => [...t[3] ||= [N(K("左"), -1)]]),
1010
1072
  _: 1
1011
1073
  }),
1012
- M(x, { value: void 0 }, {
1013
- default: K(() => [...t[3] ||= [j(W("不固定"), -1)]]),
1074
+ P(x, { value: void 0 }, {
1075
+ default: J(() => [...t[4] ||= [N(K("不固定"), -1)]]),
1014
1076
  _: 1
1015
1077
  }),
1016
- M(x, { value: "right" }, {
1017
- default: K(() => [...t[4] ||= [j(W("右"), -1)]]),
1078
+ P(x, { value: "right" }, {
1079
+ default: J(() => [...t[5] ||= [N(K("右"), -1)]]),
1018
1080
  _: 1
1019
1081
  })
1020
1082
  ]),
@@ -1023,8 +1085,8 @@ function Be(e, t, n, r, i, a) {
1023
1085
  "value",
1024
1086
  "onUpdate:value",
1025
1087
  "onClick"
1026
- ]))], 64)) : O("", !0),
1027
- n.dataIndex === "autoHeight" ? (z(), k(T, { key: 4 }, [a.children && a.children.length > 0 ? O("", !0) : (z(), D(C, {
1088
+ ]))], 64)) : A("", !0),
1089
+ n.dataIndex === "autoHeight" ? (V(), j(D, { key: 4 }, [a.children && a.children.length > 0 ? A("", !0) : (V(), k(C, {
1028
1090
  key: 0,
1029
1091
  checked: a.autoHeight,
1030
1092
  "onUpdate:checked": (e) => a.autoHeight = e,
@@ -1037,8 +1099,8 @@ function Be(e, t, n, r, i, a) {
1037
1099
  "checked",
1038
1100
  "onUpdate:checked",
1039
1101
  "onClick"
1040
- ]))], 64)) : O("", !0),
1041
- n.dataIndex === "autoWidth" ? (z(), k(T, { key: 5 }, [!(a.children && a.children.length > 0) && a?.resizable ? (z(), D(C, {
1102
+ ]))], 64)) : A("", !0),
1103
+ n.dataIndex === "autoWidth" ? (V(), j(D, { key: 5 }, [!(a.children && a.children.length > 0) && a?.resizable ? (V(), k(C, {
1042
1104
  key: 0,
1043
1105
  checked: a.autoWidth,
1044
1106
  "onUpdate:checked": (e) => a.autoWidth = e,
@@ -1053,8 +1115,8 @@ function Be(e, t, n, r, i, a) {
1053
1115
  "checked-children",
1054
1116
  "un-checked-children",
1055
1117
  "onClick"
1056
- ])) : O("", !0)], 64)) : O("", !0),
1057
- n.dataIndex === "approve_summary" ? (z(), D(C, {
1118
+ ])) : A("", !0)], 64)) : A("", !0),
1119
+ n.dataIndex === "approve_summary" ? (V(), k(C, {
1058
1120
  key: 6,
1059
1121
  checked: a.approve_summary,
1060
1122
  "onUpdate:checked": (e) => a.approve_summary = e,
@@ -1065,8 +1127,8 @@ function Be(e, t, n, r, i, a) {
1065
1127
  "checked",
1066
1128
  "onUpdate:checked",
1067
1129
  "onClick"
1068
- ])) : O("", !0),
1069
- n.dataIndex === "ellipsis" ? (z(), k(T, { key: 7 }, [!(a.children && a.children.length > 0) && a?.resizable ? (z(), D(C, {
1130
+ ])) : A("", !0),
1131
+ n.dataIndex === "ellipsis" ? (V(), j(D, { key: 7 }, [!(a.children && a.children.length > 0) && a?.resizable ? (V(), k(C, {
1070
1132
  key: 0,
1071
1133
  checked: a.ellipsis,
1072
1134
  "onUpdate:checked": (e) => a.ellipsis = e,
@@ -1081,8 +1143,8 @@ function Be(e, t, n, r, i, a) {
1081
1143
  "checked-children",
1082
1144
  "un-checked-children",
1083
1145
  "onClick"
1084
- ])) : O("", !0)], 64)) : O("", !0),
1085
- n.dataIndex === "cellComponent" ? (z(), D(v, {
1146
+ ])) : A("", !0)], 64)) : A("", !0),
1147
+ n.dataIndex === "cellComponent" ? (V(), k(v, {
1086
1148
  key: 8,
1087
1149
  value: a.cellComponent,
1088
1150
  "onUpdate:value": (e) => a.cellComponent = e,
@@ -1094,11 +1156,59 @@ function Be(e, t, n, r, i, a) {
1094
1156
  style: { width: "180px" },
1095
1157
  onChange: (t) => e.changeCellComponent(a)
1096
1158
  }, {
1097
- default: K(() => [(z(!0), k(T, null, H(e.cellComponentList, (t) => (z(), D(_, {
1159
+ default: J(() => [(V(!0), j(D, null, W(e.cellComponentList, (t) => (V(), k(_, {
1098
1160
  key: t.cellComponent,
1099
1161
  value: t.cellComponent
1100
1162
  }, {
1101
- default: K(() => [j(W(e.$t(t.name) + "(" + t.cellComponent + ")"), 1)]),
1163
+ default: J(() => [N(K(e.$t(t.name) + "(" + t.cellComponent + ")"), 1)]),
1164
+ _: 2
1165
+ }, 1032, ["value"]))), 128))]),
1166
+ _: 1
1167
+ }, 8, [
1168
+ "value",
1169
+ "onUpdate:value",
1170
+ "placeholder",
1171
+ "onChange"
1172
+ ])) : A("", !0),
1173
+ n.dataIndex === "cellParams" ? (V(), j(D, { key: 9 }, [a.cellComponent === e.COMMON_NUMBER_COMPONENT ? (V(), k(w, {
1174
+ key: 0,
1175
+ value: a.cellComponentParams?.pattern || "",
1176
+ size: "small",
1177
+ style: { width: "100%" },
1178
+ options: e.numfmtPatternPresets,
1179
+ placeholder: "#,##0.00",
1180
+ "filter-option": e.filterPattern,
1181
+ onChange: (t) => e.onPatternChange(a, "cellComponentParams", t)
1182
+ }, null, 8, [
1183
+ "value",
1184
+ "options",
1185
+ "filter-option",
1186
+ "onChange"
1187
+ ])) : (V(), k(s, {
1188
+ key: 1,
1189
+ size: "small",
1190
+ onClick: (t) => e.openJsonStrModal(a.cellComponentParams, a, "cellComponentParams")
1191
+ }, {
1192
+ default: J(() => [N(K(e.paramCount(a.cellComponentParams) ? e.$t("已配") : e.$t("配置")), 1)]),
1193
+ _: 2
1194
+ }, 1032, ["onClick"]))], 64)) : A("", !0),
1195
+ n.dataIndex === "cellSummaryComponent" ? (V(), k(v, {
1196
+ key: 10,
1197
+ value: a.cellSummaryComponent,
1198
+ "onUpdate:value": (e) => a.cellSummaryComponent = e,
1199
+ "allow-clear": !0,
1200
+ dropdownMatchSelectWidth: !1,
1201
+ placeholder: e.$t("请选择"),
1202
+ "show-search": !0,
1203
+ size: "small",
1204
+ style: { width: "160px" },
1205
+ onChange: e.changeBaseColumnList
1206
+ }, {
1207
+ default: J(() => [(V(!0), j(D, null, W(e.cellSummaryComponentList, (t) => (V(), k(_, {
1208
+ key: t.cellSummaryComponent,
1209
+ value: t.cellSummaryComponent
1210
+ }, {
1211
+ default: J(() => [N(K(e.$t(t.name) + "(" + t.cellSummaryComponent + ")"), 1)]),
1102
1212
  _: 2
1103
1213
  }, 1032, ["value"]))), 128))]),
1104
1214
  _: 1
@@ -1107,25 +1217,47 @@ function Be(e, t, n, r, i, a) {
1107
1217
  "onUpdate:value",
1108
1218
  "placeholder",
1109
1219
  "onChange"
1110
- ])) : O("", !0),
1111
- n.dataIndex === "action" ? (z(), k(T, { key: 9 }, [e.changedFields[a.dataIndex] ? (z(), D(s, {
1220
+ ])) : A("", !0),
1221
+ n.dataIndex === "summaryParams" ? (V(), j(D, { key: 11 }, [a.cellSummaryComponent === e.COMMON_NUMBER_COMPONENT ? (V(), k(w, {
1222
+ key: 0,
1223
+ value: a.cellSummaryComponentParams?.pattern || "",
1224
+ size: "small",
1225
+ style: { width: "100%" },
1226
+ options: e.numfmtPatternPresets,
1227
+ placeholder: "#,##0.00",
1228
+ "filter-option": e.filterPattern,
1229
+ onChange: (t) => e.onPatternChange(a, "cellSummaryComponentParams", t)
1230
+ }, null, 8, [
1231
+ "value",
1232
+ "options",
1233
+ "filter-option",
1234
+ "onChange"
1235
+ ])) : (V(), k(s, {
1236
+ key: 1,
1237
+ size: "small",
1238
+ onClick: (t) => e.openJsonStrModal(a.cellSummaryComponentParams, a, "cellSummaryComponentParams")
1239
+ }, {
1240
+ default: J(() => [N(K(e.paramCount(a.cellSummaryComponentParams) ? e.$t("已配") : e.$t("配置")), 1)]),
1241
+ _: 2
1242
+ }, 1032, ["onClick"]))], 64)) : A("", !0),
1243
+ n.dataIndex === "action" ? (V(), j(D, { key: 12 }, [e.changedFields[a.dataIndex] ? (V(), k(s, {
1112
1244
  key: 0,
1113
1245
  type: "link",
1114
1246
  onClick: (t) => e.handleUpdateBaseColumn(e.getRawRecord(e.baseColumnList, o))
1115
1247
  }, {
1116
- default: K(() => [j(W(e.$t("更新")), 1)]),
1248
+ default: J(() => [N(K(e.$t("更新")), 1)]),
1117
1249
  _: 1
1118
- }, 8, ["onClick"])) : O("", !0)], 64)) : O("", !0)
1250
+ }, 8, ["onClick"])) : A("", !0)], 64)) : A("", !0)
1119
1251
  ]),
1120
- contextmenuPopup: K((t) => [M(c, { direction: "vertical" }, {
1121
- default: K(() => [M(s, {
1252
+ contextmenuPopup: J((t) => [P(c, { direction: "vertical" }, {
1253
+ default: J(() => [P(s, {
1122
1254
  block: "",
1123
1255
  size: "small",
1124
1256
  type: "text",
1125
1257
  onClick: (n) => e.copyClick(t, "cell")
1126
1258
  }, {
1127
- icon: K(() => [M(o)]),
1128
- default: K(() => [j(" " + W(e.$t("复制")), 1)]),
1259
+ icon: J(() => [P(o)]),
1260
+ default: J(() => [N(" " + K(e.$t("复制")), 1)]),
1129
1261
  _: 1
1130
1262
  }, 8, ["onClick"])]),
1131
1263
  _: 2
@@ -1147,9 +1279,32 @@ function Be(e, t, n, r, i, a) {
1147
1279
  _: 1
1148
1280
  }, 8, ["style"])]),
1149
1281
  _: 1
1150
- });
1282
+ }), P(F, {
1283
+ open: e.jsonStrModalOpen,
1284
+ "onUpdate:open": t[2] ||= (t) => e.jsonStrModalOpen = t,
1285
+ title: e.$t("编辑参数(JSON)"),
1286
+ width: "720px",
1287
+ "destroy-on-close": "",
1288
+ onOk: e.handleJsonStrModalOk
1289
+ }, {
1290
+ default: J(() => [P(O, {
1291
+ rows: 8,
1292
+ value: e.jsonStrText,
1293
+ class: L({ "json-error": !!e.jsonStrError }),
1294
+ onInput: e.onJsonInput
1295
+ }, null, 8, [
1296
+ "value",
1297
+ "class",
1298
+ "onInput"
1299
+ ]), e.jsonStrError ? (V(), j("div", He, K(e.jsonStrError), 1)) : A("", !0)]),
1300
+ _: 1
1301
+ }, 8, [
1302
+ "open",
1303
+ "title",
1304
+ "onOk"
1305
+ ])], 64);
1151
1306
  }
1152
- var Ve = /* @__PURE__ */ c(Me, [["render", Be], ["__scopeId", "data-v-c244ceb9"]]), He = N({
1307
+ var We = /* @__PURE__ */ t(Pe, [["render", Ue], ["__scopeId", "data-v-52abe38d"]]), Ge = F({
1153
1308
  name: "OperatorSelect",
1154
1309
  props: { record: {
1155
1310
  type: Object,
@@ -1157,29 +1312,29 @@ var Ve = /* @__PURE__ */ c(Me, [["render", Be], ["__scopeId", "data-v-c244ceb9"]
1157
1312
  } },
1158
1313
  emits: ["change"],
1159
1314
  setup(e, { emit: t }) {
1160
- let r = n();
1315
+ let n = o();
1161
1316
  return {
1162
1317
  changeOperatorList: (e) => {
1163
1318
  t("change", e);
1164
1319
  },
1165
- operator_list: E(() => {
1320
+ operator_list: O(() => {
1166
1321
  let t = [];
1167
1322
  return e.record.options && e.record.options.length > 0 ? (t = [
1168
1323
  "in",
1169
1324
  "notin",
1170
1325
  "eq",
1171
1326
  "not_eq"
1172
- ], e.record.class_name == "str" ? t.push("is_or_not_blank_or_null") : t.push("is_or_not_null")) : t = e.record.type == "remoteselectpro" ? r.remote : r[e.record.class_name] || [], t;
1327
+ ], e.record.class_name == "str" ? t.push("is_or_not_blank_or_null") : t.push("is_or_not_null")) : t = e.record.type == "remoteselectpro" ? n.remote : n[e.record.class_name] || [], t;
1173
1328
  }),
1174
- get_operator_type_map: l
1329
+ get_operator_type_map: f
1175
1330
  };
1176
1331
  }
1177
1332
  });
1178
1333
  //#endregion
1179
1334
  //#region src/components/approval/components/approvalPageConfig/operatorSelect.vue
1180
- function Ue(e, t, n, r, i, a) {
1181
- let o = U("a-select-option"), s = U("a-select");
1182
- return z(), D(s, {
1335
+ function Ke(e, t, n, r, i, a) {
1336
+ let o = G("a-select-option"), s = G("a-select");
1337
+ return V(), k(s, {
1183
1338
  value: e.record.operator_list,
1184
1339
  "onUpdate:value": t[0] ||= (t) => e.record.operator_list = t,
1185
1340
  "allow-clear": !0,
@@ -1192,14 +1347,14 @@ function Ue(e, t, n, r, i, a) {
1192
1347
  style: { width: "100%" },
1193
1348
  onChange: t[1] ||= (t) => e.changeOperatorList(e.record)
1194
1349
  }, {
1195
- default: K(() => [(z(!0), k(T, null, H(e.operator_list, (t) => (z(), D(o, { value: t }, {
1196
- default: K(() => [j(W(e.get_operator_type_map(e.record.format, t)) + "(" + W(t) + ") ", 1)]),
1350
+ default: J(() => [(V(!0), j(D, null, W(e.operator_list, (t) => (V(), k(o, { value: t }, {
1351
+ default: J(() => [N(K(e.get_operator_type_map(e.record.format, t)) + "(" + K(t) + ") ", 1)]),
1197
1352
  _: 2
1198
1353
  }, 1032, ["value"]))), 256))]),
1199
1354
  _: 1
1200
1355
  }, 8, ["value"]);
1201
1356
  }
1202
- var We = /* @__PURE__ */ c(He, [["render", Ue]]), Ge = N({
1357
+ var qe = /* @__PURE__ */ t(Ge, [["render", Ke]]), Je = F({
1203
1358
  name: "DefaultOperatorSelect",
1204
1359
  props: { record: {
1205
1360
  type: Object,
@@ -1211,16 +1366,16 @@ var We = /* @__PURE__ */ c(He, [["render", Ue]]), Ge = N({
1211
1366
  changeDefaultOperator: (e) => {
1212
1367
  t("change", e);
1213
1368
  },
1214
- operator_list: E(() => e.record.operator_list),
1215
- get_operator_type_map: l
1369
+ operator_list: O(() => e.record.operator_list),
1370
+ get_operator_type_map: f
1216
1371
  };
1217
1372
  }
1218
1373
  });
1219
1374
  //#endregion
1220
1375
  //#region src/components/approval/components/approvalPageConfig/defaultOperatorSelect.vue
1221
- function Ke(e, t, n, r, i, a) {
1222
- let o = U("a-select-option"), s = U("a-select");
1223
- return z(), D(s, {
1376
+ function Ye(e, t, n, r, i, a) {
1377
+ let o = G("a-select-option"), s = G("a-select");
1378
+ return V(), k(s, {
1224
1379
  value: e.record.default_operator,
1225
1380
  "onUpdate:value": t[0] ||= (t) => e.record.default_operator = t,
1226
1381
  "allow-clear": !0,
@@ -1231,14 +1386,14 @@ function Ke(e, t, n, r, i, a) {
1231
1386
  style: { width: "100%" },
1232
1387
  onChange: t[1] ||= (t) => e.changeDefaultOperator(e.record)
1233
1388
  }, {
1234
- default: K(() => [(z(!0), k(T, null, H(e.record.operator_list, (t) => (z(), D(o, { value: t }, {
1235
- default: K(() => [j(W(e.get_operator_type_map(e.record.format, t)) + "(" + W(t) + ") ", 1)]),
1389
+ default: J(() => [(V(!0), j(D, null, W(e.record.operator_list, (t) => (V(), k(o, { value: t }, {
1390
+ default: J(() => [N(K(e.get_operator_type_map(e.record.format, t)) + "(" + K(t) + ") ", 1)]),
1236
1391
  _: 2
1237
1392
  }, 1032, ["value"]))), 256))]),
1238
1393
  _: 1
1239
1394
  }, 8, ["value"]);
1240
1395
  }
1241
- var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1396
+ var Xe = /* @__PURE__ */ t(Je, [["render", Ye]]), Ze = [{
1242
1397
  title: "参数",
1243
1398
  dataIndex: "name",
1244
1399
  checked: !0,
@@ -1250,7 +1405,7 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1250
1405
  checked: !0,
1251
1406
  width: 100,
1252
1407
  ellipsis: !0
1253
- }], Ye = [
1408
+ }], Qe = [
1254
1409
  {
1255
1410
  title: "列名称",
1256
1411
  dataIndex: "label",
@@ -1289,7 +1444,7 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1289
1444
  key: "default_operator",
1290
1445
  width: 100
1291
1446
  }
1292
- ], Xe = N({
1447
+ ], $e = F({
1293
1448
  name: "BaseSearch",
1294
1449
  props: {
1295
1450
  record: {
@@ -1302,26 +1457,26 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1302
1457
  }
1303
1458
  },
1304
1459
  components: {
1305
- CloseCircleOutlined: X,
1306
- LeftSquareOutlined: te,
1307
- LeftSquareTwoTone: ne,
1308
- RightSquareOutlined: ie,
1309
- RightSquareTwoTone: ae,
1310
- CheckOutlined: Y,
1311
- EditOutlined: Z,
1312
- OperatorSelect: We,
1313
- DefaultOperatorSelect: qe,
1314
- cellEdit: je
1460
+ CloseCircleOutlined: te,
1461
+ LeftSquareOutlined: ie,
1462
+ LeftSquareTwoTone: ae,
1463
+ RightSquareOutlined: oe,
1464
+ RightSquareTwoTone: Q,
1465
+ CheckOutlined: ee,
1466
+ EditOutlined: re,
1467
+ OperatorSelect: qe,
1468
+ DefaultOperatorSelect: Xe,
1469
+ cellEdit: Ne
1315
1470
  },
1316
1471
  emits: ["update:record"],
1317
- setup(e, { emit: r }) {
1318
- let o = n(), s = a(), c = V(0), l = t().currentOrg, u = V([]), d = B({}), f = V([]), p = V([]), m = V([]), h = V([]), g = V({}), _ = V({}), v = () => {
1472
+ setup(e, { emit: t }) {
1473
+ let n = o(), r = i(), s = U(0), c = u().currentOrg, l = U([]), d = H({}), f = U([]), p = U([]), m = U([]), h = U([]), g = U({}), _ = U({}), v = () => {
1319
1474
  let e = [];
1320
- e = $(p.value), e.forEach((e) => {
1475
+ e = se(p.value), e.forEach((e) => {
1321
1476
  delete e.dataIndex;
1322
- }), r("update:record", e);
1323
- }, y = oe(() => {
1324
- c.value = window.innerHeight - 165;
1477
+ }), t("update:record", e);
1478
+ }, y = ce(() => {
1479
+ s.value = window.innerHeight - 165;
1325
1480
  }, 200);
1326
1481
  function b(e, t) {
1327
1482
  e.name != null && t.has(e.name) ? e.disabled = !0 : e.disabled = !1, e.children && Array.isArray(e.children) && e.children.forEach((e) => {
@@ -1347,22 +1502,22 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1347
1502
  b(t, e);
1348
1503
  }), f.value = [].concat(f.value), p.value = [].concat(p.value);
1349
1504
  };
1350
- L(async () => {
1505
+ z(async () => {
1351
1506
  window.addEventListener("resize", y), y();
1352
- let t = $(e.record) || [];
1507
+ let t = se(e.record) || [];
1353
1508
  if (t.forEach((e) => {
1354
1509
  e.operator_list ||= [], !e.dataIndex && e.field_name && (e.dataIndex = e.field_name);
1355
1510
  }), p.value = t, console.log(p.value), e.modelType) {
1356
1511
  let t = e.modelType.split("-"), n = `${t[0]}/obtain_${t[1]}_column_data`;
1357
- f.value = x(await i({ org_id: l?.id }, n, !1, { skip_error: !0 }) || []), G(f.value);
1512
+ f.value = x(await a({ org_id: c?.id }, n, !1, { skip_error: !0 }) || []), G(f.value);
1358
1513
  }
1359
1514
  J(), S();
1360
- }), R(() => {
1515
+ }), B(() => {
1361
1516
  window.removeEventListener("resize", y);
1362
1517
  });
1363
1518
  let C = (e) => {
1364
1519
  if (e.record.disabled) return { style: { background: "#cbcbcb" } };
1365
- }, w = B({
1520
+ }, w = H({
1366
1521
  type: "checkbox",
1367
1522
  onChange: (e) => {
1368
1523
  m.value = e;
@@ -1371,10 +1526,10 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1371
1526
  disabled: e.children !== void 0,
1372
1527
  name: e.dataIndex
1373
1528
  })
1374
- }), T = B({
1529
+ }), T = H({
1375
1530
  type: "checkbox",
1376
1531
  onChange: (e) => {
1377
- u.value = e;
1532
+ l.value = e;
1378
1533
  },
1379
1534
  getCheckboxProps: (e) => ({
1380
1535
  disabled: e.disabled,
@@ -1402,19 +1557,19 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1402
1557
  O(f.value), m.value.length = 0, p.value = [].concat(e), f.value = [].concat(f.value), v(), J();
1403
1558
  }, A = (e) => {
1404
1559
  e.forEach((e) => {
1405
- if (u.value.indexOf(e.name) > -1) {
1560
+ if (l.value.indexOf(e.name) > -1) {
1406
1561
  e.disabled = !0;
1407
1562
  let t = {};
1408
1563
  t.field_name = e.name, t.label = e.verbose_name, t.dataIndex = e.name, t.required_condition = e.required_condition, t.allowClear = !0, Object.assign(t, e.advanced_search_component), e?.options && e.options.length > 0 ? (t.options = e.options, t.operator_list = [
1409
1564
  "eq",
1410
1565
  "in",
1411
1566
  "notin"
1412
- ], e.type === "boolean" ? t.class_name = "bool" : t.class_name = e.type, t.format = "choices") : e.type == "int" ? (t.format = "input", t.operator_list = o[e.type], t.class_name = "int") : e.type == "float" ? (t.format = "input", t.operator_list = o[e.type], t.class_name = "float") : e.type == "str" ? (t.format = "input", t.operator_list = o[e.type], t.class_name = "str") : e.type == "remote" ? (t.format = "remote", t.operator_list = o[e.type], t.class_name = "int", t.postUrl = e.postUrl) : e.type == "datetime" ? (t.format = "input", t.operator_list = o[e.type], t.class_name = "datetime") : e.type == "date" ? (t.format = "input", t.operator_list = o[e.type], t.class_name = "date") : e.type == "time" ? (t.format = "input", t.operator_list = o[e.type], t.class_name = "time") : (t.format = "input", t.operator_list = o.str, t.class_name = "str"), p.value.push(t);
1567
+ ], e.type === "boolean" ? t.class_name = "bool" : t.class_name = e.type, t.format = "choices") : e.type == "int" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "int") : e.type == "float" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "float") : e.type == "str" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "str") : e.type == "remote" ? (t.format = "remote", t.operator_list = n[e.type], t.class_name = "int", t.postUrl = e.postUrl) : e.type == "datetime" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "datetime") : e.type == "date" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "date") : e.type == "time" ? (t.format = "input", t.operator_list = n[e.type], t.class_name = "time") : (t.format = "input", t.operator_list = n.str, t.class_name = "str"), p.value.push(t);
1413
1568
  }
1414
1569
  e.children && Array.isArray(e.children) && A(e.children);
1415
1570
  });
1416
1571
  }, j = () => {
1417
- A(f.value), u.value.length = 0, f.value = [].concat(f.value), p.value = [].concat(p.value), v();
1572
+ A(f.value), l.value.length = 0, f.value = [].concat(f.value), p.value = [].concat(p.value), v();
1418
1573
  }, M = (e) => {
1419
1574
  delete d[e];
1420
1575
  }, N = (e) => {
@@ -1430,11 +1585,11 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1430
1585
  }, I = (e) => e?.children && e.children.length >= 0 ? [] : e?.options && e.options.length > 0 ? [{
1431
1586
  name: "下拉选框",
1432
1587
  value: "select"
1433
- }] : s[e.class_name] ? s[e.class_name].type : [], z = (e) => {
1588
+ }] : r[e.class_name] ? r[e.class_name].type : [], L = (e) => {
1434
1589
  e.operator_list.includes(e.default_operator) || (e.default_operator = null), e.default_operator ||= e.operator_list?.[0], v();
1435
- }, H = (e) => {
1590
+ }, R = (e) => {
1436
1591
  v();
1437
- }, U = (e, t) => {
1592
+ }, V = (e, t) => {
1438
1593
  let n = e;
1439
1594
  return t.forEach((e) => {
1440
1595
  !Array.isArray(n) && n.children && (n = n.children), n = n[e];
@@ -1454,7 +1609,7 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1454
1609
  let n = {
1455
1610
  options: "options",
1456
1611
  required_condition: "required_condition"
1457
- }, r = W(t, n), i = W(e, Object.values(n).reduce((e, t) => (e[t] = t, e), {})), a = se(r, i);
1612
+ }, r = W(t, n), i = W(e, Object.values(n).reduce((e, t) => (e[t] = t, e), {})), a = le(r, i);
1458
1613
  return a || console.log(`${e.field_name} 字段配置不一致`, r, i), a;
1459
1614
  }
1460
1615
  return !0;
@@ -1480,10 +1635,10 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1480
1635
  }
1481
1636
  };
1482
1637
  return {
1483
- selectedRowKeys: u,
1638
+ selectedRowKeys: l,
1484
1639
  dataSource: f,
1485
- columns: Je,
1486
- baseColumns: Ye,
1640
+ columns: Ze,
1641
+ baseColumns: Qe,
1487
1642
  baseDataSource: p,
1488
1643
  open: d,
1489
1644
  rowSelection: T,
@@ -1500,8 +1655,8 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1500
1655
  deleteRecord: P,
1501
1656
  changeBase: F,
1502
1657
  getType: I,
1503
- changeOperatorList: z,
1504
- changeDefaultOperator: H,
1658
+ changeOperatorList: L,
1659
+ changeDefaultOperator: R,
1505
1660
  changedFields: _,
1506
1661
  updateAllBaseSearch: () => {
1507
1662
  Object.values(_.value).forEach((e) => {
@@ -1509,24 +1664,24 @@ var qe = /* @__PURE__ */ c(Ge, [["render", Ke]]), Je = [{
1509
1664
  }), v(), J();
1510
1665
  },
1511
1666
  handleUpdateBaseColumn: Y,
1512
- getRawRecord: U,
1513
- height: c,
1667
+ getRawRecord: V,
1668
+ height: s,
1514
1669
  fieldMap: g
1515
1670
  };
1516
1671
  }
1517
- }), Ze = { style: { width: "30px" } };
1518
- function Qe(e, t, n, r, i, a) {
1519
- let o = U("s-table"), s = U("a-col"), c = U("left-square-outlined"), l = U("left-square-two-tone"), u = U("right-square-outlined"), d = U("right-square-two-tone"), f = U("cell-edit"), p = U("WarningOutlined"), m = U("a-select-option"), h = U("a-select"), g = U("OperatorSelect"), _ = U("DefaultOperatorSelect"), v = U("a-button"), y = U("a-row");
1520
- return z(), D(y, {
1672
+ }), et = { style: { width: "30px" } };
1673
+ function tt(e, t, n, r, i, a) {
1674
+ let o = G("s-table"), s = G("a-col"), c = G("left-square-outlined"), l = G("left-square-two-tone"), u = G("right-square-outlined"), d = G("right-square-two-tone"), f = G("cell-edit"), p = G("WarningOutlined"), m = G("a-select-option"), h = G("a-select"), g = G("OperatorSelect"), _ = G("DefaultOperatorSelect"), v = G("a-button"), y = G("a-row");
1675
+ return V(), k(y, {
1521
1676
  class: "antTabs",
1522
- style: I({ height: e.height + "px" })
1677
+ style: R({ height: e.height + "px" })
1523
1678
  }, {
1524
- default: K(() => [
1525
- M(s, {
1679
+ default: J(() => [
1680
+ P(s, {
1526
1681
  span: 7,
1527
1682
  style: { height: "100%" }
1528
1683
  }, {
1529
- default: K(() => [t[3] ||= A("div", { class: "column-title-container" }, [A("div", { class: "column-title" }, "基础数据")], -1), M(o, {
1684
+ default: J(() => [t[3] ||= M("div", { class: "column-title-container" }, [M("div", { class: "column-title" }, "基础数据")], -1), P(o, {
1530
1685
  selectedRowKeys: e.selectedRowKeys,
1531
1686
  "onUpdate:selectedRowKeys": t[0] ||= (t) => e.selectedRowKeys = t,
1532
1687
  autoRowHeight: !0,
@@ -1546,7 +1701,7 @@ function Qe(e, t, n, r, i, a) {
1546
1701
  stripe: "",
1547
1702
  "summary-fixed": ""
1548
1703
  }, {
1549
- bodyCell: K(({ column: e, index: t, text: n, record: r }) => [A("span", null, W(n), 1)]),
1704
+ bodyCell: J(({ column: e, index: t, text: n, record: r }) => [M("span", null, K(n), 1)]),
1550
1705
  _: 1
1551
1706
  }, 8, [
1552
1707
  "selectedRowKeys",
@@ -1558,42 +1713,42 @@ function Qe(e, t, n, r, i, a) {
1558
1713
  ])]),
1559
1714
  _: 1
1560
1715
  }),
1561
- M(s, { span: 1 }, {
1562
- default: K(() => [A("div", { style: I({
1716
+ P(s, { span: 1 }, {
1717
+ default: J(() => [M("div", { style: R({
1563
1718
  display: "flex",
1564
1719
  alignItems: "center",
1565
1720
  justifyContent: "center",
1566
1721
  height: e.height + "px"
1567
- }) }, [A("div", Ze, [
1568
- e.baseSelectedRowKeys.length === 0 ? (z(), D(c, {
1722
+ }) }, [M("div", et, [
1723
+ e.baseSelectedRowKeys.length === 0 ? (V(), k(c, {
1569
1724
  key: 0,
1570
1725
  style: {
1571
1726
  color: "#999999",
1572
1727
  "font-size": "25px"
1573
1728
  }
1574
- })) : O("", !0),
1575
- e.baseSelectedRowKeys.length > 0 ? (z(), D(l, {
1729
+ })) : A("", !0),
1730
+ e.baseSelectedRowKeys.length > 0 ? (V(), k(l, {
1576
1731
  key: 1,
1577
1732
  style: { "font-size": "25px" },
1578
1733
  onClick: e.toLeft
1579
- }, null, 8, ["onClick"])) : O("", !0),
1580
- e.selectedRowKeys.length === 0 ? (z(), D(u, {
1734
+ }, null, 8, ["onClick"])) : A("", !0),
1735
+ e.selectedRowKeys.length === 0 ? (V(), k(u, {
1581
1736
  key: 2,
1582
1737
  style: {
1583
1738
  color: "#999999",
1584
1739
  "font-size": "25px"
1585
1740
  }
1586
- })) : O("", !0),
1587
- e.selectedRowKeys.length > 0 ? (z(), D(d, {
1741
+ })) : A("", !0),
1742
+ e.selectedRowKeys.length > 0 ? (V(), k(d, {
1588
1743
  key: 3,
1589
1744
  style: { "font-size": "25px" },
1590
1745
  onClick: e.toRight
1591
- }, null, 8, ["onClick"])) : O("", !0)
1746
+ }, null, 8, ["onClick"])) : A("", !0)
1592
1747
  ])], 4)]),
1593
1748
  _: 1
1594
1749
  }),
1595
- M(s, { span: 16 }, {
1596
- default: K(() => [t[5] ||= A("div", { class: "column-title-container" }, [A("div", { class: "column-title" }, "基础列设置")], -1), M(o, {
1750
+ P(s, { span: 16 }, {
1751
+ default: J(() => [t[5] ||= M("div", { class: "column-title-container" }, [M("div", { class: "column-title" }, "基础列设置")], -1), P(o, {
1597
1752
  bordered: !0,
1598
1753
  columns: e.baseColumns,
1599
1754
  rowHeight: 30,
@@ -1611,8 +1766,8 @@ function Qe(e, t, n, r, i, a) {
1611
1766
  scroll: { y: e.height - 90 },
1612
1767
  size: "small"
1613
1768
  }, {
1614
- bodyCell: K(({ column: n, index: r, text: i, record: a, recordIndexs: o }) => [
1615
- n.dataIndex === "label" ? (z(), D(f, {
1769
+ bodyCell: J(({ column: n, index: r, text: i, record: a, recordIndexs: o }) => [
1770
+ n.dataIndex === "label" ? (V(), k(f, {
1616
1771
  key: 0,
1617
1772
  value: e.getRawRecord(e.baseDataSource, o).label,
1618
1773
  "onUpdate:value": (t) => e.getRawRecord(e.baseDataSource, o).label = t,
@@ -1621,13 +1776,13 @@ function Qe(e, t, n, r, i, a) {
1621
1776
  "value",
1622
1777
  "onUpdate:value",
1623
1778
  "onChange"
1624
- ])) : O("", !0),
1625
- n.dataIndex === "field_name" ? (z(), k(T, { key: 1 }, [j(W(i) + " ", 1), e.fieldMap && !e.fieldMap[i] ? (z(), D(p, {
1779
+ ])) : A("", !0),
1780
+ n.dataIndex === "field_name" ? (V(), j(D, { key: 1 }, [N(K(i) + " ", 1), e.fieldMap && !e.fieldMap[i] ? (V(), k(p, {
1626
1781
  key: 0,
1627
1782
  title: "查询参数不存在",
1628
1783
  style: { color: "#faad14" }
1629
- })) : O("", !0)], 64)) : O("", !0),
1630
- n.dataIndex === "type" ? (z(), D(h, {
1784
+ })) : A("", !0)], 64)) : A("", !0),
1785
+ n.dataIndex === "type" ? (V(), k(h, {
1631
1786
  key: 2,
1632
1787
  value: a.type,
1633
1788
  "onUpdate:value": (e) => a.type = e,
@@ -1639,11 +1794,11 @@ function Qe(e, t, n, r, i, a) {
1639
1794
  style: { width: "100%" },
1640
1795
  onChange: e.changeBase
1641
1796
  }, {
1642
- default: K(() => [(z(!0), k(T, null, H(e.getType(a), (e) => (z(), D(m, {
1797
+ default: J(() => [(V(!0), j(D, null, W(e.getType(a), (e) => (V(), k(m, {
1643
1798
  key: e.value,
1644
1799
  value: e.value
1645
1800
  }, {
1646
- default: K(() => [j(W(e.name), 1)]),
1801
+ default: J(() => [N(K(e.name), 1)]),
1647
1802
  _: 2
1648
1803
  }, 1032, ["value"]))), 128))]),
1649
1804
  _: 2
@@ -1651,25 +1806,25 @@ function Qe(e, t, n, r, i, a) {
1651
1806
  "value",
1652
1807
  "onUpdate:value",
1653
1808
  "onChange"
1654
- ])) : O("", !0),
1655
- n.dataIndex === "operator_list" ? (z(), k(T, { key: 3 }, [!a.children || a.children.length === 0 ? (z(), D(g, {
1809
+ ])) : A("", !0),
1810
+ n.dataIndex === "operator_list" ? (V(), j(D, { key: 3 }, [!a.children || a.children.length === 0 ? (V(), k(g, {
1656
1811
  key: 0,
1657
1812
  record: a,
1658
1813
  onChange: e.changeOperatorList
1659
- }, null, 8, ["record", "onChange"])) : O("", !0)], 64)) : O("", !0),
1660
- n.dataIndex === "default_operator" ? (z(), k(T, { key: 4 }, [!a.children || a.children.length === 0 ? (z(), D(_, {
1814
+ }, null, 8, ["record", "onChange"])) : A("", !0)], 64)) : A("", !0),
1815
+ n.dataIndex === "default_operator" ? (V(), j(D, { key: 4 }, [!a.children || a.children.length === 0 ? (V(), k(_, {
1661
1816
  key: 0,
1662
1817
  record: a,
1663
1818
  onChange: e.changeDefaultOperator
1664
- }, null, 8, ["record", "onChange"])) : O("", !0)], 64)) : O("", !0),
1665
- n.dataIndex === "action" ? (z(), k(T, { key: 5 }, [e.changedFields[a.field_name] ? (z(), D(v, {
1819
+ }, null, 8, ["record", "onChange"])) : A("", !0)], 64)) : A("", !0),
1820
+ n.dataIndex === "action" ? (V(), j(D, { key: 5 }, [e.changedFields[a.field_name] ? (V(), k(v, {
1666
1821
  key: 0,
1667
1822
  type: "link",
1668
1823
  onClick: (t) => e.handleUpdateBaseColumn(e.getRawRecord(e.baseDataSource, o))
1669
1824
  }, {
1670
- default: K(() => [...t[4] ||= [j(" 更新 ", -1)]]),
1825
+ default: J(() => [...t[4] ||= [N(" 更新 ", -1)]]),
1671
1826
  _: 1
1672
- }, 8, ["onClick"])) : O("", !0)], 64)) : O("", !0)
1827
+ }, 8, ["onClick"])) : A("", !0)], 64)) : A("", !0)
1673
1828
  ]),
1674
1829
  _: 1
1675
1830
  }, 8, [
@@ -1687,10 +1842,10 @@ function Qe(e, t, n, r, i, a) {
1687
1842
  _: 1
1688
1843
  }, 8, ["style"]);
1689
1844
  }
1690
- var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]]), et = {
1845
+ var nt = /* @__PURE__ */ t($e, [["render", tt], ["__scopeId", "data-v-2b292566"]]), rt = {
1691
1846
  tables: "左侧栏表格",
1692
1847
  data_list: "右侧栏表格"
1693
- }, tt = "未保存页面配置,需保存后才能同步", nt = N({
1848
+ }, it = "未保存页面配置,需保存后才能同步", at = F({
1694
1849
  name: "configSync",
1695
1850
  props: {
1696
1851
  dataSource: {
@@ -1703,28 +1858,28 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1703
1858
  }
1704
1859
  },
1705
1860
  setup(e) {
1706
- let t = x(), n = V(!1), r = V(!1), a = V([]), o = V([]), c = V([]), l = V({}), u = p.map((e) => ({
1707
- label: d[e] || e,
1861
+ let t = C(), n = U(!1), r = U(!1), i = U([]), o = U([]), s = U([]), l = U({}), u = g.map((e) => ({
1862
+ label: m[e] || e,
1708
1863
  value: e
1709
- })), f = V([...y, ...p]), m = E(() => y.every((e) => f.value.includes(e))), h = E(() => !m.value && y.some((e) => f.value.includes(e))), b = (e) => {
1710
- e ? f.value = [...new Set([...f.value, ...y])] : f.value = f.value.filter((e) => !y.includes(e));
1711
- }, S = V("standard"), C = Object.keys(_).map((e) => ({
1712
- label: _[e],
1864
+ })), d = U([...x, ...g]), f = O(() => x.every((e) => d.value.includes(e))), p = O(() => !f.value && x.some((e) => d.value.includes(e))), h = (e) => {
1865
+ e ? d.value = [...new Set([...d.value, ...x])] : d.value = d.value.filter((e) => !x.includes(e));
1866
+ }, _ = U("standard"), S = Object.keys(y).map((e) => ({
1867
+ label: y[e],
1713
1868
  value: e
1714
- })), w = E(() => S.value === "append" ? "目标节点没有该表格时,把该表的全部配置完整追加进去(未勾选的配置块也会一并写入)" : "目标节点没有该表格时,忽略这个同步项"), T = E(() => et[e.tableType] || e.tableType), D = E(() => o.value.map((e) => l.value[e]).filter((e) => !!e)), O = () => {
1715
- let e = t.selectNode, n = s();
1869
+ })), w = O(() => _.value === "append" ? "目标节点没有该表格时,把该表的全部配置完整追加进去(未勾选的配置块也会一并写入)" : "目标节点没有该表格时,忽略这个同步项"), T = O(() => rt[e.tableType] || e.tableType), E = O(() => o.value.map((e) => l.value[e]).filter((e) => !!e)), D = () => {
1870
+ let e = t.selectNode, n = c();
1716
1871
  return !e?.id || !e?.state || !n ? null : {
1717
1872
  org_id: Number(n),
1718
1873
  node_id: Number(e.id),
1719
1874
  menu_flag: e.state,
1720
1875
  name: e.name || e.state
1721
1876
  };
1722
- }, k = E(() => O()), A = E(() => !!e.dataSource?.id && !!k.value && D.value.length > 0 && f.value.length > 0), j = V([]), M = V({}), N = V({}), P = V(""), F = (e, n, r) => {
1877
+ }, k = O(() => D()), A = O(() => !!e.dataSource?.id && !!k.value && E.value.length > 0 && d.value.length > 0), j = U([]), M = U({}), N = U({}), P = U(""), F = (e, n, r) => {
1723
1878
  let i = [];
1724
1879
  for (let a of e || []) {
1725
- let e = a.is_flow_node ? `flow_node_${n}_${a.id}` : `flow_org_${n}_${a.id}`, o = !!a.is_flow_node && a.menu_flag === t.selectNode?.state && `${a.org_id ?? n}` == `${s() ?? ""}`;
1880
+ let e = a.is_flow_node ? `flow_node_${n}_${a.id}` : `flow_org_${n}_${a.id}`, o = !!a.is_flow_node && a.menu_flag === t.selectNode?.state && `${a.org_id ?? n}` == `${c() ?? ""}`;
1726
1881
  if (o && (P.value = e), a.is_flow_node && o) continue;
1727
- let c = F(a.children || [], n, r);
1882
+ let s = F(a.children || [], n, r);
1728
1883
  if (a.is_flow_node) {
1729
1884
  let t = a.page_setting_saved !== !1, o = {
1730
1885
  key: e,
@@ -1732,7 +1887,7 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1732
1887
  selectable: !1,
1733
1888
  unsaved: !t
1734
1889
  };
1735
- t || (o.disabled = !0), c.length > 0 && (o.children = c), i.push(o), l.value[e] = {
1890
+ t || (o.disabled = !0), s.length > 0 && (o.children = s), i.push(o), l.value[e] = {
1736
1891
  key: e,
1737
1892
  org_id: Number(a.org_id ?? n),
1738
1893
  org_name: r,
@@ -1743,11 +1898,11 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1743
1898
  };
1744
1899
  continue;
1745
1900
  }
1746
- c.length !== 0 && i.push({
1901
+ s.length !== 0 && i.push({
1747
1902
  key: e,
1748
1903
  title: a.name,
1749
1904
  selectable: !1,
1750
- children: c
1905
+ children: s
1751
1906
  });
1752
1907
  }
1753
1908
  return i;
@@ -1760,7 +1915,7 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1760
1915
  }
1761
1916
  }
1762
1917
  return null;
1763
- }, R = (e, t) => {
1918
+ }, L = (e, t) => {
1764
1919
  for (let n of e) {
1765
1920
  if (n.key === t) {
1766
1921
  let e = [], t = (n) => {
@@ -1769,13 +1924,13 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1769
1924
  return t(n.children || []), e;
1770
1925
  }
1771
1926
  if (n.children?.length) {
1772
- let e = R(n.children, t);
1927
+ let e = L(n.children, t);
1773
1928
  if (e !== null) return e;
1774
1929
  }
1775
1930
  }
1776
1931
  return null;
1777
- }, z = () => {
1778
- l.value = {}, P.value = "", a.value = j.value.map((e) => {
1932
+ }, R = () => {
1933
+ l.value = {}, P.value = "", i.value = j.value.map((e) => {
1779
1934
  let t = `${e.id}`.replace("org_", ""), n = `org_${t}`, r = M.value[t], i = r ? F(r, t, e.name) : [];
1780
1935
  return {
1781
1936
  key: n,
@@ -1793,65 +1948,65 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1793
1948
  [e]: !0
1794
1949
  };
1795
1950
  try {
1796
- let e = await i({ org_id: t }, "/approve/query_org_flow_tree");
1951
+ let e = await a({ org_id: t }, "/approve/query_org_flow_tree");
1797
1952
  M.value = {
1798
1953
  ...M.value,
1799
1954
  [t]: e?.data || []
1800
- }, z();
1955
+ }, R();
1801
1956
  } catch (e) {
1802
- Q.error(e?.message || "加载该组织下的流程节点失败");
1957
+ $.error(e?.message || "加载该组织下的流程节点失败");
1803
1958
  } finally {
1804
1959
  let t = { ...N.value };
1805
1960
  delete t[e], N.value = t;
1806
1961
  }
1807
1962
  }
1808
- }, H = async () => {
1963
+ }, V = async () => {
1809
1964
  n.value = !0;
1810
1965
  try {
1811
- j.value = (await i({}, "/approve/query_sync_org_list"))?.data || [], z(), await U();
1966
+ j.value = (await a({}, "/approve/query_sync_org_list"))?.data || [], R(), await H();
1812
1967
  } catch (e) {
1813
- Q.error(e?.message || "加载组织列表失败");
1968
+ $.error(e?.message || "加载组织列表失败");
1814
1969
  } finally {
1815
1970
  n.value = !1;
1816
1971
  }
1817
- }, U = async () => {
1818
- let e = `${s() ?? ""}`;
1972
+ }, H = async () => {
1973
+ let e = `${c() ?? ""}`;
1819
1974
  if (!e) return;
1820
1975
  let t = `org_${e}`;
1821
1976
  if (!j.value.some((e) => `${e.id}` === t)) return;
1822
- c.value = [...new Set([...c.value, t])], await B(t);
1977
+ s.value = [...new Set([...s.value, t])], await B(t);
1823
1978
  let n = Object.values(l.value).filter((t) => `${t.org_id}` === e && t.page_setting_saved);
1824
1979
  if (n.length > 0) {
1825
1980
  let e = n.map((e) => e.key);
1826
1981
  o.value = [...new Set([...o.value, ...e])];
1827
- let t = new Set(c.value);
1828
- for (let e of n) for (let n of I(a.value, e.key) || []) t.add(n);
1829
- c.value = [...t];
1982
+ let t = new Set(s.value);
1983
+ for (let e of n) for (let n of I(i.value, e.key) || []) t.add(n);
1984
+ s.value = [...t];
1830
1985
  }
1831
1986
  };
1832
- G(() => t.selectNode?.state, () => {
1833
- j.value.length > 0 && z();
1987
+ q(() => t.selectNode?.state, () => {
1988
+ j.value.length > 0 && R();
1834
1989
  });
1835
1990
  let W = 0;
1836
- return L(() => {
1837
- H();
1991
+ return z(() => {
1992
+ V();
1838
1993
  }), {
1839
1994
  treeLoading: n,
1840
1995
  syncing: r,
1841
- treeData: a,
1996
+ treeData: i,
1842
1997
  checkedKeys: o,
1843
- expandedKeys: c,
1998
+ expandedKeys: s,
1844
1999
  tableFieldOptions: u,
1845
- fields: f,
1846
- baseChecked: m,
1847
- baseIndeterminate: h,
1848
- toggleBase: b,
1849
- syncMode: S,
1850
- syncModeOptions: C,
2000
+ fields: d,
2001
+ baseChecked: f,
2002
+ baseIndeterminate: p,
2003
+ toggleBase: h,
2004
+ syncMode: _,
2005
+ syncModeOptions: S,
1851
2006
  syncModeTip: w,
1852
2007
  tableTypeText: T,
1853
2008
  sourceInfo: k,
1854
- targets: D,
2009
+ targets: E,
1855
2010
  canSync: A,
1856
2011
  handleCheck: (e) => {
1857
2012
  let t = Array.isArray(e) ? e : e?.checked || [];
@@ -1862,7 +2017,7 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1862
2017
  let e = [];
1863
2018
  for (let n of r) {
1864
2019
  if (!t.includes(n)) continue;
1865
- let r = R(a.value, n) || [];
2020
+ let r = L(i.value, n) || [];
1866
2021
  e.push(...r);
1867
2022
  }
1868
2023
  e.length > 0 && (o.value = [...new Set([...o.value, ...e])]);
@@ -1870,7 +2025,7 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1870
2025
  },
1871
2026
  handleExpand: (e) => {
1872
2027
  let t = Array.isArray(e) ? e : [];
1873
- c.value = t;
2028
+ s.value = t;
1874
2029
  for (let e of t) e.startsWith("org_") && B(e);
1875
2030
  },
1876
2031
  removeTarget: (e) => {
@@ -1878,38 +2033,38 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1878
2033
  },
1879
2034
  handleSync: async () => {
1880
2035
  if (!e.dataSource?.id) {
1881
- Q.warning("当前表格没有「表格标识」,请先在「基础属性」里设置后再同步");
2036
+ $.warning("当前表格没有「表格标识」,请先在「基础属性」里设置后再同步");
1882
2037
  return;
1883
2038
  }
1884
- let t = O();
2039
+ let t = D();
1885
2040
  if (!t) {
1886
- Q.warning("未识别当前流程节点,请先在左侧重新选择流程节点");
2041
+ $.warning("未识别当前流程节点,请先在左侧重新选择流程节点");
1887
2042
  return;
1888
2043
  }
1889
- if (D.value.length === 0) {
1890
- Q.warning("请选择目标流程节点");
2044
+ if (E.value.length === 0) {
2045
+ $.warning("请选择目标流程节点");
1891
2046
  return;
1892
2047
  }
1893
- let n = D.value.filter((e) => !e.page_setting_saved).map((e) => e.name);
2048
+ let n = E.value.filter((e) => !e.page_setting_saved).map((e) => e.name);
1894
2049
  if (n.length > 0) {
1895
- Q.warning(`${n.join("、")} 未保存页面配置,需保存后才能同步`);
2050
+ $.warning(`${n.join("、")} 未保存页面配置,需保存后才能同步`);
1896
2051
  return;
1897
2052
  }
1898
- if (f.value.length === 0) {
1899
- Q.warning("请选择要同步的配置项");
2053
+ if (d.value.length === 0) {
2054
+ $.warning("请选择要同步的配置项");
1900
2055
  return;
1901
2056
  }
1902
- let { data: a, fields: o, skipped: s } = v(e.dataSource, f.value, S.value);
1903
- if (s.length > 0 && Q.warning(`当前表格没有配置:${s.map((e) => d[e] || g[e] || e).join("、")},已跳过`), o.length === 0) {
1904
- Q.warning("所选配置项在当前表格中都不存在,没有可同步的内容");
2057
+ let { data: i, fields: o, skipped: s } = b(e.dataSource, d.value, _.value);
2058
+ if (s.length > 0 && $.warning(`当前表格没有配置:${s.map((e) => m[e] || v[e] || e).join("、")},已跳过`), o.length === 0) {
2059
+ $.warning("所选配置项在当前表格中都不存在,没有可同步的内容");
1905
2060
  return;
1906
2061
  }
1907
2062
  r.value = !0;
1908
2063
  try {
1909
- let n = (await i({
1910
- sync_mode: S.value,
2064
+ let n = (await a({
2065
+ sync_mode: _.value,
1911
2066
  source: t,
1912
- targets: D.value.map((e) => ({
2067
+ targets: E.value.map((e) => ({
1913
2068
  org_id: e.org_id,
1914
2069
  node_id: e.node_id,
1915
2070
  menu_flag: e.menu_flag,
@@ -1919,29 +2074,29 @@ var $e = /* @__PURE__ */ c(Xe, [["render", Qe], ["__scopeId", "data-v-2b292566"]
1919
2074
  type: e.tableType,
1920
2075
  table_id: e.dataSource.id,
1921
2076
  fields: o,
1922
- data: a
2077
+ data: i
1923
2078
  }]
1924
2079
  }, "/approve/sync_page_setting"))?.targets || [], r = n.filter((e) => (e.detail || []).some((e) => e.skipped)).map((e) => e.name);
1925
- r.length > 0 && Q.warning(`${r.join("、")} 没有该表格,已忽略`);
2080
+ r.length > 0 && $.warning(`${r.join("、")} 没有该表格,已忽略`);
1926
2081
  let s = n.length - r.length;
1927
- s > 0 && Q.success(`已同步到 ${s} 个流程节点`);
2082
+ s > 0 && $.success(`已同步到 ${s} 个流程节点`);
1928
2083
  } catch (e) {
1929
- (!e || e.success !== !1) && Q.error(e?.message || "同步失败");
2084
+ (!e || e.success !== !1) && $.error(e?.message || "同步失败");
1930
2085
  } finally {
1931
2086
  r.value = !1;
1932
2087
  }
1933
2088
  },
1934
- UNSAVED_HINT: tt
2089
+ UNSAVED_HINT: it
1935
2090
  };
1936
2091
  }
1937
- }), rt = { class: "config-sync" }, it = { class: "sync-body" }, at = { class: "sync-panel sync-panel-tree" }, ot = { class: "sync-tree-wrap" }, st = { class: "sync-panel sync-panel-field" }, ct = { class: "sync-source" }, lt = { class: "sync-section" }, ut = { class: "sync-mode-tip" }, dt = { class: "sync-section" }, ft = { class: "sync-section" }, pt = { class: "sync-targets" }, mt = { class: "sync-targets-title" }, ht = {
2092
+ }), ot = { class: "config-sync" }, st = { class: "sync-body" }, ct = { class: "sync-panel sync-panel-tree" }, lt = { class: "sync-tree-wrap" }, ut = { class: "sync-panel sync-panel-field" }, dt = { class: "sync-source" }, ft = { class: "sync-section" }, pt = { class: "sync-mode-tip" }, mt = { class: "sync-section" }, ht = { class: "sync-section" }, gt = { class: "sync-targets" }, _t = { class: "sync-targets-title" }, vt = {
1938
2093
  key: 0,
1939
2094
  class: "sync-targets-list"
1940
- }, gt = { class: "sync-actions" };
1941
- function _t(e, t, n, r, i, a) {
1942
- let o = U("exclamation-circle-outlined"), s = U("a-tooltip"), c = U("a-tree"), l = U("a-empty"), u = U("a-spin"), d = U("a-radio"), f = U("a-radio-group"), p = U("a-checkbox"), m = U("a-checkbox-group"), h = U("a-tag"), g = U("a-button");
1943
- return z(), k("div", rt, [A("div", it, [A("div", at, [t[3] ||= A("div", { class: "sync-panel-header" }, [A("span", { class: "sync-panel-title" }, "目标流程节点"), A("span", { class: "sync-panel-tip" }, " 勾选组织/流程组织即选中其下全部流程节点;未保存页面配置的节点置灰不可选 ")], -1), M(u, { spinning: e.treeLoading }, {
1944
- default: K(() => [A("div", ot, [e.treeData.length > 0 ? (z(), D(c, {
2095
+ }, yt = { class: "sync-actions" };
2096
+ function bt(e, t, n, r, i, a) {
2097
+ let o = G("exclamation-circle-outlined"), s = G("a-tooltip"), c = G("a-tree"), l = G("a-empty"), u = G("a-spin"), d = G("a-radio"), f = G("a-radio-group"), p = G("a-checkbox"), m = G("a-checkbox-group"), h = G("a-tag"), g = G("a-button");
2098
+ return V(), j("div", ot, [M("div", st, [M("div", ct, [t[3] ||= M("div", { class: "sync-panel-header" }, [M("span", { class: "sync-panel-title" }, "目标流程节点"), M("span", { class: "sync-panel-tip" }, " 勾选组织/流程组织即选中其下全部流程节点;未保存页面配置的节点置灰不可选 ")], -1), P(u, { spinning: e.treeLoading }, {
2099
+ default: J(() => [M("div", lt, [e.treeData.length > 0 ? (V(), k(c, {
1945
2100
  key: 0,
1946
2101
  checkable: "",
1947
2102
  selectable: !1,
@@ -1952,16 +2107,16 @@ function _t(e, t, n, r, i, a) {
1952
2107
  onCheck: e.handleCheck,
1953
2108
  onExpand: e.handleExpand
1954
2109
  }, {
1955
- title: K(({ title: n, dataRef: r }) => [A("span", null, W(n), 1), r.unsaved ? (z(), D(s, {
2110
+ title: J(({ title: n, dataRef: r }) => [M("span", null, K(n), 1), r.unsaved ? (V(), k(s, {
1956
2111
  key: 0,
1957
2112
  title: e.UNSAVED_HINT
1958
2113
  }, {
1959
- default: K(() => [M(o, {
2114
+ default: J(() => [P(o, {
1960
2115
  class: "sync-unsaved-icon",
1961
- onClick: t[0] ||= J(() => {}, ["stop"])
2116
+ onClick: t[0] ||= X(() => {}, ["stop"])
1962
2117
  })]),
1963
2118
  _: 1
1964
- }, 8, ["title"])) : O("", !0)]),
2119
+ }, 8, ["title"])) : A("", !0)]),
1965
2120
  _: 1
1966
2121
  }, 8, [
1967
2122
  "checked-keys",
@@ -1969,86 +2124,86 @@ function _t(e, t, n, r, i, a) {
1969
2124
  "tree-data",
1970
2125
  "onCheck",
1971
2126
  "onExpand"
1972
- ])) : e.treeLoading ? O("", !0) : (z(), D(l, {
2127
+ ])) : e.treeLoading ? A("", !0) : (V(), k(l, {
1973
2128
  key: 1,
1974
2129
  description: "没有可同步的流程节点"
1975
2130
  }))])]),
1976
2131
  _: 1
1977
- }, 8, ["spinning"])]), A("div", st, [
1978
- t[14] ||= A("div", { class: "sync-panel-header" }, [A("span", { class: "sync-panel-title" }, "同步项"), A("span", { class: "sync-panel-tip" }, "勾选需要同步过去的配置块")], -1),
1979
- A("div", ct, [
1980
- A("div", null, "来源:" + W(e.tableTypeText) + "「" + W(e.dataSource?.title || "-") + "」", 1),
1981
- A("div", null, [j(" 类型:" + W(e.tableType) + " 表格标识: ", 1), A("span", { class: F({ "sync-error-text": !e.dataSource?.id }) }, W(e.dataSource?.id || "未设置"), 3)]),
1982
- A("div", null, [t[4] ||= j(" 来源节点: ", -1), A("span", { class: F({ "sync-error-text": !e.sourceInfo }) }, W(e.sourceInfo ? `${e.sourceInfo.name}(组织 ${e.sourceInfo.org_id} / 节点 ${e.sourceInfo.node_id})` : "未识别,请先在左侧重新选择流程节点"), 3)])
2132
+ }, 8, ["spinning"])]), M("div", ut, [
2133
+ t[14] ||= M("div", { class: "sync-panel-header" }, [M("span", { class: "sync-panel-title" }, "同步项"), M("span", { class: "sync-panel-tip" }, "勾选需要同步过去的配置块")], -1),
2134
+ M("div", dt, [
2135
+ M("div", null, "来源:" + K(e.tableTypeText) + "「" + K(e.dataSource?.title || "-") + "」", 1),
2136
+ M("div", null, [N(" 类型:" + K(e.tableType) + " 表格标识: ", 1), M("span", { class: L({ "sync-error-text": !e.dataSource?.id }) }, K(e.dataSource?.id || "未设置"), 3)]),
2137
+ M("div", null, [t[4] ||= N(" 来源节点: ", -1), M("span", { class: L({ "sync-error-text": !e.sourceInfo }) }, K(e.sourceInfo ? `${e.sourceInfo.name}(组织 ${e.sourceInfo.org_id} / 节点 ${e.sourceInfo.node_id})` : "未识别,请先在左侧重新选择流程节点"), 3)])
1983
2138
  ]),
1984
- A("div", lt, [
1985
- t[7] ||= A("div", { class: "sync-section-title" }, "同步类型", -1),
1986
- M(f, {
2139
+ M("div", ft, [
2140
+ t[7] ||= M("div", { class: "sync-section-title" }, "同步类型", -1),
2141
+ P(f, {
1987
2142
  value: e.syncMode,
1988
2143
  "onUpdate:value": t[1] ||= (t) => e.syncMode = t
1989
2144
  }, {
1990
- default: K(() => [M(d, { value: "standard" }, {
1991
- default: K(() => [...t[5] ||= [j("标准同步", -1)]]),
2145
+ default: J(() => [P(d, { value: "standard" }, {
2146
+ default: J(() => [...t[5] ||= [N("标准同步", -1)]]),
1992
2147
  _: 1
1993
- }), M(d, { value: "append" }, {
1994
- default: K(() => [...t[6] ||= [j("自动追加配置", -1)]]),
2148
+ }), P(d, { value: "append" }, {
2149
+ default: J(() => [...t[6] ||= [N("自动追加配置", -1)]]),
1995
2150
  _: 1
1996
2151
  })]),
1997
2152
  _: 1
1998
2153
  }, 8, ["value"]),
1999
- A("div", ut, W(e.syncModeTip), 1)
2154
+ M("div", pt, K(e.syncModeTip), 1)
2000
2155
  ]),
2001
- A("div", dt, [
2002
- t[9] ||= A("div", { class: "sync-section-title" }, "基础配置", -1),
2003
- M(p, {
2156
+ M("div", mt, [
2157
+ t[9] ||= M("div", { class: "sync-section-title" }, "基础配置", -1),
2158
+ P(p, {
2004
2159
  checked: e.baseChecked,
2005
2160
  indeterminate: e.baseIndeterminate,
2006
2161
  "onUpdate:checked": e.toggleBase
2007
2162
  }, {
2008
- default: K(() => [...t[8] ||= [j(" 随同步写入基础配置 ", -1)]]),
2163
+ default: J(() => [...t[8] ||= [N(" 随同步写入基础配置 ", -1)]]),
2009
2164
  _: 1
2010
2165
  }, 8, [
2011
2166
  "checked",
2012
2167
  "indeterminate",
2013
2168
  "onUpdate:checked"
2014
2169
  ]),
2015
- t[10] ||= A("div", { class: "sync-mode-tip" }, "含:名称、是否为标准模型查询、列表URL、模型、查询参数", -1)
2170
+ t[10] ||= M("div", { class: "sync-mode-tip" }, "含:名称、是否为标准模型查询、列表URL、模型、查询参数", -1)
2016
2171
  ]),
2017
- A("div", ft, [t[11] ||= A("div", { class: "sync-section-title" }, "表格配置块", -1), M(m, {
2172
+ M("div", ht, [t[11] ||= M("div", { class: "sync-section-title" }, "表格配置块", -1), P(m, {
2018
2173
  value: e.fields,
2019
2174
  "onUpdate:value": t[2] ||= (t) => e.fields = t,
2020
2175
  options: e.tableFieldOptions,
2021
2176
  class: "sync-options"
2022
2177
  }, null, 8, ["value", "options"])]),
2023
- A("div", pt, [A("div", mt, "已选目标:" + W(e.targets.length) + " 个节点", 1), e.targets.length > 0 ? (z(), k("div", ht, [(z(!0), k(T, null, H(e.targets, (t) => (z(), D(h, {
2178
+ M("div", gt, [M("div", _t, "已选目标:" + K(e.targets.length) + " 个节点", 1), e.targets.length > 0 ? (V(), j("div", vt, [(V(!0), j(D, null, W(e.targets, (t) => (V(), k(h, {
2024
2179
  key: t.key,
2025
2180
  closable: "",
2026
2181
  onClose: (n) => e.removeTarget(t.key)
2027
2182
  }, {
2028
- default: K(() => [j(W(t.org_name) + " / " + W(t.name), 1)]),
2183
+ default: J(() => [N(K(t.org_name) + " / " + K(t.name), 1)]),
2029
2184
  _: 2
2030
- }, 1032, ["onClose"]))), 128))])) : O("", !0)]),
2031
- A("div", gt, [M(g, {
2185
+ }, 1032, ["onClose"]))), 128))])) : A("", !0)]),
2186
+ M("div", yt, [P(g, {
2032
2187
  type: "primary",
2033
2188
  loading: e.syncing,
2034
2189
  disabled: !e.canSync,
2035
2190
  onClick: e.handleSync
2036
2191
  }, {
2037
- default: K(() => [...t[12] ||= [j(" 同步 ", -1)]]),
2192
+ default: J(() => [...t[12] ||= [N(" 同步 ", -1)]]),
2038
2193
  _: 1
2039
2194
  }, 8, [
2040
2195
  "loading",
2041
2196
  "disabled",
2042
2197
  "onClick"
2043
- ]), t[13] ||= A("span", { class: "sync-actions-tip" }, " 同步只写入目标节点,当前节点不会被修改,同步后需在目标节点重新进入页面查看 ", -1)])
2198
+ ]), t[13] ||= M("span", { class: "sync-actions-tip" }, " 同步只写入目标节点,当前节点不会被修改,同步后需在目标节点重新进入页面查看 ", -1)])
2044
2199
  ])])]);
2045
2200
  }
2046
- var vt = /* @__PURE__ */ c(nt, [["render", _t], ["__scopeId", "data-v-79b74022"]]), yt = N({
2201
+ var xt = /* @__PURE__ */ t(at, [["render", bt], ["__scopeId", "data-v-79b74022"]]), St = F({
2047
2202
  name: "ConfirmInput",
2048
2203
  components: {
2049
- EditOutlined: Z,
2050
- CheckOutlined: Y,
2051
- CloseOutlined: ee
2204
+ EditOutlined: re,
2205
+ CheckOutlined: ee,
2206
+ CloseOutlined: ne
2052
2207
  },
2053
2208
  props: { value: {
2054
2209
  type: String,
@@ -2056,18 +2211,18 @@ var vt = /* @__PURE__ */ c(nt, [["render", _t], ["__scopeId", "data-v-79b74022"]
2056
2211
  } },
2057
2212
  emits: ["update:value", "change"],
2058
2213
  setup(e, { emit: t }) {
2059
- let n = V(!1), r = V(""), i = V(null);
2060
- return G(() => e.value, () => {
2214
+ let n = U(!1), r = U(""), i = U(null);
2215
+ return q(() => e.value, () => {
2061
2216
  n.value = !1;
2062
2217
  }), {
2063
2218
  isEditing: n,
2064
2219
  editedValue: r,
2065
2220
  inputRef: i,
2066
2221
  handleEdit: async () => {
2067
- n.value = !0, r.value = e.value, await P(), i.value?.focus();
2222
+ n.value = !0, r.value = e.value, await I(), i.value?.focus();
2068
2223
  },
2069
2224
  handleConfirm: () => {
2070
- r.value !== e.value && t("update:value", r.value), n.value = !1, P(() => {
2225
+ r.value !== e.value && t("update:value", r.value), n.value = !1, I(() => {
2071
2226
  t("change", r.value);
2072
2227
  });
2073
2228
  },
@@ -2076,11 +2231,11 @@ var vt = /* @__PURE__ */ c(nt, [["render", _t], ["__scopeId", "data-v-79b74022"]
2076
2231
  }
2077
2232
  };
2078
2233
  }
2079
- }), bt = { class: "confirm-input-wrapper" }, xt = { class: "display-span" };
2080
- function St(e, t, n, r, i, a) {
2081
- let o = U("edit-outlined"), s = U("a-input"), c = U("check-outlined"), l = U("close-outlined");
2082
- return z(), k("div", bt, [e.isEditing ? (z(), k(T, { key: 1 }, [
2083
- M(s, {
2234
+ }), Ct = { class: "confirm-input-wrapper" }, wt = { class: "display-span" };
2235
+ function Tt(e, t, n, r, i, a) {
2236
+ let o = G("edit-outlined"), s = G("a-input"), c = G("check-outlined"), l = G("close-outlined");
2237
+ return V(), j("div", Ct, [e.isEditing ? (V(), j(D, { key: 1 }, [
2238
+ P(s, {
2084
2239
  ref: "inputRef",
2085
2240
  value: e.editedValue,
2086
2241
  "onUpdate:value": t[0] ||= (t) => e.editedValue = t,
@@ -2088,31 +2243,31 @@ function St(e, t, n, r, i, a) {
2088
2243
  style: { "flex-grow": "1" },
2089
2244
  onPressEnter: e.handleConfirm
2090
2245
  }, null, 8, ["value", "onPressEnter"]),
2091
- M(c, {
2246
+ P(c, {
2092
2247
  class: "action-icon",
2093
2248
  onClick: e.handleConfirm
2094
2249
  }, null, 8, ["onClick"]),
2095
- M(l, {
2250
+ P(l, {
2096
2251
  class: "action-icon",
2097
2252
  onClick: e.handleCancel
2098
2253
  }, null, 8, ["onClick"])
2099
- ], 64)) : (z(), k(T, { key: 0 }, [A("span", xt, W(e.value || "\xA0"), 1), M(o, {
2254
+ ], 64)) : (V(), j(D, { key: 0 }, [M("span", wt, K(e.value || "\xA0"), 1), P(o, {
2100
2255
  class: "edit-icon",
2101
2256
  onClick: e.handleEdit
2102
2257
  }, null, 8, ["onClick"])], 64))]);
2103
2258
  }
2104
2259
  //#endregion
2105
2260
  //#region src/components/approval/components/approvalPageConfig/tableConfig.vue?vue&type=script&lang.ts
2106
- var Ct = N({
2261
+ var Et = F({
2107
2262
  name: "tableConfig",
2108
2263
  components: {
2109
- BaseConditions: Te,
2110
- ButtonConfig: w,
2111
- ColumnConfig: Ve,
2112
- searchConfig: $e,
2113
- configSync: vt,
2114
- confirmInput: /* @__PURE__ */ c(yt, [["render", St], ["__scopeId", "data-v-aa92417a"]]),
2115
- JsonText: C
2264
+ BaseConditions: De,
2265
+ ButtonConfig: E,
2266
+ ColumnConfig: We,
2267
+ searchConfig: nt,
2268
+ configSync: xt,
2269
+ confirmInput: /* @__PURE__ */ t(St, [["render", Tt], ["__scopeId", "data-v-aa92417a"]]),
2270
+ JsonText: T
2116
2271
  },
2117
2272
  props: {
2118
2273
  dataSource: {
@@ -2135,16 +2290,16 @@ var Ct = N({
2135
2290
  },
2136
2291
  emits: ["update:dataSource", "change_id"],
2137
2292
  setup(e, { emit: t }) {
2138
- let n = V("1"), r = V(!1), a = V(null), o = V(!1), s = V(null), c = (t) => {
2293
+ let n = U("1"), r = U(!1), i = U(null), o = U(!1), s = U(null), c = (t) => {
2139
2294
  e.dataSource.is_normal_model = t;
2140
- }, l = V([]), u = async () => {
2141
- let e = (await i({}, "sys/base_model_list", !1, { skip_error: !0 }))?.data;
2295
+ }, l = U([]), u = async () => {
2296
+ let e = (await a({}, "sys/base_model_list", !1, { skip_error: !0 }))?.data;
2142
2297
  e && e.length > 0 && (l.value = e.map((e) => ({
2143
2298
  label: `${e.name}(${e.value})`,
2144
2299
  value: e.value
2145
2300
  })));
2146
2301
  };
2147
- return L(() => {
2302
+ return z(() => {
2148
2303
  u();
2149
2304
  }), {
2150
2305
  activeKey: n,
@@ -2159,20 +2314,20 @@ var Ct = N({
2159
2314
  e.dataSource.modelType = null;
2160
2315
  },
2161
2316
  modelTypeOptions: l,
2162
- ColumnConfigDataSource: a,
2317
+ ColumnConfigDataSource: i,
2163
2318
  openColumnConfig: () => {
2164
- a.value = $(e.dataSource.columns || []), r.value = !0;
2319
+ i.value = se(e.dataSource.columns || []), r.value = !0;
2165
2320
  },
2166
2321
  confirmColumnConfig: () => {
2167
2322
  t("update:dataSource", {
2168
2323
  ...e.dataSource,
2169
- columns: a.value
2324
+ columns: i.value
2170
2325
  }), r.value = !1, e.eventBus && e.eventBus.emit("saveConfig");
2171
2326
  },
2172
2327
  showSearchConfig: o,
2173
2328
  SearchConfigDataSource: s,
2174
2329
  openSearchConfig: () => {
2175
- s.value = $(e.dataSource.search_config || []), o.value = !0;
2330
+ s.value = se(e.dataSource.search_config || []), o.value = !0;
2176
2331
  },
2177
2332
  confirmSearchConfig: () => {
2178
2333
  t("update:dataSource", {
@@ -2192,90 +2347,90 @@ var Ct = N({
2192
2347
  }
2193
2348
  };
2194
2349
  }
2195
- }), wt = /* @__PURE__ */ e({ default: () => Dt }), Tt = { key: 1 };
2196
- function Et(e, t, n, r, i, a) {
2197
- let o = U("a-button"), s = U("a-space"), c = U("confirm-input"), l = U("a-form-item"), u = U("a-input"), d = U("a-switch"), f = U("a-select"), p = U("json-text"), m = U("a-form"), h = U("a-tab-pane"), g = U("BaseConditions"), _ = U("ButtonConfig"), v = U("config-sync"), y = U("a-tabs"), b = U("ColumnConfig"), x = U("a-modal"), S = U("search-config");
2198
- return z(), k(T, null, [
2199
- M(y, {
2350
+ }), Dt = /* @__PURE__ */ e({ default: () => At }), Ot = { key: 1 };
2351
+ function kt(e, t, n, r, i, a) {
2352
+ let o = G("a-button"), s = G("a-space"), c = G("confirm-input"), l = G("a-form-item"), u = G("a-input"), d = G("a-switch"), f = G("a-select"), p = G("json-text"), m = G("a-form"), h = G("a-tab-pane"), g = G("BaseConditions"), _ = G("ButtonConfig"), v = G("config-sync"), y = G("a-tabs"), b = G("ColumnConfig"), x = G("a-modal"), S = G("search-config");
2353
+ return V(), j(D, null, [
2354
+ P(y, {
2200
2355
  activeKey: e.activeKey,
2201
2356
  "onUpdate:activeKey": t[10] ||= (t) => e.activeKey = t
2202
2357
  }, {
2203
- rightExtra: K(() => [M(s, { size: 20 }, {
2204
- default: K(() => [M(o, {
2358
+ rightExtra: J(() => [P(s, { size: 20 }, {
2359
+ default: J(() => [P(o, {
2205
2360
  type: "primary",
2206
2361
  onClick: e.openColumnConfig
2207
2362
  }, {
2208
- default: K(() => [...t[15] ||= [j(" 列配置 ", -1)]]),
2363
+ default: J(() => [...t[15] ||= [N(" 列配置 ", -1)]]),
2209
2364
  _: 1
2210
- }, 8, ["onClick"]), M(o, {
2365
+ }, 8, ["onClick"]), P(o, {
2211
2366
  type: "primary",
2212
2367
  onClick: e.openSearchConfig
2213
2368
  }, {
2214
- default: K(() => [...t[16] ||= [j(" 查询配置 ", -1)]]),
2369
+ default: J(() => [...t[16] ||= [N(" 查询配置 ", -1)]]),
2215
2370
  _: 1
2216
2371
  }, 8, ["onClick"])]),
2217
2372
  _: 1
2218
2373
  })]),
2219
- default: K(() => [
2220
- M(h, {
2374
+ default: J(() => [
2375
+ P(h, {
2221
2376
  key: "1",
2222
2377
  tab: "基础属性"
2223
2378
  }, {
2224
- default: K(() => [M(m, { model: e.dataSource }, {
2225
- default: K(() => [
2226
- M(l, { label: "表格标识" }, {
2227
- default: K(() => [M(c, {
2379
+ default: J(() => [P(m, { model: e.dataSource }, {
2380
+ default: J(() => [
2381
+ P(l, { label: "表格标识" }, {
2382
+ default: J(() => [P(c, {
2228
2383
  value: e.dataSource.id,
2229
2384
  "onUpdate:value": e.handleChangeId
2230
2385
  }, null, 8, ["value", "onUpdate:value"])]),
2231
2386
  _: 1
2232
2387
  }),
2233
- M(l, { label: "名称" }, {
2234
- default: K(() => [M(u, {
2388
+ P(l, { label: "名称" }, {
2389
+ default: J(() => [P(u, {
2235
2390
  value: e.dataSource.title,
2236
2391
  "onUpdate:value": t[0] ||= (t) => e.dataSource.title = t
2237
2392
  }, null, 8, ["value"])]),
2238
2393
  _: 1
2239
2394
  }),
2240
- M(l, { label: "组名" }, {
2241
- default: K(() => [M(u, {
2395
+ P(l, { label: "组名" }, {
2396
+ default: J(() => [P(u, {
2242
2397
  value: e.dataSource.group_title,
2243
2398
  "onUpdate:value": t[1] ||= (t) => e.dataSource.group_title = t
2244
2399
  }, null, 8, ["value"])]),
2245
2400
  _: 1
2246
2401
  }),
2247
- M(l, { label: "是否隐藏" }, {
2248
- default: K(() => [M(d, {
2402
+ P(l, { label: "是否隐藏" }, {
2403
+ default: J(() => [P(d, {
2249
2404
  checked: e.dataSource.is_hidden,
2250
2405
  "onUpdate:checked": t[2] ||= (t) => e.dataSource.is_hidden = t
2251
2406
  }, null, 8, ["checked"])]),
2252
2407
  _: 1
2253
2408
  }),
2254
- M(l, { label: "是否为标准模型查询" }, {
2255
- default: K(() => [M(d, {
2409
+ P(l, { label: "是否为标准模型查询" }, {
2410
+ default: J(() => [P(d, {
2256
2411
  checked: e.dataSource.is_normal_model,
2257
2412
  "onUpdate:checked": t[3] ||= (t) => e.dataSource.is_normal_model = t
2258
2413
  }, null, 8, ["checked"])]),
2259
2414
  _: 1
2260
2415
  }),
2261
- M(l, { label: "是否为多选" }, {
2262
- default: K(() => [M(d, {
2416
+ P(l, { label: "是否为多选" }, {
2417
+ default: J(() => [P(d, {
2263
2418
  checked: e.dataSource.rowSelectionType || "checkbox",
2264
2419
  "onUpdate:checked": t[4] ||= (t) => e.dataSource.rowSelectionType = t,
2265
2420
  checkedValue: "checkbox",
2266
2421
  "un-checked-value": "radio"
2267
2422
  }, {
2268
- checkedChildren: K(() => [...t[17] ||= [j("多选", -1)]]),
2269
- unCheckedChildren: K(() => [...t[18] ||= [j("单选", -1)]]),
2423
+ checkedChildren: J(() => [...t[17] ||= [N("多选", -1)]]),
2424
+ unCheckedChildren: J(() => [...t[18] ||= [N("单选", -1)]]),
2270
2425
  _: 1
2271
2426
  }, 8, ["checked"])]),
2272
2427
  _: 1
2273
2428
  }),
2274
- e.dataSource.is_normal_model ? (z(), D(l, {
2429
+ e.dataSource.is_normal_model ? (V(), k(l, {
2275
2430
  key: 0,
2276
2431
  label: "模型"
2277
2432
  }, {
2278
- default: K(() => [M(f, {
2433
+ default: J(() => [P(f, {
2279
2434
  value: e.dataSource.modelType,
2280
2435
  onChange: e.handleModelTypeChange,
2281
2436
  "show-search": "",
@@ -2288,9 +2443,9 @@ function Et(e, t, n, r, i, a) {
2288
2443
  "filter-option"
2289
2444
  ])]),
2290
2445
  _: 1
2291
- })) : O("", !0),
2292
- M(l, { label: "列表URL" }, {
2293
- default: K(() => [e.dataSource.is_normal_model ? (z(), k("span", Tt, W(e.dataSource.list_url), 1)) : (z(), D(u, {
2446
+ })) : A("", !0),
2447
+ P(l, { label: "列表URL" }, {
2448
+ default: J(() => [e.dataSource.is_normal_model ? (V(), j("span", Ot, K(e.dataSource.list_url), 1)) : (V(), k(u, {
2294
2449
  key: 0,
2295
2450
  value: e.dataSource.list_url,
2296
2451
  "onUpdate:value": t[5] ||= (t) => e.dataSource.list_url = t,
@@ -2298,14 +2453,14 @@ function Et(e, t, n, r, i, a) {
2298
2453
  }, null, 8, ["value", "onChange"]))]),
2299
2454
  _: 1
2300
2455
  }),
2301
- M(l, { label: "查询参数" }, {
2302
- default: K(() => [M(l, { label: "我发起的审批" }, {
2303
- default: K(() => [M(d, {
2456
+ P(l, { label: "查询参数" }, {
2457
+ default: J(() => [P(l, { label: "我发起的审批" }, {
2458
+ default: J(() => [P(d, {
2304
2459
  checked: e.dataSource.query_params?.is_my_send,
2305
2460
  onChange: e.isMySendChange
2306
2461
  }, null, 8, ["checked", "onChange"])]),
2307
2462
  _: 1
2308
- }), M(p, {
2463
+ }), P(p, {
2309
2464
  value: e.dataSource.query_params,
2310
2465
  "onUpdate:value": t[6] ||= (t) => e.dataSource.query_params = t,
2311
2466
  rows: 3
@@ -2317,11 +2472,11 @@ function Et(e, t, n, r, i, a) {
2317
2472
  }, 8, ["model"])]),
2318
2473
  _: 1
2319
2474
  }),
2320
- M(h, {
2475
+ P(h, {
2321
2476
  key: "3",
2322
2477
  tab: "基础查询条件"
2323
2478
  }, {
2324
- default: K(() => [M(g, {
2479
+ default: J(() => [P(g, {
2325
2480
  "model-type": e.dataSource.modelType,
2326
2481
  "data-source": e.dataSource.base_conditions,
2327
2482
  "onUpdate:dataSource": t[7] ||= (t) => e.dataSource.base_conditions = t,
@@ -2333,41 +2488,41 @@ function Et(e, t, n, r, i, a) {
2333
2488
  ])]),
2334
2489
  _: 1
2335
2490
  }),
2336
- M(h, {
2491
+ P(h, {
2337
2492
  key: "5",
2338
2493
  tab: "底部按钮配置"
2339
2494
  }, {
2340
- default: K(() => [M(_, {
2495
+ default: J(() => [P(_, {
2341
2496
  "data-source": e.dataSource.actions,
2342
2497
  "onUpdate:dataSource": t[8] ||= (t) => e.dataSource.actions = t
2343
2498
  }, null, 8, ["data-source"])]),
2344
2499
  _: 1
2345
2500
  }),
2346
- M(h, {
2501
+ P(h, {
2347
2502
  key: "6",
2348
2503
  tab: "行按钮配置"
2349
2504
  }, {
2350
- default: K(() => [M(_, {
2505
+ default: J(() => [P(_, {
2351
2506
  "data-source": e.dataSource.row_actions,
2352
2507
  "onUpdate:dataSource": t[9] ||= (t) => e.dataSource.row_actions = t
2353
2508
  }, null, 8, ["data-source"])]),
2354
2509
  _: 1
2355
2510
  }),
2356
- M(h, {
2511
+ P(h, {
2357
2512
  key: "7",
2358
2513
  tab: "配置同步"
2359
2514
  }, {
2360
- default: K(() => [e.activeKey === "7" ? (z(), D(v, {
2515
+ default: J(() => [e.activeKey === "7" ? (V(), k(v, {
2361
2516
  key: 0,
2362
2517
  "data-source": e.dataSource,
2363
2518
  "table-type": e.tableType
2364
- }, null, 8, ["data-source", "table-type"])) : O("", !0)]),
2519
+ }, null, 8, ["data-source", "table-type"])) : A("", !0)]),
2365
2520
  _: 1
2366
2521
  })
2367
2522
  ]),
2368
2523
  _: 1
2369
2524
  }, 8, ["activeKey"]),
2370
- M(x, {
2525
+ P(x, {
2371
2526
  visible: e.showColumnConfig,
2372
2527
  "onUpdate:visible": t[12] ||= (t) => e.showColumnConfig = t,
2373
2528
  title: "列配置",
@@ -2376,15 +2531,15 @@ function Et(e, t, n, r, i, a) {
2376
2531
  destroyOnClose: !0,
2377
2532
  onOk: e.confirmColumnConfig
2378
2533
  }, {
2379
- default: K(() => [e.showColumnConfig ? (z(), D(b, {
2534
+ default: J(() => [e.showColumnConfig ? (V(), k(b, {
2380
2535
  key: 0,
2381
2536
  "data-source": e.ColumnConfigDataSource,
2382
2537
  "onUpdate:dataSource": t[11] ||= (t) => e.ColumnConfigDataSource = t,
2383
2538
  "model-type": e.dataSource.modelType
2384
- }, null, 8, ["data-source", "model-type"])) : O("", !0)]),
2539
+ }, null, 8, ["data-source", "model-type"])) : A("", !0)]),
2385
2540
  _: 1
2386
2541
  }, 8, ["visible", "onOk"]),
2387
- M(x, {
2542
+ P(x, {
2388
2543
  visible: e.showSearchConfig,
2389
2544
  "onUpdate:visible": t[14] ||= (t) => e.showSearchConfig = t,
2390
2545
  title: "查询配置",
@@ -2393,16 +2548,16 @@ function Et(e, t, n, r, i, a) {
2393
2548
  destroyOnClose: !0,
2394
2549
  onOk: e.confirmSearchConfig
2395
2550
  }, {
2396
- default: K(() => [e.showSearchConfig ? (z(), D(S, {
2551
+ default: J(() => [e.showSearchConfig ? (V(), k(S, {
2397
2552
  key: 0,
2398
2553
  record: e.SearchConfigDataSource,
2399
2554
  "onUpdate:record": t[13] ||= (t) => e.SearchConfigDataSource = t,
2400
2555
  "model-type": e.dataSource.modelType
2401
- }, null, 8, ["record", "model-type"])) : O("", !0)]),
2556
+ }, null, 8, ["record", "model-type"])) : A("", !0)]),
2402
2557
  _: 1
2403
2558
  }, 8, ["visible", "onOk"])
2404
2559
  ], 64);
2405
2560
  }
2406
- var Dt = /* @__PURE__ */ c(Ct, [["render", Et], ["__scopeId", "data-v-dad950db"]]);
2561
+ var At = /* @__PURE__ */ t(Et, [["render", kt], ["__scopeId", "data-v-dad950db"]]);
2407
2562
  //#endregion
2408
- export { wt as n, Te as r, Dt as t };
2563
+ export { Dt as n, De as r, At as t };