@jeecg/online 1.0.1 → 3.4.3-GA

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 (93) hide show
  1. package/AuthButtonConfig.js +14 -7
  2. package/AuthButtonTree.js +3 -5
  3. package/AuthDataConfig.js +9 -6
  4. package/AuthDataTree.js +3 -5
  5. package/AuthFieldConfig.js +15 -12
  6. package/AuthFieldTree.js +24 -18
  7. package/AuthManagerDrawer.js +1 -1
  8. package/AuthSetterModal.js +1 -0
  9. package/CgformCopyList.js +34 -22
  10. package/CgformModal.js +57 -50
  11. package/CgreportModal.js +32 -39
  12. package/CheckDictTable.js +144 -24
  13. package/CodeFileListModal.js +175 -0
  14. package/CodeFileViewModal.js +325 -0
  15. package/CodeGeneratorModal.js +41 -38
  16. package/CustomButtonList.js +19 -22
  17. package/DBAttributeTable.js +248 -12
  18. package/DbToOnlineModal.js +27 -25
  19. package/DetailForm.js +609 -0
  20. package/EnhanceJavaModal.js +11 -17
  21. package/EnhanceJsHistory.js +6 -8
  22. package/EnhanceJsModal.js +16 -16
  23. package/EnhanceSqlModal.js +11 -17
  24. package/ExtendConfigModal.js +24 -15
  25. package/ForeignKeyTable.js +4 -3
  26. package/FormSchemaFactory.js +163 -30
  27. package/IndexTable.js +6 -5
  28. package/JModalTip.js +54 -0
  29. package/JOnlineSearchSelect.js +18 -10
  30. package/LeftDepart.js +1 -1
  31. package/LeftRole.js +7 -4
  32. package/LeftUser.js +7 -4
  33. package/LinkTableConfigModal.js +289 -0
  34. package/LinkTableFieldConfigModal.js +218 -0
  35. package/LinkTableListPiece.js +36 -0
  36. package/ModalFormDemo.js +3 -2
  37. package/OnlineAutoList.js +154 -55
  38. package/OnlineAutoModal.js +92 -131
  39. package/OnlineAutoTreeList.js +93 -53
  40. package/OnlineCustomModal.js +30 -14
  41. package/OnlineDetailModal.js +184 -0
  42. package/OnlineForm.js +274 -141
  43. package/OnlineFormDetail.js +326 -0
  44. package/OnlineQueryForm.js +72 -40
  45. package/OnlineSearchFormItem.js +26 -18
  46. package/OnlineSelectCascade.js +37 -26
  47. package/OnlineSubFormDetail.js +167 -0
  48. package/OnlineSuperQuery.js +70 -75
  49. package/OnlineSuperQueryValComponent.js +1 -0
  50. package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
  51. package/PageAttributeTable.js +233 -30
  52. package/ProcessOnlineForm.js +41 -16
  53. package/QueryTable.js +4 -3
  54. package/README.md +3 -8
  55. package/_arrayPush.js +5 -3
  56. package/{cloneDeep.js → _baseClone.js} +5 -9
  57. package/_baseSlice.js +18 -0
  58. package/_commonjsHelpers.js +5 -0
  59. package/_flatRest.js +174 -0
  60. package/auth.data.js +1 -3
  61. package/cgform.data.js +18 -9
  62. package/enhance.api.js +27 -18
  63. package/index.js +27 -8
  64. package/index2.js +48 -45
  65. package/index3.js +29 -26
  66. package/isArray.js +1 -1
  67. package/main.index.js +2 -2
  68. package/omit.js +60 -0
  69. package/package.json +1 -1
  70. package/pick.js +3 -173
  71. package/style.css +1 -1
  72. package/toString.js +2 -2
  73. package/useAutoForm.js +3457 -3791
  74. package/useCgformList.js +44 -31
  75. package/{useTableColumns.js → useListButton.js} +218 -409
  76. package/useOnlineTest.js +5 -26827
  77. package/useSchemas.js +382 -234
  78. package/useTableSync.js +19 -7
  79. package/ChartAutoRender.js +0 -69
  80. package/ChartDoubleRender.js +0 -154
  81. package/ChartSingleRender.js +0 -132
  82. package/ChartTabsRender.js +0 -218
  83. package/ErrorTip.js +0 -21
  84. package/FieldTable.js +0 -185
  85. package/GraphreportAutoChart.js +0 -352
  86. package/GraphreportList.js +0 -239
  87. package/GraphreportModal.js +0 -559
  88. package/LICENSE +0 -7
  89. package/OnlineSubForm.js +0 -200
  90. package/ParamsTable.js +0 -71
  91. package/graphreport.api.js +0 -23
  92. package/useChartRender.js +0 -405
  93. package/useMessageOnline.js +0 -71
