liyu-pc-base 1.0.1213 → 1.0.1223

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.
@@ -1,11 +1,11 @@
1
1
  import { O as e, T as t, c as n, z as r } from "./init-plugin-CERVEi6b.js";
2
2
  import { getApiData as i } from "./api/api-model.js";
3
- import { A as a, C as o, D as s, E as c, O as l, S as u, T as d, b as f, k as p, w as m, x as h, y as g } from "./components-BKIrVR35.js";
3
+ import { A as a, C as o, D as s, E as c, O as l, S as u, T as d, b as f, j as p, k as m, w as h, x as g } from "./components-D7myD060.js";
4
4
  import { t as _ } from "./_plugin-vue_export-helper-B3ysoDQm.js";
5
- import { m as v, p as y } from "./tablePro-WP1Uw_b4.js";
6
- import { i as b, l as ee } from "./TinymceEditor-x6oH3OLc.js";
5
+ import { m as v, p as y } from "./tablePro-Bd6rublT.js";
6
+ import { d as b, i as ee } from "./TinymceEditor-CowTAt9s.js";
7
7
  import { $ as te, L as x, Q as S, X as C, Z as w, at as T, it as E } from "./function-NDm_369M.js";
8
- import { t as D } from "./RemoteSelectPro-0DhaMGFT.js";
8
+ import { t as D } from "./RemoteSelectPro-Ba7o82t8.js";
9
9
  import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as ne, createTextVNode as P, createVNode as F, defineComponent as I, nextTick as re, onBeforeUnmount as L, onMounted as ie, openBlock as R, ref as z, resolveComponent as B, toDisplayString as V, unref as H, vShow as U, watch as W, withCtx as G, withDirectives as K } from "vue";
10
10
  import { message as q } from "ant-design-vue";
11
11
  import { useResizeObserver as ae } from "@vueuse/core";
@@ -222,14 +222,14 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
222
222
  __name: "StepDisplayConfig",
223
223
  props: { model: {} },
