Compare commits

..

No commits in common. "ec5e47a4160db7b7868ef5d4b3b06c1747380864" and "71f548cb3bdb914f69b9a996372637c52890e291" have entirely different histories.

View File

@ -1,8 +1,8 @@
<!-- <!--
* @Author: zhp * @Author: zhp
* @Date: 2024-04-15 10:49:13 * @Date: 2024-04-15 10:49:13
* @LastEditTime: 2024-07-23 18:00:55 * @LastEditTime: 2024-07-17 08:55:15
* @LastEditors: DY * @LastEditors: zhp
* @Description: * @Description:
--> -->
<template> <template>
@ -392,8 +392,8 @@ export default {
// this.factoryListabbr // this.factoryListabbr
const factoryNameArray = (this.listQuery.factory.length === 0 || this.listQuery.factory.length === this.factoryListabbr.length) ? [0, 1] : this.listQuery.factory const factoryNameArray = (this.listQuery.factory.length === 0 || this.listQuery.factory.length === this.factoryListabbr.length) ? [0, 1] : this.listQuery.factory
const seriesArray = [] const seriesArray = []
factoryNameArray.forEach((fac, facIndex) => { typeArray.forEach((type, typeIndex) => {
typeArray.forEach((type, typeIndex) => { factoryNameArray.forEach((fac, facIndex) => {
const series = { const series = {
data: Array(xAxisData.length).fill(0), data: Array(xAxisData.length).fill(0),
type: 'bar', type: 'bar',
@ -407,26 +407,27 @@ export default {
seriesArray.push(series) seriesArray.push(series)
}) })
}) })
// seriesdata
// const seriesDataArray = []
const arrayByFacArray = Object.groupBy(dataList, (member) => member.factory) Object.values(data).forEach((item) => {
// const seriesDataArray = [] let seriesData = []
let n = 0 // item[0].datestr
Object.values(arrayByFacArray).forEach((item) => { typeArray.forEach(t => {
typeArray.forEach(type => { const zidr = ['chipYield', 'componentYield', 'bipvProductOutput'][t]
const typeName = ['chipYield', 'componentYield', 'bipvProductOutput'][type]
let seriesData = Array(xAxisData.length).fill(0)
item.forEach(it => { item.forEach(it => {
xAxisData.forEach((x, xindex) => { seriesData.push(it[zidr])
if (x === it['datestr']) {
seriesData[xindex] = it[typeName]
}
})
}) })
seriesArray[n].data = seriesData
n ++
}) })
seriesDataArray.push(seriesData)
}) })
for (let y = 0; y < seriesArray.length; y ++) {
const days = []
seriesDataArray.forEach(a => {
days.push(a[y])
})
//
seriesArray[y].data = days
}
// //
const validSeriesArray = [] const validSeriesArray = []