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
cd77655c
Commit
cd77655c
authored
Dec 14, 2022
by
lixinming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/motorCity
parents
e4af2680
7322d4b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
csfxData.ts
src/data/dataCenterInterface/csfxData.ts
+12
-2
No files found.
src/data/dataCenterInterface/csfxData.ts
View file @
cd77655c
...
...
@@ -72,8 +72,18 @@ export async function getQytlzdjs() {
let
{
enterpriseExitList
}
=
data
;
enterpriseExitList
.
sort
(
(
a
,
b
)
=>
{
if
(
!
a
.
ratio
)
a
.
ratio
=
Math
.
ceil
((
a
.
exitCount
/
a
.
autoMileage
)
*
100
/
100
);
if
(
!
b
.
ratio
)
b
.
ratio
=
Math
.
ceil
((
b
.
exitCount
/
b
.
autoMileage
)
*
100
/
100
);
if
(
!
a
.
ratio
)
{
a
.
ratio
=
Math
.
ceil
((
a
.
exitCount
/
a
.
autoMileage
)
*
100
/
100
);
if
(
a
.
exitCount
==
0
||
a
.
autoMileage
==
0
)
{
a
.
ratio
=
0
;
}
}
if
(
!
b
.
ratio
)
{
b
.
ratio
=
Math
.
ceil
((
b
.
exitCount
/
b
.
autoMileage
)
*
100
/
100
);
if
(
b
.
exitCount
==
0
||
b
.
autoMileage
==
0
)
{
b
.
ratio
=
0
;
}
}
let
aRatio
=
a
.
ratio
;
let
bRatio
=
b
.
ratio
;
return
bRatio
-
aRatio
;
...
...
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