From 860a3132ff4cf1482a8a212d4cc989650d4b2cd1 Mon Sep 17 00:00:00 2001 From: ljx <864490211@qq.com> Date: Mon, 10 Mar 2025 16:26:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/baozuo-demo/LeftChart1.vue | 17 +++++++++++++++-- src/components/baozuo-demo/LeftChart2.vue | 13 +++++++++++++ src/components/baozuo-demo/index.vue | 2 +- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/components/baozuo-demo/LeftChart1.vue b/src/components/baozuo-demo/LeftChart1.vue index 2425379..20437ac 100644 --- a/src/components/baozuo-demo/LeftChart1.vue +++ b/src/components/baozuo-demo/LeftChart1.vue @@ -52,6 +52,8 @@ export default { title: { text: '近一周产量趋势', textStyle: { + fontSize:25, + fontWight:'bold', color: '#fff' } }, @@ -61,7 +63,9 @@ export default { legend: { data: this.dataType == '整机' ? ['整机线'] : ['机芯1线', '机芯2线', '盖板线'], textStyle: { - color: '#fff' + color: '#fff', + fontSize:25, + fontWight:'bold' } }, grid: { @@ -78,6 +82,11 @@ export default { color: '#fff' } }, + axisLabel: { + fontSize: 20, // 设置 Y 轴字体大小 + color: '#fff' // 可选:设置字体颜色 + }, + data: getRecentWeekDates() }, yAxis: { @@ -87,6 +96,10 @@ export default { color: '#fff' } }, + axisLabel: { + fontSize: 20, // 设置 Y 轴字体大小 + color: '#fff' // 可选:设置字体颜色 + }, }, series: this.dataType == '整机' ? @@ -104,7 +117,7 @@ export default { name: '机芯1线', type: 'line', stack: 'Total', - data: [120, 132, 101, 134, 90, 230, 210] + data: [120, 132, 101, 134, 90, 230, 210], }, { name: '机芯2线', diff --git a/src/components/baozuo-demo/LeftChart2.vue b/src/components/baozuo-demo/LeftChart2.vue index 1b34e4b..46a9cd9 100644 --- a/src/components/baozuo-demo/LeftChart2.vue +++ b/src/components/baozuo-demo/LeftChart2.vue @@ -50,9 +50,13 @@ export default { text: '月生产情况', subtext: '完成率', subtextStyle:{ + fontSize:20, + fontWight:'bold', color:'#fff' }, textStyle:{ + fontSize:25, + fontWight:'bold', color:'#fff' } }, @@ -62,6 +66,7 @@ export default { legend: { data: this.dataType == '整机' ?['机芯1线', '机芯2线', '盖板线'] : ['整机线'], textStyle:{ + fontSize:25, color:'#fff' } }, @@ -76,6 +81,10 @@ export default { color:'#fff' } }, + axisLabel: { + fontSize: 20, // 设置 Y 轴字体大小 + color: '#fff' // 可选:设置字体颜色 + }, // prettier-ignore data:getRecentSixMonths(), }, @@ -88,6 +97,10 @@ export default { color:'#fff' } }, + axisLabel: { + fontSize: 20, // 设置 Y 轴字体大小 + color: '#fff' // 可选:设置字体颜色 + }, } ], series: diff --git a/src/components/baozuo-demo/index.vue b/src/components/baozuo-demo/index.vue index 55ebf58..055cab7 100644 --- a/src/components/baozuo-demo/index.vue +++ b/src/components/baozuo-demo/index.vue @@ -74,7 +74,7 @@ export default { setInterval(() => { this.switchType = this.switchType == 1 ? 2 : 1 - }, 10000); // 10000 毫秒 = 10 秒 + }, 15000); // 10000 毫秒 = 10 秒 }, data() { return {