Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
motorCity
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
motorCity
Commits
97ed2825
Commit
97ed2825
authored
Dec 15, 2022
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
38a33cb6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
13 deletions
+6
-13
.gitignore
.gitignore
+1
-0
data.ts
src/biz/jgfwnl/data.ts
+0
-6
csfxData.ts
src/data/dataCenterInterface/csfxData.ts
+5
-7
No files found.
.gitignore
View file @
97ed2825
...
...
@@ -7,4 +7,5 @@
/video
*test*
*.log
*.xml
dist/嘉定汽车城用户手册.docx
src/biz/jgfwnl/data.ts
View file @
97ed2825
...
...
@@ -225,7 +225,6 @@ export async function carInfo(req, res) {
let
isNull
=
false
let
监控视频列表
=
[];
if
(
testVideoData
&&
videoPictureData
)
{
let
map
=
{};
videoPictureData
.
vehiclePhotoList
.
forEach
(
info
=>
{
let
{
photo
,
photoChannel
}
=
info
;
...
...
@@ -251,8 +250,4 @@ export async function carInfo(req, res) {
}
res
.
send
(
ret
);
}
function
isNull
()
{
}
\ No newline at end of file
src/data/dataCenterInterface/csfxData.ts
View file @
97ed2825
...
...
@@ -70,7 +70,7 @@ export async function getQytlzdjs() {
let
endTime
=
moment
().
format
(
'YYYY-MM-DD'
);
let
data
=
await
getInterfaceByInterfaceName
(
dataCenterInterfaceConfig
.
enterpriseExitRate
,
{
startTime
,
endTime
});
let
{
enterpriseExitList
}
=
data
;
enterpriseExitList
.
sort
(
(
a
,
b
)
=>
{
if
(
!
a
.
ratio
)
{
a
.
ratio
=
Math
.
ceil
((
a
.
exitCount
/
a
.
autoMileage
)
*
100
/
100
);
...
...
@@ -91,22 +91,20 @@ export async function getQytlzdjs() {
let
企业名称
data
=
[];
let
次数
data
=
[];
let
里程
data
=
[];
let
比率
data
=
[];
let
enterpriseExitListTop10
=
enterpriseExitList
.
slice
(
0
,
10
);
let
enterpriseExitListTop10
=
enterpriseExitList
.
slice
(
0
,
10
);
enterpriseExitListTop10
.
forEach
(
info
=>
{
let
{
autoMileage
,
enterpriseName
,
exitCount
,
ratio
}
=
info
;
企业名称
data
.
push
(
enterpriseName
);
次数
data
.
push
(
exitCount
+
"次"
);
里程
data
.
push
(
autoMileage
+
"公里"
);
次数
data
.
push
(
ratio
+
"次/公里"
);
比率
data
.
push
(
ratio
+
"%"
)
});
let
企业测试自动驾驶比率
=
[
{
key
:
"企业名称"
,
values
:
企业名称
data
},
{
key
:
"次数"
,
values
:
次数
data
},
{
key
:
"里程"
,
values
:
里程
data
},
{
key
:
"次/公里"
,
values
:
次数
data
},
{
key
:
"比率"
,
values
:
比率
data
},
];
...
...
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