From 0453573070b4c791a11070b0ab60146b3c12f09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Sat, 23 Jul 2022 09:51:46 +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 --- .../static/js/board/finalAssemblyProductionData.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/js/board/finalAssemblyProductionData.js b/ruoyi-admin/src/main/resources/static/js/board/finalAssemblyProductionData.js index 56cb378..4c31091 100644 --- a/ruoyi-admin/src/main/resources/static/js/board/finalAssemblyProductionData.js +++ b/ruoyi-admin/src/main/resources/static/js/board/finalAssemblyProductionData.js @@ -44,6 +44,7 @@ $(() => { // 产量 $.post(url + `/selectProductInByTeam/${yieldType}`, {}, data => { data = JSON.parse(data) + console.log(data) target.topReality = data.map(val => val.qty).reduce((val1, val2) => val1 + val2, 0) target.topGap = target.topProgress - target.topReality if (target.topProgress != 0){ @@ -63,7 +64,8 @@ $(() => { arr[8] = Math.ceil(target.topTips / 22) arr[0] = arr[0] - (arr.reduce((val1, val2) => val1 + val2, 0) - target.topTips) target.top = arr - target.topProgress = arr.reduce((val1, val2) => val1 + val2, 0) + // target.topProgress = arr.reduce((val1, val2) => val1 + val2, 0) + target.topProgress = 399 for (let i = 0; i < 12; i++) { xName.push(`${(oneTime + i) % 24}:30`) } @@ -76,7 +78,9 @@ $(() => { arr[13] = Math.ceil(target.topTips / 46) arr[0] = arr[0] - (arr.reduce((val1, val2) => val1 + val2, 0) - target.topTips) target.top = arr - target.topProgress = arr.reduce((val1, val2) => val1 + val2, 0) + // target.topProgress = arr.reduce((val1, val2) => val1 + val2, 0) + + target.topProgress = 399 xName = ['0:00','1:00','2:00','3:00','4:00','5:00','6:00','7:00','8:00','9:00','10:00','11:00','12:00','13:00','14:00','15:00','16:00','17:00','18:00','19:00','20:00','21:00','22:00','23:00'] } barChartAndLineChartThree({