Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
0f5d79fb
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,发现更多精彩内容 >>
提交
0f5d79fb
编写于
3月 11, 2021
作者:
C
Captain.B
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(性能测试): 提供手动设置报告聚合时间
上级
e11e59a2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
54 addition
and
3 deletion
+54
-3
frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue
...performance/test/components/PerformanceAdvancedConfig.vue
+48
-0
frontend/src/i18n/en-US.js
frontend/src/i18n/en-US.js
+2
-1
frontend/src/i18n/zh-CN.js
frontend/src/i18n/zh-CN.js
+2
-1
frontend/src/i18n/zh-TW.js
frontend/src/i18n/zh-TW.js
+2
-1
未找到文件。
frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue
浏览文件 @
0f5d79fb
...
...
@@ -117,6 +117,36 @@
</el-form>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
>
<el-form
:inline=
"true"
>
<el-form-item>
<div>
{{ $t('load_test.granularity') }}
<el-popover
placement=
"bottom"
width=
"400"
trigger=
"hover"
>
<el-table
:data=
"granularityData"
>
<el-table-column
property=
"start"
:label=
"$t('load_test.duration')"
>
<
template
v-slot:default=
"scope"
>
<span>
{{
scope
.
row
.
start
}}
-
{{
scope
.
row
.
end
}}
</span>
</
template
>
</el-table-column>
<el-table-column
property=
"granularity"
:label=
"$t('load_test.granularity')"
/>
</el-table>
<i
slot=
"reference"
class=
"el-icon-info pointer"
/>
</el-popover>
</div>
</el-form-item>
<el-form-item>
<el-select
v-model=
"granularity"
:placeholder=
"$t('commons.please_select')"
size=
"mini"
clearable
>
<el-option
v-for=
"op in granularityData"
:key=
"op.granularity"
:label=
"op.granularity"
:value=
"op.granularity"
></el-option>
</el-select>
</el-form-item>
</el-form>
</el-col>
</el-row>
</div>
</template>
...
...
@@ -134,6 +164,18 @@ export default {
domains
:
[],
params
:
[],
statusCodeStr
:
''
,
granularity
:
undefined
,
granularityData
:
[
{
start
:
0
,
end
:
100
,
granularity
:
1
},
{
start
:
101
,
end
:
500
,
granularity
:
5
},
{
start
:
501
,
end
:
1000
,
granularity
:
10
},
{
start
:
1001
,
end
:
3000
,
granularity
:
30
},
{
start
:
3001
,
end
:
6000
,
granularity
:
60
},
{
start
:
6001
,
end
:
30000
,
granularity
:
300
},
{
start
:
30001
,
end
:
60000
,
granularity
:
600
},
{
start
:
60001
,
end
:
180000
,
granularity
:
1800
},
{
start
:
180001
,
end
:
360000
,
granularity
:
3600
},
]
}
},
props
:
{
...
...
@@ -166,6 +208,7 @@ export default {
this
.
statusCodeStr
=
this
.
statusCode
.
join
(
'
,
'
);
this
.
domains
=
data
.
domains
||
[];
this
.
params
=
data
.
params
||
[];
this
.
granularity
=
data
.
granularity
;
}
});
},
...
...
@@ -252,6 +295,7 @@ export default {
statusCode
:
statusCode
,
params
:
this
.
params
,
domains
:
this
.
domains
,
granularity
:
this
.
granularity
,
};
},
}
...
...
@@ -287,4 +331,8 @@ export default {
align
:
center
;
}
.pointer
{
cursor
:
pointer
;
}
</
style
>
frontend/src/i18n/en-US.js
浏览文件 @
0f5d79fb
...
...
@@ -478,7 +478,8 @@ export default {
delete_file
:
"
The file already exists, please delete the file with the same name first!
"
,
thread_num
:
'
Concurrent users:
'
,
input_thread_num
:
'
Please enter the number of threads
'
,
duration
:
'
Duration time (seconds):
'
,
duration
:
'
Duration time (seconds)
'
,
granularity
:
'
Aggregation time (seconds)
'
,
input_duration
:
'
Please enter a duration
'
,
rps_limit
:
'
RPS Limit:
'
,
input_rps_limit
:
'
Please enter a limit
'
,
...
...
frontend/src/i18n/zh-CN.js
浏览文件 @
0f5d79fb
...
...
@@ -475,7 +475,8 @@ export default {
delete_file
:
"
文件已存在,请先删除同名文件!
"
,
thread_num
:
'
并发用户数:
'
,
input_thread_num
:
'
请输入线程数
'
,
duration
:
'
压测时长(秒):
'
,
duration
:
'
压测时长(秒)
'
,
granularity
:
'
聚合时间(秒)
'
,
input_duration
:
'
请输入时长
'
,
rps_limit
:
'
RPS上限:
'
,
input_rps_limit
:
'
请输入限制
'
,
...
...
frontend/src/i18n/zh-TW.js
浏览文件 @
0f5d79fb
...
...
@@ -475,7 +475,8 @@ export default {
delete_file
:
"
文件已存在,請先刪除同名文件!
"
,
thread_num
:
'
並發用戶數:
'
,
input_thread_num
:
'
請輸入線程數
'
,
duration
:
'
壓測時長(秒):
'
,
duration
:
'
壓測時長(秒)
'
,
granularity
:
'
聚合時間(秒)
'
,
input_duration
:
'
請輸入時長
'
,
rps_limit
:
'
RPS上限:
'
,
input_rps_limit
:
'
請輸入限制
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录