@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
package/FieldTable.js DELETED
@@ -1,185 +0,0 @@
1
- import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode } from "vue";
2
- import { JVxeTypes } from "/@/components/jeecg/JVxeTable/types";
3
- import { useMessageOnline } from "./useMessageOnline.js";
4
- import { _ as _export_sfc } from "./index.js";
5
- import "ant-design-vue";
6
- import "@ant-design/icons-vue";
7
- import "/@/utils/is";
8
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
9
- import "/@/hooks/web/useMessage";
10
- import "vue-router";
11
- const _sfc_main = defineComponent({
12
- name: "ParamsTable",
13
- props: {
14
- loading: Boolean,
15
- dataSource: Array
16
- },
17
- setup() {
18
- const tableRef = ref();
19
- const columns = ref([
20
- {
21
- title: "\u5B57\u6BB5\u540D",
22
- key: "fieldName",
23
- width: 180,
24
- type: JVxeTypes.input,
25
- defaultValue: "",
26
- validateRules: [{ required: true, message: "${title}\u4E0D\u80FD\u4E3A\u7A7A" }],
27
- placeholder: "\u8BF7\u8F93\u5165${title}"
28
- },
29
- {
30
- title: "\u5B57\u6BB5\u6587\u672C",
31
- key: "fieldTxt",
32
- width: 180,
33
- type: JVxeTypes.input,
34
- defaultValue: "",
35
- placeholder: "\u8BF7\u8F93\u5165${title}"
36
- },
37
- {
38
- title: "\u5B57\u6BB5\u7C7B\u578B",
39
- key: "fieldType",
40
- width: 200,
41
- type: JVxeTypes.select,
42
- options: [
43
- { title: "\u6570\u503C\u7C7B\u578B", value: "Integer" },
44
- { title: "\u65E5\u671F\u7C7B\u578B", value: "Date" },
45
- { title: "\u5B57\u7B26\u7C7B\u578B", value: "String" },
46
- { title: "\u957F\u6574\u578B", value: "Long" }
47
- ],
48
- defaultValue: "",
49
- placeholder: "\u8BF7\u9009\u62E9${title}"
50
- },
51
- {
52
- title: "\u8BA1\u7B97\u603B\u8BA1",
53
- key: "isTotal",
54
- width: 80,
55
- type: JVxeTypes.checkbox,
56
- defaultChecked: false,
57
- customValue: ["Y", "N"]
58
- },
59
- {
60
- title: "\u662F\u5426\u67E5\u8BE2",
61
- key: "searchFlag",
62
- width: 80,
63
- type: JVxeTypes.checkbox,
64
- defaultChecked: false,
65
- customValue: ["Y", "N"]
66
- },
67
- {
68
- title: "\u67E5\u8BE2\u6A21\u5F0F",
69
- key: "searchMode",
70
- width: 180,
71
- type: JVxeTypes.select,
72
- options: [
73
- { title: "\u5355\u6761\u4EF6\u67E5\u8BE2", value: "single" },
74
- { title: "\u8303\u56F4\u67E5\u8BE2", value: "group" }
75
- ],
76
- defaultValue: "",
77
- placeholder: "\u8BF7\u9009\u62E9${title}"
78
- },
79
- {
80
- title: "\u5B57\u5178Code",
81
- key: "dictCode",
82
- width: 200,
83
- type: JVxeTypes.input,
84
- defaultValue: "",
85
- placeholder: "\u8BF7\u9009\u62E9${title}"
86
- },
87
- {
88
- title: "\u662F\u5426\u663E\u793A",
89
- key: "isShow",
90
- type: JVxeTypes.checkbox,
91
- defaultChecked: true,
92
- customValue: ["Y", "N"]
93
- }
94
- ]);
95
- const { createConfirm: $confirm } = useMessageOnline();
96
- function fieldNameConvertCase(convertCase, name) {
97
- $confirm({
98
- iconType: "info",
99
- title: "\u8F6C\u6362\u5B57\u6BB5\u540D",
100
- content: `\u786E\u5B9A\u8981\u5C06\u6240\u6709\u7684\u5B57\u6BB5\u540D\u90FD\u8F6C\u6362\u4E3A${name}\u5417\uFF1F`,
101
- onOk() {
102
- let fn = `to${convertCase}Case`;
103
- let values = tableRef.value.getTableData();
104
- let newValues = values.map((item) => {
105
- return {
106
- rowKey: item.id,
107
- values: {
108
- fieldName: item["fieldName"][fn]()
109
- }
110
- };
111
- });
112
- tableRef.value.setValues(newValues);
113
- }
114
- });
115
- }
116
- return { tableRef, columns, fieldNameConvertCase };
117
- }
118
- });
119
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, "\u8F6C\u6362\u4E3A\u5927\u5199", -1);
120
- const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, "\u8F6C\u6362\u4E3A\u5C0F\u5199", -1);
121
- const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u8F6C\u6362\u5B57\u6BB5\u540D");
122
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
123
- const _component_a_icon = resolveComponent("a-icon");
124
- const _component_a_menu_item = resolveComponent("a-menu-item");
125
- const _component_a_menu = resolveComponent("a-menu");
126
- const _component_a_button = resolveComponent("a-button");
127
- const _component_a_dropdown = resolveComponent("a-dropdown");
128
- const _component_JVxeTable = resolveComponent("JVxeTable");
129
- return openBlock(), createBlock(_component_JVxeTable, {
130
- ref: "tableRef",
131
- toolbar: "",
132
- rowNumber: "",
133
- rowSelection: "",
134
- dragSort: "",
135
- sortKey: "orderNum",
136
- loading: _ctx.loading,
137
- columns: _ctx.columns,
138
- dataSource: _ctx.dataSource,
139
- height: 398
140
- }, {
141
- toolbarSuffix: withCtx(() => [
142
- createVNode(_component_a_dropdown, null, {
143
- overlay: withCtx(() => [
144
- createVNode(_component_a_menu, null, {
145
- default: withCtx(() => [
146
- createVNode(_component_a_menu_item, {
147
- key: "1",
148
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.fieldNameConvertCase("Upper", "\u5927\u5199"))
149
- }, {
150
- default: withCtx(() => [
151
- createVNode(_component_a_icon, { type: "sort-descending" }),
152
- _hoisted_1
153
- ]),
154
- _: 1
155
- }),
156
- createVNode(_component_a_menu_item, {
157
- key: "2",
158
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.fieldNameConvertCase("Lower", "\u5C0F\u5199"))
159
- }, {
160
- default: withCtx(() => [
161
- createVNode(_component_a_icon, { type: "sort-ascending" }),
162
- _hoisted_2
163
- ]),
164
- _: 1
165
- })
166
- ]),
167
- _: 1
168
- })
169
- ]),
170
- default: withCtx(() => [
171
- createVNode(_component_a_button, { preIcon: "ant-design:down" }, {
172
- default: withCtx(() => [
173
- _hoisted_3
174
- ]),
175
- _: 1
176
- })
177
- ]),
178
- _: 1
179
- })
180
- ]),
181
- _: 1
182
- }, 8, ["loading", "columns", "dataSource"]);
183
- }
184
- var FieldTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
185
- export { FieldTable as default };
@@ -1,352 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __async = (__this, __arguments, generator) => {
21
- return new Promise((resolve, reject) => {
22
- var fulfilled = (value) => {
23
- try {
24
- step(generator.next(value));
25
- } catch (e) {
26
- reject(e);
27
- }
28
- };
29
- var rejected = (value) => {
30
- try {
31
- step(generator.throw(value));
32
- } catch (e) {
33
- reject(e);
34
- }
35
- };
36
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37
- step((generator = generator.apply(__this, __arguments)).next());
38
- });
39
- };
40
- import { h, nextTick, defineComponent, provide, ref, computed, reactive, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createBlock, Fragment, createCommentVNode } from "vue";
41
- import { router } from "/@/router";
42
- import ErrorTip from "./ErrorTip.js";
43
- import ChartAutoRender from "./ChartAutoRender.js";
44
- import { BasicForm, useForm } from "/@/components/Form";
45
- import { g as getParamsInfo, a as getChartsData } from "./graphreport.api.js";
46
- import { DatePicker, Input, InputNumber } from "ant-design-vue";
47
- import { isArray } from "/@/utils/is";
48
- import { formatToDate } from "/@/utils/dateUtil";
49
- import { _ as _export_sfc } from "./index.js";
50
- import "./ChartTabsRender.js";
51
- import "./useChartRender.js";
52
- import "/@/utils/propTypes";
53
- import "/@/hooks/web/usePrintJS";
54
- import "/@/utils/file/download";
55
- import "/@/utils/dict/JDictSelectUtil";
56
- import "/@/components/chart/Bar.vue";
57
- import "/@/components/chart/Pie.vue";
58
- import "/@/components/chart/BarMulti.vue";
59
- import "/@/components/chart/LineMulti.vue";
60
- import "/@/utils/http/axios";
61
- import "/@/hooks/web/useMessage";
62
- import "./cloneDeep.js";
63
- import "./_arrayPush.js";
64
- import "./isArray.js";
65
- import "./ChartSingleRender.js";
66
- import "./ChartDoubleRender.js";
67
- import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
68
- import "vue-router";
69
- function useParseFormSchemas(chartsData, showSearchField) {
70
- function parseFormSchemas() {
71
- return __async(this, null, function* () {
72
- let { head, items, dictOptions } = chartsData.value;
73
- if (head.dataType === "sql") {
74
- let formSchemas = [];
75
- items.forEach((field) => {
76
- if (field.searchFlag !== "Y")
77
- return;
78
- let isRange = field.searchMode === "group";
79
- let schema = {};
80
- let schemas = [];
81
- if (field.dictCode && dictOptions[field.dictCode]) {
82
- schema.component = "Select";
83
- schema.componentProps = {
84
- options: dictOptions[field.dictCode]
85
- };
86
- } else if (["Integer", "Long"].includes(field.fieldType)) {
87
- schema.component = "InputNumber";
88
- if (isRange) {
89
- schema.render = getRangeRender(schemas, field, InputNumber);
90
- }
91
- } else if (field.fieldType === "Date") {
92
- schema.component = "DatePicker";
93
- schema.componentProps = {
94
- format: "YYYY-MM-DD"
95
- };
96
- if (isRange) {
97
- schema.render = getRangeRender(schemas, field, DatePicker);
98
- }
99
- } else {
100
- schema.component = "Input";
101
- if (isRange) {
102
- schema.render = getRangeRender(schemas, field, Input);
103
- }
104
- }
105
- formSchemas = formSchemas.concat(__spreadValues({
106
- label: field.fieldTxt,
107
- field: field.fieldName,
108
- component: "Input",
109
- itemProps: {
110
- class: { "range-query": isRange }
111
- }
112
- }, schema)).concat(schemas);
113
- });
114
- showSearchField.value = formSchemas.length > 0;
115
- yield nextTick();
116
- return formSchemas;
117
- } else {
118
- showSearchField.value = false;
119
- return null;
120
- }
121
- });
122
- }
123
- return { parseFormSchemas };
124
- }
125
- function getRangeRender(schemas, fieldItem, component) {
126
- let { fieldTxt: label, fieldName: beginField } = fieldItem;
127
- let endField = beginField + "_end";
128
- schemas.push({ label: "", field: endField, component: "Input", show: false });
129
- return function({ model }) {
130
- return [
131
- h(component, {
132
- value: model[beginField],
133
- "onUpdate:value": (v) => model[beginField] = v,
134
- placeholder: "\u8BF7\u8F93\u5165\u5F00\u59CB" + label,
135
- format: "YYYY-MM-DD"
136
- }),
137
- h("span", { class: "range-span" }, "~"),
138
- h(component, {
139
- value: model[endField],
140
- "onUpdate:value": (v) => model[endField] = v,
141
- placeholder: "\u8BF7\u8F93\u5165\u7ED3\u675F" + label,
142
- format: "YYYY-MM-DD"
143
- })
144
- ];
145
- };
146
- }
147
- var GraphreportAutoChart_vue_vue_type_style_index_0_scoped_true_lang = "";
148
- const _sfc_main = defineComponent({
149
- name: "GraphreportAutoChart",
150
- components: { BasicForm, ErrorTip, ChartAutoRender },
151
- props: {},
152
- setup() {
153
- provide("setErrorTip", setErrorTip);
154
- const $route = router.currentRoute;
155
- const loading = ref(false);
156
- const code = computed(() => $route.value.params.code);
157
- const errorTip = ref(null);
158
- const errors = reactive({ resultIsEmpty: false });
159
- const chartsData = ref();
160
- const paramsMap = reactive({});
161
- const selfParamsMap = reactive({});
162
- const searchFormMap = reactive({});
163
- const paramsRef = getPageComputed(paramsMap, "");
164
- const selfParamsRef = getPageComputed(selfParamsMap);
165
- const searchFormModal = getPageComputed(searchFormMap, {});
166
- const showSearchField = ref(false);
167
- const adaptiveColProps = { xs: 24, sm: 12, md: 12, lg: 8, xl: 8, xxl: 6 };
168
- const [registerSearchForm, searchForm] = useForm({
169
- schemas: [],
170
- compact: true,
171
- labelWidth: 120,
172
- autoSubmitOnEnter: true,
173
- rowProps: { gutter: 8 },
174
- baseColProps: __spreadValues({}, adaptiveColProps),
175
- labelCol: { xs: 24, sm: 8, md: 6, lg: 8, xl: 6, xxl: 6 },
176
- wrapperCol: {},
177
- showAdvancedButton: true,
178
- autoAdvancedCol: 3,
179
- actionColOptions: __spreadProps(__spreadValues({}, adaptiveColProps), {
180
- style: { textAlign: "left" }
181
- }),
182
- resetFunc: onReset,
183
- submitFunc: onSubmit
184
- });
185
- watch($route, () => {
186
- selfParamsRef.value = null;
187
- loadChartsData();
188
- }, { immediate: true });
189
- function setErrorTip(tip) {
190
- errorTip.value = tip;
191
- }
192
- function loadChartsData() {
193
- return __async(this, null, function* () {
194
- loading.value = true;
195
- if (!code.value) {
196
- loading.value = false;
197
- return false;
198
- }
199
- let params = { id: code.value, params: paramsRef.value };
200
- if (selfParamsRef.value == null) {
201
- selfParamsRef.value = {};
202
- try {
203
- let result = yield getParamsInfo({ headId: params.id });
204
- if (result && result.length > 0) {
205
- for (let i of result) {
206
- selfParamsRef.value["self_" + i.paramName] = !$route.value.query[i.paramName] ? "" : $route.value.query[i.paramName];
207
- }
208
- }
209
- } catch (e) {
210
- return;
211
- }
212
- }
213
- try {
214
- let result = yield getChartsData(__spreadValues(__spreadValues({}, params), selfParamsRef.value));
215
- let { head, data, items, dictOptions } = result;
216
- if (data && data.length === 0) {
217
- errors.resultIsEmpty = true;
218
- } else {
219
- errors.resultIsEmpty = false;
220
- chartsData.value = { head, data, items, dictOptions };
221
- parseChartsData();
222
- }
223
- } finally {
224
- loading.value = false;
225
- }
226
- });
227
- }
228
- function getPageComputed(map, defVal) {
229
- return computed({
230
- get() {
231
- if (map[code.value] == null) {
232
- map[code.value] = defVal;
233
- }
234
- return map[code.value];
235
- },
236
- set: (val) => map[code.value] = val
237
- });
238
- }
239
- const { parseFormSchemas } = useParseFormSchemas(chartsData, showSearchField);
240
- function parseChartsData() {
241
- return __async(this, null, function* () {
242
- let schemas = yield parseFormSchemas();
243
- if (schemas) {
244
- searchForm.resetSchema(schemas);
245
- }
246
- });
247
- }
248
- function onReset() {
249
- return __async(this, null, function* () {
250
- paramsRef.value = "";
251
- loadChartsData();
252
- });
253
- }
254
- function onSubmit() {
255
- return __async(this, null, function* () {
256
- const data = yield searchForm.validate();
257
- let { items } = chartsData.value;
258
- let params = [];
259
- for (let field of items) {
260
- if (field.searchFlag !== "Y")
261
- continue;
262
- let values = null;
263
- if (!field.searchMode)
264
- field.searchMode = "single";
265
- if (field.searchMode === "single") {
266
- values = data[field.fieldName];
267
- } else {
268
- let _begin = data[field.fieldName];
269
- let _end = data[`${field.fieldName}_end`];
270
- values = [_begin, _end];
271
- }
272
- if (field.fieldType === "Date") {
273
- values = formatDate(values);
274
- }
275
- if (values != null && (values[0] != null || values[1] != null)) {
276
- params.push({
277
- value: values,
278
- fieldTxt: field.fieldTxt,
279
- fieldName: field.fieldName,
280
- fieldType: field.fieldType,
281
- searchMode: field.searchMode
282
- });
283
- }
284
- }
285
- paramsRef.value = encodeURIComponent(JSON.stringify(params));
286
- loadChartsData();
287
- });
288
- }
289
- function formatDate(values) {
290
- if (values) {
291
- if (isArray(values)) {
292
- if (values[0]) {
293
- values[0] = formatToDate(values[0]);
294
- }
295
- if (values[1]) {
296
- values[1] = formatToDate(values[1]);
297
- }
298
- } else {
299
- return formatToDate(values);
300
- }
301
- }
302
- return values;
303
- }
304
- return {
305
- loading,
306
- errors,
307
- errorTip,
308
- chartsData,
309
- showSearchField,
310
- searchFormModal,
311
- registerSearchForm
312
- };
313
- }
314
- });
315
- const _hoisted_1 = { class: "p-2" };
316
- const _hoisted_2 = {
317
- key: 0,
318
- class: "search-field"
319
- };
320
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
321
- const _component_ErrorTip = resolveComponent("ErrorTip");
322
- const _component_BasicForm = resolveComponent("BasicForm");
323
- const _component_ChartAutoRender = resolveComponent("ChartAutoRender");
324
- const _component_a_spin = resolveComponent("a-spin");
325
- return openBlock(), createElementBlock("div", _hoisted_1, [
326
- createVNode(_component_a_spin, { spinning: _ctx.loading }, {
327
- default: withCtx(() => [
328
- _ctx.errorTip ? (openBlock(), createBlock(_component_ErrorTip, {
329
- key: 0,
330
- tip: _ctx.errorTip
331
- }, null, 8, ["tip"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
332
- _ctx.showSearchField ? (openBlock(), createElementBlock("div", _hoisted_2, [
333
- createVNode(_component_BasicForm, {
334
- onRegister: _ctx.registerSearchForm,
335
- model: _ctx.searchFormModal
336
- }, null, 8, ["onRegister", "model"])
337
- ])) : createCommentVNode("", true),
338
- _ctx.errors.resultIsEmpty ? (openBlock(), createBlock(_component_ErrorTip, {
339
- key: 1,
340
- tip: "\u6CA1\u6709\u67E5\u8BE2\u5230\u4EFB\u4F55\u6570\u636E"
341
- })) : (openBlock(), createBlock(_component_ChartAutoRender, {
342
- key: 2,
343
- chartsData: _ctx.chartsData
344
- }, null, 8, ["chartsData"]))
345
- ], 64))
346
- ]),
347
- _: 1
348
- }, 8, ["spinning"])
349
- ]);
350
- }
351
- var GraphreportAutoChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-39167fbc"]]);
352
- export { GraphreportAutoChart as default };