fix(测试跟踪): 部分项目编辑无法选择jira问题类型

--bug=1013732 --user=陈建星 【项目管理】创建/编辑项目,第三方平台选jira,问题/需求类型无法选择 https://www.tapd.cn/55049933/s/1172306
This commit is contained in:
chenjianxing 2022-06-02 10:43:46 +08:00 committed by jianxing
parent 4d635dfa35
commit 48fdd7151e
1 changed files with 8 additions and 1 deletions

View File

@ -219,7 +219,14 @@ export default {
listenGoBack(this.handleClose);
if (row) {
this.title = this.$t('project.edit');
row.issueConfigObj = row.issueConfig ? JSON.parse(row.issueConfig) : {};
row.issueConfigObj = row.issueConfig ? JSON.parse(row.issueConfig) : {jiraIssueTypeId: null, jiraStoryTypeId: null};
//
if (!row.issueConfigObj.jiraIssueTypeId) {
row.issueConfigObj.jiraIssueTypeId = null;
}
if (!row.issueConfigObj.jiraStoryTypeId) {
row.issueConfigObj.jiraStoryTypeId = null;
}
this.form = Object.assign({}, row);
this.issueTemplateId = row.issueTemplateId;
} else {