@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,277 @@
1
+ var P = Object.defineProperty, G = Object.defineProperties;
2
+ var I = Object.getOwnPropertyDescriptors;
3
+ var F = Object.getOwnPropertySymbols;
4
+ var T = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
5
+ var L = (t, a, n) => a in t ? P(t, a, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[a] = n, _ = (t, a) => {
6
+ for (var n in a || (a = {}))
7
+ T.call(a, n) && L(t, n, a[n]);
8
+ if (F)
9
+ for (var n of F(a))
10
+ V.call(a, n) && L(t, n, a[n]);
11
+ return t;
12
+ }, N = (t, a) => G(t, I(a));
13
+ var R = (t, a, n) => new Promise((f, i) => {
14
+ var l = (r) => {
15
+ try {
16
+ p(n.next(r));
17
+ } catch (c) {
18
+ i(c);
19
+ }
20
+ }, d = (r) => {
21
+ try {
22
+ p(n.throw(r));
23
+ } catch (c) {
24
+ i(c);
25
+ }
26
+ }, p = (r) => r.done ? f(r.value) : Promise.resolve(r.value).then(l, d);
27
+ p((n = n.apply(t, a)).next());
28
+ });
29
+ import { defineComponent as C, ref as m, reactive as j, toRaw as D, toRefs as K, resolveComponent as w, openBlock as $, createBlock as A, mergeProps as J, withCtx as y, createVNode as O } from "vue";
30
+ import { BasicModal as U, useModalInner as Y } from "/@/components/Modal";
31
+ import q from "./SetSwitchOptions-b2af757f.mjs";
32
+ import { BasicForm as H, useForm as W } from "/@/components/Form/index";
33
+ import { pick as z } from "lodash-es";
34
+ import { L as x } from "./constant-fa63bd66.mjs";
35
+ import { isArray as Q } from "/@/utils/is";
36
+ import { _ as X } from "./index-1d1a6e56.mjs";
37
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
38
+ import "/@/hooks/web/useMessage";
39
+ import "vue-router";
40
+ const Z = C({
41
+ name: "FieldExtendJsonModal",
42
+ components: {
43
+ BasicModal: U,
44
+ BasicForm: H,
45
+ SetSwitchOptions: q
46
+ },
47
+ emits: ["success", "register"],
48
+ setup(t, { emit: a }) {
49
+ const n = m(!1);
50
+ function f() {
51
+ i.uploadnum = 0, i.showLength = "", i.popupMulti = !0, i.multiSelect = !0, i.store = "", i.text = "", i.orderRule = "", i.validateError = "", i.labelLength = x;
52
+ }
53
+ const i = j({
54
+ uploadnum: 0,
55
+ showLength: "",
56
+ popupMulti: !0,
57
+ store: "",
58
+ text: "",
59
+ multiSelect: !0,
60
+ orderRule: "",
61
+ validateError: "",
62
+ labelLength: x
63
+ }), l = m(""), d = m(""), p = m("0"), r = m(""), c = [
64
+ {
65
+ label: "rowKey",
66
+ field: "rowKey",
67
+ component: "Input",
68
+ show: !1
69
+ },
70
+ {
71
+ label: "文件上传数量",
72
+ field: "uploadnum",
73
+ component: "InputNumber",
74
+ componentProps: {
75
+ style: {
76
+ width: "100%"
77
+ }
78
+ },
79
+ ifShow: () => l.value === "file" || l.value === "image"
80
+ },
81
+ {
82
+ label: "是否多选",
83
+ field: "popupMulti",
84
+ component: "RadioGroup",
85
+ defaultValue: !0,
86
+ componentProps: {
87
+ options: [
88
+ { label: "否", value: !1 },
89
+ { label: "是", value: !0 }
90
+ ]
91
+ },
92
+ ifShow: () => l.value === "popup" || l.value === "popup_dict"
93
+ },
94
+ {
95
+ label: "是否多选",
96
+ field: "multiSelect",
97
+ component: "RadioGroup",
98
+ defaultValue: !0,
99
+ componentProps: {
100
+ options: [
101
+ { label: "否", value: !1 },
102
+ { label: "是", value: !0 }
103
+ ]
104
+ },
105
+ ifShow: () => l.value === "sel_user" || l.value === "sel_depart"
106
+ },
107
+ {
108
+ label: "存储字段",
109
+ field: "store",
110
+ component: "Input",
111
+ ifShow: () => l.value === "sel_user" || l.value === "sel_depart"
112
+ },
113
+ {
114
+ label: "展示字段",
115
+ field: "text",
116
+ component: "Input",
117
+ ifShow: () => l.value === "sel_user" || l.value === "sel_depart"
118
+ },
119
+ {
120
+ label: "默认排序",
121
+ field: "orderRule",
122
+ component: "RadioGroup",
123
+ defaultValue: "",
124
+ componentProps: {
125
+ options: [
126
+ { label: "降序", value: "desc" },
127
+ { label: "升序", value: "asc" },
128
+ { label: "不默认排序", value: "" }
129
+ ]
130
+ },
131
+ ifShow: () => p.value === "1" || ["Datetime", "string", "Date", "int", "BigDecimal", "double"].includes(r.value)
132
+ },
133
+ {
134
+ label: "校验提示",
135
+ field: "validateError",
136
+ component: "Input",
137
+ componentProps: {
138
+ placeholder: "请输入校验提示文本"
139
+ }
140
+ },
141
+ {
142
+ label: "查询label长度",
143
+ field: "labelLength",
144
+ component: "InputNumber",
145
+ componentProps: {
146
+ placeholder: "请输入label长度"
147
+ }
148
+ },
149
+ {
150
+ label: "是否固定",
151
+ field: "isFixed",
152
+ component: "RadioGroup",
153
+ defaultValue: 0,
154
+ componentProps: {
155
+ options: [
156
+ { label: "是", value: 1 },
157
+ { label: "否", value: 0 }
158
+ ]
159
+ }
160
+ },
161
+ // update-begin--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
162
+ {
163
+ label: "是否独占一行",
164
+ field: "isOneRow",
165
+ component: "RadioGroup",
166
+ defaultValue: !1,
167
+ componentProps: {
168
+ options: [
169
+ { label: "否", value: !1 },
170
+ { label: "是", value: !0 }
171
+ ]
172
+ },
173
+ ifShow: () => l.value === "markdown" || l.value === "umeditor"
174
+ },
175
+ // update-end--author:liaozhiyang---date:20240105---for:【QQYUN-7499】多列风格富文本、markdown增加独占一行功能
176
+ // update-begin--author:liaozhiyang---date:20240430---for:【issues/6094】online 日期(年月日)控件增加年、年月,年周,年季度等格式
177
+ {
178
+ label: "日期格式",
179
+ field: "picker",
180
+ component: "RadioGroup",
181
+ defaultValue: "default",
182
+ componentProps: {
183
+ options: [
184
+ { label: "年", value: "year" },
185
+ { label: "年月", value: "month" },
186
+ { label: "年周", value: "week" },
187
+ { label: "年季度", value: "quarter" },
188
+ { label: "年月日", value: "default" }
189
+ ]
190
+ },
191
+ ifShow: () => l.value === "date"
192
+ },
193
+ // update-end--author:liaozhiyang---date:20240430---for:【issues/6094】online 日期(年月日)控件增加年、年月,年周,年季度等格式
194
+ // update-begin--author:liaozhiyang---date:20240308---for:【TV360X-25】扩展参数配置中增加开关是否选项配置
195
+ {
196
+ label: "开关值",
197
+ field: "switchOptions",
198
+ component: "Input",
199
+ slot: "switchOptions",
200
+ ifShow: () => l.value === "switch"
201
+ }
202
+ // update-end--author:liaozhiyang---date:20240308---for:【TV360X-25】扩展参数配置中增加开关是否选项配置
203
+ ], [h, { validate: b, setFieldsValue: v, resetFields: B }] = W({
204
+ schemas: c,
205
+ showActionButtonGroup: !1,
206
+ labelAlign: "right",
207
+ labelWidth: 100
208
+ }), [M, { closeModal: k }] = Y((e) => R(this, null, function* () {
209
+ if (f(), e.jsonStr) {
210
+ let o = JSON.parse(e.jsonStr);
211
+ e.fieldShowType === "switch" && Q(o) && o.length == 2 && (i.switchOptions = o), Object.keys(o).map((u) => {
212
+ i[u] = o[u];
213
+ });
214
+ } else
215
+ e.fieldShowType === "switch" && (i.switchOptions = ["Y", "N"]);
216
+ l.value = e.fieldShowType, d.value = e.id, p.value = e.sortFlag, r.value = e.dbType;
217
+ let s = D(i);
218
+ yield B(), yield v(N(_({}, s), {
219
+ rowKey: e.id
220
+ }));
221
+ }));
222
+ function E() {
223
+ return R(this, null, function* () {
224
+ let e = yield b(), s = l.value, o = {};
225
+ if (s === "file" || s === "image" ? e.uploadnum && e.uploadnum > 0 && (o.uploadnum = e.uploadnum) : s === "textarea" || s === "text" ? e.showLength && e.showLength > 0 && (o.showLength = e.showLength) : s === "sel_user" || s === "sel_depart" ? o = z(e, "store", "text", "multiSelect") : (s === "popup" || s === "popup_dict") && (o.popupMulti = e.popupMulti), e.orderRule && (o.orderRule = e.orderRule), e.validateError && (o.validateError = e.validateError), e.labelLength && (o.labelLength = e.labelLength), e.isFixed && (o.isFixed = e.isFixed), e.isOneRow && (o.isOneRow = e.isOneRow), e.picker && (o.picker = e.picker), e.switchOptions) {
226
+ const u = e.switchOptions.split(",");
227
+ let g = Number(u[0]), S = Number(u[1]);
228
+ (Number.isNaN(g) || Number.isNaN(S)) && (g = u[0], S = u[1]), o.switchOptions = [g, S];
229
+ }
230
+ for (let u in o)
231
+ o[u] === "" && delete o[u];
232
+ a("success", o, e.rowKey), k();
233
+ });
234
+ }
235
+ return _({
236
+ spinningLoading: n,
237
+ registerModal: M,
238
+ registerForm: h,
239
+ fieldShowType: l,
240
+ rowKey: d,
241
+ handleSubmit: E
242
+ }, K(i));
243
+ }
244
+ });
245
+ function ee(t, a, n, f, i, l) {
246
+ const d = w("SetSwitchOptions"), p = w("BasicForm"), r = w("a-spin"), c = w("BasicModal");
247
+ return $(), A(c, J({ wrapClassName: "field-extend-config-modal" }, t.$attrs, {
248
+ title: "字段扩展配置项",
249
+ onRegister: t.registerModal,
250
+ keyboard: "",
251
+ canFullscreen: !1,
252
+ cancelText: "关闭",
253
+ onOk: t.handleSubmit
254
+ }), {
255
+ default: y(() => [
256
+ O(r, { spinning: t.spinningLoading }, {
257
+ default: y(() => [
258
+ O(p, { onRegister: t.registerForm }, {
259
+ switchOptions: y(({ model: h, field: b }) => [
260
+ O(d, {
261
+ value: h[b],
262
+ "onUpdate:value": (v) => h[b] = v
263
+ }, null, 8, ["value", "onUpdate:value"])
264
+ ]),
265
+ _: 1
266
+ }, 8, ["onRegister"])
267
+ ]),
268
+ _: 1
269
+ }, 8, ["spinning"])
270
+ ]),
271
+ _: 1
272
+ }, 16, ["onRegister", "onOk"]);
273
+ }
274
+ const me = /* @__PURE__ */ X(Z, [["render", ee]]);
275
+ export {
276
+ me as default
277
+ };
@@ -17,7 +17,7 @@ var u = (e, d, o) => new Promise((n, a) => {
17
17
  import { defineComponent as R, ref as f, resolveComponent as p, openBlock as h, createBlock as v, withCtx as m, createVNode as g, createElementVNode as k, createTextVNode as D, createCommentVNode as w } from "vue";
18
18
  import { defHttp as y } from "/@/utils/http/axios";
19
19
  import { BasicModal as B, useModalInner as b } from "/@/components/Modal";
20
- import { _ as F } from "./index-0e3ab3af.mjs";
20
+ import { _ as F } from "./index-1d1a6e56.mjs";
21
21
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
22
22
  import "/@/hooks/web/useMessage";
23
23
  import "vue-router";
@@ -12,9 +12,9 @@ var i = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writab
12
12
  }, n = (e, t) => m(e, s(t));
13
13
  import { defineComponent as b, ref as f, resolveComponent as y, openBlock as h, createBlock as g, mergeProps as T } from "vue";
14
14
  import { JVxeTypes as l } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as k } from "./useTableSync-774c3774.mjs";
16
- import { _ as w } from "./index-0e3ab3af.mjs";
17
- import "./cgform.data-cbdd88c3.mjs";
15
+ import { u as k } from "./useTableSync-d7e9f18d.mjs";
16
+ import { _ as w } from "./index-1d1a6e56.mjs";
17
+ import "./cgform.data-475d4984.mjs";
18
18
  import "/@/utils/dict";
19
19
  import "/@/utils/dict/JDictSelectUtil";
20
20
  import "/@/utils/uuid";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as f, ref as b, resolveComponent as g, openBlock as h, createBlock as y, mergeProps as $ } from "vue";
