Commit b5e2dca7 by lixinming

no message

parent 98e19e2e
......@@ -221,6 +221,7 @@ export async function getEnterpriseDetails(name, type) {
dataChange.push({eId, enterpriseName});
})
//toupdate 要改掉 少用语法糖
let dataList = [...new Map(dataChange.map(item => [item.eId, item])).values()];
return dataList;
......@@ -304,11 +305,12 @@ async function getQyfwhzsj() {
let 企业专利dbList = await selectData(OPERATIONALDATATYPE.查询多个, TABLENAME.企业专利表, {}, null);
企业专利dbList.forEach( info => {
qyfwhzsj.企业专利 += parseFloat(info.alienPatent) || 0;
qyfwhzsj.企业专利 += parseFloat(info.classIPatent) || 0;
qyfwhzsj.企业专利 += parseFloat(info.secondClassPatent) || 0;
qyfwhzsj.企业专利 += parseFloat(info.thirdPentent) || 0;
qyfwhzsj.企业专利 += parseFloat(info.thirdPentent) || 0;
qyfwhzsj.企业专利 += parseInt(info.alienPatent || 0 ) ;
qyfwhzsj.企业专利 += parseInt(info.classIPatent || 0);
qyfwhzsj.企业专利 += parseInt(info.secondClassPatent || 0);
qyfwhzsj.企业专利 += parseInt(info.thirdPentent || 0);
qyfwhzsj.企业专利 += parseInt(info.thirdPentent || 0);
})
......@@ -450,7 +452,7 @@ async function getByrzqy(企业融资dbList){
}
})
金额count = 金额count / 100000000; //单位换算成万亿
byrzqy.融资企业.push({key:month[i], value:企业count});
byrzqy["融资企业"].push({key:month[i], value:企业count});
byrzje["融资金额"].push({key:month[i], value:金额count});
}
......
......@@ -118,6 +118,14 @@ export async function getZhyy() {
let fuWuQiYeTypeList = [];
// 遍历 NEEDCATEGORY 枚举
const allNeedCategories = Object.values(NEEDCATEGORY);
for (let key in NEEDCATEGORY) {
let keyAny:any = NEEDCATEGORY[key];
if (isNaN(keyAny)) {
//toupdate 这里继续完善 有点小bug
}
}
allNeedCategories.forEach(category => {
const categoryStr = changeEnumValue(NEEDCATEGORY, category);
if (fuWuQiYeTypeMap[categoryStr]) {
......
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