Commit f282e404 by 孙香冬

no message

parent bb4cd4fb
...@@ -10,6 +10,7 @@ import { findEnterpriseCount, findEnterpriseCountByFuHuaQiUscc, groupFindEnterpr ...@@ -10,6 +10,7 @@ import { findEnterpriseCount, findEnterpriseCountByFuHuaQiUscc, groupFindEnterpr
import { findFuHuaQiByUSCC, findFuHuaQiCount, findFuHuaQiList, groupFindFuHuaQi } from "../../data/fuHuaQi/fuhuaqi"; import { findFuHuaQiByUSCC, findFuHuaQiCount, findFuHuaQiList, groupFindFuHuaQi } from "../../data/fuHuaQi/fuhuaqi";
import * as tools from "../../util/tools"; import * as tools from "../../util/tools";
import { FuHuaQiBaseListConfig } from "../../config/ojbectResultKeyConfig"; import { FuHuaQiBaseListConfig } from "../../config/ojbectResultKeyConfig";
import { FUHUAQILV } from "../../config/enum";
/** /**
...@@ -66,7 +67,7 @@ export async function selectFuHuaQiBaseData(uscc:string) { ...@@ -66,7 +67,7 @@ export async function selectFuHuaQiBaseData(uscc:string) {
*/ */
export async function homeData(uscc:string) { export async function homeData(uscc:string) {
let dataBaseInfo = await findFuHuaQiByUSCC(uscc); let dataBaseInfo = await findFuHuaQiByUSCC(uscc);
let keyList = [ "incubatedAcreage", "acreageTotal", "acreagePersonalUse", "name"]; let keyList = [ "incubatedAcreage", "acreageTotal", "acreagePersonalUse", "name", "lv", "institutionalNature"];
let data:any = {enterpriseCount:0}; let data:any = {enterpriseCount:0};
keyList.forEach( key => { keyList.forEach( key => {
...@@ -74,7 +75,8 @@ export async function homeData(uscc:string) { ...@@ -74,7 +75,8 @@ export async function homeData(uscc:string) {
}); });
data.enterpriseCount = await findEnterpriseCountByFuHuaQiUscc(uscc); data.enterpriseCount = await findEnterpriseCountByFuHuaQiUscc(uscc);
data.lv = FUHUAQILV[dataBaseInfo.lv];
data.institutionalNature = FUHUAQILV[dataBaseInfo.institutionalNature];
return data; return data;
} }
......
...@@ -16,7 +16,7 @@ export function setRouter(httpServer) { ...@@ -16,7 +16,7 @@ export function setRouter(httpServer) {
httpServer.post('/fuhuaqi/login/firstupdate', checkFuHuaQiToken, asyncHandler(firstUpdatePwd)); httpServer.post('/fuhuaqi/login/firstupdate', checkFuHuaQiToken, asyncHandler(firstUpdatePwd));
/**基础数据 */ /**基础数据 */
httpServer.post('/fuhuaqi/base', checkFuHuaQiToken, asyncHandler(baseInfo)); httpServer.post('/fuhuaqi/base', asyncHandler(baseInfo));
httpServer.post('/fuhuaqi/mydata', asyncHandler(myDataInfo)); httpServer.post('/fuhuaqi/mydata', asyncHandler(myDataInfo));
httpServer.post('/fuhuaqi/base/update', checkFuHuaQiToken, asyncHandler(updateMyDataInfo)); httpServer.post('/fuhuaqi/base/update', checkFuHuaQiToken, asyncHandler(updateMyDataInfo));
/**任务 */ /**任务 */
...@@ -34,7 +34,7 @@ export function setRouter(httpServer) { ...@@ -34,7 +34,7 @@ export function setRouter(httpServer) {
httpServer.post('/fuhuaqi/financing/update', checkFuHuaQiToken, asyncHandler(updateFinancingInfo)); httpServer.post('/fuhuaqi/financing/update', checkFuHuaQiToken, asyncHandler(updateFinancingInfo));
httpServer.post('/fuhuaqi/financing/select', asyncHandler(selectEnterpriseFinancingInfo)); httpServer.post('/fuhuaqi/financing/select', asyncHandler(selectEnterpriseFinancingInfo));
httpServer.post('/fuhuaqi/financing/delete', checkFuHuaQiToken, asyncHandler(delEnterpriseFinancingInfo)); httpServer.post('/fuhuaqi/financing/delete', checkFuHuaQiToken, asyncHandler(delEnterpriseFinancingInfo));
httpServer.post('/admin/financing/namelist', asyncHandler(getFinancingInfoByName)); httpServer.post('/admin/financing/namelist', checkFuHuaQiToken, asyncHandler(getFinancingInfoByName));
/**新注册或迁入企业 */ /**新注册或迁入企业 */
httpServer.post('/fuhuaqi/enterprise/register', checkFuHuaQiToken, asyncHandler(registerEnterprise)); httpServer.post('/fuhuaqi/enterprise/register', checkFuHuaQiToken, asyncHandler(registerEnterprise));
......
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