fix(缺陷管理): 禅道模版创建缺陷报错
This commit is contained in:
parent
89e1a847ac
commit
fcdca53b18
|
@ -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");
|
||||||
|
|
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue