@jeecg/online 3.9.0-beta2 → 3.9.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 (170) hide show
  1. package/{AccountLoginForm-634a76b1.mjs → AccountLoginForm-BXyvcSds.mjs} +50 -53
  2. package/{AiModal-204a2146.mjs → AiModal-BgVzn074.mjs} +18 -20
  3. package/{AppForgetPassword-f9a6258a.mjs → AppForgetPassword-B-2CvL62.mjs} +59 -63
  4. package/AppLogin-BMBmx2oq.mjs +272 -0
  5. package/AppLoginHeader-BtKXOMRR.mjs +23 -0
  6. package/{AppNameEmail-54026ea8.mjs → AppNameEmail-DCqMNjaK.mjs} +20 -24
  7. package/{AppRegister-043efc45.mjs → AppRegister-C5iH-245.mjs} +33 -37
  8. package/{AppTenant-c7bb8700.mjs → AppTenant-etPXeUcW.mjs} +49 -55
  9. package/AppThirdForm-NMob-JaS.mjs +185 -0
  10. package/AuthButtonConfig-zUioaGwn.mjs +155 -0
  11. package/AuthButtonTree-DYZwphe6.mjs +159 -0
  12. package/{AuthDataConfig-3cd10ca2.mjs → AuthDataConfig-uQ5WT7rx.mjs} +57 -62
  13. package/AuthDataTree-Cr28_YKx.mjs +134 -0
  14. package/{AuthFieldConfig-bb65f78b.mjs → AuthFieldConfig-DjdaPIXF.mjs} +95 -101
  15. package/{AuthFieldTree-3e38b12b.mjs → AuthFieldTree-DHmnDQ0I.mjs} +94 -99
  16. package/AuthManagerDrawer-DUb6QylS.mjs +108 -0
  17. package/{AuthSetterModal-f176c221.mjs → AuthSetterModal-BBFdNv1M.mjs} +89 -100
  18. package/BuiltInButtonList-Cgg5maxI.mjs +4 -0
  19. package/{BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs → BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs} +8 -8
  20. package/{CgformAddressModal-a3903b24.mjs → CgformAddressModal-BVoww1fk.mjs} +57 -63
  21. package/CgformCopyList-7e96RMbJ.mjs +176 -0
  22. package/{CgformModal-115710a6.mjs → CgformModal-RH-Tr08S.mjs} +240 -241
  23. package/{CgreportAigcModal-3bef8abe.mjs → CgreportAigcModal-rEfIpPF9.mjs} +35 -38
  24. package/{CgreportModal-0cc48587.mjs → CgreportModal-Bajb_3ku.mjs} +49 -50
  25. package/{CheckDictTable-65157c48.mjs → CheckDictTable-BxJFrctQ.mjs} +44 -52
  26. package/{CodeFileListModal-305c1a62.mjs → CodeFileListModal-C3uqsFvi.mjs} +32 -36
  27. package/{CodeFileViewModal-320d7acf.mjs → CodeFileViewModal-bEtZDbAY.mjs} +78 -81
  28. package/CodeGeneratorModal-ZWEIXRbY.mjs +291 -0
  29. package/{CustomButtonList-98db8fd2.mjs → CustomButtonList-7wjonhtu.mjs} +82 -85
  30. package/{DBAttributeTable-56701599.mjs → DBAttributeTable-DA2XttIQ.mjs} +50 -60
  31. package/{DbToOnlineModal-a82cdeb5.mjs → DbToOnlineModal-CDVqmEJH.mjs} +43 -45
  32. package/DetailForm-CnfJBMys.mjs +472 -0
  33. package/{DropMenuItem-b3a9cd6a.mjs → DropMenuItem-D8YWMle-.mjs} +8 -11
  34. package/EnhanceJavaModal-W8_oGY-U.mjs +255 -0
  35. package/{EnhanceJsHistory-bb6ba865.mjs → EnhanceJsHistory-ZzXedCNI.mjs} +48 -49
  36. package/{EnhanceJsModal-b0527cbf.mjs → EnhanceJsModal-Djb5ItH4.mjs} +95 -104
  37. package/EnhanceSqlModal-DxPdRcQc.mjs +258 -0
  38. package/ErrorTip-BDS1uxkW.mjs +4 -0
  39. package/{ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs → ErrorTip.vue_vue_type_script_setup_true_lang-Bl9zMjvW.mjs} +11 -11
  40. package/ExtendConfigModal-CxJIWvV4.mjs +102 -0
  41. package/{FieldExtendJsonModal-536e6d5b.mjs → FieldExtendJsonModal-Bvmbb6yd.mjs} +27 -30
  42. package/{FileSelectModal-eb026170.mjs → FileSelectModal-DXqL5msQ.mjs} +27 -31
  43. package/{ForeignKeyTable-97a5827f.mjs → ForeignKeyTable-D6AlLbfd.mjs} +17 -25
  44. package/{IndexTable-4d350e4e.mjs → IndexTable-B7ef6Aox.mjs} +9 -17
  45. package/JModalTip-DHrn6ksJ.mjs +46 -0
  46. package/{JOnlineSearchSelect-ffeac61d.mjs → JOnlineSearchSelect-CAv2Dm9V.mjs} +21 -23
  47. package/{LeftDepart-a727aab7.mjs → LeftDepart-BC1jpYJP.mjs} +8 -11
  48. package/{LeftRole-b533dcf6.mjs → LeftRole-sq_2p6Qk.mjs} +16 -19
  49. package/{LeftUser-aaac52cb.mjs → LeftUser-CYh4PBgd.mjs} +7 -10
  50. package/{LinkTableConfigModal-4053b62d.mjs → LinkTableConfigModal-BOWs0A5-.mjs} +38 -40
  51. package/{LinkTableFieldConfigModal-93552099.mjs → LinkTableFieldConfigModal-D7FTBP3E.mjs} +50 -52
  52. package/LinkTableListPiece-Bfu6vfo0.mjs +31 -0
  53. package/{ModalFormDemo-b8478356.mjs → ModalFormDemo-C1qQT6lj.mjs} +13 -16
  54. package/{OnlCgformErpList-b0605798.mjs → OnlCgformErpList-CavWG8GK.mjs} +139 -199
  55. package/OnlCgformErpSubTable-D3QM8oWi.mjs +382 -0
  56. package/OnlCgformInnerSubTable-BqmooFqy.mjs +213 -0
  57. package/OnlCgformInnerTableList-Dr1KdoSC.mjs +421 -0
  58. package/OnlCgformTabList-DCy3oudh.mjs +371 -0
  59. package/OnlineAutoList-C4pkORGb.mjs +500 -0
  60. package/OnlineAutoModal-Cuf_wcbU.mjs +222 -0
  61. package/{OnlineAutoTreeList-624106c1.mjs → OnlineAutoTreeList-LDE9Sm7X.mjs} +124 -181
  62. package/OnlineCustomModal-Jz4MxkH0.mjs +209 -0
  63. package/OnlineDetailModal-So0YEah1.mjs +160 -0
  64. package/{OnlineForm-86b5966d.mjs → OnlineForm-CvcbzRIZ.mjs} +47 -73
  65. package/OnlineFormDetail-KaD6cV31.mjs +321 -0
  66. package/OnlineFormUrlAdd-CktstdFD.mjs +86 -0
  67. package/OnlineFormUrlDetail-C4qptuTQ.mjs +85 -0
  68. package/OnlineFormUrlEdit-C06vTiM_.mjs +84 -0
  69. package/{OnlineFormUrlSuccess-0c2431a4.mjs → OnlineFormUrlSuccess-Cvbte2lW.mjs} +27 -30
  70. package/{OnlineQueryForm-3017a4ca.mjs → OnlineQueryForm-6E1IRi95.mjs} +139 -167
  71. package/{OnlineSearchFormItem-1b54585f.mjs → OnlineSearchFormItem-CdRuXQPu.mjs} +112 -118
  72. package/{OnlineSelectCascade-fab4426d.mjs → OnlineSelectCascade-O7iXAgdH.mjs} +31 -33
  73. package/OnlineSubFormDetail-DcMpAk8Z.mjs +109 -0
  74. package/OnlineTabAutoModal-DSOVDlOz.mjs +285 -0
  75. package/OnlineTabDetailModal-OXQ_2VLI.mjs +187 -0
  76. package/{OnlineTabForm-5c04cbc5.mjs → OnlineTabForm-Cg3_IX2H.mjs} +228 -253
  77. package/OnlineTabFormDetail-BgFkUkva.mjs +299 -0
  78. package/{PageAttributeTable-18aabf81.mjs → PageAttributeTable-C803SekP.mjs} +46 -59
  79. package/{PhoneLoginForm-4a9d7869.mjs → PhoneLoginForm-8a0Uehov.mjs} +40 -43
  80. package/ProcessOnlineForm-COeEaGc8.mjs +182 -0
  81. package/{QueryTable-342fd89a.mjs → QueryTable-DHYaYbKC.mjs} +23 -31
  82. package/SetSwitchOptions-B4Q6l-54.mjs +58 -0
  83. package/ShareAddView-CxZuNTQB.mjs +11 -0
  84. package/ShareEditView-Dqdzjmpc.mjs +17 -0
  85. package/ShareView-B9TiMmkR.mjs +4 -0
  86. package/{ShareView.vue_vue_type_script_setup_true_lang-9ea579c2.mjs → ShareView.vue_vue_type_script_setup_true_lang-BCdP9KMD.mjs} +21 -21
  87. package/SingleView-BDXeMLV-.mjs +4 -0
  88. package/{SingleView.vue_vue_type_style_index_0_lang-24d417dc.mjs → SingleView.vue_vue_type_style_index_0_lang-D3QcMcYT.mjs} +27 -27
  89. package/{SuperQuery-270b0968.mjs → SuperQuery-CgkajEWI.mjs} +342 -370
  90. package/SuperQueryValComponent-UO10kRg5.mjs +4 -0
  91. package/TaskOpinionList-C8rcU6ee.mjs +10 -0
  92. package/{aiModal-e7362c3f.mjs → aiModal-DTU-w5Xx.mjs} +33 -36
  93. package/{enhance.data-6601ff44.mjs → enhance.data-DRCzy5Bx.mjs} +5 -5
  94. package/index-0kQBIHx0.mjs +58 -0
  95. package/{index-b811abb9.mjs → index-B1H394jP.mjs} +35 -38
  96. package/index-CXD6__bJ.mjs +195 -0
  97. package/{index-6d1a78e2.mjs → index-DIjQbz6A.mjs} +37 -41
  98. package/{index-e2c3e6f3.mjs → index-Dbr1qL3H.mjs} +474 -608
  99. package/{index-19eaef11.mjs → index-dmWvLQET.mjs} +2 -2
  100. package/{index-d95bb7c2.mjs → index-pGbTziKP.mjs} +32 -44
  101. package/{index-b5fe9bd4.mjs → index-siZ6JDIW.mjs} +17 -20
  102. package/main.index.js +8 -9
  103. package/online.css +1 -0
  104. package/package.json +1 -1
  105. package/{useCgformList-6d5547ff.mjs → useCgformList-_o9GP7ca.mjs} +3 -3
  106. package/useExtendComponent-P9wrWQwT.mjs +4479 -0
  107. package/{useListButton-73071548.mjs → useListButton-DyOAscwT.mjs} +7 -9
  108. package/{useSchemas-b074f3a1.mjs → useSchemas-svH7q1tm.mjs} +69 -42
  109. package/{useTableSync-dbfba20e.mjs → useTableSync-BAWujyoc.mjs} +1 -1
  110. package/{utils-9fce7606.mjs → utils-DcQ65Qmw.mjs} +1 -1
  111. package/AppLogin-bf783eab.mjs +0 -287
  112. package/AppLoginHeader-55594326.mjs +0 -27
  113. package/AppThirdForm-5e7e1144.mjs +0 -189
  114. package/AuthButtonConfig-4887be0d.mjs +0 -160
  115. package/AuthButtonTree-7e47b44b.mjs +0 -165
  116. package/AuthDataTree-714c259c.mjs +0 -139
  117. package/AuthManagerDrawer-dee39b07.mjs +0 -119
  118. package/BuiltInButtonList-bb6cf95c.mjs +0 -10
  119. package/CgformCopyList-4be1000f.mjs +0 -259
  120. package/CodeGeneratorModal-2ba18bd1.mjs +0 -298
  121. package/DetailForm-7d4f630e.mjs +0 -497
  122. package/EnhanceJavaModal-469e645e.mjs +0 -264
  123. package/EnhanceSqlModal-c6e8bce1.mjs +0 -268
  124. package/ErrorTip-bb616e32.mjs +0 -7
  125. package/ExtendConfigModal-7b00b49a.mjs +0 -117
  126. package/JModalTip-c3e6726c.mjs +0 -49
  127. package/LinkTableListPiece-0f4ca559.mjs +0 -34
  128. package/OnlCgformErpSubTable-89699bc9.mjs +0 -443
  129. package/OnlCgformInnerSubTable-f2722f77.mjs +0 -269
  130. package/OnlCgformInnerTableList-992aa7e9.mjs +0 -481
  131. package/OnlCgformTabList-882a0e0c.mjs +0 -431
  132. package/OnlineAutoList-caedb54a.mjs +0 -558
  133. package/OnlineAutoModal-a0d1a6b8.mjs +0 -260
  134. package/OnlineCustomModal-f4e17bed.mjs +0 -246
  135. package/OnlineDetailModal-35394778.mjs +0 -198
  136. package/OnlineForm.vue_vue_type_style_index_0_scoped_60bd1850_lang-4ed993c7.mjs +0 -1
  137. package/OnlineFormDetail-4b3ad130.mjs +0 -349
  138. package/OnlineFormUrlAdd-708c91fb.mjs +0 -116
  139. package/OnlineFormUrlDetail-5c8efaeb.mjs +0 -121
  140. package/OnlineFormUrlEdit-8f08474e.mjs +0 -114
  141. package/OnlineSubFormDetail-bbc48c3e.mjs +0 -147
  142. package/OnlineTabAutoModal-b0f9fce8.mjs +0 -319
  143. package/OnlineTabDetailModal-401a26ad.mjs +0 -226
  144. package/OnlineTabFormDetail-2a28febf.mjs +0 -328
  145. package/ProcessOnlineForm-0ddce4fb.mjs +0 -218
  146. package/SetSwitchOptions-e1d5a6b4.mjs +0 -62
  147. package/ShareAddView-a5154da3.mjs +0 -88
  148. package/ShareEditView-cf761cf3.mjs +0 -94
  149. package/ShareView-3b2f5457.mjs +0 -82
  150. package/SingleView-3cab20a9.mjs +0 -70
  151. package/SuperQueryValComponent-5a9ccfd4.mjs +0 -8
  152. package/TaskOpinionList-60cf4080.mjs +0 -13
  153. package/index-740b2c4a.mjs +0 -57
  154. package/index-8fd12d0f.mjs +0 -219
  155. package/style.css +0 -1
  156. package/useExtendComponent-95ce0719.mjs +0 -4460
  157. /package/{SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs → SuperQueryValComponent.vue_vue_type_script_lang-BM-iwlLi.mjs} +0 -0
  158. /package/{auth.api-53df4c33.mjs → auth.api-2QmzY0ji.mjs} +0 -0
  159. /package/{auth.data-e44c7975.mjs → auth.data-Cp8D9uZ7.mjs} +0 -0
  160. /package/{button.data-fe45d43b.mjs → button.data-CyUX77GQ.mjs} +0 -0
  161. /package/{cgform.data-0ca62d09.mjs → cgform.data-CviSPXEg.mjs} +0 -0
  162. /package/{cgformState-d9f8ec42.mjs → cgformState-CUyRXfhW.mjs} +0 -0
  163. /package/{constant-fa63bd66.mjs → constant-DnbpmwZg.mjs} +0 -0
  164. /package/{enhance.api-138e6826.mjs → enhance.api-BqHb-YGL.mjs} +0 -0
  165. /package/{index-5e89258d.mjs → index-aVGkB_J9.mjs} +0 -0
  166. /package/{shareStore-7de6c7a6.mjs → shareStore-k-kzyga5.mjs} +0 -0
  167. /package/{useCustomHook-3a17a690.mjs → useCustomHook-B35kFqDB.mjs} +0 -0
  168. /package/{useFormUrl-2ee1a82d.mjs → useFormUrl-D8ASmaz6.mjs} +0 -0
  169. /package/{useOnlinePopEvent-687070b7.mjs → useOnlinePopEvent-FOvbs0Ta.mjs} +0 -0
  170. /package/{useOnlineTest-e4bd8be3.mjs → useOnlineTest-_onDRxjY.mjs} +0 -0
