@jeecg/online 3.7.0-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 (95) hide show
  1. package/{AiModal-fe3988fb.mjs → AiModal-6de335e3.mjs} +1 -1
  2. package/AuthButtonConfig-89763932.mjs +154 -0
  3. package/{AuthButtonTree-589395ed.mjs → AuthButtonTree-2d87d0b3.mjs} +6 -5
  4. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-5c3a8e6b.mjs} +11 -10
  5. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-dd7a1240.mjs} +6 -6
  6. package/AuthFieldConfig-9f6fa06c.mjs +245 -0
  7. package/{AuthFieldTree-b7cd091e.mjs → AuthFieldTree-e326fc38.mjs} +2 -2
  8. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-76f15e8d.mjs} +9 -8
  9. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-f5d2e87f.mjs} +12 -11
  10. package/{CgformCopyList-8077ccc6.mjs → CgformCopyList-365b3e8f.mjs} +43 -42
  11. package/CgformModal-21c5c387.mjs +671 -0
  12. package/{CgreportModal-5a23d089.mjs → CgreportModal-edefa8e3.mjs} +15 -14
  13. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-1bc8322d.mjs} +36 -33
  14. package/{CodeFileListModal-0e26b7e0.mjs → CodeFileListModal-24601898.mjs} +5 -4
  15. package/{CodeFileViewModal-9d4a5b5f.mjs → CodeFileViewModal-2fe911f4.mjs} +89 -84
  16. package/CodeGeneratorModal-f09fe903.mjs +282 -0
  17. package/{CustomButtonList-37639061.mjs → CustomButtonList-f07bc695.mjs} +108 -92
  18. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-285d40db.mjs} +79 -71
  19. package/DbToOnlineModal-5dcb67c3.mjs +169 -0
  20. package/{DetailForm-4aa2570b.mjs → DetailForm-deecbf3d.mjs} +50 -49
  21. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-45c66cd5.mjs} +2 -2
  22. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-fab3102e.mjs} +1 -1
  23. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-175357a1.mjs} +119 -103
  24. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-7ea1b300.mjs} +2 -2
  25. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-a89ae052.mjs} +2 -2
  26. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-32135634.mjs} +2 -2
  27. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-1643c8b9.mjs} +1 -1
  28. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-7f7e28a7.mjs} +2 -2
  29. package/{IndexTable-1b496559.mjs → IndexTable-cdcc2b48.mjs} +27 -19
  30. package/{JModalTip-4a83aaed.mjs → JModalTip-b055ab60.mjs} +1 -1
  31. package/JOnlineSearchSelect-22aae934.mjs +128 -0
  32. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-d5615ed9.mjs} +1 -1
  33. package/{LeftRole-7d8c5acc.mjs → LeftRole-2ed8a2bf.mjs} +1 -1
  34. package/{LeftUser-b4d1372a.mjs → LeftUser-22baa378.mjs} +1 -1
  35. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-9242d750.mjs} +1 -1
  36. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-24adc50c.mjs} +1 -1
  37. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-f3a8e0d7.mjs} +1 -1
  38. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-711418db.mjs} +1 -1
  39. package/{OnlCgformErpList-30e416c8.mjs → OnlCgformErpList-58acdfa0.mjs} +121 -121
  40. package/{OnlCgformErpSubTable-9a876058.mjs → OnlCgformErpSubTable-9b1e1938.mjs} +149 -150
  41. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6c23781f.mjs} +96 -97
  42. package/{OnlCgformInnerTableList-f89b6687.mjs → OnlCgformInnerTableList-4b5e14ed.mjs} +156 -156
  43. package/{OnlCgformTabList-7a2f2c03.mjs → OnlCgformTabList-019ad753.mjs} +138 -138
  44. package/{OnlineAutoList-46c6c8b9.mjs → OnlineAutoList-48589d09.mjs} +90 -90
  45. package/{OnlineAutoModal-971bef13.mjs → OnlineAutoModal-c2928847.mjs} +64 -61
  46. package/{OnlineAutoTreeList-3b92454c.mjs → OnlineAutoTreeList-3baa1d00.mjs} +20 -19
  47. package/{OnlineCustomModal-594244f3.mjs → OnlineCustomModal-9e17b6ce.mjs} +8 -8
  48. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-d5895734.mjs} +8 -8
  49. package/OnlineForm-9f1153ba.mjs +985 -0
  50. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-022ca117.mjs} +7 -7
  51. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-9715d70a.mjs} +10 -10
  52. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-8f864b1a.mjs} +12 -12
  53. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-ac985b36.mjs} +10 -10
  54. package/{OnlineFormUrlSuccess-af285b02.mjs → OnlineFormUrlSuccess-3dfc54ab.mjs} +1 -1
  55. package/OnlineQueryForm-eedb9a60.mjs +466 -0
  56. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-6c557343.mjs} +2 -2
  57. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-05c40fef.mjs} +1 -1
  58. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-58e896ce.mjs} +7 -7
  59. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-47b18ad6.mjs} +7 -7
  60. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-82de1465.mjs} +8 -8
  61. package/{OnlineTabForm-9ad7d29a.mjs → OnlineTabForm-27655c83.mjs} +236 -224
  62. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-8d0c40c0.mjs} +7 -7
  63. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-25e3b7da.mjs} +156 -136
  64. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-148632fe.mjs} +61 -55
  65. package/{QueryTable-96b3dbd0.mjs → QueryTable-f7bfca7f.mjs} +39 -36
  66. package/{SetSwitchOptions-a452fa0f.mjs → SetSwitchOptions-b2af757f.mjs} +1 -1
  67. package/SuperQuery-a8592995.mjs +967 -0
  68. package/auth.api-ea1d33d4.mjs +41 -0
  69. package/{auth.data-22948e87.mjs → auth.data-511e5197.mjs} +62 -28
  70. package/{enhance.data-3304d553.mjs → enhance.data-a67572e1.mjs} +8 -7
  71. package/index-1d1a6e56.mjs +57 -0
  72. package/{index-d2abb8a0.mjs → index-30e0e923.mjs} +48 -47
  73. package/{index-581bef24.mjs → index-f30613d1.mjs} +2 -2
  74. package/main.index.js +1 -1
  75. package/package.json +1 -1
  76. package/style.css +1 -1
  77. package/{useCgformList-8755a94e.mjs → useCgformList-f41d4dc1.mjs} +1 -1
  78. package/useExtendComponent-dcae5c78.mjs +4399 -0
  79. package/{useListButton-7ddb9a46.mjs → useListButton-bfac4ecf.mjs} +45 -45
  80. package/{useSchemas-47e45edc.mjs → useSchemas-a9c75b0f.mjs} +55 -46
  81. package/useTableSync-d7e9f18d.mjs +89 -0
  82. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  83. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  84. package/CgformModal-36faf29a.mjs +0 -621
  85. package/CodeGeneratorModal-b722d976.mjs +0 -238
  86. package/DbToOnlineModal-f49b9530.mjs +0 -166
  87. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  88. package/OnlineForm-018981b2.mjs +0 -924
  89. package/OnlineQueryForm-998c12a4.mjs +0 -444
  90. package/SuperQuery-cbfba908.mjs +0 -975
  91. package/auth.api-d3a6c4b3.mjs +0 -39
  92. package/index-173949bb.mjs +0 -57
  93. package/useExtendComponent-bb7cca20.mjs +0 -4295
  94. package/useTableSync-f6089e8a.mjs +0 -87
  95. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs} +0 -0
