@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 de } from "/@/components/Loading";
31
31
  import { getToken as he } from "/@/utils/auth";
32
32
  import { goJmReportViewPage as be } from "/@/utils";
33
33
  import { PrinterOutlined as ge } from "@ant-design/icons-vue";
34
- import _e from "./DetailForm-4aa2570b.mjs";
35
- import ye from "./OnlineSubFormDetail-03f8ee5c.mjs";
36
- import { k as Se, u as Te } from "./useExtendComponent-bb7cca20.mjs";
34
+ import _e from "./DetailForm-deecbf3d.mjs";
35
+ import ye from "./OnlineSubFormDetail-58e896ce.mjs";
36
+ import { k as Se, u as Te } from "./useExtendComponent-dcae5c78.mjs";
37
37
  import { defHttp as xe } from "/@/utils/http/axios";
38
38
  import { E as Ce } from "./constant-fa63bd66.mjs";
39
39
  import { useAppInject as ke } from "/@/hooks/web/useAppInject";
40
- import { _ as we } from "./index-173949bb.mjs";
40
+ import { _ as we } 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
  function Fe() {
@@ -5,7 +5,7 @@ import "/@/components/Form/index";
5
5
  import "/@/utils/http/axios";
6
6
  import "lodash-es";
7
7
  import "/@/utils";
8
- import { u as U } from "./useExtendComponent-bb7cca20.mjs";
8
+ import { u as U } from "./useExtendComponent-dcae5c78.mjs";
9
9
  import "/@/components/Loading";
10
10
  import "/@/components/jeecg/JVxeTable/types";
11
11
  import "/@/utils/auth";
@@ -18,31 +18,31 @@ import "/@/utils/common/compUtils";
18
18
  import "/@/store/modules/user";
19
19
  import "/@/hooks/web/useAppInject";
20
20
  import "/@/utils/is";
21
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
22
- import b from "./OnlineAutoModal-971bef13.mjs";
23
- import { u as B, a as I } from "./useListButton-7ddb9a46.mjs";
21
+ import "/@/store/modules/permission";
22
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
23
+ import b from "./OnlineAutoModal-c2928847.mjs";
24
+ import { u as B, a as I } from "./useListButton-bfac4ecf.mjs";
24
25
  import { useRouter as M } from "vue-router";
25
26
  import { u as S } from "./useFormUrl-2ee1a82d.mjs";
26
- import { _ as D } from "./index-173949bb.mjs";
27
+ import { _ as D } from "./index-1d1a6e56.mjs";
27
28
  import "/@/components/Form/src/componentMap";
28
29
  import "/@/utils/propTypes";
29
30
  import "./constant-fa63bd66.mjs";
30
31
  import "/@/components/Form/src/jeecg/components/JUpload";
31
32
  import "/@/views/system/user/user.api";
32
33
  import "/@/utils/desform/customExpression";
33
- import "/@/store/modules/permission";
34
34
  import "/@/utils/dict/JDictSelectUtil";
35
35
  import "/@/components/Table";
36
36
  import "/@/hooks/system/useListPage";
37
37
  import "/@/components/Form/src/utils/Area";
38
38
  import "/@/components/Preview/index";
39
- import "./LinkTableListPiece-2660d709.mjs";
39
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
40
40
  import "/@/api/common/api";
41
41
  import "/@/assets/images/placeholderImage.png";
42
- import "./OnlineSelectCascade-471fcc76.mjs";
43
- import "./JModalTip-4a83aaed.mjs";
42
+ import "./OnlineSelectCascade-05c40fef.mjs";
43
+ import "./JModalTip-b055ab60.mjs";
44
44
  import "@vueuse/core";
45
- import "./OnlineForm-018981b2.mjs";
45
+ import "./OnlineForm-9f1153ba.mjs";
46
46
  import "./useCustomHook-acb00837.mjs";
47
47
  import "/@/components/jeecg/comment/CommentPanel.vue";
48
48
  import "/@/router";
@@ -5,7 +5,7 @@ import "/@/components/Form/index";
5
5
  import "/@/utils/http/axios";
6
6
  import "lodash-es";
7
7
  import "/@/utils";
8
- import { u as M } from "./useExtendComponent-bb7cca20.mjs";
8
+ import { u as M } from "./useExtendComponent-dcae5c78.mjs";
9
9
  import "/@/components/Loading";
10
10
  import "/@/components/jeecg/JVxeTable/types";
11
11
  import "/@/utils/auth";
@@ -18,36 +18,36 @@ import "/@/utils/common/compUtils";
18
18
  import "/@/store/modules/user";
19
19
  import "/@/hooks/web/useAppInject";
20
20
  import "/@/utils/is";
21
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
21
+ import "/@/store/modules/permission";
22
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
22
23
  import { useRoute as O } from "vue-router";
23
- import R from "./OnlineDetailModal-2a271e0b.mjs";
24
- import { u as S, a as U } from "./useListButton-7ddb9a46.mjs";
24
+ import R from "./OnlineDetailModal-d5895734.mjs";
25
+ import { u as S, a as U } from "./useListButton-bfac4ecf.mjs";
25
26
  import { u as B } from "./useFormUrl-2ee1a82d.mjs";
26
- import { _ as F } from "./index-173949bb.mjs";
27
+ import { _ as F } from "./index-1d1a6e56.mjs";
27
28
  import "/@/components/Form/src/componentMap";
28
29
  import "/@/utils/propTypes";
29
30
  import "./constant-fa63bd66.mjs";
30
31
  import "/@/components/Form/src/jeecg/components/JUpload";
31
32
  import "/@/views/system/user/user.api";
32
33
  import "/@/utils/desform/customExpression";
33
- import "/@/store/modules/permission";
34
34
  import "/@/utils/dict/JDictSelectUtil";
35
35
  import "/@/components/Table";
36
36
  import "/@/hooks/system/useListPage";
37
37
  import "/@/components/Form/src/utils/Area";
38
38
  import "/@/components/Preview/index";
39
- import "./LinkTableListPiece-2660d709.mjs";
39
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
40
40
  import "/@/api/common/api";
41
41
  import "/@/assets/images/placeholderImage.png";
42
- import "./OnlineSelectCascade-471fcc76.mjs";
43
- import "./JModalTip-4a83aaed.mjs";
42
+ import "./OnlineSelectCascade-05c40fef.mjs";
43
+ import "./JModalTip-b055ab60.mjs";
44
44
  import "@vueuse/core";
45
- import "./OnlineFormDetail-e036cd11.mjs";
46
- import "./DetailForm-4aa2570b.mjs";
45
+ import "./OnlineFormDetail-022ca117.mjs";
46
+ import "./DetailForm-deecbf3d.mjs";
47
47
  import "/@/utils/dict";
48
48
  import "/@/utils/dict/index";
49
49
  import "/@/components/Markdown";
50
- import "./OnlineSubFormDetail-03f8ee5c.mjs";
50
+ import "./OnlineSubFormDetail-58e896ce.mjs";
51
51
  import "/@/components/jeecg/comment/CommentPanel.vue";
52
52
  import "/@/router";
53
53
  import "./useCustomHook-acb00837.mjs";
@@ -5,7 +5,7 @@ import "/@/components/Form/index";
5
5
  import "/@/utils/http/axios";
6
6
  import "lodash-es";
7
7
  import "/@/utils";
8
- import { u as B } from "./useExtendComponent-bb7cca20.mjs";
8
+ import { u as B } from "./useExtendComponent-dcae5c78.mjs";
9
9
  import "/@/components/Loading";
10
10
  import "/@/components/jeecg/JVxeTable/types";
11
11
  import "/@/utils/auth";
@@ -18,31 +18,31 @@ import "/@/utils/common/compUtils";
18
18
  import "/@/store/modules/user";
19
19
  import "/@/hooks/web/useAppInject";
20
20
  import "/@/utils/is";
21
- import "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
21
+ import "/@/store/modules/permission";
22
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs";
22
23
  import { useRoute as M, useRouter as S } from "vue-router";
23
- import T from "./OnlineAutoModal-971bef13.mjs";
24
- import { u as D, a as N } from "./useListButton-7ddb9a46.mjs";
24
+ import T from "./OnlineAutoModal-c2928847.mjs";
25
+ import { u as D, a as N } from "./useListButton-bfac4ecf.mjs";
25
26
  import { u as V } from "./useFormUrl-2ee1a82d.mjs";
26
- import { _ as $ } from "./index-173949bb.mjs";
27
+ import { _ as $ } from "./index-1d1a6e56.mjs";
27
28
  import "/@/components/Form/src/componentMap";
28
29
  import "/@/utils/propTypes";
29
30
  import "./constant-fa63bd66.mjs";
30
31
  import "/@/components/Form/src/jeecg/components/JUpload";
31
32
  import "/@/views/system/user/user.api";
32
33
  import "/@/utils/desform/customExpression";
33
- import "/@/store/modules/permission";
34
34
  import "/@/utils/dict/JDictSelectUtil";
35
35
  import "/@/components/Table";
36
36
  import "/@/hooks/system/useListPage";
37
37
  import "/@/components/Form/src/utils/Area";
38
38
  import "/@/components/Preview/index";
39
- import "./LinkTableListPiece-2660d709.mjs";
39
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
40
40
  import "/@/api/common/api";
41
41
  import "/@/assets/images/placeholderImage.png";
42
- import "./OnlineSelectCascade-471fcc76.mjs";
43
- import "./JModalTip-4a83aaed.mjs";
42
+ import "./OnlineSelectCascade-05c40fef.mjs";
43
+ import "./JModalTip-b055ab60.mjs";
44
44
  import "@vueuse/core";
45
- import "./OnlineForm-018981b2.mjs";
45
+ import "./OnlineForm-9f1153ba.mjs";
46
46
  import "./useCustomHook-acb00837.mjs";
47
47
  import "/@/components/jeecg/comment/CommentPanel.vue";
48
48
  import "/@/router";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, resolveComponent as _, openBlock as d, createElementBlock as m, normalizeClass as u, createElementVNode as e, createVNode as c, withCtx as r, createTextVNode as a, pushScopeId as v, popScopeId as f } from "vue";
