@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
@@ -1,502 +0,0 @@
1
- var B = (e, S, m) => new Promise((i, k) => {
2
- var w = (d) => {
3
- try {
4
- s(m.next(d));
5
- } catch (f) {
6
- k(f);
7
- }
8
- }, g = (d) => {
9
- try {
10
- s(m.throw(d));
11
- } catch (f) {
12
- k(f);
13
- }
14
- }, s = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(w, g);
15
- s((m = m.apply(e, S)).next());
16
- });
17
- import { BasicTable as Je, TableAction as Ke } from "/@/components/Table";
18
- import { useMessage as Pe } from "/@/hooks/web/useMessage";
19
- import qe from "./OnlineAutoModal-971bef13.mjs";
20
- import Ne from "./OnlineDetailModal-2a271e0b.mjs";
21
- import Ve from "./OnlineCustomModal-594244f3.mjs";
22
- import { ref as K, watch as ze, resolveComponent as p, openBlock as l, createElementBlock as h, createVNode as C, createBlock as c, normalizeClass as je, withCtx as a, createTextVNode as T, createCommentVNode as y, Fragment as P, renderList as Ue, toDisplayString as D, withDirectives as We, vShow as Ge, createElementVNode as q, mergeProps as Xe, toHandlers as Ye, resolveDynamicComponent as Ze, normalizeProps as xe, guardReactiveProps as eo } from "vue";
23
- import oo from "/@/components/Form/src/jeecg/components/JImportModal.vue";
24
- import { u as no, a as to } from "./useListButton-7ddb9a46.mjs";
25
- import { u as io, a as lo, g as ro } from "./useExtendComponent-bb7cca20.mjs";
26
- import { defHttp as ao } from "/@/utils/http/axios";
27
- import so from "./OnlineQueryForm-998c12a4.mjs";
28
- import uo from "./SuperQuery-cbfba908.mjs";
29
- import { b as N } from "./constant-fa63bd66.mjs";
30
- import { _ as po } from "./index-173949bb.mjs";
31
- import "/@/components/Modal";
32
- import "./OnlineForm-018981b2.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 "./OnlineForm.vue_vue_type_style_index_0_scoped_0f9f2964_lang-4ed993c7.mjs";
49
- import "/@/components/Form/src/componentMap";
50
- import "/@/utils/propTypes";
51
- import "/@/components/Form/src/jeecg/components/JUpload";
52
- import "/@/views/system/user/user.api";
53
- import "/@/utils/desform/customExpression";
54
- import "/@/store/modules/permission";
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-2660d709.mjs";
61
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
62
- import "/@/api/common/api";
63
- import "/@/assets/images/placeholderImage.png";
64
- import "./OnlineSelectCascade-471fcc76.mjs";
65
- import "./JModalTip-4a83aaed.mjs";
66
- import "ant-design-vue";
67
- import "@vueuse/core";
68
- import "/@/components/jeecg/comment/CommentPanel.vue";
69
- import "./OnlineFormDetail-e036cd11.mjs";
70
- import "./DetailForm-4aa2570b.mjs";
71
- import "/@/utils/dict";
72
- import "/@/utils/dict/index";
73
- import "/@/components/Markdown";
74
- import "./OnlineSubFormDetail-03f8ee5c.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-e9196096.mjs";
84
- import "/@/hooks/web/useDesign";
85
- const mo = {
86
- name: "DefaultOnlineList",
87
- components: {
88
- BasicTable: Je,
89
- TableAction: Ke,
90
- OnlineAutoModal: qe,
91
- JImportModal: oo,
92
- OnlineQueryForm: so,
93
- OnlineSuperQuery: uo,
94
- OnlineCustomModal: Ve,
95
- OnlineDetailModal: Ne
96
- },
97
- setup() {
98
- const { createMessage: e } = Pe(), S = K(), {
99
- ID: m,
100
- onlineTableContext: i,
101
- onlineQueryFormOuter: k,
102
- loading: w,
103
- reload: g,
104
- dataSource: s,
105
- pagination: d,
106
- handleSpecialConfig: f,
107
- getColumnList: E,
108
- handleChangeInTable: v,
109
- loadData: L,
110
- superQueryButtonRef: F,
111
- superQueryStatus: A,
112
- handleSuperQuery: M,
113
- registerCustomModal: o,
114
- getTreeDataByResult: u,
115
- expandedRowKeys: r,
116
- handleExpandedRowsChange: O,
117
- tableReloading: V,
118
- onlineExtConfigJson: _,
119
- handleFormConfig: z
120
- } = no();
121
- if (!m.value)
122
- throw e.warning("地址错误, 配置ID不存在!"), new Error("地址错误, 配置ID不存在!");
123
- i.isTree(!0);
124
- let { initCgEnhanceJs: j } = io(i);
125
- const {
126
- buttonSwitch: U,
127
- cgLinkButtonList: W,
128
- cgTopButtonList: G,
129
- importUrl: X,
130
- registerModal: Y,
131
- handleAdd: Q,
132
- handleEdit: Z,
133
- handleBatchDelete: x,
134
- registerImportModal: ee,
135
- onImportExcel: oe,
136
- onExportExcel: ne,
137
- cgButtonJsHandler: te,
138
- cgButtonActionHandler: ie,
139
- cgButtonLinkHandler: le,
140
- handleSubmitFlow: re,
141
- getDropDownActions: ae,
142
- getActions: se,
143
- initButtonList: ue,
144
- initButtonSwitch: de,
145
- registerDetailModal: pe
146
- } = to(i, _), {
147
- columns: me,
148
- actionColumn: ce,
149
- selectedKeys: ge,
150
- rowSelection: he,
151
- enableScrollBar: fe,
152
- tableScroll: Ce,
153
- downloadRowFile: ye,
154
- getImgView: we,
155
- getPcaText: be,
156
- getFormatDate: Te,
157
- handleColumnResult: Se,
158
- hrefComponent: ke,
159
- viewOnlineCellImage: Fe,
160
- handleClickFieldHref: Re
161
- } = lo(i, _);
162
- ze(
163
- m,
164
- () => {
165
- Ie();
166
- },
167
- { immediate: !0 }
168
- );
169
- function Ie() {
170
- return B(this, null, function* () {
171
- w.value = !0;
172
- let n = yield E(N);
173
- Be(n), yield L(), w.value = !1, i.execButtonEnhance("setup");
174
- });
175
- }
176
- function Be(n) {
177
- let t = j(n.enhanceJs);
178
- i.EnhanceJS = t, ue(n.cgButtonList), de(n.hideColumns), Se(n), f(n), i.hasChildrenField = n.hasChildrenField, i.pidField = n.pidField;
179
- }
180
- function De(n, t) {
181
- i.queryParam = n, t === !0 ? g({ mode: "search" }) : $();
182
- }
183
- function Ee(n) {
184
- return B(this, null, function* () {
185
- yield ro(F), F.value.init(n);
186
- });
187
- }
188
- function ve(n, t) {
189
- let b = r.value;
190
- if (n) {
191
- if (Le(t.id), t.children.length > 0 && t.children[0].isLoading === !0) {
192
- let R = i.hasChildrenField;
193
- const { sortField: _e, sortType: Qe } = i;
194
- let H = Object.assign({}, { column: _e, order: Qe });
195
- H[i.pidField] = t.id, H[R] = t[R];
196
- let $e = `${i.onlineUrl.getTreeData}${i.ID}`;
197
- ao.get({ url: $e, params: H }, { isTransformResponse: !1 }).then((I) => {
198
- I.success ? Number(I.result.total) > 0 ? t.children = u(I.result.records) : (t.children = "", t.hasChildrenField = "0") : e.warning(I.message);
199
- }).catch(() => {
200
- e.warning("加载子节点失败!");
201
- });
202
- }
203
- } else {
204
- let R = b.indexOf(t.id);
205
- R >= 0 && (r.value = b.splice(R, 1));
206
- }
207
- }
208
- function Le(n) {
209
- let t = r.value;
210
- t && t.indexOf(n) < 0 && t.push(n), r.value = t;
211
- }
212
- function $() {
213
- return B(this, null, function* () {
214
- i.isTree() === !0 && (r.value = [], S.value.collapseAll()), g();
215
- });
216
- }
217
- function Ae(n) {
218
- if (J.value === !0) {
219
- let t = n[i.pidField];
220
- if (t) {
221
- let b = r.value;
222
- b.indexOf(t) < 0 && b.push(t), r.value = b;
223
- }
224
- }
225
- g();
226
- }
227
- const Me = (n) => ({
228
- label: "添加下级",
229
- onClick: Oe.bind(null, n)
230
- }), J = K(!1);
231
- function Oe(n) {
232
- J.value = !0;
233
- let t = {
234
- [i.pidField]: n.id
235
- };
236
- Q(t);
237
- }
238
- function He(n) {
239
- let t = ae(n, { themeTemplate: N });
240
- return t.unshift(Me(n)), t;
241
- }
242
- return {
243
- ID: m,
244
- // 查询区域
245
- onlineQueryFormOuter: k,
246
- queryWithCondition: De,
247
- onQueryFormLoaded: Ee,
248
- reload: g,
249
- //高级查询
250
- superQueryButtonRef: F,
251
- superQueryStatus: A,
252
- handleSuperQuery: M,
253
- // table区域
254
- loading: w,
255
- columns: me,
256
- actionColumn: ce,
257
- dataSource: s,
258
- pagination: d,
259
- rowSelection: he,
260
- selectedKeys: ge,
261
- tableScroll: Ce,
262
- enableScrollBar: fe,
263
- handleChangeInTable: v,
264
- //按钮
265
- buttonSwitch: U,
266
- handleAdd: Q,
267
- handleEdit: Z,
268
- onImportExcel: oe,
269
- onExportExcel: ne,
270
- cgTopButtonList: G,
271
- cgLinkButtonList: W,
272
- cgButtonJsHandler: te,
273
- cgButtonActionHandler: ie,
274
- cgButtonLinkHandler: le,
275
- handleBatchDelete: x,
276
- // table-slot
277
- downloadRowFile: ye,
278
- getImgView: we,
279
- getPcaText: be,
280
- getFormatDate: Te,
281
- // 操作列
282
- getActions: se,
283
- getTreeDropDownActions: He,
284
- // 弹窗
285
- registerModal: Y,
286
- registerCustomModal: o,
287
- registerImportModal: ee,
288
- importUrl: X,
289
- handleFormConfig: z,
290
- //其他
291
- tableReloading: V,
292
- handleSubmitFlow: re,
293
- hrefComponent: ke,
294
- viewOnlineCellImage: Fe,
295
- //树特定的配置
296
- onlineTreeTableRef: S,
297
- handlerFormSuccess: Ae,
298
- searchReset: $,
299
- handleExpand: ve,
300
- expandedRowKeys: r,
301
- handleExpandedRowsChange: O,
302
- registerDetailModal: pe,
303
- handleClickFieldHref: Re
304
- };
305
- }
306
- // 1引入了loadsh console.log(that.simpleDateFormat(new Date().getTime(),'yyyy-MM-dd'));
307
- // 2. value的问题
308
- // 3. 变量位置改变后需要 重写api
309
- // 1添加按钮的时候 预留出样式对象 然后js增强中设置样式对象
310
- // 2直接设置css字符串 然后通过js document 往head里面增加css片段 全局生效
311
- // TODO 清空高级查询
312
- // TODO 积木报表打印地址
313
- // const reportPrintUrl = ref('')
314
- };
315
- const co = { class: "p-2" }, go = {
316
- key: 0,
317
- style: { "font-size": "12px", "font-style": "italic" }
318
- }, ho = {
319
- key: 0,
320
- style: { "font-size": "12px", "font-style": "italic" }
321
- }, fo = ["src", "onClick"], Co = ["innerHTML", "onClick"], yo = ["innerHTML"], wo = ["title"];
322
- function bo(e, S, m, i, k, w) {
323
- const g = p("online-query-form"), s = p("a-button"), d = p("online-super-query"), f = p("TableAction"), E = p("BasicTable"), v = p("OnlineAutoModal"), L = p("JImportModal"), F = p("a-modal"), A = p("online-custom-modal"), M = p("online-detail-modal");
324
- return l(), h("div", co, [
325
- C(g, {
326
- ref: "onlineQueryFormOuter",
327
- id: e.ID,
328
- onSearch: e.queryWithCondition,
329
- onLoaded: e.onQueryFormLoaded
330
- }, null, 8, ["id", "onSearch", "onLoaded"]),
331
- e.tableReloading ? y("", !0) : (l(), c(E, {
332
- key: 0,
333
- ref: "onlineTreeTableRef",
334
- isTreeTable: !0,
335
- expandedRowKeys: e.expandedRowKeys,
336
- onExpandedRowsChange: e.handleExpandedRowsChange,
337
- onExpand: e.handleExpand,
338
- rowKey: "jeecg_row_key",
339
- canResize: !0,
340
- bordered: !0,
341
- showIndexColumn: !1,
342
- loading: e.loading,
343
- columns: e.columns,
344
- dataSource: e.dataSource,
345
- pagination: e.pagination,
346
- rowSelection: e.rowSelection,
347
- actionColumn: e.actionColumn,
348
- showTableSetting: !0,
349
- clickToRowSelect: !1,
350
- scroll: e.tableScroll,
351
- onTableRedo: e.reload,
352
- class: je({ "j-table-force-nowrap": e.enableScrollBar }),
353
- onChange: e.handleChangeInTable
354
- }, {
355
- tableTitle: a(() => [
356
- e.buttonSwitch.add ? (l(), c(s, {
357
- key: 0,
358
- preIcon: "ant-design:plus-outlined",
359
- type: "primary",
360
- onClick: e.handleAdd
361
- }, {
362
- default: a(() => [
363
- T("新增")
364
- ]),
365
- _: 1
366
- }, 8, ["onClick"])) : y("", !0),
367
- e.buttonSwitch.export ? (l(), c(s, {
368
- key: 1,
369
- preIcon: "ant-design:export-outlined",
370
- type: "primary",
371
- onClick: e.onExportExcel
372
- }, {
373
- default: a(() => [
374
- T(" 导出")
375
- ]),
376
- _: 1
377
- }, 8, ["onClick"])) : y("", !0),
378
- e.cgTopButtonList && e.cgTopButtonList.length > 0 ? (l(!0), h(P, { key: 2 }, Ue(e.cgTopButtonList, (o, u) => (l(), h(P, null, [
379
- o.optType == "js" ? (l(), c(s, {
380
- key: "cgbtn" + u,
381
- onClick: (r) => e.cgButtonJsHandler(o.buttonCode),
382
- type: "primary",
383
- preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
384
- }, {
385
- default: a(() => [
386
- T(D(o.buttonName), 1)
387
- ]),
388
- _: 2
389
- }, 1032, ["onClick", "preIcon"])) : o.optType == "action" ? (l(), c(s, {
390
- key: "cgbtn" + u,
391
- onClick: (r) => e.cgButtonActionHandler(o.buttonCode),
392
- type: "primary",
393
- preIcon: o.buttonIcon ? "ant-design:" + o.buttonIcon : ""
394
- }, {
395
- default: a(() => [
396
- T(D(o.buttonName), 1)
397
- ]),
398
- _: 2
399
- }, 1032, ["onClick", "preIcon"])) : y("", !0)
400
- ], 64))), 256)) : y("", !0),
401
- e.buttonSwitch.batch_delete ? We((l(), c(s, {
402
- key: 3,
403
- preIcon: "ant-design:delete-outlined",
404
- onClick: e.handleBatchDelete
405
- }, {
406
- default: a(() => [
407
- T(" 批量删除")
408
- ]),
409
- _: 1
410
- }, 8, ["onClick"])), [
411
- [Ge, e.selectedKeys.length > 0]
412
- ]) : y("", !0),
413
- e.buttonSwitch.super_query ? (l(), c(d, {
414
- key: 4,
415
- ref: "superQueryButtonRef",
416
- online: "",
417
- status: e.superQueryStatus,
418
- onSearch: e.handleSuperQuery
419
- }, null, 8, ["status", "onSearch"])) : y("", !0)
420
- ]),
421
- fileSlot: a(({ text: o, record: u, column: r }) => [
422
- o ? (l(), c(s, {
423
- key: 1,
424
- ghost: !0,
425
- type: "primary",
426
- preIcon: "ant-design:download",
427
- size: "small",
428
- onClick: (O) => e.downloadRowFile(o, u, r, e.ID)
429
- }, {
430
- default: a(() => [
431
- T(" 下载 ")
432
- ]),
433
- _: 2
434
- }, 1032, ["onClick"])) : (l(), h("span", go, "无文件"))
435
- ]),
436
- imgSlot: a(({ text: o }) => [
437
- o ? (l(), h("img", {
438
- key: 1,
439
- src: e.getImgView(o),
440
- alt: "图片不存在",
441
- class: "online-cell-image",
442
- onClick: (u) => e.viewOnlineCellImage(o)
443
- }, null, 8, fo)) : (l(), h("span", ho, "无图片"))
444
- ]),
445
- htmlSlot: a(({ text: o, column: u, record: r }) => [
446
- u.fieldHref ? (l(), h("a", {
447
- key: 0,
448
- innerHTML: o,
449
- onClick: (O) => e.handleClickFieldHref(u.fieldHref, r)
450
- }, null, 8, Co)) : (l(), h("div", {
451
- key: 1,
452
- innerHTML: o
453
- }, null, 8, yo))
454
- ]),
455
- pcaSlot: a(({ text: o }) => [
456
- q("div", {
457
- title: e.getPcaText(o)
458
- }, D(e.getPcaText(o)), 9, wo)
459
- ]),
460
- dateSlot: a(({ text: o, column: u }) => [
461
- q("span", null, D(e.getFormatDate(o, u)), 1)
462
- ]),
463
- action: a(({ record: o }) => [
464
- C(f, {
465
- actions: e.getActions(o),
466
- dropDownActions: e.getTreeDropDownActions(o)
467
- }, null, 8, ["actions", "dropDownActions"])
468
- ]),
469
- _: 1
470
- }, 8, ["expandedRowKeys", "onExpandedRowsChange", "onExpand", "loading", "columns", "dataSource", "pagination", "rowSelection", "actionColumn", "scroll", "onTableRedo", "class", "onChange"])),
471
- C(v, {
472
- id: e.ID,
473
- onRegister: e.registerModal,
474
- onSuccess: e.handlerFormSuccess,
475
- onFormConfig: e.handleFormConfig
476
- }, null, 8, ["id", "onRegister", "onSuccess", "onFormConfig"]),
477
- C(L, {
478
- onRegister: e.registerImportModal,
479
- url: e.importUrl(),
480
- onOk: e.reload,
481
- online: ""
482
- }, null, 8, ["onRegister", "url", "onOk"]),
483
- C(F, Xe(e.hrefComponent.model, Ye(e.hrefComponent.on)), {
484
- default: a(() => [
485
- (l(), c(Ze(e.hrefComponent.is), xe(eo(e.hrefComponent.params)), null, 16))
486
- ]),
487
- _: 1
488
- }, 16),
489
- C(A, {
490
- onRegister: e.registerCustomModal,
491
- onSuccess: e.reload
492
- }, null, 8, ["onRegister", "onSuccess"]),
493
- C(M, {
494
- id: e.ID,
495
- onRegister: e.registerDetailModal
496
- }, null, 8, ["id", "onRegister"])
497
- ]);
498
- }
499
- const $n = /* @__PURE__ */ po(mo, [["render", bo]]);
500
- export {
501
- $n as default
502
- };