@jeecg/online 3.6.2-beta → 3.7.0-beta

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 (118) hide show
  1. package/AiModal-fe3988fb.mjs +84 -0
  2. package/AuthButtonConfig-d50a0a65.mjs +134 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-eccfc38e.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-5a23d089.mjs} +154 -131
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-373e8058.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-02e3d897.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-9f13956f.mjs → DbToOnlineModal-f49b9530.mjs} +57 -51
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-c287af12.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-0544737d.mjs} +1 -1
  39. package/OnlCgformErpList-30e416c8.mjs +470 -0
  40. package/OnlCgformErpSubTable-9a876058.mjs +427 -0
  41. package/OnlCgformInnerSubTable-290ace5d.mjs +266 -0
  42. package/OnlCgformInnerTableList-f89b6687.mjs +458 -0
  43. package/OnlCgformTabList-7a2f2c03.mjs +408 -0
  44. package/OnlineAutoList-46c6c8b9.mjs +493 -0
  45. package/OnlineAutoModal-971bef13.mjs +236 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-2a271e0b.mjs} +74 -64
  49. package/OnlineForm-018981b2.mjs +924 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-e036cd11.mjs +342 -0
  52. package/OnlineFormUrlAdd-7fb3dcca.mjs +115 -0
  53. package/OnlineFormUrlDetail-b2292137.mjs +119 -0
  54. package/OnlineFormUrlEdit-44080fb3.mjs +113 -0
  55. package/OnlineFormUrlSuccess-af285b02.mjs +59 -0
  56. package/OnlineQueryForm-998c12a4.mjs +444 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-88143301.mjs} +22 -20
  62. package/OnlineTabForm-9ad7d29a.mjs +805 -0
  63. package/OnlineTabFormDetail-bbf23caa.mjs +327 -0
  64. package/PageAttributeTable-6c23547b.mjs +446 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-b42198f5.mjs} +32 -28
  66. package/QueryTable-96b3dbd0.mjs +144 -0
  67. package/SetSwitchOptions-a452fa0f.mjs +62 -0
  68. package/SuperQuery-cbfba908.mjs +975 -0
  69. package/{auth.data-8be5c9e3.mjs → auth.data-22948e87.mjs} +56 -14
  70. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  71. package/constant-fa63bd66.mjs +10 -0
  72. package/{enhance.data-efc7e155.mjs → enhance.data-3304d553.mjs} +3 -3
  73. package/index-173949bb.mjs +57 -0
  74. package/{index-49508cad.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-b7a05eef.mjs → index-d2abb8a0.mjs} +394 -361
  76. package/main.index.js +1 -1
  77. package/package.json +1 -1
  78. package/style.css +1 -1
  79. package/useCgformList-8755a94e.mjs +426 -0
  80. package/useExtendComponent-bb7cca20.mjs +4295 -0
  81. package/useFormUrl-2ee1a82d.mjs +24 -0
  82. package/useListButton-7ddb9a46.mjs +697 -0
  83. package/{useSchemas-0433a403.mjs → useSchemas-47e45edc.mjs} +167 -86
  84. package/{useTableSync-774c3774.mjs → useTableSync-f6089e8a.mjs} +1 -1
  85. package/AuthButtonConfig-244ec09f.mjs +0 -125
  86. package/AuthDataConfig-83891eea.mjs +0 -212
  87. package/AuthFieldConfig-6b21915c.mjs +0 -139
  88. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  89. package/AuthSetterModal-a414fb35.mjs +0 -267
  90. package/CgreportModal-2065f5a9.mjs +0 -13
  91. package/CheckDictTable-134cbb83.mjs +0 -211
  92. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  93. package/DetailForm-424638eb.mjs +0 -462
  94. package/EnhanceJsModal-05c73a59.mjs +0 -311
  95. package/ExtendConfigModal-1dde390a.mjs +0 -111
  96. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  97. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  98. package/OnlCgformErpList-db45e22b.mjs +0 -454
  99. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  100. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  101. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  102. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  103. package/OnlineAutoList-0583a910.mjs +0 -479
  104. package/OnlineAutoModal-510991eb.mjs +0 -207
  105. package/OnlineForm-1fa2d893.mjs +0 -750
  106. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  107. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  108. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  109. package/OnlineTabForm-512d3951.mjs +0 -766
  110. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  111. package/PageAttributeTable-965dc58e.mjs +0 -404
  112. package/QueryTable-eb9a5b21.mjs +0 -115
  113. package/SuperQuery-5d1ca957.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-0e3ab3af.mjs +0 -56
  116. package/useCgformList-423282b7.mjs +0 -400
  117. package/useExtendComponent-325fe3f1.mjs +0 -3926
  118. package/useListButton-cdbab702.mjs +0 -676
