liyu-pc-base 1.0.36 → 1.0.38

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.
@@ -44,13 +44,13 @@ const Ze = Z({
44
44
  emits: ["ok", "cancel"],
45
45
  setup(e, { emit: r }) {
46
46
  const R = H("condition_tab_0"), N = H([]);
47
- e.default_search_condition_config_list.forEach((i, V) => {
47
+ e.default_search_condition_config_list.forEach((s, V) => {
48
48
  const y = JSON.parse(
49
49
  JSON.stringify(e.base_search_condition_config_list)
50
50
  );
51
51
  y && y.forEach((m) => {
52
52
  m.group.forEach((p) => {
53
- i.forEach((d) => {
53
+ s.forEach((d) => {
54
54
  p.field_name == d.field_name && (p.operator = d.operator, p.checked = !0);
55
55
  });
56
56
  });
@@ -60,8 +60,8 @@ const Ze = Z({
60
60
  base_search_list: y
61
61
  });
62
62
  });
63
- const B = (i) => {
64
- i.preventDefault();
63
+ const B = (s) => {
64
+ s.preventDefault();
65
65
  const V = [];
66
66
  N.value.forEach((y) => {
67
67
  const m = [];
@@ -80,7 +80,7 @@ const Ze = Z({
80
80
  });
81
81
  }), V.push(m);
82
82
  }), r("ok", { new_list: V });
83
- }, U = (i) => i.operator_list_selected ? i.operator_list_selected : i.operator_list ? i.operator_list : [];
83
+ }, U = (s) => s.operator_list_selected ? s.operator_list_selected : s.operator_list ? s.operator_list : [];
84
84
  return {
85
85
  props: e,
86
86
  activeKey: R,
@@ -91,7 +91,7 @@ const Ze = Z({
91
91
  });
92
92
  const xe = { style: { "font-size": "14px" } }, el = { style: { color: "#7d8089" } };
93
93
  function ll(e, r, R, N, B, U) {
94
- const i = $("a-checkbox"), V = $("a-space"), y = $("a-tab-pane"), m = $("a-tabs"), p = $("a-modal");
94
+ const s = $("a-checkbox"), V = $("a-space"), y = $("a-tab-pane"), m = $("a-tabs"), p = $("a-modal");
95
95
  return u(), O(p, {
96
96
  title: "添加过滤条件",
97
97
  width: "800px",
@@ -130,7 +130,7 @@ function ll(e, r, R, N, B, U) {
130
130
  (u(!0), F(q, null, T(h.group, (w) => (u(), F("div", {
131
131
  key: w.field_name
132
132
  }, [
133
- S(i, {
133
+ S(s, {
134
134
  checked: w.checked,
135
135
  "onUpdate:checked": (j) => w.checked = j
136
136
  }, {
@@ -212,10 +212,10 @@ const al = /* @__PURE__ */ x(Ze, [["render", ll], ["__scopeId", "data-v-25d1dc13
212
212
  key: `condition_tab_${B}`,
213
213
  base_search_list: U
214
214
  });
215
- const i = H(`condition_tab_${B}`);
215
+ const s = H(`condition_tab_${B}`);
216
216
  return {
217
217
  props: e,
218
- activeKey: i,
218
+ activeKey: s,
219
219
  tab_list: R,
220
220
  handleSubmit: (p) => {
221
221
  p.preventDefault();
@@ -235,7 +235,7 @@ const al = /* @__PURE__ */ x(Ze, [["render", ll], ["__scopeId", "data-v-25d1dc13
235
235
  });
236
236
  const nl = { style: { "font-size": "14px" } }, ol = { style: { color: "#7d8089" } }, sl = { style: { "font-size": "14px" } }, il = { style: { color: "#7d8089" } };
237
237
  function rl(e, r, R, N, B, U) {
238
- const i = $("a-checkbox"), V = $("a-space"), y = $("a-tab-pane"), m = $("a-tabs"), p = $("a-modal");
238
+ const s = $("a-checkbox"), V = $("a-space"), y = $("a-tab-pane"), m = $("a-tabs"), p = $("a-modal");
239
239
  return u(), O(p, {
240
240
  title: "添加过滤条件组",
241
241
  width: "800px",
@@ -266,7 +266,7 @@ function rl(e, r, R, N, B, U) {
266
266
  (u(!0), F(q, null, T(h.group, (w) => (u(), F("div", {
267
267
  key: w.field_name
268
268
  }, [
269
- S(i, {
269
+ S(s, {
270
270
  checked: w.checked,
271
271
  "onUpdate:checked": (j) => w.checked = j
272
272
  }, {
@@ -306,7 +306,7 @@ function rl(e, r, R, N, B, U) {
306
306
  (u(!0), F(q, null, T(h.group, (w) => (u(), F("div", {
307
307
  key: w.field_name
308
308
  }, [
309
- S(i, {
309
+ S(s, {
310
310
  checked: w.checked,
311
311
  "onUpdate:checked": (j) => w.checked = j
312
312
  }, {
@@ -388,7 +388,7 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
388
388
  "update:is_clear_model"
389
389
  ],
390
390
  setup(e, { emit: r }) {
391
- const R = H(e.is_massage_default), N = H({}), { t: B } = Ie(), { options_eq: U } = dl(), i = H([]), V = {}, y = H(null), m = H([
391
+ const R = H(e.is_massage_default), N = H({}), { t: B } = Ie(), { options_eq: U } = dl(), s = H([]), V = {}, y = H(null), m = H([
392
392
  { value: "yes", label: B("is_or_not_blank_or_null.yes") },
393
393
  { value: "no", label: B("is_or_not_blank_or_null.no") }
394
394
  ]);
@@ -416,121 +416,121 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
416
416
  json_list_is_blank_is_null: 1,
417
417
  is_or_not_blank_or_null: 1,
418
418
  is_or_not_null: 1
419
- }, d = (s) => {
420
- const [t] = [s];
421
- return Array.isArray(t) && s.every((n) => Array.isArray(n));
419
+ }, d = (i) => {
420
+ const [t] = [i];
421
+ return Array.isArray(t) && i.every((n) => Array.isArray(n));
422
422
  };
423
423
  let h = null;
424
- const w = (s, t, n) => {
425
- const l = i.value[t][n.field_name];
424
+ const w = (i, t, n) => {
425
+ const l = s.value[t][n.field_name];
426
426
  if (g(n).includes("_eq")) {
427
- if (s == "_eq") {
428
- i.value[t][n.field_name] = null, h = s, r("onChangeValue", { model: i.value });
427
+ if (i == "_eq") {
428
+ s.value[t][n.field_name] = null, h = i, r("onChangeValue", { model: s.value });
429
429
  return;
430
430
  } else if (h == "_eq") {
431
- i.value[t][n.field_name] = null, h = s, r("onChangeValue", { model: i.value });
431
+ s.value[t][n.field_name] = null, h = i, r("onChangeValue", { model: s.value });
432
432
  return;
433
433
  }
434
434
  }
435
435
  if (g(n).includes("not_blank_not_null")) {
436
- if (s == "not_blank_not_null") {
437
- i.value[t][n.field_name] = "是", h = s, r("onChangeValue", { model: i.value });
436
+ if (i == "not_blank_not_null") {
437
+ s.value[t][n.field_name] = "是", h = i, r("onChangeValue", { model: s.value });
438
438
  return;
439
439
  } else if (h == "not_blank_not_null") {
440
- i.value[t][n.field_name] = null, h = s, r("onChangeValue", { model: i.value });
440
+ s.value[t][n.field_name] = null, h = i, r("onChangeValue", { model: s.value });
441
441
  return;
442
442
  }
443
443
  }
444
444
  if (g(n).includes("is_or_not_blank_or_null") || g(n).includes("is_or_not_null")) {
445
- if (s == "is_or_not_blank_or_null" || s == "is_or_not_null") {
446
- i.value[t][n.field_name] = null, h = s, r("onChangeValue", { model: i.value });
445
+ if (i == "is_or_not_blank_or_null" || i == "is_or_not_null") {
446
+ s.value[t][n.field_name] = null, h = i, r("onChangeValue", { model: s.value });
447
447
  return;
448
448
  } else if (h == "is_or_not_blank_or_null" || h == "is_or_not_null") {
449
- i.value[t][n.field_name] = null, h = s, r("onChangeValue", { model: i.value });
449
+ s.value[t][n.field_name] = null, h = i, r("onChangeValue", { model: s.value });
450
450
  return;
451
451
  }
452
452
  }
453
453
  if (l instanceof Array && d(l))
454
- i.value[t][n.field_name] = null;
455
- else if (p[s] == 1) {
454
+ s.value[t][n.field_name] = null;
455
+ else if (p[i] == 1) {
456
456
  if (l instanceof Array) {
457
- const [b] = i.value[t][n.field_name];
458
- ge(b) ? i.value[t][n.field_name] = b : i.value[t][n.field_name] = null;
457
+ const [b] = s.value[t][n.field_name];
458
+ ge(b) ? s.value[t][n.field_name] = b : s.value[t][n.field_name] = null;
459
459
  } else
460
- i.value[t][n.field_name] = l || null;
460
+ s.value[t][n.field_name] = l || null;
461
461
  U.some(
462
- (b) => b.value === i.value[t][n.field_name]
463
- ) && (i.value[t][n.field_name] = null);
464
- } else if (p[s] == 2) {
465
- if (i.value[t][n.field_name] instanceof Array) {
466
- const [b, E] = i.value[t][n.field_name];
467
- i.value[t][n.field_name] = [b, E];
468
- } else if (i.value[t][n.field_name]) {
469
- const b = i.value[t][n.field_name];
470
- i.value[t][n.field_name] = [b, null];
462
+ (b) => b.value === s.value[t][n.field_name]
463
+ ) && (s.value[t][n.field_name] = null);
464
+ } else if (p[i] == 2) {
465
+ if (s.value[t][n.field_name] instanceof Array) {
466
+ const [b, E] = s.value[t][n.field_name];
467
+ s.value[t][n.field_name] = [b, E];
468
+ } else if (s.value[t][n.field_name]) {
469
+ const b = s.value[t][n.field_name];
470
+ s.value[t][n.field_name] = [b, null];
471
471
  } else
472
- i.value[t][n.field_name] = [null, null];
472
+ s.value[t][n.field_name] = [null, null];
473
473
  U.some(
474
- (b) => b.value === i.value[t][n.field_name][0]
475
- ) && (i.value[t][n.field_name] = [null, null]);
474
+ (b) => b.value === s.value[t][n.field_name][0]
475
+ ) && (s.value[t][n.field_name] = [null, null]);
476
476
  }
477
- h = s, r("onChangeValue", { model: i.value });
477
+ h = i, r("onChangeValue", { model: s.value });
478
478
  }, j = W({
479
479
  open: !1
480
480
  }), L = () => {
481
481
  j.open = !0;
482
- }, Q = (s) => {
482
+ }, Q = (i) => {
483
483
  e.default_search_condition_config_list.forEach((t, n) => {
484
- s.new_list.forEach((l, v) => {
484
+ i.new_list.forEach((l, v) => {
485
485
  n == v && t.forEach((b) => {
486
486
  l.forEach((E) => {
487
487
  b.field_name == E.field_name && (E.value = b.value, E.operator = b.operator);
488
488
  });
489
489
  });
490
490
  });
491
- }), r("update_default_search_condition_config_list", { new_list: s.new_list }), j.open = !1;
491
+ }), r("update_default_search_condition_config_list", { new_list: i.new_list }), j.open = !1;
492
492
  }, K = () => {
493
493
  j.open = !1;
494
494
  }, I = W({
495
495
  open: !1
496
496
  }), P = () => {
497
497
  I.open = !0;
498
- }, te = (s) => {
498
+ }, te = (i) => {
499
499
  e.default_search_condition_config_list.forEach((t, n) => {
500
- s.new_list.forEach((l, v) => {
500
+ i.new_list.forEach((l, v) => {
501
501
  n == v && t.forEach((b) => {
502
502
  l.forEach((E) => {
503
503
  b.field_name == E.field_name && (E.value = b.value, E.operator = b.operator);
504
504
  });
505
505
  });
506
506
  });
507
- }), r("update_default_search_condition_config_list", { new_list: s.new_list }), I.open = !1;
507
+ }), r("update_default_search_condition_config_list", { new_list: i.new_list }), I.open = !1;
508
508
  }, ne = () => {
509
509
  I.open = !1;
510
510
  }, ee = () => {
511
- R.value = !1, console.log("condition_model_dict.value", i.value), r("search", { model: i.value });
512
- }, k = (s = !1) => {
511
+ R.value = !1, console.log("condition_model_dict.value", s.value), r("search", { model: s.value });
512
+ }, k = (i = !1) => {
513
513
  var t;
514
514
  e.base_search_condition_config_list.length != 0 && ((t = e.default_search_condition_config_list) == null || t.forEach((n, l) => {
515
- X[l] = {}, i.value[l] || (i.value[l] = {}), e.base_search_condition_config_list.forEach((v) => {
515
+ X[l] = {}, s.value[l] || (s.value[l] = {}), e.base_search_condition_config_list.forEach((v) => {
516
516
  var b;
517
517
  (b = v.group) == null || b.forEach((E) => {
518
518
  n.forEach((M) => {
519
- E.field_name == M.field_name && ((i.value[l][M.field_name] == null || s) && (p[M.operator] == 1 ? M.value !== void 0 ? i.value[l][M.field_name] = M.value : i.value[l][M.field_name] = null : p[M.operator] == 2 ? M.value !== void 0 ? i.value[l][M.field_name] = M.value : i.value[l][M.field_name] = [null, null] : p[M.operator] == 0 && (M.value !== void 0 ? i.value[l][M.field_name] = M.value : i.value[l][M.field_name] = [])), Object.assign(M, { ...E, operator: M.operator }), M.operator == "eq" && M.mode != "default" ? (E.mode = "default", Object.assign(M, { model: "default" })) : ["in", "notin"].includes(M.operator) && M.mode != "multiple" && (E.mode = "multiple", Object.assign(M, { model: "multiple" })));
519
+ E.field_name == M.field_name && ((s.value[l][M.field_name] == null || i) && (p[M.operator] == 1 ? M.value !== void 0 ? s.value[l][M.field_name] = M.value : s.value[l][M.field_name] = null : p[M.operator] == 2 ? M.value !== void 0 ? s.value[l][M.field_name] = M.value : s.value[l][M.field_name] = [null, null] : p[M.operator] == 0 && (M.value !== void 0 ? s.value[l][M.field_name] = M.value : s.value[l][M.field_name] = [])), Object.assign(M, { ...E, operator: M.operator }), M.operator == "eq" && M.mode != "default" ? (E.mode = "default", Object.assign(M, { model: "default" })) : ["in", "notin"].includes(M.operator) && M.mode != "multiple" && (E.mode = "multiple", Object.assign(M, { model: "multiple" })));
520
520
  });
521
521
  });
522
522
  });
523
523
  }));
524
524
  }, a = () => {
525
525
  k(!0);
526
- }, X = W({}), C = (s, t) => {
527
- X[s][t.field_name] = !0;
528
- }, pe = (s, t) => {
529
- X[s][t.field_name] = !1;
530
- }, he = (s, t) => {
526
+ }, X = W({}), C = (i, t) => {
527
+ X[i][t.field_name] = !0;
528
+ }, pe = (i, t) => {
529
+ X[i][t.field_name] = !1;
530
+ }, he = (i, t) => {
531
531
  const n = [];
532
532
  e.default_search_condition_config_list.forEach((l, v) => {
533
- if (v !== s)
533
+ if (v !== i)
534
534
  n.push(l);
535
535
  else {
536
536
  const b = [];
@@ -539,11 +539,11 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
539
539
  }), b.length > 0 && n.push(b);
540
540
  }
541
541
  }), r("update_default_search_condition_config_list", { new_list: n });
542
- }, ve = (s, t) => {
543
- i.value[s][t] instanceof Array ? i.value[s][t].length = 0 : i.value[s][t] = null, r("onChangeValue", { model: i.value }), r("delSearch", { model: JSON.parse(JSON.stringify(i.value)) });
544
- }, oe = (s, t, n, l) => {
545
- if (s instanceof Array && s.length > 0) {
546
- const v = s[s.length - 1];
542
+ }, ve = (i, t) => {
543
+ s.value[i][t] instanceof Array ? s.value[i][t].length = 0 : s.value[i][t] = null, r("onChangeValue", { model: s.value }), r("delSearch", { model: JSON.parse(JSON.stringify(s.value)) });
544
+ }, oe = (i, t, n, l) => {
545
+ if (i instanceof Array && i.length > 0) {
546
+ const v = i[i.length - 1];
547
547
  let b = null;
548
548
  if (e.base_search_condition_config_list.forEach((E) => {
549
549
  E.group.forEach((M) => {
@@ -560,7 +560,7 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
560
560
  const E = JSON.parse(JSON.stringify(e.default_search_condition_config_list));
561
561
  E.forEach((M, re) => {
562
562
  re === t && M.forEach((be, we) => {
563
- be.field_name == n.field_name && we == l && (M.splice(we, 1, b), delete i.value[t][be.field_name]);
563
+ be.field_name == n.field_name && we == l && (M.splice(we, 1, b), delete s.value[t][be.field_name]);
564
564
  });
565
565
  }), r("update_default_search_condition_config_list", {
566
566
  new_list: E
@@ -569,9 +569,9 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
569
569
  k();
570
570
  }
571
571
  }, ie = me(() => {
572
- const s = {};
572
+ const i = {};
573
573
  return e.default_search_condition_config_list.forEach((t, n) => {
574
- s[n] = [];
574
+ i[n] = [];
575
575
  const l = t.map((v) => v.field_name);
576
576
  e.base_search_condition_config_list.forEach((v) => {
577
577
  const b = v.group.filter(
@@ -584,11 +584,11 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
584
584
  label: M.label
585
585
  }))
586
586
  };
587
- s[n].push(E);
587
+ i[n].push(E);
588
588
  });
589
- }), s;
590
- }), o = (s, t) => {
591
- const n = i.value[s][t.field_name];
589
+ }), i;
590
+ }), o = (i, t) => {
591
+ const n = s.value[i][t.field_name];
592
592
  if (n instanceof Array) {
593
593
  const [l] = n;
594
594
  if (ge(l))
@@ -596,8 +596,8 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
596
596
  } else if (ge(n))
597
597
  return !0;
598
598
  return !1;
599
- }, f = (s, t) => {
600
- const n = [], l = i.value[s][t.field_name];
599
+ }, f = (i, t) => {
600
+ const n = [], l = s.value[i][t.field_name];
601
601
  if (t.operator === "is_or_not_blank_or_null" || t.operator === "is_or_not_null")
602
602
  return B(l === "yes" ? "is_or_not_blank_or_null.yes" : "is_or_not_blank_or_null.no");
603
603
  if (t.operator === "_eq") {
@@ -640,19 +640,18 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
640
640
  }
641
641
  }, _ = () => {
642
642
  r("onShowSearchRender");
643
- }, g = (s) => s.operator_list_selected ? s.operator_list_selected : s.operator_list ? s.operator_list : [];
643
+ }, g = (i) => i.operator_list_selected ? i.operator_list_selected : i.operator_list ? i.operator_list : [];
644
644
  return Y(
645
- () => i.value,
645
+ () => s.value,
646
646
  () => {
647
- var s;
648
- ((s = i.value) == null ? void 0 : s.length) > 0 && r("onChangeValue", { model: i.value });
647
+ r("onChangeValue", { model: s.value });
649
648
  },
650
649
  { deep: !0 }
651
650
  ), Y(
652
651
  () => e.default_search_condition_config_list,
653
652
  () => {
654
- var s;
655
- if (((s = e.default_search_condition_config_list) == null ? void 0 : s.length) == 0) {
653
+ var i;
654
+ if (((i = e.default_search_condition_config_list) == null ? void 0 : i.length) == 0) {
656
655
  r("update_default_search_condition_config_list", {
657
656
  new_list: y.value
658
657
  });
@@ -670,7 +669,7 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
670
669
  ), Y(
671
670
  () => e.is_clear_model,
672
671
  () => {
673
- e.is_clear_model && (i.value = {}, k(), r("update:is_clear_model", !1));
672
+ e.is_clear_model && (s.value = {}, k(), r("update:is_clear_model", !1));
674
673
  }
675
674
  ), Fe(() => {
676
675
  k(), e.eventBus && e.eventBus.on("filterChange", a);
@@ -682,7 +681,7 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
682
681
  isShowForm: R,
683
682
  labelModel: N,
684
683
  get_operator_type_map: se,
685
- condition_model_dict: i,
684
+ condition_model_dict: s,
686
685
  addConditionModal: j,
687
686
  handleAddConditions: L,
688
687
  handleAddConditionOk: Q,
@@ -710,16 +709,16 @@ const ul = /* @__PURE__ */ x(tl, [["render", rl], ["__scopeId", "data-v-52b515e0
710
709
  };
711
710
  }
712
711
  });
713
- const fl = (e) => (Ve("data-v-e16ccae7"), e = e(), qe(), e), cl = { class: "expand-btn" }, ml = { class: "card" }, pl = {
712
+ const fl = (e) => (Ve("data-v-793f4096"), e = e(), qe(), e), cl = { class: "expand-btn" }, ml = { class: "card" }, pl = {
714
713
  key: 0,
715
714
  class: "condition-group"
716
715
  }, hl = { style: { width: "315px", height: "40px" } }, vl = /* @__PURE__ */ fl(() => /* @__PURE__ */ D("div", { class: "range" }, "~", -1)), gl = { class: "close-icon" }, yl = { class: "search-bar" };
717
716
  function bl(e, r, R, N, B, U) {
718
- const i = $("a-button"), V = $("a-space"), y = $("a-tag"), m = $("close-outlined"), p = $("a-cascader"), d = $("a-tooltip"), h = $("a-select-option"), w = $("a-select"), j = $("field-render-2"), L = $("a-flex"), Q = $("close-circle-outlined"), K = $("a-input-group"), I = $("a-space-compact"), P = $("a-divider"), te = $("add-condition-modal"), ne = $("add-condition-group-modal");
717
+ const s = $("a-button"), V = $("a-space"), y = $("a-tag"), m = $("close-outlined"), p = $("a-cascader"), d = $("a-tooltip"), h = $("a-select-option"), w = $("a-select"), j = $("field-render-2"), L = $("a-flex"), Q = $("close-circle-outlined"), K = $("a-input-group"), I = $("a-space-compact"), P = $("a-divider"), te = $("add-condition-modal"), ne = $("add-condition-group-modal");
719
718
  return u(), F(q, null, [
720
719
  e.is_massage_default ? G("", !0) : (u(), O(V, { key: 0 }, {
721
720
  default: c(() => [
722
- e.is_show_normal_search ? (u(), O(i, {
721
+ e.is_show_normal_search ? (u(), O(s, {
723
722
  key: 0,
724
723
  type: "link",
725
724
  onClick: e.handleShowSearchRender
@@ -729,7 +728,7 @@ function bl(e, r, R, N, B, U) {
729
728
  ]),
730
729
  _: 1
731
730
  }, 8, ["onClick"])) : G("", !0),
732
- e.isShowForm ? (u(), O(i, {
731
+ e.isShowForm ? (u(), O(s, {
733
732
  key: 2,
734
733
  type: "link",
735
734
  onClick: r[1] || (r[1] = () => {
@@ -740,7 +739,7 @@ function bl(e, r, R, N, B, U) {
740
739
  z(A(e.$t("隐藏")), 1)
741
740
  ]),
742
741
  _: 1
743
- })) : (u(), O(i, {
742
+ })) : (u(), O(s, {
744
743
  key: 1,
745
744
  type: "link",
746
745
  onClick: r[0] || (r[0] = () => {
@@ -1026,7 +1025,7 @@ function bl(e, r, R, N, B, U) {
1026
1025
  ue(D("div", yl, [
1027
1026
  S(V, null, {
1028
1027
  default: c(() => [
1029
- S(i, {
1028
+ S(s, {
1030
1029
  size: "small",
1031
1030
  type: "primary",
1032
1031
  onClick: e.handleAddConditions
@@ -1036,7 +1035,7 @@ function bl(e, r, R, N, B, U) {
1036
1035
  ]),
1037
1036
  _: 1
1038
1037
  }, 8, ["onClick"]),
1039
- S(i, {
1038
+ S(s, {
1040
1039
  size: "small",
1041
1040
  type: "primary",
1042
1041
  onClick: e.handleAddGroupCondition
@@ -1046,7 +1045,7 @@ function bl(e, r, R, N, B, U) {
1046
1045
  ]),
1047
1046
  _: 1
1048
1047
  }, 8, ["onClick"]),
1049
- S(i, {
1048
+ S(s, {
1050
1049
  size: "small",
1051
1050
  type: "primary",
1052
1051
  onClick: e.handleSearch
@@ -1080,7 +1079,7 @@ function bl(e, r, R, N, B, U) {
1080
1079
  }, null, 8, ["open", "default_search_condition_config_list", "base_search_condition_config_list", "onOk", "onCancel"])) : G("", !0)
1081
1080
  ], 64);
1082
1081
  }
1083
- const ga = /* @__PURE__ */ x(_l, [["render", bl], ["__scopeId", "data-v-e16ccae7"]]), wl = Z({
1082
+ const ga = /* @__PURE__ */ x(_l, [["render", bl], ["__scopeId", "data-v-793f4096"]]), wl = Z({
1084
1083
  name: "FormRender3",
1085
1084
  components: {
1086
1085
  FieldRender2: Ae
@@ -1133,7 +1132,7 @@ const ga = /* @__PURE__ */ x(_l, [["render", bl], ["__scopeId", "data-v-e16ccae7
1133
1132
  }
1134
1133
  });
1135
1134
  function kl(e, r, R, N, B, U) {
1136
- const i = $("field-render-2"), V = $("a-col"), y = $("a-row"), m = $("a-card"), p = $("a-form");
1135
+ const s = $("field-render-2"), V = $("a-col"), y = $("a-row"), m = $("a-card"), p = $("a-form");
1137
1136
  return u(), O(p, {
1138
1137
  ref: "form",
1139
1138
  autocomplete: "off",
@@ -1164,7 +1163,7 @@ function kl(e, r, R, N, B, U) {
1164
1163
  pull: w.pull
1165
1164
  }, {
1166
1165
  default: c(() => [
1167
- (u(), O(i, {
1166
+ (u(), O(s, {
1168
1167
  value: e.model[w.name],
1169
1168
  "onUpdate:value": (L) => e.model[w.name] = L,
1170
1169
  is_show_field: w.is_show_field,
@@ -1260,7 +1259,7 @@ const ya = /* @__PURE__ */ x(wl, [["render", kl], ["__scopeId", "data-v-0abbe79b
1260
1259
  }
1261
1260
  });
1262
1261
  function $l(e, r, R, N, B, U) {
1263
- const i = $("field-render"), V = $("a-col"), y = $("a-row"), m = $("a-form");
1262
+ const s = $("field-render"), V = $("a-col"), y = $("a-row"), m = $("a-form");
1264
1263
  return u(), O(m, {
1265
1264
  ref: "form",
1266
1265
  autocomplete: "off",
@@ -1287,7 +1286,7 @@ function $l(e, r, R, N, B, U) {
1287
1286
  xs: 24
1288
1287
  }, {
1289
1288
  default: c(() => [
1290
- (u(!0), F(q, null, T(e.form.fields.slice(p[0], p[1]), (d) => (u(), O(i, {
1289
+ (u(!0), F(q, null, T(e.form.fields.slice(p[0], p[1]), (d) => (u(), O(s, {
1291
1290
  value: e.model[d.name],
1292
1291
  "onUpdate:value": (h) => e.model[d.name] = h,
1293
1292
  field: d,
@@ -1309,7 +1308,7 @@ function $l(e, r, R, N, B, U) {
1309
1308
  }, {
1310
1309
  default: c(() => [
1311
1310
  (u(!0), F(q, null, T(e.form.fields, (p) => (u(), F(q, null, [
1312
- p.name2 ? (u(), O(i, {
1311
+ p.name2 ? (u(), O(s, {
1313
1312
  value: e.model[p.name],
1314
1313
  "onUpdate:value": (d) => e.model[p.name] = d,
1315
1314
  label: e.model[p.name2],
@@ -1319,7 +1318,7 @@ function $l(e, r, R, N, B, U) {
1319
1318
  key: p.name,
1320
1319
  validateInfos: e.validateInfos,
1321
1320
  options: e.options[p.datasource ? p.datasource : p.name]
1322
- }, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (u(), O(i, {
1321
+ }, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (u(), O(s, {
1323
1322
  value: e.model[p.name],
1324
1323
  "onUpdate:value": (d) => e.model[p.name] = d,
1325
1324
  field: p,
@@ -1394,7 +1393,7 @@ const ba = /* @__PURE__ */ x(Cl, [["render", $l]]), Ol = Z({
1394
1393
  }
1395
1394
  });
1396
1395
  function Sl(e, r, R, N, B, U) {
1397
- const i = $("field-render"), V = $("a-col"), y = $("a-row"), m = $("a-form");
1396
+ const s = $("field-render"), V = $("a-col"), y = $("a-row"), m = $("a-form");
1398
1397
  return u(), O(m, {
1399
1398
  ref: "form",
1400
1399
  autocomplete: "off",
@@ -1413,7 +1412,7 @@ function Sl(e, r, R, N, B, U) {
1413
1412
  }, {
1414
1413
  default: c(() => [
1415
1414
  (u(!0), F(q, null, T(e.form.fields, (h) => (u(), F(q, null, [
1416
- h.name2 ? (u(), O(i, {
1415
+ h.name2 ? (u(), O(s, {
1417
1416
  value: e.model[h.name],
1418
1417
  "onUpdate:value": (w) => e.model[h.name] = w,
1419
1418
  label: e.model[h.name2],
@@ -1423,7 +1422,7 @@ function Sl(e, r, R, N, B, U) {
1423
1422
  key: h.name,
1424
1423
  validateInfos: e.validateInfos,
1425
1424
  options: e.options[h.datasource ? h.datasource : h.name]
1426
- }, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (u(), O(i, {
1425
+ }, null, 8, ["value", "onUpdate:value", "label", "onUpdate:label", "field", "formModel", "validateInfos", "options"])) : (u(), O(s, {
1427
1426
  value: e.model[h.name],
1428
1427
  "onUpdate:value": (w) => e.model[h.name] = w,
1429
1428
  field: h,
@@ -1520,7 +1519,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1520
1519
  },
1521
1520
  emits: ["change"],
1522
1521
  setup(e, { emit: r }) {
1523
- const R = We(), N = He(), B = Ye(), U = B.currentOrg, i = B.userid, V = H(B.CHECK_AUTH(jl)), y = H([]), { t: m } = Ie();
1522
+ const R = We(), N = He(), B = Ye(), U = B.currentOrg, s = B.userid, V = H(B.CHECK_AUTH(jl)), y = H([]), { t: m } = Ie();
1524
1523
  let p, d;
1525
1524
  const h = me(() => {
1526
1525
  const o = y.value.filter((_) => !!_.user_id && _.is_system).map((_) => _).sort((_, g) => _.sort == g.sort ? _.id - g.id : _.sort - g.sort), f = y.value.filter((_) => !!_.user_id && !_.is_system).map((_) => _).sort((_, g) => _.sort == g.sort ? _.id - g.id : _.sort - g.sort);
@@ -1533,7 +1532,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1533
1532
  search_model: f,
1534
1533
  filter_map: _,
1535
1534
  sort_fields: g,
1536
- group_condition: s,
1535
+ group_condition: i,
1537
1536
  conditions: t,
1538
1537
  isShowGeneralFilter: n
1539
1538
  }) => new Promise((l) => {
@@ -1544,7 +1543,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1544
1543
  ..._,
1545
1544
  sort_fields: g
1546
1545
  };
1547
- n && (v.group_condition = s, v.conditions = t), v.required_condition = ve(), Qe(v, p != null && p.countData ? p.countData : e.countData).then((b) => {
1546
+ n && (v.group_condition = i, v.conditions = t), v.required_condition = ve(), Qe(v, p != null && p.countData ? p.countData : e.countData).then((b) => {
1548
1547
  y.value.forEach((E) => {
1549
1548
  E.id == o && (E.num = b);
1550
1549
  }), l(null);
@@ -1561,7 +1560,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1561
1560
  }, K = () => {
1562
1561
  Xe({
1563
1562
  org_id: U.id,
1564
- user_id: i,
1563
+ user_id: s,
1565
1564
  app_flag: e.app_flag,
1566
1565
  modalType: e.modalType,
1567
1566
  sort_fields: ["sort", "create_time"],
@@ -1585,10 +1584,10 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1585
1584
  let f = [];
1586
1585
  const _ = [];
1587
1586
  o && o.system_user_datas && o.system_user_datas.length > 0 && (f = f.concat(o.system_user_datas)), o && o.system_public_datas && o.system_public_datas.length > 0 && (f = f.concat(o.system_public_datas)), o && o.public_datas && o.public_datas.length > 0 && (f = f.concat(o.public_datas)), o && o.user_datas && o.user_datas.length > 0 && (f = f.concat(o.user_datas)), f.forEach((g) => {
1588
- let s = null, t = null, n = null, l = null;
1589
- g.data.isShowGeneralFilter ? (s = {}, t = {}, n = g.data.group_condition, l = g.data.conditions) : (s = g.data.search_model, t = g.data.filter_map, n = {}, l = []), y.value.push({
1587
+ let i = null, t = null, n = null, l = null;
1588
+ g.data.isShowGeneralFilter ? (i = {}, t = {}, n = g.data.group_condition, l = g.data.conditions) : (i = g.data.search_model, t = g.data.filter_map, n = {}, l = []), y.value.push({
1590
1589
  ...g,
1591
- search_model: s,
1590
+ search_model: i,
1592
1591
  filter_map: t,
1593
1592
  sort_fields: g.data.sort_fields,
1594
1593
  group_condition: n,
@@ -1596,7 +1595,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1596
1595
  }), _.push({
1597
1596
  id: g.id,
1598
1597
  isShowGeneralFilter: g.data.isShowGeneralFilter,
1599
- search_model: s,
1598
+ search_model: i,
1600
1599
  filter_map: t,
1601
1600
  sort_fields: g.data.sort_fields,
1602
1601
  group_condition: n,
@@ -1610,20 +1609,20 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1610
1609
  var _;
1611
1610
  let f = null;
1612
1611
  if (o ? f = o : window.location.hash && (f = window.location.hash.substring(1)), f) {
1613
- const g = y.value.filter((s) => s.uid == f);
1612
+ const g = y.value.filter((i) => i.uid == f);
1614
1613
  g && g.length > 0 ? r("change", d, { ...g[0], ...g[0].data }, !0, !0) : Fl({
1615
1614
  org_id: U.id,
1616
1615
  is_active: !0,
1617
1616
  view_menu__name: e.menu_flag,
1618
1617
  uid: f
1619
- }).then((s) => {
1620
- if (s && s.data && s.data.length > 0)
1618
+ }).then((i) => {
1619
+ if (i && i.data && i.data.length > 0)
1621
1620
  r(
1622
1621
  "change",
1623
1622
  d,
1624
1623
  {
1625
- ...s.data[0],
1626
- ...s.data[0].data
1624
+ ...i.data[0],
1625
+ ...i.data[0].data
1627
1626
  },
1628
1627
  !0,
1629
1628
  !1
@@ -1659,11 +1658,11 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1659
1658
  if (Se().get(Ue) && (g = (_ = Se().get(Ue)) == null ? void 0 : _[e.menu_flag]), g)
1660
1659
  window.location.hash = g, I(g);
1661
1660
  else {
1662
- const s = y.value.filter(
1661
+ const i = y.value.filter(
1663
1662
  (l) => !l.user_id && l.is_default && !l.is_system
1664
1663
  );
1665
- if (s && s.length > 0) {
1666
- window.location.hash = s[0].uid, r("change", d, { ...s[0], ...s[0].data }, !0, !0);
1664
+ if (i && i.length > 0) {
1665
+ window.location.hash = i[0].uid, r("change", d, { ...i[0], ...i[0].data }, !0, !0);
1667
1666
  return;
1668
1667
  }
1669
1668
  const t = y.value.filter(
@@ -1705,7 +1704,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1705
1704
  const P = H(["1", "2"]), te = "background: #ffffff;border-radius: 4px;margin-bottom: 2px;border: 0;overflow: hidden;", ne = (o) => e.currentViewObj && o && o.id === e.currentViewObj.id ? { style: { backgroundColor: "#ddf1ff" } } : { style: {} }, ee = (o) => {
1706
1705
  window.location.hash = o.uid, I(o.uid), oe([o]);
1707
1706
  }, k = ({ updateView: o, record: f }) => {
1708
- var _, g, s, t;
1707
+ var _, g, i, t;
1709
1708
  if (f.name != o.name && j.value.includes(o.name)) {
1710
1709
  J.error(m("视图名称已存在"));
1711
1710
  return;
@@ -1762,7 +1761,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1762
1761
  Ee({
1763
1762
  org_id: U.id,
1764
1763
  view_settings_id: f == null ? void 0 : f.id,
1765
- is_system: (s = o.is_system) == null ? void 0 : s[0],
1764
+ is_system: (i = o.is_system) == null ? void 0 : i[0],
1766
1765
  name: o.name
1767
1766
  }).then((l) => {
1768
1767
  var v;
@@ -1816,7 +1815,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1816
1815
  group_record: {}
1817
1816
  }, El({
1818
1817
  org_id: U.id,
1819
- user_id: o.view_type == "personal" ? i : null,
1818
+ user_id: o.view_type == "personal" ? s : null,
1820
1819
  name: o.name,
1821
1820
  view_project__flag: R.VITE_APP_VIEW_PROJECT_FLAG,
1822
1821
  view_menu__flag: e.menu_flag,
@@ -1912,8 +1911,8 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
1912
1911
  }
1913
1912
  ]
1914
1913
  },
1915
- ok: (s) => new Promise(function(t) {
1916
- k({ updateView: s, record: o }), t(null);
1914
+ ok: (i) => new Promise(function(t) {
1915
+ k({ updateView: i, record: o }), t(null);
1917
1916
  })
1918
1917
  });
1919
1918
  f == "public" && (g.form.fields.push({
@@ -2067,17 +2066,17 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
2067
2066
  }, ve = () => {
2068
2067
  const f = ye(e.app_flag, e.modalType, null, m, !0, !0).required_condition, _ = {};
2069
2068
  return f && f.forEach((g) => {
2070
- const s = N.value_map[g.key];
2071
- s != null && (_[g.field_name] = s);
2069
+ const i = N.value_map[g.key];
2070
+ i != null && (_[g.field_name] = i);
2072
2071
  }), _;
2073
2072
  }, oe = (o) => {
2074
2073
  const f = [];
2075
2074
  o.forEach((_) => {
2076
- let g = null, s = null, t = null, n = null;
2077
- _.data.isShowGeneralFilter ? (g = {}, s = {}, t = _.data.group_condition, n = _.data.conditions) : (g = _.data.search_model, s = _.data.filter_map, t = {}, n = []), f.push({
2075
+ let g = null, i = null, t = null, n = null;
2076
+ _.data.isShowGeneralFilter ? (g = {}, i = {}, t = _.data.group_condition, n = _.data.conditions) : (g = _.data.search_model, i = _.data.filter_map, t = {}, n = []), f.push({
2078
2077
  id: _.id,
2079
2078
  search_model: g,
2080
- filter_map: s,
2079
+ filter_map: i,
2081
2080
  sort_fields: _.data.sort_fields,
2082
2081
  group_condition: t,
2083
2082
  conditions: n,
@@ -2175,7 +2174,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
2175
2174
  ]
2176
2175
  },
2177
2176
  ok: (f) => new Promise(function(_) {
2178
- if (y.value.map((s) => s.name).includes(f.name)) {
2177
+ if (y.value.map((i) => i.name).includes(f.name)) {
2179
2178
  J.error(m("视图名称已存在"));
2180
2179
  return;
2181
2180
  }
@@ -2228,7 +2227,7 @@ const Ue = "customviewdatauser", jl = "view_system_edit", Al = [
2228
2227
  });
2229
2228
  const Vl = { style: { "font-weight": "700" } }, ql = ["onClick"], Bl = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Dl = ["onClick"], Kl = ["onClick"], Nl = ["onClick"], Rl = { style: { "font-weight": "700" } }, Tl = ["onClick"], Gl = { style: { "max-width": "130px", float: "left", "white-space": "nowrap", overflow: "hidden" } }, Ll = ["onClick"], Jl = ["onClick"], zl = ["onClick"];
2230
2229
  function Pl(e, r, R, N, B, U) {
2231
- const i = $("caret-right-outlined"), V = $("setting-outlined"), y = $("a-tooltip"), m = $("plus-outlined"), p = $("a-menu-item"), d = $("a-menu"), h = $("a-dropdown"), w = $("a-table"), j = $("a-collapse-panel"), L = $("a-collapse"), Q = $("a-card");
2230
+ const s = $("caret-right-outlined"), V = $("setting-outlined"), y = $("a-tooltip"), m = $("plus-outlined"), p = $("a-menu-item"), d = $("a-menu"), h = $("a-dropdown"), w = $("a-table"), j = $("a-collapse-panel"), L = $("a-collapse"), Q = $("a-card");
2232
2231
  return u(), O(Q, {
2233
2232
  "body-style": { padding: 0, height: e.height + 96 + "px", overflowY: "auto" }
2234
2233
  }, {
@@ -2241,7 +2240,7 @@ function Pl(e, r, R, N, B, U) {
2241
2240
  style: { background: "rgb(255, 255, 255)" }
2242
2241
  }, {
2243
2242
  expandIcon: c(({ isActive: K }) => [
2244
- S(i, {
2243
+ S(s, {
2245
2244
  rotate: K ? 90 : 0
2246
2245
  }, null, 8, ["rotate"])
2247
2246
  ]),
@@ -2513,12 +2512,12 @@ const Wl = /* @__PURE__ */ x(Il, [["render", Pl]]), Hl = Z({
2513
2512
  }
2514
2513
  });
2515
2514
  function Yl(e, r, R, N, B, U) {
2516
- const i = $("view-manage"), V = $("a-card");
2515
+ const s = $("view-manage"), V = $("a-card");
2517
2516
  return u(), O(V, {
2518
2517
  "body-style": { padding: 0, height: e.selectObj.height + 96 + "px", overflowY: "auto" }
2519
2518
  }, {
2520
2519
  default: c(() => [
2521
- S(i, {
2520
+ S(s, {
2522
2521
  "select-obj": e.selectObj,
2523
2522
  onChange: e.change
2524
2523
  }, null, 8, ["select-obj", "onChange"])