fix(接口测试): 修复没有性能测试权限可以跳转到性能测试页面的问题
--story=1006933 --user=刘瑞斌 #12149用户无性能测试权限依然可以跳转到性能测试页面(1.20分支同步上) https://www.tapd.cn/55049933/s/1157920 Closes #12149
This commit is contained in:
parent
b738014026
commit
fe96267bcd
|
@ -10,7 +10,6 @@
|
|||
{{ $t('api_test.automation.schedule') }}
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="create_performance" v-permission="['PROJECT_API_SCENARIO:READ+CREATE_PERFORMANCE']"
|
||||
v-if="hasPermission('PROJECT_PERFORMANCE_TEST:READ+CREATE')"
|
||||
v-modules="['performance']">
|
||||
{{ $t('api_test.create_performance_test') }}
|
||||
</el-dropdown-item>
|
||||
|
@ -51,6 +50,10 @@ export default {
|
|||
}
|
||||
},
|
||||
createPerformance(row) {
|
||||
if (!hasPermission('PROJECT_PERFORMANCE_TEST:READ+CREATE')) {
|
||||
this.$warning(this.$t('api_test.create_performance_test_tips'));
|
||||
return;
|
||||
}
|
||||
this.infoDb = false;
|
||||
let url = "/api/automation/genPerformanceTestJmx";
|
||||
let run = {};
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
{{ $t('commons.execute_history') }}
|
||||
</el-dropdown-item>
|
||||
<el-dropdown-item command="create_performance" v-modules="['performance']"
|
||||
v-if="hasPermission('PROJECT_PERFORMANCE_TEST:READ+CREATE')"
|
||||
v-permission="['PROJECT_API_DEFINITION:READ+CREATE_PERFORMANCE']">
|
||||
{{ $t('api_test.create_performance_test') }}
|
||||
</el-dropdown-item>
|
||||
|
@ -42,6 +41,10 @@ export default {
|
|||
this.$emit("showCaseRef", this.row);
|
||||
break;
|
||||
case "create_performance":
|
||||
if (!hasPermission('PROJECT_PERFORMANCE_TEST:READ+CREATE')) {
|
||||
this.$warning(this.$t('api_test.create_performance_test_tips'));
|
||||
break;
|
||||
}
|
||||
this.$emit("showEnvironment", this.row);
|
||||
break;
|
||||
case "history":
|
||||
|
|
|
@ -1135,6 +1135,7 @@ export default {
|
|||
please_select_case: "Please select case",
|
||||
fail_to_stop: "Fail to stop",
|
||||
batch_add_parameter: "Format: parameter name: parameter value <br/> like:Accept-Encoding:utf-8",
|
||||
create_performance_test_tips: 'This operation cannot be completed without permission to create performance tests',
|
||||
jar_config: {
|
||||
title: "Upload jar package",
|
||||
jar_file: "Jar Package",
|
||||
|
|
|
@ -1141,6 +1141,7 @@ export default {
|
|||
please_select_case: "请选择用例",
|
||||
fail_to_stop: "失败停止",
|
||||
batch_add_parameter: "格式:参数名:参数值 <br/> 如:Accept-Encoding:utf-8",
|
||||
create_performance_test_tips: '没有创建性能测试的权限,无法完成此操作',
|
||||
jar_config: {
|
||||
title: "上传jar包",
|
||||
jar_file: "jar包",
|
||||
|
|
|
@ -1141,6 +1141,7 @@ export default {
|
|||
please_select_case: "請選擇用例",
|
||||
fail_to_stop: "失敗停止",
|
||||
batch_add_parameter: "格式:參數名:參數值 <br/> 如:Accept-Encoding:utf-8",
|
||||
create_performance_test_tips: '沒有創建性能測試的權限,無法完成此操作',
|
||||
jar_config: {
|
||||
title: "上傳jar包",
|
||||
jar_file: "jar包",
|
||||
|
|
Loading…
Reference in New Issue