字典、统计

This commit is contained in:
weicw
2021-09-18 14:51:31 +08:00
parent 9c1f1c1b8c
commit f212f334ef
21 changed files with 3228 additions and 2319 deletions

View File

@@ -76,7 +76,7 @@ export default {
);
// 解析成对象数组
const billName = aoa[0][0];
const billName = file.name;
const billData = utils.toObjData(functionNoiseList);
const billData2 = utils.toPlaceData(functionNoiseList2);
@@ -163,7 +163,7 @@ export default {
});
// 解析成对象数组
const billName = aoa[0][0];
const billName = file.name;
const billData = utils.toAreaObjData(functionNoiseList);
if (!billData || billData.length == 0) {

View File

@@ -49,7 +49,7 @@ export default {
}
if (row.indexL10 < row.indexL50 || row.indexL50 < row.indexL90) {
throw new Error(row.place + "数值有误" + `${row.indexL10},${row.indexL10},${row.indexL50},${row.indexL90}`)
throw new Error(row.place + "数值有误" + `${row.indexLeq},${row.indexL10},${row.indexL50},${row.indexL90}`)
}
return row;
})
@@ -81,12 +81,12 @@ export default {
return excelData.map(item => {
const monitorTime = new Date();
monitorTime.setFullYear(item[1]);
monitorTime.setMonth(item[14] - 1);
monitorTime.setDate(item[15]);
monitorTime.setHours(item[16]);
monitorTime.setMinutes(item[17]);
monitorTime.setMonth(item[9] - 1);
monitorTime.setDate(item[10]);
monitorTime.setHours(item[11]);
monitorTime.setMinutes(item[23]);
let quarter = 1;
const month = item[14]
const month = item[9]
if (month < 4) {
quarter = 1
} else if (month < 7) {