@topdatasec/report 1.0.9 → 1.0.11
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/LICENSE +21 -0
- package/README.md +218 -0
- package/lib/style.css +1 -0
- package/lib/t-report-ui.es.js +26420 -0
- package/lib/t-report-ui.umd.js +205 -0
- package/package.json +66 -88
- package/README.zh-CN.md +0 -0
- package/dist/index.iife.js +0 -2
- package/dist/index.js +0 -2041
- package/dist/index.umd.cjs +0 -2
- package/dist/style.css +0 -1
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/bar/Bar.d.ts +0 -5
- package/es/bar/Bar.vue.js +0 -20
- package/es/bar/Bar.vue2.js +0 -4
- package/es/bar/index.d.ts +0 -15
- package/es/bar/index.js +0 -6
- package/es/components.d.ts +0 -15
- package/es/components.js +0 -30
- package/es/config/Config.css +0 -1
- package/es/config/Config.d.ts +0 -2
- package/es/config/Config.vue.js +0 -7
- package/es/config/Config.vue2.js +0 -207
- package/es/config/index.d.ts +0 -14
- package/es/config/index.js +0 -6
- package/es/index.d.ts +0 -10
- package/es/index.js +0 -60
- package/es/line/Line.d.ts +0 -5
- package/es/line/Line.vue.js +0 -20
- package/es/line/Line.vue2.js +0 -4
- package/es/line/index.d.ts +0 -15
- package/es/line/index.js +0 -6
- package/es/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/es/pie/Pie.d.ts +0 -5
- package/es/pie/Pie.vue.js +0 -20
- package/es/pie/Pie.vue2.js +0 -4
- package/es/pie/index.d.ts +0 -15
- package/es/pie/index.js +0 -6
- package/es/report/Report.d.ts +0 -7
- package/es/report/Report.vue.js +0 -112
- package/es/report/Report.vue2.js +0 -4
- package/es/report/index.d.ts +0 -17
- package/es/report/index.js +0 -6
- package/es/select/Select.d.ts +0 -9
- package/es/select/Select.vue.js +0 -39
- package/es/select/Select.vue2.js +0 -4
- package/es/select/index.d.ts +0 -25
- package/es/select/index.js +0 -6
- package/es/settingCharts/SettingCharts.d.ts +0 -5
- package/es/settingCharts/SettingCharts.vue.js +0 -142
- package/es/settingCharts/SettingCharts.vue2.js +0 -4
- package/es/settingCharts/index.d.ts +0 -14
- package/es/settingCharts/index.js +0 -6
- package/es/settingFilter/index.d.ts +0 -15
- package/es/settingFilter/index.js +0 -6
- package/es/settingFilter/settingFilter.d.ts +0 -5
- package/es/settingFilter/settingFilter.vue.js +0 -62
- package/es/settingFilter/settingFilter.vue2.js +0 -4
- package/es/settingTable/SettingTable.d.ts +0 -2
- package/es/settingTable/SettingTable.vue.js +0 -59
- package/es/settingTable/SettingTable.vue2.js +0 -4
- package/es/settingTable/index.d.ts +0 -14
- package/es/settingTable/index.js +0 -6
- package/es/settingText/index.d.ts +0 -15
- package/es/settingText/index.js +0 -6
- package/es/settingText/settingText.d.ts +0 -5
- package/es/settingText/settingText.vue.js +0 -112
- package/es/settingText/settingText.vue2.js +0 -4
- package/es/settingTitle/index.d.ts +0 -14
- package/es/settingTitle/index.js +0 -6
- package/es/settingTitle/settingTitle.css +0 -1
- package/es/settingTitle/settingTitle.d.ts +0 -2
- package/es/settingTitle/settingTitle.vue.js +0 -7
- package/es/settingTitle/settingTitle.vue2.js +0 -137
- package/es/stores/interface/index.d.ts +0 -18
- package/es/stores/modules/report.d.ts +0 -35
- package/es/stores/modules/report.js +0 -45
- package/es/style/global.css +0 -1
- package/es/table/Table.d.ts +0 -5
- package/es/table/Table.vue.js +0 -26
- package/es/table/Table.vue2.js +0 -4
- package/es/table/index.d.ts +0 -15
- package/es/table/index.js +0 -6
- package/es/text/Text.d.ts +0 -5
- package/es/text/Text.vue.js +0 -27
- package/es/text/Text.vue2.js +0 -4
- package/es/text/index.d.ts +0 -15
- package/es/text/index.js +0 -6
- package/es/time/Time.d.ts +0 -9
- package/es/time/Time.vue.js +0 -35
- package/es/time/Time.vue2.js +0 -4
- package/es/time/index.d.ts +0 -25
- package/es/time/index.js +0 -6
- package/es/utils/api.d.ts +0 -12
- package/es/utils/api.js +0 -32
- package/es/utils/chartsOption.d.ts +0 -298
- package/es/utils/chartsOption.js +0 -501
- package/es/utils/data.d.ts +0 -4
- package/es/utils/data.js +0 -162
- package/es/utils/index.d.ts +0 -43
- package/es/utils/index.js +0 -309
- package/es/utils/resolver.d.ts +0 -11
- package/es/utils/resolver.js +0 -49
- package/es/utils/type.d.ts +0 -2
- package/es/utils/type.js +0 -9
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -1
- package/lib/bar/Bar.d.ts +0 -5
- package/lib/bar/Bar.vue.cjs +0 -1
- package/lib/bar/Bar.vue2.cjs +0 -1
- package/lib/bar/index.cjs +0 -1
- package/lib/bar/index.d.ts +0 -15
- package/lib/components.cjs +0 -1
- package/lib/components.d.ts +0 -15
- package/lib/config/Config.css +0 -1
- package/lib/config/Config.d.ts +0 -2
- package/lib/config/Config.vue.cjs +0 -1
- package/lib/config/Config.vue2.cjs +0 -1
- package/lib/config/index.cjs +0 -1
- package/lib/config/index.d.ts +0 -14
- package/lib/index.cjs +0 -1
- package/lib/index.d.ts +0 -10
- package/lib/line/Line.d.ts +0 -5
- package/lib/line/Line.vue.cjs +0 -1
- package/lib/line/Line.vue2.cjs +0 -1
- package/lib/line/index.cjs +0 -1
- package/lib/line/index.d.ts +0 -15
- package/lib/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/lib/pie/Pie.d.ts +0 -5
- package/lib/pie/Pie.vue.cjs +0 -1
- package/lib/pie/Pie.vue2.cjs +0 -1
- package/lib/pie/index.cjs +0 -1
- package/lib/pie/index.d.ts +0 -15
- package/lib/report/Report.d.ts +0 -7
- package/lib/report/Report.vue.cjs +0 -1
- package/lib/report/Report.vue2.cjs +0 -1
- package/lib/report/index.cjs +0 -1
- package/lib/report/index.d.ts +0 -17
- package/lib/select/Select.d.ts +0 -9
- package/lib/select/Select.vue.cjs +0 -1
- package/lib/select/Select.vue2.cjs +0 -1
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.d.ts +0 -25
- package/lib/settingCharts/SettingCharts.d.ts +0 -5
- package/lib/settingCharts/SettingCharts.vue.cjs +0 -1
- package/lib/settingCharts/SettingCharts.vue2.cjs +0 -1
- package/lib/settingCharts/index.cjs +0 -1
- package/lib/settingCharts/index.d.ts +0 -14
- package/lib/settingFilter/index.cjs +0 -1
- package/lib/settingFilter/index.d.ts +0 -15
- package/lib/settingFilter/settingFilter.d.ts +0 -5
- package/lib/settingFilter/settingFilter.vue.cjs +0 -1
- package/lib/settingFilter/settingFilter.vue2.cjs +0 -1
- package/lib/settingTable/SettingTable.d.ts +0 -2
- package/lib/settingTable/SettingTable.vue.cjs +0 -1
- package/lib/settingTable/SettingTable.vue2.cjs +0 -1
- package/lib/settingTable/index.cjs +0 -1
- package/lib/settingTable/index.d.ts +0 -14
- package/lib/settingText/index.cjs +0 -1
- package/lib/settingText/index.d.ts +0 -15
- package/lib/settingText/settingText.d.ts +0 -5
- package/lib/settingText/settingText.vue.cjs +0 -1
- package/lib/settingText/settingText.vue2.cjs +0 -1
- package/lib/settingTitle/index.cjs +0 -1
- package/lib/settingTitle/index.d.ts +0 -14
- package/lib/settingTitle/settingTitle.css +0 -1
- package/lib/settingTitle/settingTitle.d.ts +0 -2
- package/lib/settingTitle/settingTitle.vue.cjs +0 -1
- package/lib/settingTitle/settingTitle.vue2.cjs +0 -1
- package/lib/stores/interface/index.d.ts +0 -18
- package/lib/stores/modules/report.cjs +0 -1
- package/lib/stores/modules/report.d.ts +0 -35
- package/lib/style/global.css +0 -1
- package/lib/table/Table.d.ts +0 -5
- package/lib/table/Table.vue.cjs +0 -1
- package/lib/table/Table.vue2.cjs +0 -1
- package/lib/table/index.cjs +0 -1
- package/lib/table/index.d.ts +0 -15
- package/lib/text/Text.d.ts +0 -5
- package/lib/text/Text.vue.cjs +0 -1
- package/lib/text/Text.vue2.cjs +0 -1
- package/lib/text/index.cjs +0 -1
- package/lib/text/index.d.ts +0 -15
- package/lib/time/Time.d.ts +0 -9
- package/lib/time/Time.vue.cjs +0 -1
- package/lib/time/Time.vue2.cjs +0 -1
- package/lib/time/index.cjs +0 -1
- package/lib/time/index.d.ts +0 -25
- package/lib/utils/api.cjs +0 -1
- package/lib/utils/api.d.ts +0 -12
- package/lib/utils/chartsOption.cjs +0 -2
- package/lib/utils/chartsOption.d.ts +0 -298
- package/lib/utils/data.cjs +0 -1
- package/lib/utils/data.d.ts +0 -4
- package/lib/utils/index.cjs +0 -1
- package/lib/utils/index.d.ts +0 -43
- package/lib/utils/resolver.cjs +0 -1
- package/lib/utils/resolver.d.ts +0 -11
- package/lib/utils/type.cjs +0 -1
- package/lib/utils/type.d.ts +0 -2
package/lib/report/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Report.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/report/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Report';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Report').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
4
|
-
proTable: unknown;
|
|
5
|
-
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
6
|
-
P: {};
|
|
7
|
-
B: {};
|
|
8
|
-
D: {};
|
|
9
|
-
C: {};
|
|
10
|
-
M: {};
|
|
11
|
-
Defaults: {};
|
|
12
|
-
}, Readonly<import('./Report').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
13
|
-
__isFragment?: never;
|
|
14
|
-
__isTeleport?: never;
|
|
15
|
-
__isSuspense?: never;
|
|
16
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Report').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;
|
|
17
|
-
export default _default;
|
package/lib/select/Select.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
-
change: (...args: any[]) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m={key:0},i=e.defineComponent({name:"TdsReportSelect",__name:"Select",props:{data:{}},emits:["change"],setup(a,{emit:c}){const r=c,u=o=>{r("change",o)},s=a,l=e.ref(s.data);return(o,n)=>{const d=e.resolveComponent("el-option"),p=e.resolveComponent("el-select");return l.value.data?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(p,{modelValue:l.value.value,"onUpdate:modelValue":n[0]||(n[0]=t=>l.value.value=t),multiple:"",style:{width:"100%"},onChange:u,placeholder:"全部"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value.data,t=>(e.openBlock(),e.createBlock(d,{key:t.data,label:t.label,value:t.data},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)}}});exports.default=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Select.vue.cjs");exports.default=e.default;
|
package/lib/select/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Select.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/select/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Select';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Select').Props> & Readonly<{
|
|
4
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
change: (...args: any[]) => void;
|
|
7
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('./Select').Props> & Readonly<{
|
|
15
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Select').Props> & Readonly<{
|
|
21
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
change: (...args: any[]) => void;
|
|
24
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
25
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
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, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("../utils/api.cjs"),V=require("../stores/modules/report.cjs"),m=require("../utils/chartsOption.cjs"),B=require("../utils/data.cjs"),N=require("../settingTable/SettingTable.vue.cjs"),S=require("../config/Config.vue.cjs"),T=e.defineComponent({name:"TdsSettingCharts",__name:"SettingCharts",props:{prodType:{}},setup(h){const C=h,i=V.useReportStore(),d=e.ref(!1),v=e.computed(()=>i.getActiveComponents),y=[{value:"report-table",name:"表格"},{value:"line",name:"趋势图"},{value:"pie",name:"扇形图"},{value:"bar",name:"柱状图"}],l=e.ref(""),_=e.ref();async function f(u){const n=await w.getReportItemApi({prod_type:C.prodType,chart_type:u,filter_uuid:i.filterForm.filter_uuid});_.value=n.data}function b(u){let n=_.value.find(a=>a.rp_item_uuid===u);const t=n.rp_item_content;if(n.rp_item_content.type==="bar"){t.options=m.chartsBar();const a=[];let r="";t.data.forEach(s=>{r=s.data[0].name,a.push({name:s.label,value:s.data[0].value})}),m.barParseData(t.options,a,r)}if(t.type==="pie"&&(t.options=m.chartsPie({isLegend:!0}),m.pieParseData({chartOption:t.options,data:t.data})),t.type==="line"){let a=[];t.data.forEach(p=>{a=p.data.map((o,c)=>({name:o.name,value:"value"+c}))});const r={name:"name",value:a},s=t.data.map(p=>{const o={name:p.label};return a.forEach((c,k)=>{o[c.value]=p.data[k].value}),o});t.options=m.chartsLine([],r),m.lineParseData(t.options,s,r)}if(t.type==="report-table"){const a={};t.showColumn.forEach(r=>{a[r.key]=!0}),t.options={...t.options,showColumn:a,border:!0,showHeader:!0,stripe:!1}}Object.assign(i.activeComponents,t),i.activeComponents.rp_item_uuid=n.rp_item_uuid}e.onMounted(async()=>{l.value=v.value.type,await f(l.value)});async function g(u){try{d.value=!0,await f(u),Object.assign(i.activeComponents,B.normalValueFn(u)),d.value=!1}catch{d.value=!1}}return e.watch(()=>v.value,u=>{~["bar","pie","line","report-table"].indexOf(u.type)&&(l.value=v.value.type,f(l.value))}),(u,n)=>{const t=e.resolveComponent("el-option"),a=e.resolveComponent("el-select"),r=e.resolveComponent("el-form-item"),s=e.resolveComponent("el-form"),p=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(r,{label:"图表类型"},{default:e.withCtx(()=>[e.createVNode(a,{style:{width:"100%"},modelValue:l.value,"onUpdate:modelValue":n[0]||(n[0]=o=>l.value=o),onChange:g},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,(o,c)=>e.createVNode(t,{key:c,label:o.name,value:o.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(r,{label:"组件库"},{default:e.withCtx(()=>[e.createVNode(a,{style:{width:"100%"},modelValue:e.unref(i).activeComponents.rp_item_uuid,"onUpdate:modelValue":n[1]||(n[1]=o=>e.unref(i).activeComponents.rp_item_uuid=o),onChange:b},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(o,c)=>(e.openBlock(),e.createBlock(t,{key:c,label:o.rp_item_name,value:o.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l.value==="report-table"&&v.value.options.showColumn?(e.openBlock(),e.createBlock(N.default,{key:0})):e.createCommentVNode("",!0),l.value==="pie"||l.value==="bar"||l.value==="line"?(e.openBlock(),e.createBlock(S.default,{key:1})):e.createCommentVNode("",!0)]),_:1})])),[[p,d.value]])}}});exports.default=T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingCharts.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingCharts.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./SettingCharts').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, 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<import('./SettingCharts').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./SettingCharts').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;
|
|
14
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingFilter.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './settingFilter';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./settingFilter').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('./settingFilter').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./settingFilter').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;
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("../utils/api.cjs"),f=require("../stores/modules/report.cjs"),v=e.defineComponent({name:"TdsSettingFilter",__name:"settingFilter",props:{prodType:{}},setup(i){const a=i,r=e.ref([]),o=f.useReportStore();async function p(){const n=await _.getReportFilterApi({prod_type:a.prodType});r.value=n.data}return p(),(n,l)=>{const s=e.resolveComponent("el-option"),c=e.resolveComponent("el-select"),u=e.resolveComponent("el-form-item"),d=e.resolveComponent("el-checkbox"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(m,{"label-width":"80px","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(u,{label:"筛选条件"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:e.unref(o).filterForm.filter_uuid,"onUpdate:modelValue":l[0]||(l[0]=t=>e.unref(o).filterForm.filter_uuid=t),disabled:!!e.unref(o).filterForm.filter_uuid},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,t=>(e.openBlock(),e.createBlock(s,{key:t.filter_uuid,label:t.filter_name,value:t.filter_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue","disabled"])]),_:1}),e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(d,{modelValue:e.unref(o).filterForm.range_time,"onUpdate:modelValue":l[1]||(l[1]=t=>e.unref(o).filterForm.range_time=t),"true-value":1,"false-value":0,label:"时间范围"},null,8,["modelValue"])]),_:1})]),_:1})}}});exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingFilter.vue.cjs");exports.default=e.default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../stores/modules/report.cjs"),i={class:"label"},p={class:"flex item-switch"},c={class:"flex item-switch"},V={class:"flex item-switch"},v=e.defineComponent({name:"TdsSettingTable",__name:"SettingTable",setup(_){const a=m.useReportStore(),t=e.computed(()=>a.getActiveComponents);return(N,o)=>{const n=e.resolveComponent("el-switch"),s=e.resolveComponent("el-form-item"),r=e.resolveComponent("el-divider");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{label:"控制列"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.showColumn,(l,d)=>(e.openBlock(),e.createElementBlock("p",{class:"flex item-switch",key:d},[e.createElementVNode("span",i,e.toDisplayString(l.name),1),e.createVNode(n,{modelValue:t.value.options.showColumn[l.key],"onUpdate:modelValue":u=>t.value.options.showColumn[l.key]=u},null,8,["modelValue","onUpdate:modelValue"])]))),128))]),_:1}),e.createVNode(r),e.createVNode(s,{label:"表格样式"},{default:e.withCtx(()=>[e.createElementVNode("p",p,[o[3]||(o[3]=e.createElementVNode("span",{class:"label"},"斑马纹",-1)),e.createVNode(n,{modelValue:t.value.options.stripe,"onUpdate:modelValue":o[0]||(o[0]=l=>t.value.options.stripe=l)},null,8,["modelValue"])]),e.createElementVNode("p",c,[o[4]||(o[4]=e.createElementVNode("span",{class:"label"},"边框",-1)),e.createVNode(n,{modelValue:t.value.options.border,"onUpdate:modelValue":o[1]||(o[1]=l=>t.value.options.border=l)},null,8,["modelValue"])]),e.createElementVNode("p",V,[o[5]||(o[5]=e.createElementVNode("span",{class:"label"},"表头",-1)),e.createVNode(n,{modelValue:t.value.options.showHeader,"onUpdate:modelValue":o[2]||(o[2]=l=>t.value.options.showHeader=l)},null,8,["modelValue"])])]),_:1})])}}});exports.default=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingTable.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./SettingTable.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingText.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const d=require("@wangeditor/editor-for-vue"),V=require("../utils/api.cjs"),x=require("../stores/modules/report.cjs"),k={key:0},w={style:{border:"1px solid #ccc","border-radius":"3px"}},c="default",N=e.defineComponent({name:"TdsSettingText",__name:"settingText",props:{prodType:{}},setup(s){const p=s,n=x.useReportStore(),l=e.shallowRef(),i=e.ref();function m(t){const o=i.value.find(a=>a.rp_item_uuid===t);n.activeComponents.uri=o.rp_item_content.uri,l.value.setHtml((o==null?void 0:o.rp_item_content.data)||"")}async function f(){const t=await V.getReportItemApi({prod_type:p.prodType,chart_type:"p",filter_uuid:n.filterForm.filter_uuid});i.value=t.data}f();const _={toolbarKeys:["bold","underline","italic","through","code","bulletedList","numberedList","clearStyle","color","bgColor","fontSize","fontFamily","justifyLeft","justifyRight","justifyCenter","justifyJustify","lineHeight"]},C={placeholder:"请输入内容..."},v=t=>{l.value=t},y=t=>{};return e.onBeforeUnmount(()=>{const t=l.value;t!=null&&t.destroy()}),(t,o)=>{const a=e.resolveComponent("el-option"),h=e.resolveComponent("el-select"),u=e.resolveComponent("el-form-item"),b=e.resolveComponent("el-form");return e.unref(n).activeComponents.id?(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(b,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(u,{label:"组件库"},{default:e.withCtx(()=>[e.createVNode(h,{style:{width:"100%"},modelValue:e.unref(n).activeComponents.rp_item_uuid,"onUpdate:modelValue":o[0]||(o[0]=r=>e.unref(n).activeComponents.rp_item_uuid=r),onChange:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(r,g)=>(e.openBlock(),e.createBlock(a,{key:g,label:r.rp_item_name,value:r.rp_item_uuid},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(u,{label:"文本内容"},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(d.Toolbar),{style:{"border-bottom":"1px solid #ccc"},editor:l.value,"default-config":_,mode:c},null,8,["editor"]),e.createVNode(e.unref(d.Editor),{style:{height:"500px","overflow-y":"hidden"},onOnChange:y,modelValue:e.unref(n).activeComponents.data,"onUpdate:modelValue":o[1]||(o[1]=r=>e.unref(n).activeComponents.data=r),"default-config":C,mode:c,onOnCreated:v},null,8,["modelValue"])])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}});exports.default=N;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingText.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingTitle.vue.cjs"),t=require("../utils/type.cjs"),i=t.withInstall(e.default);exports.default=i;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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}
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./settingTitle.vue2.cjs");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-86e0f9f6"]]);exports.default=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("../stores/modules/report.cjs"),c=e.defineComponent({name:"TdsSettingTitle",__name:"settingTitle",setup(f){const o=V.useReportStore();return(C,t)=>{const p=e.resolveComponent("el-input"),s=e.resolveComponent("el-form-item"),u=e.resolveComponent("el-color-picker"),l=e.resolveComponent("el-col"),r=e.resolveComponent("el-input-number"),a=e.resolveComponent("el-option"),i=e.resolveComponent("el-select"),d=e.resolveComponent("el-row"),m=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(m,{"label-width":"auto","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(s,{label:"名称"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:e.unref(o).activeComponents.data,"onUpdate:modelValue":t[0]||(t[0]=n=>e.unref(o).activeComponents.data=n),placeholder:"Please input",maxlength:"24","show-word-limit":""},null,8,["modelValue"])]),_:1}),e.createVNode(s,{label:"样式"},{default:e.withCtx(()=>[e.createVNode(d,{gutter:20},{default:e.withCtx(()=>[e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(u,{modelValue:e.unref(o).activeComponents.options.color,"onUpdate:modelValue":t[1]||(t[1]=n=>e.unref(o).activeComponents.options.color=n),"show-alpha":""},null,8,["modelValue"]),t[7]||(t[7]=e.createElementVNode("p",{class:"sub-title"},"颜色",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:e.unref(o).activeComponents.options.size,"onUpdate:modelValue":t[2]||(t[2]=n=>e.unref(o).activeComponents.options.size=n),"controls-position":"right"},null,8,["modelValue"]),t[8]||(t[8]=e.createElementVNode("p",{class:"sub-title"},"字体大小",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(o).activeComponents.options.fontWeight,"onUpdate:modelValue":t[3]||(t[3]=n=>e.unref(o).activeComponents.options.fontWeight=n)},{default:e.withCtx(()=>[e.createVNode(a,{label:"常规",value:500}),e.createVNode(a,{label:"加粗",value:600})]),_:1},8,["modelValue"]),t[9]||(t[9]=e.createElementVNode("p",{class:"sub-title"},"字体粗细",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:e.unref(o).activeComponents.options.letterSpacing,"onUpdate:modelValue":t[4]||(t[4]=n=>e.unref(o).activeComponents.options.letterSpacing=n),"controls-position":"right"},null,8,["modelValue"]),t[10]||(t[10]=e.createElementVNode("p",{class:"sub-title"},"字间距",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:e.unref(o).activeComponents.options.textIndent,"onUpdate:modelValue":t[5]||(t[5]=n=>e.unref(o).activeComponents.options.textIndent=n),"controls-position":"right"},null,8,["modelValue"]),t[11]||(t[11]=e.createElementVNode("p",{class:"sub-title"},"首行缩进",-1))]),_:1}),e.createVNode(l,{span:12},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(o).activeComponents.options.textAlign,"onUpdate:modelValue":t[6]||(t[6]=n=>e.unref(o).activeComponents.options.textAlign=n)},{default:e.withCtx(()=>[e.createVNode(a,{label:"左对齐",value:"left"}),e.createVNode(a,{label:"居中对齐",value:"center"}),e.createVNode(a,{label:"右对齐",value:"right"})]),_:1},8,["modelValue"]),t[12]||(t[12]=e.createElementVNode("p",{class:"sub-title"},"位置",-1))]),_:1})]),_:1})]),_:1})]),_:1})}}});exports.default=c;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("pinia"),r=require("../../utils/api.cjs"),n=require("../../utils/index.cjs"),a=require("../../utils/data.cjs"),p=s.defineStore("tds-report",{state:()=>({componentList:[],activeComponents:{},notDraggableList:[],titleComponent:{},filterForm:{range_time:1,filter_uuid:""}}),getters:{getActiveComponents:t=>t.activeComponents},actions:{setComponentList(t){this.componentList=t},async getReportDemo(t){let e=[];t?e=(await r.getReportDemoApi({report_uuid:t})).data:e={content:n.deepClone(a.normalValue),range_time:1};const i=[];e.content.forEach(o=>{(o.type==="report-select"||o.type==="range-time")&&i.push(o),o.type==="h1"&&(this.titleComponent=o),o.id=n.getUniId()}),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},setActiveComponents(t){this.activeComponents=t},clearComponents(){this.activeComponents={},this.componentList=[],this.notDraggableList=[],this.titleComponent={},this.filterForm={range_time:1,filter_uuid:""}}}});exports.useReportStore=p;
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
}>;
|
package/lib/style/global.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,*:before,*:after{box-sizing:border-box;margin:0;padding:0;caret-color:transparent}:root{--primary-color: #1677ff;--primary-color-hover: #4096ff}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}input,textarea{caret-color:auto}a{color:var(--primary-color);text-decoration:none;background-color:transparent;-webkit-tap-highlight-color:transparent;outline:none;cursor:pointer;transition:color .3s ease}a:hover{color:var(--primary-color-hover)}
|
package/lib/table/Table.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
package/lib/table/Table.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=e.defineComponent({name:"TdsReportTable",__name:"Table",props:{data:{}},setup(r){const t=r,n=a=>React.createElement("el-table",{data:a.data,border:t.data.options.border,"show-header":!!t.data.options.showHeader,stripe:t.data.options.stripe},a.showColumn.map(o=>t.data.options.showColumn[o.key]===!0?React.createElement("el-table-column",{prop:o.key,label:o.name}):null));return(a,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(n,e.normalizeProps(e.guardReactiveProps(a.data)),null,16)]))}});exports.default=l;
|
package/lib/table/Table.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table.vue.cjs");exports.default=e.default;
|
package/lib/table/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Table.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/table/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
package/lib/text/Text.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
package/lib/text/Text.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=e.defineComponent({name:"TdsReportText",__name:"Text",props:{data:{}},setup(n){const o=n,a=()=>{const t=o.data.options||{};return{color:t.color,"font-size":t.size+"px","font-weight":t.fontWeight,"letter-spacing":t.letterSpacing+"px","text-indent":t.textIndent+"px","text-align":t.textAlign}};return(t,r)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(a())},e.toDisplayString(t.data.data),5))}});exports.default=i;
|
package/lib/text/Text.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Text.vue.cjs");exports.default=e.default;
|
package/lib/text/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Text.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/text/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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;
|
package/lib/time/Time.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
-
change: (...args: any[]) => void;
|
|
6
|
-
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
8
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
-
export default _default;
|
package/lib/time/Time.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=e.defineComponent({name:"TdsReportTime",__name:"Time",props:{data:{}},emits:["change"],setup(o,{emit:u}){const r=u,m=o,t=e.ref(m.data),a=e.ref([]);function d(n){n?(t.value.data[0].start_time=n[0],t.value.data[0].end_time=n[1]):a.value=[],r("change",a.value)}return e.onMounted(()=>{a.value=[t.value.data[0].start_time,t.value.data[0].end_time]}),(n,l)=>{const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),type:"datetimerange",placeholder:"Pick a Date",format:"YYYY-MM-DD HH:mm:ss","value-format":"YYYY-MM-DD HH:mm:ss",onChange:d,clearable:!1},null,8,["modelValue"])])}}});exports.default=i;
|
package/lib/time/Time.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Time.vue.cjs");exports.default=e.default;
|
package/lib/time/index.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Time.vue.cjs"),t=require("../utils/type.cjs"),u=t.withInstall(e.default);exports.default=u;
|
package/lib/time/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Time';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Time').Props> & Readonly<{
|
|
4
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
change: (...args: any[]) => void;
|
|
7
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('./Time').Props> & Readonly<{
|
|
15
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Time').Props> & Readonly<{
|
|
21
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
change: (...args: any[]) => void;
|
|
24
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
25
|
-
export default _default;
|
package/lib/utils/api.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=window.$http,t=window.$envURL,o=e=>t.request({url:`${t}/tds/report/demo/get`,method:"get",params:e,isError:!1}),s=e=>r.request({url:`${t}/tds/report/item/get`,method:"get",params:e,isError:!1}),p=e=>r.request({url:`${t}/tds/report/get`,method:"get",params:e,isError:!1}),i=e=>r.request({url:`${t}/tds/report/filter/get`,method:"get",params:e,isError:!1}),d=e=>r.request({url:`${t}/tds/report/delete`,method:"delete",data:e});exports.deleteReportApi=d;exports.getReportDemoApi=o;exports.getReportFilterApi=i;exports.getReportItemApi=s;exports.getReportListApi=p;
|
package/lib/utils/api.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const getReportDemoApi: (params: any) => any;
|
|
2
|
-
export declare const getReportItemApi: (params: any) => any;
|
|
3
|
-
export declare const getReportPreviewApi: (params: any) => any;
|
|
4
|
-
export declare const postReportAddApi: (data: any) => any;
|
|
5
|
-
export declare const putReportApi: (data: any) => any;
|
|
6
|
-
export declare const getReportListApi: (params: any) => any;
|
|
7
|
-
export declare const getReportFilterApi: (params: any) => any;
|
|
8
|
-
export declare const deleteReportApi: (data: any) => any;
|
|
9
|
-
export declare const getReportComponentsListApi: (params: any) => any;
|
|
10
|
-
export declare const deleteReportComponentsApi: (data: any) => any;
|
|
11
|
-
export declare const addReportComponentsApi: (data: any) => any;
|
|
12
|
-
export declare const putReportComponentsApi: (data: any) => any;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("echarts");const y=require("./index.cjs"),d="rgba(51, 51, 51, 0.15)",u="rgba(51, 51, 51, 1)",f=12,g=(e=!1)=>{const t={left:"3%",right:"3%",bottom:"2%",containLabel:!0};return e&&(t.top="5%"),t},r=["46, 145, 255","48, 212, 183","108, 108, 255","109, 237, 124","128, 218, 236","58, 200, 218","146, 218, 89","118, 218, 218","143, 192, 244","192, 192, 145","153, 136, 204","212, 217, 230","124, 186, 255","209, 182, 225","255, 197, 84","249, 140, 106","246, 179, 82","100, 161, 206","246, 175, 159","238, 97, 97"],v=(e,t,o="",l={name:"name",value:"value"})=>{const i=[],a=[];t.forEach(s=>{i.push(s[l.name]),a.push(s[l.value])}),e.xAxis[0].data=i,e.series[0].data=a,e.series[0].name=o,e.series[1].data=a,e.series[2].data=a},p=(e=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],t={name:"name",value:"value"})=>{const o=(i="rgba(46, 145, 255, 0.7)",a="rgba(46, 145, 255, 0.2)")=>({color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:i},{offset:.8,color:a}]}}),l=e.map(i=>i[t.value]);return{tooltip:{trigger:"item"},grid:g(),title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},xAxis:[{type:"category",nameGap:8,nameRotate:0,axisLabel:{color:u,rotate:0},axisLine:{show:!0,lineStyle:{color:d,width:1}},axisTick:{show:!1},splitLine:{show:!1},data:e.map(i=>i[t.name])}],yAxis:[{type:"value",min:0,position:"left",nameTextStyle:{fontSize:f,color:u,fontWeight:"bold"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{color:u,formatter:"{value}",inside:!1}}],series:[{type:"bar",barWidth:15,barGap:"0%",itemStyle:o(`rgba(${r[0]}, 0.7)`,`rgba(${r[0]}, 0.2)`),data:l,label:{show:!0,position:"top",color:"inherit",lineHeight:24}},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,5],itemStyle:o(`rgba(${r[0]}, 0.7)`,`rgba(${r[0]}, 0.2)`),data:l},{name:"",type:"pictorialBar",symbolSize:[15,10],symbolOffset:[0,-5],symbolPosition:"end",itemStyle:o(`rgba(${r[0]}, 0.9)`,`rgba(${r[0]}, 1)`),data:l}]}},S=({chartOption:e,data:t,props:o={name:"label",value:"data"}})=>{let l=0;const i=t.map((a,s)=>(l+=Number(a[o.value]),{name:a[o.name],value:Number(a[o.value])}));t.length>0&&(e.legend.data=i,e.series[0].data=i,e.graphic[1].style.text=l)},w=()=>r.map(e=>`rgba(${e}, 1)`),L=({data:e=[{name:"数据1",value:63},{name:"数据2",value:45},{name:"数据3",value:43}],radiusType:t=1,roseType:o=!1,isLegend:l=!0,isLine:i=!1,center:a=["50%","50%"],isTitle:s=!0})=>{const n={color:w(),toolbox:{show:!1},tooltip:{trigger:"item",show:!0,formatter:c=>{const{name:b,value:m}=c;return`<div style="color: ${c.color}; font-size: 14px;">${b} </div>
|
|
2
|
-
<div><span style="font-size: 14px; color: #86909c; float: right;">数量:${m}</span></div>`}},title:{show:s,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:l,left:"70%",formatter:c=>{var m;const b=(m=n.series[0])==null?void 0:m.data.find(x=>x.name===c).value;return` ${c} | ${b}`},textStyle:{fontSize:f,color:u},data:e,orient:"vertical",itemWidth:10,itemHeight:10,borderRadius:10,x:"left",top:"center",align:"left",itemGap:15},series:[{type:"pie",center:a,radius:t===1?o?["10%","65%"]:["45%","70%"]:["0%","65%"],roseType:o,itemStyle:{borderRadius:1},label:{show:i,position:"outside",alignTo:"labelLine",backgroundColor:"#fff",height:0,width:0,lineHeight:0,distanceToLabelLine:0,borderRadius:3,borderWidth:1,borderColor:"inherit",padding:[3,-3,3,-3],formatter:function(c){return`{a|${c.name}(${c.value})}`},rich:{a:{padding:[20,-80,40,-80],fontSize:"12px",fontFamily:"MicrosoftYaHei",color:"#091158"},b:{padding:[0,-80,55,-80],fontSize:"15px",fontFamily:"MicrosoftYaHei-Bold, MicrosoftYaHei",fontWeight:"bold",color:"#001F3D"}}},labelLine:{show:!0,length:40,length2:85,align:"right",lineStyle:{width:1}},data:e}],graphic:[{invisible:!1,type:"text",left:"center",top:"44%",style:{text:"总量",fontSize:14,fill:"#86909c",fontWeight:"bold"}},{invisible:!1,type:"text",left:"center",top:"50%",style:{text:"151",fontSize:18,fill:"#86909c",fontWeight:"bold"}}]};return n},$=(e,t,o={name:"name",value:"value"})=>{e.xAxis.data=t.map(l=>l[o.name]),Array.isArray(o.value)?o.value.forEach((l,i)=>{e.series[i].data=t.map(a=>a[l.value])}):typeof o.value=="string"&&(e.series[0].data=t.map(l=>l[o.value]))},h=()=>({name:"",type:"line",symbol:"circle",smooth:!0,lineStyle:{width:1,color:`rgba(${r[0]}, 1)`},showSymbol:!1,itemStyle:{color:`rgba(${r[0]}, 1)`,label:{show:!0,position:"top",formatter:function(e){return e.value?e.value:0}}},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgba(${r[0]}, 0.7)`},{offset:1,color:`rgba(${r[0]}, 0.1)`}],global:!1}},data:[]}),z=(e=[{name:"2024-08",value:63},{name:"2024-09",value:45},{name:"2024-10",value:43}],t={name:"name",value:"value"})=>{const o={tooltip:{trigger:"axis"},title:{show:!0,text:"样例数据",textStyle:{color:"#333",fontSize:18},x:10,y:10},legend:{show:!0,itemWidth:30,textStyle:{color:u,fontSize:f,padding:[0,8,0,8]}},grid:g(),xAxis:{type:"category",splitLine:{show:!1},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:d}},axisLabel:{show:!0,fontSize:f,color:u},boundaryGap:!1,data:e.map(a=>a[t.name])},yAxis:{name:"",type:"value",splitLine:{show:!1},axisLine:{show:!1},axisTick:{show:!1},nameTextStyle:{fontSize:f,color:u,padding:[0,60,0,0]},axisLabel:{show:!0,fontSize:f,color:u}},series:[]},l=h(),i=[];if(Array.isArray(t.value))t.value.forEach((a,s)=>{const n=y.deepClone(l);n.name=a.name,n.lineStyle.color=`rgba(${r[s]}, 1)`,n.itemStyle.color=`rgba(${r[s]}, 1)`,n.areaStyle.color.colorStops[0].color=`rgba(${r[s]}, 0.7)`,n.areaStyle.color.colorStops[1].color=`rgba(${r[s]}, 0.1)`,n.data=e.map(c=>c[a.value]),i.push(n)});else if(typeof t.value=="string"){const a=y.deepClone(l);a.data=e.map(s=>s[t.value]),i.push(a)}return o.series=i,o};exports.barParseData=v;exports.chartsBar=p;exports.chartsLine=z;exports.chartsPie=L;exports.lineMode=h;exports.lineParseData=$;exports.pieParseData=S;
|