Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
0bf42358
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,发现更多精彩内容 >>
提交
0bf42358
编写于
4月 24, 2020
作者:
S
shiziyuan9527
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改消息提示
上级
874f3c62
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
59 deletion
+14
-59
frontend/src/business/components/performance/report/PerformanceReportView.vue
...s/components/performance/report/PerformanceReportView.vue
+2
-8
frontend/src/business/components/performance/report/PerformanceTestReport.vue
...s/components/performance/report/PerformanceTestReport.vue
+3
-12
frontend/src/business/components/performance/test/EditPerformanceTestPlan.vue
...s/components/performance/test/EditPerformanceTestPlan.vue
+5
-23
frontend/src/business/components/settings/organization/OrganizationMember.vue
...s/components/settings/organization/OrganizationMember.vue
+4
-16
未找到文件。
frontend/src/business/components/performance/report/PerformanceReportView.vue
浏览文件 @
0bf42358
...
...
@@ -132,17 +132,11 @@
this
.
status
=
data
.
status
;
switch
(
data
.
status
)
{
case
'
Error
'
:
this
.
$message
({
type
:
'
warning
'
,
message
:
"
报告生成错误,无法查看!
"
});
this
.
$warning
(
"
报告生成错误,无法查看!
"
);
break
;
case
'
Starting
'
:
case
'
Reporting
'
:
this
.
$message
({
type
:
'
info
'
,
message
:
"
报告生成中....
"
});
this
.
$info
(
"
报告生成中....
"
);
break
;
case
'
Running
'
:
this
.
showTestLogging
=
true
;
...
...
frontend/src/business/components/performance/report/PerformanceTestReport.vue
浏览文件 @
0bf42358
...
...
@@ -136,16 +136,10 @@
},
handleEdit
(
report
)
{
if
(
report
.
status
===
"
Error
"
)
{
this
.
$message
({
type
:
'
warning
'
,
message
:
"
报告生成错误,无法查看!
"
});
this
.
$warning
(
"
报告生成错误,无法查看!
"
);
return
false
}
else
if
(
report
.
status
===
"
Starting
"
)
{
this
.
$message
({
type
:
'
info
'
,
message
:
"
报告生成中...
"
});
this
.
$info
(
"
报告生成中...
"
)
return
false
}
this
.
$router
.
push
({
...
...
@@ -164,10 +158,7 @@
},
_handleDelete
(
report
)
{
this
.
result
=
this
.
$post
(
this
.
deletePath
+
report
.
id
,
{},
()
=>
{
this
.
$message
({
message
:
this
.
$t
(
'
commons.delete_success
'
),
type
:
'
success
'
});
this
.
$success
(
this
.
$t
(
'
commons.delete_success
'
));
this
.
initTableData
();
});
},
...
...
frontend/src/business/components/performance/test/EditPerformanceTestPlan.vue
浏览文件 @
0bf42358
...
...
@@ -125,10 +125,7 @@
let
options
=
this
.
getSaveOption
();
this
.
result
=
this
.
$request
(
options
,
()
=>
{
this
.
$message
({
message
:
this
.
$t
(
'
commons.save_success
'
),
type
:
'
success
'
});
this
.
$success
(
this
.
$t
(
'
commons.save_success
'
));
this
.
$refs
.
advancedConfig
.
cancelAllEdit
();
this
.
$router
.
push
({
path
:
'
/performance/test/all
'
})
});
...
...
@@ -142,16 +139,9 @@
this
.
result
=
this
.
$request
(
options
,
(
response
)
=>
{
this
.
testPlan
.
id
=
response
.
data
;
this
.
$message
({
message
:
this
.
$t
(
'
commons.save_success
'
),
type
:
'
success
'
});
this
.
$success
(
this
.
$t
(
'
commons.save_success
'
));
this
.
result
=
this
.
$post
(
this
.
runPath
,
{
id
:
this
.
testPlan
.
id
},
()
=>
{
this
.
$message
({
message
:
this
.
$t
(
'
load_test.is_running
'
),
type
:
'
success
'
});
this
.
$success
(
this
.
$t
(
'
load_test.is_running
'
))
this
.
$router
.
push
({
path
:
'
/performance/report/all
'
})
})
});
...
...
@@ -196,20 +186,12 @@
},
validTestPlan
()
{
if
(
!
this
.
testPlan
.
name
)
{
this
.
$message
({
message
:
this
.
$t
(
'
load_test.test_name_is_null
'
),
type
:
'
error
'
});
this
.
$error
(
this
.
$t
(
'
load_test.test_name_is_null
'
));
return
false
;
}
if
(
!
this
.
testPlan
.
projectId
)
{
this
.
$message
({
message
:
this
.
$t
(
'
load_test.project_is_null
'
),
type
:
'
error
'
});
this
.
$error
(
this
.
$t
(
'
load_test.project_is_null
'
));
return
false
;
}
...
...
frontend/src/business/components/settings/organization/OrganizationMember.vue
浏览文件 @
0bf42358
...
...
@@ -189,10 +189,7 @@
organizationId
:
this
.
currentUser
().
lastOrganizationId
}
this
.
result
=
this
.
$post
(
"
/organization/member/update
"
,
param
,
()
=>
{
this
.
$message
({
type
:
'
success
'
,
message
:
this
.
$t
(
'
commons.modify_success
'
)
});
this
.
$success
(
this
.
$t
(
'
commons.modify_success
'
));
this
.
updateVisible
=
false
;
this
.
initTableData
();
});
...
...
@@ -204,26 +201,17 @@
type
:
'
warning
'
}).
then
(()
=>
{
this
.
result
=
this
.
$get
(
'
/user/org/member/delete/
'
+
this
.
currentUser
().
lastOrganizationId
+
'
/
'
+
row
.
id
,
()
=>
{
this
.
$message
({
type
:
'
success
'
,
message
:
this
.
$t
(
'
commons.delete_success
'
)
});
this
.
$success
(
this
.
$t
(
'
commons.delete_success
'
));
this
.
initTableData
();
});
}).
catch
(()
=>
{
this
.
$message
({
type
:
'
info
'
,
message
:
this
.
$t
(
'
commons.delete_cancel
'
)
});
this
.
$info
(
this
.
$t
(
'
commons.delete_cancel
'
))
});
},
create
()
{
let
orgId
=
this
.
currentUser
().
lastOrganizationId
;
if
(
!
orgId
)
{
this
.
$message
({
type
:
'
warning
'
,
message
:
this
.
$t
(
'
organization.select_organization
'
)
})
this
.
$warning
(
this
.
$t
(
'
organization.select_organization
'
));
return
false
;
}
this
.
form
=
{};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录