@jeecg/online 3.6.2-GA → 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-c2602a7c.mjs → AuthButtonTree-589395ed.mjs} +2 -2
  4. package/AuthDataConfig-7bb0cd85.mjs +237 -0
  5. package/{AuthDataTree-9dc58b20.mjs → AuthDataTree-6e3bb86f.mjs} +1 -1
  6. package/AuthFieldConfig-490fc0ab.mjs +139 -0
  7. package/{AuthFieldTree-d836be59.mjs → AuthFieldTree-b7cd091e.mjs} +1 -1
  8. package/AuthManagerDrawer-5e2ed5ce.mjs +118 -0
  9. package/AuthSetterModal-6f74449c.mjs +273 -0
  10. package/{CgformCopyList-86157923.mjs → CgformCopyList-8077ccc6.mjs} +47 -45
  11. package/{CgformModal-5cf02d51.mjs → CgformModal-36faf29a.mjs} +256 -246
  12. package/{CgreportModal.vue_vue_type_script_setup_true_lang-c2ceb064.mjs → CgreportModal-5a23d089.mjs} +140 -117
  13. package/CheckDictTable-b5cb0e2b.mjs +226 -0
  14. package/{CodeFileListModal-f747daae.mjs → CodeFileListModal-0e26b7e0.mjs} +2 -2
  15. package/{CodeFileViewModal-a9fb2900.mjs → CodeFileViewModal-9d4a5b5f.mjs} +36 -32
  16. package/CodeGeneratorModal-b722d976.mjs +238 -0
  17. package/{CustomButtonList-b9b27a93.mjs → CustomButtonList-37639061.mjs} +118 -100
  18. package/{DBAttributeTable-6bdcb1e8.mjs → DBAttributeTable-95dc66c1.mjs} +110 -89
  19. package/{DbToOnlineModal-3705e91a.mjs → DbToOnlineModal-f49b9530.mjs} +56 -50
  20. package/DetailForm-4aa2570b.mjs +485 -0
  21. package/{EnhanceJavaModal-c13de6e0.mjs → EnhanceJavaModal-98934198.mjs} +3 -3
  22. package/{EnhanceJsHistory-154101f0.mjs → EnhanceJsHistory-9c4acdaf.mjs} +2 -2
  23. package/EnhanceJsModal-247f640d.mjs +532 -0
  24. package/{EnhanceSqlModal-221c22dc.mjs → EnhanceSqlModal-65b74b0f.mjs} +3 -3
  25. package/ExtendConfigModal-00f2fb55.mjs +117 -0
  26. package/FieldExtendJsonModal-cc7fce26.mjs +277 -0
  27. package/{FileSelectModal-de40a706.mjs → FileSelectModal-38660e3c.mjs} +1 -1
  28. package/{ForeignKeyTable-22989042.mjs → ForeignKeyTable-a78cb5ad.mjs} +3 -3
  29. package/{IndexTable-833d34ff.mjs → IndexTable-1b496559.mjs} +10 -10
  30. package/{JModalTip-0413ad6a.mjs → JModalTip-4a83aaed.mjs} +1 -1
  31. package/{JOnlineSearchSelect-9ea89e13.mjs → JOnlineSearchSelect-34a37ec9.mjs} +1 -1
  32. package/{LeftDepart-b0a535c0.mjs → LeftDepart-8ade4bf7.mjs} +1 -1
  33. package/{LeftRole-22c90d6b.mjs → LeftRole-7d8c5acc.mjs} +1 -1
  34. package/{LeftUser-a44d63dd.mjs → LeftUser-b4d1372a.mjs} +3 -3
  35. package/LinkTableConfigModal-a138c85e.mjs +240 -0
  36. package/{LinkTableFieldConfigModal-06693eaa.mjs → LinkTableFieldConfigModal-17b413b0.mjs} +41 -41
  37. package/{LinkTableListPiece-46e8af51.mjs → LinkTableListPiece-2660d709.mjs} +1 -1
  38. package/{ModalFormDemo-d107fa87.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-ec27d271.mjs → OnlineAutoTreeList-3b92454c.mjs} +206 -204
  47. package/{OnlineCustomModal-3e6792d3.mjs → OnlineCustomModal-594244f3.mjs} +15 -11
  48. package/{OnlineDetailModal-f40e37e1.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-fe308194.mjs → OnlineSearchFormItem-6feacae6.mjs} +2 -2
  58. package/{OnlineSelectCascade-abc345f9.mjs → OnlineSelectCascade-471fcc76.mjs} +1 -1
  59. package/{OnlineSubFormDetail-02326a8c.mjs → OnlineSubFormDetail-03f8ee5c.mjs} +29 -27
  60. package/OnlineTabAutoModal-7b9bcd0b.mjs +306 -0
  61. package/{OnlineTabDetailModal-d23bd4c9.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-84f4d02d.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-0a93652b.mjs → index-581bef24.mjs} +29 -27
  75. package/{index-e1bda35b.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-f142147a.mjs +0 -125
  86. package/AuthDataConfig-8e5c7b0c.mjs +0 -212
  87. package/AuthFieldConfig-e9a45f94.mjs +0 -139
  88. package/AuthManagerDrawer-5b558c23.mjs +0 -114
  89. package/AuthSetterModal-0cc557cf.mjs +0 -267
  90. package/CgreportModal-2eb9c9e1.mjs +0 -13
  91. package/CheckDictTable-27102064.mjs +0 -211
  92. package/CodeGeneratorModal-3a0e9f0e.mjs +0 -233
  93. package/DetailForm-cdeb54e3.mjs +0 -462
  94. package/EnhanceJsModal-6158804c.mjs +0 -311
  95. package/ExtendConfigModal-0564ef83.mjs +0 -111
  96. package/FieldExtendJsonModal-40d961c1.mjs +0 -219
  97. package/LinkTableConfigModal-5edaa08d.mjs +0 -230
  98. package/OnlCgformErpList-4c51cdb3.mjs +0 -454
  99. package/OnlCgformErpSubTable-d7081b9f.mjs +0 -403
  100. package/OnlCgformInnerSubTable-4c3925bb.mjs +0 -253
  101. package/OnlCgformInnerTableList-1e5014fa.mjs +0 -444
  102. package/OnlCgformTabList-c59c7cc7.mjs +0 -395
  103. package/OnlineAutoList-a7a9de5d.mjs +0 -479
  104. package/OnlineAutoModal-a33f1a63.mjs +0 -207
  105. package/OnlineForm-fb3a2379.mjs +0 -750
  106. package/OnlineFormDetail-52b1c303.mjs +0 -297
  107. package/OnlineQueryForm-7c70734e.mjs +0 -386
  108. package/OnlineTabAutoModal-6d9da8b0.mjs +0 -254
  109. package/OnlineTabForm-29ca07f7.mjs +0 -766
  110. package/OnlineTabFormDetail-aa7e1144.mjs +0 -324
  111. package/PageAttributeTable-d82946c5.mjs +0 -404
  112. package/QueryTable-d4599fca.mjs +0 -115
  113. package/SuperQuery-07162778.mjs +0 -843
  114. package/constant-754f1a9d.mjs +0 -9
  115. package/index-73993b18.mjs +0 -56
  116. package/useCgformList-b135794d.mjs +0 -400
  117. package/useExtendComponent-f4e29152.mjs +0 -3926
  118. package/useListButton-4dd33e7a.mjs +0 -676
@@ -0,0 +1,446 @@
1
+ var U = Object.defineProperty, X = Object.defineProperties;
2
+ var Y = Object.getOwnPropertyDescriptors;
3
+ var N = Object.getOwnPropertySymbols;
4
+ var Z = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
5
+ var E = (l, u, s) => u in l ? U(l, u, { enumerable: !0, configurable: !0, writable: !0, value: s }) : l[u] = s, R = (l, u) => {
6
+ for (var s in u || (u = {}))
7
+ Z.call(u, s) && E(l, s, u[s]);
8
+ if (N)
9
+ for (var s of N(u))
10
+ ee.call(u, s) && E(l, s, u[s]);
11
+ return l;
12
+ }, P = (l, u) => X(l, Y(u));
13
+ import { defineComponent as te, ref as le, resolveComponent as y, openBlock as I, createElementBlock as ie, Fragment as ae, createVNode as w, mergeProps as oe, withCtx as K, createBlock as se, createTextVNode as ne, createCommentVNode as de } from "vue";
14
+ import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
15
+ import { u as ue } from "./useTableSync-f6089e8a.mjs";
16
+ import re from "./LinkTableConfigModal-a138c85e.mjs";
17
+ import fe from "./LinkTableFieldConfigModal-17b413b0.mjs";
18
+ import ce from "./FieldExtendJsonModal-cc7fce26.mjs";
19
+ import { useModal as C } from "/@/components/Modal";
20
+ import { _ as pe } from "./index-173949bb.mjs";
21
+ import "./cgform.data-475d4984.mjs";
22
+ import "/@/utils/dict";
23
+ import "/@/utils/dict/JDictSelectUtil";
24
+ import "/@/utils/uuid";
25
+ import "lodash-es";
26
+ import "/@/components/Form/index";
27
+ import "/@/utils/http/axios";
28
+ import "/@/hooks/web/useMessage";
29
+ import "./SetSwitchOptions-a452fa0f.mjs";
30
+ import "/@/utils/is";
31
+ import "./constant-fa63bd66.mjs";
32
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
33
+ import "vue-router";
34
+ const H = [
35
+ { title: "文本框", value: "text" },
36
+ { title: "密码", value: "password" },
37
+ { title: "下拉框", value: "list" },
38
+ { title: "单选框", value: "radio" },
39
+ { title: "多选框", value: "checkbox" },
40
+ { title: "开关", value: "switch" },
41
+ { title: "日期(年月日)", value: "date" },
42
+ { title: "日期(年月日时分秒)", value: "datetime" },
43
+ { title: "时间(HH:mm:ss)", value: "time" },
44
+ { title: "文件", value: "file" },
45
+ { title: "图片", value: "image" },
46
+ { title: "多行文本", value: "textarea" },
47
+ { title: "富文本", value: "umeditor" },
48
+ { title: "MarkDown", value: "markdown" },
49
+ { title: "用户选择", value: "sel_user" },
50
+ { title: "部门选择", value: "sel_depart" },
51
+ { title: "关联记录", value: "link_table" },
52
+ { title: "他表字段", value: "link_table_field" },
53
+ { title: "省市区组件", value: "pca" },
54
+ { title: "Popup弹框", value: "popup" },
55
+ // update-begin--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
56
+ { title: "Popup字典", value: "popup_dict" },
57
+ // update-end--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
58
+ { title: "下拉多选框", value: "list_multi" },
59
+ { title: "下拉搜索框", value: "sel_search" },
60
+ { title: "分类字典树", value: "cat_tree" },
61
+ { title: "自定义树控件", value: "sel_tree" },
62
+ { title: "联动组件", value: "link_down" }
63
+ ], be = [
64
+ { title: "文本框", value: "text" },
65
+ { title: "单选框", value: "radio" },
66
+ { title: "开关", value: "switch" },
67
+ { title: "日期(yyyy-MM-dd)", value: "date" },
68
+ { title: "日期(yyyy-MM-dd HH:mm:ss)", value: "datetime" },
69
+ { title: "时间(HH:mm:ss)", value: "time" },
70
+ { title: "文件", value: "file" },
71
+ { title: "图片", value: "image" },
72
+ { title: "下拉框", value: "list" },
73
+ { title: "下拉多选框", value: "list_multi" },
74
+ { title: "下拉搜索框", value: "sel_search" },
75
+ { title: "popup弹出框", value: "popup" },
76
+ // update-begin--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
77
+ { title: "Popup字典", value: "popup_dict" },
78
+ // update-end--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
79
+ { title: "部门选择", value: "sel_depart" },
80
+ { title: "用户选择", value: "sel_user" },
81
+ { title: "省市区组件", value: "pca" },
82
+ { title: "多行文本", value: "textarea" }
83
+ ], me = te({
84
+ name: "PageAttributeTable",
85
+ components: {
86
+ LinkTableConfigModal: re,
87
+ LinkTableFieldConfigModal: fe,
88
+ FieldExtendJsonModal: ce
89
+ },
90
+ setup() {
91
+ const l = le([
92
+ { title: "字段名称", key: "dbFieldName", width: 100 },
93
+ { title: "字段备注", key: "dbFieldTxt", width: 150 },
94
+ {
95
+ title: "表单显示",
96
+ key: "isShowForm",
97
+ width: 80,
98
+ type: r.checkbox,
99
+ align: "center",
100
+ customValue: ["1", "0"],
101
+ defaultChecked: !0
102
+ },
103
+ {
104
+ title: "列表显示",
105
+ key: "isShowList",
106
+ width: 80,
107
+ type: r.checkbox,
108
+ align: "center",
109
+ customValue: ["1", "0"],
110
+ defaultChecked: !0
111
+ },
112
+ {
113
+ title: "是否排序",
114
+ key: "sortFlag",
115
+ width: 80,
116
+ type: r.checkbox,
117
+ align: "center",
118
+ customValue: ["1", "0"],
119
+ defaultChecked: !1,
120
+ // update-begin--author:liaozhiyang---date:20240528---for:【TV360X-291】没勾选同步数据库禁用排序功能
121
+ props: {
122
+ isDisabledCell({ row: e, column: t }) {
123
+ let { dbTable: i } = p;
124
+ const a = i.value.tableRef.getTableData({ rowIds: [e.id] })[0];
125
+ return (a == null ? void 0 : a.dbIsPersist) == "0";
126
+ }
127
+ }
128
+ // update-end--author:liaozhiyang---date:20240528---for:【TV360X-291】没勾选同步数据库禁用排序功能
129
+ },
130
+ {
131
+ title: "是否只读",
132
+ key: "isReadOnly",
133
+ width: 80,
134
+ type: r.checkbox,
135
+ align: "center",
136
+ customValue: ["1", "0"],
137
+ defaultChecked: !1
138
+ },
139
+ {
140
+ title: "控件类型",
141
+ key: "fieldShowType",
142
+ width: 170,
143
+ type: r.select,
144
+ options: H,
145
+ defaultValue: "text",
146
+ placeholder: "请选择${title}",
147
+ validateRules: [{ required: !0, message: "请选择${title}" }, { handler: S }]
148
+ },
149
+ {
150
+ title: "控件长度",
151
+ key: "fieldLength",
152
+ width: 100,
153
+ titleHelp: { message: "此长度只对子表列字段宽度有效!" },
154
+ type: r.inputNumber,
155
+ defaultValue: 120,
156
+ placeholder: "请输入控件长度"
157
+ },
158
+ {
159
+ title: "是否查询",
160
+ key: "isQuery",
161
+ width: 80,
162
+ type: r.checkbox,
163
+ align: "center",
164
+ customValue: ["1", "0"],
165
+ defaultChecked: !1,
166
+ // update-begin--author:liaozhiyang---date:20240528---for:【TV360X-423】未勾选同步数据库禁用查询
167
+ props: {
168
+ isDisabledCell({ row: e, column: t }) {
169
+ let { dbTable: i } = p;
170
+ const a = i.value.tableRef.getTableData({ rowIds: [e.id] })[0];
171
+ return (a == null ? void 0 : a.dbIsPersist) == "0";
172
+ }
173
+ }
174
+ // update-end--author:liaozhiyang---date:20240528---for:【TV360X-423】未勾选同步数据库禁用查询
175
+ },
176
+ {
177
+ title: "查询类型",
178
+ key: "queryMode",
179
+ width: 120,
180
+ type: r.select,
181
+ options: [
182
+ { title: "普通查询", value: "single" },
183
+ { title: "范围查询", value: "group" }
184
+ ],
185
+ defaultValue: "single",
186
+ placeholder: "请选择${title}"
187
+ },
188
+ {
189
+ title: "控件默认值",
190
+ key: "fieldDefaultValue",
191
+ width: 140,
192
+ type: r.input,
193
+ props: {
194
+ allowClear: !0
195
+ },
196
+ defaultValue: ""
197
+ },
198
+ {
199
+ title: "定义转换器",
200
+ key: "converter",
201
+ width: 150,
202
+ type: r.input,
203
+ defaultValue: ""
204
+ },
205
+ {
206
+ title: "扩展参数",
207
+ key: "fieldExtendJson",
208
+ width: 120,
209
+ type: r.textarea,
210
+ defaultValue: ""
211
+ },
212
+ {
213
+ title: "更多配置",
214
+ minWidth: 100,
215
+ key: "fieldConfig",
216
+ type: r.slot,
217
+ slotName: "fieldConfig"
218
+ }
219
+ ]), u = ue(l), { tableRef: s, tables: p } = u;
220
+ function S({ cellValue: e, row: t }, i) {
221
+ let { dbTable: a } = p, o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
222
+ e === "time" && o !== "string" ? i(!1, "当控件类型为时间时,数据库属性里的字段类型必须是String!") : e === "date" && o !== "Date" && o !== "Datetime" ? i(!1, "当控件类型为日期时,数据库属性里的字段类型必须是Date或Datetime!") : e === "datetime" && o !== "Datetime" ? i(!1, "当控件类型为datetime时,数据库属性里的字段类型必须是Datetime!") : i(!0);
223
+ }
224
+ function D(e) {
225
+ let t = "date";
226
+ e.dbType === "Datetime" && (t = "datetime"), e.dbType === "string" && (t = "text"), s.value.setValues([
227
+ {
228
+ rowKey: e.id,
229
+ values: { fieldShowType: t }
230
+ }
231
+ ]);
232
+ }
233
+ function k(e) {
234
+ e.dbIsPersist === "0" && s.value.setValues([
235
+ {
236
+ rowKey: e.id,
237
+ values: { isQuery: "0", sortFlag: "0" }
238
+ }
239
+ ]);
240
+ }
241
+ function F(e) {
242
+ for (let t of l.value)
243
+ if (t.key == "fieldShowType") {
244
+ t.options = e ? be : H;
245
+ break;
246
+ }
247
+ }
248
+ function _(e) {
249
+ s.value.setValues([
250
+ {
251
+ rowKey: e,
252
+ values: { isQuery: "1" }
253
+ }
254
+ ]);
255
+ }
256
+ const [x, { openModal: V }] = C(), [v, { openModal: M }] = C(), [O, { openModal: $ }] = C();
257
+ function A(e) {
258
+ return e.row.dbFieldName != "id";
259
+ }
260
+ function L(e) {
261
+ e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : z(e);
262
+ }
263
+ function J(e) {
264
+ let { row: t } = e, { checkTable: i } = p;
265
+ if (i) {
266
+ let a = i.value.tableRef.getTableData({ rowIds: [t.id] })[0];
267
+ if (e.row.fieldShowType == "link_table") {
268
+ let o = Q(t, a);
269
+ V(!0, {
270
+ record: o,
271
+ fieldName: t.dbFieldName
272
+ });
273
+ } else if (e.row.fieldShowType == "link_table_field") {
274
+ let o = B(t, a);
275
+ M(!0, o);
276
+ }
277
+ }
278
+ }
279
+ function B(e, t) {
280
+ let a = s.value.getTableData().filter((g) => g.fieldShowType == "link_table"), o = {};
281
+ if (a && a.length > 0) {
282
+ let g = p.checkTable.value.tableRef.getTableData();
283
+ for (let T of a) {
284
+ let h = g.filter((b) => b.dbFieldName == T.dbFieldName);
285
+ if (h && h.length > 0) {
286
+ let b = h[0];
287
+ o[b.dbFieldName] = {
288
+ title: T.dbFieldTxt,
289
+ table: b.dictTable,
290
+ fields: b.dictText
291
+ };
292
+ }
293
+ }
294
+ }
295
+ const { dictTable: c, dictText: f } = t, { id: n, dbFieldTxt: d } = e;
296
+ return {
297
+ record: {
298
+ rowKey: n,
299
+ dbFieldTxt: d,
300
+ dictText: f,
301
+ dictTable: c
302
+ },
303
+ tableAndFieldsMap: o
304
+ };
305
+ }
306
+ function Q(e, t) {
307
+ const { id: i, dbFieldTxt: a, fieldExtendJson: o } = e, { dictTable: c, dictText: f } = t;
308
+ let n = {
309
+ rowKey: i,
310
+ dbFieldTxt: a,
311
+ dictTable: c
312
+ };
313
+ if (f) {
314
+ let d = f.split(",");
315
+ n.titleField = d[0], d.length > 1 && (n.otherFields = f.substring(f.indexOf(",") + 1));
316
+ } else
317
+ n.titleField = "", n.otherFields = "";
318
+ if (o)
319
+ try {
320
+ let d = JSON.parse(o);
321
+ d.multiSelect ? n.multiSelect = d.multiSelect : n.multiSelect = !1, d.showType ? n.showType = d.showType : n.showType = "card", d.imageField ? n.imageField = d.imageField : n.imageField = "";
322
+ } catch (d) {
323
+ }
324
+ return n;
325
+ }
326
+ function j(e) {
327
+ const { multiSelect: t, showType: i, imageField: a, fieldName: o } = e;
328
+ let c = { showType: i, multiSelect: t, imageField: a }, f = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(c), dbFieldTxt: e.dbFieldTxt } }];
329
+ s.value.setValues(f);
330
+ let { checkTable: n, dbTable: d } = p;
331
+ if (d) {
332
+ let m = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
333
+ d.value.tableRef.setValues(m);
334
+ }
335
+ if (n) {
336
+ let m = e.titleField;
337
+ e.otherFields && (m += "," + e.otherFields);
338
+ const { dictTable: g, dictField: T } = e;
339
+ let h = {
340
+ dictTable: g,
341
+ dictField: T,
342
+ dictText: m,
343
+ dbFieldName: o
344
+ }, b = [{ rowKey: e.rowKey, values: h }];
345
+ n.value.tableRef.setValues(b);
346
+ }
347
+ }
348
+ function q(e) {
349
+ const { dbFieldTxt: t, dictTable: i, dictText: a, rowKey: o } = e;
350
+ let c = [{ rowKey: o, values: { dbFieldTxt: t } }];
351
+ s.value.setValues(c);
352
+ let { checkTable: f, dbTable: n } = p;
353
+ if (n) {
354
+ let d = [{ rowKey: o, values: { dbFieldTxt: t, dbIsPersist: "0" } }];
355
+ n.value.tableRef.setValues(d);
356
+ }
357
+ if (f) {
358
+ let d = [{ rowKey: o, values: { dictTable: i, dictText: a } }];
359
+ f.value.tableRef.setValues(d);
360
+ }
361
+ }
362
+ function z(e) {
363
+ let t = e.row.fieldExtendJson || "", i = e.rowId, a = e.row.fieldShowType || "", o = e.row.sortFlag || "0";
364
+ const c = e.row.dbType;
365
+ $(!0, {
366
+ jsonStr: t,
367
+ fieldShowType: a,
368
+ sortFlag: o,
369
+ id: i,
370
+ dbType: c
371
+ });
372
+ }
373
+ function W(e, t) {
374
+ let i;
375
+ e && Object.keys(e).length > 0 ? i = [{ rowKey: t, values: { fieldExtendJson: JSON.stringify(e) } }] : i = [{ rowKey: t, values: { fieldExtendJson: "" } }], s.value.setValues(i);
376
+ }
377
+ const G = (e) => {
378
+ };
379
+ return P(R({}, u), {
380
+ columns: l,
381
+ enableQuery: _,
382
+ syncFieldShowType: D,
383
+ changePageType: F,
384
+ showConfigButton: A,
385
+ showFieldConfig: J,
386
+ registerExtJsonModal: O,
387
+ handleExtJson: W,
388
+ openConfig: L,
389
+ registerModal: x,
390
+ handleConfigData: j,
391
+ registerFieldModal: v,
392
+ handleFieldConfigData: q,
393
+ syncIsQuery: k,
394
+ handleValueChange: G
395
+ });
396
+ }
397
+ });
398
+ function ge(l, u, s, p, S, D) {
399
+ const k = y("a-button"), F = y("JVxeTable"), _ = y("link-table-config-modal"), x = y("link-table-field-config-modal"), V = y("FieldExtendJsonModal");
400
+ return I(), ie(ae, null, [
401
+ w(F, oe({
402
+ ref: "tableRef",
403
+ "row-class-name": "online-config-page",
404
+ rowNumber: "",
405
+ keyboardEdit: "",
406
+ maxHeight: l.tableHeight.noToolbar,
407
+ loading: l.loading,
408
+ columns: l.columns,
409
+ dataSource: l.dataSource,
410
+ disabledRows: { dbFieldName: ["id", "has_child"] },
411
+ onValueChange: l.handleValueChange
412
+ }, l.tableProps), {
413
+ fieldConfig: K((v) => [
414
+ l.showConfigButton(v) ? (I(), se(k, {
415
+ key: 0,
416
+ type: "primary",
417
+ size: "small",
418
+ ghost: "",
419
+ onClick: (M) => l.openConfig(v)
420
+ }, {
421
+ default: K(() => [
422
+ ne("更多配置")
423
+ ]),
424
+ _: 2
425
+ }, 1032, ["onClick"])) : de("", !0)
426
+ ]),
427
+ _: 1
428
+ }, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]),
429
+ w(_, {
430
+ onRegister: l.registerModal,
431
+ onSuccess: l.handleConfigData
432
+ }, null, 8, ["onRegister", "onSuccess"]),
433
+ w(x, {
434
+ onRegister: l.registerFieldModal,
435
+ onSuccess: l.handleFieldConfigData
436
+ }, null, 8, ["onRegister", "onSuccess"]),
437
+ w(V, {
438
+ onRegister: l.registerExtJsonModal,
439
+ onSuccess: l.handleExtJson
440
+ }, null, 8, ["onRegister", "onSuccess"])
441
+ ], 64);
442
+ }
443
+ const Oe = /* @__PURE__ */ pe(me, [["render", ge], ["__scopeId", "data-v-bc04961b"]]);
444
+ export {
445
+ Oe as default
446
+ };
@@ -1,24 +1,24 @@
1
- var u = (e, r, o) => new Promise((p, s) => {
1
+ var u = (e, r, o) => new Promise((d, s) => {
2
2
  var l = (t) => {
3
3
  try {
4
4
  n(o.next(t));
5
- } catch (a) {
6
- s(a);
5
+ } catch (m) {
6
+ s(m);
7
7
  }
8
8
  }, i = (t) => {
9
9
  try {
10
10
  n(o.throw(t));
11
- } catch (a) {
12
- s(a);
11
+ } catch (m) {
12
+ s(m);
13
13
  }
14
- }, n = (t) => t.done ? p(t.value) : Promise.resolve(t.value).then(l, i);
14
+ }, n = (t) => t.done ? d(t.value) : Promise.resolve(t.value).then(l, i);
15
15
  n((o = o.apply(e, r)).next());
16
16
  });
17
- import S from "./OnlineForm-fb3a2379.mjs";
18
- import { defineComponent as k, ref as m, watch as T, nextTick as w, resolveComponent as f, openBlock as h, createElementBlock as y, createVNode as _, withCtx as g, createTextVNode as N, createCommentVNode as C } from "vue";
17
+ import S from "./OnlineForm-018981b2.mjs";
18
+ import { defineComponent as k, ref as a, watch as T, nextTick as w, resolveComponent as f, openBlock as h, createElementBlock as y, createVNode as _, withCtx as g, createTextVNode as N, createCommentVNode as C } from "vue";
19
19
  import { defHttp as P } from "/@/utils/http/axios";
20
- import { g as b } from "./useExtendComponent-f4e29152.mjs";
21
- import { _ as R } from "./index-73993b18.mjs";
20
+ import { g as b } from "./useExtendComponent-bb7cca20.mjs";
21
+ import { _ as R } from "./index-173949bb.mjs";
22
22
  import "/@/hooks/web/useMessage";
23
23
  import "/@/components/Form/index";
24
24
  import "lodash-es";
@@ -34,7 +34,10 @@ import "./useCustomHook-acb00837.mjs";
34
34
  import "/@/utils/cache";
35
35
  import "/@/utils/common/compUtils";
36
36
  import "/@/store/modules/user";
37
- import "./constant-754f1a9d.mjs";
37
+ import "./constant-fa63bd66.mjs";
38
+ import "/@/hooks/web/useAppInject";
39
+ import "/@/utils/is";
40
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
38
41
  import "/@/components/Form/src/componentMap";
39
42
  import "/@/utils/propTypes";
40
43
  import "/@/components/Form/src/jeecg/components/JUpload";
@@ -47,10 +50,11 @@ import "/@/hooks/system/useListPage";
47
50
  import "vue-router";
48
51
  import "/@/components/Form/src/utils/Area";
49
52
  import "/@/components/Preview/index";
50
- import "./LinkTableListPiece-46e8af51.mjs";
51
- import "./OnlineSelectCascade-abc345f9.mjs";
52
- import "./JModalTip-0413ad6a.mjs";
53
- import "/@/hooks/web/useAppInject";
53
+ import "./LinkTableListPiece-2660d709.mjs";
54
+ import "/@/api/common/api";
55
+ import "/@/assets/images/placeholderImage.png";
56
+ import "./OnlineSelectCascade-471fcc76.mjs";
57
+ import "./JModalTip-4a83aaed.mjs";
54
58
  import "ant-design-vue";
55
59
  import "@vueuse/core";
56
60
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
@@ -79,7 +83,7 @@ const L = k({
79
83
  }
80
84
  },
81
85
  setup(e) {
82
- const r = m(), o = m(""), p = m(1), s = m(!1), l = m(""), i = m(!1);
86
+ const r = a(), o = a(""), d = a(1), s = a(!1), l = a(""), i = a(!1);
83
87
  T(
84
88
  () => e.tableName,
85
89
  (c) => {
@@ -92,11 +96,11 @@ const L = k({
92
96
  i.value = !0;
93
97
  const c = `/online/cgform/api/getFormItemBytbname/${e.tableName}`, I = { taskId: e.taskId };
94
98
  try {
95
- let d = yield P.get({ url: c, params: I });
96
- o.value = d.head.id, p.value = Number(d.head.formTemplate || 1), s.value = d.head.isTree === "Y", l.value = d.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
97
- (yield b(r)).createRootProperties(d);
99
+ let p = yield P.get({ url: c, params: I });
100
+ o.value = p.head.id, d.value = Number(p.head.formTemplate || 1), s.value = p.head.isTree === "Y", l.value = p.head.treeParentIdField || "", yield w(() => u(this, null, function* () {
101
+ (yield b(r)).createRootProperties(p);
98
102
  }));
99
- } catch (d) {
103
+ } catch (p) {
100
104
  }
101
105
  });
102
106
  }
@@ -108,25 +112,25 @@ const L = k({
108
112
  });
109
113
  });
110
114
  }
