@jeecg/online 3.6.2-beta → 3.7.1-RC

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 (127) hide show
  1. package/AiModal-6de335e3.mjs +84 -0
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-3aa0ed49.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/AuthDataConfig-5c3a8e6b.mjs +238 -0
  5. package/{AuthDataTree-94e026e3.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-69864163.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/AuthManagerDrawer-76f15e8d.mjs +119 -0
  9. package/AuthSetterModal-f5d2e87f.mjs +274 -0
  10. package/{CgformCopyList-14b76108.mjs → CgformCopyList-365b3e8f.mjs} +49 -46
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c89d9222.mjs → CgreportModal-edefa8e3.mjs} +153 -129
  13. package/CheckDictTable-1bc8322d.mjs +229 -0
  14. package/{CodeFileListModal-a6d3290d.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/CodeFileViewModal-2fe911f4.mjs +253 -0
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/CustomButtonList-f07bc695.mjs +397 -0
  18. package/{DBAttributeTable-370de07b.mjs → DBAttributeTable-285d40db.mjs} +118 -89
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/DetailForm-deecbf3d.mjs +486 -0
  21. package/{EnhanceJavaModal-f63aa2d3.mjs → EnhanceJavaModal-45c66cd5.mjs} +3 -3
  22. package/{EnhanceJsHistory-352b46b1.mjs → EnhanceJsHistory-fab3102e.mjs} +2 -2
  23. package/EnhanceJsModal-175357a1.mjs +548 -0
  24. package/{EnhanceSqlModal-5e4ae84f.mjs → EnhanceSqlModal-7ea1b300.mjs} +3 -3
  25. package/ExtendConfigModal-a89ae052.mjs +117 -0
  26. package/FieldExtendJsonModal-32135634.mjs +277 -0
  27. package/{FileSelectModal-9a02560b.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-6a843c4b.mjs → ForeignKeyTable-7f7e28a7.mjs} +3 -3
  29. package/{IndexTable-f8af9d44.mjs → IndexTable-cdcc2b48.mjs} +28 -20
  30. package/{JModalTip-33c7dc44.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-fa85523d.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-8b8dfe21.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-dc24ef2f.mjs → LeftUser-22baa378.mjs} +3 -3
  35. package/LinkTableConfigModal-9242d750.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-787bc55c.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +41 -41
  37. package/{LinkTableListPiece-8499a318.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-977a49eb.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/OnlCgformErpList-58acdfa0.mjs +470 -0
  40. package/OnlCgformErpSubTable-9b1e1938.mjs +426 -0
  41. package/OnlCgformInnerSubTable-6c23781f.mjs +265 -0
  42. package/OnlCgformInnerTableList-4b5e14ed.mjs +458 -0
  43. package/OnlCgformTabList-019ad753.mjs +408 -0
  44. package/OnlineAutoList-48589d09.mjs +493 -0
  45. package/OnlineAutoModal-c2928847.mjs +239 -0
  46. package/{OnlineAutoTreeList-89265688.mjs → OnlineAutoTreeList-3baa1d00.mjs} +207 -204
  47. package/{OnlineCustomModal-518ad33c.mjs → OnlineCustomModal-9e17b6ce.mjs} +16 -12
  48. package/{OnlineDetailModal-9675390d.mjs → OnlineDetailModal-d5895734.mjs} +74 -64
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs +1 -0
  51. package/OnlineFormDetail-022ca117.mjs +342 -0
  52. package/OnlineFormUrlAdd-9715d70a.mjs +115 -0
  53. package/OnlineFormUrlDetail-8f864b1a.mjs +119 -0
  54. package/OnlineFormUrlEdit-ac985b36.mjs +113 -0
  55. package/OnlineFormUrlSuccess-3dfc54ab.mjs +59 -0
  56. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  57. package/{OnlineSearchFormItem-0cc85a8a.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  58. package/{OnlineSelectCascade-4265c95d.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  59. package/{OnlineSubFormDetail-f0d2c016.mjs → OnlineSubFormDetail-58e896ce.mjs} +30 -28
  60. package/OnlineTabAutoModal-47b18ad6.mjs +306 -0
  61. package/{OnlineTabDetailModal-7356d3a8.mjs → OnlineTabDetailModal-82de1465.mjs} +22 -20
  62. package/OnlineTabForm-27655c83.mjs +817 -0
  63. package/OnlineTabFormDetail-8d0c40c0.mjs +327 -0
  64. package/PageAttributeTable-25e3b7da.mjs +466 -0
  65. package/{ProcessOnlineForm-67558898.mjs → ProcessOnlineForm-148632fe.mjs} +66 -56
  66. package/QueryTable-f7bfca7f.mjs +147 -0
  67. package/SetSwitchOptions-b2af757f.mjs +62 -0
  68. package/SuperQuery-a8592995.mjs +967 -0
  69. package/auth.api-ea1d33d4.mjs +41 -0
  70. package/auth.data-511e5197.mjs +217 -0
  71. package/{cgform.data-cbdd88c3.mjs → cgform.data-475d4984.mjs} +5 -1
  72. package/constant-fa63bd66.mjs +10 -0
  73. package/{enhance.data-efc7e155.mjs → enhance.data-a67572e1.mjs} +11 -10
  74. package/index-1d1a6e56.mjs +57 -0
  75. package/{index-b7a05eef.mjs → index-30e0e923.mjs} +396 -362
  76. package/{index-49508cad.mjs → index-f30613d1.mjs} +29 -27
  77. package/main.index.js +1 -1
  78. package/package.json +1 -1
  79. package/style.css +1 -1
  80. package/useCgformList-f41d4dc1.mjs +426 -0
  81. package/useExtendComponent-dcae5c78.mjs +4399 -0
  82. package/useFormUrl-2ee1a82d.mjs +24 -0
  83. package/useListButton-bfac4ecf.mjs +697 -0
  84. package/{useSchemas-0433a403.mjs → useSchemas-a9c75b0f.mjs} +191 -101
  85. package/useTableSync-d7e9f18d.mjs +89 -0
  86. package/AuthButtonConfig-244ec09f.mjs +0 -125
  87. package/AuthDataConfig-83891eea.mjs +0 -212
  88. package/AuthFieldConfig-6b21915c.mjs +0 -139
  89. package/AuthManagerDrawer-300dd4e4.mjs +0 -114
  90. package/AuthSetterModal-a414fb35.mjs +0 -267
  91. package/CgformModal-eccfc38e.mjs +0 -611
  92. package/CgreportModal-2065f5a9.mjs +0 -13
  93. package/CheckDictTable-134cbb83.mjs +0 -211
  94. package/CodeFileViewModal-373e8058.mjs +0 -244
  95. package/CodeGeneratorModal-f08a89cd.mjs +0 -233
  96. package/CustomButtonList-02e3d897.mjs +0 -363
  97. package/DbToOnlineModal-9f13956f.mjs +0 -160
  98. package/DetailForm-424638eb.mjs +0 -462
  99. package/EnhanceJsModal-05c73a59.mjs +0 -311
  100. package/ExtendConfigModal-1dde390a.mjs +0 -111
  101. package/FieldExtendJsonModal-a70a9ccd.mjs +0 -219
  102. package/JOnlineSearchSelect-c287af12.mjs +0 -95
  103. package/LinkTableConfigModal-d4fbdef2.mjs +0 -230
  104. package/OnlCgformErpList-db45e22b.mjs +0 -454
  105. package/OnlCgformErpSubTable-54b50eec.mjs +0 -403
  106. package/OnlCgformInnerSubTable-fbca73e0.mjs +0 -253
  107. package/OnlCgformInnerTableList-782eaf04.mjs +0 -444
  108. package/OnlCgformTabList-a9e1e36a.mjs +0 -395
  109. package/OnlineAutoList-0583a910.mjs +0 -479
  110. package/OnlineAutoModal-510991eb.mjs +0 -207
  111. package/OnlineForm-1fa2d893.mjs +0 -750
  112. package/OnlineFormDetail-0e7294ca.mjs +0 -297
  113. package/OnlineQueryForm-1bfc8320.mjs +0 -386
  114. package/OnlineTabAutoModal-6f636ee2.mjs +0 -254
  115. package/OnlineTabForm-512d3951.mjs +0 -766
  116. package/OnlineTabFormDetail-5a70219d.mjs +0 -324
  117. package/PageAttributeTable-965dc58e.mjs +0 -404
  118. package/QueryTable-eb9a5b21.mjs +0 -115
  119. package/SuperQuery-5d1ca957.mjs +0 -843
  120. package/auth.api-d3a6c4b3.mjs +0 -39
  121. package/auth.data-8be5c9e3.mjs +0 -141
  122. package/constant-754f1a9d.mjs +0 -9
  123. package/index-0e3ab3af.mjs +0 -56
  124. package/useCgformList-423282b7.mjs +0 -400
  125. package/useExtendComponent-325fe3f1.mjs +0 -3926
  126. package/useListButton-cdbab702.mjs +0 -676
  127. package/useTableSync-774c3774.mjs +0 -87
@@ -0,0 +1,240 @@
1
+ var R = Object.defineProperty;
2
+ var C = Object.getOwnPropertySymbols;
3
+ var J = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
4
+ var S = (i, a, l) => a in i ? R(i, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[a] = l, T = (i, a) => {
5
+ for (var l in a || (a = {}))
6
+ J.call(a, l) && S(i, l, a[l]);
7
+ if (C)
8
+ for (var l of C(a))
9
+ q.call(a, l) && S(i, l, a[l]);
10
+ return i;
11
+ };
12
+ var u = (i, a, l) => new Promise((s, f) => {
13
+ var n = (o) => {
14
+ try {
15
+ d(l.next(o));
16
+ } catch (c) {
17
+ f(c);
18
+ }
19
+ }, h = (o) => {
20
+ try {
21
+ d(l.throw(o));
22
+ } catch (c) {
23
+ f(c);
24
+ }
25
+ }, d = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(n, h);
26
+ d((l = l.apply(i, a)).next());
27
+ });
28
+ import { BasicModal as A, useModalInner as G } from "/@/components/Modal";
29
+ import { ref as b, computed as H, resolveComponent as _, openBlock as K, createBlock as $, mergeProps as j, withCtx as k, createVNode as M } from "vue";
30
+ import { BasicForm as z, useForm as D } from "/@/components/Form/index";
31
+ import { defHttp as E } from "/@/utils/http/axios";
32
+ import { omit as Q } from "lodash-es";
33
+ import { useMessage as U } from "/@/hooks/web/useMessage";
34
+ import { _ as W } from "./index-1d1a6e56.mjs";
35
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
36
+ import "vue-router";
37
+ const X = {
38
+ name: "LinkTableConfigModal",
39
+ emits: ["success", "register"],
40
+ components: {
41
+ BasicModal: A,
42
+ BasicForm: z
43
+ },
44
+ setup(i, { emit: a }) {
45
+ const l = b(!1), { createMessage: s } = U(), f = b("");
46
+ let n = {};
47
+ const [h, { closeModal: d }] = G((e) => u(this, null, function* () {
48
+ n = T({}, e.record), yield w({ dictTable: e.record.dictTable }), setTimeout(() => u(this, null, function* () {
49
+ let r = Q(e.record, "dictTable");
50
+ yield w(r), yield I();
51
+ }), 200), f.value = e.fieldName;
52
+ })), o = b(""), c = b(""), F = b([]), v = b([]);
53
+ function x(e) {
54
+ return u(this, null, function* () {
55
+ if (e) {
56
+ const r = "/online/cgform/field/listByHeadCode", m = yield E.get({ url: r, params: { headCode: e } });
57
+ if (m && m.length > 0) {
58
+ let p = m.filter((t) => t.dbFieldName != "id" && t.dbIsPersist == 1 && t.isShowList == 1);
59
+ p.length > 0 ? F.value = p.map((t) => ({
60
+ text: t.dbFieldTxt,
61
+ value: t.dbFieldName
62
+ })) : F.value = [];
63
+ let g = m.filter((t) => t.dbFieldName != "id" && t.fieldShowType == "image" && t.dbIsPersist == 1);
64
+ g.length > 0 ? v.value = g.map((t) => ({
65
+ text: t.dbFieldTxt,
66
+ value: t.dbFieldName
67
+ })) : v.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
68
+ } else
69
+ F.value = [], v.value = [{ text: "无图片字段可以选择", value: "", key: "", disabled: !0 }];
70
+ }
71
+ });
72
+ }
73
+ function N(e) {
74
+ return u(this, null, function* () {
75
+ o.value = "", c.value = "", yield x(e);
76
+ });
77
+ }
78
+ const V = H(() => {
79
+ let e = F.value, r = o.value, m = c.value;
80
+ return e.filter((p) => p.value != r && p.value != m);
81
+ }), B = [
82
+ {
83
+ label: "rowKey",
84
+ field: "rowKey",
85
+ component: "Input",
86
+ show: !1
87
+ },
88
+ {
89
+ label: "dictField",
90
+ field: "dictField",
91
+ component: "Input",
92
+ defaultValue: "id",
93
+ show: !1
94
+ },
95
+ {
96
+ label: "字段描述",
97
+ field: "dbFieldTxt",
98
+ component: "Input",
99
+ required: !0
100
+ },
101
+ {
102
+ label: "关联表",
103
+ field: "dictTable",
104
+ component: "JSearchSelect",
105
+ required: !0,
106
+ componentProps: ({ formActionType: e }) => ({
107
+ dict: "onl_cgform_head where copy_type = 0,table_txt,table_name",
108
+ pageSize: 10,
109
+ async: !0,
110
+ immediateChange: !0,
111
+ popContainer: ".link-table-config-modal",
112
+ params: { order: "desc", column: "create_time" },
113
+ onChange: (r) => u(this, null, function* () {
114
+ (n.titleField || n.otherFields) && (yield e.setFieldsValue({
115
+ titleField: "",
116
+ otherFields: "",
117
+ imageField: ""
118
+ }), yield e.clearValidate()), yield N(r);
119
+ })
120
+ })
121
+ },
122
+ {
123
+ label: "标题字段",
124
+ field: "titleField",
125
+ component: "JSearchSelect",
126
+ required: !0,
127
+ componentProps: {
128
+ async: !1,
129
+ popContainer: ".link-table-config-modal",
130
+ dictOptions: F,
131
+ immediateChange: !0,
132
+ onChange: (e) => {
133
+ o.value = e, n.titleField = e;
134
+ }
135
+ }
136
+ },
137
+ {
138
+ label: "封面图片",
139
+ field: "imageField",
140
+ component: "JSearchSelect",
141
+ componentProps: {
142
+ async: !1,
143
+ popContainer: ".link-table-config-modal",
144
+ dictOptions: v,
145
+ immediateChange: !0,
146
+ onChange: (e) => {
147
+ c.value = e, n.imageFieldName = e;
148
+ }
149
+ }
150
+ },
151
+ {
152
+ label: "其他字段",
153
+ field: "otherFields",
154
+ component: "JSelectMultiple",
155
+ // update-begin--author:liaozhiyang---date:20240320---for:【QQYUN-8574】关联记录最多选6个字段
156
+ componentProps: ({ schema: e, tableAction: r, formActionType: m, formModel: p }) => ({
157
+ popContainer: ".link-table-config-modal",
158
+ options: V.value,
159
+ onChange: (g) => {
160
+ if (g.split(",").length > 6) {
161
+ const t = g.split(",");
162
+ t.pop();
163
+ const y = t.join(",");
164
+ setTimeout(() => {
165
+ p.otherFields = y, n.otherFields = y;
166
+ }, 0), s.warning("最多选择6个字段~");
167
+ } else
168
+ n.otherFields = g;
169
+ }
170
+ })
171
+ // update-end--author:liaozhiyang---date:20240320---for:【QQYUN-8574】关联记录最多选6个字段
172
+ },
173
+ {
174
+ label: "显示方式",
175
+ field: "showType",
176
+ component: "Select",
177
+ defaultValue: "card",
178
+ componentProps: {
179
+ options: [
180
+ { label: "卡片", value: "card" },
181
+ { label: "下拉框", value: "select" }
182
+ ]
183
+ }
184
+ },
185
+ {
186
+ label: "是否多选",
187
+ field: "multiSelect",
188
+ component: "RadioGroup",
189
+ defaultValue: !1,
190
+ componentProps: {
191
+ options: [
192
+ { label: "否", value: !1 },
193
+ { label: "是", value: !0 }
194
+ ]
195
+ }
196
+ }
197
+ ], [P, { validate: O, setFieldsValue: w, clearValidate: I, resetFields: Z }] = D({
198
+ schemas: B,
199
+ showActionButtonGroup: !1,
200
+ labelAlign: "right"
201
+ });
202
+ function L() {
203
+ return u(this, null, function* () {
204
+ let e = yield O();
205
+ e.fieldName = f.value, a("success", e), d();
206
+ });
207
+ }
208
+ return {
209
+ registerModal: h,
210
+ spinningLoading: l,
211
+ registerForm: P,
212
+ handleSubmit: L
213
+ };
214
+ }
215
+ };
216
+ function Y(i, a, l, s, f, n) {
217
+ const h = _("BasicForm"), d = _("a-spin"), o = _("BasicModal");
218
+ return K(), $(o, j({ wrapClassName: "link-table-config-modal" }, i.$attrs, {
219
+ title: "关联记录配置",
220
+ onRegister: s.registerModal,
221
+ keyboard: "",
222
+ canFullscreen: !1,
223
+ cancelText: "关闭",
224
+ onOk: s.handleSubmit
225
+ }), {
226
+ default: k(() => [
227
+ M(d, { spinning: s.spinningLoading }, {
228
+ default: k(() => [
229
+ M(h, { onRegister: s.registerForm }, null, 8, ["onRegister"])
230
+ ]),
231
+ _: 1
232
+ }, 8, ["spinning"])
233
+ ]),
234
+ _: 1
235
+ }, 16, ["onRegister", "onOk"]);
236
+ }
237
+ const ce = /* @__PURE__ */ W(X, [["render", Y]]);
238
+ export {
239
+ ce as default
240
+ };
@@ -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-1d1a6e56.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-1d1a6e56.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-1d1a6e56.mjs";
6
6
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
7
7
  import "/@/hooks/web/useMessage";
8
8
  import "vue-router";