@@ -1,239 +0,0 @@
1
- var __async = (__this, __arguments, generator) => {
2
- return new Promise((resolve, reject) => {
3
- var fulfilled = (value) => {
4
- try {
5
- step(generator.next(value));
6
- } catch (e) {
7
- reject(e);
8
- }
9
- };
10
- var rejected = (value) => {
11
- try {
12
- step(generator.throw(value));
13
- } catch (e) {
14
- reject(e);
15
- }
16
- };
17
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
18
- step((generator = generator.apply(__this, __arguments)).next());
19
- });
20
- };
21
- import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode, ref, h } from "vue";
22
- import { router } from "/@/router";
23
- import { useListPage } from "/@/hooks/system/useListPage";
24
- import { l as list, A as Api, d as doBatchDelete, q as queryParamsList } from "./graphreport.api.js";
25
- import { BasicTable, TableAction } from "/@/components/Table";
26
- import ExcelButton from "/@/components/jeecg/ExcelButton.vue";
27
- import { useModal } from "/@/components/Modal";
28
- import { useCopyModal } from "/@/hooks/web/useCopyModal";
29
- import GraphreportModal from "./GraphreportModal.js";
30
- import { _ as _export_sfc } from "./index.js";
31
- import "/@/utils/http/axios";
32
- import "/@/components/Form/index";
33
- import "/@/hooks/web/useMessage";
34
- import "/@/views/system/user/user.api";
35
- import "/@/utils/common/compUtils";
36
- import "/@/store/modules/permission";
37
- import "./FieldTable.js";
38
- import "/@/components/jeecg/JVxeTable/types";
39
- import "./useMessageOnline.js";
40
- import "ant-design-vue";
41
- import "@ant-design/icons-vue";
42
- import "/@/utils/is";
43
- import "./ParamsTable.js";
44
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
45
- import "vue-router";
46
- const _sfc_main = defineComponent({
47
- name: "GraphreportList",
48
- components: { ExcelButton, BasicTable, TableAction, GraphreportModal },
49
- setup() {
50
- const { prefixCls, doRequest, doDeleteRecord, tableContext } = useListPage({
51
- designScope: "online-graphreport-list",
52
- tableProps: {
53
- api: list,
54
- columns: [
55
- { title: "\u56FE\u8868\u540D\u79F0", dataIndex: "name" },
56
- { title: "\u7F16\u7801", dataIndex: "code" },
57
- { title: "\u6570\u636E", dataIndex: "cgrSql" },
58
- { title: "Y\u8F74\u6587\u5B57", dataIndex: "yaxisText" },
59
- { title: "X\u8F74\u5B57\u6BB5", dataIndex: "xaxisField" }
60
- ],
61
- formConfig: {
62
- labelWidth: 200,
63
- schemas: [
64
- { label: "\u56FE\u8868\u540D\u79F0", field: "name", component: "JInput" },
65
- { label: "\u7F16\u7801", field: "code", component: "JInput" }
66
- ]
67
- }
68
- }
69
- });
70
- const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
71
- const excelConfig = {
72
- export: {
73
- name: "Online\u56FE\u8868",
74
- url: Api.exportXls
75
- },
76
- import: {
77
- url: Api.importXls,
78
- success: reload
79
- }
80
- };
81
- const [registerFormModal, formModal] = useModal();
82
- function onAdd() {
83
- formModal.openModal(true, { isUpdate: false });
84
- }
85
- function onEdit(record) {
86
- formModal.openModal(true, { isUpdate: true, record });
87
- }
88
- function onBatchDelete() {
89
- return __async(this, null, function* () {
90
- doRequest(() => doBatchDelete(selectedRowKeys.value));
91
- });
92
- }
93
- function onGoToTest(record) {
94
- router.push("/online/graphreport/chart/" + record.id);
95
- }
96
- const { createCopyModal } = useCopyModal();
97
- function onShowOnlineUrl(record) {
98
- return __async(this, null, function* () {
99
- let baseUrl = `/online/graphreport/chart/${record.id}`;
100
- let copyText = ref(baseUrl);
101
- createCopyModal({
102
- title: `\u914D\u7F6E\u5730\u5740\u3010${record.name}\u3011`,
103
- content: () => h("div", {}, copyText.value),
104
- copyText
105
- });
106
- let result = yield queryParamsList(record.id);
107
- if (result && result.length > 0) {
108
- let str = "?";
109
- result.forEach((item) => {
110
- str += item.paramName + "=${" + item.paramName + "}&";
111
- });
112
- str = str.substring(0, str.length - 1);
113
- copyText.value = `${baseUrl}${str}`;
114
- }
115
- });
116
- }
117
- function getTableAction(record) {
118
- return [
119
- {
120
- label: "\u7F16\u8F91",
121
- onClick: () => onEdit(record)
122
- }
123
- ];
124
- }
125
- function getDropDownAction(record) {
126
- return [
127
- {
128
- label: "\u529F\u80FD\u6D4B\u8BD5",
129
- onClick: () => onGoToTest(record)
130
- },
131
- {
132
- label: "\u914D\u7F6E\u5730\u5740",
133
- onClick: () => onShowOnlineUrl(record)
134
- },
135
- {
136
- label: "\u5220\u9664",
137
- popConfirm: {
138
- title: "\u786E\u5B9A\u5220\u9664\u5417\uFF1F",
139
- placement: "left",
140
- confirm: () => doDeleteRecord(() => doBatchDelete([record.id]))
141
- }
142
- }
143
- ];
144
- }
145
- return {
146
- reload,
147
- prefixCls,
148
- rowSelection,
149
- selectedRowKeys,
150
- onAdd,
151
- getTableAction,
152
- getDropDownAction,
153
- onBatchDelete,
154
- registerTable,
155
- registerFormModal,
156
- excelConfig
157
- };
158
- }
159
- });
160
- const _hoisted_1 = /* @__PURE__ */ createTextVNode("\u65B0\u589E");
161
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, "\u5220\u9664", -1);
162
- const _hoisted_3 = /* @__PURE__ */ createElementVNode("span", null, "\u6279\u91CF\u64CD\u4F5C", -1);
163
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
164
- const _component_a_button = resolveComponent("a-button");
165
- const _component_ExcelButton = resolveComponent("ExcelButton");
166
- const _component_a_icon = resolveComponent("a-icon");
167
- const _component_a_menu_item = resolveComponent("a-menu-item");
168
- const _component_a_menu = resolveComponent("a-menu");
169
- const _component_a_dropdown = resolveComponent("a-dropdown");
170
- const _component_TableAction = resolveComponent("TableAction");
171
- const _component_BasicTable = resolveComponent("BasicTable");
172
- const _component_GraphreportModal = resolveComponent("GraphreportModal");
173
- return openBlock(), createElementBlock(Fragment, null, [
174
- createElementVNode("div", {
175
- class: normalizeClass(_ctx.prefixCls)
176
- }, [
177
- createVNode(_component_BasicTable, {
178
- onRegister: _ctx.registerTable,
179
- rowSelection: _ctx.rowSelection
180
- }, {
181
- tableTitle: withCtx(() => [
182
- createVNode(_component_a_button, {
183
- onClick: _ctx.onAdd,
184
- type: "primary",
185
- preIcon: "ant-design:plus"
186
- }, {
187
- default: withCtx(() => [
188
- _hoisted_1
189
- ]),
190
- _: 1
191
- }, 8, ["onClick"]),
192
- createVNode(_component_ExcelButton, { config: _ctx.excelConfig }, null, 8, ["config"]),
193
- _ctx.selectedRowKeys.length > 0 ? (openBlock(), createBlock(_component_a_dropdown, { key: 0 }, {
194
- overlay: withCtx(() => [
195
- createVNode(_component_a_menu, null, {
196
- default: withCtx(() => [
197
- createVNode(_component_a_menu_item, {
198
- key: "1",
199
- onClick: _ctx.onBatchDelete
200
- }, {
201
- default: withCtx(() => [
202
- createVNode(_component_a_icon, { type: "delete" }),
203
- _hoisted_2
204
- ]),
205
- _: 1
206
- }, 8, ["onClick"])
207
- ]),
208
- _: 1
209
- })
210
- ]),
211
- default: withCtx(() => [
212
- createVNode(_component_a_button, null, {
213
- default: withCtx(() => [
214
- _hoisted_3,
215
- createVNode(_component_a_icon, { type: "down" })
216
- ]),
217
- _: 1
218
- })
219
- ]),
220
- _: 1
221
- })) : createCommentVNode("", true)
222
- ]),
223
- action: withCtx(({ record }) => [
224
- createVNode(_component_TableAction, {
225
- actions: _ctx.getTableAction(record),
226
- dropDownActions: _ctx.getDropDownAction(record)
227
- }, null, 8, ["actions", "dropDownActions"])
228
- ]),
229
- _: 1
230
- }, 8, ["onRegister", "rowSelection"])
231
- ], 2),
232
- createVNode(_component_GraphreportModal, {
233
- onRegister: _ctx.registerFormModal,
234
- onSuccess: _ctx.reload
235
- }, null, 8, ["onRegister", "onSuccess"])
236
- ], 64);
237
- }
238
- var GraphreportList = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
239
- export { GraphreportList as default };