修改界面

master
夜笙歌 4 years ago
parent 1ac78a0735
commit 0453573070

@ -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({

Loading…
Cancel
Save