@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.
- package/AuthButtonConfig.js +14 -7
- package/AuthButtonTree.js +3 -5
- package/AuthDataConfig.js +9 -6
- package/AuthDataTree.js +3 -5
- package/AuthFieldConfig.js +15 -12
- package/AuthFieldTree.js +24 -18
- package/AuthManagerDrawer.js +1 -1
- package/AuthSetterModal.js +1 -0
- package/CgformCopyList.js +34 -22
- package/CgformModal.js +57 -50
- package/CgreportModal.js +32 -39
- package/CheckDictTable.js +144 -24
- package/CodeFileListModal.js +175 -0
- package/CodeFileViewModal.js +325 -0
- package/CodeGeneratorModal.js +41 -38
- package/CustomButtonList.js +19 -22
- package/DBAttributeTable.js +248 -12
- package/DbToOnlineModal.js +27 -25
- package/DetailForm.js +609 -0
- package/EnhanceJavaModal.js +11 -17
- package/EnhanceJsHistory.js +6 -8
- package/EnhanceJsModal.js +16 -16
- package/EnhanceSqlModal.js +11 -17
- package/ExtendConfigModal.js +24 -15
- package/ForeignKeyTable.js +4 -3
- package/FormSchemaFactory.js +163 -30
- package/IndexTable.js +6 -5
- package/JModalTip.js +54 -0
- package/JOnlineSearchSelect.js +18 -10
- package/LeftDepart.js +1 -1
- package/LeftRole.js +7 -4
- package/LeftUser.js +7 -4
- package/LinkTableConfigModal.js +289 -0
- package/LinkTableFieldConfigModal.js +218 -0
- package/LinkTableListPiece.js +36 -0
- package/ModalFormDemo.js +3 -2
- package/OnlineAutoList.js +154 -55
- package/OnlineAutoModal.js +92 -131
- package/OnlineAutoTreeList.js +93 -53
- package/OnlineCustomModal.js +30 -14
- package/OnlineDetailModal.js +184 -0
- package/OnlineForm.js +274 -141
- package/OnlineFormDetail.js +326 -0
- package/OnlineQueryForm.js +72 -40
- package/OnlineSearchFormItem.js +26 -18
- package/OnlineSelectCascade.js +37 -26
- package/OnlineSubFormDetail.js +167 -0
- package/OnlineSuperQuery.js +70 -75
- package/OnlineSuperQueryValComponent.js +1 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +1 -17
- package/PageAttributeTable.js +233 -30
- package/ProcessOnlineForm.js +41 -16
- package/QueryTable.js +4 -3
- package/README.md +3 -8
- package/_arrayPush.js +5 -3
- package/{cloneDeep.js → _baseClone.js} +5 -9
- package/_baseSlice.js +18 -0
- package/_commonjsHelpers.js +5 -0
- package/_flatRest.js +174 -0
- package/auth.data.js +1 -3
- package/cgform.data.js +18 -9
- package/enhance.api.js +27 -18
- package/index.js +27 -8
- package/index2.js +48 -45
- package/index3.js +29 -26
- package/isArray.js +1 -1
- package/main.index.js +2 -2
- package/omit.js +60 -0
- package/package.json +1 -1
- package/pick.js +3 -173
- package/style.css +1 -1
- package/toString.js +2 -2
- package/useAutoForm.js +3457 -3791
- package/useCgformList.js +44 -31
- package/{useTableColumns.js → useListButton.js} +218 -409
- package/useOnlineTest.js +5 -26827
- package/useSchemas.js +382 -234
- package/useTableSync.js +19 -7
- package/ChartAutoRender.js +0 -69
- package/ChartDoubleRender.js +0 -154
- package/ChartSingleRender.js +0 -132
- package/ChartTabsRender.js +0 -218
- package/ErrorTip.js +0 -21
- package/FieldTable.js +0 -185
- package/GraphreportAutoChart.js +0 -352
- package/GraphreportList.js +0 -239
- package/GraphreportModal.js +0 -559
- package/LICENSE +0 -7
- package/OnlineSubForm.js +0 -200
- package/ParamsTable.js +0 -71
- package/graphreport.api.js +0 -23
- package/useChartRender.js +0 -405
- package/useMessageOnline.js +0 -71
package/useTableSync.js
CHANGED
|
@@ -32,6 +32,16 @@ function useTableSync(columns) {
|
|
|
32
32
|
noToolbar: (fullScreenRef == null ? void 0 : fullScreenRef.value) ? 480 : 320
|
|
33
33
|
}));
|
|
34
34
|
const columnKeys = computed(() => ["id"].concat(columns.value.map((col) => col.key)));
|
|
35
|
+
const tableProps = computed(() => {
|
|
36
|
+
return {
|
|
37
|
+
scrollY: {
|
|
38
|
+
gt: 15
|
|
39
|
+
},
|
|
40
|
+
scrollX: {
|
|
41
|
+
gt: 20
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
});
|
|
35
45
|
function validateData(activeKey) {
|
|
36
46
|
return __async(this, null, function* () {
|
|
37
47
|
let instance = tableRef.value;
|
|
@@ -70,13 +80,15 @@ function useTableSync(columns) {
|
|
|
70
80
|
let dbFieldName = targetValue["dbFieldName"];
|
|
71
81
|
let dbFieldTxt = targetValue["dbFieldTxt"];
|
|
72
82
|
if (sourceValue.dbFieldName !== dbFieldName || sourceValue.dbFieldTxt !== dbFieldTxt) {
|
|
73
|
-
targetTable.setValues([
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
targetTable.setValues([
|
|
84
|
+
{
|
|
85
|
+
rowKey: targetValue.id,
|
|
86
|
+
values: {
|
|
87
|
+
dbFieldName: sourceValue.dbFieldName,
|
|
88
|
+
dbFieldTxt: sourceValue.dbFieldTxt
|
|
89
|
+
}
|
|
78
90
|
}
|
|
79
|
-
|
|
91
|
+
]);
|
|
80
92
|
}
|
|
81
93
|
flag = true;
|
|
82
94
|
} else {
|
|
@@ -100,6 +112,6 @@ function useTableSync(columns) {
|
|
|
100
112
|
});
|
|
101
113
|
return nextTick();
|
|
102
114
|
}
|
|
103
|
-
return { tables, tableRef, loading, dataSource, columnKeys, tableHeight, syncTable, validateData, setDataSource };
|
|
115
|
+
return { tables, tableRef, loading, dataSource, columnKeys, tableHeight, tableProps, syncTable, validateData, setDataSource };
|
|
104
116
|
}
|
|
105
117
|
export { useTableSync as u };
|
package/ChartAutoRender.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { defineComponent, inject, ref, computed, watch, resolveComponent, openBlock, createBlock, normalizeProps, mergeProps, createCommentVNode } from "vue";
|
|
2
|
-
import ErrorTip from "./ErrorTip.js";
|
|
3
|
-
import ChartTabsRender from "./ChartTabsRender.js";
|
|
4
|
-
import ChartSingleRender from "./ChartSingleRender.js";
|
|
5
|
-
import ChartDoubleRender from "./ChartDoubleRender.js";
|
|
6
|
-
import { _ as _export_sfc } from "./index.js";
|
|
7
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
8
|
-
import "/@/hooks/web/useMessage";
|
|
9
|
-
import "vue-router";
|
|
10
|
-
import "./useChartRender.js";
|
|
11
|
-
import "/@/router";
|
|
12
|
-
import "/@/utils/propTypes";
|
|
13
|
-
import "/@/hooks/web/usePrintJS";
|
|
14
|
-
import "/@/utils/file/download";
|
|
15
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
16
|
-
import "/@/components/chart/Bar.vue";
|
|
17
|
-
import "/@/components/chart/Pie.vue";
|
|
18
|
-
import "/@/components/chart/BarMulti.vue";
|
|
19
|
-
import "/@/components/chart/LineMulti.vue";
|
|
20
|
-
import "/@/utils/http/axios";
|
|
21
|
-
import "/@/utils/is";
|
|
22
|
-
import "./cloneDeep.js";
|
|
23
|
-
import "./_arrayPush.js";
|
|
24
|
-
import "./isArray.js";
|
|
25
|
-
const _sfc_main = defineComponent({
|
|
26
|
-
name: "ChartAutoRender",
|
|
27
|
-
components: { ErrorTip, ChartTabsRender, ChartSingleRender, ChartDoubleRender },
|
|
28
|
-
props: {
|
|
29
|
-
chartsData: { type: Object, default: null },
|
|
30
|
-
isCombination: { type: Boolean, default: false }
|
|
31
|
-
},
|
|
32
|
-
setup(props) {
|
|
33
|
-
const setErrorTip = inject("setErrorTip");
|
|
34
|
-
const chartTitle = ref(null);
|
|
35
|
-
const displayTemplate = ref("tab");
|
|
36
|
-
const dataSource = ref({});
|
|
37
|
-
const isTabs = computed(() => displayTemplate.value === "tab");
|
|
38
|
-
const isSingle = computed(() => displayTemplate.value === "single");
|
|
39
|
-
const isDouble = computed(() => displayTemplate.value === "double");
|
|
40
|
-
const templateProps = computed(() => {
|
|
41
|
-
return {
|
|
42
|
-
title: props.isCombination ? null : chartTitle.value,
|
|
43
|
-
chartsData: props.chartsData,
|
|
44
|
-
isCombination: props.isCombination,
|
|
45
|
-
onError: (tip) => setErrorTip(tip)
|
|
46
|
-
};
|
|
47
|
-
});
|
|
48
|
-
watch(() => props.chartsData, () => parseChartsData(props.chartsData), { immediate: true });
|
|
49
|
-
function parseChartsData(data) {
|
|
50
|
-
if (data) {
|
|
51
|
-
chartTitle.value = data.head.name;
|
|
52
|
-
displayTemplate.value = data.head.displayTemplate;
|
|
53
|
-
dataSource.value = data;
|
|
54
|
-
if (!isTabs.value && !isDouble.value && !isSingle.value) {
|
|
55
|
-
setErrorTip("\u672A\u8BC6\u522B\u7684\u5E03\u5C40\u6A21\u5F0F");
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return { isTabs, isSingle, isDouble, templateProps };
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63
|
-
const _component_ChartTabsRender = resolveComponent("ChartTabsRender");
|
|
64
|
-
const _component_ChartSingleRender = resolveComponent("ChartSingleRender");
|
|
65
|
-
const _component_ChartDoubleRender = resolveComponent("ChartDoubleRender");
|
|
66
|
-
return _ctx.isTabs ? (openBlock(), createBlock(_component_ChartTabsRender, normalizeProps(mergeProps({ key: 0 }, _ctx.templateProps)), null, 16)) : _ctx.isSingle ? (openBlock(), createBlock(_component_ChartSingleRender, normalizeProps(mergeProps({ key: 1 }, _ctx.templateProps)), null, 16)) : _ctx.isDouble ? (openBlock(), createBlock(_component_ChartDoubleRender, normalizeProps(mergeProps({ key: 2 }, _ctx.templateProps)), null, 16)) : createCommentVNode("", true);
|
|
67
|
-
}
|
|
68
|
-
var ChartAutoRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
69
|
-
export { ChartAutoRender as default };
|
package/ChartDoubleRender.js
DELETED
|
@@ -1,154 +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
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, createBlock, createCommentVNode, Fragment, renderList, mergeProps, createTextVNode, toDisplayString } from "vue";
|
|
21
|
-
import { C as ChartRenderCommon, u as useChartRender } from "./useChartRender.js";
|
|
22
|
-
import { _ as _export_sfc } from "./index.js";
|
|
23
|
-
import "/@/router";
|
|
24
|
-
import "/@/utils/propTypes";
|
|
25
|
-
import "/@/hooks/web/usePrintJS";
|
|
26
|
-
import "/@/utils/file/download";
|
|
27
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
28
|
-
import "/@/components/chart/Bar.vue";
|
|
29
|
-
import "/@/components/chart/Pie.vue";
|
|
30
|
-
import "/@/components/chart/BarMulti.vue";
|
|
31
|
-
import "/@/components/chart/LineMulti.vue";
|
|
32
|
-
import "/@/utils/http/axios";
|
|
33
|
-
import "/@/hooks/web/useMessage";
|
|
34
|
-
import "/@/utils/is";
|
|
35
|
-
import "./cloneDeep.js";
|
|
36
|
-
import "./_arrayPush.js";
|
|
37
|
-
import "./isArray.js";
|
|
38
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
39
|
-
import "vue-router";
|
|
40
|
-
const _sfc_main = defineComponent(__spreadProps(__spreadValues({
|
|
41
|
-
name: "ChartTabsRender"
|
|
42
|
-
}, ChartRenderCommon), {
|
|
43
|
-
setup(props, ctx) {
|
|
44
|
-
let setup = useChartRender(props, ctx);
|
|
45
|
-
function buildSpan(idx) {
|
|
46
|
-
let length = setup.chartTypes.value.length;
|
|
47
|
-
let span = idx + 1 === length && length % 2 !== 0 ? 24 : 12;
|
|
48
|
-
return { xs: 24, md: span };
|
|
49
|
-
}
|
|
50
|
-
return __spreadProps(__spreadValues({}, setup), { buildSpan });
|
|
51
|
-
}
|
|
52
|
-
}));
|
|
53
|
-
const _hoisted_1 = ["id"];
|
|
54
|
-
const _hoisted_2 = { "ignore-print": true };
|
|
55
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u6253\u5370");
|
|
56
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u8BE6\u60C5");
|
|
57
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
|
-
const _component_a_button = resolveComponent("a-button");
|
|
59
|
-
const _component_LineMulti = resolveComponent("LineMulti");
|
|
60
|
-
const _component_BarMulti = resolveComponent("BarMulti");
|
|
61
|
-
const _component_Pie = resolveComponent("Pie");
|
|
62
|
-
const _component_a_col = resolveComponent("a-col");
|
|
63
|
-
const _component_a_row = resolveComponent("a-row");
|
|
64
|
-
const _component_a_card = resolveComponent("a-card");
|
|
65
|
-
const _component_a_switch = resolveComponent("a-switch");
|
|
66
|
-
const _component_a_table = resolveComponent("a-table");
|
|
67
|
-
return openBlock(), createElementBlock("div", { id: _ctx.printId }, [
|
|
68
|
-
createVNode(_component_a_card, normalizeProps(guardReactiveProps(_ctx.chartCardProps)), {
|
|
69
|
-
extra: withCtx(() => [
|
|
70
|
-
createElementVNode("div", _hoisted_2, [
|
|
71
|
-
_ctx.showPrint ? (openBlock(), createBlock(_component_a_button, {
|
|
72
|
-
key: 0,
|
|
73
|
-
type: "primary",
|
|
74
|
-
ghost: "",
|
|
75
|
-
onClick: _ctx.onPrint
|
|
76
|
-
}, {
|
|
77
|
-
default: withCtx(() => [
|
|
78
|
-
_hoisted_3
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
82
|
-
_ctx.showDetail ? (openBlock(), createBlock(_component_a_button, {
|
|
83
|
-
key: 1,
|
|
84
|
-
type: "primary",
|
|
85
|
-
ghost: "",
|
|
86
|
-
onClick: _ctx.onGoToDetail
|
|
87
|
-
}, {
|
|
88
|
-
default: withCtx(() => [
|
|
89
|
-
_hoisted_4
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
93
|
-
])
|
|
94
|
-
]),
|
|
95
|
-
default: withCtx(() => [
|
|
96
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.chartTypes, (type, index) => {
|
|
97
|
-
return openBlock(), createBlock(_component_a_row, {
|
|
98
|
-
key: type + index
|
|
99
|
-
}, {
|
|
100
|
-
default: withCtx(() => [
|
|
101
|
-
index % 2 === 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList([index, index + 1], (idx) => {
|
|
102
|
-
return openBlock(), createElementBlock(Fragment, { key: idx }, [
|
|
103
|
-
idx < _ctx.chartTypes.length ? (openBlock(), createBlock(_component_a_col, normalizeProps(mergeProps({ key: 0 }, _ctx.buildSpan(idx))), {
|
|
104
|
-
default: withCtx(() => [
|
|
105
|
-
_ctx.chartTypes[idx] === "line" ? (openBlock(), createBlock(_component_LineMulti, normalizeProps(mergeProps({ key: 0 }, _ctx.lineProps)), null, 16)) : createCommentVNode("", true),
|
|
106
|
-
_ctx.chartTypes[idx] === "bar" ? (openBlock(), createBlock(_component_BarMulti, normalizeProps(mergeProps({ key: 1 }, _ctx.barProps)), null, 16)) : createCommentVNode("", true),
|
|
107
|
-
_ctx.chartTypes[idx] === "pie" ? (openBlock(), createBlock(_component_Pie, normalizeProps(mergeProps({ key: 2 }, _ctx.pieProps)), null, 16)) : createCommentVNode("", true)
|
|
108
|
-
]),
|
|
109
|
-
_: 2
|
|
110
|
-
}, 1040)) : createCommentVNode("", true)
|
|
111
|
-
], 64);
|
|
112
|
-
}), 128)) : createCommentVNode("", true)
|
|
113
|
-
]),
|
|
114
|
-
_: 2
|
|
115
|
-
}, 1024);
|
|
116
|
-
}), 128))
|
|
117
|
-
]),
|
|
118
|
-
_: 1
|
|
119
|
-
}, 16),
|
|
120
|
-
_ctx.hasTable ? (openBlock(), createBlock(_component_a_card, normalizeProps(mergeProps({ key: 0 }, _ctx.tableCardProps)), {
|
|
121
|
-
default: withCtx(() => [
|
|
122
|
-
createVNode(_component_a_row, null, {
|
|
123
|
-
default: withCtx(() => [
|
|
124
|
-
createVNode(_component_a_col, { "ignore-print": true }, {
|
|
125
|
-
default: withCtx(() => [
|
|
126
|
-
createVNode(_component_a_button, mergeProps(_ctx.exportButtonProps, { onClick: _ctx.onExportXls }), {
|
|
127
|
-
default: withCtx(() => [
|
|
128
|
-
createTextVNode(toDisplayString(_ctx.exportButtonProps.text), 1)
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 16, ["onClick"]),
|
|
132
|
-
createVNode(_component_a_switch, mergeProps(_ctx.pageSwitchProps, {
|
|
133
|
-
checked: _ctx.pageSwitch,
|
|
134
|
-
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => _ctx.pageSwitch = $event)
|
|
135
|
-
}), null, 16, ["checked"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}),
|
|
139
|
-
createVNode(_component_a_col, null, {
|
|
140
|
-
default: withCtx(() => [
|
|
141
|
-
createVNode(_component_a_table, normalizeProps(guardReactiveProps(_ctx.tableProps)), null, 16)
|
|
142
|
-
]),
|
|
143
|
-
_: 1
|
|
144
|
-
})
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
})
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 16)) : createCommentVNode("", true)
|
|
151
|
-
], 8, _hoisted_1);
|
|
152
|
-
}
|
|
153
|
-
var ChartDoubleRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
154
|
-
export { ChartDoubleRender as default };
|
package/ChartSingleRender.js
DELETED
|
@@ -1,132 +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
|
-
import { C as ChartRenderCommon, u as useChartRender } from "./useChartRender.js";
|
|
21
|
-
import { resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, createBlock, createCommentVNode, Fragment, renderList, mergeProps, createTextVNode, toDisplayString } from "vue";
|
|
22
|
-
import { _ as _export_sfc } from "./index.js";
|
|
23
|
-
import "/@/router";
|
|
24
|
-
import "/@/utils/propTypes";
|
|
25
|
-
import "/@/hooks/web/usePrintJS";
|
|
26
|
-
import "/@/utils/file/download";
|
|
27
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
28
|
-
import "/@/components/chart/Bar.vue";
|
|
29
|
-
import "/@/components/chart/Pie.vue";
|
|
30
|
-
import "/@/components/chart/BarMulti.vue";
|
|
31
|
-
import "/@/components/chart/LineMulti.vue";
|
|
32
|
-
import "/@/utils/http/axios";
|
|
33
|
-
import "/@/hooks/web/useMessage";
|
|
34
|
-
import "/@/utils/is";
|
|
35
|
-
import "./cloneDeep.js";
|
|
36
|
-
import "./_arrayPush.js";
|
|
37
|
-
import "./isArray.js";
|
|
38
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
39
|
-
import "vue-router";
|
|
40
|
-
const _sfc_main = __spreadProps(__spreadValues({
|
|
41
|
-
name: "ChartSingleRender"
|
|
42
|
-
}, ChartRenderCommon), {
|
|
43
|
-
setup: useChartRender
|
|
44
|
-
});
|
|
45
|
-
const _hoisted_1 = ["id"];
|
|
46
|
-
const _hoisted_2 = { "ignore-print": true };
|
|
47
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u6253\u5370");
|
|
48
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u8BE6\u60C5");
|
|
49
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50
|
-
const _component_a_button = resolveComponent("a-button");
|
|
51
|
-
const _component_LineMulti = resolveComponent("LineMulti");
|
|
52
|
-
const _component_BarMulti = resolveComponent("BarMulti");
|
|
53
|
-
const _component_Pie = resolveComponent("Pie");
|
|
54
|
-
const _component_a_card = resolveComponent("a-card");
|
|
55
|
-
const _component_a_switch = resolveComponent("a-switch");
|
|
56
|
-
const _component_a_col = resolveComponent("a-col");
|
|
57
|
-
const _component_a_table = resolveComponent("a-table");
|
|
58
|
-
const _component_a_row = resolveComponent("a-row");
|
|
59
|
-
return openBlock(), createElementBlock("div", { id: _ctx.printId }, [
|
|
60
|
-
createVNode(_component_a_card, normalizeProps(guardReactiveProps(_ctx.chartCardProps)), {
|
|
61
|
-
extra: withCtx(() => [
|
|
62
|
-
createElementVNode("div", _hoisted_2, [
|
|
63
|
-
_ctx.showPrint ? (openBlock(), createBlock(_component_a_button, {
|
|
64
|
-
key: 0,
|
|
65
|
-
type: "primary",
|
|
66
|
-
ghost: "",
|
|
67
|
-
onClick: _ctx.onPrint
|
|
68
|
-
}, {
|
|
69
|
-
default: withCtx(() => [
|
|
70
|
-
_hoisted_3
|
|
71
|
-
]),
|
|
72
|
-
_: 1
|
|
73
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
74
|
-
_ctx.showDetail ? (openBlock(), createBlock(_component_a_button, {
|
|
75
|
-
key: 1,
|
|
76
|
-
type: "primary",
|
|
77
|
-
ghost: "",
|
|
78
|
-
onClick: _ctx.onGoToDetail
|
|
79
|
-
}, {
|
|
80
|
-
default: withCtx(() => [
|
|
81
|
-
_hoisted_4
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
85
|
-
])
|
|
86
|
-
]),
|
|
87
|
-
default: withCtx(() => [
|
|
88
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.chartTypes, (type, index) => {
|
|
89
|
-
return openBlock(), createElementBlock(Fragment, { key: index }, [
|
|
90
|
-
type === "line" ? (openBlock(), createBlock(_component_LineMulti, normalizeProps(mergeProps({ key: 0 }, _ctx.lineProps)), null, 16)) : createCommentVNode("", true),
|
|
91
|
-
type === "bar" ? (openBlock(), createBlock(_component_BarMulti, normalizeProps(mergeProps({ key: 1 }, _ctx.barProps)), null, 16)) : createCommentVNode("", true),
|
|
92
|
-
type === "pie" ? (openBlock(), createBlock(_component_Pie, normalizeProps(mergeProps({ key: 2 }, _ctx.pieProps)), null, 16)) : createCommentVNode("", true)
|
|
93
|
-
], 64);
|
|
94
|
-
}), 128))
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
}, 16),
|
|
98
|
-
_ctx.hasTable ? (openBlock(), createBlock(_component_a_card, normalizeProps(mergeProps({ key: 0 }, _ctx.tableCardProps)), {
|
|
99
|
-
default: withCtx(() => [
|
|
100
|
-
createVNode(_component_a_row, null, {
|
|
101
|
-
default: withCtx(() => [
|
|
102
|
-
createVNode(_component_a_col, { "ignore-print": true }, {
|
|
103
|
-
default: withCtx(() => [
|
|
104
|
-
createVNode(_component_a_button, mergeProps(_ctx.exportButtonProps, { onClick: _ctx.onExportXls }), {
|
|
105
|
-
default: withCtx(() => [
|
|
106
|
-
createTextVNode(toDisplayString(_ctx.exportButtonProps.text), 1)
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 16, ["onClick"]),
|
|
110
|
-
createVNode(_component_a_switch, mergeProps(_ctx.pageSwitchProps, {
|
|
111
|
-
checked: _ctx.pageSwitch,
|
|
112
|
-
"onUpdate:checked": _cache[0] || (_cache[0] = ($event) => _ctx.pageSwitch = $event)
|
|
113
|
-
}), null, 16, ["checked"])
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}),
|
|
117
|
-
createVNode(_component_a_col, null, {
|
|
118
|
-
default: withCtx(() => [
|
|
119
|
-
createVNode(_component_a_table, normalizeProps(guardReactiveProps(_ctx.tableProps)), null, 16)
|
|
120
|
-
]),
|
|
121
|
-
_: 1
|
|
122
|
-
})
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
})
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}, 16)) : createCommentVNode("", true)
|
|
129
|
-
], 8, _hoisted_1);
|
|
130
|
-
}
|
|
131
|
-
var ChartSingleRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
132
|
-
export { ChartSingleRender as default };
|
package/ChartTabsRender.js
DELETED
|
@@ -1,218 +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
|
-
import { C as ChartRenderCommon, u as useChartRender } from "./useChartRender.js";
|
|
21
|
-
import { resolveComponent, openBlock, createElementBlock, createVNode, normalizeProps, guardReactiveProps, withCtx, createElementVNode, createBlock, createCommentVNode, Fragment, renderList, mergeProps, createTextVNode, toDisplayString } from "vue";
|
|
22
|
-
import { _ as _export_sfc } from "./index.js";
|
|
23
|
-
import "/@/router";
|
|
24
|
-
import "/@/utils/propTypes";
|
|
25
|
-
import "/@/hooks/web/usePrintJS";
|
|
26
|
-
import "/@/utils/file/download";
|
|
27
|
-
import "/@/utils/dict/JDictSelectUtil";
|
|
28
|
-
import "/@/components/chart/Bar.vue";
|
|
29
|
-
import "/@/components/chart/Pie.vue";
|
|
30
|
-
import "/@/components/chart/BarMulti.vue";
|
|
31
|
-
import "/@/components/chart/LineMulti.vue";
|
|
32
|
-
import "/@/utils/http/axios";
|
|
33
|
-
import "/@/hooks/web/useMessage";
|
|
34
|
-
import "/@/utils/is";
|
|
35
|
-
import "./cloneDeep.js";
|
|
36
|
-
import "./_arrayPush.js";
|
|
37
|
-
import "./isArray.js";
|
|
38
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
39
|
-
import "vue-router";
|
|
40
|
-
const _sfc_main = __spreadProps(__spreadValues({
|
|
41
|
-
name: "ChartTabsRender"
|
|
42
|
-
}, ChartRenderCommon), {
|
|
43
|
-
setup: useChartRender
|
|
44
|
-
});
|
|
45
|
-
const _hoisted_1 = ["id"];
|
|
46
|
-
const _hoisted_2 = { "ignore-print": true };
|
|
47
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u6253\u5370");
|
|
48
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u8BE6\u60C5");
|
|
49
|
-
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u66F2\u7EBF\u56FE");
|
|
50
|
-
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u67F1\u72B6\u56FE");
|
|
51
|
-
const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u997C\u56FE");
|
|
52
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
53
|
-
const _component_a_button = resolveComponent("a-button");
|
|
54
|
-
const _component_a_radio_button = resolveComponent("a-radio-button");
|
|
55
|
-
const _component_a_radio_group = resolveComponent("a-radio-group");
|
|
56
|
-
const _component_LineMulti = resolveComponent("LineMulti");
|
|
57
|
-
const _component_a_tab_pane = resolveComponent("a-tab-pane");
|
|
58
|
-
const _component_BarMulti = resolveComponent("BarMulti");
|
|
59
|
-
const _component_Pie = resolveComponent("Pie");
|
|
60
|
-
const _component_a_tabs = resolveComponent("a-tabs");
|
|
61
|
-
const _component_a_card = resolveComponent("a-card");
|
|
62
|
-
const _component_a_switch = resolveComponent("a-switch");
|
|
63
|
-
const _component_a_col = resolveComponent("a-col");
|
|
64
|
-
const _component_a_table = resolveComponent("a-table");
|
|
65
|
-
const _component_a_row = resolveComponent("a-row");
|
|
66
|
-
return openBlock(), createElementBlock("div", { id: _ctx.printId }, [
|
|
67
|
-
createVNode(_component_a_card, normalizeProps(guardReactiveProps(_ctx.chartCardProps)), {
|
|
68
|
-
extra: withCtx(() => [
|
|
69
|
-
createElementVNode("div", _hoisted_2, [
|
|
70
|
-
_ctx.showPrint ? (openBlock(), createBlock(_component_a_button, {
|
|
71
|
-
key: 0,
|
|
72
|
-
type: "primary",
|
|
73
|
-
ghost: "",
|
|
74
|
-
onClick: _ctx.onPrint
|
|
75
|
-
}, {
|
|
76
|
-
default: withCtx(() => [
|
|
77
|
-
_hoisted_3
|
|
78
|
-
]),
|
|
79
|
-
_: 1
|
|
80
|
-
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
81
|
-
_ctx.showDetail ? (openBlock(), createBlock(_component_a_button, {
|
|
82
|
-
key: 1,
|
|
83
|
-
type: "primary",
|
|
84
|
-
ghost: "",
|
|
85
|
-
onClick: _ctx.onGoToDetail
|
|
86
|
-
}, {
|
|
87
|
-
default: withCtx(() => [
|
|
88
|
-
_hoisted_4
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
92
|
-
])
|
|
93
|
-
]),
|
|
94
|
-
default: withCtx(() => [
|
|
95
|
-
createElementVNode("div", null, [
|
|
96
|
-
createVNode(_component_a_radio_group, {
|
|
97
|
-
buttonStyle: "solid",
|
|
98
|
-
value: _ctx.activeKey,
|
|
99
|
-
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.activeKey = $event),
|
|
100
|
-
"ignore-print": true
|
|
101
|
-
}, {
|
|
102
|
-
default: withCtx(() => [
|
|
103
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.chartTypes, (type, index) => {
|
|
104
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
105
|
-
type === "line" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
106
|
-
_ctx.hasLine ? (openBlock(), createBlock(_component_a_radio_button, {
|
|
107
|
-
value: "line",
|
|
108
|
-
key: index
|
|
109
|
-
}, {
|
|
110
|
-
default: withCtx(() => [
|
|
111
|
-
_hoisted_5
|
|
112
|
-
]),
|
|
113
|
-
_: 2
|
|
114
|
-
}, 1024)) : createCommentVNode("", true)
|
|
115
|
-
], 64)) : createCommentVNode("", true),
|
|
116
|
-
type === "bar" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
117
|
-
_ctx.hasBar ? (openBlock(), createBlock(_component_a_radio_button, {
|
|
118
|
-
value: "bar",
|
|
119
|
-
key: index
|
|
120
|
-
}, {
|
|
121
|
-
default: withCtx(() => [
|
|
122
|
-
_hoisted_6
|
|
123
|
-
]),
|
|
124
|
-
_: 2
|
|
125
|
-
}, 1024)) : createCommentVNode("", true)
|
|
126
|
-
], 64)) : createCommentVNode("", true),
|
|
127
|
-
type === "pie" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
128
|
-
_ctx.hasPie ? (openBlock(), createBlock(_component_a_radio_button, {
|
|
129
|
-
value: "pie",
|
|
130
|
-
key: index
|
|
131
|
-
}, {
|
|
132
|
-
default: withCtx(() => [
|
|
133
|
-
_hoisted_7
|
|
134
|
-
]),
|
|
135
|
-
_: 2
|
|
136
|
-
}, 1024)) : createCommentVNode("", true)
|
|
137
|
-
], 64)) : createCommentVNode("", true)
|
|
138
|
-
], 64);
|
|
139
|
-
}), 256))
|
|
140
|
-
]),
|
|
141
|
-
_: 1
|
|
142
|
-
}, 8, ["value"]),
|
|
143
|
-
createVNode(_component_a_tabs, {
|
|
144
|
-
activeKey: _ctx.activeKey,
|
|
145
|
-
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => _ctx.activeKey = $event),
|
|
146
|
-
size: "small",
|
|
147
|
-
tabBarStyle: { display: "none" }
|
|
148
|
-
}, {
|
|
149
|
-
default: withCtx(() => [
|
|
150
|
-
_ctx.hasLine ? (openBlock(), createBlock(_component_a_tab_pane, {
|
|
151
|
-
tab: "\u66F2\u7EBF\u56FE",
|
|
152
|
-
key: "line"
|
|
153
|
-
}, {
|
|
154
|
-
default: withCtx(() => [
|
|
155
|
-
createVNode(_component_LineMulti, normalizeProps(guardReactiveProps(_ctx.lineProps)), null, 16)
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
})) : createCommentVNode("", true),
|
|
159
|
-
_ctx.hasBar ? (openBlock(), createBlock(_component_a_tab_pane, {
|
|
160
|
-
tab: "\u67F1\u72B6\u56FE",
|
|
161
|
-
key: "bar"
|
|
162
|
-
}, {
|
|
163
|
-
default: withCtx(() => [
|
|
164
|
-
createVNode(_component_BarMulti, normalizeProps(guardReactiveProps(_ctx.barProps)), null, 16)
|
|
165
|
-
]),
|
|
166
|
-
_: 1
|
|
167
|
-
})) : createCommentVNode("", true),
|
|
168
|
-
_ctx.hasPie ? (openBlock(), createBlock(_component_a_tab_pane, {
|
|
169
|
-
tab: "\u997C\u56FE",
|
|
170
|
-
key: "pie"
|
|
171
|
-
}, {
|
|
172
|
-
default: withCtx(() => [
|
|
173
|
-
createVNode(_component_Pie, normalizeProps(guardReactiveProps(_ctx.pieProps)), null, 16)
|
|
174
|
-
]),
|
|
175
|
-
_: 1
|
|
176
|
-
})) : createCommentVNode("", true)
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
}, 8, ["activeKey"])
|
|
180
|
-
])
|
|
181
|
-
]),
|
|
182
|
-
_: 1
|
|
183
|
-
}, 16),
|
|
184
|
-
_ctx.hasTable ? (openBlock(), createBlock(_component_a_card, normalizeProps(mergeProps({ key: 0 }, _ctx.tableCardProps)), {
|
|
185
|
-
default: withCtx(() => [
|
|
186
|
-
createVNode(_component_a_row, null, {
|
|
187
|
-
default: withCtx(() => [
|
|
188
|
-
createVNode(_component_a_col, { "ignore-print": true }, {
|
|
189
|
-
default: withCtx(() => [
|
|
190
|
-
createVNode(_component_a_button, mergeProps(_ctx.exportButtonProps, { onClick: _ctx.onExportXls }), {
|
|
191
|
-
default: withCtx(() => [
|
|
192
|
-
createTextVNode(toDisplayString(_ctx.exportButtonProps.text), 1)
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
}, 16, ["onClick"]),
|
|
196
|
-
createVNode(_component_a_switch, mergeProps(_ctx.pageSwitchProps, {
|
|
197
|
-
checked: _ctx.pageSwitch,
|
|
198
|
-
"onUpdate:checked": _cache[2] || (_cache[2] = ($event) => _ctx.pageSwitch = $event)
|
|
199
|
-
}), null, 16, ["checked"])
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}),
|
|
203
|
-
createVNode(_component_a_col, null, {
|
|
204
|
-
default: withCtx(() => [
|
|
205
|
-
createVNode(_component_a_table, normalizeProps(guardReactiveProps(_ctx.tableProps)), null, 16)
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
})
|
|
209
|
-
]),
|
|
210
|
-
_: 1
|
|
211
|
-
})
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
}, 16)) : createCommentVNode("", true)
|
|
215
|
-
], 8, _hoisted_1);
|
|
216
|
-
}
|
|
217
|
-
var ChartTabsRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
218
|
-
export { ChartTabsRender as default };
|
package/ErrorTip.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h } from "vue";
|
|
2
|
-
import { _ as _export_sfc } from "./index.js";
|
|
3
|
-
import "/@/components/jeecg/OnLine/JPopupOnlReport.vue";
|
|
4
|
-
import "/@/hooks/web/useMessage";
|
|
5
|
-
import "vue-router";
|
|
6
|
-
var ErrorTip_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
7
|
-
const _sfc_main = defineComponent({
|
|
8
|
-
name: "ErrorTip",
|
|
9
|
-
props: {
|
|
10
|
-
tip: String,
|
|
11
|
-
tag: { type: String, default: "div" }
|
|
12
|
-
},
|
|
13
|
-
render() {
|
|
14
|
-
var _a;
|
|
15
|
-
return h(this.tag, {
|
|
16
|
-
class: ["error-tip"]
|
|
17
|
-
}, h("span", {}, (_a = this.tip) != null ? _a : this.$slots.default));
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
var ErrorTip = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7e37d703"]]);
|
|
21
|
-
export { ErrorTip as default };
|