@jeecg/online 3.5.3-beta2 → 3.5.3-vite4

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 (154) hide show
  1. package/AuthButtonConfig-2f71787c.mjs +125 -0
  2. package/AuthButtonTree-d73bccf5.mjs +156 -0
  3. package/AuthDataConfig-32cf23d2.mjs +212 -0
  4. package/AuthDataTree-03d62d3f.mjs +139 -0
  5. package/AuthFieldConfig-b1217a0c.mjs +139 -0
  6. package/AuthFieldTree-888e04a9.mjs +232 -0
  7. package/AuthManagerDrawer-f127b8a2.mjs +114 -0
  8. package/AuthSetterModal-37da78ed.mjs +261 -0
  9. package/CgformCopyList-3adab58f.mjs +245 -0
  10. package/CgformModal-6938d8c2.mjs +613 -0
  11. package/CgreportModal-77ec8c17.mjs +12 -0
  12. package/CgreportModal.vue_vue_type_script_setup_true_lang-52dcec5e.mjs +567 -0
  13. package/CheckDictTable-414313f2.mjs +211 -0
  14. package/CodeFileListModal-4831ce3d.mjs +158 -0
  15. package/CodeFileViewModal-5990dac4.mjs +244 -0
  16. package/CodeGeneratorModal-7df9e25d.mjs +234 -0
  17. package/CustomButtonList-1c9bd859.mjs +363 -0
  18. package/DBAttributeTable-cd1c41e5.mjs +473 -0
  19. package/DbToOnlineModal-dc5d2030.mjs +160 -0
  20. package/DetailForm-e4538e7a.mjs +446 -0
  21. package/EnhanceJavaModal-7f53d2ca.mjs +260 -0
  22. package/EnhanceJsHistory-c30805ce.mjs +184 -0
  23. package/EnhanceJsModal-0b133341.mjs +233 -0
  24. package/EnhanceSqlModal-33a94c83.mjs +259 -0
  25. package/ExtendConfigModal-60f2cf86.mjs +111 -0
  26. package/FieldExtendJsonModal-48f7d67f.mjs +220 -0
  27. package/FileSelectModal-64aaf623.mjs +91 -0
  28. package/ForeignKeyTable-cb1abd1d.mjs +69 -0
  29. package/IndexTable-4e94cd1f.mjs +89 -0
  30. package/JModalTip-abe1515a.mjs +46 -0
  31. package/JOnlineSearchSelect-5608a5cf.mjs +94 -0
  32. package/LeftDepart-ca7a7375.mjs +82 -0
  33. package/LeftRole-d0fa8398.mjs +86 -0
  34. package/LeftUser-0c88c240.mjs +105 -0
  35. package/LinkTableConfigModal-77d7c0b9.mjs +230 -0
  36. package/LinkTableFieldConfigModal-c5689ab0.mjs +178 -0
  37. package/LinkTableListPiece-34266919.mjs +34 -0
  38. package/ModalFormDemo-0eeea994.mjs +78 -0
  39. package/OnlCgformErpList-7a0388d8.mjs +425 -0
  40. package/OnlCgformErpSubTable-fc6ade76.mjs +388 -0
  41. package/OnlineAutoList-85e6a30d.mjs +472 -0
  42. package/OnlineAutoModal-2a146238.mjs +206 -0
  43. package/OnlineAutoTreeList-f8d0e100.mjs +495 -0
  44. package/OnlineCustomModal-456a85a6.mjs +227 -0
  45. package/OnlineDetailModal-f967f080.mjs +177 -0
  46. package/OnlineForm-630a22c2.mjs +778 -0
  47. package/OnlineFormDetail-1b216792.mjs +296 -0
  48. package/OnlineQueryForm-1c5949a7.mjs +378 -0
  49. package/OnlineSearchFormItem-7c2ea9ed.mjs +352 -0
  50. package/OnlineSelectCascade-c7baf52b.mjs +160 -0
  51. package/OnlineSubFormDetail-0aa4966c.mjs +140 -0
  52. package/PageAttributeTable-811185fd.mjs +404 -0
  53. package/ProcessOnlineForm-27be6f6f.mjs +177 -0
  54. package/QueryTable-4ba771ef.mjs +115 -0
  55. package/SuperQuery-3821f984.mjs +845 -0
  56. package/SuperQueryValComponent-471110b5.mjs +8 -0
  57. package/SuperQueryValComponent.vue_vue_type_script_lang-e3ad7ee8.mjs +101 -0
  58. package/auth.api-d3a6c4b3.mjs +39 -0
  59. package/auth.data-8be5c9e3.mjs +141 -0
  60. package/{cgform.data.js → cgform.data-cbdd88c3.mjs} +93 -62
  61. package/constant-fe20103a.mjs +6 -0
  62. package/enhance.api-138e6826.mjs +104 -0
  63. package/enhance.data-efc7e155.mjs +175 -0
  64. package/index-074b92e5.mjs +236 -0
  65. package/index-6a09a912.mjs +58 -0
  66. package/index-9d32ae88.mjs +313 -0
  67. package/main.index.js +7 -1
  68. package/package.json +1 -1
  69. package/style.css +1 -1
  70. package/useCgformList-2d6a5955.mjs +388 -0
  71. package/useExtendComponent-48d37d9b.mjs +3919 -0
  72. package/useListButton-cef1371a.mjs +656 -0
  73. package/useOnlinePopEvent-e9a042f8.mjs +19 -0
  74. package/useOnlineTest-0df0ae86.mjs +43 -0
  75. package/useSchemas-fc8d97ce.mjs +669 -0
  76. package/useTableSync-dc333087.mjs +83 -0
  77. package/AuthButtonConfig.js +0 -147
  78. package/AuthButtonTree.js +0 -183
  79. package/AuthDataConfig.js +0 -246
  80. package/AuthDataTree.js +0 -160
  81. package/AuthFieldConfig.js +0 -170
  82. package/AuthFieldTree.js +0 -281
  83. package/AuthManagerDrawer.js +0 -125
  84. package/AuthSetterModal.js +0 -316
  85. package/CgformCopyList.js +0 -266
  86. package/CgformModal.js +0 -780
  87. package/CgreportModal.js +0 -667
  88. package/CheckDictTable.js +0 -242
  89. package/CodeFileListModal.js +0 -175
  90. package/CodeFileViewModal.js +0 -325
  91. package/CodeGeneratorModal.js +0 -297
  92. package/CustomButtonList.js +0 -410
  93. package/DBAttributeTable.js +0 -526
  94. package/DbToOnlineModal.js +0 -192
  95. package/DetailForm.js +0 -608
  96. package/EnhanceJavaModal.js +0 -298
  97. package/EnhanceJsHistory.js +0 -229
  98. package/EnhanceJsModal.js +0 -293
  99. package/EnhanceSqlModal.js +0 -299
  100. package/ExtendConfigModal.js +0 -151
  101. package/FieldExtendJsonModal.js +0 -283
  102. package/FileSelectModal.js +0 -102
  103. package/ForeignKeyTable.js +0 -79
  104. package/IndexTable.js +0 -97
  105. package/JModalTip.js +0 -54
  106. package/JOnlineSearchSelect.js +0 -115
  107. package/LICENSE +0 -9
  108. package/LeftDepart.js +0 -96
  109. package/LeftRole.js +0 -98
  110. package/LeftUser.js +0 -117
  111. package/LinkTableConfigModal.js +0 -289
  112. package/LinkTableFieldConfigModal.js +0 -218
  113. package/LinkTableListPiece.js +0 -36
  114. package/ModalFormDemo.js +0 -85
  115. package/OnlineAutoList.js +0 -524
  116. package/OnlineAutoModal.js +0 -226
  117. package/OnlineAutoTreeList.js +0 -553
  118. package/OnlineCustomModal.js +0 -286
  119. package/OnlineDetailModal.js +0 -190
  120. package/OnlineForm.js +0 -1018
  121. package/OnlineFormDetail.js +0 -347
  122. package/OnlineQueryForm.js +0 -484
  123. package/OnlineSearchFormItem.js +0 -436
  124. package/OnlineSelectCascade.js +0 -228
  125. package/OnlineSubFormDetail.js +0 -166
  126. package/PageAttributeTable.js +0 -486
  127. package/ProcessOnlineForm.js +0 -208
  128. package/QueryTable.js +0 -129
  129. package/SuperQuery.js +0 -1021
  130. package/SuperQueryValComponent.js +0 -9
  131. package/SuperQueryValComponent.vue_vue_type_script_lang.js +0 -162
  132. package/_arrayPush.js +0 -278
  133. package/_baseClone.js +0 -471
  134. package/_baseSlice.js +0 -18
  135. package/_commonjsHelpers.js +0 -5
  136. package/_flatRest.js +0 -174
  137. package/auth.api.js +0 -43
  138. package/auth.data.js +0 -142
  139. package/clipboard.js +0 -565
  140. package/enhance.api.js +0 -129
  141. package/enhance.data.js +0 -196
  142. package/index.js +0 -87
  143. package/index2.js +0 -340
  144. package/index3.js +0 -264
  145. package/isArray.js +0 -47
  146. package/omit.js +0 -60
  147. package/pick.js +0 -68
  148. package/toString.js +0 -31
  149. package/useCgformList.js +0 -470
  150. package/useExtendComponent.js +0 -5205
  151. package/useListButton.js +0 -923
  152. package/useOnlineTest.js +0 -44
  153. package/useSchemas.js +0 -653
  154. package/useTableSync.js +0 -117