111
- const a = m(!1);
115
+ const m = a(!1);
112
116
  function F() {
113
117
  return u(this, null, function* () {
114
- a.value = !0, r.value.handleSubmit();
118
+ m.value = !0, r.value.handleSubmit();
115
119
  });
116
120
  }
117
121
  function v() {
118
- a.value = !1;
122
+ m.value = !1;
119
123
  }
120
124
  return {
121
125
  onlineFormCompRef: r,
122
126
  formId: o,
123
- formTemplate: p,
127
+ formTemplate: d,
124
128
  isTreeForm: s,
125
129
  pidFieldName: l,
126
130
  renderSuccess: t,
127
131
  handleSuccess: v,
128
132
  handleSubmit: F,
129
- buttonLoading: a,
133
+ buttonLoading: m,
130
134
  spinLoading: i
131
135
  };
132
136
  }
@@ -134,7 +138,7 @@ const L = k({
134
138
  key: 0,
135
139
  style: { width: "100%", "text-align": "center", "margin-top": "5px" }
136
140
  };
137
- function O(e, r, o, p, s, l) {
141
+ function O(e, r, o, d, s, l) {
138
142
  const i = f("a-button"), n = f("online-form"), t = f("a-spin");
139
143
  return h(), y("div", $, [
140
144
  _(t, { spinning: e.spinLoading }, {
@@ -172,7 +176,7 @@ function O(e, r, o, p, s, l) {
172
176
  }, 8, ["spinning"])
173
177
  ]);
174
178
  }
175
- const Se = /* @__PURE__ */ R(L, [["render", O], ["__scopeId", "data-v-530d8f91"]]);
179
+ const Ne = /* @__PURE__ */ R(L, [["render", O], ["__scopeId", "data-v-530d8f91"]]);
176
180
  export {
177
- Se as default
181
+ Ne as default
178
182
  };