@jeecg/online 3.7.0-beta → 3.7.4-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 (150) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
  13. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
  14. package/AuthFieldConfig-f1e224cc.mjs +245 -0
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
  17. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/CgformModal-c4a4e0c2.mjs +667 -0
  23. package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
  24. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/CodeFileViewModal-405e2b58.mjs +253 -0
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
  30. package/DbToOnlineModal-f28ff0a3.mjs +168 -0
  31. package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
  36. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
  46. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
  66. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
  67. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
  73. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
  80. package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/auth.api-53df4c33.mjs +41 -0
  92. package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
  113. package/useTableSync-075826a1.mjs +89 -0
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-fe3988fb.mjs +0 -84
  116. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  117. package/AuthButtonTree-589395ed.mjs +0 -156
  118. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  119. package/AuthFieldTree-b7cd091e.mjs +0 -232
  120. package/CgformCopyList-8077ccc6.mjs +0 -250
  121. package/CgformModal-36faf29a.mjs +0 -621
  122. package/CodeFileListModal-0e26b7e0.mjs +0 -158
  123. package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
  124. package/CodeGeneratorModal-b722d976.mjs +0 -238
  125. package/CustomButtonList-37639061.mjs +0 -381
  126. package/DbToOnlineModal-f49b9530.mjs +0 -166
  127. package/JModalTip-4a83aaed.mjs +0 -49
  128. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  129. package/LeftRole-7d8c5acc.mjs +0 -86
  130. package/OnlCgformErpList-30e416c8.mjs +0 -470
  131. package/OnlCgformErpSubTable-9a876058.mjs +0 -427
  132. package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
  133. package/OnlCgformTabList-7a2f2c03.mjs +0 -408
  134. package/OnlineAutoList-46c6c8b9.mjs +0 -493
  135. package/OnlineAutoModal-971bef13.mjs +0 -236
  136. package/OnlineAutoTreeList-3b92454c.mjs +0 -502
  137. package/OnlineCustomModal-594244f3.mjs +0 -232
  138. package/OnlineForm-018981b2.mjs +0 -924
  139. package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
  140. package/OnlineQueryForm-998c12a4.mjs +0 -444
  141. package/OnlineTabForm-9ad7d29a.mjs +0 -805
  142. package/SetSwitchOptions-a452fa0f.mjs +0 -62
  143. package/SuperQuery-cbfba908.mjs +0 -975
  144. package/auth.api-d3a6c4b3.mjs +0 -39
  145. package/index-173949bb.mjs +0 -57
  146. package/useCgformList-8755a94e.mjs +0 -426
  147. package/useExtendComponent-bb7cca20.mjs +0 -4295
  148. package/useListButton-7ddb9a46.mjs +0 -697
  149. package/useTableSync-f6089e8a.mjs +0 -87
  150. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -26,18 +26,18 @@ var v = (i, r, n) => new Promise((o, b) => {
26
26
  c((n = n.apply(i, r)).next());
27
27
  });
28
28
  import { useMessage as ee } from "/@/hooks/web/useMessage";
29
- import { ref as s, watch as te, reactive as oe, resolveComponent as u, openBlock as p, createElementBlock as _, createVNode as y, createCommentVNode as I, withCtx as B, createBlock as k, Fragment as ne, renderList as re, normalizeStyle as ae, renderSlot as ie } from "vue";
29
+ import { ref as s, watch as te, reactive as oe, resolveComponent as u, openBlock as p, createElementBlock as _, createVNode as y, createCommentVNode as I, withCtx as B, createBlock as w, Fragment as ne, renderList as re, normalizeStyle as ae, renderSlot as ie } from "vue";
30
30
  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-c592b8d8.mjs";
35
+ import ce from "./OnlineSubFormDetail-8be879b9.mjs";
36
+ import { m as fe } from "./useExtendComponent-bb98e568.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-9e1e1e53.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-e016b8e6.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-d631ed72.mjs";
67
+ import "./JModalTip-a927f85d.mjs";
68
68
  import "ant-design-vue";