@@ -1,48 +1,45 @@
1
1
  var Y = Object.defineProperty;
2
- var I = Object.getOwnPropertySymbols;
2
+ var D = Object.getOwnPropertySymbols;
3
3
  var Z = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var E = (o, e, t) => e in o ? Y(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, L = (o, e) => {
4
+ var L = (o, e, t) => e in o ? Y(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, O = (o, e) => {
5
5
  for (var t in e || (e = {}))
6
- Z.call(e, t) && E(o, t, e[t]);
7
- if (I)
8
- for (var t of I(e))
9
- x.call(e, t) && E(o, t, e[t]);
6
+ Z.call(e, t) && L(o, t, e[t]);
7
+ if (D)
8
+ for (var t of D(e))
9
+ x.call(e, t) && L(o, t, e[t]);
10
10
  return o;
11
11
  };
12
- var B = (o, e, t) => new Promise((C, g) => {
13
- var M = (r) => {
12
+ var B = (o, e, t) => new Promise((M, g) => {
13
+ var C = (r) => {
14
14
  try {
15
- u(t.next(r));
16
- } catch (c) {
17
- g(c);
15
+ c(t.next(r));
16
+ } catch (d) {
17
+ g(d);
18
18
  }
19
19
  }, l = (r) => {
20
20
  try {
21
- u(t.throw(r));
22
- } catch (c) {
23
- g(c);
21
+ c(t.throw(r));
22
+ } catch (d) {
23
+ g(d);
24
24
  }
25
- }, u = (r) => r.done ? C(r.value) : Promise.resolve(r.value).then(M, l);
26
- u((t = t.apply(o, e)).next());
25
+ }, c = (r) => r.done ? M(r.value) : Promise.resolve(r.value).then(C, l);
26
+ c((t = t.apply(o, e)).next());
27
27
  });
28
- import { defineComponent as ee, ref as F, reactive as oe, computed as ne, nextTick as te, resolveComponent as i, openBlock as A, createElementBlock as O, Fragment as se, createVNode as s, withCtx as a, createTextVNode as f, createCommentVNode as P, createBlock as ae, normalizeProps as re, guardReactiveProps as ie } from "vue";
29
- import { u as le } from "./useOnlineTest-e4bd8be3.mjs";
30
- import { useListPage as ue } from "/@/hooks/system/useListPage";
31
- import { BasicTable as ce, TableAction as de } from "/@/components/Table";
32
- import { BasicModal as me, useModalInner as pe, useModal as S } from "/@/components/Modal";
28
+ import { defineComponent as ee, ref as T, reactive as oe, computed as ne, nextTick as te, resolveComponent as i, createElementBlock as P, openBlock as R, Fragment as se, createVNode as s, withCtx as a, createBlock as ae, createCommentVNode as S, createTextVNode as f, normalizeProps as re, guardReactiveProps as ie } from "vue";
29
+ import { u as le } from "./useOnlineTest-_onDRxjY.mjs";
30
+ import { useListPage as ce } from "/@/hooks/system/useListPage";
31
+ import { TableAction as de, BasicTable as ue } from "/@/components/Table";
32
+ import { BasicModal as me, useModalInner as pe, useModal as $ } from "/@/components/Modal";
33
33
  import { BasicForm as fe, useForm as ge } from "/@/components/Form";
34
- import { _ as Be, l as Ce, c as Me, f as _e, s as we, d as $ } from "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs";
34
+ import { _ as Be, c as Me, l as Ce, f as _e, s as we, d as h } from "./BuiltInButtonList.vue_vue_type_script_setup_true_lang-5-4hU0bi.mjs";
35
35
  import { useMessage as be } from "/@/hooks/web/useMessage";
36
- import { _ as ke } from "./index-740b2c4a.mjs";
37
- import "/@/utils/http/axios";
38
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
39
- import "vue-router";
36
+ import { _ as ke } from "./index-0kQBIHx0.mjs";
40
37
  const ye = ee({
41
38
  name: "CustomButtonList",
42
- components: { BasicModal: me, BasicTable: ce, TableAction: de, BasicForm: fe, BuiltInButtonList: Be },
39
+ components: { BasicModal: me, BasicTable: ue, TableAction: de, BasicForm: fe, BuiltInButtonList: Be },
43
40
  emits: ["register"],
44
41
  setup() {
45
- const { createMessage: o } = be(), e = F(""), t = F(), { doRequest: C, doDeleteRecord: g, tableContext: M } = ue({
42
+ const { createMessage: o } = be(), e = T(""), t = T(), { doRequest: M, doDeleteRecord: g, tableContext: C } = ce({
46
43
  tableProps: {
47
44
  api: (n) => Ce(e.value, n),
48
45
  columns: Me,
@@ -52,58 +49,58 @@ const ye = ee({
52
49
  return Object.assign(n, { column: "orderNum", order: "asc" });
53
50
  }
54
51
  }
55
- }), [l, { reload: u }, { rowSelection: r, selectedRowKeys: c }] = M, [_, { closeModal: w }] = pe((n) => B(this, null, function* () {
56
- e.value = n.row.id, t.value = n.row, u();
57
- })), { aiTestMode: b, genButtons: k } = le(), [y, d] = S(), m = F(!1), p = oe({
52
+ }), [l, { reload: c }, { rowSelection: r, selectedRowKeys: d }] = C, [_, { closeModal: w }] = pe((n) => B(null, null, function* () {
53
+ e.value = n.row.id, t.value = n.row, c();
54
+ })), { aiTestMode: b, genButtons: k } = le(), [y, u] = $(), m = T(!1), p = oe({
58
55
  onRegister: y,
59
56
  title: ne(() => m != null && m.value ? "修改" : "新增"),
60
57
  width: 800,
61
58
  confirmLoading: !1,
62
59
  onOk: K,
63
- onCancel: d.closeModal
60
+ onCancel: u.closeModal
64
61
  });
65
62
  let v = {};
66
- const [h, { resetFields: N, setFieldsValue: V, validate: G }] = ge({
63
+ const [N, { resetFields: V, setFieldsValue: G, validate: H }] = ge({
67
64
  // update-begin--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
68
- schemas: _e({ redoModalHeight: d.redoModalHeight }),
65
+ schemas: _e({ redoModalHeight: u.redoModalHeight }),
69
66
  // update-end--author:liaozhiyang---date:20240618---for:【TV360X-1306】自定义按钮弹窗按钮样式切换是重置弹窗高度
70
67
  showActionButtonGroup: !1
71
68
  });
72
- function T(n) {
69
+ function F(n) {
73
70
  return B(this, null, function* () {
74
- var D;
75
- m.value = n.isUpdate, v = L({}, (D = n.record) != null ? D : {}), d.openModal(), yield te(), yield N(), V(v);
71
+ var I;
72
+ m.value = n.isUpdate, v = O({}, (I = n.record) != null ? I : {}), u.openModal(), yield te(), yield V(), G(v);
76
73
  });
77
74
  }
78
- function H() {
79
- T({ isUpdate: !1 });
75
+ function U() {
76
+ F({ isUpdate: !1 });
80
77
  }
81
- function R(n) {
82
- T({ isUpdate: !0, record: n });
78
+ function A(n) {
79
+ F({ isUpdate: !0, record: n });
83
80
  }
84
- function U() {
81
+ function j() {
85
82
  w();
86
83
  }
87
- function j() {
84
+ function z() {
88
85
  k(e.value);
89
86
  }
90
- function z() {
87
+ function E() {
91
88
  return B(this, null, function* () {
92
- C(() => $(c.value));
89
+ M(() => h(d.value));
93
90
  });
94
91
  }
95
92
  function K() {
96
93
  return B(this, null, function* () {
97
94
  try {
98
95
  p.confirmLoading = !0;
99
- let n = yield G();
100
- n = Object.assign({ cgformHeadId: e.value }, v, n), yield we(n, m.value), u(), d.closeModal();
96
+ let n = yield H();
97
+ n = Object.assign({ cgformHeadId: e.value }, v, n), yield we(n, m.value), c(), u.closeModal();
101
98
  } finally {
102
99
  p.confirmLoading = !1;
103
100
  }
104
101
  });
105
102
  }
106
- const [q, J] = S();
103
+ const [q, J] = $();
107
104
  function Q() {
108
105
  var n;
109
106
  if (((n = t.value) == null ? void 0 : n.tableType) == 3) {
@@ -116,7 +113,7 @@ const ye = ee({
116
113
  return [
117
114
  {
118
115
  label: "编辑",
119
- onClick: () => R(n)
116
+ onClick: () => A(n)
120
117
  }
121
118
  ];
122
119
  }
@@ -127,7 +124,7 @@ const ye = ee({
127
124
  popConfirm: {
128
125
  title: "确定删除吗?",
129
126
  placement: "left",
130
- confirm: () => g(() => $([n.id]))
127
+ confirm: () => g(() => h([n.id]))
131
128
  }
132
129
  }
133
130
  ];
@@ -135,19 +132,19 @@ const ye = ee({
135
132
  return {
136
133
  code: e,
137
134
  record: t,
138
- onAdd: H,
139
- onEdit: R,
140
- onBatchDelete: z,
135
+ onAdd: U,
136
+ onEdit: A,
137
+ onBatchDelete: E,
141
138
  aiTestMode: b,
142
- onGenButtons: j,
139
+ onGenButtons: z,
143
140
  registerModal: _,
144
141
  registerTable: l,
145
- selectedRowKeys: c,
142
+ selectedRowKeys: d,
146
143
  rowSelection: r,
147
- onCancel: U,
144
+ onCancel: j,
148
145
  getTableAction: W,
149
146
  getDropDownAction: X,
150
- registerForm: h,
147
+ registerForm: N,
151
148
  formModalProps: p,
152
149
  registerBIButtonModal: q,
153
150
  onOpenBIButton: Q
@@ -157,10 +154,10 @@ const ye = ee({
157
154
  key: 0,
158
155
  style: { float: "left" }
159
156
  };
160
- function Fe(o, e, t, C, g, M) {
161
- const l = i("a-button"), u = i("a-icon"), r = i("a-menu-item"), c = i("a-menu"), _ = i("a-dropdown"), w = i("TableAction"), b = i("BasicTable"), k = i("BasicForm"), y = i("a-spin"), d = i("BasicModal"), m = i("BuiltInButtonList");
162
- return A(), O(se, null, [
163
- s(d, {
157
+ function Te(o, e, t, M, g, C) {
158
+ const l = i("a-button"), c = i("a-icon"), r = i("a-menu-item"), d = i("a-menu"), _ = i("a-dropdown"), w = i("TableAction"), b = i("BasicTable"), k = i("BasicForm"), y = i("a-spin"), u = i("BasicModal"), m = i("BuiltInButtonList");
159
+ return R(), P(se, null, [
160
+ s(u, {
164
161
  onRegister: o.registerModal,
165
162
  title: "自定义按钮",
166
163
  width: 1200,
@@ -169,19 +166,19 @@ function Fe(o, e, t, C, g, M) {
169
166
  }, {
170
167
  footer: a(() => [
171
168
  s(l, { onClick: o.onCancel }, {
172
- default: a(() => e[0] || (e[0] = [
173
- f("关闭")
174
- ])),
169
+ default: a(() => [...e[0] || (e[0] = [
170
+ f("关闭", -1)
171
+ ])]),
175
172
  _: 1
176
173
  }, 8, ["onClick"]),
177
- o.aiTestMode ? (A(), O("div", ve, [
174
+ o.aiTestMode ? (R(), P("div", ve, [
178
175
  s(l, { onClick: o.onGenButtons }, {
179
- default: a(() => e[1] || (e[1] = [
180
- f("生成测试数据")
181
- ])),
176
+ default: a(() => [...e[1] || (e[1] = [
177
+ f("生成测试数据", -1)
178
+ ])]),
182
179
  _: 1
183
180
  }, 8, ["onClick"])
184
- ])) : P("", !0)
181
+ ])) : S("", !0)
185
182
  ]),
186
183
  default: a(() => [
187
184
  s(b, {
@@ -194,31 +191,31 @@ function Fe(o, e, t, C, g, M) {
194
191
  type: "primary",
195
192
  preIcon: "ant-design:plus"
196
193
  }, {
197
- default: a(() => e[2] || (e[2] = [
198
- f("新增")
199
- ])),
194
+ default: a(() => [...e[2] || (e[2] = [
195
+ f("新增", -1)
196
+ ])]),
200
197
  _: 1
201
198
  }, 8, ["onClick"]),
202
199
  s(l, {
203
200
  onClick: o.onOpenBIButton,
204
201
  preIcon: "ant-design:setting"
205
202
  }, {
206
- default: a(() => e[3] || (e[3] = [
207
- f("管理内置按钮")
208
- ])),
203
+ default: a(() => [...e[3] || (e[3] = [
204
+ f("管理内置按钮", -1)
205
+ ])]),
209
206
  _: 1
210
207
  }, 8, ["onClick"]),
211
- o.selectedRowKeys.length > 0 ? (A(), ae(_, { key: 0 }, {
208
+ o.selectedRowKeys.length > 0 ? (R(), ae(_, { key: 0 }, {
212
209
  overlay: a(() => [
213
- s(c, null, {
210
+ s(d, null, {
214
211
  default: a(() => [
215
212
  s(r, {
216
213
  key: "1",
217
214
  onClick: o.onBatchDelete
218
215
  }, {
219
216
  default: a(() => [
220
- s(u, { type: "delete" }),
221
- e[4] || (e[4] = f(" 删除 "))
217
+ s(c, { type: "delete" }),
218
+ e[4] || (e[4] = f(" 删除 ", -1))
222
219
  ]),
223
220
  _: 1
224
221
  }, 8, ["onClick"])
@@ -229,14 +226,14 @@ function Fe(o, e, t, C, g, M) {
229
226
  default: a(() => [
230
227
  s(l, { style: { "margin-left": "8px" } }, {
231
228
  default: a(() => [
232
- e[5] || (e[5] = f(" 批量操作 ")),
233
- s(u, { type: "down" })
229
+ e[5] || (e[5] = f(" 批量操作 ", -1)),
230
+ s(c, { type: "down" })
234
231
  ]),
235
232
  _: 1
236
233
  })
237
234
  ]),
238
235
  _: 1
239
- })) : P("", !0)
236
+ })) : S("", !0)
240
237
  ]),
241
238
  action: a(({ record: p }) => [
242
239
  s(w, {
@@ -246,7 +243,7 @@ function Fe(o, e, t, C, g, M) {
246
243
  ]),
247
244
  _: 1
248
245
  }, 8, ["onRegister", "rowSelection"]),
249
- s(d, re(ie(o.formModalProps)), {
246
+ s(u, re(ie(o.formModalProps)), {
250
247
  default: a(() => [
251
248
  s(y, {
252
249
  spinning: o.formModalProps.confirmLoading
@@ -268,7 +265,7 @@ function Fe(o, e, t, C, g, M) {
268
265
  }, null, 8, ["onRegister", "record"])
269
266
  ], 64);
270
267
  }
271
- const Ve = /* @__PURE__ */ ke(ye, [["render", Fe]]);
268
+ const he = /* @__PURE__ */ ke(ye, [["render", Te]]);
272
269
  export {
273
- Ve as default
270
+ he as default
274
271
  };
@@ -1,31 +1,21 @@
1
1
  var J = Object.defineProperty, Z = Object.defineProperties;
2
2
  var z = Object.getOwnPropertyDescriptors;
3
- var c = Object.getOwnPropertySymbols;
3
+ var g = Object.getOwnPropertySymbols;
4
4
  var j = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
5
- var g = (e, t, l) => t in e ? J(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, S = (e, t) => {
5
+ var m = (e, t, l) => t in e ? J(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, S = (e, t) => {
6
6
  for (var l in t || (t = {}))
7
- j.call(t, l) && g(e, l, t[l]);
8
- if (c)
9
- for (var l of c(t))
10
- ee.call(t, l) && g(e, l, t[l]);
7
+ j.call(t, l) && m(e, l, t[l]);
8
+ if (g)
9
+ for (var l of g(t))
10
+ ee.call(t, l) && m(e, l, t[l]);
11
11
  return e;
12
12
  }, D = (e, t) => Z(e, z(t));
13
- import { defineComponent as te, getCurrentInstance as ae, ref as b, resolveComponent as O, openBlock as p, createElementBlock as le, Fragment as de, createVNode as h, mergeProps as ne, withCtx as y, createTextVNode as ie, createBlock as oe, createCommentVNode as re } from "vue";
13
+ import { defineComponent as te, getCurrentInstance as ae, ref as O, resolveComponent as b, createElementBlock as le, openBlock as h, Fragment as de, createVNode as p, createBlock as ne, createCommentVNode as ie, mergeProps as oe, withCtx as y, createTextVNode as re } from "vue";
14
14
  import { JVxeTypes as o } from "/@/components/jeecg/JVxeTable/types";
15
- import { u as ue } from "./useTableSync-dbfba20e.mjs";
16
- import Ee from "./aiModal-e7362c3f.mjs";
17
- import { useModal as se } from "/@/components/Modal";
18
- import { _ as Ie } from "./index-740b2c4a.mjs";
19
- import "./cgform.data-0ca62d09.mjs";
20
- import "/@/utils/dict";
21
- import "/@/utils/dict/JDictSelectUtil";
22
- import "/@/utils/uuid";
23
- import "lodash-es";
24
- import "/@/components/Icon";
25
- import "/@/hooks/web/useMessage";
26
- import "/@/utils/http/axios";
27
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
28
- import "vue-router";
15
+ import { u as Ee } from "./useTableSync-BAWujyoc.mjs";
16
+ import se from "./aiModal-DTU-w5Xx.mjs";
17
+ import { useModal as ue } from "/@/components/Modal";
18
+ import { _ as Ie } from "./index-0kQBIHx0.mjs";
29
19
  const Te = [
30
20
  "ADD",
31
21
  "ALL",
@@ -260,11 +250,11 @@ const Te = [
260
250
  isUpdate: { type: Boolean, default: !1 }
261
251
  },
262
252
  components: {
263
- AiModal: Ee
253
+ AiModal: se
264
254
  },
265
255
  emits: ["added", "removed", "inserted", "dragged", "syncDbType", "syncDbIsPersist", "syncDbIsNull"],
266
256
  setup(e, { emit: t }) {
267
- const l = ae(), A = b(!1), L = b([
257
+ const l = ae(), A = O(!1), L = O([
268
258
  {
269
259
  title: "字段名称",
270
260
  key: "dbFieldName",
@@ -393,13 +383,13 @@ const Te = [
393
383
  { title: "orderNum", key: "orderNum", type: o.hidden }
394
384
  ]);
395
385
  let I = [];
396
- const T = ue(L), { tableRef: s, loading: R, dataSource: B, tableHeight: U, tableProps: M, setDataSource: v, validateData: V } = T, f = b(!1), [_, { openModal: F }] = se(), G = (a) => {
397
- s.value.addRows(a);
386
+ const T = Ee(L), { tableRef: u, loading: R, dataSource: U, tableHeight: M, tableProps: B, setDataSource: v, validateData: V } = T, f = O(!1), [F, { openModal: G }] = ue(), P = (a) => {
387
+ u.value.addRows(a);
398
388
  };
399
- function P() {
389
+ function H() {
400
390
  t("added", l);
401
391
  }
402
- function H(a) {
392
+ function _(a) {
403
393
  I = I.concat(a.deleteRows.map((i) => i.id)), t("removed", D(S({}, a), { removeIds: I, target: l }));
404
394
  }
405
395
  function w(a) {
@@ -416,25 +406,25 @@ const Te = [
416
406
  return I;
417
407
  }
418
408
  function $(a) {
419
- let { type: i, row: d, col: r, value: n, target: u, oldValue: E } = a;
420
- i === o.select && r.key === "dbType" ? ((n === "Date" || n === "Datetime") && t("syncDbType", { row: d, value: n, target: l }), (n !== "Date" || n !== "Datetime") && (E == "Date" || E == "Datetime") && t("syncDbType", { row: d, value: n, target: l }), n === "Blob" || n === "Text" || n === "Date" ? u.setValues([{ rowKey: d.id, values: { dbLength: "0" } }]) : n === "string" ? u.setValues([{ rowKey: d.id, values: { dbLength: "32" } }]) : n === "int" || n === "double" || n === "BigDecimal" ? u.setValues([{ rowKey: d.id, values: { dbLength: "10" } }]) : n === "long" ? u.setValues([{ rowKey: d.id, values: { dbLength: "19" } }]) : d.dbLength === "0" && u.setValues([{ rowKey: d.id, values: { dbLength: "32" } }])) : r.key === "dbIsPersist" ? t("syncDbIsPersist", { row: d, value: n, target: l }) : r.key === "dbIsNull" && t("syncDbIsNull", { row: d, value: n, target: l });
409
+ let { type: i, row: d, col: r, value: n, target: E, oldValue: s } = a;
410
+ i === o.select && r.key === "dbType" ? ((n === "Date" || n === "Datetime") && t("syncDbType", { row: d, value: n, target: l }), (n !== "Date" || n !== "Datetime") && (s == "Date" || s == "Datetime") && t("syncDbType", { row: d, value: n, target: l }), n === "Blob" || n === "Text" || n === "Date" ? E.setValues([{ rowKey: d.id, values: { dbLength: "0" } }]) : n === "string" ? E.setValues([{ rowKey: d.id, values: { dbLength: "32" } }]) : n === "int" || n === "double" || n === "BigDecimal" ? E.setValues([{ rowKey: d.id, values: { dbLength: "10" } }]) : n === "long" ? E.setValues([{ rowKey: d.id, values: { dbLength: "19" } }]) : d.dbLength === "0" && E.setValues([{ rowKey: d.id, values: { dbLength: "32" } }])) : r.key === "dbIsPersist" ? t("syncDbIsPersist", { row: d, value: n, target: l }) : r.key === "dbIsNull" && t("syncDbIsNull", { row: d, value: n, target: l });
421
411
  }
422
412
  function K(a, i, d) {
423
413
  var r;
424
414
  if (a === "has_child")
425
415
  return !0;
426
416
  if (a === "id") {
427
- const { tables: n } = T, E = ((r = n.dbTable.value.tableRef.getTableData()) != null ? r : []).findIndex((N) => N.dbFieldName === "id");
428
- if ((E === -1 ? 0 : E) === d)
417
+ const { tables: n } = T, s = ((r = n.dbTable.value.tableRef.getTableData()) != null ? r : []).findIndex((N) => N.dbFieldName === "id");
418
+ if ((s === -1 ? 0 : s) === d)
429
419
  return !0;
430
420
  }
431
421
  return !1;
432
422
  }
433
423
  function x(a) {
434
- s.value.pushRows(a), A.value || t("added", l);
424
+ u.value.pushRows(a), A.value || t("added", l);
435
425
  }
436
426
  function W(a) {
437
- return s.value.removeRowsById(a);
427
+ return u.value.removeRowsById(a);
438
428
  }
439
429
  function X() {
440
430
  A.value = !0, R.value = !0;
@@ -445,13 +435,13 @@ const Te = [
445
435
  function C({ cellValue: a, row: i }, d) {
446
436
  const { tables: r } = T;
447
437
  if (r) {
448
- let u = r.dbTable.value.tableRef.dataSource.filter((N) => N.id === i.id);
449
- (!u || u.length <= 0) && d(!0);
450
- let E = u[0].dbFieldName;
451
- E == a && d(!0);
452
- let m = r.idxTable.value.tableRef.getTableData();
453
- for (let N of m)
454
- N.indexField.split(",").indexOf(E) >= 0 && d(!1, "当前字段存在索引配置,请先删除索引再修改字段");
438
+ let E = r.dbTable.value.tableRef.dataSource.filter((N) => N.id === i.id);
439
+ (!E || E.length <= 0) && d(!0);
440
+ let s = E[0].dbFieldName;
441
+ s == a && d(!0);
442
+ let c = r.idxTable.value.tableRef.getTableData();
443
+ for (let N of c)
444
+ N.indexField.split(",").indexOf(s) >= 0 && d(!1, "当前字段存在索引配置,请先删除索引再修改字段");
455
445
  }
456
446
  d(!0);
457
447
  }
@@ -459,19 +449,19 @@ const Te = [
459
449
  i.dbType == "int" && i.dbPointLength > 0 && d(!1, "设置了小数点不可设置integer类型"), d(!0);
460
450
  }
461
451
  return {
462
- tableRef: s,
452
+ tableRef: u,
463
453
  loading: R,
464
454
  columns: L,
465
- dataSource: B,
455
+ dataSource: U,
466
456
  setDataSource: v,
467
457
  addBatchBegin: X,
468
458
  addBatchEnd: Q,
469
459
  tableAddLine: x,
470
- tableHeight: U,
471
- tableProps: M,
460
+ tableHeight: M,
461
+ tableProps: B,
472
462
  tableDeleteLines: W,
473
- handleAdded: P,
474
- handleRemoved: H,
463
+ handleAdded: H,
464
+ handleRemoved: _,
475
465
  handleDragged: w,
476
466
  handleInserted: k,
477
467
  handleValueChange: $,
@@ -481,19 +471,19 @@ const Te = [
481
471
  validateExistIndex: C,
482
472
  openAiModal: () => {
483
473
  f.value = !0, setTimeout(() => {
484
- F(!0);
474
+ G(!0);
485
475
  }, 0);
486
476
  },
487
- registerAiModal: _,
477
+ registerAiModal: F,
488
478
  aiModalShow: f,
489
- handleGenerate: G
479
+ handleGenerate: P
490
480
  };
491
481
  }
492
482
  });
493
483
  function Ne(e, t, l, A, L, I) {
494
- const T = O("a-button"), s = O("JVxeTable"), R = O("AiModal");
495
- return p(), le(de, null, [
496
- h(s, ne({
484
+ const T = b("a-button"), u = b("JVxeTable"), R = b("AiModal");
485
+ return h(), le(de, null, [
486
+ p(u, oe({
497
487
  class: "dBAttributeTable",
498
488
  ref: "tableRef",
499
489
  rowNumber: "",
@@ -517,20 +507,20 @@ function Ne(e, t, l, A, L, I) {
517
507
  onValueChange: e.handleValueChange
518
508
  }), {
519
509
  toolbarSuffix: y(() => [
520
- h(T, {
510
+ p(T, {
521
511
  type: "primary",
522
512
  preIcon: "ant-design:robot-outlined",
523
513
  onClick: e.openAiModal
524
514
  }, {
525
- default: y(() => t[1] || (t[1] = [
526
- ie("AI字段建议")
527
- ])),
515
+ default: y(() => [...t[1] || (t[1] = [
516
+ re("AI字段建议", -1)
517
+ ])]),
528
518
  _: 1
529
519
  }, 8, ["onClick"])
530
520
  ]),
531
521
  _: 1
532
522
  }, 16, ["loading", "columns", "dataSource", "toolbar", "maxHeight", "disabledRows", "onAdded", "onRemoved", "onDragged", "onInserted", "onValueChange"]),
533
- e.aiModalShow ? (p(), oe(R, {
523
+ e.aiModalShow ? (h(), ne(R, {
534
524
  key: 0,
535
525
  tableName: e.tableName,
536
526
  isUpdate: e.isUpdate,
@@ -538,10 +528,10 @@ function Ne(e, t, l, A, L, I) {
538
528
  onClose: t[0] || (t[0] = () => e.aiModalShow = !1),
539
529
  DBtableRef: e.tableRef,
540
530
  onGenerate: e.handleGenerate
541
- }, null, 8, ["tableName", "isUpdate", "onRegister", "DBtableRef", "onGenerate"])) : re("", !0)
531
+ }, null, 8, ["tableName", "isUpdate", "onRegister", "DBtableRef", "onGenerate"])) : ie("", !0)
542
532
  ], 64);
543
533
  }
544
- const Fe = /* @__PURE__ */ Ie(Re, [["render", Ne], ["__scopeId", "data-v-5a7f3b8e"]]);
534
+ const me = /* @__PURE__ */ Ie(Re, [["render", Ne], ["__scopeId", "data-v-e8926c6a"]]);
545
535
  export {
546
- Fe as default
536
+ me as default
547
537
  };