Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
kt-keystone
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
kt-keystone
Commits
c333d7ee
提交
c333d7ee
authored
3月 25, 2022
作者:
mry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(base): 修改了报告样式
上级
1dc30777
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
28 行增加
和
20 行删除
+28
-20
overview.ftl
kt-base/src/main/resources/templates/overview.ftl
+13
-9
index.html
kt-web/src/main/resources/reports/index.html
+15
-11
没有找到文件。
kt-base/src/main/resources/templates/overview.ftl
浏览文件 @
c333d7ee
...
@@ -290,21 +290,22 @@
...
@@ -290,21 +290,22 @@
pieChart
=
{
pieChart
=
{
title
:
{
title
:
{
text
:
'测试结果'
,
text
:
'测试结果'
,
subtext
:
'${"测试通过率:" + overView.probability + "%"!}'
,
subtext
:
' '
+
left
:
'center'
' ${"测试通过率:" + overView.probability + "%"!}'
,
left
:
'left'
},
},
tooltip
:
{
tooltip
:
{
trigger
:
'item'
trigger
:
'item'
},
},
legend
:
{
legend
:
{
top
:
'5%'
,
top
:
'
8
5%'
,
left
:
'
left
'
left
:
'
center
'
},
},
series
:
[
series
:
[
{
{
name
:
'
Access From
'
,
name
:
'
是否成功
'
,
type
:
'pie'
,
type
:
'pie'
,
radius
:
[
'
40%'
,
'7
0%'
],
radius
:
[
'
25%'
,
'5
0%'
],
avoidLabelOverlap
:
false
,
avoidLabelOverlap
:
false
,
itemStyle
:
{
itemStyle
:
{
borderRadius
:
10
,
borderRadius
:
10
,
...
@@ -320,11 +321,14 @@
...
@@ -320,11 +321,14 @@
show
:
true
,
show
:
true
,
fontSize
:
'40'
,
fontSize
:
'40'
,
fontWeight
:
'bold'
fontWeight
:
'bold'
}
},
},
labelLine
:
{
labelLine
:
{
show
:
false
show
:
false
,
fontSize
:
'40'
,
fontWeight
:
'bold'
}
},
},
data
:
[
data
:
[
{
value
:
$
{
overView
.
passNum
!
},
name
:
'pass'
,
itemStyle
:
{
{
value
:
$
{
overView
.
passNum
!
},
name
:
'pass'
,
itemStyle
:
{
color
:
'green'
color
:
'green'
...
@@ -368,7 +372,7 @@
...
@@ -368,7 +372,7 @@
}],
}],
type
:
'bar'
,
type
:
'bar'
,
showBackground
:
true
,
showBackground
:
true
,
barWidth
:
10
0
,
barWidth
:
5
0
,
backgroundStyle
:
{
backgroundStyle
:
{
color
:
'rgba(180, 180, 180, 0.2)'
color
:
'rgba(180, 180, 180, 0.2)'
}
}
...
...
kt-web/src/main/resources/reports/index.html
浏览文件 @
c333d7ee
...
@@ -43,8 +43,8 @@
...
@@ -43,8 +43,8 @@
</div>
</div>
<div
style=
"display: flex;"
>
<div
style=
"display: flex;"
>
<div
id=
"pieChart"
style=
"width:50%;height: 3
5
0px;"
></div>
<div
id=
"pieChart"
style=
"width:50%;height: 3
0
0px;"
></div>
<div
id=
"histogram"
style=
"width:50%;height: 3
5
0px;"
></div>
<div
id=
"histogram"
style=
"width:50%;height: 3
0
0px;"
></div>
</div>
</div>
<div
class=
"table"
>
<div
class=
"table"
>
...
@@ -146,21 +146,22 @@
...
@@ -146,21 +146,22 @@
pieChart
=
{
pieChart
=
{
title
:
{
title
:
{
text
:
'测试结果'
,
text
:
'测试结果'
,
subtext
:
'测试通过率'
,
subtext
:
' '
+
left
:
'center'
' 测试通过率: 100%'
,
left
:
'left'
,
},
},
tooltip
:
{
tooltip
:
{
trigger
:
'item'
trigger
:
'item'
},
},
legend
:
{
legend
:
{
top
:
'5%'
,
top
:
'
8
5%'
,
left
:
'
left
'
left
:
'
center
'
},
},
series
:
[
series
:
[
{
{
name
:
'
Access From
'
,
name
:
'
是否成功
'
,
type
:
'pie'
,
type
:
'pie'
,
radius
:
[
'
40%'
,
'7
0%'
],
radius
:
[
'
25%'
,
'5
0%'
],
avoidLabelOverlap
:
false
,
avoidLabelOverlap
:
false
,
itemStyle
:
{
itemStyle
:
{
borderRadius
:
10
,
borderRadius
:
10
,
...
@@ -176,11 +177,14 @@
...
@@ -176,11 +177,14 @@
show
:
true
,
show
:
true
,
fontSize
:
'40'
,
fontSize
:
'40'
,
fontWeight
:
'bold'
fontWeight
:
'bold'
}
},
},
labelLine
:
{
labelLine
:
{
show
:
false
show
:
false
,
fontSize
:
'40'
,
fontWeight
:
'bold'
}
},
},
data
:
[
data
:
[
{
value
:
1
,
name
:
'pass'
,
itemStyle
:
{
{
value
:
1
,
name
:
'pass'
,
itemStyle
:
{
color
:
'green'
color
:
'green'
...
@@ -223,7 +227,7 @@
...
@@ -223,7 +227,7 @@
}
}
}],
}],
type
:
'bar'
,
type
:
'bar'
,
barWidth
:
10
0
,
barWidth
:
5
0
,
showBackground
:
true
,
showBackground
:
true
,
backgroundStyle
:
{
backgroundStyle
:
{
color
:
'rgba(180, 180, 180, 0.2)'
color
:
'rgba(180, 180, 180, 0.2)'
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论