@@ -1,7 +1,7 @@
1
1
  var R = Object.defineProperty;
2
2
  var F = Object.getOwnPropertySymbols;
3
3
  var q = Object.prototype.hasOwnProperty, I = Object.prototype.propertyIsEnumerable;
4
- var w = (o, a, t) => a in o ? R(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t, T = (o, a) => {
4
+ var w = (o, a, t) => a in o ? R(o, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[a] = t, k = (o, a) => {
5
5
  for (var t in a || (a = {}))
6
6
  q.call(a, t) && w(o, t, a[t]);
7
7
  if (F)
@@ -9,29 +9,29 @@ var w = (o, a, t) => a in o ? R(o, a, { enumerable: !0, configurable: !0, writab
9
9
  I.call(a, t) && w(o, t, a[t]);
10
10
  return o;
11
11
  };
12
- var p = (o, a, t) => new Promise((i, s) => {
13
- var r = (n) => {
12
+ var p = (o, a, t) => new Promise((i, r) => {
13
+ var c = (n) => {
14
14
  try {
15
15
  d(t.next(n));
16
16
  } catch (f) {
17
- s(f);
17
+ r(f);
18
18
  }
19
- }, c = (n) => {
19
+ }, l = (n) => {
20
20
  try {
21
21
  d(t.throw(n));
22
22
  } catch (f) {
23
- s(f);
23
+ r(f);
24
24
  }
25
- }, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(r, c);
25
+ }, d = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(c, l);
26
26
  d((t = t.apply(o, a)).next());
27
27
  });
28
28
  import { BasicModal as P, useModalInner as H } from "/@/components/Modal";
29
- import { ref as b, resolveComponent as h, openBlock as J, createBlock as K, mergeProps as N, withCtx as k, createVNode as x } from "vue";
29
+ import { ref as b, resolveComponent as h, openBlock as J, createBlock as K, mergeProps as N, withCtx as y, createVNode as C } from "vue";
30
30
  import { BasicForm as $, useForm as j } from "/@/components/Form/index";
31
31
  import { defHttp as G } from "/@/utils/http/axios";
32
32
  import { omit as z } from "lodash-es";
33
33
  import { useMessage as D } from "/@/hooks/web/useMessage";
34
- import { _ as E } from "./index-0e3ab3af.mjs";
34
+ import { _ as E } from "./index-173949bb.mjs";
35
35
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
36
36
  import "vue-router";
37
37
  const Q = {
@@ -42,51 +42,51 @@ const Q = {
42
42
  BasicForm: $
43
43
  },
44
44
  setup(o, { emit: a }) {
45
- const t = b(!1), i = b([]), s = b([]);
46
- let r = {}, c = {};
45
+ const t = b(!1), i = b([]), r = b([]);
46
+ let c = {}, l = {};
47
47
  const { createMessage: d } = D(), [n, { closeModal: f }] = H((e) => p(this, null, function* () {
48
- c = T({}, e.record), r = e.tableAndFieldsMap, yield y(), yield _({ dictTable: e.record.dictTable }), setTimeout(() => p(this, null, function* () {
49
- let l = z(e.record, "dictTable");
50
- yield _(l), yield B();
48
+ l = k({}, e.record), c = e.tableAndFieldsMap, yield M(), yield T({ dictTable: e.record.dictTable }), l.dictTable && _(l.dictTable), setTimeout(() => p(this, null, function* () {
49
+ let s = z(e.record, "dictTable");
50
+ yield T(s), yield O();
51
51
  }), 200);
52
52
  }));
53
- function y() {
53
+ function M() {
54
54
  return p(this, null, function* () {
55
- let e = Object.keys(r);
55
+ let e = Object.keys(c);
56
56
  if (!e || e.length == 0)
57
57
  i.value = [];
58
58
  else {
59
- let l = [];
59
+ let s = [];
60
60
  for (let m of e)
61
- l.push({
62
- text: r[m].title,
61
+ s.push({
62
+ text: c[m].title,
63
63
  value: m
64
64
  });
65
- i.value = l;
65
+ i.value = s;
66
66
  }
67
67
  });
68
68
  }
69
- function C(e) {
69
+ function _(e) {
70
70
  return p(this, null, function* () {
71
71
  if (e) {
72
- const { table: l, fields: m } = r[e];
73
- if (!l) {
72
+ const { table: s, fields: m } = c[e];
73
+ if (!s) {
74
74
  d.warning("请先完善字段[" + e + "]关联记录的配置");
75
75
  return;
76
76
  }
77
- const V = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: V, params: { headCode: l } });
77
+ const V = "/online/cgform/field/listByHeadCode", g = yield G.get({ url: V, params: { headCode: s } });
78
78
  if (g && g.length > 0) {
79
79
  let L = g.map((u) => ({
80
80
  text: u.dbFieldTxt,
81
81
  value: u.dbFieldName
82
82
  })), A = m.split(",");
83
- s.value = L.filter((u) => A.indexOf(u.value) > 0);
83
+ r.value = L.filter((u) => A.includes(u.value));
84
84
  } else
85
- s.value = [];
85
+ r.value = [];
86
86
  }
87
87
  });
88
88
  }
89
- const M = [
89
+ const x = [
90
90
  {
91
91
  label: "rowKey",
92
92
  field: "rowKey",
@@ -110,9 +110,9 @@ const Q = {
110
110
  dictOptions: i.value,
111
111
  immediateChange: !0,
112
112
  onChange: (m) => p(this, null, function* () {
113
- c.dictText && (yield e.setFieldsValue({
113
+ l.dictText && (yield e.setFieldsValue({
114
114
  dictText: ""
115
- }), yield e.clearValidate()), C(m);
115
+ }), yield e.clearValidate()), _(m);
116
116
  })
117
117
  })
118
118
  },
@@ -124,33 +124,33 @@ const Q = {
124
124
  componentProps: {
125
125
  async: !1,
126
126
  popContainer: ".link-table-field-config-modal",
127
- dictOptions: s,
127
+ dictOptions: r,
128
128
  onChange: (e) => {
129
- c.dictText = e;
129
+ l.dictText = e;
130
130
  }
131
131
  }
132
132
  }
133
- ], [O, { validate: v, setFieldsValue: _, clearValidate: B }] = j({
134
- schemas: M,
133
+ ], [v, { validate: B, setFieldsValue: T, clearValidate: O }] = j({
134
+ schemas: x,
135
135
  showActionButtonGroup: !1,
136
136
  labelAlign: "right"
137
137
  });
138
138
  function S() {
139
139
  return p(this, null, function* () {
140
- const e = yield v();
140
+ const e = yield B();
141
141
  a("success", e), f();
142
142
  });
143
143
  }
144
144
  return {
145
145
  registerModal: n,
146
146
  spinningLoading: t,
147
- registerForm: O,
147
+ registerForm: v,
148
148
  handleSubmit: S
149
149
  };
150
150
  }
151
151
  };
152
- function U(o, a, t, i, s, r) {
153
- const c = h("BasicForm"), d = h("a-spin"), n = h("BasicModal");
152
+ function U(o, a, t, i, r, c) {
153
+ const l = h("BasicForm"), d = h("a-spin"), n = h("BasicModal");
154
154
  return J(), K(n, N({ wrapClassName: "link-table-field-config-modal" }, o.$attrs, {
155
155
  title: "他表字段配置",
156
156
  onRegister: i.registerModal,
@@ -159,10 +159,10 @@ function U(o, a, t, i, s, r) {
159
159
  cancelText: "关闭",
160
160
  onOk: i.handleSubmit
161
161
  }), {
162
- default: k(() => [
163
- x(d, { spinning: i.spinningLoading }, {
164
- default: k(() => [
165
- x(c, { onRegister: i.registerForm }, null, 8, ["onRegister"])
162
+ default: y(() => [
163
+ C(d, { spinning: i.spinningLoading }, {
164
+ default: y(() => [
165
+ C(l, { onRegister: i.registerForm }, null, 8, ["onRegister"])
166
166
  ]),
167
167
  _: 1
168
168
  }, 8, ["spinning"])
@@ -1,6 +1,6 @@
1
1
  import { propTypes as o } from "/@/utils/propTypes";
2
2
  import { openBlock as a, createElementBlock as s, createElementVNode as l, toDisplayString as p } from "vue";
3
- import { _ as c } from "./index-0e3ab3af.mjs";
3
+ import { _ as c } from "./index-173949bb.mjs";
4
4
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
5
  import "/@/hooks/web/useMessage";
6
6
  import "vue-router";
@@ -2,7 +2,7 @@ import { defineComponent as i, resolveComponent as p, openBlock as a, createElem
2
2
  import { BasicForm as d, useForm as u } from "/@/components/Form/index";
3
3
  import { defHttp as f } from "/@/utils/http/axios";
4
4
  import { pick as _ } from "lodash-es";
5
- import { _ as g } from "./index-0e3ab3af.mjs";
5
+ import { _ as g } from "./index-173949bb.mjs";
6
6
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
7
  import "/@/hooks/web/useMessage";
8
8
  import "vue-router";
@@ -0,0 +1,470 @@
1
+ var I = (K, b, g) => new Promise((h, C) => {
2
+ var E = (a) => {
3
+ try {
4
+ k(g.next(a));
5
+ } catch (r) {
6
+ C(r);
7
+ }
8
+ }, T = (a) => {
9
+ try {
10
+ k(g.throw(a));
11
+ } catch (r) {
12
+ C(r);
13
+ }
14
+ }, k = (a) => a.done ? h(a.value) : Promise.resolve(a.value).then(E, T);
15
+ k((g = g.apply(K, b)).next());
16
+ });
17
+ import { ref as _, watch as j, resolveComponent as R, openBlock as n, createElementBlock as d, createElementVNode as F, createVNode as p, unref as e, createBlock as u, normalizeClass as Ge, withCtx as l, createTextVNode as f, createCommentVNode as m, Fragment as H, renderList as V, toDisplayString as L, withDirectives as Ue, vShow as We, mergeProps as Xe, toHandlers as Ye, resolveDynamicComponent as Ze, normalizeProps as eo, guardReactiveProps as oo } from "vue";
18
+ import { BasicTable as to, TableAction as no } from "/@/components/Table";
19
+ import { useMessage as io } from "/@/hooks/web/useMessage";
20
+ import lo from "./OnlineAutoModal-971bef13.mjs";
21
+ import ro from "./OnlineCustomModal-594244f3.mjs";
22
+ import q from "./OnlineDetailModal-2a271e0b.mjs";
23
+ import ao from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
+ import { u as so, a as co } from "./useListButton-7ddb9a46.mjs";
25
+ import { u as uo, a as po, O as mo, g as go } from "./useExtendComponent-bb7cca20.mjs";
26
+ import fo from "./OnlineQueryForm-998c12a4.mjs";
27
+ import yo from "./SuperQuery-cbfba908.mjs";
28
+ import { u as _o } from "./useOnlinePopEvent-687070b7.mjs";
29
+ import bo from "./OnlCgformErpSubTable-9a876058.mjs";
30
+ import { E as G } from "./constant-fa63bd66.mjs";
31
+ import { cloneDeep as ho } from "lodash-es";
32
+ import "/@/components/Modal";
33
+ import "./OnlineForm-018981b2.mjs";
34
+ import "/@/components/Form/index";
35
+ import "/@/utils/http/axios";
36
+ import "/@/utils";
37
+ import "/@/components/Loading";
38
+ import "/@/components/jeecg/JVxeTable/types";
39
+ import "/@/utils/auth";
40
+ import "@ant-design/icons-vue";
41
+ import "/@/hooks/core/useContext";
42
+ import "/@/utils/mitt";
43
+ import "./useCustomHook-acb00837.mjs";
44
+ import "/@/utils/cache";
45
+ import "/@/utils/common/compUtils";
46
+ import "/@/store/modules/user";
47
+ import "/@/hooks/web/useAppInject";
48
+ import "/@/utils/is";
49
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
50
+ import "./index-173949bb.mjs";
51
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
52
+ import "vue-router";
53
+ import "/@/components/jeecg/comment/CommentPanel.vue";
54
+ import "./OnlineFormDetail-e036cd11.mjs";
55
+ import "./DetailForm-4aa2570b.mjs";
56
+ import "/@/utils/propTypes";
57
+ import "/@/utils/dict";
58
+ import "/@/utils/dict/JDictSelectUtil";
59
+ import "/@/utils/dict/index";
60
+ import "/@/api/common/api";
61
+ import "/@/components/Form/src/utils/Area";
62
+ import "/@/components/Preview/index";
63
+ import "/@/components/Markdown";
64
+ import "./OnlineSubFormDetail-03f8ee5c.mjs";
65
+ import "/@/router";
66
+ import "/@/hooks/core/onMountedOrActivated";
67
+ import "/@/store/modules/multipleTab";
68
+ import "./cgformState-d9f8ec42.mjs";
69
+ import "pinia";
70
+ import "/@/store";
71
+ import "ant-design-vue";
72
+ import "/@/hooks/system/useMethods";
73
+ import "/@/components/Form/src/componentMap";
74
+ import "/@/components/Form/src/jeecg/components/JUpload";
75
+ import "/@/views/system/user/user.api";
76
+ import "/@/utils/desform/customExpression";
77
+ import "/@/store/modules/permission";
78
+ import "/@/hooks/system/useListPage";
79
+ import "./LinkTableListPiece-2660d709.mjs";
80
+ import "/@/assets/images/placeholderImage.png";
81
+ import "./OnlineSelectCascade-471fcc76.mjs";
82
+ import "./JModalTip-4a83aaed.mjs";
83
+ import "@vueuse/core";
84
+ import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
85
+ import "./SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs";
86
+ import "/@/hooks/web/useDesign";
87
+ const Co = { class: "p-2 cgformErpList" }, ko = { class: "content" }, vo = {
88
+ key: 0,
89
+ style: { "font-size": "12px", "font-style": "italic" }
90
+ }, So = {
91
+ key: 0,
92
+ style: { "font-size": "12px", "font-style": "italic" }
93
+ }, wo = ["src", "onClick"], Ro = ["innerHTML", "onClick"], To = ["innerHTML"], Mo = ["title"], Ut = {
94
+ __name: "OnlCgformErpList",
95
+ setup(K) {
96
+ const b = _([]), g = _(0), h = _(null), C = _({}), { createMessage: E } = io(), T = _({}), k = (t, i) => {
97
+ T.value[t] = i;
98
+ }, {
99
+ ID: a,
100
+ onlineTableContext: r,
101
+ onlineQueryFormOuter: U,
102
+ loading: B,
103
+ reload: y,
104
+ dataSource: Q,
105
+ pagination: W,
106
+ handleSpecialConfig: X,
107
+ getColumnList: Y,
108
+ handleChangeInTable: Z,
109
+ loadData: ee,
110
+ superQueryButtonRef: O,
111
+ superQueryStatus: oe,
112
+ handleSuperQuery: te,
113
+ onlineExtConfigJson: J,
114
+ handleFormConfig: ne,
115
+ registerCustomModal: ie,
116
+ tableReloading: le
117
+ } = so({ themeTemplate: G });
118
+ if (!a.value)
119
+ throw E.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
120
+ let { initCgEnhanceJs: re } = uo(r);
121
+ const {
122
+ buttonSwitch: v,
123
+ cgLinkButtonList: Io,
124
+ cgTopButtonList: x,
125
+ importUrl: ae,
126
+ registerModal: se,
127
+ handleAdd: ce,
128
+ handleEdit: Lo,
129
+ handleBatchDelete: ue,
130
+ registerImportModal: pe,
131
+ onImportExcel: de,
132
+ onExportExcel: me,
133
+ cgButtonJsHandler: ge,
134
+ cgButtonActionHandler: fe,
135
+ cgButtonLinkHandler: Eo,
136
+ handleSubmitFlow: Bo,
137
+ getDropDownActions: ye,
138
+ getActions: _e,
139
+ initButtonList: be,
140
+ initButtonSwitch: he,
141
+ registerDetailModal: Ce,
142
+ registerBpmModal: ke
143
+ } = co(r, J, {
144
+ singleDelCallback: (t) => {
145
+ Array.isArray(r.selectedRowKeys) && r.selectedRowKeys.includes(t) && r.clearSelectedRow();
146
+ },
147
+ editClickCallback: (t, i) => {
148
+ Array.isArray(r.selectedRowKeys) && r.selectedRowKeys.includes(t) && i.stopPropagation();
149
+ }
150
+ }), D = _(!1);
151
+ function ve() {
152
+ return I(this, null, function* () {
153
+ try {
154
+ D.value = !0, yield me();
155
+ } finally {
156
+ setTimeout(() => D.value = !1, 1500);
157
+ }
158
+ });
159
+ }
160
+ const {
161
+ columns: Se,
162
+ actionColumn: we,
163
+ selectedKeys: S,
164
+ rowSelection: Re,
165
+ enableScrollBar: Te,
166
+ tableScroll: Me,
167
+ downloadRowFile: Ie,
168
+ getImgView: Le,
169
+ getPcaText: $,
170
+ getFormatDate: Ee,
171
+ handleColumnResult: Be,
172
+ hrefComponent: M,
173
+ viewOnlineCellImage: Oe,
174
+ hrefMainTableId: xe,
175
+ registerOnlineHrefModal: De,
176
+ registerPopModal: Pe,
177
+ openPopModal: Ae,
178
+ onlinePopModalRef: Fe,
179
+ popTableId: N,
180
+ handleClickFieldHref: He
181
+ } = po(r, J);
182
+ j(
183
+ S,
184
+ (t) => {
185
+ var i;
186
+ (i = S.value) != null && i.length ? h.value = Q.value.find((s) => s.id === S.value[0]) : h.value = null;
187
+ },
188
+ {
189
+ immediate: !0
190
+ }
191
+ ), j(
192
+ a,
193
+ () => {
194
+ Ke();
195
+ },
196
+ { immediate: !0 }
197
+ );
198
+ function Ke() {
199
+ return I(this, null, function* () {
200
+ B.value = !0;
201
+ let t = yield Y(G);
202
+ Qe(t.main), b.value = t.subList, yield ee(), B.value = !1, r.execButtonEnhance("setup");
203
+ });
204
+ }
205
+ function Qe(t) {
206
+ let i = re(t.enhanceJs);
207
+ r.EnhanceJS = i, be(t.cgButtonList), he(t.hideColumns), Be(t, "radio"), X(t), C.value = {
208
+ cacheKey: `online_erp_mainTable_${t.currentTableName}`
209
+ };
210
+ }
211
+ function Je(t) {
212
+ r.queryParam = t, y({ mode: "search" });
213
+ }
214
+ function $e() {
215
+ return I(this, arguments, function* (t = {}) {
216
+ yield go(O);
217
+ const i = ho(t), { properties: s = {} } = i;
218
+ Object.entries(s).forEach(([P, A]) => {
219
+ A.view == "table" && delete s[P];
220
+ }), O.value.init(i);
221
+ });
222
+ }
223
+ function Ne(t) {
224
+ N.value = t.id;
225
+ let i = {
226
+ title: t.describe
227
+ };
228
+ t.record && t.record.id && (i.record = t.record, i.isUpdate = !0), Ae(!0, i);
229
+ }
230
+ _o(Ne);
231
+ const ze = (t, i) => {
232
+ te(t, i), S.value = [];
233
+ };
234
+ return (t, i) => {
235
+ var z;
236
+ const s = R("a-button"), P = R("a-tab-pane"), A = R("a-tabs"), je = R("a-modal"), Ve = R("BpmGraphicModal");
237
+ return n(), d("div", Co, [
238
+ F("div", ko, [
239
+ p(fo, {
240
+ ref_key: "onlineQueryFormOuter",
241
+ ref: U,
242
+ id: e(a),
243
+ onSearch: Je,
244
+ onLoaded: $e
245
+ }, null, 8, ["id"]),
246
+ e(le) ? m("", !0) : (n(), u(e(to), {
247
+ key: 0,
248
+ ref: "onlineTable",
249
+ rowKey: "jeecg_row_key",
250
+ canResize: !0,
251
+ bordered: !0,
252
+ showIndexColumn: !1,
253
+ loading: e(B),
254
+ columns: e(Se),
255
+ dataSource: e(Q),
256
+ pagination: e(W),
257
+ rowSelection: e(Re),
258
+ actionColumn: e(we),
259
+ showTableSetting: !0,
260
+ clickToRowSelect: !0,
261
+ scroll: e(Me),
262
+ onTableRedo: e(y),
263
+ tableSetting: C.value,
264
+ class: Ge({ "j-table-force-nowrap": e(Te) }),
265
+ onChange: e(Z)
266
+ }, {
267
+ tableTitle: l(() => [
268
+ e(v).add ? (n(), u(s, {
269
+ key: 0,
270
+ preIcon: "ant-design:plus-outlined",
271
+ type: "primary",
272
+ onClick: e(ce)
273
+ }, {
274
+ default: l(() => [
275
+ f("新增")
276
+ ]),
277
+ _: 1
278
+ }, 8, ["onClick"])) : m("", !0),
279
+ e(v).import ? (n(), u(s, {
280
+ key: 1,
281
+ preIcon: "ant-design:import-outlined",
282
+ type: "primary",
283
+ onClick: e(de)
284
+ }, {
285
+ default: l(() => [
286
+ f("导入")
287
+ ]),
288
+ _: 1
289
+ }, 8, ["onClick"])) : m("", !0),
290
+ e(v).export ? (n(), u(s, {
291
+ key: 2,
292
+ preIcon: "ant-design:export-outlined",
293
+ type: "primary",
294
+ loading: D.value,
295
+ onClick: ve
296
+ }, {
297
+ default: l(() => [
298
+ f(" 导出")
299
+ ]),
300
+ _: 1
301
+ }, 8, ["loading"])) : m("", !0),
302
+ e(x) && e(x).length > 0 ? (n(!0), d(H, { key: 3 }, V(e(x), (o, c) => (n(), d(H, null, [
303
+ o.optType == "js" ? (n(), u(s, {
304
+ key: "cgbtn" + c,
305
+ onClick: (w) => e(ge)(o.buttonCode),
306
+ type: "primary",
307
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
308
+ }, {
309
+ default: l(() => [
310
+ f(L(o.buttonName), 1)
311
+ ]),
312
+ _: 2
313
+ }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (n(), u(s, {
314
+ key: "cgbtn" + c,
315
+ onClick: (w) => e(fe)(o.buttonCode),
316
+ type: "primary",
317
+ preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
318
+ }, {
319
+ default: l(() => [
320
+ f(L(o.buttonName), 1)
321
+ ]),
322
+ _: 2
323
+ }, 1032, ["onClick", "preIcon"])) : m("", !0)
324
+ ], 64))), 256)) : m("", !0),
325
+ e(v).batch_delete ? Ue((n(), u(s, {
326
+ key: 4,
327
+ preIcon: "ant-design:delete-outlined",
328
+ onClick: e(ue)
329
+ }, {
330
+ default: l(() => [
331
+ f(" 批量删除")
332
+ ]),
333
+ _: 1
334
+ }, 8, ["onClick"])), [
335
+ [We, e(S).length > 0]
336
+ ]) : m("", !0),
337
+ e(v).super_query ? (n(), u(yo, {
338
+ key: 5,
339
+ ref_key: "superQueryButtonRef",
340
+ ref: O,
341
+ online: "",
342
+ status: e(oe),
343
+ onSearch: ze
344
+ }, null, 8, ["status"])) : m("", !0)
345
+ ]),
346
+ fileSlot: l(({ text: o, record: c, column: w }) => [
347
+ o ? (n(), u(s, {
348
+ key: 1,
349
+ ghost: !0,
350
+ type: "primary",
351
+ preIcon: "ant-design:download",
352
+ size: "small",
353
+ onClick: (qe) => e(Ie)(o, c, w, e(a))
354
+ }, {
355
+ default: l(() => [
356
+ f(" 下载 ")
357
+ ]),
358
+ _: 2
359
+ }, 1032, ["onClick"])) : (n(), d("span", vo, "无文件"))
360
+ ]),
361
+ imgSlot: l(({ text: o }) => [
362
+ o ? (n(), d("img", {
363
+ key: 1,
364
+ src: e(Le)(o),
365
+ alt: "图片不存在",
366
+ class: "online-cell-image",
367
+ onClick: (c) => e(Oe)(o)
368
+ }, null, 8, wo)) : (n(), d("span", So, "无图片"))
369
+ ]),
370
+ htmlSlot: l(({ text: o, column: c, record: w }) => [
371
+ c.fieldHref ? (n(), d("a", {
372
+ key: 0,
373
+ innerHTML: o,
374
+ onClick: (qe) => e(He)(c.fieldHref, w)
375
+ }, null, 8, Ro)) : (n(), d("div", {
376
+ key: 1,
377
+ innerHTML: o
378
+ }, null, 8, To))
379
+ ]),
380
+ pcaSlot: l(({ text: o }) => [
381
+ F("div", {
382
+ title: e($)(o)
383
+ }, L(e($)(o)), 9, Mo)
384
+ ]),
385
+ dateSlot: l(({ text: o, column: c }) => [
386
+ F("span", null, L(e(Ee)(o, c)), 1)
387
+ ]),
388
+ action: l(({ record: o }) => [
389
+ p(e(no), {
390
+ actions: e(_e)(o),
391
+ dropDownActions: e(ye)(o)
392
+ }, null, 8, ["actions", "dropDownActions"])
393
+ ]),
394
+ _: 1
395
+ }, 8, ["loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "tableSetting", "class", "onChange"])),
396
+ (z = b.value) != null && z.length ? (n(), u(A, {
397
+ key: 1,
398
+ animated: "",
399
+ activeKey: g.value,
400
+ "onUpdate:activeKey": i[0] || (i[0] = (o) => g.value = o),
401
+ style: { margin: "10px" }
402
+ }, {
403
+ default: l(() => [
404
+ (n(!0), d(H, null, V(b.value, (o, c) => (n(), u(P, {
405
+ tab: o.description,
406
+ key: c,
407
+ forceRender: ""
408
+ }, {
409
+ default: l(() => [
410
+ p(bo, {
411
+ data: o,
412
+ mainTableSelectedRowRcord: h.value,
413
+ onGetSource: k
414
+ }, null, 8, ["data", "mainTableSelectedRowRcord"])
415
+ ]),
416
+ _: 2
417
+ }, 1032, ["tab"]))), 128))
418
+ ]),
419
+ _: 1
420
+ }, 8, ["activeKey"])) : m("", !0),
421
+ p(lo, {
422
+ id: e(a),
423
+ subTableSource: T.value,
424
+ onRegister: e(se),
425
+ onSuccess: e(y),
426
+ onFormConfig: e(ne)
427
+ }, null, 8, ["id", "subTableSource", "onRegister", "onSuccess", "onFormConfig"]),
428
+ p(q, {
429
+ id: e(a),
430
+ onRegister: e(Ce)
431
+ }, null, 8, ["id", "onRegister"]),
432
+ p(ao, {
433
+ onRegister: e(pe),
434
+ url: e(ae)(),
435
+ onOk: e(y),
436
+ online: ""
437
+ }, null, 8, ["onRegister", "url", "onOk"]),
438
+ p(je, Xe(e(M).model, Ye(e(M).on)), {
439
+ default: l(() => [
440
+ (n(), u(Ze(e(M).is), eo(oo(e(M).params)), null, 16))
441
+ ]),
442
+ _: 1
443
+ }, 16),
444
+ p(ro, {
445
+ onRegister: e(ie),
446
+ onSuccess: e(y)
447
+ }, null, 8, ["onRegister", "onSuccess"]),
448
+ p(q, {
449
+ id: e(xe),
450
+ onRegister: e(De),
451
+ defaultFullscreen: !1
452
+ }, null, 8, ["id", "onRegister"]),
453
+ p(mo, {
454
+ ref_key: "onlinePopModalRef",
455
+ ref: Fe,
456
+ id: e(N),
457
+ onRegister: e(Pe),
458
+ onSuccess: e(y),
459
+ request: "",
460
+ topTip: ""
461
+ }, null, 8, ["id", "onRegister", "onSuccess"]),
462
+ p(Ve, { onRegister: e(ke) }, null, 8, ["onRegister"])
463
+ ])
464
+ ]);
465
+ };
466
+ }
467
+ };
468
+ export {
469
+ Ut as default
470
+ };