From 34b1630def3b5f8d6775586fca0c4f536499c8a1 Mon Sep 17 00:00:00 2001 From: liuwu <975499773@qq.com> Date: Tue, 5 Mar 2024 10:35:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/main.html | 110 ++++++++++-------- 1 file changed, 59 insertions(+), 51 deletions(-) diff --git a/cyx-admin/src/main/resources/templates/main.html b/cyx-admin/src/main/resources/templates/main.html index c81cc94..4e7008f 100644 --- a/cyx-admin/src/main/resources/templates/main.html +++ b/cyx-admin/src/main/resources/templates/main.html @@ -44,22 +44,22 @@
-
- 季度考核情况 +
+ 季度考核情况

达标分:0分

当前分数:0分

-
+
党风廉政建设

达标分:0分

当前分数:0分

-
+
党务及意识形态

达标分:0分

当前分数:0分

-
+
日常考核情况

达标分:0分

当前分数:0分

@@ -212,10 +212,10 @@ formatter: '{b}:{c}分' }, grid: { - top: "15%", - left: '5%', - right: '5%', - bottom: '5%', + top: "5%", + left: '1%', + right: '1%', + bottom: '15%', containLabel: true }, xAxis: { @@ -226,8 +226,7 @@ } }, yAxis: { - type: 'value', - name: '', + show:false }, series: [ { @@ -284,6 +283,7 @@ orient: 'vertical', top: 'center', left: '0', + top:'-20', textStyle: { color: "#ffffff" }, @@ -350,19 +350,18 @@ }, }, grid: { - top: "15%", - left: '5%', - right: '5%', - bottom: '5%', + top: "8%", + left: '1%', + right: '1%', + bottom: '1%', containLabel: true }, - xAxis: [ + yAxis: [ { type: 'category', data: xData, axisLabel:{ interval:0, - rotate:15, color:'#FFFFFF' }, axisPointer: { @@ -370,18 +369,19 @@ } } ], - yAxis: { - type: 'value', - name: '', - axisLabel:{ - color:'#fff' - }, - label: { - show: true, - position: 'top', - color: '#FFFFFF', - formatter: '{c}分' - }, + xAxis: { + show:false + // type: 'value', + // name: '', + // axisLabel:{ + // color:'#fff' + // }, + // label: { + // show: true, + // position: 'top', + // color: '#FFFFFF', + // formatter: '{c}分' + // }, }, series: [ { @@ -402,7 +402,7 @@ data: sData1, label: { show: true, - position: 'top', + position: 'right', color: '#FFFFFF', formatter: '{c}分' }, @@ -425,7 +425,7 @@ data: sData2, label: { show: true, - position: 'top', + position: 'right', color: '#FFFFFF', formatter: '{c}分' }, @@ -463,9 +463,9 @@ }, grid: { top: "0%", - left: '0%', - right: '10%', - bottom: '5%', + left: '1%', + right: '5%', + bottom: '1%', containLabel: true }, xAxis: { @@ -483,12 +483,19 @@ name: '', type: 'bar', data: _sData, + showBackground: true, itemStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ {offset: 0, color: '#0096FF'}, {offset: 1, color: '#66F4FF'} ]) }, + // itemStyle: { + // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + // {offset: 0, color: '#0096FF'}, + // {offset: 1, color: '#66F4FF'} + // ]) + // }, label: { show: true, formatter: '{c}分', @@ -528,39 +535,40 @@ tooltip: { trigger: 'axis', }, - xAxis: { + yAxis: { type: 'category', boundaryGap: false, data: _xData, axisLabel:{ interval:0, - rotate:15, + // rotate:15, color:'#FFFFFF' }, }, - yAxis: { - type: 'value', - axisLabel:{ - color:'#fff' - } + xAxis: { + show:false }, grid: { - top: "15%", - left: '5%', + top: "5%", + left: '1%', right: '5%', - bottom: '5%', + bottom: '1%', containLabel: true }, series: [ { data: _sData, - type: 'line', - areaStyle: { - color:'#02abe0' + type: 'bar', + showBackground: true, + itemStyle: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + {offset: 0, color: '#0096FF'}, + {offset: 1, color: '#66F4FF'} + ]) }, label: { show: true, - position: 'top', + position: 'right', color: '#FFFFFF', formatter: '{c}分' }, @@ -628,13 +636,13 @@ grd.addColorStop(0, "#e08d03"); grd.addColorStop(1, "#2e6a5c"); ctx.strokeStyle = grd; - ctx.moveTo(w / 5 * 2, h / 2 ) - ctx.quadraticCurveTo(w / 3 * 1.2, h / 4 * 1.4, w / 3 * 1.4, h / 5); + ctx.moveTo(w / 5 * 2, h) + ctx.quadraticCurveTo(w / 3 * 1.2, h / 3 * 1.4, w / 3 * 1.4, h / 3); ctx.stroke(); // 绘制第三条曲线上的圆光效果 ctx.beginPath() ctx.moveTo(w / 3 * 1.4, h / 5) - ctx.arc(w / 3 * 1.4, h / 5, 5, 0, Math.PI * 2) + ctx.arc(w / 3 * 1.4, h / 3, 5, 0, Math.PI * 2) ctx.fill() ctx.restore() ctx.save()