Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sportsschoolserver
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
sportsschoolserver
Commits
fac1c0bc
Commit
fac1c0bc
authored
Nov 10, 2021
by
chenjinjing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/sportsschoolserver
parents
3c82d295
9741af15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
xsxxfxData.ts
src/data/xsxxfxData.ts
+15
-2
No files found.
src/data/xsxxfxData.ts
View file @
fac1c0bc
...
...
@@ -185,19 +185,32 @@ export async function get图表(mid, rid, gid) {
}
export
async
function
get
散点图
(
mid
,
rid
,
gid
)
{
let
sql
=
"select * from attack_point where m_id = Placeholder1 and r_id = Placeholder2 and g_id = Placeholder3"
;
let
attack_sql
=
"select * from attack_point where m_id = Placeholder1 and r_id = Placeholder2 and g_id = Placeholder3"
;
let
defense_sql
=
"select * from defense_point where m_id = Placeholder1 and r_id = Placeholder2 and g_id = Placeholder3"
;
let
selectResult
=
await
selectData
(
sql
,
mid
,
rid
,
gid
);
let
selectResult
=
await
selectData
(
attack_sql
,
mid
,
rid
,
gid
);
let
defenseResult
=
await
selectData
(
defense_sql
,
mid
,
rid
,
gid
);
let
result
=
[];
selectResult
.
forEach
(
info
=>
{
result
.
push
({
type
:
1
,
time
:
info
.
M_TIME
,
x
:
info
.
X
,
y
:
info
.
Y
});
});
defenseResult
.
forEach
(
info
=>
{
result
.
push
({
type
:
2
,
time
:
info
.
M_TIME
,
x
:
info
.
X
,
y
:
info
.
Y
});
});
result
.
sort
(
(
a
,
b
)
=>
{
return
a
.
time
-
b
.
time
});
return
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