@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
@@ -1,404 +0,0 @@
1
- var W = Object.defineProperty, G = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
3
- var R = Object.getOwnPropertySymbols;
4
- var X = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable;
5
- var E = (t, s, n) => s in t ? W(t, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[s] = n, N = (t, s) => {
6
- for (var n in s || (s = {}))
7
- X.call(s, n) && E(t, n, s[n]);
8
- if (R)
9
- for (var n of R(s))
10
- Y.call(s, n) && E(t, n, s[n]);
11
- return t;
12
- }, $ = (t, s) => G(t, U(s));
13
- import { defineComponent as Z, ref as ee, resolveComponent as y, openBlock as H, createElementBlock as te, Fragment as le, createVNode as w, mergeProps as ie, withCtx as K, createBlock as ae, createTextVNode as oe, createCommentVNode as de } from "vue";
14
- import { JVxeTypes as r } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as ne } from "./useTableSync-774c3774.mjs";
16
- import se from "./LinkTableConfigModal-d4fbdef2.mjs";
17
- import ue from "./LinkTableFieldConfigModal-787bc55c.mjs";
18
- import re from "./FieldExtendJsonModal-a70a9ccd.mjs";
19
- import { useModal as V } from "/@/components/Modal";
20
- import { _ as fe } from "./index-0e3ab3af.mjs";
21
- import "./cgform.data-cbdd88c3.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 "./constant-754f1a9d.mjs";
30
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
31
- import "vue-router";
32
- const P = [
33
- { title: "文本框", value: "text" },
34
- { title: "密码", value: "password" },
35
- { title: "下拉框", value: "list" },
36
- { title: "单选框", value: "radio" },
37
- { title: "多选框", value: "checkbox" },
38
- { title: "开关", value: "switch" },
39
- { title: "日期(年月日)", value: "date" },
40
- { title: "日期(年月日时分秒)", value: "datetime" },
41
- { title: "时间(HH:mm:ss)", value: "time" },
42
- { title: "文件", value: "file" },
43
- { title: "图片", value: "image" },
44
- { title: "多行文本", value: "textarea" },
45
- { title: "富文本", value: "umeditor" },
46
- { title: "MarkDown", value: "markdown" },
47
- { title: "用户选择", value: "sel_user" },
48
- { title: "部门选择", value: "sel_depart" },
49
- { title: "关联记录", value: "link_table" },
50
- { title: "他表字段", value: "link_table_field" },
51
- { title: "省市区组件", value: "pca" },
52
- { title: "Popup弹框", value: "popup" },
53
- { title: "下拉多选框", value: "list_multi" },
54
- { title: "下拉搜索框", value: "sel_search" },
55
- { title: "分类字典树", value: "cat_tree" },
56
- { title: "自定义树控件", value: "sel_tree" },
57
- { title: "联动组件", value: "link_down" }
58
- ], ce = [
59
- { title: "文本框", value: "text" },
60
- { title: "单选框", value: "radio" },
61
- { title: "开关", value: "switch" },
62
- { title: "日期(yyyy-MM-dd)", value: "date" },
63
- { title: "日期(yyyy-MM-dd HH:mm:ss)", value: "datetime" },
64
- { title: "时间(HH:mm:ss)", value: "time" },
65
- { title: "文件", value: "file" },
66
- { title: "图片", value: "image" },
67
- { title: "下拉框", value: "list" },
68
- { title: "下拉多选框", value: "list_multi" },
69
- { title: "下拉搜索框", value: "sel_search" },
70
- { title: "popup弹出框", value: "popup" },
71
- { title: "部门选择", value: "sel_depart" },
72
- { title: "用户选择", value: "sel_user" },
73
- { title: "省市区组件", value: "pca" },
74
- { title: "多行文本", value: "textarea" }
75
- ], me = Z({
76
- name: "PageAttributeTable",
77
- components: {
78
- LinkTableConfigModal: se,
79
- LinkTableFieldConfigModal: ue,
80
- FieldExtendJsonModal: re
81
- },
82
- setup() {
83
- const t = ee([
84
- { title: "字段名称", key: "dbFieldName", width: 100 },
85
- { title: "字段备注", key: "dbFieldTxt", width: 150 },
86
- {
87
- title: "表单显示",
88
- key: "isShowForm",
89
- width: 80,
90
- type: r.checkbox,
91
- align: "center",
92
- customValue: ["1", "0"],
93
- defaultChecked: !0
94
- },
95
- {
96
- title: "列表显示",
97
- key: "isShowList",
98
- width: 80,
99
- type: r.checkbox,
100
- align: "center",
101
- customValue: ["1", "0"],
102
- defaultChecked: !0
103
- },
104
- {
105
- title: "是否排序",
106
- key: "sortFlag",
107
- width: 80,
108
- type: r.checkbox,
109
- align: "center",
110
- customValue: ["1", "0"],
111
- defaultChecked: !1
112
- },
113
- {
114
- title: "是否只读",
115
- key: "isReadOnly",
116
- width: 80,
117
- type: r.checkbox,
118
- align: "center",
119
- customValue: ["1", "0"],
120
- defaultChecked: !1
121
- },
122
- {
123
- title: "控件类型",
124
- key: "fieldShowType",
125
- width: 170,
126
- type: r.select,
127
- options: P,
128
- defaultValue: "text",
129
- placeholder: "请选择${title}",
130
- validateRules: [{ required: !0, message: "请选择${title}" }, { handler: C }]
131
- },
132
- {
133
- title: "控件长度",
134
- key: "fieldLength",
135
- width: 120,
136
- titleHelp: { message: "此长度只对子表列字段宽度有效!" },
137
- type: r.inputNumber,
138
- defaultValue: 200,
139
- placeholder: "请输入${title}",
140
- validateRules: [{ required: !0, message: "${title}不能为空" }]
141
- },
142
- {
143
- title: "是否查询",
144
- key: "isQuery",
145
- width: 80,
146
- type: r.checkbox,
147
- align: "center",
148
- customValue: ["1", "0"],
149
- defaultChecked: !1
150
- },
151
- {
152
- title: "查询类型",
153
- key: "queryMode",
154
- width: 110,
155
- type: r.select,
156
- options: [
157
- { title: "普通查询", value: "single" },
158
- { title: "范围查询", value: "group" }
159
- ],
160
- defaultValue: "single",
161
- placeholder: "请选择${title}",
162
- validateRules: [{ required: !0, message: "请选择${title}" }]
163
- },
164
- {
165
- title: "控件默认值",
166
- key: "fieldDefaultValue",
167
- width: 120,
168
- type: r.input,
169
- defaultValue: ""
170
- },
171
- {
172
- title: "定义转换器",
173
- key: "converter",
174
- width: 150,
175
- type: r.input,
176
- defaultValue: ""
177
- },
178
- {
179
- title: "扩展参数",
180
- key: "fieldExtendJson",
181
- width: 120,
182
- type: r.input,
183
- defaultValue: ""
184
- },
185
- {
186
- title: "更多配置",
187
- minWidth: 100,
188
- key: "fieldConfig",
189
- type: r.slot,
190
- slotName: "fieldConfig"
191
- }
192
- ]), s = ne(t), { tableRef: n, tables: p } = s;
193
- function C({ cellValue: e, row: l }, a) {
194
- let { dbTable: u } = p, i = u.value.tableRef.getTableData({ rowIds: [l.id] })[0].dbType;
195
- e === "time" && i !== "string" ? a(!1, "当控件类型为时间时,数据库属性里的字段类型必须是String!") : e === "date" && i !== "Date" && i !== "Datetime" ? a(!1, "当控件类型为日期时,数据库属性里的字段类型必须是Date或Datetime!") : e === "datetime" && i !== "Datetime" ? a(!1, "当控件类型为datetime时,数据库属性里的字段类型必须是Datetime!") : a(!0);
196
- }
197
- function D(e) {
198
- let l = "date";
199
- e.dbType === "Datetime" && (l = "datetime"), n.value.setValues([
200
- {
201
- rowKey: e.id,
202
- values: { fieldShowType: l }
203
- }
204
- ]);
205
- }
206
- function k(e) {
207
- for (let l of t.value)
208
- if (l.key == "fieldShowType") {
209
- l.options = e ? ce : P;
210
- break;
211
- }
212
- }
213
- function F(e) {
214
- n.value.setValues([
215
- {
216
- rowKey: e,
217
- values: { isQuery: "1" }
218
- }
219
- ]);
220
- }
221
- const [_, { openModal: x }] = V(), [S, { openModal: v }] = V(), [M, { openModal: O }] = V();
222
- function A(e) {
223
- return e.row.dbFieldName != "id";
224
- }
225
- function L(e) {
226
- e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : Q(e);
227
- }
228
- function J(e) {
229
- let { row: l } = e, { checkTable: a } = p;
230
- if (a) {
231
- let u = a.value.tableRef.getTableData({ rowIds: [l.id] })[0];
232
- if (e.row.fieldShowType == "link_table") {
233
- let i = I(l, u);
234
- x(!0, {
235
- record: i,
236
- fieldName: l.dbFieldName
237
- });
238
- } else if (e.row.fieldShowType == "link_table_field") {
239
- let i = B(l, u);
240
- v(!0, i);
241
- }
242
- }
243
- }
244
- function B(e, l) {
245
- let u = n.value.getTableData().filter((g) => g.fieldShowType == "link_table"), i = {};
246
- if (u && u.length > 0) {
247
- let g = p.checkTable.value.tableRef.getTableData();
248
- for (let T of u) {
249
- let h = g.filter((m) => m.dbFieldName == T.dbFieldName);
250
- if (h && h.length > 0) {
251
- let m = h[0];
252
- i[m.dbFieldName] = {
253
- title: T.dbFieldTxt,
254
- table: m.dictTable,
255
- fields: m.dictText
256
- };
257
- }
258
- }
259
- }
260
- const { dictTable: c, dictText: f } = l, { id: o, dbFieldTxt: d } = e;
261
- return {
262
- record: {
263
- rowKey: o,
264
- dbFieldTxt: d,
265
- dictText: f,
266
- dictTable: c
267
- },
268
- tableAndFieldsMap: i
269
- };
270
- }
271
- function I(e, l) {
272
- const { id: a, dbFieldTxt: u, fieldExtendJson: i } = e, { dictTable: c, dictText: f } = l;
273
- let o = {
274
- rowKey: a,
275
- dbFieldTxt: u,
276
- dictTable: c
277
- };
278
- if (f) {
279
- let d = f.split(",");
280
- o.titleField = d[0], d.length > 1 && (o.otherFields = f.substring(f.indexOf(",") + 1));
281
- } else
282
- o.titleField = "", o.otherFields = "";
283
- if (i)
284
- try {
285
- let d = JSON.parse(i);
286
- d.multiSelect ? o.multiSelect = d.multiSelect : o.multiSelect = !1, d.showType ? o.showType = d.showType : o.showType = "card", d.imageField ? o.imageField = d.imageField : o.imageField = "";
287
- } catch (d) {
288
- }
289
- return o;
290
- }
291
- function q(e) {
292
- const { multiSelect: l, showType: a, imageField: u, fieldName: i } = e;
293
- let c = { showType: a, multiSelect: l, imageField: u }, f = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(c), dbFieldTxt: e.dbFieldTxt } }];
294
- n.value.setValues(f);
295
- let { checkTable: o, dbTable: d } = p;
296
- if (d) {
297
- let b = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
298
- d.value.tableRef.setValues(b);
299
- }
300
- if (o) {
301
- let b = e.titleField;
302
- e.otherFields && (b += "," + e.otherFields);
303
- const { dictTable: g, dictField: T } = e;
304
- let h = {
305
- dictTable: g,
306
- dictField: T,
307
- dictText: b,
308
- dbFieldName: i
309
- }, m = [{ rowKey: e.rowKey, values: h }];
310
- o.value.tableRef.setValues(m);
311
- }
312
- }
313
- function j(e) {
314
- const { dbFieldTxt: l, dictTable: a, dictText: u, rowKey: i } = e;
315
- let c = [{ rowKey: i, values: { dbFieldTxt: l } }];
316
- n.value.setValues(c);
317
- let { checkTable: f, dbTable: o } = p;
318
- if (o) {
319
- let d = [{ rowKey: i, values: { dbFieldTxt: l, dbIsPersist: "0" } }];
320
- o.value.tableRef.setValues(d);
321
- }
322
- if (f) {
323
- let d = [{ rowKey: i, values: { dictTable: a, dictText: u } }];
324
- f.value.tableRef.setValues(d);
325
- }
326
- }
327
- function Q(e) {
328
- let l = e.row.fieldExtendJson || "", a = e.rowId, u = e.row.fieldShowType || "", i = e.row.sortFlag || "0";
329
- O(!0, {
330
- jsonStr: l,
331
- fieldShowType: u,
332
- sortFlag: i,
333
- id: a
334
- });
335
- }
336
- function z(e, l) {
337
- let a;
338
- e && Object.keys(e).length > 0 ? a = [{ rowKey: l, values: { fieldExtendJson: JSON.stringify(e) } }] : a = [{ rowKey: l, values: { fieldExtendJson: "" } }], n.value.setValues(a);
339
- }
340
- return $(N({}, s), {
341
- columns: t,
342
- enableQuery: F,
343
- syncFieldShowType: D,
344
- changePageType: k,
345
- showConfigButton: A,
346
- showFieldConfig: J,
347
- registerExtJsonModal: M,
348
- handleExtJson: z,
349
- openConfig: L,
350
- registerModal: _,
351
- handleConfigData: q,
352
- registerFieldModal: S,
353
- handleFieldConfigData: j
354
- });
355
- }
356
- });
357
- function pe(t, s, n, p, C, D) {
358
- const k = y("a-button"), F = y("JVxeTable"), _ = y("link-table-config-modal"), x = y("link-table-field-config-modal"), S = y("FieldExtendJsonModal");
359
- return H(), te(le, null, [
360
- w(F, ie({
361
- ref: "tableRef",
362
- "row-class-name": "online-config-page",
363
- rowNumber: "",
364
- keyboardEdit: "",
365
- maxHeight: t.tableHeight.noToolbar,
366
- loading: t.loading,
367
- columns: t.columns,
368
- dataSource: t.dataSource,
369
- disabledRows: { dbFieldName: ["id", "has_child"] }
370
- }, t.tableProps), {
371
- fieldConfig: K((v) => [
372
- t.showConfigButton(v) ? (H(), ae(k, {
373
- key: 0,
374
- type: "primary",
375
- size: "small",
376
- ghost: "",
377
- onClick: (M) => t.openConfig(v)
378
- }, {
379
- default: K(() => [
380
- oe("高级配置")
381
- ]),
382
- _: 2
383
- }, 1032, ["onClick"])) : de("", !0)
384
- ]),
385
- _: 1
386
- }, 16, ["maxHeight", "loading", "columns", "dataSource"]),
387
- w(_, {
388
- onRegister: t.registerModal,
389
- onSuccess: t.handleConfigData
390
- }, null, 8, ["onRegister", "onSuccess"]),
391
- w(x, {
392
- onRegister: t.registerFieldModal,
393
- onSuccess: t.handleFieldConfigData
394
- }, null, 8, ["onRegister", "onSuccess"]),
395
- w(S, {
396
- onRegister: t.registerExtJsonModal,
397
- onSuccess: t.handleExtJson
398
- }, null, 8, ["onRegister", "onSuccess"])
399
- ], 64);
400
- }
401
- const $e = /* @__PURE__ */ fe(me, [["render", pe], ["__scopeId", "data-v-08ae6456"]]);
402
- export {
403
- $e as default
404
- };
@@ -1,115 +0,0 @@
1
- var y = Object.defineProperty, c = Object.defineProperties;
2
- var f = Object.getOwnPropertyDescriptors;
3
- var d = Object.getOwnPropertySymbols;
4
- var h = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
5
- var n = (e, t, l) => t in e ? y(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, p = (e, t) => {
6
- for (var l in t || (t = {}))
7
- h.call(t, l) && n(e, l, t[l]);
8
- if (d)
9
- for (var l of d(t))
10
- b.call(t, l) && n(e, l, t[l]);
11
- return e;
12
- }, s = (e, t) => c(e, f(t));
13
- import { defineComponent as g, ref as k, resolveComponent as v, openBlock as T, createBlock as _, mergeProps as V } from "vue";
14
- import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as w } from "./useTableSync-774c3774.mjs";
16
- import { _ as C } from "./index-0e3ab3af.mjs";
17
- import "./cgform.data-cbdd88c3.mjs";
18
- import "/@/utils/dict";
19
- import "/@/utils/dict/JDictSelectUtil";
20
- import "/@/utils/uuid";
21
- import "lodash-es";
22
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
- import "/@/hooks/web/useMessage";
24
- import "vue-router";
25
- const q = g({
26
- name: "QueryTable",
27
- emits: ["query"],
28
- setup(e, { emit: t }) {
29
- const l = k([
30
- { title: "字段名称", key: "dbFieldName", width: 130 },
31
- { title: "字段备注", key: "dbFieldTxt", width: 130 },
32
- {
33
- title: "控件类型",
34
- key: "queryShowType",
35
- width: 170,
36
- type: a.select,
37
- options: [
38
- { title: "文本框", value: "text" },
39
- { title: "日期(yyyy-MM-dd)", value: "date" },
40
- { title: "日期(yyyy-MM-dd HH:mm:ss)", value: "datetime" },
41
- { title: "时间(HH:mm:ss)", value: "time" },
42
- { title: "下拉框", value: "list" },
43
- { title: "下拉多选框", value: "list_multi" },
44
- { title: "下拉搜索框", value: "sel_search" },
45
- { title: "分类字典树", value: "cat_tree" },
46
- { title: "Popup弹框", value: "popup" },
47
- { title: "部门选择", value: "sel_depart" },
48
- { title: "用户选择", value: "sel_user" },
49
- { title: "省市区组件", value: "pca" },
50
- { title: "自定义树控件", value: "sel_tree" }
51
- ],
52
- defaultValue: "text",
53
- placeholder: "请选择${title}"
54
- },
55
- {
56
- title: "字典Table",
57
- key: "queryDictTable",
58
- width: 130,
59
- type: a.textarea,
60
- defaultValue: ""
61
- },
62
- {
63
- title: "字典Code",
64
- key: "queryDictField",
65
- width: 130,
66
- type: a.input,
67
- defaultValue: ""
68
- },
69
- {
70
- title: "字典Text",
71
- key: "queryDictText",
72
- width: 130,
73
- type: a.input,
74
- defaultValue: ""
75
- },
76
- {
77
- title: "默认值",
78
- key: "queryDefVal",
79
- width: 130,
80
- type: a.input,
81
- defaultValue: ""
82
- },
83
- {
84
- title: "是否启用",
85
- key: "queryConfigFlag",
86
- minWidth: 80,
87
- type: a.checkbox,
88
- customValue: ["1", "0"],
89
- defaultChecked: !1
90
- }
91
- ]), o = w(l);
92
- function u({ row: r, column: i, value: m }) {
93
- i.key === "queryConfigFlag" && m === "1" && t("query", r.id);
94
- }
95
- return s(p({}, o), { columns: l, handleChange: u });
96
- }
97
- });
98
- function x(e, t, l, o, u, r) {
99
- const i = v("JVxeTable");
100
- return T(), _(i, V({
101
- ref: "tableRef",
102
- rowNumber: "",
103
- keyboardEdit: "",
104
- maxHeight: e.tableHeight.noToolbar,
105
- loading: e.loading,
106
- columns: e.columns,
107
- dataSource: e.dataSource,
108
- disabledRows: { dbFieldName: ["id", "has_child"] },
109
- onValueChange: e.handleChange
110
- }, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]);
111
- }
112
- const W = /* @__PURE__ */ C(q, [["render", x]]);
113
- export {
114
- W as default
115
- };