Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
e756e5ae
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,发现更多精彩内容 >>
提交
e756e5ae
编写于
2月 27, 2020
作者:
C
Captain.B
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
project
上级
cf828f87
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
10 deletion
+19
-10
frontend/src/performance/components/HeaderMenus.vue
frontend/src/performance/components/HeaderMenus.vue
+2
-2
frontend/src/performance/components/project/MsProject.vue
frontend/src/performance/components/project/MsProject.vue
+13
-6
frontend/src/performance/components/router/router.js
frontend/src/performance/components/router/router.js
+1
-1
frontend/src/performance/components/testPlan/EditTestPlan.vue
...tend/src/performance/components/testPlan/EditTestPlan.vue
+3
-1
未找到文件。
frontend/src/performance/components/HeaderMenus.vue
浏览文件 @
e756e5ae
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
<template
slot=
"title"
>
项目
</
template
>
<template
slot=
"title"
>
项目
</
template
>
<ms-recent-project/>
<ms-recent-project/>
<el-divider/>
<el-divider/>
<el-menu-item
index=
"/project"
>
<el-menu-item
index=
"/project
/all
"
>
<font-awesome-icon
:icon=
"['fa', 'list-ul']"
/>
<font-awesome-icon
:icon=
"['fa', 'list-ul']"
/>
<span
style=
"padding-left: 5px;"
>
显示全部
</span>
<span
style=
"padding-left: 5px;"
>
显示全部
</span>
</el-menu-item>
</el-menu-item>
<el-menu-item
index=
"/project
"
:route=
"{name:'project', query:{isCreate:true}}
"
>
<el-menu-item
index=
"/project
/create
"
>
<el-button
type=
"text"
>
创建项目
</el-button>
<el-button
type=
"text"
>
创建项目
</el-button>
</el-menu-item>
</el-menu-item>
</el-submenu>
</el-submenu>
...
...
frontend/src/performance/components/project/MsProject.vue
浏览文件 @
e756e5ae
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
</div>
</div>
</el-card>
</el-card>
<el-dialog
:title=
"$t('project.create')"
:visible.sync=
"createVisible"
@
close=
"close"
>
<el-dialog
:title=
"$t('project.create')"
:visible.sync=
"createVisible"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"form"
label-position=
"left"
label-width=
"100px"
size=
"small"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"form"
label-position=
"left"
label-width=
"100px"
size=
"small"
>
<el-form-item
:label=
"$t('commons.name')"
>
<el-form-item
:label=
"$t('commons.name')"
>
<el-input
v-model=
"form.name"
autocomplete=
"off"
></el-input>
<el-input
v-model=
"form.name"
autocomplete=
"off"
></el-input>
...
@@ -88,9 +88,20 @@
...
@@ -88,9 +88,20 @@
}
}
},
},
mounted
()
{
mounted
()
{
this
.
createVisible
=
this
.
$route
.
query
.
isCreate
;
if
(
this
.
$route
.
path
.
split
(
'
/
'
)[
2
]
===
'
create
'
)
{
this
.
createVisible
=
true
;
this
.
$router
.
push
(
'
/project/all
'
);
}
this
.
list
();
this
.
list
();
},
},
watch
:
{
'
$route
'
(
to
)
{
if
(
to
.
path
.
split
(
'
/
'
)[
2
]
===
'
create
'
)
{
this
.
createVisible
=
true
;
this
.
$router
.
push
(
'
/project/all
'
);
}
}
},
destroyed
()
{
destroyed
()
{
this
.
createVisible
=
false
;
this
.
createVisible
=
false
;
},
},
...
@@ -103,10 +114,6 @@
...
@@ -103,10 +114,6 @@
this
.
createVisible
=
true
;
this
.
createVisible
=
true
;
this
.
form
=
Object
.
assign
({},
row
);
this
.
form
=
Object
.
assign
({},
row
);
},
},
close
()
{
let
query
=
{};
this
.
$router
.
push
({
query
});
},
submit
(
formName
)
{
submit
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
...
frontend/src/performance/components/router/router.js
浏览文件 @
e756e5ae
...
@@ -99,7 +99,7 @@ const router = new VueRouter({
...
@@ -99,7 +99,7 @@ const router = new VueRouter({
},
},
},
},
{
{
path
:
"
/project
"
,
path
:
"
/project
/:type
"
,
name
:
'
project
'
,
name
:
'
project
'
,
components
:
{
components
:
{
content
:
MsProject
content
:
MsProject
...
...
frontend/src/performance/components/testPlan/EditTestPlan.vue
浏览文件 @
e756e5ae
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
<el-button
type=
"warning"
plain
@
click=
"cancel"
>
取消
</el-button>
<el-button
type=
"warning"
plain
@
click=
"cancel"
>
取消
</el-button>
</el-row>
</el-row>
<el-tabs
v-model=
"active"
type=
"border-card"
:stretch=
"true"
>
<el-tabs
style=
"margin-top: 15px;"
v-model=
"active"
type=
"border-card"
:stretch=
"true"
>
<el-tab-pane
label=
"基础配置"
>
<el-tab-pane
label=
"基础配置"
>
<ms-test-plan-basic-config
:test-plan=
"testPlan"
/>
<ms-test-plan-basic-config
:test-plan=
"testPlan"
/>
</el-tab-pane>
</el-tab-pane>
...
@@ -31,6 +32,7 @@
...
@@ -31,6 +32,7 @@
<ms-test-plan-advanced-config/>
<ms-test-plan-advanced-config/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</el-card>
</el-card>
</div>
</div>
</div>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录