fix(接口测试): 修复无权限的case执行时提示未选择环境的缺陷
--bug=1019502 --user=王孝刚 【接口测试】导入的场景-编辑保存运行环境后,列表中执行仍提示未选择运行环境 https://www.tapd.cn/55049933/s/1292309
This commit is contained in:
parent
1186418eef
commit
8ba7b8b704
|
@ -495,6 +495,11 @@ export default {
|
|||
run() {
|
||||
this.currentScenarioData = undefined;
|
||||
this.getParentVariables(this.node);
|
||||
getOwnerProjectIds().then(res => {
|
||||
const project = res.data.find(p => p === resource.projectId);
|
||||
if (!project) {
|
||||
this.$warning(this.$t('automation.project_no_permission'));
|
||||
} else {
|
||||
let selectEnvId;
|
||||
// 自定义请求
|
||||
if (this.isApiImport || this.request.isRefEnvironment) {
|
||||
|
@ -553,6 +558,8 @@ export default {
|
|||
this.request.result = undefined;
|
||||
/*触发执行操作*/
|
||||
this.reportId = getUUID();
|
||||
}
|
||||
})
|
||||
},
|
||||
getParentVariables(node) {
|
||||
if (!this.currentScenarioData) {
|
||||
|
|
|
@ -48,6 +48,9 @@ const message = {
|
|||
relation_case: "Relation CASE",
|
||||
relation_scenario: "Relation Scenario"
|
||||
},
|
||||
},
|
||||
automation:{
|
||||
project_no_permission: "The current person does not have the operation permission for this step",
|
||||
}
|
||||
}
|
||||
export default {
|
||||
|
|
|
@ -48,6 +48,9 @@ const message = {
|
|||
relation_case: "关联CASE",
|
||||
relation_scenario: "关联场景"
|
||||
},
|
||||
},
|
||||
automation:{
|
||||
project_no_permission: "当前操作人无此步骤的操作权限",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,9 @@ const message = {
|
|||
relation_case: "關聯CASE",
|
||||
relation_scenario: "關聯場景"
|
||||
},
|
||||
},
|
||||
automation:{
|
||||
project_no_permission: "當前人操作無此步驟的操作權限",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue