Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
uniplat-example
/
intent-example
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c1c671d7
authored
Dec 13, 2022
by
罗建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
--story=1013170 --user=罗建民 list支持 section
https://www.tapd.cn/56664057/s/1127315
parent
63b2a3c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
25 deletions
models/Example1.groovy
models/Example1.json
models/Example1.groovy
View file @
c1c671d7
...
@@ -51,15 +51,17 @@ class Example1 {
...
@@ -51,15 +51,17 @@ class Example1 {
text:
'顶部2'
text:
'顶部2'
],
],
series:
[
series:
[
name
:
'访问来源'
,
[
type
:
'pie'
,
name
:
'访问来源'
,
radius:
'55%'
,
type
:
'pie'
,
data
:
[
radius:
'55%'
,
[
value:
235
,
name:
'视频广告'
],
data
:
[
[
value:
274
,
name:
'联盟广告'
],
[
value:
235
,
name:
'视频广告'
],
[
value:
310
,
name:
'邮件营销'
],
[
value:
274
,
name:
'联盟广告'
],
[
value:
335
,
name:
'直接访问'
],
[
value:
310
,
name:
'邮件营销'
],
[
value:
400
,
name:
'搜索引擎'
]
[
value:
335
,
name:
'直接访问'
],
[
value:
400
,
name:
'搜索引擎'
]
]
]
]
]
]
]
]
...
@@ -84,9 +86,11 @@ class Example1 {
...
@@ -84,9 +86,11 @@ class Example1 {
],
],
yAxis:
[:],
yAxis:
[:],
series
:
[
series
:
[
name:
'数量'
,
[
type:
'line'
,
name:
'数量'
,
data:
Arrays
.
stream
(
dataList
.
getList
()).
map
(
dataObject
->
dataObject
.
getKeyFieldValue
()).
collect
(
Collectors
.
toList
())
type:
'line'
,
data:
Arrays
.
stream
(
dataList
.
getList
()).
map
(
dataObject
->
dataObject
.
getKeyFieldValue
()).
collect
(
Collectors
.
toList
())
]
]
]
]
]
}
}
...
@@ -97,15 +101,17 @@ class Example1 {
...
@@ -97,15 +101,17 @@ class Example1 {
text:
'顶部2'
text:
'顶部2'
],
],
series:
[
series:
[
name
:
'访问来源'
,
[
type
:
'pie'
,
name
:
'访问来源'
,
radius:
'55%'
,
type
:
'pie'
,
data
:
[
radius:
'55%'
,
[
value:
235
,
name:
'视频广告'
],
data
:
[
[
value:
274
,
name:
'联盟广告'
],
[
value:
235
,
name:
'视频广告'
],
[
value:
310
,
name:
'邮件营销'
],
[
value:
274
,
name:
'联盟广告'
],
[
value:
335
,
name:
'直接访问'
],
[
value:
310
,
name:
'邮件营销'
],
[
value:
400
,
name:
'搜索引擎'
]
[
value:
335
,
name:
'直接访问'
],
[
value:
400
,
name:
'搜索引擎'
]
]
]
]
]
]
]
]
...
...
models/Example1.json
View file @
c1c671d7
...
@@ -544,14 +544,16 @@
...
@@ -544,14 +544,16 @@
"title"
:
"顶部1"
,
"title"
:
"顶部1"
,
"when"
:
"1"
,
"when"
:
"1"
,
"optionFunc"
:
"chartFuncTest1"
,
"optionFunc"
:
"chartFuncTest1"
,
"span"
:
6
"span"
:
6
,
"height"
:
400
},
},
{
{
"name"
:
"顶部2"
,
"name"
:
"顶部2"
,
"title"
:
"顶部2"
,
"title"
:
"顶部2"
,
"when"
:
"1"
,
"when"
:
"1"
,
"optionFunc"
:
"chartFuncTest2"
,
"optionFunc"
:
"chartFuncTest2"
,
"span"
:
6
"span"
:
6
,
"height"
:
400
}
}
],
],
"actions"
:
[]
"actions"
:
[]
...
@@ -565,7 +567,8 @@
...
@@ -565,7 +567,8 @@
"title"
:
"chart"
,
"title"
:
"chart"
,
"when"
:
"1"
,
"when"
:
"1"
,
"optionFunc"
:
"chartFuncTest3"
,
"optionFunc"
:
"chartFuncTest3"
,
"span"
:
12
"span"
:
12
,
"height"
:
400
}
}
],
],
"actions"
:
[],
"actions"
:
[],
...
@@ -580,7 +583,8 @@
...
@@ -580,7 +583,8 @@
"title"
:
"底部"
,
"title"
:
"底部"
,
"when"
:
"1"
,
"when"
:
"1"
,
"optionFunc"
:
"chartFuncTest4"
,
"optionFunc"
:
"chartFuncTest4"
,
"span"
:
12
"span"
:
12
,
"height"
:
400
}
}
],
],
"actions"
:
[]
"actions"
:
[]
...
...
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