fix(测试跟踪):修复项目集成Devops平台创建用例报错

--bug=1025885 --user=王旭 【测试跟踪】服务集成Azure Devops-功能用例-创建用例-报错调用Adzure Devops查询需求失败 https://www.tapd.cn/55049933/s/1367640
This commit is contained in:
WangXu10 2023-04-27 16:56:43 +08:00 committed by fit2-zhao
parent 26198d5f74
commit 199138e118
5 changed files with 9 additions and 1 deletions

View File

@ -856,6 +856,7 @@ const message = {
jira_prompt_information:
"This information is the user authentication information for submitting defects through Jira. If it is not filled in, the default information configured in the workspace will be used",
jira_information: "Jira information",
azure_url_check: "Please enter currect Azure Devops Url",
},
},
project: {

View File

@ -838,6 +838,7 @@ const message = {
jira_prompt_information:
"该信息为通过Jira提交缺陷的用户认证信息若未填写则使用工作空间中配置的默认信息",
jira_information: "Jira 信息",
azure_url_check: "请输入正确的Azure Devops地址",
},
},
project: {

View File

@ -837,6 +837,7 @@ const message = {
jira_prompt_information:
"該信息為通過Jira提交缺陷的用戶認證信息若未填寫則使用工作空間中配置的默認信息",
jira_information: "Jira 信息",
azure_url_check: "請輸入正確的Azure Devops地址",
},
},
project: {

View File

@ -45,6 +45,7 @@ export const TAPD = 'Tapd';
export const ZEN_TAO = 'Zentao';
export const LOCAL = 'Local';
export const AZURE_DEVOPS = 'AzureDevops';
export const AZURE_DEVOP_URL = 'https://dev.azure.com/';
export const GROUP_SYSTEM = 'SYSTEM';
export const GROUP_WORKSPACE = 'WORKSPACE';

View File

@ -71,7 +71,7 @@
<script>
import BugManageBtn from "./BugManageBtn";
import {getCurrentUser, getCurrentWorkspaceId} from "metersphere-frontend/src/utils/token";
import {AZURE_DEVOPS} from "metersphere-frontend/src/utils/constants";
import {AZURE_DEVOPS,AZURE_DEVOP_URL} from "metersphere-frontend/src/utils/constants";
import MsInstructionsIcon from "metersphere-frontend/src/components/MsInstructionsIcon";
import MsPersonRouter from "metersphere-frontend/src/components/personal/PersonRouter";
import {
@ -188,6 +188,10 @@ export default {
});
},
testConnection() {
if (!(this.form.url === AZURE_DEVOP_URL)) {
this.$warning(this.$t('organization.integration.azure_url_check'));
return false;
}
if (this.form.pat) {
this.$parent.loading = authServiceIntegration(getCurrentWorkspaceId(), AZURE_DEVOPS).then(() => {
this.$success(this.$t('organization.integration.verified'));