fix(缺陷管理): 禅道模版创建缺陷报错

This commit is contained in:
shiziyuan9527 2021-06-16 18:51:19 +08:00 committed by 刘瑞斌
parent 89e1a847ac
commit fcdca53b18
2 changed files with 10 additions and 4 deletions

View File

@ -47,6 +47,10 @@ public class ZentaoPlatform extends AbstractIssuePlatform {
public ZentaoPlatform(IssuesRequest issuesRequest) { public ZentaoPlatform(IssuesRequest issuesRequest) {
super(issuesRequest); super(issuesRequest);
String config = getPlatformConfig(IssuesManagePlatform.Zentao.toString()); String config = getPlatformConfig(IssuesManagePlatform.Zentao.toString());
// todo
if (StringUtils.isBlank(config)) {
MSException.throwException("未集成禅道平台!");
}
JSONObject object = JSON.parseObject(config); JSONObject object = JSON.parseObject(config);
this.account = object.getString("account"); this.account = object.getString("account");
this.password = object.getString("password"); this.password = object.getString("password");

View File

@ -159,10 +159,12 @@ export default {
if (platform === 'Zentao') { if (platform === 'Zentao') {
this.hasZentaoId = true; this.hasZentaoId = true;
this.result = this.$post("/issues/zentao/builds", {projectId: this.projectId}, response => { this.result = this.$post("/issues/zentao/builds", {projectId: this.projectId}, response => {
this.Builds = response.data; if (response.data) {
}); this.Builds = response.data;
this.result = this.$post("/issues/zentao/user", {projectId: this.projectId}, response => { }
this.zentaoUsers = response.data; this.result = this.$post("/issues/zentao/user", {projectId: this.projectId}, response => {
this.zentaoUsers = response.data;
});
}); });
} }
if (platform === 'Tapd') { if (platform === 'Tapd') {