From ed9a83cffaeee73b71153c080cb7f5c899c81752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Tue, 26 Jul 2022 18:46:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/js/board/week.js | 6 ++++-- ruoyi-admin/src/main/resources/static/js/echartsCommon.js | 6 ++++++ ruoyi-admin/src/main/resources/templates/broad/week.html | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/js/board/week.js b/ruoyi-admin/src/main/resources/static/js/board/week.js index 86fb932..4088241 100644 --- a/ruoyi-admin/src/main/resources/static/js/board/week.js +++ b/ruoyi-admin/src/main/resources/static/js/board/week.js @@ -103,6 +103,8 @@ $(() => { yDataOne.push(val.find(val => val.name == '计划')?.qty || 0) yDataTwo.push(val.find(val => val.name == '产量')?.qty || 0) }) + + total(yDataTwo.reduce((val1,val2) => val1 + val2 , 0),'#total') multipleVerticalBarChartTwo({ xName: data.map(val => val.code), yDataOne: yDataOne, @@ -136,7 +138,7 @@ const curWeek = () => { const moduleTitle = () => { const html = ` - 周看板 + 第${curWeek()}周 生产数据分析平台 第${curWeek()}周 产量统计 周订单执行情况 班组 6s 排行榜 @@ -166,7 +168,7 @@ const Tips = (val1 = 0, val2 = 0, val3 = 0, el) => { const total = (val1 = 0, el) => { const html = ` - 合计:${val1} + 合计:${val1} 台 ` $(el).html(html) } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js index d510bf9..fb27811 100644 --- a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js +++ b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js @@ -2219,6 +2219,7 @@ const multipleBrokenLineAreaDiagramTwo = (data, ids) => { }, }, axisLabel: { + formatter:'{value}%', show: true, color: '#fff', interval: 0.5, @@ -2274,6 +2275,7 @@ const multipleBrokenLineAreaDiagramTwo = (data, ids) => { normal: { show: true, position: "top", + formatter:'{c}%', textStyle: { color: "#a8aab0", fontStyle: "normal", @@ -2324,6 +2326,7 @@ const multipleBrokenLineAreaDiagramTwo = (data, ids) => { label: { //图形上的文本标签 normal: { + formatter:'{c}%', show: true, position: "top", textStyle: { @@ -2376,6 +2379,7 @@ const multipleBrokenLineAreaDiagramTwo = (data, ids) => { label: { //图形上的文本标签 normal: { + formatter:'{c}%', show: true, position: "top", textStyle: { @@ -2428,6 +2432,7 @@ const multipleBrokenLineAreaDiagramTwo = (data, ids) => { label: { //图形上的文本标签 normal: { + formatter:'{c}%', show: true, position: "top", textStyle: { @@ -2480,6 +2485,7 @@ const multipleBrokenLineAreaDiagramTwo = (data, ids) => { label: { //图形上的文本标签 normal: { + formatter:'{c}%', show: true, position: "top", textStyle: { diff --git a/ruoyi-admin/src/main/resources/templates/broad/week.html b/ruoyi-admin/src/main/resources/templates/broad/week.html index d0d799c..620d8d8 100644 --- a/ruoyi-admin/src/main/resources/templates/broad/week.html +++ b/ruoyi-admin/src/main/resources/templates/broad/week.html @@ -47,6 +47,7 @@
+