@jeecg/online 1.0.1
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 +140 -0
- package/AuthButtonTree.js +183 -0
- package/AuthDataConfig.js +243 -0
- package/AuthDataTree.js +160 -0
- package/AuthFieldConfig.js +167 -0
- package/AuthFieldTree.js +273 -0
- package/AuthManagerDrawer.js +125 -0
- package/AuthSetterModal.js +317 -0
- package/CgformCopyList.js +253 -0
- package/CgformModal.js +748 -0
- package/CgreportModal.js +673 -0
- package/ChartAutoRender.js +69 -0
- package/ChartDoubleRender.js +154 -0
- package/ChartSingleRender.js +132 -0
- package/ChartTabsRender.js +218 -0
- package/CheckDictTable.js +121 -0
- package/CodeGeneratorModal.js +293 -0
- package/CustomButtonList.js +413 -0
- package/DBAttributeTable.js +278 -0
- package/DbToOnlineModal.js +190 -0
- package/EnhanceJavaModal.js +304 -0
- package/EnhanceJsHistory.js +231 -0
- package/EnhanceJsModal.js +293 -0
- package/EnhanceSqlModal.js +305 -0
- package/ErrorTip.js +21 -0
- package/ExtendConfigModal.js +142 -0
- package/FieldTable.js +185 -0
- package/FileSelectModal.js +102 -0
- package/ForeignKeyTable.js +78 -0
- package/FormSchemaFactory.js +938 -0
- package/GraphreportAutoChart.js +352 -0
- package/GraphreportList.js +239 -0
- package/GraphreportModal.js +559 -0
- package/IndexTable.js +96 -0
- package/JOnlineSearchSelect.js +107 -0
- package/LICENSE +7 -0
- package/LeftDepart.js +96 -0
- package/LeftRole.js +95 -0
- package/LeftUser.js +114 -0
- package/ModalFormDemo.js +84 -0
- package/OnlineAutoList.js +410 -0
- package/OnlineAutoModal.js +265 -0
- package/OnlineAutoTreeList.js +513 -0
- package/OnlineCustomModal.js +269 -0
- package/OnlineForm.js +809 -0
- package/OnlineQueryForm.js +442 -0
- package/OnlineSearchFormItem.js +428 -0
- package/OnlineSelectCascade.js +217 -0
- package/OnlineSubForm.js +200 -0
- package/OnlineSuperQuery.js +912 -0
- package/OnlineSuperQueryValComponent.js +8 -0
- package/OnlineSuperQueryValComponent.vue_vue_type_script_lang.js +172 -0
- package/PageAttributeTable.js +242 -0
- package/ParamsTable.js +71 -0
- package/ProcessOnlineForm.js +183 -0
- package/QueryTable.js +128 -0
- package/README.md +23 -0
- package/_arrayPush.js +276 -0
- package/auth.api.js +43 -0
- package/auth.data.js +144 -0
- package/cgform.data.js +235 -0
- package/cloneDeep.js +475 -0
- package/enhance.api.js +120 -0
- package/enhance.data.js +196 -0
- package/graphreport.api.js +23 -0
- package/index.js +64 -0
- package/index2.js +336 -0
- package/index3.js +799 -0
- package/isArray.js +47 -0
- package/main.index.js +6 -0
- package/package.json +6 -0
- package/pick.js +238 -0
- package/style.css +1 -0
- package/toString.js +31 -0
- package/useAutoForm.js +4274 -0
- package/useCgformList.js +353 -0
- package/useChartRender.js +405 -0
- package/useMessageOnline.js +71 -0
- package/useOnlineTest.js +26866 -0
- package/useSchemas.js +505 -0
- package/useTableColumns.js +1154 -0
- package/useTableSync.js +105 -0
|
@@ -0,0 +1,69 @@
|
|
|
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 };
|
|
@@ -0,0 +1,154 @@
|
|
|
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 };
|
|
@@ -0,0 +1,132 @@
|
|
|
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 };
|
|
@@ -0,0 +1,218 @@
|
|
|
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 };
|