@jeecg/online 3.7.1-RC → 3.7.4

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 (142) hide show
  1. package/AccountLoginForm-d2fed52f.mjs +254 -0
  2. package/AiModal-fbe4b68a.mjs +84 -0
  3. package/AppForgetPassword-3b3bec82.mjs +310 -0
  4. package/AppLogin-cd2e2a87.mjs +287 -0
  5. package/AppLoginHeader-9b5be678.mjs +27 -0
  6. package/AppNameEmail-b4e32ae8.mjs +180 -0
  7. package/AppRegister-7117b66a.mjs +303 -0
  8. package/AppTenant-5817729b.mjs +373 -0
  9. package/AppThirdForm-d14fb5e5.mjs +189 -0
  10. package/AuthButtonConfig-5e3b6d72.mjs +156 -0
  11. package/AuthButtonTree-7b4ec967.mjs +165 -0
  12. package/{AuthDataConfig-5c3a8e6b.mjs → AuthDataConfig-48ee9228.mjs} +23 -23
  13. package/{AuthDataTree-dd7a1240.mjs → AuthDataTree-02b3ba05.mjs} +43 -43
  14. package/{AuthFieldConfig-9f6fa06c.mjs → AuthFieldConfig-562cc6b6.mjs} +71 -71
  15. package/AuthFieldTree-2d458c0c.mjs +232 -0
  16. package/{AuthManagerDrawer-76f15e8d.mjs → AuthManagerDrawer-38299230.mjs} +6 -6
  17. package/{AuthSetterModal-f5d2e87f.mjs → AuthSetterModal-78b06703.mjs} +9 -9
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1b9cbe19.mjs +260 -0
  21. package/CgformCopyList-580bba0f.mjs +252 -0
  22. package/{CgformModal-21c5c387.mjs → CgformModal-12951453.mjs} +190 -194
  23. package/{CgreportModal-edefa8e3.mjs → CgreportModal-bfeb93ed.mjs} +181 -168
  24. package/{CheckDictTable-1bc8322d.mjs → CheckDictTable-3c1e59e0.mjs} +3 -3
  25. package/CodeFileListModal-71752603.mjs +159 -0
  26. package/{CodeFileViewModal-2fe911f4.mjs → CodeFileViewModal-eb803769.mjs} +66 -66
  27. package/CodeGeneratorModal-2fe1e920.mjs +281 -0
  28. package/CustomButtonList-22b5cdb3.mjs +274 -0
  29. package/{DBAttributeTable-285d40db.mjs → DBAttributeTable-eb25565c.mjs} +3 -3
  30. package/{DbToOnlineModal-5dcb67c3.mjs → DbToOnlineModal-049b4bbd.mjs} +53 -54
  31. package/{DetailForm-deecbf3d.mjs → DetailForm-c127c27f.mjs} +5 -5
  32. package/DropMenuItem-b1a8f47d.mjs +44 -0
  33. package/{EnhanceJavaModal-45c66cd5.mjs → EnhanceJavaModal-1a4d696b.mjs} +62 -62
  34. package/{EnhanceJsHistory-fab3102e.mjs → EnhanceJsHistory-48cf43ad.mjs} +35 -35
  35. package/{EnhanceJsModal-175357a1.mjs → EnhanceJsModal-0e1f15f8.mjs} +102 -102
  36. package/{EnhanceSqlModal-7ea1b300.mjs → EnhanceSqlModal-6a1aa471.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-a89ae052.mjs → ExtendConfigModal-37af21a5.mjs} +2 -2
  40. package/{FieldExtendJsonModal-32135634.mjs → FieldExtendJsonModal-9441e08e.mjs} +2 -2
  41. package/{FileSelectModal-1643c8b9.mjs → FileSelectModal-04490919.mjs} +23 -23
  42. package/{ForeignKeyTable-7f7e28a7.mjs → ForeignKeyTable-06300a47.mjs} +3 -3
  43. package/{IndexTable-cdcc2b48.mjs → IndexTable-79bddd5c.mjs} +3 -3
  44. package/JModalTip-192fafa1.mjs +49 -0
  45. package/{JOnlineSearchSelect-22aae934.mjs → JOnlineSearchSelect-9abcf657.mjs} +1 -1
  46. package/{LeftDepart-d5615ed9.mjs → LeftDepart-35d78655.mjs} +1 -1
  47. package/LeftRole-9d88976d.mjs +86 -0
  48. package/{LeftUser-22baa378.mjs → LeftUser-04c89aea.mjs} +30 -30
  49. package/{LinkTableConfigModal-9242d750.mjs → LinkTableConfigModal-5f94ef13.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-24adc50c.mjs → LinkTableFieldConfigModal-40753de5.mjs} +1 -1
  51. package/{LinkTableListPiece-f3a8e0d7.mjs → LinkTableListPiece-179035c7.mjs} +1 -1
  52. package/{ModalFormDemo-711418db.mjs → ModalFormDemo-3a85920c.mjs} +1 -1
  53. package/OnlCgformErpList-8fd15fc1.mjs +488 -0
  54. package/OnlCgformErpSubTable-3515150b.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-6c23781f.mjs → OnlCgformInnerSubTable-13e888c6.mjs} +38 -38
  56. package/OnlCgformInnerTableList-2e8f853c.mjs +474 -0
  57. package/OnlCgformTabList-583ac15f.mjs +424 -0
  58. package/OnlineAutoList-36ec0957.mjs +513 -0
  59. package/OnlineAutoModal-c0743caf.mjs +260 -0
  60. package/OnlineAutoTreeList-1cd718be.mjs +523 -0
  61. package/OnlineCustomModal-661ee850.mjs +232 -0
  62. package/{OnlineDetailModal-d5895734.mjs → OnlineDetailModal-785e848e.mjs} +74 -65
  63. package/OnlineForm-c1fb38eb.mjs +1012 -0
  64. package/{OnlineFormDetail-022ca117.mjs → OnlineFormDetail-50186870.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-9715d70a.mjs → OnlineFormUrlAdd-905bf251.mjs} +9 -9
  66. package/{OnlineFormUrlDetail-8f864b1a.mjs → OnlineFormUrlDetail-a9dd2bfa.mjs} +11 -11
  67. package/{OnlineFormUrlEdit-ac985b36.mjs → OnlineFormUrlEdit-b8941f05.mjs} +9 -9
  68. package/OnlineFormUrlSuccess-ecaf6a21.mjs +59 -0
  69. package/OnlineQueryForm-ca6186a3.mjs +484 -0
  70. package/{OnlineSearchFormItem-6c557343.mjs → OnlineSearchFormItem-5c503a51.mjs} +82 -82
  71. package/{OnlineSelectCascade-05c40fef.mjs → OnlineSelectCascade-a3e686b3.mjs} +1 -1
  72. package/{OnlineSubFormDetail-58e896ce.mjs → OnlineSubFormDetail-be1ad3b9.mjs} +52 -53
  73. package/{OnlineTabAutoModal-47b18ad6.mjs → OnlineTabAutoModal-fb59b573.mjs} +108 -95
  74. package/{OnlineTabDetailModal-82de1465.mjs → OnlineTabDetailModal-4b9c4838.mjs} +36 -36
  75. package/OnlineTabForm-89389384.mjs +814 -0
  76. package/{OnlineTabFormDetail-8d0c40c0.mjs → OnlineTabFormDetail-72173ae4.mjs} +17 -17
  77. package/{PageAttributeTable-25e3b7da.mjs → PageAttributeTable-345b97fe.mjs} +108 -108
  78. package/PhoneLoginForm-8ca7e2d4.mjs +214 -0
  79. package/{ProcessOnlineForm-148632fe.mjs → ProcessOnlineForm-485b5679.mjs} +32 -32
  80. package/{QueryTable-f7bfca7f.mjs → QueryTable-f0a88d78.mjs} +3 -3
  81. package/SetSwitchOptions-cdcb22a1.mjs +62 -0
  82. package/ShareAddView-f713c0a5.mjs +86 -0
  83. package/ShareEditView-691764ad.mjs +92 -0
  84. package/ShareView-df344a8d.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-560459c9.mjs +162 -0
  86. package/SingleView-ad0287d6.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-ce96670b.mjs +131 -0
  88. package/SuperQuery-2b293e3b.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-ea1d33d4.mjs → auth.api-53df4c33.mjs} +17 -17
  92. package/{auth.data-511e5197.mjs → auth.data-626c5083.mjs} +16 -12
  93. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  94. package/{enhance.data-a67572e1.mjs → enhance.data-6601ff44.mjs} +1 -1
  95. package/index-181f8344.mjs +219 -0
  96. package/index-19eaef11.mjs +11 -0
  97. package/{index-30e0e923.mjs → index-3c7392a4.mjs} +272 -262
  98. package/{index-f30613d1.mjs → index-3ccda826.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-93341e02.mjs +110 -0
  101. package/index-bef7fe2d.mjs +74 -0
  102. package/index-d6f9ada7.mjs +135 -0
  103. package/index-f3683351.mjs +57 -0
  104. package/main.index.js +1 -1
  105. package/package.json +1 -1
  106. package/shareStore-7de6c7a6.mjs +67 -0
  107. package/style.css +1 -1
  108. package/useCgformList-13c8aab7.mjs +378 -0
  109. package/useExtendComponent-3f5734ca.mjs +4459 -0
  110. package/useListButton-ee23874a.mjs +719 -0
  111. package/{useSchemas-a9c75b0f.mjs → useSchemas-f1819e54.mjs} +72 -39
  112. package/{useTableSync-d7e9f18d.mjs → useTableSync-075826a1.mjs} +1 -1
  113. package/utils-9fce7606.mjs +16 -0
  114. package/AiModal-6de335e3.mjs +0 -84
  115. package/AuthButtonConfig-89763932.mjs +0 -154
  116. package/AuthButtonTree-2d87d0b3.mjs +0 -157
  117. package/AuthFieldTree-e326fc38.mjs +0 -232
  118. package/CgformCopyList-365b3e8f.mjs +0 -251
  119. package/CodeFileListModal-24601898.mjs +0 -159
  120. package/CodeGeneratorModal-f09fe903.mjs +0 -282
  121. package/CustomButtonList-f07bc695.mjs +0 -397
  122. package/JModalTip-b055ab60.mjs +0 -49
  123. package/LeftRole-2ed8a2bf.mjs +0 -86
  124. package/OnlCgformErpList-58acdfa0.mjs +0 -470
  125. package/OnlCgformErpSubTable-9b1e1938.mjs +0 -426
  126. package/OnlCgformInnerTableList-4b5e14ed.mjs +0 -458
  127. package/OnlCgformTabList-019ad753.mjs +0 -408
  128. package/OnlineAutoList-48589d09.mjs +0 -493
  129. package/OnlineAutoModal-c2928847.mjs +0 -239
  130. package/OnlineAutoTreeList-3baa1d00.mjs +0 -503
  131. package/OnlineCustomModal-9e17b6ce.mjs +0 -232
  132. package/OnlineForm-9f1153ba.mjs +0 -985
  133. package/OnlineFormUrlSuccess-3dfc54ab.mjs +0 -59
  134. package/OnlineQueryForm-eedb9a60.mjs +0 -466
  135. package/OnlineTabForm-27655c83.mjs +0 -817
  136. package/SetSwitchOptions-b2af757f.mjs +0 -62
  137. package/SuperQuery-a8592995.mjs +0 -967
  138. package/index-1d1a6e56.mjs +0 -57
  139. package/useCgformList-f41d4dc1.mjs +0 -426
  140. package/useExtendComponent-dcae5c78.mjs +0 -4399
  141. package/useListButton-bfac4ecf.mjs +0 -697
  142. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_4657b304_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -1,59 +0,0 @@
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
- import { useRouter as w } from "vue-router";
3
- import { _ as x } from "./index-1d1a6e56.mjs";
4
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
5
- import "/@/hooks/web/useMessage";
6
- const C = (o) => (v("data-v-a18c2961"), o = o(), f(), o), g = /* @__PURE__ */ C(() => /* @__PURE__ */ e("div", { class: "contentArea" }, [
7
- /* @__PURE__ */ e("svg", {
8
- t: "1709697840296",
9
- class: "icon",
10
- viewBox: "0 0 1024 1024",
11
- version: "1.1",
12
- xmlns: "http://www.w3.org/2000/svg",
13
- "p-id": "1485"
14
- }, [
15
- /* @__PURE__ */ e("path", {
16
- d: "M874.119618 149.859922A510.816461 510.816461 0 0 0 511.997 0.00208a509.910462 509.910462 0 0 0-362.119618 149.857842c-199.817789 199.679789-199.817789 524.581447 0 724.260236a509.969462 509.969462 0 0 0 362.119618 149.857842A508.872463 508.872463 0 0 0 874.119618 874.120158c199.836789-199.679789 199.836789-524.581447 0-724.260236zM814.94268 378.210681L470.999043 744.132295a15.359984 15.359984 0 0 1-5.887994 4.095996c-1.751998 1.180999-2.913997 2.362998-5.276994 2.913997a34.499964 34.499964 0 0 1-13.469986 2.914997 45.547952 45.547952 0 0 1-12.897986-2.303998l-4.095996-2.363997a45.291952 45.291952 0 0 1-7.009992-4.095996l-196.902793-193.789796a34.126964 34.126964 0 0 1-10.555989-25.186973c0-9.37399 3.583996-18.74698 9.98399-25.186974a36.429962 36.429962 0 0 1 50.372947 0l169.98382 167.423824L763.389735 330.220732a37.059961 37.059961 0 0 1 50.371947-1.732998 33.647965 33.647965 0 0 1 11.165988 25.186973 35.544963 35.544963 0 0 1-9.98399 24.575974v-0.04z m0 0",
17
- fill: "currentColor",
18
- "p-id": "1486"
19
- })
20
- ]),
21
- /* @__PURE__ */ e("h1", null, "提交成功")
22
- ], -1)), S = { class: "btnArea" }, h = /* @__PURE__ */ i({
23
- __name: "OnlineFormUrlSuccess",
24
- setup(o) {
25
- const l = w(), n = () => {
26
- l.go(-1);
27
- };
28
- return (k, t) => {
29
- const s = _("a-button");
30
- return d(), m("div", {
31
- class: u([["p-2"], "online-wrap"])
32
- }, [
33
- g,
34
- e("div", S, [
35
- c(s, {
36
- onClick: t[0] || (t[0] = (p) => n())
37
- }, {
38
- default: r(() => [
39
- a("返回")
40
- ]),
41
- _: 1
42
- }),
43
- c(s, {
44
- onClick: t[1] || (t[1] = (p) => n())
45
- }, {
46
- default: r(() => [
47
- a("关闭")
48
- ]),
49
- _: 1
50
- })
51
- ])
52
- ]);
53
- };
54
- }
55
- });
56
- const F = /* @__PURE__ */ x(h, [["__scopeId", "data-v-a18c2961"]]);
57
- export {
58
- F as default
59
- };
@@ -1,466 +0,0 @@
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
- };