Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
b64fa89e
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 大约 3 年
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b64fa89e
编写于
4月 08, 2020
作者:
C
chenjianxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
菜单栏创建测试计划
上级
54201699
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
22 addition
and
7 deletion
+22
-7
frontend/src/business/components/common/router/router.js
frontend/src/business/components/common/router/router.js
+1
-1
frontend/src/business/components/track/case/TestCase.vue
frontend/src/business/components/track/case/TestCase.vue
+1
-0
frontend/src/business/components/track/head/TrackHeaderMenus.vue
...d/src/business/components/track/head/TrackHeaderMenus.vue
+0
-3
frontend/src/business/components/track/plan/TestPlan.vue
frontend/src/business/components/track/plan/TestPlan.vue
+14
-0
frontend/src/business/components/track/plan/TestPlanView.vue
frontend/src/business/components/track/plan/TestPlanView.vue
+5
-3
frontend/src/business/components/track/plan/components/TestCasePlanList.vue
...ess/components/track/plan/components/TestCasePlanList.vue
+1
-0
未找到文件。
frontend/src/business/components/common/router/router.js
浏览文件 @
b64fa89e
...
...
@@ -214,7 +214,7 @@ const router = new VueRouter({
component
:
TestCase
,
},
{
path
:
"
plan/:
projectId
"
,
path
:
"
plan/:
type
"
,
name
:
"
testPlan
"
,
component
:
TestPlan
},
...
...
frontend/src/business/components/track/case/TestCase.vue
浏览文件 @
b64fa89e
...
...
@@ -88,6 +88,7 @@
}
if
(
path
.
indexOf
(
"
/track/case/edit
"
)
>=
0
){
this
.
openRecentTestCaseEditDialog
();
this
.
$router
.
push
(
'
/track/case/all
'
);
}
}
},
...
...
frontend/src/business/components/track/head/TrackHeaderMenus.vue
浏览文件 @
b64fa89e
...
...
@@ -31,9 +31,6 @@
<span
style=
"padding-left: 5px;"
>
{{$t('test_track.case_list')}}
</span>
</el-menu-item>
<el-menu-item
:index=
"testCaseEditPath"
class=
"blank_item"
></el-menu-item>
<!--<el-menu-item :index="'/' + beaseUrl + '/case/create'">-->
<!--<el-button type="text">{{$t('test_track.create_case')}}</el-button>-->
<!--</el-menu-item>-->
</el-submenu>
<el-submenu
v-if=
"isCurrentWorkspaceUser"
...
...
frontend/src/business/components/track/plan/TestPlan.vue
浏览文件 @
b64fa89e
...
...
@@ -25,6 +25,20 @@
return
{
}
},
mounted
()
{
if
(
this
.
$route
.
path
.
indexOf
(
"
/track/plan/create
"
)
>=
0
){
this
.
openTestPlanEditDialog
();
this
.
$router
.
push
(
'
/track/plan/all
'
);
}
},
watch
:
{
'
$route
'
(
to
,
from
)
{
if
(
to
.
path
.
indexOf
(
"
/track/plan/create
"
)
>=
0
){
this
.
openTestPlanEditDialog
();
this
.
$router
.
push
(
'
/track/plan/all
'
);
}
}
},
methods
:
{
openTestPlanEditDialog
(
data
)
{
this
.
$refs
.
testPlanEditDialog
.
openTestPlanEditDialog
(
data
);
...
...
frontend/src/business/components/track/plan/TestPlanView.vue
浏览文件 @
b64fa89e
...
...
@@ -13,19 +13,20 @@
<test-case-plan-list
@
openTestCaseRelevanceDialog=
"openTestCaseRelevanceDialog"
@
editTestPlanTestCase=
"editTestPlanTestCase"
@
refresh=
"refresh"
:plan-id=
"planId"
ref=
"testCasePlanList"
></test-case-plan-list>
</el-main>
</el-container>
<test-case-relevance
@
refresh=
"
getPlanCases
"
@
refresh=
"
refresh
"
:plan-id=
"planId"
ref=
"testCaseRelevance"
></test-case-relevance>
<test-plan-test-case-edit
ref=
"testPlanTestCaseEdit"
@
refresh=
"
getPlanCases
"
>
@
refresh=
"
refresh
"
>
</test-plan-test-case-edit>
...
...
@@ -65,7 +66,8 @@
},
methods
:
{
refresh
()
{
this
.
getPlanCases
();
this
.
getNodeTreeByPlanId
();
},
getPlanCases
(
nodeIds
)
{
this
.
$refs
.
testCasePlanList
.
initTableData
(
nodeIds
);
...
...
frontend/src/business/components/track/plan/components/TestCasePlanList.vue
浏览文件 @
b64fa89e
...
...
@@ -211,6 +211,7 @@
let
testCaseId
=
testCase
.
id
;
this
.
$post
(
'
/test/plan/case/delete/
'
+
testCaseId
,
{},
()
=>
{
this
.
initTableData
();
this
.
$emit
(
"
refresh
"
);
this
.
$message
({
message
:
this
.
$t
(
'
commons.delete_success
'
),
type
:
'
success
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录