2
2
  import { useRouter as w } from "vue-router";
3
- import { _ as x } from "./index-173949bb.mjs";
3
+ import { _ as x } from "./index-1d1a6e56.mjs";
4
4
  import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
5
  import "/@/hooks/web/useMessage";
6
6
  const C = (o) => (v("data-v-a18c2961"), o = o(), f(), o), g = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "contentArea" }, [
@@ -0,0 +1,466 @@
1
+ var be = Object.defineProperty, we = Object.defineProperties;
2
+ var Se = Object.getOwnPropertyDescriptors;
3
+ var z = Object.getOwnPropertySymbols;
4
+ var ke = Object.prototype.hasOwnProperty, De = Object.prototype.propertyIsEnumerable;
5
+ var X = (h, p, u) => p in h ? be(h, p, { enumerable: !0, configurable: !0, writable: !0, value: u }) : h[p] = u, P = (h, p) => {
6
+ for (var u in p || (p = {}))
7
+ ke.call(p, u) && X(h, u, p[u]);
8
+ if (z)
9
+ for (var u of z(p))
10
+ De.call(p, u) && X(h, u, p[u]);
11
+ return h;
12
+ }, B = (h, p) => we(h, Se(p));
13
+ var V = (h, p, u) => new Promise((d, _) => {
14
+ var C = (b) => {
15
+ try {
16
+ x(u.next(b));
17
+ } catch (D) {
18
+ _(D);
19
+ }
20
+ }, E = (b) => {
21
+ try {
22
+ x(u.throw(b));
23
+ } catch (D) {
24
+ _(D);
25
+ }
26
+ }, x = (b) => b.done ? d(b.value) : Promise.resolve(b.value).then(C, E);
27
+ x((u = u.apply(h, p)).next());
28
+ });
29
+ import { BasicForm as Ye, useForm as Oe } from "/@/components/Form/index";
30
+ import { ref as M, reactive as Fe, watch as q, toRaw as U, resolveComponent as I, openBlock as Z, createElementBlock as ee, createVNode as F, withCtx as j, mergeProps as te, createElementVNode as xe, createTextVNode as A, toDisplayString as ve, createCommentVNode as oe } from "vue";
31
+ import { defHttp as Pe } from "/@/utils/http/axios";
32
+ import { useMessage as Ve } from "/@/hooks/web/useMessage";
33
+ import { i as Me, g as je, m as re, n as Le, F as G, o as Ee, p as Ie, q as ne, j as L } from "./useExtendComponent-dcae5c78.mjs";
34
+ import { L as Ne } from "./constant-fa63bd66.mjs";
35
+ import "/@/utils/common/compUtils";
36
+ import Ce from "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
37
+ import { _ as Je } from "./index-1d1a6e56.mjs";
38
+ import "/@/components/Form/src/componentMap";
39
+ import "/@/utils/propTypes";
40
+ import "@ant-design/icons-vue";
41
+ import "/@/components/Modal";
42
+ import "lodash-es";
43
+ import "/@/components/Form/src/jeecg/components/JUpload";
44
+ import "/@/utils/is";
45
+ import "/@/views/system/user/user.api";
46
+ import "/@/store/modules/user";
47
+ import "/@/utils";
48
+ import "/@/utils/desform/customExpression";
49
+ import "/@/store/modules/permission";
50
+ import "/@/utils/dict/JDictSelectUtil";
51
+ import "/@/components/Table";
52
+ import "/@/hooks/system/useListPage";
53
+ import "vue-router";
54
+ import "/@/components/Form/src/utils/Area";
55
+ import "/@/components/Preview/index";
56
+ import "./LinkTableListPiece-f3a8e0d7.mjs";
57
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
58
+ import "/@/utils/auth";
59
+ import "/@/api/common/api";
60
+ import "/@/hooks/web/useAppInject";
61
+ import "/@/assets/images/placeholderImage.png";
62
+ import "./OnlineSelectCascade-05c40fef.mjs";
63
+ import "/@/components/Loading";
64
+ import "./JModalTip-b055ab60.mjs";
65
+ import "ant-design-vue";
66
+ import "@vueuse/core";
67
+ const Re = {
68
+ name: "OnlineQueryForm",
69
+ components: {
70
+ BasicForm: Ye,
71
+ JRangeNumber: Ce
72
+ },
73
+ props: {
74
+ id: {
75
+ type: String,
76
+ default: ""
77
+ }
78
+ },
79
+ emits: ["search", "loaded"],
80
+ setup(h, { emit: p }) {
81
+ const u = "/online/cgform/api/getQueryInfoVue3/", d = M(null), _ = M([]), C = M({ xs: 24, sm: 24, md: 12, lg: 6, xl: 6 }), E = M(!1), x = M(!1), b = M({}), D = M([]), { createMessage: J } = Ve(), { linkTableCard2Select: Q } = Me(), R = M(80), l = Fe({
82
+ config: {},
83
+ cache: {},
84
+ param: {},
85
+ status: !1
86
+ });
87
+ q(
88
+ () => l.status,
89
+ (e) => V(this, null, function* () {
90
+ const { config: t, cache: o, param: r } = U(l);
91
+ let n = Object.assign({}, t, o, r);
92
+ yield se(n);
93
+ }),
94
+ { immediate: !0, deep: !0 }
95
+ );
96
+ function y(e, t) {
97
+ return V(this, null, function* () {
98
+ l.cache = P({}, e), l.param = P({}, t), l.status = !l.status;
99
+ });
100
+ }
101
+ q(
102
+ () => h.id,
103
+ (e) => {
104
+ e ? ae() : _.value = [];
105
+ },
106
+ { immediate: !0 }
107
+ );
108
+ function w(e) {
109
+ return V(this, null, function* () {
110
+ var a, g, S, Y;
111
+ let t = [], o = {}, r = Object.keys(e), n = -1;
112
+ for (let f of r) {
113
+ const i = e[f];
114
+ f === "sys_org_code" && (i.fieldExtendJson || (i.fieldExtendJson = '{"store":"orgCode"}'));
115
+ let m = i.view;
116
+ if (i.originView = i.view, re[m] && (i.view = re[m]), yield Le(f, i, o), i.mode == "group" && (m == "date" || m == "datetime" || m == "number" || m == "time")) {
117
+ let v = G.createSlotFormSchema(f, i);
118
+ t.push(v);
119
+ } else if (i.view === Ee) {
120
+ let v = Ie(i, f);
121
+ for (let O of v) {
122
+ let $ = G.createFormSchema(O.key, O), K = ne(t, O.key);
123
+ K == -1 ? t.push($) : t[K] = $;
124
+ }
125
+ } else if (ne(t, f) == -1) {
126
+ let O = G.createFormSchema(f, i);
127
+ t.push(O);
128
+ }
129
+ let k = i.fieldExtendJson;
130
+ k && (k = JSON.parse(k), k.labelLength && (n > -1 ? n = k.labelLength > n ? k.labelLength : n : n = k.labelLength));
131
+ }
132
+ n == -1 ? n = Ne : t.forEach((f) => {
133
+ f.labelLength = n;
134
+ }), t.sort(function(f, i) {
135
+ return f.order - i.order;
136
+ });
137
+ let s = [];
138
+ t.length > 2 && (E.value = !0);
139
+ let c = [];
140
+ for (let f = 0; f < t.length; f++) {
141
+ let i = t[f];
142
+ i.setFormRef(d), i.noChange(), i.asSearchForm(), f > 1 && (c.push(i.field), i.isHidden());
143
+ let m = i.getFormItemSchema();
144
+ if (i.slot == "groupDatetime" && t.length <= 3 && (m.colProps = { xs: 24, sm: 24, md: 12, lg: 8, xl: 8 }), m.component === "JSwitch") {
145
+ const O = (a = m.componentProps) != null ? a : {};
146
+ m.componentProps = B(P({}, O), { query: !0 });
147
+ }
148
+ if (Q(m), m.component === "LinkTableSelect") {
149
+ let O = (g = m.componentProps) != null ? g : {};
150
+ m.componentProps = B(P({}, O), { editBtnShow: !1 });
151
+ }
152
+ const k = (S = m.componentProps) != null ? S : {};
153
+ k.getPopupContainer || (m.componentProps = B(P({}, k), { getPopupContainer: () => document.body }));
154
+ const v = (Y = e[m.field]) != null ? Y : {};
155
+ v.mode == "like" && v.view === "text" && v.originView === "text" && (m.component = "JInput"), s.push(m);
156
+ }
157
+ D.value = c, _.value = s, l.config = P({}, o), l.status = !l.status, setTimeout(() => {
158
+ const f = n * 14 + n + 24;
159
+ R.value = f;
160
+ }, 0);
161
+ });
162
+ }
163
+ const N = (e) => {
164
+ const t = e.properties;
165
+ t && Object.entries(t).forEach(([o, r]) => {
166
+ const n = r;
167
+ if (["date_year", "date_month", "date_week", "date_quarter"].includes(n.view)) {
168
+ const s = n.fieldExtendJson ? JSON.parse(n.fieldExtendJson) : {};
169
+ s.picker = n.view.split("_")[1], n.fieldExtendJson = JSON.stringify(s), n.view = "date";
170
+ }
171
+ });
172
+ };
173
+ function ae() {
174
+ return V(this, null, function* () {
175
+ let e = yield ce();
176
+ N(e);
177
+ let t = le(e);
178
+ p("loaded", e);
179
+ let { formProperties: o, hasField: r } = ie(t, e);
180
+ if (r == !1) {
181
+ _.value = [];
182
+ return;
183
+ }
184
+ yield w(o);
185
+ });
186
+ }
187
+ function se(e) {
188
+ return V(this, null, function* () {
189
+ yield je(d);
190
+ const t = de(e);
191
+ yield H(t), Object.keys(t).length > 0 && T();
192
+ });
193
+ }
194
+ function ie(e, t) {
195
+ const { searchFieldList: o, joinQuery: r, table: n } = t;
196
+ let s = !1, c = {};
197
+ return e && Object.keys(e).map((a) => {
198
+ o.indexOf(a) >= 0 && (r == !0 ? a.indexOf("@") < 0 ? (c[n + "@" + a] = e[a], s = !0) : (c[a] = e[a], s = !0) : a.indexOf("@") < 0 && (c[a] = e[a], s = !0));
199
+ }), {
200
+ formProperties: c,
201
+ hasField: s
202
+ };
203
+ }
204
+ function le(e) {
205
+ const { properties: t, searchFieldList: o, joinQuery: r, table: n } = e;
206
+ let s = {}, c = 1;
207
+ return Object.keys(t).map((a) => {
208
+ let g = t[a];
209
+ if (g.view == "table") {
210
+ let S = g.properties, Y = c * 100;
211
+ Object.keys(S).map((f) => {
212
+ let i = S[f];
213
+ i.order = Y + Number(i.order);
214
+ let m = a + "@" + f;
215
+ s[m] = i;
216
+ }), c++;
217
+ } else
218
+ g.order = Number(g.order), s[a] = g;
219
+ }), s;
220
+ }
221
+ function ce() {
222
+ let e = `${u}${h.id}`;
223
+ return new Promise((t) => {
224
+ Pe.get({ url: e }, { isTransformResponse: !1 }).then((o) => {
225
+ o.success ? t(o.result) : (t(!1), J.warning(o.message));
226
+ }).catch(() => {
227
+ J.warning("获取查询条件失败!"), t(!1);
228
+ });
229
+ });
230
+ }
231
+ const [me, { resetFields: pe, setFieldsValue: H, updateSchema: fe, getFieldsValue: ue }] = Oe({
232
+ name: "online-query-form",
233
+ schemas: _,
234
+ showActionButtonGroup: !1,
235
+ baseColProps: C,
236
+ autoSubmitOnEnter: !0,
237
+ labelWidth: R,
238
+ wrapperCol: null,
239
+ submitFunc() {
240
+ T();
241
+ }
242
+ /* labelCol: ONL_QUERY_LABEL_COL,
243
+ wrapperCol: ONL_QUERY_WRAPPER_COL*/
244
+ });
245
+ function T() {
246
+ let e = ue();
247
+ he(e), ge(e);
248
+ let t = Object.assign({}, U(l.param), _e(e));
249
+ p("search", t, !0);
250
+ }
251
+ const de = (e) => {
252
+ const t = P({}, e), o = _.value.filter((r) => ["groupTime", "groupDatetime", "groupNumber", "groupDate"].includes(r.slot));
253
+ return o.length && Object.keys(t).forEach((r) => {
254
+ let n;
255
+ if (o.find((c) => c.field === r ? (n = r, !0) : !1)) {
256
+ const c = t[n];
257
+ if (typeof c == "string") {
258
+ const a = c.split(",");
259
+ t[n] = [...a];
260
+ }
261
+ }
262
+ }), t;
263
+ }, ge = (e) => {
264
+ if (e) {
265
+ const t = _.value.filter((o) => ["groupTime", "groupDatetime", "groupDate", "groupNumber"].includes(o.slot));
266
+ t.length && Object.keys(e).forEach((o) => {
267
+ let r;
268
+ if (t.find((s) => s.field === o ? (r = o, !0) : !1)) {
269
+ const s = e[r];
270
+ if (typeof s == "string") {
271
+ const c = s.split(",");
272
+ e[`${r}_begin`] = c[0], e[`${r}_end`] = c[1], delete e[r];
273
+ }
274
+ }
275
+ });
276
+ }
277
+ }, he = (e) => {
278
+ const t = _.value.filter((o) => {
279
+ var r;
280
+ return ((r = o.componentProps) == null ? void 0 : r.picker) && o.componentProps.picker != "default";
281
+ });
282
+ t.length && Object.keys(e).forEach((o) => {
283
+ let r;
284
+ const n = t.find((s) => s.field === o || `${s.field}_begin` === o || `${s.field}_end` === o ? (r = o, !0) : !1);
285
+ if (n) {
286
+ const s = e[r];
287
+ if (s) {
288
+ const c = (a, g, S) => {
289
+ const Y = n.componentProps.picker;
290
+ Y === "year" ? S ? e[g] = L(a).endOf("year").format("YYYY-MM-DD") : e[g] = L(a).startOf("year").format("YYYY-MM-DD") : Y === "month" ? S ? e[g] = L(a).endOf("month").format("YYYY-MM-DD") : e[g] = L(a).startOf("month").format("YYYY-MM-DD") : Y === "week" ? S ? e[g] = L(a).endOf("week").format("YYYY-MM-DD") : e[g] = L(a).startOf("week").format("YYYY-MM-DD") : Y === "quarter" && (S ? e[g] = L(a).endOf("quarter").format("YYYY-MM-DD") : e[g] = L(a).startOf("quarter").format("YYYY-MM-DD"));
291
+ };
292
+ if ((n == null ? void 0 : n.slot) === "groupDate") {
293
+ const a = s.split(",");
294
+ c(a[0], `${r}_begin`, !1), c(a[1], `${r}_end`, !0), delete e[r];
295
+ } else
296
+ c(s, r, !1);
297
+ }
298
+ }
299
+ });
300
+ };
301
+ function W() {
302
+ return V(this, null, function* () {
303
+ yield pe();
304
+ const { config: e, param: t } = U(l);
305
+ let o = Object.assign({}, e, t);
306
+ return Object.keys(o).length > 0 && (yield H(o)), o;
307
+ });
308
+ }
309
+ function ye() {
310
+ return V(this, null, function* () {
311
+ const e = yield W();
312
+ p("search", e, !1);
313
+ });
314
+ }
315
+ function _e(e) {
316
+ return Object.keys(e).map((t) => {
317
+ e[t] && e[t] instanceof Array && (e[t] = e[t].join(","));
318
+ }), e;
319
+ }
320
+ return q(
321
+ () => x.value,
322
+ (e) => {
323
+ let t = D.value;
324
+ if (t && t.length > 0) {
325
+ let o = [];
326
+ for (let r of t)
327
+ o.push({
328
+ field: r,
329
+ show: e
330
+ });
331
+ fe(o);
332
+ }
333
+ },
334
+ { immediate: !1 }
335
+ ), {
336
+ onlineQueryFormRef: d,
337
+ registerForm: me,
338
+ initDefaultValues: y,
339
+ toggleButtonShow: E,
340
+ toggleSearchStatus: x,
341
+ doSearch: T,
342
+ resetSearch: ye,
343
+ queryParams: b,
344
+ formSchemas: _,
345
+ clearSearch: W,
346
+ getGroupDatePlaceholder: (e) => {
347
+ let t = ["开始日期", "结束日期"];
348
+ if (e != null && e.picker)
349
+ switch (e == null ? void 0 : e.picker) {
350
+ case "year":
351
+ t = ["开始年份", "结束年份"];
352
+ break;
353
+ case "month":
354
+ t = ["开始月份", "结束月份"];
355
+ break;
356
+ case "week":
357
+ t = ["开始周", "结束周"];
358
+ break;
359
+ case "quarter":
360
+ t = ["开始季度", "结束季度"];
361
+ break;
362
+ default:
363
+ t = ["开始日期", "结束日期"];
364
+ }
365
+ return t;
366
+ }
367
+ };
368
+ }
369
+ }, Be = {
370
+ key: 0,
371
+ class: "jeecg-basic-table-form-container online-query-form p-0"
372
+ }, Qe = {
373
+ style: { float: "left", overflow: "hidden", "margin-left": "10px" },
374
+ class: "table-page-search-submitButtons"
375
+ };
376
+ function Te(h, p, u, d, _, C) {
377
+ const E = I("a-range-picker"), x = I("a-time-range-picker"), b = I("JRangeNumber"), D = I("a-button"), J = I("a-icon"), Q = I("a-col"), R = I("BasicForm");
378
+ return d.formSchemas && d.formSchemas.length > 0 ? (Z(), ee("div", Be, [
379
+ F(R, {
380
+ ref: "onlineQueryFormRef",
381
+ onRegister: d.registerForm
382
+ }, {
383
+ groupDate: j(({ model: l, field: y, schema: w }) => [
384
+ F(E, te({
385
+ style: { width: "100%" },
386
+ value: l[y],
387
+ "onUpdate:value": (N) => l[y] = N
388
+ }, w.componentProps, {
389
+ placeholder: d.getGroupDatePlaceholder(w.componentProps),
390
+ valueFormat: "YYYY-MM-DD"
391
+ }), null, 16, ["value", "onUpdate:value", "placeholder"])
392
+ ]),
393
+ groupDatetime: j(({ model: l, field: y }) => [
394
+ F(E, {
395
+ style: { width: "100%" },
396
+ value: l[y],
397
+ "onUpdate:value": (w) => l[y] = w,
398
+ "show-time": !0,
399
+ valueFormat: "YYYY-MM-DD HH:mm:ss"
400
+ }, null, 8, ["value", "onUpdate:value"])
401
+ ]),
402
+ groupTime: j(({ model: l, field: y }) => [
403
+ F(x, {
404
+ style: { width: "100%" },
405
+ value: l[y],
406
+ "onUpdate:value": (w) => l[y] = w,
407
+ "value-format": "HH:mm:ss"
408
+ }, null, 8, ["value", "onUpdate:value"])
409
+ ]),
410
+ groupNumber: j(({ model: l, field: y, schema: w }) => [
411
+ F(b, te({
412
+ value: l[y],
413
+ "onUpdate:value": (N) => l[y] = N
414
+ }, w.componentProps), null, 16, ["value", "onUpdate:value"])
415
+ ]),
416
+ formFooter: j(() => [
417
+ F(Q, {
418
+ md: 6,
419
+ sm: 8
420
+ }, {
421
+ default: j(() => [
422
+ xe("span", Qe, [
423
+ F(D, {
424
+ preIcon: "ant-design:search",
425
+ type: "primary",
426
+ onClick: d.doSearch
427
+ }, {
428
+ default: j(() => [
429
+ A("查询")
430
+ ]),
431
+ _: 1
432
+ }, 8, ["onClick"]),
433
+ F(D, {
434
+ preIcon: "ant-design:reload",
435
+ type: "primary",
436
+ onClick: d.resetSearch,
437
+ style: { "margin-left": "8px" }
438
+ }, {
439
+ default: j(() => [
440
+ A("重置")
441
+ ]),
442
+ _: 1
443
+ }, 8, ["onClick"]),
444
+ d.toggleButtonShow ? (Z(), ee("a", {
445
+ key: 0,
446
+ onClick: p[0] || (p[0] = (l) => d.toggleSearchStatus = !d.toggleSearchStatus),
447
+ style: { "margin-left": "8px" }
448
+ }, [
449
+ A(ve(d.toggleSearchStatus ? "收起" : "展开") + " ", 1),
450
+ F(J, {
451
+ type: d.toggleSearchStatus ? "up" : "down"
452
+ }, null, 8, ["type"])
453
+ ])) : oe("", !0)
454
+ ])
455
+ ]),
456
+ _: 1
457
+ })
458
+ ]),
459
+ _: 1
460
+ }, 8, ["onRegister"])
461
+ ])) : oe("", !0);
462
+ }
463
+ const Pt = /* @__PURE__ */ Je(Re, [["render", Te], ["__scopeId", "data-v-f8ce5622"]]);
464
+ export {
465
+ Pt as default
466
+ };