Commit df29ad86 by 孙香冬

no message

parent fc13a42b
......@@ -15,7 +15,7 @@ export function getData(req, res) {
let ret:any = {};
let tkjsExcelData = {};
let tkjsExcelData:any = {};
let index = 1;
for (let key in excelData) {
if (key.search(year) > -1) { //匹配年份
......@@ -28,6 +28,15 @@ export function getData(req, res) {
})
ret["api" + index] = tkjsExcelData;
/**todo 李欣鸣 3.30日加入逻辑 */
if (index == 2) {
let itemTotal = 0;
tkjsExcelData.data.forEach(item => {
itemTotal += item.value || 0;
});
ret["api" + index].total = itemTotal;
}
/**end */
index++;
}
}
......
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