Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
modulesServer
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
standardized
modulesServer
Commits
c781ec70
Commit
c781ec70
authored
Nov 23, 2021
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
ffc8b521
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
out.ts
src/cal/out.ts
+4
-5
No files found.
src/cal/out.ts
View file @
c781ec70
...
@@ -88,12 +88,12 @@ export function getListOutData(title, data) {
...
@@ -88,12 +88,12 @@ export function getListOutData(title, data) {
}
}
/**
/**
* getKey
NumberValue
OutData 获取值为数值的键值返回结果
* getKey
ValueNumber
OutData 获取值为数值的键值返回结果
* @param title 数据标题
* @param title 数据标题
* @param data 数据体 格式:{key:value, key:value}
* @param data 数据体 格式:{key:value, key:value}
* @returns { title:数据标题, dataList:[{key:"数据key", "value":"数据value", unit:"数据单位"}], total:数据值总数, count:数据总条数 }
* @returns { title:数据标题, dataList:[{key:"数据key", "value":"数据value", unit:"数据单位"}], total:数据值总数, count:数据总条数 }
*/
*/
export
function
getKey
NumberValue
OutData
(
title
,
data
)
{
export
function
getKey
ValueNumber
OutData
(
title
,
data
)
{
let
dataList
=
[];
let
dataList
=
[];
let
total
=
0
;
let
total
=
0
;
let
count
=
0
;
let
count
=
0
;
...
@@ -110,12 +110,12 @@ export function getKeyNumberValueOutData(title, data) {
...
@@ -110,12 +110,12 @@ export function getKeyNumberValueOutData(title, data) {
}
}
/**
/**
* getKey
StringValueOutData 获取值为字符串
的键值返回结果
* getKey
ValueNotNumberOutData 获取值为非数值
的键值返回结果
* @param title 数据标题
* @param title 数据标题
* @param data 数据体 格式:{key:value, key:value}
* @param data 数据体 格式:{key:value, key:value}
* @returns { title:数据标题, dataList:[{key:"数据key", "value":"数据value"}], count:数据总条数 }
* @returns { title:数据标题, dataList:[{key:"数据key", "value":"数据value"}], count:数据总条数 }
*/
*/
export
function
getKey
StringValue
OutData
(
title
,
data
)
{
export
function
getKey
ValueNotNumber
OutData
(
title
,
data
)
{
let
dataList
=
[];
let
dataList
=
[];
let
count
=
0
;
let
count
=
0
;
for
(
let
key
in
data
)
{
for
(
let
key
in
data
)
{
...
@@ -163,4 +163,3 @@ export function getScatterFigureOutData(title, data) {
...
@@ -163,4 +163,3 @@ export function getScatterFigureOutData(title, data) {
return
{
title
,
xMax
:
xMaxMinInfo
.
maxNumber
,
xMin
:
xMaxMinInfo
.
minNumber
,
yMax
:
yMaxMinInfo
.
maxNumber
,
yMin
:
yMaxMinInfo
.
minNumber
,
dataList
};
return
{
title
,
xMax
:
xMaxMinInfo
.
maxNumber
,
xMin
:
xMaxMinInfo
.
minNumber
,
yMax
:
yMaxMinInfo
.
maxNumber
,
yMin
:
yMaxMinInfo
.
minNumber
,
dataList
};
}
}
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