224
224
  setup(e) {
225
- let t = e, n = k(() => t.model), r = p, i = l, a = k(() => {
225
+ let t = e, n = k(() => t.model), r = a, i = m, o = k(() => {
226
226
  let e = n.value.enable_view_types;
227
227
  return Array.isArray(e) && e.length ? r.filter((t) => e.includes(t.value)) : r;
228
228
  });
229
229
  return W(() => n.value.enable_view_types, (e) => {
230
230
  Array.isArray(e) && e.length && n.value.default_view_type && !e.includes(n.value.default_view_type) && (n.value.default_view_type = void 0);
231
231
  }), (e, t) => {
232
- let o = B("a-select"), s = B("a-form-item"), c = B("a-col"), l = B("a-switch"), u = B("a-input-number"), d = B("a-row");
232
+ let a = B("a-select"), s = B("a-form-item"), c = B("a-col"), l = B("a-switch"), u = B("a-input-number"), d = B("a-row");
233
233
  return R(), A(d, { gutter: 16 }, {
234
234
  default: G(() => [
235
235
  F(c, { span: 12 }, {
@@ -238,7 +238,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
238
238
  name: "enable_view_types",
239
239
  extra: "不选 = 全部启用"
240
240
  }, {
241
- default: G(() => [F(o, {
241
+ default: G(() => [F(a, {
242
242
  value: n.value.enable_view_types,
243
243
  "onUpdate:value": t[0] ||= (e) => n.value.enable_view_types = e,
244
244
  mode: "multiple",
@@ -256,12 +256,12 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
256
256
  name: "default_view_type",
257
257
  extra: "仅能在已启用的视图类型中选择;未启用任何类型时不限"
258
258
  }, {
259
- default: G(() => [F(o, {
259
+ default: G(() => [F(a, {
260
260
  value: n.value.default_view_type,
261
261
  "onUpdate:value": t[1] ||= (e) => n.value.default_view_type = e,
262
262
  "allow-clear": "",
263
263
  placeholder: "默认标准视图",
264
- options: a.value
264
+ options: o.value
265
265
  }, null, 8, ["value", "options"])]),
266
266
  _: 1
267
267
  })]),
@@ -273,7 +273,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
273
273
  name: "view_display_type",
274
274
  extra: "顶部标签:顶部按钮组切换视图类型;平铺:三类型视图混排,无类型切换"
275
275
  }, {
276
- default: G(() => [F(o, {
276
+ default: G(() => [F(a, {
277
277
  value: n.value.view_display_type,
278
278
  "onUpdate:value": t[2] ||= (e) => n.value.view_display_type = e,
279
279
  "allow-clear": "",
@@ -317,7 +317,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
317
317
  label: "每页条数选项",
318
318
  name: "page_size_options"
319
319
  }, {
320
- default: G(() => [F(o, {
320
+ default: G(() => [F(a, {
321
321
  value: n.value.page_size_options,
322
322
  "onUpdate:value": t[5] ||= (e) => n.value.page_size_options = e,
323
323
  mode: "tags",
@@ -349,8 +349,8 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
349
349
  formType: {}
350
350
  },
351
351
  emits: ["probeStart"],
352
- setup(n, { expose: s, emit: l }) {
353
- let p = n, _ = l, b = k(() => p.model), ee = r().currentOrg, te = (e, t) => e.filter((e) => e?.[t]).map((e) => ({
352
+ setup(n, { expose: a, emit: l }) {
353
+ let m = n, _ = l, b = k(() => m.model), ee = r().currentOrg, te = (e, t) => e.filter((e) => e?.[t]).map((e) => ({
354
354
  value: e[t],
355
355
  label: `${e.name || e[t]}(${e[t]})`
356
356
  })), x = k(() => te(t(), "cellComponent")), S = k(() => te(e(), "cellSummaryComponent")), C = z([]), w = z(!1), T = z([]), E = z(null), D = z(320), ne = () => {
@@ -362,17 +362,17 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
362
362
  t > 0 && (D.value = t);
363
363
  });
364
364
  let I = z(!1);
365
- W(() => p.active, (e) => {
365
+ W(() => m.active, (e) => {
366
366
  e && (I.value = !0, re(ne), C.value.length || Z());
367
367
  });
368
368
  let L = z(!1), U = (e) => {
369
- if (L.value || p.formType === "edit" || e.some((e) => !!e.is_primary_key)) return;
369
+ if (L.value || m.formType === "edit" || e.some((e) => !!e.is_primary_key)) return;
370
370
  let t = e.find((e) => String(e.data_index || "").trim().toLowerCase() === "id");
371
371
  t && (t.is_primary_key = !0, L.value = !0);
372
372
  }, K = (e, t) => {
373
373
  L.value = !0, e.is_primary_key = !!t?.target?.checked;
374
374
  }, Y = (e, t, n) => {
375
- let r = c[t] || "str", i = ["int", "float"].includes(r) && e !== "id";
375
+ let r = s[t] || "str", i = ["int", "float"].includes(r) && e !== "id";
376
376
  return {
377
377
  data_index: e,
378
378
  title: e,
@@ -393,7 +393,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
393
393
  default_sort_order: null,
394
394
  class_name: r,
395
395
  sql_type: t || "",
396
- cell_component: i ? m : d[t] || "",
396
+ cell_component: i ? d : c[t] || "",
397
397
  cell_component_params: i ? { pattern: y } : null,
398
398
  cell_summary_component: "",
399
399
  cell_summary_component_params: null,
@@ -412,7 +412,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
412
412
  org_id: ee?.id,
413
413
  data_source_id: b.value.data_source_id,
414
414
  sql: b.value.sql
415
- }, `${p.record.model_app}/probe_columns`))?.columns || [];
415
+ }, `${m.record.model_app}/probe_columns`))?.columns || [];
416
416
  if (!e.length) {
417
417
  q.warning("探测到 0 列,请检查 SQL 输出");
418
418
  return;
@@ -422,7 +422,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
422
422
  if (r.has(e.name)) return;
423
423
  r.add(e.name);
424
424
  let a = t.get(e.name);
425
- a ? (a.class_name = c[e.type] || a.class_name || "str", a.sql_type = e.type || a.sql_type || "", ["int", "float"].includes(a.class_name) && !a.cell_component && String(a.data_index || "").trim().toLowerCase() !== "id" && (a.cell_component = m, a.cell_component_params = a.cell_component_params || { pattern: "#,##0.00" }), n.push(a)) : n.push(Y(e.name, e.type || "", i + 1));
425
+ a ? (a.class_name = s[e.type] || a.class_name || "str", a.sql_type = e.type || a.sql_type || "", ["int", "float"].includes(a.class_name) && !a.cell_component && String(a.data_index || "").trim().toLowerCase() !== "id" && (a.cell_component = d, a.cell_component_params = a.cell_component_params || { pattern: "#,##0.00" }), n.push(a)) : n.push(Y(e.name, e.type || "", i + 1));
426
426
  }), C.value.forEach((e) => {
427
427
  r.has(e.data_index) || n.push(e);
428
428
  }), U(n), C.value = n;
@@ -432,15 +432,15 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
432
432
  }, se = (e) => {
433
433
  e.is_default_sort && (e.default_sort_type = e.default_sort_type || "asc", e.default_sort_order = e.default_sort_order || 1);
434
434
  }, ce = async () => {
435
- if (!(p.formType !== "edit" || p.record?.id == null)) {
435
+ if (!(m.formType !== "edit" || m.record?.id == null)) {
436
436
  w.value = !0;
437
437
  try {
438
438
  C.value = oe(await i({
439
439
  org_id: ee?.id,
440
440
  filter_fields: ["view_id"],
441
- view_id: p.record.id,
441
+ view_id: m.record.id,
442
442
  is_pagination: !1
443
- }, `${p.record.model_app}/query_db_view_column_list`)).map((e) => ({
443
+ }, `${m.record.model_app}/query_db_view_column_list`)).map((e) => ({
444
444
  ...e,
445
445
  fixed: e.fixed || "",
446
446
  auto_height: !!e.auto_height,
@@ -470,7 +470,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
470
470
  pattern: n
471
471
  };
472
472
  }, Ee = z(!1);
473
- return s({
473
+ return a({
474
474
  buildColumnsPayload: () => C.value.map((e) => ({
475
475
  data_index: e.data_index,
476
476
  column_order: e.column_order,
@@ -506,9 +506,9 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
506
506
  T.value = [];
507
507
  }
508
508
  }), ie(() => {
509
- p.formType === "edit" && ce();
509
+ m.formType === "edit" && ce();
510
510
  }), (e, t) => {
511
- let n = B("a-button"), r = B("a-input-number"), i = B("a-checkbox"), s = B("a-input"), c = B("a-select"), l = B("a-auto-complete"), d = B("a-radio-button"), p = B("a-radio-group"), m = B("a-switch"), _ = B("a-popconfirm"), y = B("s-table");
511
+ let n = B("a-button"), r = B("a-input-number"), i = B("a-checkbox"), a = B("a-input"), s = B("a-select"), c = B("a-auto-complete"), l = B("a-radio-button"), d = B("a-radio-group"), m = B("a-switch"), _ = B("a-popconfirm"), y = B("s-table");
512
512
  return R(), M(O, null, [
513
513
  N("div", ue, [
514
514
  F(n, {
@@ -542,44 +542,44 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
542
542
  ref: E,
543
543
  class: "col-table-wrapper"
544
544
  }, [F(y, {
545
- columns: H(u),
545
+ columns: H(o),
546
546
  "data-source": C.value,
547
547
  "row-key": "data_index",
548
548
  size: "small",
549
549
  rowHeight: H(36),
550
550
  height: D.value,
551
- scroll: { x: H(o) },
551
+ scroll: { x: H(h) },
552
552
  pagination: !1,
553
553
  "range-selection": !1,
554
554
  loading: w.value
555
555
  }, {
556
- bodyCell: G(({ column: e, recordIndexs: a }) => [e.key === "column_order" ? (R(), A(r, {
556
+ bodyCell: G(({ column: e, recordIndexs: o }) => [e.key === "column_order" ? (R(), A(r, {
557
557
  key: 0,
558
- value: C.value[a[0]].column_order,
559
- "onUpdate:value": (e) => C.value[a[0]].column_order = e,
558
+ value: C.value[o[0]].column_order,
559
+ "onUpdate:value": (e) => C.value[o[0]].column_order = e,
560
560
  size: "small",
561
561
  style: { width: "50px" },
562
562
  min: 0
563
563
  }, null, 8, ["value", "onUpdate:value"])) : e.key === "is_primary_key" ? (R(), A(i, {
564
564
  key: 1,
565
- checked: !!C.value[a[0]].is_primary_key,
566
- onChange: (e) => K(C.value[a[0]], e)
567
- }, null, 8, ["checked", "onChange"])) : e.key === "title" ? (R(), A(s, {
565
+ checked: !!C.value[o[0]].is_primary_key,
566
+ onChange: (e) => K(C.value[o[0]], e)
567
+ }, null, 8, ["checked", "onChange"])) : e.key === "title" ? (R(), A(a, {
568
568
  key: 2,
569
- value: C.value[a[0]].title,
570
- "onUpdate:value": (e) => C.value[a[0]].title = e,
569
+ value: C.value[o[0]].title,
570
+ "onUpdate:value": (e) => C.value[o[0]].title = e,
571
571
  size: "small",
572
572
  "allow-clear": ""
573
- }, null, 8, ["value", "onUpdate:value"])) : e.key === "query_title" ? (R(), A(s, {
573
+ }, null, 8, ["value", "onUpdate:value"])) : e.key === "query_title" ? (R(), A(a, {
574
574
  key: 3,
575
- value: C.value[a[0]].query_title,
576
- "onUpdate:value": (e) => C.value[a[0]].query_title = e,
575
+ value: C.value[o[0]].query_title,
576
+ "onUpdate:value": (e) => C.value[o[0]].query_title = e,
577
577
  size: "small",
578
578
  "allow-clear": ""
579
- }, null, 8, ["value", "onUpdate:value"])) : e.key === "cell_component" ? (R(), A(c, {
579
+ }, null, 8, ["value", "onUpdate:value"])) : e.key === "cell_component" ? (R(), A(s, {
580
580
  key: 4,
581
- value: C.value[a[0]].cell_component,
582
- "onUpdate:value": (e) => C.value[a[0]].cell_component = e,
581
+ value: C.value[o[0]].cell_component,
582
+ "onUpdate:value": (e) => C.value[o[0]].cell_component = e,
583
583
  size: "small",
584
584
  style: { width: "210px" },
585
585
  "allow-clear": "",
@@ -591,10 +591,10 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
591
591
  "value",
592
592
  "onUpdate:value",
593
593
  "options"
594
- ])) : e.key === "cell_summary_component" ? (R(), M(O, { key: 5 }, [C.value[a[0]].summary ? (R(), A(c, {
594
+ ])) : e.key === "cell_summary_component" ? (R(), M(O, { key: 5 }, [C.value[o[0]].summary ? (R(), A(s, {
595
595
  key: 0,
596
- value: C.value[a[0]].cell_summary_component,
597
- "onUpdate:value": (e) => C.value[a[0]].cell_summary_component = e,
596
+ value: C.value[o[0]].cell_summary_component,
597
+ "onUpdate:value": (e) => C.value[o[0]].cell_summary_component = e,
598
598
  size: "small",
599
599
  style: { width: "200px" },
600
600
  "allow-clear": "",
@@ -606,15 +606,15 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
606
606
  "value",
607
607
  "onUpdate:value",
608
608
  "options"
609
- ])) : (R(), M("span", de, "-"))], 64)) : e.key === "cell_params" ? (R(), M(O, { key: 6 }, [C.value[a[0]].cell_component === H("common_number") ? (R(), A(l, {
609
+ ])) : (R(), M("span", de, "-"))], 64)) : e.key === "cell_params" ? (R(), M(O, { key: 6 }, [C.value[o[0]].cell_component === H("common_number") ? (R(), A(c, {
610
610
  key: 0,
611
- value: C.value[a[0]].cell_component_params?.pattern || "",
611
+ value: C.value[o[0]].cell_component_params?.pattern || "",
612
612
  size: "small",
613
613
  style: { width: "100%" },
614
614
  options: H(v),
615
615
  placeholder: "#,##0.00",
616
616
  "filter-option": (e, t) => String(t.value).includes(e),
617
- onChange: (e) => Te(C.value[a[0]], "cell_component_params", e)
617
+ onChange: (e) => Te(C.value[o[0]], "cell_component_params", e)
618
618
  }, null, 8, [
619
619
  "value",
620
620
  "options",
@@ -624,34 +624,34 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
624
624
  key: 1,
625
625
  size: "small",
626
626
  style: { padding: "0 4px" },
627
- onClick: (e) => $(C.value[a[0]], "cell_component_params")
627
+ onClick: (e) => $(C.value[o[0]], "cell_component_params")
628
628
  }, {
629
- default: G(() => [P(V(we(C.value[a[0]].cell_component_params) ? "已配" : "配置"), 1)]),
629
+ default: G(() => [P(V(we(C.value[o[0]].cell_component_params) ? "已配" : "配置"), 1)]),
630
630
  _: 2
631
631
  }, 1032, ["onClick"]))], 64)) : e.key === "checked" ? (R(), A(i, {
632
632
  key: 7,
633
- checked: C.value[a[0]].checked,
634
- "onUpdate:checked": (e) => C.value[a[0]].checked = e
633
+ checked: C.value[o[0]].checked,
634
+ "onUpdate:checked": (e) => C.value[o[0]].checked = e
635
635
  }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "resizable" ? (R(), A(i, {
636
636
  key: 8,
637
- checked: C.value[a[0]].resizable,
638
- "onUpdate:checked": (e) => C.value[a[0]].resizable = e
639
- }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "fixed" ? (R(), A(p, {
637
+ checked: C.value[o[0]].resizable,
638
+ "onUpdate:checked": (e) => C.value[o[0]].resizable = e
639
+ }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "fixed" ? (R(), A(d, {
640
640
  key: 9,
641
- value: C.value[a[0]].fixed,
642
- "onUpdate:value": (e) => C.value[a[0]].fixed = e,
641
+ value: C.value[o[0]].fixed,
642
+ "onUpdate:value": (e) => C.value[o[0]].fixed = e,
643
643
  size: "small"
644
644
  }, {
645
645
  default: G(() => [
646
- F(d, { value: "left" }, {
646
+ F(l, { value: "left" }, {
647
647
  default: G(() => t[8] ||= [P("左")]),
648
648
  _: 1
649
649
  }),
650
- F(d, { value: "" }, {
650
+ F(l, { value: "" }, {
651
651
  default: G(() => t[9] ||= [P("不固定")]),
652
652
  _: 1
653
653
  }),
654
- F(d, { value: "right" }, {
654
+ F(l, { value: "right" }, {
655
655
  default: G(() => t[10] ||= [P("右")]),
656
656
  _: 1
657
657
  })
@@ -659,37 +659,37 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
659
659
  _: 2
660
660
  }, 1032, ["value", "onUpdate:value"])) : e.key === "auto_height" ? (R(), A(m, {
661
661
  key: 10,
662
- checked: C.value[a[0]].auto_height,
663
- "onUpdate:checked": (e) => C.value[a[0]].auto_height = e,
662
+ checked: C.value[o[0]].auto_height,
663
+ "onUpdate:checked": (e) => C.value[o[0]].auto_height = e,
664
664
  "checked-children": "自动",
665
665
  "un-checked-children": "固定"
666
666
  }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "col_width" ? (R(), M("div", fe, [F(m, {
667
- checked: C.value[a[0]].auto_width,
668
- "onUpdate:checked": (e) => C.value[a[0]].auto_width = e,
667
+ checked: C.value[o[0]].auto_width,
668
+ "onUpdate:checked": (e) => C.value[o[0]].auto_width = e,
669
669
  "checked-children": "自动",
670
670
  "un-checked-children": "固定"
671
671
  }, null, 8, ["checked", "onUpdate:checked"]), F(r, {
672
- value: C.value[a[0]].width,
673
- "onUpdate:value": (e) => C.value[a[0]].width = e,
672
+ value: C.value[o[0]].width,
673
+ "onUpdate:value": (e) => C.value[o[0]].width = e,
674
674
  size: "small",
675
675
  style: { width: "66px" },
676
676
  min: 50,
677
677
  placeholder: "px"
678
678
  }, null, 8, ["value", "onUpdate:value"])])) : e.key === "ellipsis" ? (R(), A(m, {
679
679
  key: 12,
680
- checked: C.value[a[0]].ellipsis,
681
- "onUpdate:checked": (e) => C.value[a[0]].ellipsis = e,
680
+ checked: C.value[o[0]].ellipsis,
681
+ "onUpdate:checked": (e) => C.value[o[0]].ellipsis = e,
682
682
  "checked-children": "开启",
683
683
  "un-checked-children": "关闭"
684
- }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "cell_summary_params" ? (R(), M(O, { key: 13 }, [C.value[a[0]].summary ? (R(), M(O, { key: 0 }, [C.value[a[0]].cell_summary_component === H("common_number") ? (R(), A(l, {
684
+ }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "cell_summary_params" ? (R(), M(O, { key: 13 }, [C.value[o[0]].summary ? (R(), M(O, { key: 0 }, [C.value[o[0]].cell_summary_component === H("common_number") ? (R(), A(c, {
685
685
  key: 0,
686
- value: C.value[a[0]].cell_summary_component_params?.pattern || "",
686
+ value: C.value[o[0]].cell_summary_component_params?.pattern || "",
687
687
  size: "small",
688
688
  style: { width: "100%" },
689
689
  options: H(v),
690
690
  placeholder: "#,##0.00",
691
691
  "filter-option": (e, t) => String(t.value).includes(e),
692
- onChange: (e) => Te(C.value[a[0]], "cell_summary_component_params", e)
692
+ onChange: (e) => Te(C.value[o[0]], "cell_summary_component_params", e)
693
693
  }, null, 8, [
694
694
  "value",
695
695
  "options",
@@ -699,29 +699,29 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
699
699
  key: 1,
700
700
  size: "small",
701
701
  style: { padding: "0 4px" },
702
- onClick: (e) => $(C.value[a[0]], "cell_summary_component_params")
702
+ onClick: (e) => $(C.value[o[0]], "cell_summary_component_params")
703
703
  }, {
704
- default: G(() => [P(V(we(C.value[a[0]].cell_summary_component_params) ? "已配" : "配置"), 1)]),
704
+ default: G(() => [P(V(we(C.value[o[0]].cell_summary_component_params) ? "已配" : "配置"), 1)]),
705
705
  _: 2
706
706
  }, 1032, ["onClick"]))], 64)) : (R(), M("span", pe, "-"))], 64)) : e.key === "summary" ? (R(), A(i, {
707
707
  key: 14,
708
- checked: C.value[a[0]].summary,
709
- "onUpdate:checked": (e) => C.value[a[0]].summary = e
708
+ checked: C.value[o[0]].summary,
709
+ "onUpdate:checked": (e) => C.value[o[0]].summary = e
710
710
  }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_sortable" ? (R(), A(i, {
711
711
  key: 15,
712
- checked: C.value[a[0]].is_sortable,
713
- "onUpdate:checked": (e) => C.value[a[0]].is_sortable = e
712
+ checked: C.value[o[0]].is_sortable,
713
+ "onUpdate:checked": (e) => C.value[o[0]].is_sortable = e
714
714
  }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "default_sort" ? (R(), M("div", me, [F(i, {
715
- checked: C.value[a[0]].is_default_sort,
716
- "onUpdate:checked": (e) => C.value[a[0]].is_default_sort = e,
717
- onChange: (e) => se(C.value[a[0]])
715
+ checked: C.value[o[0]].is_default_sort,
716
+ "onUpdate:checked": (e) => C.value[o[0]].is_default_sort = e,
717
+ onChange: (e) => se(C.value[o[0]])
718
718
  }, null, 8, [
719
719
  "checked",
720
720
  "onUpdate:checked",
721
721
  "onChange"
722
- ]), C.value[a[0]].is_default_sort ? (R(), M(O, { key: 0 }, [F(c, {
723
- value: C.value[a[0]].default_sort_type,
724
- "onUpdate:value": (e) => C.value[a[0]].default_sort_type = e,
722
+ ]), C.value[o[0]].is_default_sort ? (R(), M(O, { key: 0 }, [F(s, {
723
+ value: C.value[o[0]].default_sort_type,
724
+ "onUpdate:value": (e) => C.value[o[0]].default_sort_type = e,
725
725
  size: "small",
726
726
  style: { width: "68px" },
727
727
  options: [{
@@ -732,8 +732,8 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
732
732
  label: "降序"
733
733
  }]
734
734
  }, null, 8, ["value", "onUpdate:value"]), F(r, {
735
- value: C.value[a[0]].default_sort_order,
736
- "onUpdate:value": (e) => C.value[a[0]].default_sort_order = e,
735
+ value: C.value[o[0]].default_sort_order,
736
+ "onUpdate:value": (e) => C.value[o[0]].default_sort_order = e,
737
737
  size: "small",
738
738
  style: { width: "60px" },
739
739
  min: 1,
@@ -742,34 +742,34 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
742
742
  key: 17,
743
743
  size: "small",
744
744
  style: { padding: "0 4px" },
745
- onClick: (e) => ge(C.value[a[0]])
745
+ onClick: (e) => ge(C.value[o[0]])
746
746
  }, {
747
- default: G(() => [P(V(_e(C.value[a[0]]) ? `已配 ${_e(C.value[a[0]])} 项` : "配置"), 1)]),
747
+ default: G(() => [P(V(_e(C.value[o[0]]) ? `已配 ${_e(C.value[o[0]])} 项` : "配置"), 1)]),
748
748
  _: 2
749
749
  }, 1032, ["onClick"])) : e.key === "adv_search" ? (R(), A(n, {
750
750
  key: 18,
751
751
  size: "small",
752
752
  style: { padding: "0 4px" },
753
- onClick: (e) => be(C.value[a[0]])
753
+ onClick: (e) => be(C.value[o[0]])
754
754
  }, {
755
- default: G(() => [P(V(C.value[a[0]].advanced_search_component?.type || "配置"), 1)]),
755
+ default: G(() => [P(V(C.value[o[0]].advanced_search_component?.type || "配置"), 1)]),
756
756
  _: 2
757
757
  }, 1032, ["onClick"])) : e.key === "is_base_query" ? (R(), A(i, {
758
758
  key: 19,
759
- checked: C.value[a[0]].is_base_query,
760
- "onUpdate:checked": (e) => C.value[a[0]].is_base_query = e
759
+ checked: C.value[o[0]].is_base_query,
760
+ "onUpdate:checked": (e) => C.value[o[0]].is_base_query = e
761
761
  }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_default_query" ? (R(), A(i, {
762
762
  key: 20,
763
- checked: C.value[a[0]].is_default_query,
764
- "onUpdate:checked": (e) => C.value[a[0]].is_default_query = e
763
+ checked: C.value[o[0]].is_default_query,
764
+ "onUpdate:checked": (e) => C.value[o[0]].is_default_query = e
765
765
  }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "is_group_query" ? (R(), A(i, {
766
766
  key: 21,
767
- checked: C.value[a[0]].is_group_query,
768
- "onUpdate:checked": (e) => C.value[a[0]].is_group_query = e
767
+ checked: C.value[o[0]].is_group_query,
768
+ "onUpdate:checked": (e) => C.value[o[0]].is_group_query = e
769
769
  }, null, 8, ["checked", "onUpdate:checked"])) : e.key === "action" ? (R(), A(_, {
770
770
  key: 22,
771
771
  title: "确认删除该列配置?",
772
- onConfirm: (e) => le(C.value[a[0]])
772
+ onConfirm: (e) => le(C.value[o[0]])
773
773
  }, {
774
774
  default: G(() => [F(n, {
775
775
  type: "link",
@@ -791,17 +791,17 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
791
791
  "scroll",
792
792
  "loading"
793
793
  ])], 512)) : j("", !0),
794
- F(a, {
794
+ F(p, {
795
795
  open: Q.value,
796
796
  "onUpdate:open": t[1] ||= (e) => Q.value = e,
797
797
  record: he.value
798
798
  }, null, 8, ["open", "record"]),
799
- F(g, {
799
+ F(f, {
800
800
  open: ve.value,
801
801
  "onUpdate:open": t[2] ||= (e) => ve.value = e,
802
802
  record: ye.value
803
803
  }, null, 8, ["open", "record"]),
804
- F(f, {
804
+ F(g, {
805
805
  open: xe.value,
806
806
  "onUpdate:open": t[3] ||= (e) => xe.value = e,
807
807
  record: Se.value,
@@ -811,7 +811,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
811
811
  "record",
812
812
  "field"
813
813
  ]),
814
- F(h, {
814
+ F(u, {
815
815
  open: Ee.value,
816
816
  "onUpdate:open": t[4] ||= (e) => Ee.value = e,
817
817
  rows: C.value
@@ -889,7 +889,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
889
889
  name: "parent_menu_id",
890
890
  extra: "选择父级菜单;留空表示顶级菜单。保存时会直接写到该视图对应的菜单行"
891
891
  }, {
892
- default: G(() => [F(ee, {
892
+ default: G(() => [F(b, {
893
893
  value: n.value.parent_menu_id,
894
894
  "onUpdate:value": t[1] ||= (e) => n.value.parent_menu_id = e,
895
895
  "form-model": n.value,
@@ -937,7 +937,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
937
937
  name: "menu_icon",
938
938
  extra: "显示在菜单树里;留空保存 = 不使用图标"
939
939
  }, {
940
- default: G(() => [F(H(b), {
940
+ default: G(() => [F(H(ee), {
941
941
  value: n.value.menu_icon,
942
942
  "onUpdate:value": t[3] ||= (e) => n.value.menu_icon = e,
943
943
  placeholder: "请选择菜单图标"
@@ -984,7 +984,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
984
984
  },
985
985
  emits: ["cancel", "ok"],
986
986
  setup(e, { emit: t }) {
987
- let a = e, o = t, c = z(null), l = z(!1), u = z(!0), d = z(a.record?.form_type || "create"), f = z(0), p = r().currentOrg, m = k(() => f.value === 2), h = z(""), g = () => {
987
+ let a = e, o = t, s = z(null), c = z(!1), u = z(!0), d = z(a.record?.form_type || "create"), f = z(0), p = r().currentOrg, m = k(() => f.value === 2), h = z(""), g = () => {
988
988
  h.value = "";
989
989
  }, _ = z(null), v = z(null), y = z({
990
990
  name: void 0,
@@ -1000,10 +1000,10 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
1000
1000
  is_pagination: !0,
1001
1001
  pageSize: void 0,
1002
1002
  page_size_options: []
1003
- }), b = s, ee = async () => {
1003
+ }), b = l, ee = async () => {
1004
1004
  let e = b[f.value] || [];
1005
1005
  if (e.length) try {
1006
- await c.value?.validateFields(e);
1006
+ await s.value?.validateFields(e);
1007
1007
  } catch {
1008
1008
  return;
1009
1009
  }
@@ -1016,7 +1016,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
1016
1016
  if (d.value !== "edit") return;
1017
1017
  let t = b[f.value] || [];
1018
1018
  if (t.length) try {
1019
- await c.value?.validateFields(t);
1019
+ await s.value?.validateFields(t);
1020
1020
  } catch {
1021
1021
  return;
1022
1022
  }
@@ -1041,19 +1041,19 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
1041
1041
  try {
1042
1042
  if (d.value === "edit") {
1043
1043
  let e = b[f.value] || [];
1044
- e.length && await c.value?.validateFields(e);
1045
- } else await c.value.validate();
1044
+ e.length && await s.value?.validateFields(e);
1045
+ } else await s.value.validate();
1046
1046
  let e = {
1047
1047
  ...M(),
1048
1048
  columns: _.value?.buildColumnsPayload?.() ?? [],
1049
1049
  deleted_data_indexes: _.value?.getDeletedIndexes?.() ?? []
1050
1050
  };
1051
- d.value === "edit" && (e.db_view_id = a.record.id), l.value = !0, await i({
1051
+ d.value === "edit" && (e.db_view_id = a.record.id), c.value = !0, await i({
1052
1052
  ...e,
1053
1053
  org_id: p?.id
1054
1054
  }, `${a.record.model_app}/save_view`), q.success("操作成功"), _.value?.resetDeletedIndexes?.(), n()?.emit("refresh"), o("ok");
1055
1055
  } catch {} finally {
1056
- l.value = !1;
1056
+ c.value = !1;
1057
1057
  }
1058
1058
  }, I = () => o("cancel"), re = () => {
1059
1059
  f.value < 3 ? ee() : ne();
@@ -1396,7 +1396,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
1396
1396
  }),
1397
1397
  F(a, {
1398
1398
  type: "primary",
1399
- loading: l.value,
1399
+ loading: c.value,
1400
1400
  onClick: re
1401
1401
  }, {
1402
1402
  default: G(() => [P(V(f.value < 3 ? "下一步" : "确定"), 1)]),
@@ -1418,7 +1418,7 @@ var J = (e) => e && typeof e == "object" && !Array.isArray(e) && e.data !== void
1418
1418
  _: 1
1419
1419
  }, 8, ["current"]), F(i, {
1420
1420
  ref_key: "formRef",
1421
- ref: c,
1421
+ ref: s,
1422
1422
  model: y.value,
1423
1423
  layout: "vertical"
1424
1424
  }, {
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
- import { t } from "./tablePageHost-yfsOVGWf.js";
2
+ import { t } from "./tablePageHost-0TwO9-bh.js";
3
3
  import { computed as n, createBlock as r, createElementBlock as i, defineComponent as a, openBlock as o, resolveComponent as s } from "vue";
4
4
  //#region src/components/detailTablePro/detailTablePro.vue?vue&type=script&setup=true&lang.ts
5
5
  var c = { class: "detail-table-pro" }, l = /*#__PURE__*/ e(/* @__PURE__ */ a({