Commit 4e29e632 by lixinming

no message

parent 8005239e
...@@ -2,7 +2,7 @@ let fs = require('fs'); ...@@ -2,7 +2,7 @@ let fs = require('fs');
const xlsx = require('node-xlsx'); const xlsx = require('node-xlsx');
const path = require('path'); const path = require('path');
//excel的名字 //excel的名字
const excelName = "数据模板.xlsx"; const excelName = "绿色电力数据模板.xlsx";
let typeEnum = { let typeEnum = {
"柱状数据":1, "柱状数据":1,
...@@ -33,7 +33,7 @@ let createBizAndDataConfigMap = { ...@@ -33,7 +33,7 @@ let createBizAndDataConfigMap = {
//配置解析excel //配置解析excel
function analysisConfigExcel() { function analysisConfigExcel() {
const workSheetsFromFile = xlsx.parse('../res/解析规则.xlsx'); const workSheetsFromFile = xlsx.parse('../res/绿色电力解析规则.xlsx');
let sheetMap = {}; let sheetMap = {};
let sheetList = []; let sheetList = [];
...@@ -60,9 +60,9 @@ function createConfig() { ...@@ -60,9 +60,9 @@ function createConfig() {
let title = valueList[4]; let title = valueList[4];
let unit = valueList[5]; let unit = valueList[5];
let total = valueList[6]; let total = valueList[6];
let precent = valueList[7]; let percent = valueList[7];
if (!createBizAndDataConfigMap[pageName] ) createBizAndDataConfigMap[pageName] = {sheetName, apiList:[]}; if (!createBizAndDataConfigMap[pageName] ) createBizAndDataConfigMap[pageName] = {sheetName, apiList:[]};
createBizAndDataConfigMap[pageName].apiList.push({ type ,dataName ,title ,unit ,total ,precent }); createBizAndDataConfigMap[pageName].apiList.push({ type ,dataName ,title ,unit ,total ,percent });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment