Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
kt-keystone
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
kt-keystone
Commits
581b70b0
提交
581b70b0
authored
3月 24, 2022
作者:
mry
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(web): 修改了报告样式
上级
07a830b1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
107 行增加
和
19 行删除
+107
-19
overview.ftl
kt-base/src/main/resources/templates/overview.ftl
+107
-19
没有找到文件。
kt-base/src/main/resources/templates/overview.ftl
浏览文件 @
581b70b0
...
...
@@ -44,7 +44,7 @@
</
#
if>
</form>
</div>
<div
class=
"table"
>
<div
class=
"table"
style=
"overflow: auto"
>
<table
class=
"table table-striped"
>
<thead>
<tr>
...
...
@@ -64,16 +64,50 @@
<
#
list
fail
as
failCase
>
<tr>
<
#
assign
caseNo=
caseNo+1
>
<th
scope=
"row"
>
${caseNo}
</th>
<td>
${failCase.testCaseName!}
</td>
<td>
${failCase.type!}
</td>
<td>
${failCase.detail!}
</td>
<td>
${failCase.description!}
</td>
<td
style=
"color: red"
>
${failCase.result?c}
</td>
<td>
${failCase.duration!}
</td>
<td
class=
"clickClass"
<th
style=
"width: 60px"
scope=
"row"
>
<div
style=
"width: 60px"
>
${caseNo}
</div>
</th>
<td
style=
"width: 184px"
>
<div
style=
"width: 184px;"
>
${failCase.testCaseName!}
</div>
</td>
<td
style=
"width: 108px"
>
<div
style=
"width: 108px"
>
${failCase.type!}
</div>
</td>
<td
style=
"width: 500px"
>
<div
style=
"width: 500px;cursor: pointer;display: flex;justify-content: flex-start;align-items: flex-start"
class=
"openJson"
>
<img
style=
"width: 16px; margin-top: 4px;margin-right: 8px;transition:.5s all ease;user-select: none"
src=
"./res/img/left.png"
/>
<span
style=
"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;font-size: 16px"
>
{
${failCase.detail!}
</span>
</div>
</td>
<td>
<div
style=
"width: 160px"
>
${failCase.description!}
</div>
</td>
<td
style=
"color: red;width: 84px"
>
<div
style=
"width: 84px"
>
${failCase.result?c}
</div>
</td>
<td
style=
"width: 84px"
>
<div
style=
"width: 84px"
>
${failCase.duration!}
</div>
</td>
<td
style=
"width: 84px"
class=
"clickClass"
data-message=
'${failCase.str!}'
>
查看结果
<div
style=
"width: 84px"
>
查看结果
</div>
</td>
</tr>
</
#
list>
...
...
@@ -86,16 +120,50 @@
<
#
list
pass
as
passCase
>
<tr>
<
#
assign
caseNo=
caseNo+1
>
<th
scope=
"row"
>
${caseNo}
</th>
<td>
${passCase.testCaseName!}
</td>
<td>
${passCase.type!}
</td>
<td>
${passCase.detail!}
</td>
<td>
${passCase.description!}
</td>
<td
style=
"color: green"
>
${passCase.result?c}
</td>
<td>
${passCase.duration!}
</td>
<td
class=
"clickClass"
<th
style=
"width: 60px"
scope=
"row"
>
<div
style=
"width: 60px"
>
${caseNo}
</div>
</th>
<td
style=
"width: 184px"
>
<div
style=
"width: 184px;"
>
${passCase.testCaseName!}
</div>
</td>
<td
style=
"width: 108px"
>
<div
style=
"width: 108px"
>
${passCase.type!}
</div>
</td>
<td
style=
"width: 500px"
>
<div
style=
"width: 500px;cursor: pointer;display: flex;justify-content: flex-start;align-items: flex-start"
class=
"openJson"
>
<img
style=
"width: 16px; margin-top: 4px;margin-right: 8px;transition:.5s all ease;user-select: none"
src=
"./res/img/left.png"
/>
<span
style=
"overflow: hidden; white-space: nowrap; text-overflow: ellipsis;font-size: 16px"
>
{
${passCase.detail!}
</span>
</div>
</td>
<td>
<div
style=
"width: 160px"
>
${passCase.description!}
</div>
</td>
<td
style=
"color: green;width: 84px"
>
<div
style=
"width: 84px"
>
${passCase.result?c}
</div>
</td>
<td
style=
"width: 84px"
>
<div
style=
"width: 84px"
>
${passCase.duration!}
</div>
</td>
<td
style=
"width: 84px"
class=
"clickClass"
data-message=
'${passCase.str!}'
>
查看结果
<div
style=
"width: 84px"
>
查看结果
</div>
</td>
</tr>
</
#
list>
...
...
@@ -173,6 +241,25 @@
}
}
})
$
(
'.openJson'
).
each
((
i
,
v
)
=>
{
v
.
onclick
=
function
()
{
console
.
log
(
v
.
childNodes
)
if
(
v
.
childNodes
[
1
].
style
.
transform
==
'rotate(90deg)'
)
{
v
.
childNodes
[
1
].
style
.
transform
=
'rotate(0deg)'
}
else
{
v
.
childNodes
[
1
].
style
.
transform
=
'rotate(90deg)'
}
if
(
v
.
childNodes
[
3
].
style
.
whiteSpace
==
'pre'
)
{
v
.
childNodes
[
3
].
style
.
whiteSpace
=
'nowrap'
v
.
childNodes
[
3
].
style
.
overflow
=
'hidden'
v
.
childNodes
[
3
].
style
.
textOverflow
=
'ellipsis'
}
else
{
v
.
childNodes
[
3
].
style
.
whiteSpace
=
'pre'
}
}
})
</script>
</body>
</html>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论