From e7f44639c7016c100db0484b7b5c4fdb575ad43b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Tue, 1 Jul 2025 15:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=9A=E5=91=98=E6=B3=A8=E5=86=8C=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=AE=B5=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chart/Bar.vue | 13 +++++- src/views/zh/hy/zc/hy.api.ts | 11 +++++ src/views/zh/hy/zc/index.vue | 56 ++++++++++++++++++++++++ src/views/zh/monitor/index.vue | 80 ++++++++++++++++++++++++++++++++++ 4 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 src/views/zh/hy/zc/hy.api.ts create mode 100644 src/views/zh/hy/zc/index.vue create mode 100644 src/views/zh/monitor/index.vue diff --git a/src/components/chart/Bar.vue b/src/components/chart/Bar.vue index 43e4d70..2ce645f 100644 --- a/src/components/chart/Bar.vue +++ b/src/components/chart/Bar.vue @@ -24,6 +24,14 @@ type: String as PropType, default: 'calc(100vh - 78px)', }, + itemStyleLabel: { + type: Boolean as PropType, + default: true, + }, + seriesName: { + type: String as PropType, + default: 'bar', + }, // update-begin--author:liaozhiyang---date:20240407---for:【QQYUN-8762】首页默认及echars颜色调整 seriesColor: { type: String, @@ -54,10 +62,11 @@ }, series: [ { - name: 'bar', + name: props.seriesName, type: 'bar', data: [], color: props.seriesColor, + itemStyle : { normal: {label : {show: props.itemStyleLabel, position: 'inside'}}}, }, ], }); @@ -78,7 +87,9 @@ }); option.series[0].data = seriesData; // update-begin--author:liaozhiyang---date:20240407---for:【QQYUN-8762】首页默认及echars颜色调整 + option.series[0].name = props.seriesName; option.series[0].color = props.seriesColor; + option.series[0].itemStyle.normal.label.show = props.itemStyleLabel; // update-end--author:liaozhiyang---date:20240407---for:【QQYUN-8762】首页默认及echars颜色调整 option.xAxis.data = xAxisData; setOptions(option); diff --git a/src/views/zh/hy/zc/hy.api.ts b/src/views/zh/hy/zc/hy.api.ts new file mode 100644 index 0000000..4ef393c --- /dev/null +++ b/src/views/zh/hy/zc/hy.api.ts @@ -0,0 +1,11 @@ +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + registerList = '/zh/hy/queryPageList', +} + +/** + * 会员注册时间段统计 + * @param params + */ +export const registerList = (params) => defHttp.get({ url: Api.registerList, params }); diff --git a/src/views/zh/hy/zc/index.vue b/src/views/zh/hy/zc/index.vue new file mode 100644 index 0000000..daf080d --- /dev/null +++ b/src/views/zh/hy/zc/index.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/views/zh/monitor/index.vue b/src/views/zh/monitor/index.vue new file mode 100644 index 0000000..c741e7d --- /dev/null +++ b/src/views/zh/monitor/index.vue @@ -0,0 +1,80 @@ + + +