@jeecg/online 3.7.0-beta → 3.7.4-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/AccountLoginForm-84cbd344.mjs +254 -0
  2. package/AiModal-26903538.mjs +84 -0
  3. package/AppForgetPassword-52443f23.mjs +310 -0
  4. package/AppLogin-ecf798fa.mjs +287 -0
  5. package/AppLoginHeader-4432c584.mjs +27 -0
  6. package/AppNameEmail-3303a037.mjs +180 -0
  7. package/AppRegister-79a62c59.mjs +303 -0
  8. package/AppTenant-f0bef7ca.mjs +373 -0
  9. package/AppThirdForm-fd8b4604.mjs +189 -0
  10. package/AuthButtonConfig-d5bffca0.mjs +156 -0
  11. package/AuthButtonTree-b0bd6c40.mjs +165 -0
  12. package/{AuthDataConfig-7bb0cd85.mjs → AuthDataConfig-d3b7afa4.mjs} +30 -29
  13. package/{AuthDataTree-6e3bb86f.mjs → AuthDataTree-f14a98d9.mjs} +47 -47
  14. package/AuthFieldConfig-f1e224cc.mjs +245 -0
  15. package/AuthFieldTree-5cc0da05.mjs +232 -0
  16. package/{AuthManagerDrawer-5e2ed5ce.mjs → AuthManagerDrawer-32556109.mjs} +9 -8
  17. package/{AuthSetterModal-6f74449c.mjs → AuthSetterModal-364f1f67.mjs} +12 -11
  18. package/BuiltInButtonList-bb6cf95c.mjs +10 -0
  19. package/BuiltInButtonList.vue_vue_type_script_setup_true_lang-07d0b7d0.mjs +338 -0
  20. package/CgformAddressModal-1131274c.mjs +260 -0
  21. package/CgformCopyList-5fba0810.mjs +252 -0
  22. package/CgformModal-c4a4e0c2.mjs +667 -0
  23. package/{CgreportModal-5a23d089.mjs → CgreportModal-8a84aae5.mjs} +186 -172
  24. package/{CheckDictTable-b5cb0e2b.mjs → CheckDictTable-8a938e3a.mjs} +37 -34
  25. package/CodeFileListModal-a924902a.mjs +159 -0
  26. package/CodeFileViewModal-405e2b58.mjs +253 -0
  27. package/CodeGeneratorModal-2e1dc13d.mjs +281 -0
  28. package/CustomButtonList-c453b654.mjs +274 -0
  29. package/{DBAttributeTable-95dc66c1.mjs → DBAttributeTable-1a45c7b7.mjs} +80 -72
  30. package/DbToOnlineModal-f28ff0a3.mjs +168 -0
  31. package/{DetailForm-4aa2570b.mjs → DetailForm-c592b8d8.mjs} +50 -49
  32. package/DropMenuItem-1e49abea.mjs +44 -0
  33. package/{EnhanceJavaModal-98934198.mjs → EnhanceJavaModal-d5a93f2a.mjs} +62 -62
  34. package/{EnhanceJsHistory-9c4acdaf.mjs → EnhanceJsHistory-8ddb0657.mjs} +35 -35
  35. package/{EnhanceJsModal-247f640d.mjs → EnhanceJsModal-dc4f9ade.mjs} +154 -138
  36. package/{EnhanceSqlModal-65b74b0f.mjs → EnhanceSqlModal-984f045d.mjs} +67 -67
  37. package/ErrorTip-bb616e32.mjs +7 -0
  38. package/ErrorTip.vue_vue_type_script_setup_true_lang-49d35987.mjs +60 -0
  39. package/{ExtendConfigModal-00f2fb55.mjs → ExtendConfigModal-7d70f362.mjs} +2 -2
  40. package/{FieldExtendJsonModal-cc7fce26.mjs → FieldExtendJsonModal-bf04d70e.mjs} +2 -2
  41. package/{FileSelectModal-38660e3c.mjs → FileSelectModal-ffc69d4a.mjs} +23 -23
  42. package/{ForeignKeyTable-a78cb5ad.mjs → ForeignKeyTable-92decaea.mjs} +3 -3
  43. package/{IndexTable-1b496559.mjs → IndexTable-2ded2014.mjs} +28 -20
  44. package/JModalTip-a927f85d.mjs +49 -0
  45. package/JOnlineSearchSelect-04ec87d0.mjs +128 -0
  46. package/{LeftDepart-8ade4bf7.mjs → LeftDepart-52cb6743.mjs} +1 -1
  47. package/LeftRole-b0e0b496.mjs +86 -0
  48. package/{LeftUser-b4d1372a.mjs → LeftUser-dd4b10e2.mjs} +30 -30
  49. package/{LinkTableConfigModal-a138c85e.mjs → LinkTableConfigModal-7eeb3e58.mjs} +43 -31
  50. package/{LinkTableFieldConfigModal-17b413b0.mjs → LinkTableFieldConfigModal-b078fcef.mjs} +1 -1
  51. package/{LinkTableListPiece-2660d709.mjs → LinkTableListPiece-e016b8e6.mjs} +1 -1
  52. package/{ModalFormDemo-0544737d.mjs → ModalFormDemo-aaa719a7.mjs} +1 -1
  53. package/OnlCgformErpList-5c5acdaa.mjs +488 -0
  54. package/OnlCgformErpSubTable-e1b88312.mjs +441 -0
  55. package/{OnlCgformInnerSubTable-290ace5d.mjs → OnlCgformInnerSubTable-6b6fa15a.mjs} +106 -107
  56. package/OnlCgformInnerTableList-b283a525.mjs +474 -0
  57. package/OnlCgformTabList-91e3dd78.mjs +424 -0
  58. package/OnlineAutoList-84475f1b.mjs +513 -0
  59. package/OnlineAutoModal-95f46901.mjs +260 -0
  60. package/OnlineAutoTreeList-20b9ce04.mjs +523 -0
  61. package/OnlineCustomModal-c8b1e780.mjs +232 -0
  62. package/{OnlineDetailModal-2a271e0b.mjs → OnlineDetailModal-5b412bb9.mjs} +74 -65
  63. package/OnlineForm-58282699.mjs +1012 -0
  64. package/{OnlineFormDetail-e036cd11.mjs → OnlineFormDetail-fc087725.mjs} +7 -7
  65. package/{OnlineFormUrlAdd-7fb3dcca.mjs → OnlineFormUrlAdd-bc9105bb.mjs} +10 -10
  66. package/{OnlineFormUrlDetail-b2292137.mjs → OnlineFormUrlDetail-ad912560.mjs} +12 -12
  67. package/{OnlineFormUrlEdit-44080fb3.mjs → OnlineFormUrlEdit-f2fa79ff.mjs} +10 -10
  68. package/OnlineFormUrlSuccess-76813d45.mjs +59 -0
  69. package/OnlineQueryForm-9248341f.mjs +484 -0
  70. package/{OnlineSearchFormItem-6feacae6.mjs → OnlineSearchFormItem-1e437bd3.mjs} +82 -82
  71. package/{OnlineSelectCascade-471fcc76.mjs → OnlineSelectCascade-d631ed72.mjs} +1 -1
  72. package/{OnlineSubFormDetail-03f8ee5c.mjs → OnlineSubFormDetail-8be879b9.mjs} +53 -54
  73. package/{OnlineTabAutoModal-7b9bcd0b.mjs → OnlineTabAutoModal-c9ca3c24.mjs} +108 -95
  74. package/{OnlineTabDetailModal-88143301.mjs → OnlineTabDetailModal-fd4c9a72.mjs} +36 -36
  75. package/OnlineTabForm-1940e88b.mjs +814 -0
  76. package/{OnlineTabFormDetail-bbf23caa.mjs → OnlineTabFormDetail-2aa67564.mjs} +17 -17
  77. package/{PageAttributeTable-6c23547b.mjs → PageAttributeTable-66e7b485.mjs} +169 -149
  78. package/PhoneLoginForm-86437a9d.mjs +214 -0
  79. package/{ProcessOnlineForm-b42198f5.mjs → ProcessOnlineForm-98ede18d.mjs} +64 -58
  80. package/{QueryTable-96b3dbd0.mjs → QueryTable-65d3f54f.mjs} +40 -37
  81. package/SetSwitchOptions-f914bc17.mjs +62 -0
  82. package/ShareAddView-657f0f8b.mjs +86 -0
  83. package/ShareEditView-1b945fd3.mjs +92 -0
  84. package/ShareView-222ed3d8.mjs +80 -0
  85. package/ShareView.vue_vue_type_script_setup_true_lang-44fbeaff.mjs +162 -0
  86. package/SingleView-23b0cb4e.mjs +68 -0
  87. package/SingleView.vue_vue_type_style_index_0_lang-e0f2f6c0.mjs +131 -0
  88. package/SuperQuery-46032e66.mjs +974 -0
  89. package/{SuperQueryValComponent-7ad86d4b.mjs → SuperQueryValComponent-5a9ccfd4.mjs} +1 -1
  90. package/{SuperQueryValComponent.vue_vue_type_script_lang-e9196096.mjs → SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs} +11 -11
  91. package/auth.api-53df4c33.mjs +41 -0
  92. package/{auth.data-22948e87.mjs → auth.data-626c5083.mjs} +68 -30
  93. package/button.data-fe45d43b.mjs +12 -0
  94. package/{cgform.data-475d4984.mjs → cgform.data-0ca62d09.mjs} +4 -1
  95. package/{enhance.data-3304d553.mjs → enhance.data-6601ff44.mjs} +9 -8
  96. package/index-19eaef11.mjs +11 -0
  97. package/index-1a2e8832.mjs +135 -0
  98. package/{index-581bef24.mjs → index-2fb8e07f.mjs} +59 -59
  99. package/index-5e89258d.mjs +8 -0
  100. package/index-9e1e1e53.mjs +57 -0
  101. package/{index-d2abb8a0.mjs → index-a039036e.mjs} +273 -262
  102. package/index-c5a79b0b.mjs +219 -0
  103. package/index-cce225be.mjs +110 -0
  104. package/index-f2c2d1cf.mjs +74 -0
  105. package/main.index.js +1 -1
  106. package/package.json +1 -1
  107. package/shareStore-7de6c7a6.mjs +67 -0
  108. package/style.css +1 -1
  109. package/useCgformList-f3cb9156.mjs +378 -0
  110. package/useExtendComponent-bb98e568.mjs +4460 -0
  111. package/useListButton-98908683.mjs +719 -0
  112. package/{useSchemas-47e45edc.mjs → useSchemas-b074f3a1.mjs} +88 -46
  113. package/useTableSync-075826a1.mjs +89 -0
  114. package/utils-9fce7606.mjs +16 -0
  115. package/AiModal-fe3988fb.mjs +0 -84
  116. package/AuthButtonConfig-d50a0a65.mjs +0 -134
  117. package/AuthButtonTree-589395ed.mjs +0 -156
  118. package/AuthFieldConfig-490fc0ab.mjs +0 -139
  119. package/AuthFieldTree-b7cd091e.mjs +0 -232
  120. package/CgformCopyList-8077ccc6.mjs +0 -250
  121. package/CgformModal-36faf29a.mjs +0 -621
  122. package/CodeFileListModal-0e26b7e0.mjs +0 -158
  123. package/CodeFileViewModal-9d4a5b5f.mjs +0 -248
  124. package/CodeGeneratorModal-b722d976.mjs +0 -238
  125. package/CustomButtonList-37639061.mjs +0 -381
  126. package/DbToOnlineModal-f49b9530.mjs +0 -166
  127. package/JModalTip-4a83aaed.mjs +0 -49
  128. package/JOnlineSearchSelect-34a37ec9.mjs +0 -95
  129. package/LeftRole-7d8c5acc.mjs +0 -86
  130. package/OnlCgformErpList-30e416c8.mjs +0 -470
  131. package/OnlCgformErpSubTable-9a876058.mjs +0 -427
  132. package/OnlCgformInnerTableList-f89b6687.mjs +0 -458
  133. package/OnlCgformTabList-7a2f2c03.mjs +0 -408
  134. package/OnlineAutoList-46c6c8b9.mjs +0 -493
  135. package/OnlineAutoModal-971bef13.mjs +0 -236
  136. package/OnlineAutoTreeList-3b92454c.mjs +0 -502
  137. package/OnlineCustomModal-594244f3.mjs +0 -232
  138. package/OnlineForm-018981b2.mjs +0 -924
  139. package/OnlineFormUrlSuccess-af285b02.mjs +0 -59
  140. package/OnlineQueryForm-998c12a4.mjs +0 -444
  141. package/OnlineTabForm-9ad7d29a.mjs +0 -805
  142. package/SetSwitchOptions-a452fa0f.mjs +0 -62
  143. package/SuperQuery-cbfba908.mjs +0 -975
  144. package/auth.api-d3a6c4b3.mjs +0 -39
  145. package/index-173949bb.mjs +0 -57
  146. package/useCgformList-8755a94e.mjs +0 -426
  147. package/useExtendComponent-bb7cca20.mjs +0 -4295
  148. package/useListButton-7ddb9a46.mjs +0 -697
  149. package/useTableSync-f6089e8a.mjs +0 -87
  150. /package/{OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs → OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs} +0 -0
