Commit 4b6797a8 by chenjinjing

no message

parent b328c2eb
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -83,11 +83,20 @@ export async function homePage(eId:string) { ...@@ -83,11 +83,20 @@ export async function homePage(eId:string) {
} }
canBaoInfo.sort( (a, b) => {return new Date(b.annual).valueOf() - new Date(a.annual).valueOf()}); canBaoInfo.sort( (a, b) => {return new Date(b.annual).valueOf() - new Date(a.annual).valueOf()});
let zhengCeInfo = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.政策表, {isPermanent:1}, ["title"]); //只返回前五条
let zhengCeInfo = await selectData(OPERATIONALDATATYPE.查询多个, TABLENAME.政策表, {isPermanent:1}, {}, 1, 5);
let zhengCeList = [];
zhengCeInfo.forEach(info => {
let {poId, title, source, createTimeMs, coverImg} = info;
zhengCeList.push( {poId, title, source, createTimeMs:moment(createTimeMs).format("YYYY-MM-DD"),
coverImg:coverImg ? JSON.parse(coverImg)[0] :''
});
})
let dataInfo = { let dataInfo = {
name:enterpriseInfo.enterpriseName, name:enterpriseInfo.enterpriseName,
chongYeRenYuan, chongYeRenYuan,
zhengCeList:[zhengCeInfo.title], zhengCeList:zhengCeList,
manage:{ manage:{
lastYear:{BI:"未填报", TXP:"未填报", RD:"未填报"}, lastYear:{BI:"未填报", TXP:"未填报", RD:"未填报"},
thisYear:{BI:"未填报", TXP:"未填报", RD:"未填报"} thisYear:{BI:"未填报", TXP:"未填报", RD:"未填报"}
......
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