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
29a3f5c2
Commit
29a3f5c2
authored
Mar 11, 2022
by
chenjinjing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/sportsschoolserver
# Conflicts: # src/serverConfig.ts
parents
52dc96ea
0bc7f546
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
xsxxfx.ts
src/biz/xsxxfx.ts
+3
-2
out.ts
src/cal/out.ts
+7
-1
xsxxfxData.ts
src/data/xsxxfxData.ts
+1
-1
ydyglData.ts
src/data/ydyglData.ts
+0
-0
No files found.
src/biz/xsxxfx.ts
View file @
29a3f5c2
...
...
@@ -34,7 +34,7 @@ export async function getData(req, res) {
ret
[
"jqbsgl"
]
=
jqbsglInfo
;
let
mid
=
1
;
if
(
jqbsglInfo
.
list
[
0
]
&&
jqbsglInfo
.
list
[
0
].
mid
)
mid
=
jqbsglInfo
.
list
[
0
].
mid
;
if
(
jqbsglInfo
.
list
[
0
]
&&
jqbsglInfo
.
list
[
0
].
mid
)
mid
=
parseInt
(
`
${
jqbsglInfo
.
list
[
0
].
mid
}
`
)
;
let
bsjbxxInfo
=
await
比赛信息
(
mid
);
ret
[
"bsjbxx"
]
=
bsjbxxInfo
[
"基本信息"
];
ret
[
"videourl"
]
=
bsjbxxInfo
[
"url"
];
...
...
@@ -113,7 +113,8 @@ export async function get图表数据(req, res) {
async
function
近期比赛概览
(
pid
,
inTime
)
{
let
time
=
inTime
||
new
Date
();
let
today
=
new
Date
();
let
time
=
inTime
||
`
${
today
.
getFullYear
()}
-
${
today
.
getMonth
()
+
1
}
-
${
today
.
getDate
()}
`
;
let
{
dataList
,
firstDate
}
=
await
get
近期比赛概览
(
pid
,
time
);
return
{
title
:
"近期比赛概览"
,
...
...
src/cal/out.ts
View file @
29a3f5c2
...
...
@@ -164,7 +164,13 @@ export function getScatterFigureOutData(title, data) {
return
{
title
,
xMax
:
xMaxMinInfo
.
maxNumber
,
xMin
:
xMaxMinInfo
.
minNumber
,
yMax
:
yMaxMinInfo
.
maxNumber
,
yMin
:
yMaxMinInfo
.
minNumber
,
dataList
};
}
/**
*
* @param title 标题
* @param data 数据 格式 => {key:[str1,str2...,strN] }
*/
export
function
getKeyValueListData
(
title
,
data
)
{
}
src/data/xsxxfxData.ts
View file @
29a3f5c2
...
...
@@ -63,7 +63,7 @@ function checkUnit(checkString, data, allUnit?) {
export
async
function
get
近期比赛概览
(
PID
,
checkDate
)
{
let
sql
=
"select * from recent_match where self_pid = Placeholder1 and m_date <=
Placeholder2
"
;
let
sql
=
"select * from recent_match where self_pid = Placeholder1 and m_date <=
to_date(Placeholder2,'yyyy-MM-dd')
"
;
let
selectResult
=
await
selectData
(
sql
,
PID
,
checkDate
);
let
result
=
[];
let
firstDate
=
""
;
...
...
src/data/ydyglData.ts
View file @
29a3f5c2
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