@@ -1,347 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
- var __async = (__this, __arguments, generator) => {
18
- return new Promise((resolve, reject) => {
19
- var fulfilled = (value) => {
20
- try {
21
- step(generator.next(value));
22
- } catch (e) {
23
- reject(e);
24
- }
25
- };
26
- var rejected = (value) => {
27
- try {
28
- step(generator.throw(value));
29
- } catch (e) {
30
- reject(e);
31
- }
32
- };
33
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
34
- step((generator = generator.apply(__this, __arguments)).next());
35
- });
36
- };
37
- import { useMessage } from "/@/hooks/web/useMessage";
38
- import { ref, reactive, resolveComponent, openBlock, createElementBlock, createVNode, createCommentVNode, createBlock, withCtx, Fragment, renderList, normalizeStyle, renderSlot } from "vue";
39
- import { Loading } from "/@/components/Loading";
40
- import { getToken } from "/@/utils/auth";
41
- import { goJmReportViewPage } from "/@/utils";
42
- import { PrinterOutlined } from "@ant-design/icons-vue";
43
- import DetailForm from "./DetailForm.js";
44
- import OnlineSubFormDetail from "./OnlineSubFormDetail.js";
45
- import { h as getDetailFormSchemas } from "./useExtendComponent.js";
46
- import { defHttp } from "/@/utils/http/axios";
47
- import { _ as _export_sfc } from "./index.js";
48
- import "/@/utils/propTypes";
49
- import "/@/utils/dict";
50
- import "/@/utils/dict/JDictSelectUtil";
51
- import "/@/utils/dict/index";
52
- import "/@/api/common/api";
53
- import "/@/components/Form/src/utils/Area";
54
- import "/@/utils/common/compUtils";
55
- import "/@/components/Preview/index";
56
- import "/@/components/Form/index";
57
- import "/@/components/Form/src/componentMap";
58
- import "/@/components/Modal";
59
- import "/@/components/Form/src/jeecg/components/JUpload";
60
- import "/@/views/system/user/user.api";
61
- import "./_commonjsHelpers.js";
62
- import "/@/store/modules/user";
63
- import "/@/utils/desform/customExpression";
64
- import "/@/store/modules/permission";
65
- import "./pick.js";
66
- import "./_flatRest.js";
67
- import "./isArray.js";
68
- import "./toString.js";
69
- import "./_arrayPush.js";
70
- import "/@/components/Table";
71
- import "/@/hooks/system/useListPage";
72
- import "vue-router";
73
- import "./LinkTableListPiece.js";
74
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
75
- import "./OnlineSelectCascade.js";
76
- import "./JModalTip.js";
77
- import "ant-design-vue";
78
- import "@vueuse/core";
79
- const _sfc_main = {
80
- name: "OnlineFormDetail",
81
- components: {
82
- DetailForm,
83
- Loading,
84
- PrinterOutlined,
85
- OnlineSubFormDetail
86
- },
87
- props: {
88
- id: {
89
- type: String,
90
- default: ""
91
- },
92
- formTemplate: {
93
- type: Number,
94
- default: 1
95
- },
96
- disabled: {
97
- type: Boolean,
98
- default: false
99
- },
100
- isTree: {
101
- type: Boolean,
102
- default: false
103
- },
104
- pidField: {
105
- type: String,
106
- default: ""
107
- },
108
- submitTip: {
109
- type: Boolean,
110
- default: true
111
- },
112
- showSub: {
113
- type: Boolean,
114
- default: true
115
- }
116
- },
117
- emits: ["success", "rendered"],
118
- setup(props, { emit }) {
119
- console.log("onlineForm-setup\u300B\u300B");
120
- const { createMessage: $message } = useMessage();
121
- const tableName = ref("");
122
- const single = ref(true);
123
- const loading = ref(false);
124
- const tableType = ref(1);
125
- const formData = ref({});
126
- const subFormHeight = ref(300);
127
- const subTableHeight = ref(340);
128
- const onlineExtConfigJson = reactive({
129
- reportPrintShow: 0,
130
- reportPrintUrl: "",
131
- joinQuery: 0,
132
- modelFullscreen: 0,
133
- modalMinWidth: ""
134
- });
135
- const { detailFormSchemas, hasSubTable, subTabInfo, refMap, showStatus, subDataSource, createFormSchemas, formSpan } = getDetailFormSchemas(props);
136
- function handleExtConfigJson(jsonStr) {
137
- let extConfigJson = { reportPrintShow: 0, reportPrintUrl: "", joinQuery: 0, modelFullscreen: 1, modalMinWidth: "" };
138
- if (jsonStr) {
139
- extConfigJson = JSON.parse(jsonStr);
140
- }
141
- Object.keys(extConfigJson).map((k) => {
142
- onlineExtConfigJson[k] = extConfigJson[k];
143
- });
144
- }
145
- function createRootProperties(data) {
146
- return __async(this, null, function* () {
147
- tableType.value = data.head.tableType;
148
- tableName.value = data.head.tableName;
149
- single.value = data.head.tableType == 1;
150
- handleExtConfigJson(data.head.extConfigJson);
151
- createFormSchemas(data.schema.properties);
152
- emit("rendered", onlineExtConfigJson);
153
- });
154
- }
155
- function show(_status, record) {
156
- return __async(this, null, function* () {
157
- console.log("\u8FDB\u5165\u8868\u5355\u8BE6\u60C5\u300B\u300Bform", record);
158
- yield edit(record);
159
- changeShowStatus(true);
160
- });
161
- }
162
- function getFormData(dataId) {
163
- let url = `/online/cgform/api/detail/${props.id}/${dataId}`;
164
- return new Promise((resolve, reject) => {
165
- defHttp.get({ url }, { isTransformResponse: false }).then((res) => {
166
- if (res.success) {
167
- resolve(res.result);
168
- } else {
169
- reject();
170
- $message.warning(res.message);
171
- }
172
- }).catch(() => {
173
- reject();
174
- });
175
- });
176
- }
177
- function changeShowStatus(flag) {
178
- Object.keys(showStatus).map((k) => {
179
- showStatus[k] = flag;
180
- });
181
- }
182
- function onTabChange() {
183
- changeShowStatus(false);
184
- setTimeout(() => {
185
- changeShowStatus(true);
186
- }, 300);
187
- }
188
- function edit(record) {
189
- return __async(this, null, function* () {
190
- let temp = yield getFormData(record.id);
191
- formData.value = __spreadValues({}, temp);
192
- editSubVxeTableData(temp);
193
- });
194
- }
195
- function editSubVxeTableData(record) {
196
- if (!record) {
197
- record = {};
198
- }
199
- let keys = Object.keys(subDataSource.value);
200
- if (keys && keys.length > 0) {
201
- let obj = {};
202
- for (let key of keys) {
203
- obj[key] = record[key] || [];
204
- }
205
- subDataSource.value = obj;
206
- }
207
- }
208
- function getSubTableAuthPre(table) {
209
- return "online_" + table + ":";
210
- }
211
- function onOpenReportPrint() {
212
- let url = onlineExtConfigJson.reportPrintUrl;
213
- let temp = formData.value;
214
- if (temp) {
215
- let id = temp.id;
216
- let token = getToken();
217
- goJmReportViewPage(url, id, token);
218
- }
219
- }
220
- function getSubTableForeignKeyValue(key) {
221
- let temp = formData.value;
222
- console.log("getValueIgnoreCase(temp, key)", temp, key, getValueIgnoreCase(temp, key));
223
- return getValueIgnoreCase(temp, key);
224
- }
225
- function getValueIgnoreCase(data, key) {
226
- if (data) {
227
- let temp = data[key];
228
- if (!temp && temp !== 0) {
229
- temp = data[key.toLowerCase()];
230
- if (!temp && temp !== 0) {
231
- temp = data[key.toUpperCase()];
232
- }
233
- }
234
- return temp;
235
- }
236
- return "";
237
- }
238
- return {
239
- detailFormSchemas,
240
- formData,
241
- formSpan,
242
- tableName,
243
- loading,
244
- hasSubTable,
245
- subTabInfo,
246
- subFormHeight,
247
- subTableHeight,
248
- refMap,
249
- onTabChange,
250
- subDataSource,
251
- getSubTableAuthPre,
252
- show,
253
- createRootProperties,
254
- onOpenReportPrint,
255
- onlineExtConfigJson,
256
- getSubTableForeignKeyValue,
257
- showStatus
258
- };
259
- }
260
- };
261
- const _hoisted_1 = ["id"];
262
- const _hoisted_2 = {
263
- key: 0,
264
- style: { "text-align": "right", "position": "absolute", "top": "15px", "right": "20px", "z-index": "999" }
265
- };
266
- const _hoisted_3 = { key: 1 };
267
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
268
- const _component_PrinterOutlined = resolveComponent("PrinterOutlined");
269
- const _component_detail_form = resolveComponent("detail-form");
270
- const _component_online_sub_form_detail = resolveComponent("online-sub-form-detail");
271
- const _component_JVxeTable = resolveComponent("JVxeTable");
272
- const _component_a_spin = resolveComponent("a-spin");
273
- const _component_a_tab_pane = resolveComponent("a-tab-pane");
274
- const _component_a_tabs = resolveComponent("a-tabs");
275
- const _component_Loading = resolveComponent("Loading");
276
- return openBlock(), createElementBlock("div", {
277
- id: $setup.tableName + "_form"
278
- }, [
279
- !!$setup.formData.id && !!$setup.onlineExtConfigJson.reportPrintShow ? (openBlock(), createElementBlock("div", _hoisted_2, [
280
- createVNode(_component_PrinterOutlined, {
281
- title: "\u6253\u5370",
282
- onClick: $setup.onOpenReportPrint,
283
- style: { "font-size": "16px" }
284
- }, null, 8, ["onClick"])
285
- ])) : createCommentVNode("", true),
286
- createVNode(_component_detail_form, {
287
- schemas: $setup.detailFormSchemas,
288
- data: $setup.formData,
289
- span: $setup.formSpan
290
- }, null, 8, ["schemas", "data", "span"]),
291
- $setup.hasSubTable && $props.showSub ? (openBlock(), createBlock(_component_a_tabs, {
292
- key: 1,
293
- onChange: $setup.onTabChange
294
- }, {
295
- default: withCtx(() => [
296
- (openBlock(true), createElementBlock(Fragment, null, renderList($setup.subTabInfo, (sub, index) => {
297
- return openBlock(), createBlock(_component_a_tab_pane, {
298
- tab: sub.describe,
299
- key: index + "",
300
- forceRender: true
301
- }, {
302
- default: withCtx(() => [
303
- sub.relationType == 1 ? (openBlock(), createElementBlock("div", {
304
- key: 0,
305
- style: normalizeStyle({ "overflow-y": "auto", "overflow-x": "hidden", "max-height": $setup.subFormHeight + "px" })
306
- }, [
307
- createVNode(_component_online_sub_form_detail, {
308
- table: sub.key,
309
- "form-template": $props.formTemplate,
310
- "main-id": $setup.getSubTableForeignKeyValue(sub.foreignKey),
311
- properties: sub.properties
312
- }, null, 8, ["table", "form-template", "main-id", "properties"])
313
- ], 4)) : (openBlock(), createElementBlock("div", _hoisted_3, [
314
- $setup.showStatus[sub.key] ? (openBlock(), createBlock(_component_JVxeTable, {
315
- key: 0,
316
- ref_for: true,
317
- ref: $setup.refMap[sub.key],
318
- toolbar: "",
319
- "keep-source": "",
320
- "row-number": "",
321
- "row-selection": "",
322
- height: $setup.subTableHeight,
323
- disabled: true,
324
- columns: sub.columns,
325
- dataSource: $setup.subDataSource[sub.key],
326
- authPre: $setup.getSubTableAuthPre(sub.key)
327
- }, null, 8, ["height", "columns", "dataSource", "authPre"])) : (openBlock(), createBlock(_component_a_spin, {
328
- key: 1,
329
- spinning: true
330
- }))
331
- ]))
332
- ]),
333
- _: 2
334
- }, 1032, ["tab"]);
335
- }), 128))
336
- ]),
337
- _: 1
338
- }, 8, ["onChange"])) : createCommentVNode("", true),
339
- createVNode(_component_Loading, {
340
- loading: $setup.loading,
341
- absolute: false
342
- }, null, 8, ["loading"]),
343
- renderSlot(_ctx.$slots, "bottom")
344
- ], 8, _hoisted_1);
345
- }
346
- var OnlineFormDetail = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
347
- export { OnlineFormDetail as default };