@@ -31,13 +31,13 @@ import { Loading as le } from "/@/components/Loading";
31
31
  import { getToken as me } from "/@/utils/auth";
32
32
  import { goJmReportViewPage as se } from "/@/utils";
33
33
  import { PrinterOutlined as pe } from "@ant-design/icons-vue";
34
- import ue from "./DetailForm-4aa2570b.mjs";
35
- import ce from "./OnlineSubFormDetail-03f8ee5c.mjs";
36
- import { k as fe } from "./useExtendComponent-bb7cca20.mjs";
34
+ import ue from "./DetailForm-deecbf3d.mjs";
35
+ import ce from "./OnlineSubFormDetail-58e896ce.mjs";
36
+ import { k as fe } from "./useExtendComponent-dcae5c78.mjs";
37
37
  import { defHttp as de } from "/@/utils/http/axios";
38
38
  import { E as be, T as ge } from "./constant-fa63bd66.mjs";
39
39
  import { useAppInject as he } from "/@/hooks/web/useAppInject";
40
- import { _ as _e } from "./index-173949bb.mjs";
40
+ import { _ as _e } from "./index-1d1a6e56.mjs";
41
41
  import "/@/utils/propTypes";
42
42
  import "/@/utils/dict";
43
43
  import "/@/utils/dict/JDictSelectUtil";
