Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gaoqiaochuangjiuye
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
gaoqiaochuangjiuye
Commits
7326cccd
Commit
7326cccd
authored
Mar 29, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0ac7e5de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
.gitignore
.gitignore
+2
-0
tyjr.ts
src/biz/tyjr.ts
+72
-0
No files found.
.gitignore
View file @
7326cccd
...
...
@@ -3,5 +3,6 @@
/out
/node_modules
/test
/public
*test*
*.log
\ No newline at end of file
src/biz/tyjr.ts
0 → 100644
View file @
7326cccd
import
{
tyjrPopTableData
,
tyjrTableData
}
from
"../data/table/jcsjData"
;
import
{
tablePackage
}
from
"../dataPackage/inFrontOut"
;
// 退役军人
export
function
getData
(
req
,
res
)
{
let
excelData
=
tyjrTableData
();
let
popExcelData
=
tyjrPopTableData
();
let
ret
:
any
=
{};
let
tyjrPopBodyList
=
popExcelData
[
'退役军人详细数据'
].
bodyList
;
let
tyjrPopHeaderList
=
popExcelData
[
'退役军人详细数据'
].
headerList
[
0
];
let
tyjrPopDataList
=
[];
for
(
let
i
=
0
;
i
<
tyjrPopBodyList
.
length
;
i
++
)
{
let
a
=
{};
for
(
let
x
=
0
;
x
<
tyjrPopBodyList
[
i
].
length
;
x
++
)
{
a
[
tyjrPopHeaderList
[
x
]]
=
tyjrPopBodyList
[
i
][
x
];
}
tyjrPopDataList
.
push
(
a
);
}
for
(
let
i
=
0
;
i
<
tyjrPopDataList
.
length
;
i
++
)
{
let
tyjrInfo
=
tyjrPopDataList
[
i
];
//浮窗数据
let
fcsjPackageData
=
[];
//基本信息
let
jbxxPackageData
=
[];
//图片
let
imgPackageData
=
[];
//服务资源
let
fwzyPackageData
=
[];
for
(
let
key
in
tyjrInfo
)
{
switch
(
key
)
{
case
"退役军人总数"
:
case
"非劳动年龄人数"
:
case
"求职人数"
:
jbxxPackageData
.
push
({
name
:
key
,
value
:
tyjrInfo
[
key
],
unit
:
""
});
break
;
case
"图片"
:
imgPackageData
.
push
({
name
:
key
,
value
:
tyjrInfo
[
key
],
unit
:
""
});
break
;
case
"家门口服务站"
:
fwzyPackageData
.
push
({
name
:
key
,
value
:
tyjrInfo
[
key
],
unit
:
""
});
break
;
}
ret
[
'jbxx'
]
=
{
title
:
'基本信息'
,
dataList
:
jbxxPackageData
};
ret
[
'tp'
]
=
{
title
:
'图片'
,
dataList
:
imgPackageData
};
ret
[
'fwzy'
]
=
{
title
:
'服务资源'
,
dataList
:
fwzyPackageData
};
}
}
let
tyjrData
=
tablePackage
(
excelData
[
'求职人员详细信息'
].
headerList
[
0
],
excelData
[
'求职人员详细信息'
].
bodyList
);
let
titleList
=
[];
let
tyjrDataList
=
[];
let
index
=
1
;
tyjrData
.
dataList
.
forEach
(
info
=>
{
let
{
A
,
B
,
C
,
D
,
E
,
F
,
G
}
=
info
;
titleList
=
[
"序号"
,
"姓名"
,
"性别"
,
"身份证号"
,
"年龄"
,
"政治面貌"
,
"户籍地详细地址"
,
"目前状态"
];
tyjrDataList
.
push
([
index
,
A
,
B
,
C
,
D
,
E
,
F
,
G
]);
index
++
;
})
ret
[
'tyjr'
]
=
{
name
:
'求职人员详细信息'
,
titleList
,
dataList
:
tyjrDataList
};
res
.
send
(
ret
);
}
\ No newline at end of file
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