Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zjxcxServer
Commits
a315a7fd
Commit
a315a7fd
authored
Feb 13, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
311525d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
base.ts
src/biz/fuHuqQi/base.ts
+8
-1
ojbectResultKeyConfig.ts
src/config/ojbectResultKeyConfig.ts
+1
-3
admin.ts
src/routers/admin.ts
+10
-1
No files found.
src/biz/fuHuqQi/base.ts
View file @
a315a7fd
...
...
@@ -96,12 +96,19 @@ export async function fuHuaQiBaseList(lv:number, institutionalNature:number, ind
let
enterpriseMap
=
await
groupFindEnterprise
();
//企业总数
let
dataBaseList
=
await
findFuHuaQiList
(
selectParam
,
(
page
-
1
)
*
10
);
let
count
=
await
findFuHuaQiCount
(
selectParam
);
let
dataList
=
[];
dataBaseList
.
forEach
(
info
=>
{
let
changeData
:
any
=
tools
.
extractData
(
FuHuaQiBaseListConfig
,
info
);
// let hatchingGround = info.hatchingGround;
// hatchingGround.forEach (info => {
// let {personInChargeAdd, siteAcreage, leasePrice} = info;
// changeData.personInChargeAdd = personInChargeAdd;
// changeData.siteAcreage = siteAcreage;
// changeData.leasePrice = leasePrice;
// })
let
enterpriseTotal
=
enterpriseMap
[
info
.
uscc
]
||
0
;
let
numOfEntities
=
enterpriseTotal
-
(
info
.
virtualEnterpriseNum
||
0
);
numOfEntities
=
numOfEntities
<
0
?
0
:
numOfEntities
;
...
...
src/config/ojbectResultKeyConfig.ts
View file @
a315a7fd
...
...
@@ -19,9 +19,7 @@ export const FuHuaQiBaseListConfig = {
liaisonPhone
:{
key
:
"联系电话"
},
personInCharge
:{
key
:
"负责人"
},
personInChargePhone
:{
key
:
"负责人联系电话"
},
personInChargeAdd
:{
key
:
"孵化场地地址"
},
siteAcreage
:{
key
:
"孵化场地面积(㎡)"
},
leasePrice
:{
key
:
"孵化场地出租单价"
},
hatchingGround
:{
key
:
"经备案孵化场地"
},
};
/**
...
...
src/routers/admin.ts
View file @
a315a7fd
...
...
@@ -125,7 +125,11 @@ async function getMonthList(req, res) {
res
.
success
(
result
);
}
/**
* 后台管理 新增孵化器账号
* @param req
* @param res
*/
async
function
addUser
(
req
,
res
)
{
let
reqConf
=
{
form
:
'Object'
};
let
{
form
}
=
checkReqParam
(
reqConf
,
req
.
body
);
...
...
@@ -135,6 +139,11 @@ async function addUser(req, res) {
}
/**
* 所属孵化器
* @param req
* @param res
*/
async
function
affiliationFuHuaQi
(
req
,
res
)
{
let
result
=
await
enterpriseBiz
.
getAffiliationFuHuaQi
();
res
.
success
(
result
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment