Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
9abc4a79
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,体验更适合开发者的 AI 搜索 >>
提交
9abc4a79
编写于
5月 17, 2020
作者:
C
chenjianxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
测试计划状态修改
上级
5892cd3f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
59 addition
and
6 deletion
+59
-6
frontend/src/business/components/track/common/tableItems/plan/PlanStatusTableItem.vue
...ents/track/common/tableItems/plan/PlanStatusTableItem.vue
+1
-1
frontend/src/business/components/track/plan/common/TestPlanStatusButton.vue
...ess/components/track/plan/common/TestPlanStatusButton.vue
+42
-0
frontend/src/business/components/track/plan/common/TestPlanTestCaseStatusButton.vue
...onents/track/plan/common/TestPlanTestCaseStatusButton.vue
+0
-4
frontend/src/business/components/track/plan/components/TestPlanEdit.vue
...usiness/components/track/plan/components/TestPlanEdit.vue
+16
-1
未找到文件。
frontend/src/business/components/track/common/tableItems/plan/PlanStatusTableItem.vue
浏览文件 @
9abc4a79
...
...
@@ -2,7 +2,7 @@
<div>
<ms-tag
v-if=
"value == 'Prepare'"
type=
"info"
:content=
"$t('test_track.plan.plan_status_prepare')"
/>
<ms-tag
v-if=
"value == 'Underway'"
type=
"primary"
:content=
"$t('test_track.plan.plan_status_running')"
/>
<ms-tag
v-if=
"value == 'Completed'"
type=
"success"
:content=
"$t('test_track.plan
_view
.plan_status_completed')"
/>
<ms-tag
v-if=
"value == 'Completed'"
type=
"success"
:content=
"$t('test_track.plan.plan_status_completed')"
/>
</div>
</
template
>
...
...
frontend/src/business/components/track/plan/common/TestPlanStatusButton.vue
0 → 100644
浏览文件 @
9abc4a79
<
template
>
<el-row
type=
"flex"
justify=
"start"
:gutter=
"20"
class=
"status-button"
>
<el-col>
<el-button
type=
"info"
round
size=
"mini"
:icon=
"status == 'Prepare' ? 'el-icon-check' : ''"
@
click=
"setStatus('Prepare')"
>
{{
$t
(
'
test_track.plan.plan_status_prepare
'
)
}}
</el-button>
</el-col>
<el-col>
<el-button
type=
"primary"
round
size=
"mini"
:icon=
"status == 'Underway' ? 'el-icon-check' : ''"
@
click=
"setStatus('Underway')"
>
{{
$t
(
'
test_track.plan.plan_status_running
'
)
}}
</el-button>
</el-col>
<el-col>
<el-button
type=
"success"
round
size=
"mini"
:icon=
"status == 'Completed' ? 'el-icon-check' : ''"
@
click=
"setStatus('Completed')"
>
{{
$t
(
'
test_track.plan.plan_status_completed
'
)
}}
</el-button>
</el-col>
</el-row>
</
template
>
<
script
>
export
default
{
name
:
"
TestPlanStatusButton
"
,
props
:
{
status
:
{
type
:
String
},
},
methods
:
{
setStatus
(
status
)
{
this
.
$emit
(
'
statusChange
'
,
status
);
}
}
}
</
script
>
<
style
scoped
>
.el-row
{
width
:
50%
;
}
</
style
>
frontend/src/business/components/track/plan/common/TestPlanTestCaseStatusButton.vue
浏览文件 @
9abc4a79
...
...
@@ -26,10 +26,6 @@
<
script
>
export
default
{
name
:
"
TestPlanTestCaseStatusButton
"
,
data
()
{
return
{
}
},
props
:
{
status
:
{
type
:
String
...
...
frontend/src/business/components/track/plan/components/TestPlanEdit.vue
浏览文件 @
9abc4a79
...
...
@@ -76,6 +76,14 @@
</el-col>
</el-row>
<el-row
v-if=
"operationType == 'edit'"
type=
"flex"
justify=
"left"
style=
"margin-top: 10px;"
>
<el-col
:span=
"19"
:offset=
"1"
>
<el-form-item
:label=
"'当前状态'"
:label-width=
"formLabelWidth"
prop=
"status"
>
<test-plan-status-button
:status=
"form.status"
@
statusChange=
"statusChange"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<template
v-slot:footer
>
...
...
@@ -101,10 +109,12 @@
<
script
>
import
{
WORKSPACE_ID
}
from
'
../../../../../common/js/constants
'
;
import
TestPlanStatusButton
from
"
../common/TestPlanStatusButton
"
;
export
default
{
name
:
"
TestPlanEdit
"
,
data
()
{
components
:
{
TestPlanStatusButton
},
data
()
{
return
{
dialogFormVisible
:
false
,
form
:
{
...
...
@@ -180,6 +190,10 @@
this
.
principalOptions
=
response
.
data
;
});
},
statusChange
(
status
)
{
this
.
form
.
status
=
status
;
this
.
$forceUpdate
();
},
resetForm
()
{
//防止点击修改后,点击新建触发校验
if
(
this
.
$refs
[
'
planFrom
'
])
{
...
...
@@ -190,6 +204,7 @@
this
.
form
.
principal
=
''
;
this
.
form
.
stage
=
''
;
this
.
form
.
description
=
''
;
this
.
form
.
status
=
null
;
return
true
;
});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录