2
- import { JVxeTypes as a } from "/@/components/jeecg/JVxeTable/types";
3
- import { u as T } from "./useTableSync-774c3774.mjs";
4
- import { _ as v } from "./index-0e3ab3af.mjs";
5
- import "./cgform.data-cbdd88c3.mjs";
2
+ import { JVxeTypes as o } from "/@/components/jeecg/JVxeTable/types";
3
+ import { u as T } from "./useTableSync-d7e9f18d.mjs";
4
+ import { _ as v } from "./index-1d1a6e56.mjs";
5
+ import "./cgform.data-475d4984.mjs";
6
6
  import "/@/utils/dict";
7
7
  import "/@/utils/dict/JDictSelectUtil";
8
8
  import "/@/utils/uuid";
@@ -10,7 +10,7 @@ import "lodash-es";
10
10
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
11
11
  import "/@/hooks/web/useMessage";
12
12
  import "vue-router";
13
- const S = f({
13
+ const x = f({
14
14
  name: "IndexTable",
15
15
  components: {},
16
16
  props: {
@@ -26,16 +26,24 @@ const S = f({
26
26
  title: "索引名称",
27
27
  key: "indexName",
28
28
  width: 330,
29
- type: a.input,
29
+ type: o.input,
30
30
  defaultValue: "",
31
31
  placeholder: "请输入${title}",
32
- validateRules: [{ required: !0, message: "${title}不能为空" }]
32
+ validateRules: [
33
+ { required: !0, message: "${title}不能为空" },
34
+ // update-begin--author:liaozhiyang---date:20240807---for:【TV360X-1974】online索引名称增加校验
35
+ {
36
+ pattern: /^[a-zA-Z][a-zA-Z0-9_-]*$/,
37
+ message: "命名规则:只能由字母、数字、下划线组成;必须以字母开头"
38
+ }
39
+ // update-end--author:liaozhiyang---date:20240807---for:【TV360X-1974】online索引名称增加校验
40
+ ]
33
41
  },
34
42
  {
35
43
  title: "索引栏位",
36
44
  key: "indexField",
37
45
  width: 330,
38
- type: a.selectMultiple,
46
+ type: o.selectMultiple,
39
47
  options: [],
40
48
  defaultValue: "",
41
49
  placeholder: "请选择${title}",
@@ -45,7 +53,7 @@ const S = f({
45
53
  title: "索引类型",
46
54
  key: "indexType",
47
55
  width: 330,
48
- type: a.select,
56
+ type: o.select,
49
57
  options: [
50
58
  { title: "normal", value: "normal" },
51
59
  { title: "unique", value: "unique" }
@@ -54,20 +62,20 @@ const S = f({
54
62
  placeholder: "请选择${title}",
55
63
  validateRules: [{ required: !0, message: "请选择${title}" }]
56
64
  }
57
- ]), l = T(e), { tableRef: r, loading: i, dataSource: n, tableHeight: u, tableProps: t, setDataSource: s, validateData: p } = l;
65
+ ]), l = T(e), { tableRef: r, loading: i, dataSource: n, tableHeight: u, tableProps: t, setDataSource: d, validateData: p } = l;
58
66
  function m(c) {
59
- let d = [];
60
- c.value.tableRef.getTableData().forEach((o) => {
61
- o.dbFieldName && d.push({
62
- title: o.dbFieldName,
63
- value: o.dbFieldName
67
+ let s = [];
68
+ c.value.tableRef.getTableData().forEach((a) => {
69
+ a.dbFieldName && s.push({
70
+ title: a.dbFieldTxt,
71
+ value: a.dbFieldName
64
72
  });
65
- }), e.value[1].options = d;
73
+ }), e.value[1].options = s;
66
74
  }
67
- return { tableRef: r, loading: i, dataSource: n, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource: s, validateData: p };
75
+ return { tableRef: r, loading: i, dataSource: n, columns: e, tableHeight: u, tableProps: t, syncTable: m, setDataSource: d, validateData: p };
68
76
  }
69
77
  });
70
- function x(e, l, r, i, n, u) {
78
+ function S(e, l, r, i, n, u) {
71
79
  const t = g("JVxeTable");
72
80
  return h(), y(t, $({
73
81
  ref: "tableRef",
@@ -83,7 +91,7 @@ function x(e, l, r, i, n, u) {
83
91
  toolbar: e.actionButton
84
92
  }, e.tableProps), null, 16, ["maxHeight", "loading", "columns", "dataSource", "toolbar"]);
85
93
  }
86
- const C = /* @__PURE__ */ v(S, [["render", x]]);
94
+ const z = /* @__PURE__ */ v(x, [["render", S]]);
87
95
  export {
88
- C as default
96
+ z as default
89
97
  };
@@ -1,6 +1,6 @@
1
1
  import { computed as c, openBlock as n, createElementBlock as l, normalizeClass as p, createElementVNode as t, createCommentVNode as d, pushScopeId as r, popScopeId as _ } from "vue";
2
2
  import { useAppInject as m } from "/@/hooks/web/useAppInject";
3
- import { _ as v } from "./index-0e3ab3af.mjs";
3
+ import { _ as v } from "./index-1d1a6e56.mjs";
4
4
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
5
  import "/@/hooks/web/useMessage";
6
6
  import "vue-router";
@@ -0,0 +1,128 @@
1
+ var h = (i, p, o) => new Promise((t, n) => {
2
+ var u = (a) => {
3
+ try {
4
+ e(o.next(a));
5
+ } catch (s) {
6
+ n(s);
7
+ }
8
+ }, c = (a) => {
9
+ try {
10
+ e(o.throw(a));
11
+ } catch (s) {
12
+ n(s);
13
+ }
14
+ }, e = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(u, c);
15
+ e((o = o.apply(i, p)).next());
16
+ });
17
+ import { useDebounceFn as O } from "@vueuse/core";
18
+ import { defHttp as P } from "/@/utils/http/axios";
19
+ import { useMessage as k } from "/@/hooks/web/useMessage";
20
+ import { ref as m, watch as S, resolveComponent as _, openBlock as g, createBlock as y, withCtx as w, createElementBlock as B, Fragment as D, renderList as H, createTextVNode as I, toDisplayString as q } from "vue";
21
+ import { _ as L } from "./index-1d1a6e56.mjs";
22
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
+ import "vue-router";
24
+ const { createMessage: N } = k(), T = {
25
+ name: "JOnlineSearchSelect",
26
+ props: {
27
+ placeholder: {
28
+ type: String,
29
+ default: "",
30
+ required: !1
31
+ },
32
+ value: {
33
+ type: String,
34
+ required: !1
35
+ },
36
+ // online CgReport item id
37
+ fieldId: {
38
+ type: String,
39
+ required: !0
40
+ }
41
+ },
42
+ emits: ["update:value"],
43
+ setup(i, { emit: p }) {
44
+ let o = m(""), t = m([]), n = !0, u = !1, c = "";
45
+ const e = m(1);
46
+ S(
47
+ () => i.value,
48
+ (l) => {
49
+ l ? o.value = l : o.value = void 0;
50
+ },
51
+ { immediate: !0 }
52
+ ), S(
53
+ () => i.fieldId,
54
+ () => {
55
+ v();
56
+ },
57
+ { immediate: !0 }
58
+ );
59
+ const a = O((l) => {
60
+ c = l, e.value = 1, n = !0, s(l);
61
+ }, 800);
62
+ function s(l = "") {
63
+ return h(this, null, function* () {
64
+ let d = {
65
+ keyword: l,
66
+ fieldId: i.fieldId,
67
+ pageSize: 10,
68
+ pageNo: e.value
69
+ }, f = "/online/cgreport/api/getReportDictList";
70
+ yield P.get({ url: f, params: d }, { isTransformResponse: !1 }).then((r) => {
71
+ r.success ? r.result && r.result.length > 0 ? (e.value == 1 ? t.value = [...r.result] : t.value.push(...r.result), e.value++) : (e.value == 1 && (t.value = []), n = !1) : N.warning(r.message);
72
+ }).catch(() => {
73
+ e.value != 1 && e.value--;
74
+ });
75
+ });
76
+ }
77
+ function C(l) {
78
+ p("update:value", l), (!l || l == "") && v();
79
+ }
80
+ function v() {
81
+ t.value = [], e.value = 1, n = !0, c = "", s();
82
+ }
83
+ return {
84
+ selectOptions: t,
85
+ handleSearch: a,
86
+ handleChange: C,
87
+ selected: o,
88
+ handlePopupScroll: (l) => h(this, null, function* () {
89
+ const { target: d } = l, { scrollTop: f, scrollHeight: r, clientHeight: x } = d;
90
+ !u && n && f + x >= r - 10 && (u = !0, s(c).finally(() => {
91
+ u = !1;
92
+ }));
93
+ })
94
+ };
95
+ }
96
+ };
97
+ function F(i, p, o, t, n, u) {
98
+ const c = _("a-select-option"), e = _("a-select");
99
+ return g(), y(e, {
100
+ value: t.selected,
101
+ placeholder: o.placeholder,
102
+ "show-search": "",
103
+ "default-active-first-option": !1,
104
+ "show-arrow": !0,
105
+ "filter-option": !1,
106
+ "not-found-content": null,
107
+ onSearch: t.handleSearch,
108
+ onChange: t.handleChange,
109
+ onPopupScroll: t.handlePopupScroll,
110
+ allowClear: ""
111
+ }, {
112
+ default: w(() => [
113
+ (g(!0), B(D, null, H(t.selectOptions, (a) => (g(), y(c, {
114
+ key: a.value
115
+ }, {
116
+ default: w(() => [
117
+ I(q(a.text), 1)
118
+ ]),
119
+ _: 2
120
+ }, 1024))), 128))
121
+ ]),
122
+ _: 1
123
+ }, 8, ["value", "placeholder", "onSearch", "onChange", "onPopupScroll"]);
124
+ }
125
+ const G = /* @__PURE__ */ L(T, [["render", F]]);
126
+ export {
127
+ G as default
128
+ };
@@ -16,7 +16,7 @@ var f = (n, r, o) => new Promise((s, c) => {
16
16
  });
17
17
  import { defineComponent as h, ref as u, resolveComponent as m, openBlock as y, createElementBlock as K, createBlock as _, withCtx as D, createVNode as v, normalizeStyle as S, createCommentVNode as k } from "vue";
18
18
  import { queryTreeList as x } from "/@/api/common/api";
19
- import { _ as C } from "./index-0e3ab3af.mjs";
19
+ import { _ as C } from "./index-1d1a6e56.mjs";
20
20
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
21
21
  import "/@/hooks/web/useMessage";
22
22
  import "vue-router";
@@ -18,7 +18,7 @@ import { defineComponent as g, resolveComponent as _, openBlock as w, createBloc
18
18
  import { defHttp as h } from "/@/utils/http/axios";
19
19
  import { BasicTable as C } from "/@/components/Table";
20
20
  import { useListPage as R } from "/@/hooks/system/useListPage";
21
- import { _ as x } from "./index-0e3ab3af.mjs";
21
+ import { _ as x } from "./index-1d1a6e56.mjs";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "/@/hooks/web/useMessage";
24
24
  import "vue-router";
@@ -18,7 +18,7 @@ import { defineComponent as g, resolveComponent as w, openBlock as _, createBloc
18
18
  import { defHttp as T } from "/@/utils/http/axios";
19
19
  import { BasicTable as C } from "/@/components/Table";
20
20
  import { useListPage as x } from "/@/hooks/system/useListPage";
21
- import { _ as B } from "./index-0e3ab3af.mjs";
21
+ import { _ as B } from "./index-1d1a6e56.mjs";
22
22
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
23
23
  import "/@/hooks/web/useMessage";
24
24
  import "vue-router";
@@ -50,7 +50,7 @@ const R = g({
50
50
  field: "username",
51
51
  component: "JInput",
52
52
  componentProps: {
53
- placeholder: "输入账号模糊查询"
53
+ placeholder: "输入账号"
54
54
  }
55
55
  },
56
56
  {
@@ -58,7 +58,7 @@ const R = g({
58
58
  field: "realname",
59
59
  component: "JInput",
60
60
  componentProps: {
61
- placeholder: "输入姓名模糊查询"
61
+ placeholder: "输入姓名"
62
62
  }
63
63
  }
64
64
  ]