@@ -0,0 +1,523 @@
1
+ var F = (e, f, p) => new Promise((i, S) => {
2
+ var w = (r) => {
3
+ try {
4
+ h(p.next(r));
5
+ } catch (C) {
6
+ S(C);
7
+ }
8
+ }, m = (r) => {
9
+ try {
10
+ h(p.throw(r));
11
+ } catch (C) {
12
+ S(C);
13
+ }
14
+ }, h = (r) => r.done ? i(r.value) : Promise.resolve(r.value).then(w, m);
15
+ h((p = p.apply(e, f)).next());
16
+ });
17
+ import { BasicTable as je, TableAction as Ue } from "/@/components/Table";
18
+ import { useMessage as _e } from "/@/hooks/web/useMessage";
19
+ import We from "./OnlineAutoModal-95f46901.mjs";
20
+ import Ge from "./OnlineDetailModal-5b412bb9.mjs";
21
+ import Xe from "./OnlineCustomModal-c8b1e780.mjs";
22
+ import { ref as P, watch as Ye, resolveComponent as u, openBlock as a, createElementBlock as c, createBlock as d, createCommentVNode as g, withDirectives as V, createVNode as B, vShow as z, normalizeClass as Ze, withCtx as s, createElementVNode as R, toDisplayString as b, Fragment as j, renderList as xe, createTextVNode as Q, mergeProps as en, toHandlers as nn, resolveDynamicComponent as on, normalizeProps as tn, guardReactiveProps as ln } from "vue";
23
+ import an from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
+ import { u as rn, a as sn } from "./useListButton-98908683.mjs";
25
+ import { u as un, a as dn, g as pn } from "./useExtendComponent-bb98e568.mjs";
26
+ import { defHttp as mn } from "/@/utils/http/axios";
27
+ import cn from "./OnlineQueryForm-9248341f.mjs";
28
+ import gn from "./SuperQuery-46032e66.mjs";
29
+ import { b as U } from "./constant-fa63bd66.mjs";
30
+ import { _ as fn } from "./index-9e1e1e53.mjs";
31
+ import "/@/components/Modal";
32
+ import "./OnlineForm-58282699.mjs";
33
+ import "/@/components/Form/index";
34
+ import "lodash-es";
35
+ import "/@/utils";
36
+ import "/@/components/Loading";
37
+ import "/@/components/jeecg/JVxeTable/types";
38
+ import "/@/utils/auth";
39
+ import "@ant-design/icons-vue";
40
+ import "/@/hooks/core/useContext";
41
+ import "/@/utils/mitt";
42
+ import "./useCustomHook-acb00837.mjs";
43
+ import "/@/utils/cache";
44
+ import "/@/utils/common/compUtils";
45
+ import "/@/store/modules/user";
46
+ import "/@/hooks/web/useAppInject";
47
+ import "/@/utils/is";
48
+ import "/@/store/modules/permission";
49
+ import "./OnlineForm.vue_vue_type_style_index_0_scoped_3f26e7bd_lang-4ed993c7.mjs";
50
+ import "/@/components/Form/src/componentMap";
51
+ import "/@/utils/propTypes";
52
+ import "/@/components/Form/src/jeecg/components/JUpload";
53
+ import "/@/views/system/user/user.api";
54
+ import "/@/utils/desform/customExpression";
55
+ import "/@/utils/dict/JDictSelectUtil";
56
+ import "/@/hooks/system/useListPage";
57
+ import "vue-router";
58
+ import "/@/components/Form/src/utils/Area";
59
+ import "/@/components/Preview/index";
60
+ import "./LinkTableListPiece-e016b8e6.mjs";
61
+ import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
62
+ import "/@/api/common/api";
63
+ import "/@/assets/images/placeholderImage.png";
64
+ import "./OnlineSelectCascade-d631ed72.mjs";
65
+ import "./JModalTip-a927f85d.mjs";
66
+ import "ant-design-vue";
67
+ import "@vueuse/core";
68
+ import "/@/components/jeecg/comment/CommentPanel.vue";
69
+ import "./OnlineFormDetail-fc087725.mjs";
70
+ import "./DetailForm-c592b8d8.mjs";
71
+ import "/@/utils/dict";
72
+ import "/@/utils/dict/index";
73
+ import "/@/components/Markdown";
74
+ import "./OnlineSubFormDetail-8be879b9.mjs";
75
+ import "/@/router";
76
+ import "/@/hooks/core/onMountedOrActivated";
77
+ import "/@/store/modules/multipleTab";
78
+ import "./cgformState-d9f8ec42.mjs";
79
+ import "pinia";
80
+ import "/@/store";
81
+ import "/@/hooks/system/useMethods";
82
+ import "/@/components/Form/src/jeecg/components/JRangeNumber.vue";
83
+ import "./SuperQueryValComponent.vue_vue_type_script_lang-8fe34917.mjs";
84
+ import "/@/utils/index";
85
+ import "/@/hooks/web/useDesign";
86
+ const hn = {
87
+ name: "DefaultOnlineList",
88
+ components: {
89
+ BasicTable: je,
90
+ TableAction: Ue,
91
+ OnlineAutoModal: We,
92
+ JImportModal: an,
93
+ OnlineQueryForm: cn,
94
+ OnlineSuperQuery: gn,
95
+ OnlineCustomModal: Xe,
96
+ OnlineDetailModal: Ge
97
+ },
98
+ setup() {
99
+ const { createMessage: e } = _e(), f = P(), {
100
+ ID: p,
101
+ onlineTableContext: i,
102
+ onlineQueryFormOuter: S,
103
+ loading: w,
104
+ reload: m,
105
+ dataSource: h,
106
+ pagination: r,
107
+ handleSpecialConfig: C,
108
+ getColumnList: v,
109
+ handleChangeInTable: D,
110
+ loadData: E,
111
+ superQueryButtonRef: T,
112
+ superQueryStatus: L,
113
+ handleSuperQuery: A,
114
+ registerCustomModal: O,
115
+ getTreeDataByResult: n,
116
+ expandedRowKeys: l,
117
+ handleExpandedRowsChange: y,
118
+ tableReloading: H,
119
+ onlineExtConfigJson: $,
120
+ handleFormConfig: _
121
+ } = rn();
122
+ if (!p.value)
123
+ throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
124
+ i.isTree(!0);
125
+ let { initCgEnhanceJs: W } = un(i);
126
+ const {
127
+ buttonSwitch: G,
128
+ cgLinkButtonList: X,
129
+ cgBIBtnMap: Y,
130
+ getQueryButtonCfg: Z,
131
+ getResetButtonCfg: x,
132
+ getFormConfirmButtonCfg: ee,
133
+ cgTopButtonList: ne,
134
+ importUrl: oe,
135
+ registerModal: te,
136
+ handleAdd: J,
137
+ handleEdit: ie,
138
+ handleBatchDelete: le,
139
+ registerImportModal: ae,
140
+ onImportExcel: re,
141
+ onExportExcel: se,
142
+ cgButtonJsHandler: ue,
143
+ cgButtonActionHandler: de,
144
+ cgButtonLinkHandler: pe,
145
+ handleSubmitFlow: me,
146
+ getDropDownActions: ce,
147
+ getActions: ge,
148
+ initButtonList: fe,
149
+ initButtonSwitch: he,
150
+ registerDetailModal: Ce
151
+ } = sn(i, $), {
152
+ columns: ye,
153
+ actionColumn: Be,
154
+ selectedKeys: be,
155
+ rowSelection: we,
156
+ enableScrollBar: Ie,
157
+ tableScroll: Se,
158
+ downloadRowFile: Te,
159
+ getImgView: ke,
160
+ getPcaText: Re,
161
+ getFormatDate: Me,
162
+ handleColumnResult: Fe,
163
+ hrefComponent: ve,
164
+ viewOnlineCellImage: De,
165
+ handleClickFieldHref: Ee
166
+ } = dn(i, $);
167
+ Ye(
168
+ p,
169
+ () => {
170
+ Le();
171
+ },
172
+ { immediate: !0 }
173
+ );
174
+ function Le() {
175
+ return F(this, null, function* () {
176
+ w.value = !0;
177
+ let o = yield v(U);
178
+ Ae(o), yield E(), w.value = !1, i.execButtonEnhance("setup");
179
+ });
180
+ }
181
+ function Ae(o) {
182
+ let t = W(o.enhanceJs);
183
+ i.EnhanceJS = t, fe(o.cgButtonList), he(o.hideColumns), Fe(o), C(o), i.hasChildrenField = o.hasChildrenField, i.pidField = o.pidField;
184
+ }
185
+ function Oe(o, t) {
186
+ i.queryParam = o, t === !0 ? m({ mode: "search" }) : N();
187
+ }
188
+ function He(o) {
189
+ return F(this, null, function* () {
190
+ yield pn(T), T.value.init(o);
191
+ });
192
+ }
193
+ function qe(o, t) {
194
+ let I = l.value;
195
+ if (o) {
196
+ if (Qe(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
197
+ let k = i.hasChildrenField;
198
+ const { sortField: Pe, sortType: Ve } = i;
199
+ let q = Object.assign({}, { column: Pe, order: Ve });
200
+ q[i.pidField] = t.id, q[k] = t[k];
201
+ let ze = `${i.onlineUrl.getTreeData}${i.ID}`;
202
+ mn.get({ url: ze, params: q }, { isTransformResponse: !1 }).then((M) => {
203
+ M.success ? Number(M.result.total) > 0 ? t.children = n(M.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(M.message);
204
+ }).catch(() => {
205
+ e.warning("加载子节点失败!");
206
+ });
207
+ }
208
+ } else {
209
+ let k = I.indexOf(t.id);
210
+ k >= 0 && (l.value = I.splice(k, 1));
211
+ }
212
+ }
213
+ function Qe(o) {
214
+ let t = l.value;
215
+ t && t.indexOf(o) < 0 && t.push(o), l.value = t;
216
+ }
217
+ function N() {
218
+ return F(this, null, function* () {
219
+ i.isTree() === !0 && (l.value = [], f.value.collapseAll()), m();
220
+ });
221
+ }
222
+ function $e(o) {
223
+ if (K.value === !0) {
224
+ let t = o[i.pidField];
225
+ if (t) {
226
+ let I = l.value;
227
+ I.indexOf(t) < 0 && I.push(t), l.value = I;
228
+ }
229
+ }
230
+ m();
231
+ }
232
+ const Je = (o) => ({
233
+ label: "添加下级",
234
+ onClick: Ne.bind(null, o)
235
+ }), K = P(!1);
236
+ function Ne(o) {
237
+ K.value = !0;
238
+ let t = {
239
+ [i.pidField]: o.id
240
+ };
241
+ J(t);
242
+ }
243
+ function Ke(o) {
244
+ let t = ce(o, { themeTemplate: U });
245
+ return t.unshift(Je(o)), t;
246
+ }
247
+ return {
248
+ ID: p,
249
+ // 查询区域
250
+ onlineQueryFormOuter: S,
251
+ queryWithCondition: Oe,
252
+ onQueryFormLoaded: He,
253
+ reload: m,
254
+ //高级查询
255
+ superQueryButtonRef: T,
256
+ superQueryStatus: L,
257
+ handleSuperQuery: A,
258
+ // table区域
259
+ loading: w,
260
+ columns: ye,
261
+ actionColumn: Be,
262
+ dataSource: h,
263
+ pagination: r,
264
+ rowSelection: we,
265
+ selectedKeys: be,
266
+ tableScroll: Se,
267
+ enableScrollBar: Ie,
268
+ handleChangeInTable: D,
269
+ //按钮
270
+ buttonSwitch: G,
271
+ handleAdd: J,
272
+ handleEdit: ie,
273
+ onImportExcel: re,
274
+ onExportExcel: se,
275
+ cgBIBtnMap: Y,
276
+ getQueryButtonCfg: Z,
277
+ getResetButtonCfg: x,
278
+ getFormConfirmButtonCfg: ee,
279
+ cgTopButtonList: ne,
280
+ cgLinkButtonList: X,
281
+ cgButtonJsHandler: ue,
282
+ cgButtonActionHandler: de,
283
+ cgButtonLinkHandler: pe,
284
+ handleBatchDelete: le,
285
+ // table-slot
286
+ downloadRowFile: Te,
287
+ getImgView: ke,
288
+ getPcaText: Re,
289
+ getFormatDate: Me,
290
+ // 操作列
291
+ getActions: ge,
292
+ getTreeDropDownActions: Ke,
293
+ // 弹窗
294
+ registerModal: te,
295
+ registerCustomModal: O,
296
+ registerImportModal: ae,
297
+ importUrl: oe,
298
+ handleFormConfig: _,
299
+ //其他
300
+ tableReloading: H,
301
+ handleSubmitFlow: me,
302
+ hrefComponent: ve,
303
+ viewOnlineCellImage: De,
304
+ //树特定的配置
305
+ onlineTreeTableRef: f,
306
+ handlerFormSuccess: $e,
307
+ searchReset: N,
308
+ handleExpand: qe,
309
+ expandedRowKeys: l,
310
+ handleExpandedRowsChange: y,
311
+ registerDetailModal: Ce,
312
+ handleClickFieldHref: Ee
313
+ };
314
+ }
315
+ // 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
316
+ // 2. value的问题
317
+ // 3. 变量位置改变后需要 重写api
318
+ // 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
319
+ // 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
320
+ // TODO 清空高级查询
321
+ // TODO 积木报表打印地址
322
+ // const reportPrintUrl = ref('')
323
+ };
324
+ const Cn = { class: "p-2" }, yn = {
325
+ key: 0,
326
+ style: { "font-size": "12px", "font-style": "italic" }
327
+ }, Bn = {
328
+ key: 0,
329
+ style: { "font-size": "12px", "font-style": "italic" }
330
+ }, bn = ["src", "onClick"], wn = ["innerHTML", "onClick"], In = ["innerHTML"], Sn = ["title"];
331
+ function Tn(e, f, p, i, S, w) {
332
+ const m = u("a-skeleton"), h = u("online-query-form"), r = u("a-button"), C = u("online-super-query"), v = u("TableAction"), D = u("BasicTable"), E = u("OnlineAutoModal"), T = u("JImportModal"), L = u("a-modal"), A = u("online-custom-modal"), O = u("online-detail-modal");
333
+ return a(), c("div", Cn, [
334
+ e.tableReloading ? (a(), d(m, {
335
+ key: 0,
336
+ active: ""
337
+ })) : g("", !0),
338
+ V(B(h, {
339
+ ref: "onlineQueryFormOuter",
340
+ id: e.ID,
341
+ queryBtnCfg: e.getQueryButtonCfg,
342
+ resetBtnCfg: e.getResetButtonCfg,
343
+ onSearch: e.queryWithCondition,
344
+ onLoaded: e.onQueryFormLoaded
345
+ }, null, 8, ["id", "queryBtnCfg", "resetBtnCfg", "onSearch", "onLoaded"]), [
346
+ [z, !e.tableReloading]
347
+ ]),
348
+ e.tableReloading ? g("", !0) : (a(), d(D, {
349
+ key: 1,
350
+ ref: "onlineTreeTableRef",
351
+ isTreeTable: !0,
352
+ expandedRowKeys: e.expandedRowKeys,
353
+ onExpandedRowsChange: e.handleExpandedRowsChange,
354
+ onExpand: e.handleExpand,
355
+ rowKey: "jeecg_row_key",
356
+ canResize: !0,
357
+ bordered: !0,
358
+ showIndexColumn: !1,
359
+ loading: e.loading,
360
+ columns: e.columns,
361
+ dataSource: e.dataSource,
362
+ pagination: e.pagination,
363
+ rowSelection: e.rowSelection,
364
+ actionColumn: e.actionColumn,
365
+ showTableSetting: !0,
366
+ clickToRowSelect: !1,
367
+ scroll: e.tableScroll,
368
+ onTableRedo: e.reload,
369
+ class: Ze({ "j-table-force-nowrap": e.enableScrollBar }),
370
+ onChange: e.handleChangeInTable
371
+ }, {
372
+ tableTitle: s(() => [
373
+ e.buttonSwitch.add && e.cgBIBtnMap.add.enabled ? (a(), d(r, {
374
+ key: 0,
375
+ type: "primary",
376
+ preIcon: e.cgBIBtnMap.add.buttonIcon,
377
+ onClick: e.handleAdd
378
+ }, {
379
+ default: s(() => [
380
+ R("span", null, b(e.cgBIBtnMap.add.buttonName), 1)
381
+ ]),
382
+ _: 1
383
+ }, 8, ["preIcon", "onClick"])) : g("", !0),
384
+ e.buttonSwitch.export && e.cgBIBtnMap.export.enabled ? (a(), d(r, {
385
+ key: 1,
386
+ type: "primary",
387
+ preIcon: e.cgBIBtnMap.export.buttonIcon,
388
+ onClick: e.onExportExcel
389
+ }, {
390
+ default: s(() => [
391
+ R("span", null, b(e.cgBIBtnMap.export.buttonName), 1)
392
+ ]),
393
+ _: 1
394
+ }, 8, ["preIcon", "onClick"])) : g("", !0),
395
+ e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (a(!0), c(j, { key: 2 }, xe(e.cgTopButtonList, (n, l) => (a(), c(j, null, [
396
+ n.optType == "js" ? (a(), d(r, {
397
+ key: "cgbtn" + l,
398
+ onClick: (y) => e.cgButtonJsHandler(n.buttonCode),
399
+ type: "primary",
400
+ preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
401
+ }, {
402
+ default: s(() => [
403
+ Q(b(n.buttonName), 1)
404
+ ]),
405
+ _: 2
406
+ }, 1032, ["onClick", "preIcon"])) : n.optType == "action" ? (a(), d(r, {
407
+ key: "cgbtn" + l,
408
+ onClick: (y) => e.cgButtonActionHandler(n.buttonCode),
409
+ type: "primary",
410
+ preIcon: n.buttonIcon ? "ant-design:" + n.buttonIcon : ""
411
+ }, {
412
+ default: s(() => [
413
+ Q(b(n.buttonName), 1)
414
+ ]),
415
+ _: 2
416
+ }, 1032, ["onClick", "preIcon"])) : g("", !0)
417
+ ], 64))), 256)) : g("", !0),
418
+ e.buttonSwitch.batch_delete && e.cgBIBtnMap.batch_delete.enabled ? V((a(), d(r, {
419
+ key: 3,
420
+ preIcon: e.cgBIBtnMap.batch_delete.buttonIcon,
421
+ onClick: e.handleBatchDelete
422
+ }, {
423
+ default: s(() => [
424
+ R("span", null, b(e.cgBIBtnMap.batch_delete.buttonName), 1)
425
+ ]),
426
+ _: 1
427
+ }, 8, ["preIcon", "onClick"])), [
428
+ [z, e.selectedKeys.length > 0]
429
+ ]) : g("", !0),
430
+ e.buttonSwitch.super_query && e.cgBIBtnMap.super_query.enabled ? (a(), d(C, {
431
+ key: 4,
432
+ ref: "superQueryButtonRef",
433
+ online: "",
434
+ status: e.superQueryStatus,
435
+ queryBtnCfg: e.cgBIBtnMap.super_query,
436
+ onSearch: e.handleSuperQuery
437
+ }, null, 8, ["status", "queryBtnCfg", "onSearch"])) : g("", !0)
438
+ ]),
439
+ fileSlot: s(({ text: n, record: l, column: y }) => [
440
+ n ? (a(), d(r, {
441
+ key: 1,
442
+ ghost: !0,
443
+ type: "primary",
444
+ preIcon: "ant-design:download",
445
+ size: "small",
446
+ onClick: (H) => e.downloadRowFile(n, l, y, e.ID)
447
+ }, {
448
+ default: s(() => f[0] || (f[0] = [
449
+ Q(" 下载 ")
450
+ ])),
451
+ _: 2
452
+ }, 1032, ["onClick"])) : (a(), c("span", yn, "无文件"))
453
+ ]),
454
+ imgSlot: s(({ text: n }) => [
455
+ n ? (a(), c("img", {
456
+ key: 1,
457
+ src: e.getImgView(n),
458
+ alt: "图片不存在",
459
+ class: "online-cell-image",
460
+ onClick: (l) => e.viewOnlineCellImage(n)
461
+ }, null, 8, bn)) : (a(), c("span", Bn, "无图片"))
462
+ ]),
463
+ htmlSlot: s(({ text: n, column: l, record: y }) => [
464
+ l.fieldHref ? (a(), c("a", {
465
+ key: 0,
466
+ innerHTML: n,
467
+ onClick: (H) => e.handleClickFieldHref(l.fieldHref, y)
468
+ }, null, 8, wn)) : (a(), c("div", {
469
+ key: 1,
470
+ innerHTML: n
471
+ }, null, 8, In))
472
+ ]),
473
+ pcaSlot: s(({ text: n }) => [
474
+ R("div", {
475
+ title: e.getPcaText(n)
476
+ }, b(e.getPcaText(n)), 9, Sn)
477
+ ]),
478
+ dateSlot: s(({ text: n, column: l }) => [
479
+ R("span", null, b(e.getFormatDate(n, l)), 1)
480
+ ]),
481
+ action: s(({ record: n }) => [
482
+ B(v, {
483
+ actions: e.getActions(n),
484
+ dropDownActions: e.getTreeDropDownActions(n)
485
+ }, null, 8, ["actions", "dropDownActions"])
486
+ ]),
487
+ _: 1
488
+ }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
489
+ B(E, {
490
+ onRegister: e.registerModal,
491
+ id: e.ID,
492
+ cgBIBtnMap: e.cgBIBtnMap,
493
+ buttonSwitch: e.buttonSwitch,
494
+ confirmBtnCfg: e.getFormConfirmButtonCfg,
495
+ onSuccess: e.handlerFormSuccess,
496
+ onFormConfig: e.handleFormConfig
497
+ }, null, 8, ["onRegister", "id", "cgBIBtnMap", "buttonSwitch", "confirmBtnCfg", "onSuccess", "onFormConfig"]),
498
+ B(T, {
499
+ onRegister: e.registerImportModal,
500
+ url: e.importUrl(),
501
+ onOk: e.reload,
502
+ online: ""
503
+ }, null, 8, ["onRegister", "url", "onOk"]),
504
+ B(L, en(e.hrefComponent.model, nn(e.hrefComponent.on)), {
505
+ default: s(() => [
506
+ (a(), d(on(e.hrefComponent.is), tn(ln(e.hrefComponent.params)), null, 16))
507
+ ]),
508
+ _: 1
509
+ }, 16),
510
+ B(A, {
511
+ onRegister: e.registerCustomModal,
512
+ onSuccess: e.reload
513
+ }, null, 8, ["onRegister", "onSuccess"]),
514
+ B(O, {
515
+ id: e.ID,
516
+ onRegister: e.registerDetailModal
517
+ }, null, 8, ["id", "onRegister"])
518
+ ]);
519
+ }
520
+ const Vo = /* @__PURE__ */ fn(hn, [["render", Tn]]);
521
+ export {
522
+ Vo as default
523
+ };