fix(测试跟踪): 用例评审展示用例自定义字段值
--bug=1021536 --user=宋昌昌 【测试跟踪】github #21073功能用例自定义字段的值在用例评审页面不能显示 https://www.tapd.cn/55049933/s/1349534
This commit is contained in:
parent
a42b5eee47
commit
bdc86619a6
|
@ -343,6 +343,13 @@ export default {
|
|||
null,
|
||||
buildTestCaseOldFields(item)
|
||||
);
|
||||
this.testCaseTemplate.customFields.forEach((item) => {
|
||||
try {
|
||||
item.defaultValue = JSON.parse(item.defaultValue);
|
||||
} catch (e) {
|
||||
// nothing
|
||||
}
|
||||
});
|
||||
this.isCustomFiledActive = true;
|
||||
this.testCase = item;
|
||||
if (!this.testCase.actualResult) {
|
||||
|
|
|
@ -44,6 +44,7 @@ import ReviewStatus from "@/business/case/components/ReviewStatus";
|
|||
import {getReviewerStatusComment} from "@/api/test-review-test-case";
|
||||
import MsUserIcon from "metersphere-frontend/src/components/MsUserIcon";
|
||||
import {openCaseEdit} from "@/business/case/test-case";
|
||||
import { checkProjectPermission } from "@/api/testCase";
|
||||
|
||||
export default {
|
||||
name: "TestReviewTestCaseEditHeaderBar",
|
||||
|
@ -78,7 +79,13 @@ export default {
|
|||
}
|
||||
},
|
||||
openTestCase() {
|
||||
openCaseEdit({caseId: this.testCase.caseId}, this);
|
||||
checkProjectPermission(this.testCase.projectId).then((r) => {
|
||||
if (r.data) {
|
||||
openCaseEdit({caseId: this.testCase.caseId}, this);
|
||||
} else {
|
||||
this.$error(this.$t("commons.project_permission"));
|
||||
}
|
||||
});
|
||||
},
|
||||
close() {
|
||||
this.$emit('close');
|
||||
|
|
Loading…
Reference in New Issue