@topdatasec/report 1.0.7 → 1.0.9
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/dist/index.iife.js +2 -1
- package/dist/index.js +1914 -247
- package/dist/index.umd.cjs +2 -1
- package/dist/style.css +1 -1
- package/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/bar/Bar.vue.js +6 -8
- package/es/components.d.ts +13 -0
- package/es/components.js +28 -2
- package/es/config/Config.css +1 -0
- package/es/config/Config.d.ts +2 -0
- package/es/config/Config.vue.js +7 -0
- package/es/config/Config.vue2.js +207 -0
- package/es/config/index.d.ts +14 -0
- package/es/config/index.js +6 -0
- package/es/index.js +51 -25
- package/es/line/Line.d.ts +5 -0
- package/es/line/Line.vue.js +20 -0
- package/es/line/Line.vue2.js +4 -0
- package/es/line/index.d.ts +15 -0
- package/es/line/index.js +6 -0
- package/es/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +1 -0
- package/es/pie/Pie.d.ts +5 -0
- package/es/pie/Pie.vue.js +20 -0
- package/es/pie/Pie.vue2.js +4 -0
- package/es/pie/index.d.ts +15 -0
- package/es/pie/index.js +6 -0
- package/es/report/Report.d.ts +7 -0
- package/es/report/Report.vue.js +112 -0
- package/es/report/Report.vue2.js +4 -0
- package/es/report/index.d.ts +17 -0
- package/es/report/index.js +6 -0
- package/es/select/Select.d.ts +9 -0
- package/es/select/Select.vue.js +39 -0
- package/es/select/Select.vue2.js +4 -0
- package/es/select/index.d.ts +25 -0
- package/es/select/index.js +6 -0
- package/es/settingCharts/SettingCharts.d.ts +5 -0
- package/es/settingCharts/SettingCharts.vue.js +142 -0
- package/es/settingCharts/SettingCharts.vue2.js +4 -0
- package/es/settingCharts/index.d.ts +14 -0
- package/es/settingCharts/index.js +6 -0
- package/es/settingFilter/index.d.ts +15 -0
- package/es/settingFilter/index.js +6 -0
- package/es/settingFilter/settingFilter.d.ts +5 -0
- package/es/settingFilter/settingFilter.vue.js +62 -0
- package/es/settingFilter/settingFilter.vue2.js +4 -0
- package/es/settingTable/SettingTable.d.ts +2 -0
- package/es/settingTable/SettingTable.vue.js +59 -0
- package/es/settingTable/SettingTable.vue2.js +4 -0
- package/es/settingTable/index.d.ts +14 -0
- package/es/settingTable/index.js +6 -0
- package/es/settingText/index.d.ts +15 -0
- package/es/settingText/index.js +6 -0
- package/es/settingText/settingText.d.ts +5 -0
- package/es/settingText/settingText.vue.js +112 -0
- package/es/settingText/settingText.vue2.js +4 -0
- package/es/settingTitle/index.d.ts +14 -0
- package/es/settingTitle/index.js +6 -0
- package/es/settingTitle/settingTitle.css +1 -0
- package/es/settingTitle/settingTitle.d.ts +2 -0
- package/es/settingTitle/settingTitle.vue.js +7 -0
- package/es/settingTitle/settingTitle.vue2.js +137 -0
- package/es/stores/interface/index.d.ts +18 -0
- package/es/stores/modules/report.d.ts +35 -0
- package/es/stores/modules/report.js +45 -0
- package/es/table/Table.d.ts +5 -0
- package/es/table/Table.vue.js +26 -0
- package/es/table/Table.vue2.js +4 -0
- package/es/table/index.d.ts +15 -0
- package/es/table/index.js +6 -0
- package/es/text/Text.d.ts +5 -0
- package/es/text/Text.vue.js +27 -0
- package/es/text/Text.vue2.js +4 -0
- package/es/text/index.d.ts +15 -0
- package/es/text/index.js +6 -0
- package/es/time/Time.d.ts +9 -0
- package/es/time/Time.vue.js +35 -0
- package/es/time/Time.vue2.js +4 -0
- package/es/time/index.d.ts +25 -0
- package/es/time/index.js +6 -0
- package/es/utils/api.d.ts +12 -0
- package/es/utils/api.js +32 -0
- package/es/utils/chartsOption.d.ts +298 -0
- package/es/utils/chartsOption.js +501 -0
- package/es/utils/data.d.ts +4 -0
- package/es/utils/data.js +162 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +82 -79
- package/es/utils/resolver.js +28 -15
- package/lib/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/lib/bar/Bar.vue.cjs +1 -1
- package/lib/components.cjs +1 -1
- package/lib/components.d.ts +13 -0
- package/lib/config/Config.css +1 -0
- package/lib/config/Config.d.ts +2 -0
- package/lib/config/Config.vue.cjs +1 -0
- package/lib/config/Config.vue2.cjs +1 -0
- package/lib/config/index.cjs +1 -0
- package/lib/config/index.d.ts +14 -0
- package/lib/index.cjs +1 -1
- package/lib/line/Line.d.ts +5 -0
- package/lib/line/Line.vue.cjs +1 -0
- package/lib/line/Line.vue2.cjs +1 -0
- package/lib/line/index.cjs +1 -0
- package/lib/line/index.d.ts +15 -0
- package/lib/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +1 -0
- package/lib/pie/Pie.d.ts +5 -0
- package/lib/pie/Pie.vue.cjs +1 -0
- package/lib/pie/Pie.vue2.cjs +1 -0
- package/lib/pie/index.cjs +1 -0
- package/lib/pie/index.d.ts +15 -0
- package/lib/report/Report.d.ts +7 -0
- package/lib/report/Report.vue.cjs +1 -0
- package/lib/report/Report.vue2.cjs +1 -0
- package/lib/report/index.cjs +1 -0
- package/lib/report/index.d.ts +17 -0
- package/lib/select/Select.d.ts +9 -0
- package/lib/select/Select.vue.cjs +1 -0
- package/lib/select/Select.vue2.cjs +1 -0
- package/lib/select/index.cjs +1 -0
- package/lib/select/index.d.ts +25 -0
- package/lib/settingCharts/SettingCharts.d.ts +5 -0
- package/lib/settingCharts/SettingCharts.vue.cjs +1 -0
- package/lib/settingCharts/SettingCharts.vue2.cjs +1 -0
- package/lib/settingCharts/index.cjs +1 -0
- package/lib/settingCharts/index.d.ts +14 -0
- package/lib/settingFilter/index.cjs +1 -0
- package/lib/settingFilter/index.d.ts +15 -0
- package/lib/settingFilter/settingFilter.d.ts +5 -0
- package/lib/settingFilter/settingFilter.vue.cjs +1 -0
- package/lib/settingFilter/settingFilter.vue2.cjs +1 -0
- package/lib/settingTable/SettingTable.d.ts +2 -0
- package/lib/settingTable/SettingTable.vue.cjs +1 -0
- package/lib/settingTable/SettingTable.vue2.cjs +1 -0
- package/lib/settingTable/index.cjs +1 -0
- package/lib/settingTable/index.d.ts +14 -0
- package/lib/settingText/index.cjs +1 -0
- package/lib/settingText/index.d.ts +15 -0
- package/lib/settingText/settingText.d.ts +5 -0
- package/lib/settingText/settingText.vue.cjs +1 -0
- package/lib/settingText/settingText.vue2.cjs +1 -0
- package/lib/settingTitle/index.cjs +1 -0
- package/lib/settingTitle/index.d.ts +14 -0
- package/lib/settingTitle/settingTitle.css +1 -0
- package/lib/settingTitle/settingTitle.d.ts +2 -0
- package/lib/settingTitle/settingTitle.vue.cjs +1 -0
- package/lib/settingTitle/settingTitle.vue2.cjs +1 -0
- package/lib/stores/interface/index.d.ts +18 -0
- package/lib/stores/modules/report.cjs +1 -0
- package/lib/stores/modules/report.d.ts +35 -0
- package/lib/table/Table.d.ts +5 -0
- package/lib/table/Table.vue.cjs +1 -0
- package/lib/table/Table.vue2.cjs +1 -0
- package/lib/table/index.cjs +1 -0
- package/lib/table/index.d.ts +15 -0
- package/lib/text/Text.d.ts +5 -0
- package/lib/text/Text.vue.cjs +1 -0
- package/lib/text/Text.vue2.cjs +1 -0
- package/lib/text/index.cjs +1 -0
- package/lib/text/index.d.ts +15 -0
- package/lib/time/Time.d.ts +9 -0
- package/lib/time/Time.vue.cjs +1 -0
- package/lib/time/Time.vue2.cjs +1 -0
- package/lib/time/index.cjs +1 -0
- package/lib/time/index.d.ts +25 -0
- package/lib/utils/api.cjs +1 -0
- package/lib/utils/api.d.ts +12 -0
- package/lib/utils/chartsOption.cjs +2 -0
- package/lib/utils/chartsOption.d.ts +298 -0
- package/lib/utils/data.cjs +1 -0
- package/lib/utils/data.d.ts +4 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/resolver.cjs +1 -1
- package/package.json +9 -4
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as v, computed as V, resolveComponent as a, createElementBlock as i, openBlock as m, createVNode as t, withCtx as u, Fragment as f, renderList as w, createElementVNode as n, toDisplayString as b } from "vue";
|
|
2
|
+
import { useReportStore as C } from "../stores/modules/report.js";
|
|
3
|
+
const x = { class: "label" }, g = { class: "flex item-switch" }, h = { class: "flex item-switch" }, k = { class: "flex item-switch" }, B = /* @__PURE__ */ v({
|
|
4
|
+
name: "TdsSettingTable",
|
|
5
|
+
__name: "SettingTable",
|
|
6
|
+
setup(S) {
|
|
7
|
+
const d = C(), o = V(() => d.getActiveComponents);
|
|
8
|
+
return (U, e) => {
|
|
9
|
+
const s = a("el-switch"), p = a("el-form-item"), r = a("el-divider");
|
|
10
|
+
return m(), i("div", null, [
|
|
11
|
+
t(p, { label: "控制列" }, {
|
|
12
|
+
default: u(() => [
|
|
13
|
+
(m(!0), i(f, null, w(o.value.showColumn, (l, _) => (m(), i("p", {
|
|
14
|
+
class: "flex item-switch",
|
|
15
|
+
key: _
|
|
16
|
+
}, [
|
|
17
|
+
n("span", x, b(l.name), 1),
|
|
18
|
+
t(s, {
|
|
19
|
+
modelValue: o.value.options.showColumn[l.key],
|
|
20
|
+
"onUpdate:modelValue": (c) => o.value.options.showColumn[l.key] = c
|
|
21
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
22
|
+
]))), 128))
|
|
23
|
+
]),
|
|
24
|
+
_: 1
|
|
25
|
+
}),
|
|
26
|
+
t(r),
|
|
27
|
+
t(p, { label: "表格样式" }, {
|
|
28
|
+
default: u(() => [
|
|
29
|
+
n("p", g, [
|
|
30
|
+
e[3] || (e[3] = n("span", { class: "label" }, "斑马纹", -1)),
|
|
31
|
+
t(s, {
|
|
32
|
+
modelValue: o.value.options.stripe,
|
|
33
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o.value.options.stripe = l)
|
|
34
|
+
}, null, 8, ["modelValue"])
|
|
35
|
+
]),
|
|
36
|
+
n("p", h, [
|
|
37
|
+
e[4] || (e[4] = n("span", { class: "label" }, "边框", -1)),
|
|
38
|
+
t(s, {
|
|
39
|
+
modelValue: o.value.options.border,
|
|
40
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => o.value.options.border = l)
|
|
41
|
+
}, null, 8, ["modelValue"])
|
|
42
|
+
]),
|
|
43
|
+
n("p", k, [
|
|
44
|
+
e[5] || (e[5] = n("span", { class: "label" }, "表头", -1)),
|
|
45
|
+
t(s, {
|
|
46
|
+
modelValue: o.value.options.showHeader,
|
|
47
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => o.value.options.showHeader = l)
|
|
48
|
+
}, null, 8, ["modelValue"])
|
|
49
|
+
])
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
B as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: never;
|
|
11
|
+
__isTeleport?: never;
|
|
12
|
+
__isSuspense?: never;
|
|
13
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { Props } from './settingText';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
4
|
+
P: {};
|
|
5
|
+
B: {};
|
|
6
|
+
D: {};
|
|
7
|
+
C: {};
|
|
8
|
+
M: {};
|
|
9
|
+
Defaults: {};
|
|
10
|
+
}, Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
+
__isFragment?: never;
|
|
12
|
+
__isTeleport?: never;
|
|
13
|
+
__isSuspense?: never;
|
|
14
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type Props = {
|
|
2
|
+
prodType: number | string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { defineComponent as T, shallowRef as k, ref as w, onBeforeUnmount as S, resolveComponent as a, createElementBlock as p, createCommentVNode as j, unref as n, openBlock as m, createVNode as r, withCtx as d, Fragment as B, renderList as E, createBlock as F, createElementVNode as N } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { Toolbar as U, Editor as H } from "@wangeditor/editor-for-vue";
|
|
4
|
+
import { getReportItemApi as I } from "../utils/api.js";
|
|
5
|
+
import { useReportStore as O } from "../stores/modules/report.js";
|
|
6
|
+
const z = { key: 0 }, A = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, f = "default", M = /* @__PURE__ */ T({
|
|
7
|
+
name: "TdsSettingText",
|
|
8
|
+
__name: "settingText",
|
|
9
|
+
props: {
|
|
10
|
+
prodType: {}
|
|
11
|
+
},
|
|
12
|
+
setup(_) {
|
|
13
|
+
const y = _, o = O(), i = k(), u = w();
|
|
14
|
+
function C(e) {
|
|
15
|
+
const t = u.value.find((s) => s.rp_item_uuid === e);
|
|
16
|
+
o.activeComponents.uri = t.rp_item_content.uri, i.value.setHtml((t == null ? void 0 : t.rp_item_content.data) || "");
|
|
17
|
+
}
|
|
18
|
+
async function v() {
|
|
19
|
+
const e = await I({
|
|
20
|
+
prod_type: y.prodType,
|
|
21
|
+
chart_type: "p",
|
|
22
|
+
filter_uuid: o.filterForm.filter_uuid
|
|
23
|
+
});
|
|
24
|
+
u.value = e.data;
|
|
25
|
+
}
|
|
26
|
+
v();
|
|
27
|
+
const h = {
|
|
28
|
+
toolbarKeys: [
|
|
29
|
+
"bold",
|
|
30
|
+
"underline",
|
|
31
|
+
"italic",
|
|
32
|
+
"through",
|
|
33
|
+
"code",
|
|
34
|
+
"bulletedList",
|
|
35
|
+
// 无序列表
|
|
36
|
+
"numberedList",
|
|
37
|
+
// 有序列表
|
|
38
|
+
"clearStyle",
|
|
39
|
+
"color",
|
|
40
|
+
"bgColor",
|
|
41
|
+
"fontSize",
|
|
42
|
+
"fontFamily",
|
|
43
|
+
"justifyLeft",
|
|
44
|
+
"justifyRight",
|
|
45
|
+
"justifyCenter",
|
|
46
|
+
"justifyJustify",
|
|
47
|
+
"lineHeight"
|
|
48
|
+
]
|
|
49
|
+
}, b = { placeholder: "请输入内容..." }, g = (e) => {
|
|
50
|
+
i.value = e;
|
|
51
|
+
}, V = (e) => {
|
|
52
|
+
};
|
|
53
|
+
return S(() => {
|
|
54
|
+
const e = i.value;
|
|
55
|
+
e != null && e.destroy();
|
|
56
|
+
}), (e, t) => {
|
|
57
|
+
const s = a("el-option"), x = a("el-select"), c = a("el-form-item"), L = a("el-form");
|
|
58
|
+
return n(o).activeComponents.id ? (m(), p("div", z, [
|
|
59
|
+
r(L, { "label-position": "top" }, {
|
|
60
|
+
default: d(() => [
|
|
61
|
+
r(c, { label: "组件库" }, {
|
|
62
|
+
default: d(() => [
|
|
63
|
+
r(x, {
|
|
64
|
+
style: { width: "100%" },
|
|
65
|
+
modelValue: n(o).activeComponents.rp_item_uuid,
|
|
66
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => n(o).activeComponents.rp_item_uuid = l),
|
|
67
|
+
onChange: C
|
|
68
|
+
}, {
|
|
69
|
+
default: d(() => [
|
|
70
|
+
(m(!0), p(B, null, E(u.value, (l, R) => (m(), F(s, {
|
|
71
|
+
key: R,
|
|
72
|
+
label: l.rp_item_name,
|
|
73
|
+
value: l.rp_item_uuid
|
|
74
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}, 8, ["modelValue"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}),
|
|
81
|
+
r(c, { label: "文本内容" }, {
|
|
82
|
+
default: d(() => [
|
|
83
|
+
N("div", A, [
|
|
84
|
+
r(n(U), {
|
|
85
|
+
style: { "border-bottom": "1px solid #ccc" },
|
|
86
|
+
editor: i.value,
|
|
87
|
+
"default-config": h,
|
|
88
|
+
mode: f
|
|
89
|
+
}, null, 8, ["editor"]),
|
|
90
|
+
r(n(H), {
|
|
91
|
+
style: { height: "500px", "overflow-y": "hidden" },
|
|
92
|
+
onOnChange: V,
|
|
93
|
+
modelValue: n(o).activeComponents.data,
|
|
94
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => n(o).activeComponents.data = l),
|
|
95
|
+
"default-config": b,
|
|
96
|
+
mode: f,
|
|
97
|
+
onOnCreated: g
|
|
98
|
+
}, null, 8, ["modelValue"])
|
|
99
|
+
])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
})
|
|
106
|
+
])) : j("", !0);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
export {
|
|
111
|
+
M as default
|
|
112
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
+
P: {};
|
|
4
|
+
B: {};
|
|
5
|
+
D: {};
|
|
6
|
+
C: {};
|
|
7
|
+
M: {};
|
|
8
|
+
Defaults: {};
|
|
9
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
+
__isFragment?: never;
|
|
11
|
+
__isTeleport?: never;
|
|
12
|
+
__isSuspense?: never;
|
|
13
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[data-v-86e0f9f6] .el-color-picker{width:100%}[data-v-86e0f9f6] .el-color-picker .el-color-picker__trigger{width:100%;top:1px}[data-v-86e0f9f6] .el-input-number{width:100%}.sub-title[data-v-86e0f9f6]{color:#555;font-size:12px;padding-left:5px;height:20px;line-height:20px;margin-bottom:10px}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { defineComponent as b, resolveComponent as s, createBlock as C, openBlock as c, withCtx as p, createVNode as o, unref as l, createElementVNode as i } from "vue";
|
|
2
|
+
import { useReportStore as g } from "../stores/modules/report.js";
|
|
3
|
+
const k = /* @__PURE__ */ b({
|
|
4
|
+
name: "TdsSettingTitle",
|
|
5
|
+
__name: "settingTitle",
|
|
6
|
+
setup(x) {
|
|
7
|
+
const t = g();
|
|
8
|
+
return (w, e) => {
|
|
9
|
+
const f = s("el-input"), d = s("el-form-item"), _ = s("el-color-picker"), a = s("el-col"), u = s("el-input-number"), m = s("el-option"), r = s("el-select"), V = s("el-row"), v = s("el-form");
|
|
10
|
+
return c(), C(v, {
|
|
11
|
+
"label-width": "auto",
|
|
12
|
+
"label-position": "top"
|
|
13
|
+
}, {
|
|
14
|
+
default: p(() => [
|
|
15
|
+
o(d, { label: "名称" }, {
|
|
16
|
+
default: p(() => [
|
|
17
|
+
o(f, {
|
|
18
|
+
modelValue: l(t).activeComponents.data,
|
|
19
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => l(t).activeComponents.data = n),
|
|
20
|
+
placeholder: "Please input",
|
|
21
|
+
maxlength: "24",
|
|
22
|
+
"show-word-limit": ""
|
|
23
|
+
}, null, 8, ["modelValue"])
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
}),
|
|
27
|
+
o(d, { label: "样式" }, {
|
|
28
|
+
default: p(() => [
|
|
29
|
+
o(V, { gutter: 20 }, {
|
|
30
|
+
default: p(() => [
|
|
31
|
+
o(a, { span: 12 }, {
|
|
32
|
+
default: p(() => [
|
|
33
|
+
o(_, {
|
|
34
|
+
modelValue: l(t).activeComponents.options.color,
|
|
35
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => l(t).activeComponents.options.color = n),
|
|
36
|
+
"show-alpha": ""
|
|
37
|
+
}, null, 8, ["modelValue"]),
|
|
38
|
+
e[7] || (e[7] = i("p", { class: "sub-title" }, "颜色", -1))
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}),
|
|
42
|
+
o(a, { span: 12 }, {
|
|
43
|
+
default: p(() => [
|
|
44
|
+
o(u, {
|
|
45
|
+
modelValue: l(t).activeComponents.options.size,
|
|
46
|
+
"onUpdate:modelValue": e[2] || (e[2] = (n) => l(t).activeComponents.options.size = n),
|
|
47
|
+
"controls-position": "right"
|
|
48
|
+
}, null, 8, ["modelValue"]),
|
|
49
|
+
e[8] || (e[8] = i("p", { class: "sub-title" }, "字体大小", -1))
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
}),
|
|
53
|
+
o(a, { span: 12 }, {
|
|
54
|
+
default: p(() => [
|
|
55
|
+
o(r, {
|
|
56
|
+
modelValue: l(t).activeComponents.options.fontWeight,
|
|
57
|
+
"onUpdate:modelValue": e[3] || (e[3] = (n) => l(t).activeComponents.options.fontWeight = n)
|
|
58
|
+
}, {
|
|
59
|
+
default: p(() => [
|
|
60
|
+
o(m, {
|
|
61
|
+
label: "常规",
|
|
62
|
+
value: 500
|
|
63
|
+
}),
|
|
64
|
+
o(m, {
|
|
65
|
+
label: "加粗",
|
|
66
|
+
value: 600
|
|
67
|
+
})
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["modelValue"]),
|
|
71
|
+
e[9] || (e[9] = i("p", { class: "sub-title" }, "字体粗细", -1))
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}),
|
|
75
|
+
o(a, { span: 12 }, {
|
|
76
|
+
default: p(() => [
|
|
77
|
+
o(u, {
|
|
78
|
+
modelValue: l(t).activeComponents.options.letterSpacing,
|
|
79
|
+
"onUpdate:modelValue": e[4] || (e[4] = (n) => l(t).activeComponents.options.letterSpacing = n),
|
|
80
|
+
"controls-position": "right"
|
|
81
|
+
}, null, 8, ["modelValue"]),
|
|
82
|
+
e[10] || (e[10] = i("p", { class: "sub-title" }, "字间距", -1))
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}),
|
|
86
|
+
o(a, { span: 12 }, {
|
|
87
|
+
default: p(() => [
|
|
88
|
+
o(u, {
|
|
89
|
+
modelValue: l(t).activeComponents.options.textIndent,
|
|
90
|
+
"onUpdate:modelValue": e[5] || (e[5] = (n) => l(t).activeComponents.options.textIndent = n),
|
|
91
|
+
"controls-position": "right"
|
|
92
|
+
}, null, 8, ["modelValue"]),
|
|
93
|
+
e[11] || (e[11] = i("p", { class: "sub-title" }, "首行缩进", -1))
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
}),
|
|
97
|
+
o(a, { span: 12 }, {
|
|
98
|
+
default: p(() => [
|
|
99
|
+
o(r, {
|
|
100
|
+
modelValue: l(t).activeComponents.options.textAlign,
|
|
101
|
+
"onUpdate:modelValue": e[6] || (e[6] = (n) => l(t).activeComponents.options.textAlign = n)
|
|
102
|
+
}, {
|
|
103
|
+
default: p(() => [
|
|
104
|
+
o(m, {
|
|
105
|
+
label: "左对齐",
|
|
106
|
+
value: "left"
|
|
107
|
+
}),
|
|
108
|
+
o(m, {
|
|
109
|
+
label: "居中对齐",
|
|
110
|
+
value: "center"
|
|
111
|
+
}),
|
|
112
|
+
o(m, {
|
|
113
|
+
label: "右对齐",
|
|
114
|
+
value: "right"
|
|
115
|
+
})
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}, 8, ["modelValue"]),
|
|
119
|
+
e[12] || (e[12] = i("p", { class: "sub-title" }, "位置", -1))
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
})
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
})
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
})
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
export {
|
|
136
|
+
k as default
|
|
137
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ContentType {
|
|
2
|
+
type: string;
|
|
3
|
+
id: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
hide?: boolean;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
showColumn?: any;
|
|
8
|
+
data: any;
|
|
9
|
+
options?: any;
|
|
10
|
+
rp_item_uuid?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ReportState {
|
|
13
|
+
componentList: ContentType[];
|
|
14
|
+
activeComponents: any;
|
|
15
|
+
notDraggableList: ContentType[];
|
|
16
|
+
filterForm?: any;
|
|
17
|
+
titleComponent: any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReportState, ContentType } from '../interface';
|
|
2
|
+
export declare const useReportStore: import('pinia').StoreDefinition<"tds-report", ReportState, {
|
|
3
|
+
getActiveComponents: (state: {
|
|
4
|
+
componentList: {
|
|
5
|
+
type: string;
|
|
6
|
+
id: string;
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
hide?: boolean | undefined;
|
|
9
|
+
active?: boolean | undefined;
|
|
10
|
+
showColumn?: any;
|
|
11
|
+
data: any;
|
|
12
|
+
options?: any;
|
|
13
|
+
rp_item_uuid?: string | undefined;
|
|
14
|
+
}[];
|
|
15
|
+
activeComponents: any;
|
|
16
|
+
notDraggableList: {
|
|
17
|
+
type: string;
|
|
18
|
+
id: string;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
hide?: boolean | undefined;
|
|
21
|
+
active?: boolean | undefined;
|
|
22
|
+
showColumn?: any;
|
|
23
|
+
data: any;
|
|
24
|
+
options?: any;
|
|
25
|
+
rp_item_uuid?: string | undefined;
|
|
26
|
+
}[];
|
|
27
|
+
filterForm?: any;
|
|
28
|
+
titleComponent: any;
|
|
29
|
+
} & import('pinia').PiniaCustomStateProperties<ReportState>) => any;
|
|
30
|
+
}, {
|
|
31
|
+
setComponentList(list: ContentType[]): void;
|
|
32
|
+
getReportDemo(reportId?: string): Promise<void>;
|
|
33
|
+
setActiveComponents(item: any): void;
|
|
34
|
+
clearComponents(): void;
|
|
35
|
+
}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineStore as n } from "pinia";
|
|
2
|
+
import { getReportDemoApi as r } from "../../utils/api.js";
|
|
3
|
+
import { deepClone as s, getUniId as p } from "../../utils/index.js";
|
|
4
|
+
import { normalValue as a } from "../../utils/data.js";
|
|
5
|
+
const f = n("tds-report", {
|
|
6
|
+
state: () => ({
|
|
7
|
+
componentList: [],
|
|
8
|
+
activeComponents: {},
|
|
9
|
+
notDraggableList: [],
|
|
10
|
+
titleComponent: {},
|
|
11
|
+
filterForm: {
|
|
12
|
+
range_time: 1,
|
|
13
|
+
filter_uuid: ""
|
|
14
|
+
}
|
|
15
|
+
}),
|
|
16
|
+
getters: {
|
|
17
|
+
getActiveComponents: (t) => t.activeComponents
|
|
18
|
+
},
|
|
19
|
+
actions: {
|
|
20
|
+
// setComponentList
|
|
21
|
+
setComponentList(t) {
|
|
22
|
+
this.componentList = t;
|
|
23
|
+
},
|
|
24
|
+
async getReportDemo(t) {
|
|
25
|
+
let e = [];
|
|
26
|
+
t ? e = (await r({ report_uuid: t })).data : e = { content: s(a), range_time: 1 };
|
|
27
|
+
const i = [];
|
|
28
|
+
e.content.forEach((o) => {
|
|
29
|
+
(o.type === "report-select" || o.type === "range-time") && i.push(o), o.type === "h1" && (this.titleComponent = o), o.id = p();
|
|
30
|
+
}), this.notDraggableList = i, this.filterForm.range_time = e.range_time, this.filterForm.filter_uuid = e.filter_uuid, e.content.splice(0, 3), this.componentList = e.content;
|
|
31
|
+
},
|
|
32
|
+
setActiveComponents(t) {
|
|
33
|
+
this.activeComponents = t;
|
|
34
|
+
},
|
|
35
|
+
clearComponents() {
|
|
36
|
+
this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
|
|
37
|
+
range_time: 1,
|
|
38
|
+
filter_uuid: ""
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
f as useReportStore
|
|
45
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type Props = {
|
|
2
|
+
data: any;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as n, createElementBlock as l, openBlock as s, createVNode as d, normalizeProps as p, guardReactiveProps as i } from "vue";
|
|
2
|
+
const m = /* @__PURE__ */ n({
|
|
3
|
+
name: "TdsReportTable",
|
|
4
|
+
__name: "Table",
|
|
5
|
+
props: {
|
|
6
|
+
data: {}
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const e = o, r = (a) => /* @__PURE__ */ React.createElement(
|
|
10
|
+
"el-table",
|
|
11
|
+
{
|
|
12
|
+
data: a.data,
|
|
13
|
+
border: e.data.options.border,
|
|
14
|
+
"show-header": !!e.data.options.showHeader,
|
|
15
|
+
stripe: e.data.options.stripe
|
|
16
|
+
},
|
|
17
|
+
a.showColumn.map((t) => e.data.options.showColumn[t.key] === !0 ? /* @__PURE__ */ React.createElement("el-table-column", { prop: t.key, label: t.name }) : null)
|
|
18
|
+
);
|
|
19
|
+
return (a, t) => (s(), l("div", null, [
|
|
20
|
+
d(r, p(i(a.data)), null, 16)
|
|
21
|
+
]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
m as default
|
|
26
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { Props } from './Table';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Table').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
+
P: {};
|
|
5
|
+
B: {};
|
|
6
|
+
D: {};
|
|
7
|
+
C: {};
|
|
8
|
+
M: {};
|
|
9
|
+
Defaults: {};
|
|
10
|
+
}, Readonly<import('./Table').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
+
__isFragment?: never;
|
|
12
|
+
__isTeleport?: never;
|
|
13
|
+
__isSuspense?: never;
|
|
14
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./Table').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type Props = {
|
|
2
|
+
data: any;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as a, createElementBlock as i, openBlock as r, normalizeStyle as p, toDisplayString as s } from "vue";
|
|
2
|
+
const d = /* @__PURE__ */ a({
|
|
3
|
+
name: "TdsReportText",
|
|
4
|
+
__name: "Text",
|
|
5
|
+
props: {
|
|
6
|
+
data: {}
|
|
7
|
+
},
|
|
8
|
+
setup(e) {
|
|
9
|
+
const n = e, o = () => {
|
|
10
|
+
const t = n.data.options || {};
|
|
11
|
+
return {
|
|
12
|
+
color: t.color,
|
|
13
|
+
"font-size": t.size + "px",
|
|
14
|
+
"font-weight": t.fontWeight,
|
|
15
|
+
"letter-spacing": t.letterSpacing + "px",
|
|
16
|
+
"text-indent": t.textIndent + "px",
|
|
17
|
+
"text-align": t.textAlign
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
return (t, c) => (r(), i("div", {
|
|
21
|
+
style: p(o())
|
|
22
|
+
}, s(t.data.data), 5));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
d as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { Props } from './Text';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Text').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
+
P: {};
|
|
5
|
+
B: {};
|
|
6
|
+
D: {};
|
|
7
|
+
C: {};
|
|
8
|
+
M: {};
|
|
9
|
+
Defaults: {};
|
|
10
|
+
}, Readonly<import('./Text').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
+
__isFragment?: never;
|
|
12
|
+
__isTeleport?: never;
|
|
13
|
+
__isSuspense?: never;
|
|
14
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./Text').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
+
export default _default;
|