69
69
  import "@vueuse/core";
70
70
  const ye = {
@@ -115,7 +115,7 @@ const ye = {
115
115
  },
116
116
  emits: ["success", "rendered"],
117
117
  setup(i, { emit: r }) {
118
- const { createMessage: n } = ee(), { getIsMobile: o } = he(), b = s(""), S = s(!0), h = s(!1), c = s(1), l = s({}), f = s("auto"), w = s(340), T = s("0"), x = s(!o.value);
118
+ const { createMessage: n } = ee(), { getIsMobile: o } = he(), b = s(""), S = s(!0), h = s(!1), c = s(1), l = s({}), f = s("auto"), k = s(340), T = s("0"), x = s(!o.value);
119
119
  te(
120
120
  () => i.tabIndex,
121
121
  (e, t) => {
@@ -216,7 +216,7 @@ const ye = {
216
216
  hasSubTable: P,
217
217
  subTabInfo: A,
218
218
  subFormHeight: f,
219
- subTableHeight: w,
219
+ subTableHeight: k,
220
220
  refMap: E,
221
221
  onTabChange: J,
222
222
  //一对多子表
@@ -241,8 +241,8 @@ const Se = ["id"], Te = {
241
241
  key: 0,
242
242
  style: { "text-align": "right", position: "absolute", top: "15px", right: "20px", "z-index": "999" }
243
243
  }, ve = { key: 1 };
244
- function ke(i, r, n, o, b, S) {
245
- const h = u("PrinterOutlined"), c = u("detail-form"), l = u("a-tab-pane"), f = u("online-sub-form-detail"), w = u("JVxeTable"), T = u("a-spin"), x = u("a-tabs"), g = u("Loading");
244
+ function we(i, r, n, o, b, S) {
245
+ const h = u("PrinterOutlined"), c = u("detail-form"), l = u("a-tab-pane"), f = u("online-sub-form-detail"), k = u("JVxeTable"), T = u("a-spin"), x = u("a-tabs"), g = u("Loading");
246
246
  return p(), _("div", {
247
247
  id: o.tableName + "_form"
248
248
  }, [
@@ -260,7 +260,7 @@ function ke(i, r, n, o, b, S) {
260
260
  "onUpdate:activeKey": r[0] || (r[0] = (m) => o.subActiveKey = m)
261
261
  }, {
262
262
  default: B(() => [
263
- (p(), k(l, {
263
+ (p(), w(l, {
264
264
  tab: "主表",
265
265
  key: "-1"
266
266
  }, {
@@ -273,7 +273,7 @@ function ke(i, r, n, o, b, S) {
273
273
  ]),
274
274
  _: 1
275
275
  })),
276
- o.hasSubTable && n.showSub ? (p(!0), _(ne, { key: 0 }, re(o.subTabInfo, (m, P) => (p(), k(l, {
276
+ o.hasSubTable && n.showSub ? (p(!0), _(ne, { key: 0 }, re(o.subTabInfo, (m, P) => (p(), w(l, {
277
277
  tab: m.describe,
278
278
  key: P + "",
279
279
  forceRender: !0
@@ -290,7 +290,7 @@ function ke(i, r, n, o, b, S) {
290
290
  properties: m.properties
291
291
  }, null, 8, ["table", "form-template", "main-id", "properties"])
292
292
  ], 4)) : (p(), _("div", ve, [
293
- o.showStatus[m.key] ? (p(), k(w, {
293
+ o.showStatus[m.key] ? (p(), w(k, {
294
294
  key: 0,
295
295
  ref_for: !0,
296
296
  ref: o.refMap[m.key],
@@ -303,7 +303,7 @@ function ke(i, r, n, o, b, S) {
303
303
  columns: m.columns,
304
304
  dataSource: o.subDataSource[m.key],
305
305
  authPre: o.getSubTableAuthPre(m.key)
306
- }, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (p(), k(T, {
306
+ }, null, 8, ["row-number", "height", "columns", "dataSource", "authPre"])) : (p(), w(T, {
307
307
  key: 1,
308
308
  spinning: !0
309
309
  }))
@@ -321,7 +321,7 @@ function ke(i, r, n, o, b, S) {
321
321
  ie(i.$slots, "bottom", {}, void 0, !0)
322
322
  ], 8, Se);
323
323
  }
324
- const ft = /* @__PURE__ */ _e(ye, [["render", ke], ["__scopeId", "data-v-60a1e2da"]]);
324
+ const ft = /* @__PURE__ */ _e(ye, [["render", we], ["__scopeId", "data-v-60a1e2da"]]);
325
325
  export {
326
326
  ft as default
327
327
  };
@@ -1,24 +1,24 @@
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 Z = Object.defineProperty, ee = Object.defineProperties;
2
+ var te = Object.getOwnPropertyDescriptors;
3
+ var J = Object.getOwnPropertySymbols;
4
+ var le = Object.prototype.hasOwnProperty, ie = Object.prototype.propertyIsEnumerable;
5
+ var N = (i, u, s) => u in i ? Z(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
+ le.call(u, s) && N(i, s, u[s]);
8
+ if (J)
9
+ for (var s of J(u))
10
+ ie.call(u, s) && N(i, s, u[s]);
11
+ return i;
12
+ }, I = (i, u) => ee(i, te(u));
13
+ import { defineComponent as ae, ref as oe, resolveComponent as g, openBlock as O, createElementBlock as se, Fragment as de, createVNode as T, mergeProps as ne, withCtx as P, createBlock as ue, createTextVNode as re, createCommentVNode as fe } 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";
21
- import "./cgform.data-475d4984.mjs";
15
+ import { u as ce } from "./useTableSync-075826a1.mjs";
16
+ import me from "./LinkTableConfigModal-7eeb3e58.mjs";
17
+ import be from "./LinkTableFieldConfigModal-b078fcef.mjs";
18
+ import pe from "./FieldExtendJsonModal-bf04d70e.mjs";
19
+ import { useModal as S } from "/@/components/Modal";
20
+ import { _ as ye } from "./index-9e1e1e53.mjs";
21
+ import "./cgform.data-0ca62d09.mjs";
22
22
  import "/@/utils/dict";
23
23
  import "/@/utils/dict/JDictSelectUtil";
24
24
  import "/@/utils/uuid";
@@ -26,7 +26,7 @@ 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-f914bc17.mjs";
30
30
  import "/@/utils/is";
31
31
  import "./constant-fa63bd66.mjs";
32
32
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
@@ -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
+ ], he = ae({
84
84
  name: "PageAttributeTable",
85
85
  components: {
86
- LinkTableConfigModal: re,
87
- LinkTableFieldConfigModal: fe,
88
- FieldExtendJsonModal: ce
86
+ LinkTableConfigModal: me,
87
+ LinkTableFieldConfigModal: be,
88
+ FieldExtendJsonModal: pe
89
89
  },
90
90
  setup() {
91
- const l = le([
91
+ const i = oe([
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
  }
@@ -144,7 +144,7 @@ const H = [
144
144
  options: H,
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,16 +180,22 @@ 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: "控件默认值",
190
196
  key: "fieldDefaultValue",
191
197
  width: 140,
192
- type: r.input,
198
+ type: r.textarea,
193
199
  props: {
194
200
  allowClear: !0
195
201
  },
@@ -216,21 +222,21 @@ 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 = ce(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 }
230
236
  }
231
237
  ]);
232
238
  }
233
- function k(e) {
239
+ function w(e) {
234
240
  e.dbIsPersist === "0" && s.value.setValues([
235
241
  {
236
242
  rowKey: e.id,
@@ -238,14 +244,14 @@ const H = [
238
244
  }
239
245
  ]);
240
246
  }
241
- function F(e) {
242
- for (let t of l.value)
247
+ function k(e) {
248
+ for (let t of i.value)
243
249
  if (t.key == "fieldShowType") {
244
- t.options = e ? be : H;
250
+ t.options = e ? ge : H;
245
251
  break;
246
252
  }
247
253
  }
248
- function _(e) {
254
+ function F(e) {
249
255
  s.value.setValues([
250
256
  {
251
257
  rowKey: e,
@@ -253,62 +259,62 @@ 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 [_, { openModal: x }] = S(), [h, { openModal: M }] = S(), [K, { openModal: L }] = S();
263
+ function $(e) {
258
264
  return e.row.dbFieldName != "id";
259
265
  }
260
- function L(e) {
261
- e.row.fieldShowType.indexOf("link_table") >= 0 ? J(e) : z(e);
266
+ function B(e) {
267
+ e.row.fieldShowType.indexOf("link_table") >= 0 ? R(e) : z(e);
262
268
  }
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];
269
+ function R(e) {
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 = A(t, a);
275
+ x(!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 = Q(t, a);
275
281
  M(!0, o);
276
282
  }
277
283
  }
278
284
  }
279
- function B(e, t) {
280
- let a = s.value.getTableData().filter((g) => g.fieldShowType == "link_table"), o = {};
285
+ function Q(e, t) {
286
+ let a = s.value.getTableData().filter((b) => b.fieldShowType == "link_table"), o = {};
281
287
  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
288
+ let b = c.checkTable.value.tableRef.getTableData();
289
+ for (let v of a) {
290
+ let y = b.filter((p) => p.dbFieldName == v.dbFieldName);
291
+ if (y && y.length > 0) {
292
+ let p = y[0];
293
+ o[p.dbFieldName] = {
294
+ title: v.dbFieldTxt,
295
+ table: p.dictTable,
296
+ fields: p.dictText
291
297
  };
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: n, dbFieldTxt: d } = e;
296
302
  return {
297
303
  record: {
298
304
  rowKey: n,
299
305
  dbFieldTxt: d,
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;
312
+ function A(e, t) {
313
+ const { id: l, dbFieldTxt: a, fieldExtendJson: o } = e, { dictTable: m, dictText: f } = t;
308
314
  let n = {
309
- rowKey: i,
315
+ rowKey: l,
310
316
  dbFieldTxt: a,
311
- dictTable: c
317
+ dictTable: m
312
318
  };
313
319
  if (f) {
314
320
  let d = f.split(",");
@@ -318,129 +324,143 @@ const H = [
318
324
  if (o)
319
325
  try {
320
326
  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 = "";
327
+ d.multiSelect ? n.multiSelect = d.multiSelect : n.multiSelect = !1, d.isListReadOnly ? n.isListReadOnly = d.isListReadOnly : n.isListReadOnly = !1, d.showType ? n.showType = d.showType : n.showType = "card", d.imageField ? n.imageField = d.imageField : n.imageField = "";
322
328
  } catch (d) {
323
329
  }
324
330
  return n;
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 } }];
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);
332
+ function q(e) {
333
+ const { multiSelect: t, showType: l, imageField: a, fieldName: o, isListReadOnly: m } = e;
334
+ let f = { showType: l, multiSelect: t, imageField: a, isListReadOnly: m }, n = [{ rowKey: e.rowKey, values: { fieldExtendJson: JSON.stringify(f), dbFieldTxt: e.dbFieldTxt } }];
335
+ s.value.setValues(n);
336
+ let { checkTable: d, dbTable: D } = c;
337
+ if (D) {
338
+ let b = [{ rowKey: e.rowKey, values: { dbFieldTxt: e.dbFieldTxt } }];
339
+ D.value.tableRef.setValues(b);
334
340
  }
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,
341
+ if (d) {
342
+ let b = e.titleField;
343
+ e.otherFields && (b += "," + e.otherFields);
344
+ const { dictTable: v, dictField: y } = e;
345
+ let p = {
346
+ dictTable: v,
347
+ dictField: y,
348
+ dictText: b,
343
349
  dbFieldName: o
344
- }, b = [{ rowKey: e.rowKey, values: h }];
345
- n.value.tableRef.setValues(b);
350
+ }, Y = [{ rowKey: e.rowKey, values: p }];
351
+ d.value.tableRef.setValues(Y);
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;
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: n } = c;
353
359
  if (n) {
354
360
  let d = [{ rowKey: o, values: { dbFieldTxt: t, dbIsPersist: "0" } }];
355
361
  n.value.tableRef.setValues(d);
356
362
  }
357
363
  if (f) {
358
- let d = [{ rowKey: o, values: { dictTable: i, dictText: a } }];
364
+ let d = [{ rowKey: o, values: { dictTable: l, dictText: a } }];
359
365
  f.value.tableRef.setValues(d);
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;
365
- $(!0, {
369
+ let t = e.row.fieldExtendJson || "", l = e.rowId, a = e.row.fieldShowType || "", o = e.row.sortFlag || "0";
370
+ const m = e.row.dbType;
371
+ L(!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,
381
- enableQuery: _,
382
- syncFieldShowType: D,
383
- changePageType: F,
384
- showConfigButton: A,
385
- showFieldConfig: J,
386
- registerExtJsonModal: O,
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,
400
+ enableQuery: F,
401
+ syncFieldShowType: C,
402
+ changePageType: k,
403
+ showConfigButton: $,
404
+ showFieldConfig: R,
405
+ registerExtJsonModal: K,
387
406
  handleExtJson: W,
388
- openConfig: L,
389
- registerModal: x,
390
- handleConfigData: j,
391
- registerFieldModal: v,
392
- handleFieldConfigData: q,
393
- syncIsQuery: k,
394
- handleValueChange: G
407
+ openConfig: B,
408
+ registerModal: _,
409
+ handleConfigData: q,
410
+ registerFieldModal: h,
411
+ handleFieldConfigData: j,
412
+ syncIsQuery: w,
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 ve(i, u, s, c, V, C) {
419
+ const w = g("a-button"), k = g("JVxeTable"), F = g("link-table-config-modal"), _ = g("link-table-field-config-modal"), x = g("FieldExtendJsonModal");
420
+ return O(), se(de, null, [
421
+ T(k, ne({
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: P((h) => [
434
+ i.showConfigButton(h) ? (O(), ue(w, {
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(h)
420
440
  }, {
421
- default: K(() => [
422
- ne("更多配置")
423
- ]),
441
+ default: P(() => u[0] || (u[0] = [
442
+ re("更多配置")
443
+ ])),
424
444
  _: 2
425
- }, 1032, ["onClick"])) : de("", !0)
445
+ }, 1032, ["onClick"])) : fe("", !0)
426
446
  ]),
427
447
  _: 1
428
448
  }, 16, ["maxHeight", "loading", "columns", "dataSource", "onValueChange"]),
429
- w(_, {
430
- onRegister: l.registerModal,
431
- onSuccess: l.handleConfigData
449
+ T(F, {
450
+ onRegister: i.registerModal,
451
+ onSuccess: i.handleConfigData
432
452
  }, null, 8, ["onRegister", "onSuccess"]),
433
- w(x, {
434
- onRegister: l.registerFieldModal,
435
- onSuccess: l.handleFieldConfigData
453
+ T(_, {
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
+ T(x, {
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__ */ ye(he, [["render", ve], ["__scopeId", "data-v-519eccff"]]);
444
464
  export {
445
- Oe as default
465
+ Be as default
446
466
  };