@@ -60,11 +60,11 @@ import "/@/store/modules/permission";
60
60
  import "/@/components/Table";
61
61
  import "/@/hooks/system/useListPage";
62
62
  import "vue-router";
63
- import "./LinkTableListPiece-2660d709.mjs";
63
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
64
64
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
65
65
  import "/@/assets/images/placeholderImage.png";
66
- import "./OnlineSelectCascade-471fcc76.mjs";
67
- import "./JModalTip-4a83aaed.mjs";
66
+ import "./OnlineSelectCascade-05c40fef.mjs";
67
+ import "./JModalTip-b055ab60.mjs";
68
68
  import "ant-design-vue";
69
69
  import "@vueuse/core";
70
70
  const ye = {
@@ -1,23 +1,23 @@
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) => {
1
+ var Y = Object.defineProperty, Z = Object.defineProperties;
2
+ var ee = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var te = Object.prototype.hasOwnProperty, le = Object.prototype.propertyIsEnumerable;
5
+ var N = (i, u, s) => u in i ? Y(i, u, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[u] = s, E = (i, u) => {
6
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";
7
+ te.call(u, s) && N(i, s, u[s]);
8
+ if (R)
9
+ for (var s of R(u))
10
+ le.call(u, s) && N(i, s, u[s]);
11
+ return i;
12
+ }, I = (i, u) => Z(i, ee(u));
13
+ import { defineComponent as ie, ref as ae, resolveComponent as h, openBlock as P, createElementBlock as oe, Fragment as se, createVNode as w, mergeProps as de, withCtx as H, createBlock as ne, createTextVNode as ue, createCommentVNode as re } from "vue";
14
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";
15
+ import { u as fe } from "./useTableSync-d7e9f18d.mjs";
16
+ import ce from "./LinkTableConfigModal-9242d750.mjs";
17
+ import me from "./LinkTableFieldConfigModal-24adc50c.mjs";
18
+ import be from "./FieldExtendJsonModal-32135634.mjs";
19
+ import { useModal as S } from "/@/components/Modal";
20
+ import { _ as pe } from "./index-1d1a6e56.mjs";
21
21
  import "./cgform.data-475d4984.mjs";
22
22
  import "/@/utils/dict";
23
23
  import "/@/utils/dict/JDictSelectUtil";
@@ -26,12 +26,12 @@ import "lodash-es";
26
26
  import "/@/components/Form/index";
27
27
  import "/@/utils/http/axios";
28
28
  import "/@/hooks/web/useMessage";
29
- import "./SetSwitchOptions-a452fa0f.mjs";
29
+ import "./SetSwitchOptions-b2af757f.mjs";
30
30
  import "/@/utils/is";
31
31
  import "./constant-fa63bd66.mjs";
32
32
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
33
33
  import "vue-router";
34
- const H = [
34
+ const K = [
35
35
  { title: "文本框", value: "text" },
36
36
  { title: "密码", value: "password" },
37
37
  { title: "下拉框", value: "list" },
@@ -60,7 +60,7 @@ const H = [
60
60
  { title: "分类字典树", value: "cat_tree" },
61
61
  { title: "自定义树控件", value: "sel_tree" },
62
62
  { title: "联动组件", value: "link_down" }
63
- ], be = [
63
+ ], ge = [
64
64
  { title: "文本框", value: "text" },
65
65
  { title: "单选框", value: "radio" },
66
66
  { title: "开关", value: "switch" },
@@ -74,21 +74,21 @@ const H = [
74
74
  { title: "下拉搜索框", value: "sel_search" },
75
75
  { title: "popup弹出框", value: "popup" },
76
76
  // update-begin--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
77
- { title: "Popup字典", value: "popup_dict" },
77
+ // { title: 'Popup字典', value: 'popup_dict' },
78
78
  // update-end--author:liaozhiyang---date:20240130---for:【QQYUN-7961】popupDict字典
79
79
  { title: "部门选择", value: "sel_depart" },
80
80
  { title: "用户选择", value: "sel_user" },
81
81
  { title: "省市区组件", value: "pca" },
82
82
  { title: "多行文本", value: "textarea" }
83
- ], me = te({
83
+ ], ye = ie({
84
84
  name: "PageAttributeTable",
85
85
  components: {
86
- LinkTableConfigModal: re,
87
- LinkTableFieldConfigModal: fe,
88
- FieldExtendJsonModal: ce
86
+ LinkTableConfigModal: ce,
87
+ LinkTableFieldConfigModal: me,
88
+ FieldExtendJsonModal: be
89
89
  },
90
90
  setup() {
91
- const l = le([
91
+ const i = ae([
92
92
  { title: "字段名称", key: "dbFieldName", width: 100 },
93
93
  { title: "字段备注", key: "dbFieldTxt", width: 150 },
94
94
  {
@@ -120,8 +120,8 @@ const H = [
120
120
  // update-begin--author:liaozhiyang---date:20240528---for:【TV360X-291】没勾选同步数据库禁用排序功能
121
121
  props: {
122
122
  isDisabledCell({ row: e, column: t }) {
123
- let { dbTable: i } = p;
124
- const a = i.value.tableRef.getTableData({ rowIds: [e.id] })[0];
123
+ let { dbTable: l } = c;
124
+ const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
125
125
  return (a == null ? void 0 : a.dbIsPersist) == "0";
126
126
  }
127
127
  }
@@ -141,10 +141,10 @@ const H = [
141
141
  key: "fieldShowType",
142
142
  width: 170,
143
143
  type: r.select,
144
- options: H,
144
+ options: K,
145
145
  defaultValue: "text",
146
146
  placeholder: "请选择${title}",
147
- validateRules: [{ required: !0, message: "请选择${title}" }, { handler: S }]
147
+ validateRules: [{ required: !0, message: "请选择${title}" }, { handler: V }]
148
148
  },
149
149
  {
150
150
  title: "控件长度",
@@ -166,8 +166,8 @@ const H = [
166
166
  // update-begin--author:liaozhiyang---date:20240528---for:【TV360X-423】未勾选同步数据库禁用查询
167
167
  props: {
168
168
  isDisabledCell({ row: e, column: t }) {
169
- let { dbTable: i } = p;
170
- const a = i.value.tableRef.getTableData({ rowIds: [e.id] })[0];
169
+ let { dbTable: l } = c;
170
+ const a = l.value.tableRef.getTableData({ rowIds: [e.id] })[0];
171
171
  return (a == null ? void 0 : a.dbIsPersist) == "0";
172
172
  }
173
173
  }
@@ -180,10 +180,16 @@ const H = [
180
180
  type: r.select,
181
181
  options: [
182
182
  { title: "普通查询", value: "single" },
183
+ { title: "模糊查询", value: "like" },
183
184
  { title: "范围查询", value: "group" }
184
185
  ],
185
186
  defaultValue: "single",
186
- placeholder: "请选择${title}"
187
+ placeholder: "请选择${title}",
188
+ validateRules: [{ handler: U }],
189
+ props: {
190
+ isDisabledCell({ row: e, column: t }) {
191
+ }
192
+ }
187
193
  },
188
194
  {
189
195
  title: "控件默认值",
@@ -216,14 +222,14 @@ const H = [
216
222
  type: r.slot,
217
223
  slotName: "fieldConfig"
218
224
  }
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);
225
+ ]), u = fe(i), { tableRef: s, tables: c } = u;
226
+ function V({ cellValue: e, row: t }, l) {
227
+ let { dbTable: a } = c, o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
228
+ e === "time" && o !== "string" ? l(!1, "当控件类型为时间时,数据库属性里的字段类型必须是String!") : e === "date" && o !== "Date" && o !== "Datetime" ? l(!1, "当控件类型为日期时,数据库属性里的字段类型必须是Date或Datetime!") : e === "datetime" && o !== "Datetime" ? l(!1, "当控件类型为datetime时,数据库属性里的字段类型必须是Datetime!") : l(!0);
223
229
  }
224
- function D(e) {
225
- let t = "date";
226
- e.dbType === "Datetime" && (t = "datetime"), e.dbType === "string" && (t = "text"), s.value.setValues([
230
+ function C(e) {
231
+ let t = "text";
232
+ e.dbType === "Datetime" ? t = "datetime" : e.dbType === "Date" && (t = "date"), s.value.setValues([
227
233
  {
228
234
  rowKey: e.id,
229
235
  values: { fieldShowType: t }
@@ -239,9 +245,9 @@ const H = [
239
245
  ]);
240
246
  }
241
247
  function F(e) {
242
- for (let t of l.value)
248
+ for (let t of i.value)
243
249
  if (t.key == "fieldShowType") {
244
- t.options = e ? be : H;
250
+ t.options = e ? ge : K;
245
251
  break;
246
252
  }
247
253
  }
@@ -253,37 +259,37 @@ const H = [
253
259
  }
254
260
  ]);
255
261
  }
256
- const [x, { openModal: V }] = C(), [v, { openModal: M }] = C(), [O, { openModal: $ }] = C();
257
- function A(e) {
262
+ const [x, { openModal: D }] = S(), [v, { openModal: M }] = S(), [O, { openModal: $ }] = S();
263
+ function B(e) {
258
264
  return e.row.dbFieldName != "id";
259
265
  }
260
- function L(e) {
266
+ function Q(e) {
261
267
  e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : z(e);
262
268
  }
263
269
  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];
270
+ let { row: t } = e, { checkTable: l } = c;
271
+ if (l) {
272
+ let a = l.value.tableRef.getTableData({ rowIds: [t.id] })[0];
267
273
  if (e.row.fieldShowType == "link_table") {
268
- let o = Q(t, a);
269
- V(!0, {
274
+ let o = L(t, a);
275
+ D(!0, {
270
276
  record: o,
271
277
  fieldName: t.dbFieldName
272
278
  });
273
279
  } else if (e.row.fieldShowType == "link_table_field") {
274
- let o = B(t, a);
280
+ let o = A(t, a);
275
281
  M(!0, o);
276
282
  }
277
283
  }
278
284
  }
279
- function B(e, t) {
285
+ function A(e, t) {
280
286
  let a = s.value.getTableData().filter((g) => g.fieldShowType == "link_table"), o = {};
281
287
  if (a && a.length > 0) {
282
- let g = p.checkTable.value.tableRef.getTableData();
288
+ let g = c.checkTable.value.tableRef.getTableData();
283
289
  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];
290
+ let y = g.filter((b) => b.dbFieldName == T.dbFieldName);
291
+ if (y && y.length > 0) {
292
+ let b = y[0];
287
293
  o[b.dbFieldName] = {
288
294
  title: T.dbFieldTxt,
289
295
  table: b.dictTable,
@@ -292,155 +298,169 @@ const H = [
292
298
  }
293
299
  }
294
300
  }
295
- const { dictTable: c, dictText: f } = t, { id: n, dbFieldTxt: d } = e;
301
+ const { dictTable: m, dictText: f } = t, { id: d, dbFieldTxt: n } = e;
296
302
  return {
297
303
  record: {
298
- rowKey: n,
299
- dbFieldTxt: d,
304
+ rowKey: d,
305
+ dbFieldTxt: n,
300
306
  dictText: f,
301
- dictTable: c
307
+ dictTable: m
302
308
  },
303
309
  tableAndFieldsMap: o
304
310
  };
305
311
  }
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,
312
+ function L(e, t) {
313
+ const { id: l, dbFieldTxt: a, fieldExtendJson: o } = e, { dictTable: m, dictText: f } = t;
314
+ let d = {
315
+ rowKey: l,
310
316
  dbFieldTxt: a,
311
- dictTable: c
317
+ dictTable: m
312
318
  };
313
319
  if (f) {
314
- let d = f.split(",");
315
- n.titleField = d[0], d.length > 1 && (n.otherFields = f.substring(f.indexOf(",") + 1));
320
+ let n = f.split(",");
321
+ d.titleField = n[0], n.length > 1 && (d.otherFields = f.substring(f.indexOf(",") + 1));
316
322
  } else
317
- n.titleField = "", n.otherFields = "";
323
+ d.titleField = "", d.otherFields = "";
318
324
  if (o)
319
325
  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) {
326
+ let n = JSON.parse(o);
327
+ n.multiSelect ? d.multiSelect = n.multiSelect : d.multiSelect = !1, n.showType ? d.showType = n.showType : d.showType = "card", n.imageField ? d.imageField = n.imageField : d.imageField = "";
328
+ } catch (n) {
323
329
  }
324
- return n;
330
+ return d;
325
331
  }
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 } }];
332
+ function q(e) {
333
+ const { multiSelect: t, showType: l, imageField: a, fieldName: o } = e;
334
+ let m = { showType: l, multiSelect: t, imageField: a }, f = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(m), dbFieldTxt: e.dbFieldTxt } }];
329
335
  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
- }
336
+ let { checkTable: d, dbTable: n } = c;
335
337
  if (n) {
336
- let m = e.titleField;
337
- e.otherFields && (m += "," + e.otherFields);
338
+ let p = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
339
+ n.value.tableRef.setValues(p);
340
+ }
341
+ if (d) {
342
+ let p = e.titleField;
343
+ e.otherFields && (p += "," + e.otherFields);
338
344
  const { dictTable: g, dictField: T } = e;
339
- let h = {
345
+ let y = {
340
346
  dictTable: g,
341
347
  dictField: T,
342
- dictText: m,
348
+ dictText: p,
343
349
  dbFieldName: o
344
- }, b = [{ rowKey: e.rowKey, values: h }];
345
- n.value.tableRef.setValues(b);
350
+ }, b = [{ rowKey: e.rowKey, values: y }];
351
+ d.value.tableRef.setValues(b);
346
352
  }
347
353
  }
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);
354
+ function j(e) {
355
+ const { dbFieldTxt: t, dictTable: l, dictText: a, rowKey: o } = e;
356
+ let m = [{ rowKey: o, values: { dbFieldTxt: t } }];
357
+ s.value.setValues(m);
358
+ let { checkTable: f, dbTable: d } = c;
359
+ if (d) {
360
+ let n = [{ rowKey: o, values: { dbFieldTxt: t, dbIsPersist: "0" } }];
361
+ d.value.tableRef.setValues(n);
356
362
  }
357
363
  if (f) {
358
- let d = [{ rowKey: o, values: { dictTable: i, dictText: a } }];
359
- f.value.tableRef.setValues(d);
364
+ let n = [{ rowKey: o, values: { dictTable: l, dictText: a } }];
365
+ f.value.tableRef.setValues(n);
360
366
  }
361
367
  }
362
368
  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;
369
+ let t = e.row.fieldExtendJson || "", l = e.rowId, a = e.row.fieldShowType || "", o = e.row.sortFlag || "0";
370
+ const m = e.row.dbType;
365
371
  $(!0, {
366
372
  jsonStr: t,
367
373
  fieldShowType: a,
368
374
  sortFlag: o,
369
- id: i,
370
- dbType: c
375
+ id: l,
376
+ dbType: m
371
377
  });
372
378
  }
373
379
  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);
380
+ let l;
381
+ e && Object.keys(e).length > 0 ? l = [{ rowKey: t, values: { fieldExtendJson: JSON.stringify(e) } }] : l = [{ rowKey: t, values: { fieldExtendJson: "" } }], s.value.setValues(l);
376
382
  }
377
383
  const G = (e) => {
378
384
  };
379
- return P(R({}, u), {
380
- columns: l,
385
+ function U({ cellValue: e, row: t }, l) {
386
+ let { dbTable: a } = c;
387
+ const o = a.value.tableRef.getTableData({ rowIds: [t.id] })[0].dbType;
388
+ e === "group" ? ["double", "int", "BigDecimal", "Date", "Datetime"].includes(o) || t.fieldShowType === "time" ? l(!0) : l(!1, "范围查询,只支持数据库属里的字段类型为:Integer、Double、BigDecimal及Date、Datetime 或 控件类型是时间(HH:mm:ss)") : e === "like" ? ["string"].includes(o) && t.fieldShowType === "text" ? l(!0) : l(!1, "模糊查询,只支持控件类型是文本框且数据库属里的字段类型是String") : l(!0);
389
+ }
390
+ const X = ({ oldValue: e, row: t }) => {
391
+ t.dbType != "string" && e == "string" && s.value.getTableData({ rowIds: [t.id] })[0].queryMode == "like" && s.value.setValues([
392
+ {
393
+ rowKey: t.id,
394
+ values: { queryMode: "single" }
395
+ }
396
+ ]);
397
+ };
398
+ return I(E({}, u), {
399
+ columns: i,
381
400
  enableQuery: _,
382
- syncFieldShowType: D,
401
+ syncFieldShowType: C,
383
402
  changePageType: F,
384
- showConfigButton: A,
403
+ showConfigButton: B,
385
404
  showFieldConfig: J,
386
405
  registerExtJsonModal: O,
387
406
  handleExtJson: W,
388
- openConfig: L,
407
+ openConfig: Q,
389
408
  registerModal: x,
390
- handleConfigData: j,
409
+ handleConfigData: q,
391
410
  registerFieldModal: v,
392
- handleFieldConfigData: q,
411
+ handleFieldConfigData: j,
393
412
  syncIsQuery: k,
394
- handleValueChange: G
413
+ handleValueChange: G,
414
+ syncQueryMode: X
395
415
  });
396
416
  }
397
417
  });
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({
418
+ function he(i, u, s, c, V, C) {
419
+ const k = h("a-button"), F = h("JVxeTable"), _ = h("link-table-config-modal"), x = h("link-table-field-config-modal"), D = h("FieldExtendJsonModal");
420
+ return P(), oe(se, null, [
421
+ w(F, de({
402
422
  ref: "tableRef",
403
423
  "row-class-name": "online-config-page",
404
424
  rowNumber: "",
405
425
  keyboardEdit: "",
406
- maxHeight: l.tableHeight.noToolbar,
407
- loading: l.loading,
408
- columns: l.columns,
409
- dataSource: l.dataSource,
426
+ maxHeight: i.tableHeight.noToolbar,
427
+ loading: i.loading,
428
+ columns: i.columns,
429
+ dataSource: i.dataSource,
410
430
  disabledRows: { dbFieldName: ["id", "has_child"] },
411
- onValueChange: l.handleValueChange
412
- }, l.tableProps), {
413
- fieldConfig: K((v) => [
414
- l.showConfigButton(v) ? (I(), se(k, {
431
+ onValueChange: i.handleValueChange
432
+ }, i.tableProps), {
433
+ fieldConfig: H((v) => [
434
+ i.showConfigButton(v) ? (P(), ne(k, {
415
435
  key: 0,
416
436
  type: "primary",
417
437
  size: "small",
418
438
  ghost: "",
419
- onClick: (M) => l.openConfig(v)
439
+ onClick: (M) => i.openConfig(v)
420
440
  }, {
421
- default: K(() => [
422
- ne("更多配置")
441
+ default: H(() => [
442
+ ue("更多配置")
423
443
  ]),
424
444
  _: 2
425
- }, 1032, ["onClick"])) : de("", !0)
445
+ }, 1032, ["onClick"])) : re("", !0)
426
446
  ]),
427
447
  _: 1
428
448
  }, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]),
429
449
  w(_, {
430
- onRegister: l.registerModal,
431
- onSuccess: l.handleConfigData
450
+ onRegister: i.registerModal,
451
+ onSuccess: i.handleConfigData
432
452
  }, null, 8, ["onRegister", "onSuccess"]),
433
453
  w(x, {
434
- onRegister: l.registerFieldModal,
435
- onSuccess: l.handleFieldConfigData
454
+ onRegister: i.registerFieldModal,
455
+ onSuccess: i.handleFieldConfigData
436
456
  }, null, 8, ["onRegister", "onSuccess"]),
437
- w(V, {
438
- onRegister: l.registerExtJsonModal,
439
- onSuccess: l.handleExtJson
457
+ w(D, {
458
+ onRegister: i.registerExtJsonModal,
459
+ onSuccess: i.handleExtJson
440
460
  }, null, 8, ["onRegister", "onSuccess"])
441
461
  ], 64);
442
462
  }
443
- const Oe = /* @__PURE__ */ pe(me, [["render", ge], ["__scopeId", "data-v-bc04961b"]]);
463
+ const Be = /* @__PURE__ */ pe(ye, [["render", he], ["__scopeId", "data-v-e34da524"]]);
444
464
  export {
445
- Oe as default
465
+ Be as default
446
466
  };