fix: 脑图编辑缺陷保存报错
--bug=1009066 --user=陈建星 【测试跟踪】禅道缺陷模板,测试计划中,脑图模式编辑缺陷后会自动取消关联 https://www.tapd.cn/55049933/s/1084596
This commit is contained in:
parent
654a6e9484
commit
06360cbfda
|
@ -174,8 +174,10 @@ public abstract class AbstractIssuePlatform implements IssuesPlatform {
|
||||||
protected void handleIssueUpdate(IssuesUpdateRequest request) {
|
protected void handleIssueUpdate(IssuesUpdateRequest request) {
|
||||||
request.setUpdateTime(System.currentTimeMillis());
|
request.setUpdateTime(System.currentTimeMillis());
|
||||||
issuesMapper.updateByPrimaryKeySelective(request);
|
issuesMapper.updateByPrimaryKeySelective(request);
|
||||||
|
if (!request.isWithoutTestCaseIssue()) {
|
||||||
handleTestCaseIssues(request);
|
handleTestCaseIssues(request);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void handleTestCaseIssues(IssuesUpdateRequest issuesRequest) {
|
protected void handleTestCaseIssues(IssuesUpdateRequest issuesRequest) {
|
||||||
String issuesId = issuesRequest.getId();
|
String issuesId = issuesRequest.getId();
|
||||||
|
|
|
@ -28,4 +28,6 @@ public class IssuesUpdateRequest extends IssuesWithBLOBs {
|
||||||
private boolean thirdPartPlatform;
|
private boolean thirdPartPlatform;
|
||||||
|
|
||||||
private List<String> follows;
|
private List<String> follows;
|
||||||
|
|
||||||
|
private boolean withoutTestCaseIssue; // 不更新用例和缺陷的关联关系
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
append-to-body
|
append-to-body
|
||||||
ref="msEditDialog">
|
ref="msEditDialog">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<issue-edit-detail :plan-id="planId" :case-id="caseId" :is-plan="true" @refresh="refresh" @close="handleClose" ref="issueEditDetail"/>
|
<issue-edit-detail :is-minder="isMinder" :plan-id="planId" :case-id="caseId" :is-plan="true" @refresh="refresh" @close="handleClose" ref="issueEditDetail"/>
|
||||||
</template>
|
</template>
|
||||||
</ms-edit-dialog>
|
</ms-edit-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
@ -31,7 +31,7 @@ export default {
|
||||||
return getCurrentProjectID();
|
return getCurrentProjectID();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: ['caseId', 'planId'],
|
props: ['caseId', 'planId', 'isMinder'],
|
||||||
methods: {
|
methods: {
|
||||||
open(data) {
|
open(data) {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
ref="minder"
|
ref="minder"
|
||||||
/>
|
/>
|
||||||
<IssueRelateList :case-id="getCurCaseId()" @refresh="refreshRelateIssue" ref="issueRelate"/>
|
<IssueRelateList :case-id="getCurCaseId()" @refresh="refreshRelateIssue" ref="issueRelate"/>
|
||||||
<test-plan-issue-edit :plan-id="null" :case-id="getCurCaseId()" @refresh="refreshIssue" ref="issueEdit"/>
|
<test-plan-issue-edit :is-minder="true" :plan-id="null" :case-id="getCurCaseId()" @refresh="refreshIssue" ref="issueEdit"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -150,7 +150,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
caseId: String,
|
caseId: String,
|
||||||
planId: String
|
planId: String,
|
||||||
|
isMinder: Boolean,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isSystem() {
|
isSystem() {
|
||||||
|
@ -293,6 +294,8 @@ export default {
|
||||||
param.resourceId = this.planId;
|
param.resourceId = this.planId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
param.withoutTestCaseIssue = this.isMinder;
|
||||||
|
|
||||||
param.thirdPartPlatform = this.enableThirdPartTemplate;
|
param.thirdPartPlatform = this.enableThirdPartTemplate;
|
||||||
return param;
|
return param;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue