提交 bd1dc70f 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

test results page and data

上级 6711988e
......@@ -4,6 +4,7 @@ import (
"fmt"
commConsts "github.com/aaronchen2k/deeptest/internal/comm/consts"
commDomain "github.com/aaronchen2k/deeptest/internal/comm/domain"
"github.com/aaronchen2k/deeptest/internal/pkg/domain"
serverDomain "github.com/aaronchen2k/deeptest/internal/server/modules/v1/domain"
"github.com/aaronchen2k/deeptest/internal/server/modules/v1/model"
"github.com/aaronchen2k/deeptest/internal/server/modules/v1/service"
......@@ -22,7 +23,7 @@ func NewWorkspaceCtrl() *WorkspaceCtrl {
func (c *WorkspaceCtrl) List(ctx iris.Context) {
currProductId, _ := ctx.URLParamInt("currProductId")
if currProductId <= 0 {
ctx.JSON(c.ErrResp(commConsts.ParamErr, fmt.Sprintf("参数%s不合法", "currProductId")))
ctx.JSON(c.SuccessResp(domain.PageData{}))
return
}
......
......@@ -4,13 +4,13 @@ import BlankLayout from '@/layouts/BlankLayout.vue';
const IndexLayoutRoutes: Array<RoutesDataItem> = [
{
icon: 'script',
title: 'script',
title: 'test_script',
path: '/script',
redirect: '/script/index',
component: BlankLayout,
children: [
{
title: 'script',
title: 'test_script',
path: 'index',
component: () => import('@/views/script/index.vue'),
hidden: true,
......@@ -20,13 +20,13 @@ const IndexLayoutRoutes: Array<RoutesDataItem> = [
{
icon: 'result',
title: 'result',
title: 'test_result',
path: '/result',
redirect: '/result/list',
component: BlankLayout,
children: [
{
title: 'exec_result',
title: 'test_result',
path: 'list',
component: () => import('@/views/result/index.vue'),
hidden: true,
......
......@@ -14,8 +14,9 @@ export default {
'start_time': 'Start Time',
'end_time': 'End Time',
'result': 'Result',
'exec_result': 'Test Result',
'opt': 'opt',
'test_result': 'Test Result',
'test_result_detail': 'Result Detail',
'opt': 'opt',
'title': 'Title',
'category': 'Category',
'version': 'Version',
......@@ -41,6 +42,7 @@ export default {
'script_lang': 'Script Language',
'script': 'Script',
'test_script': 'Script',
'script.list': 'Script List',
'script.view': 'View Script',
'script.edit': 'Edit Script',
......@@ -80,7 +82,6 @@ export default {
'build_tool': 'Build Tool',
'test_cmd': 'Test Command',
'test_result': 'Result Detail',
're_exec': 'Retest',
're_exec_all': 'Retest All Cases',
're_exec_failed': 'Retest Failed Cases',
......
......@@ -14,7 +14,8 @@ export default {
'start_time': '开始时间',
'end_time': '结束时间',
'result': '结果',
'exec_result': '执行结果',
'test_result': '测试结果',
'test_result_detail': '结果详情',
'opt': '操作',
'title': '标题',
'category': '分类',
......@@ -42,6 +43,7 @@ export default {
'script_lang': '脚本语言',
'script': '脚本',
'test_script': '测试脚本',
'script.list': '脚本列表',
'script.view': '查看脚本',
'script.edit': '编辑脚本',
......@@ -80,7 +82,6 @@ export default {
'build_tool': '构建工具',
'test_cmd': '测试命令',
'test_result': '执行结果详情',
're_exec': '重新执行',
're_exec_all': '重新执行所有用例',
're_exec_failed': '重新执行失败用例',
......
......@@ -2,7 +2,7 @@
<div class="indexlayout-main-conent">
<a-card :bordered="false">
<template #title>
{{ t('exec_result') }}
{{ t('test_result') }}
</template>
<template #extra>
</template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册