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
e86e383a
Commit
e86e383a
authored
Feb 24, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1c52c8be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
serverConfig.xml
serverConfig.xml
+1
-4
data.ts
src/biz/jgfwnl/data.ts
+4
-5
No files found.
serverConfig.xml
View file @
e86e383a
...
@@ -50,12 +50,9 @@
...
@@ -50,12 +50,9 @@
<token>
09a98bc555474e058ef90b6cc6e23638
</token>
<token>
09a98bc555474e058ef90b6cc6e23638
</token>
</mapView>
</mapView>
<!-- 图片地址 这里填本机地址 -->
<!-- 图片地址 这里填本机地址 -->
<<<<<<
< HEAD
<!-- <imagePath>192.168.0.105</imagePath> -->
<imagePath
>
192.168.0.105
</imagePath>
=======
<!-- <imagePath>192.168.0.247</imagePath> -->
<!-- <imagePath>192.168.0.247</imagePath> -->
<imagePath>
127.0.0.1
</imagePath>
<imagePath>
127.0.0.1
</imagePath>
>>>>>>> 1f5d438964227535959a5ab3bd511e2d1366772e
<!-- 地图中心点 -->
<!-- 地图中心点 -->
<mapCenter>
<mapCenter>
<lng>
121.183574
</lng>
<lng>
121.183574
</lng>
...
...
src/biz/jgfwnl/data.ts
View file @
e86e383a
...
@@ -204,7 +204,6 @@ export async function carInfo(req, res) {
...
@@ -204,7 +204,6 @@ export async function carInfo(req, res) {
车辆违规列表
.
push
([
positionTime
,
alertTypeStr
,
alertDurationStr
,
`
${
velocity
}
公里/小时`
]);
车辆违规列表
.
push
([
positionTime
,
alertTypeStr
,
alertDurationStr
,
`
${
velocity
}
公里/小时`
]);
});
});
let
今日里程
;
let
今日里程
;
let
累计里程
;
let
累计里程
;
let
今日时长
;
let
今日时长
;
...
@@ -212,10 +211,10 @@ export async function carInfo(req, res) {
...
@@ -212,10 +211,10 @@ export async function carInfo(req, res) {
vehicleLocData
.
forEach
(
info
=>
{
vehicleLocData
.
forEach
(
info
=>
{
let
{
vin
,
daymileage
,
dayduration
,
totalMileage
,
totalDuration
}
=
info
;
let
{
vin
,
daymileage
,
dayduration
,
totalMileage
,
totalDuration
}
=
info
;
if
(
vin
==
carId
)
{
if
(
vin
==
carId
)
{
今日里程
=
Math
.
floor
(
daymileage
);
今日里程
=
Math
.
ceil
(
daymileage
);
今日时长
=
Math
.
floor
(
dayduration
/
3600
)
;
今日时长
=
Math
.
ceil
(
dayduration
/
3600
*
10
)
/
10
;
累计里程
=
Math
.
floor
(
totalMileage
);
累计里程
=
Math
.
ceil
(
totalMileage
);
累计时长
=
Math
.
floor
(
totalDuration
/
3600
)
;
累计时长
=
Math
.
ceil
(
totalDuration
/
3600
*
10
)
/
10
;
}
}
})
})
...
...
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