fix(测试跟踪): 修复功能用例保存并新建按钮未生效及显示依赖关系数量
--bug=1022808 --user=刘瑶 【测试跟踪】功能用例,保存并新建功能没生效 https://www.tapd.cn/55049933/s/1336097 --bug=1022812 --user=刘瑶 【测试跟踪】功能用例,依赖关系的数量统计没有了 https://www.tapd.cn/55049933/s/1336098
This commit is contained in:
parent
b30702bde7
commit
60b7a1e27f
|
@ -882,9 +882,10 @@ export default {
|
||||||
this.saveCase();
|
this.saveCase();
|
||||||
} else {
|
} else {
|
||||||
this.saveCase(function (t) {
|
this.saveCase(function (t) {
|
||||||
let tab = {};
|
if(t){
|
||||||
tab.name = "add";
|
t.$router.push({path: "/track/case/create",});
|
||||||
t.$emit("addTab", tab);
|
location.reload();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (e === "ADD_AND_PUBLIC") {
|
} else if (e === "ADD_AND_PUBLIC") {
|
||||||
|
@ -1124,6 +1125,8 @@ export default {
|
||||||
}
|
}
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback(this);
|
callback(this);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
// 保存用例后刷新附件
|
// 保存用例后刷新附件
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="content-body-wrap">
|
<div class="content-body-wrap">
|
||||||
|
|
||||||
<!-- 非创建状态下 展示 -->
|
<!-- 非创建状态下 展示 -->
|
||||||
<div class="tab-pane-wrap" v-if="!editable">
|
<div class="tab-pane-wrap" v-if="!editable">
|
||||||
<el-tabs v-model="caseActiveName" @tab-click="tabClick">
|
<el-tabs v-model="caseActiveName" @tab-click="tabClick">
|
||||||
<el-tab-pane :label="$t('case.use_case_detail')" name="detail">
|
<el-tab-pane :label="$t('case.use_case_detail')" name="detail">
|
||||||
<div class="tab-container" :class="{'comment-edit-tab-container' : isCommentEdit}">
|
<div
|
||||||
|
class="tab-container"
|
||||||
|
:class="{ 'comment-edit-tab-container': isCommentEdit }"
|
||||||
|
>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<case-detail-component
|
<case-detail-component
|
||||||
|
@ -26,8 +28,14 @@
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="$t('case.associate_test_cases')" name="associateTestCases">
|
<el-tab-pane
|
||||||
<div class="tab-container" :class="{'comment-edit-tab-container' : isCommentEdit}">
|
:label="$t('case.associate_test_cases')"
|
||||||
|
name="associateTestCases"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
class="tab-container"
|
||||||
|
:class="{ 'comment-edit-tab-container': isCommentEdit }"
|
||||||
|
>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<case-test-relate
|
<case-test-relate
|
||||||
|
@ -44,7 +52,10 @@
|
||||||
:label="$t('test_track.case.relate_issue')"
|
:label="$t('test_track.case.relate_issue')"
|
||||||
name="associatedDefects"
|
name="associatedDefects"
|
||||||
>
|
>
|
||||||
<div class="tab-container" :class="{'comment-edit-tab-container' : isCommentEdit}">
|
<div
|
||||||
|
class="tab-container"
|
||||||
|
:class="{ 'comment-edit-tab-container': isCommentEdit }"
|
||||||
|
>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<case-issue-relate
|
<case-issue-relate
|
||||||
|
@ -54,13 +65,23 @@
|
||||||
:read-only="readOnly && !isTestPlan"
|
:read-only="readOnly && !isTestPlan"
|
||||||
:plan-case-id="planId ? this.form.id : null"
|
:plan-case-id="planId ? this.form.id : null"
|
||||||
:case-id="caseId"
|
:case-id="caseId"
|
||||||
ref="issue"/>
|
ref="issue"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="$t('case.dependencies')" name="dependencies">
|
<el-tab-pane :label="$t('case.dependencies')" name="dependencies">
|
||||||
<div class="tab-container" :class="{'comment-edit-tab-container' : isCommentEdit}">
|
<template v-slot:label>
|
||||||
|
<tab-pane-count
|
||||||
|
:title="$t('commons.relationship.name')"
|
||||||
|
:count="relationshipCount"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
<div
|
||||||
|
class="tab-container"
|
||||||
|
:class="{ 'comment-edit-tab-container': isCommentEdit }"
|
||||||
|
>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<case-relationship-viewer
|
<case-relationship-viewer
|
||||||
|
@ -77,7 +98,10 @@
|
||||||
</div>
|
</div>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane :label="$t('case.comment')" name="comment">
|
<el-tab-pane :label="$t('case.comment')" name="comment">
|
||||||
<div class="tab-container" :class="{'comment-edit-tab-container' : isCommentEdit}">
|
<div
|
||||||
|
class="tab-container"
|
||||||
|
:class="{ 'comment-edit-tab-container': isCommentEdit }"
|
||||||
|
>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<case-comment-viewer
|
<case-comment-viewer
|
||||||
|
@ -91,10 +115,16 @@
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<!-- 变更记录 -->
|
<!-- 变更记录 -->
|
||||||
<el-tab-pane :label="$t('case.change_record')" name="changeRecord">
|
<el-tab-pane :label="$t('case.change_record')" name="changeRecord">
|
||||||
<div class="tab-container" :class="{'comment-edit-tab-container' : isCommentEdit}">
|
<div
|
||||||
|
class="tab-container"
|
||||||
|
:class="{ 'comment-edit-tab-container': isCommentEdit }"
|
||||||
|
>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="content-container">
|
<div class="content-container">
|
||||||
<case-change-history :case-id="caseId" ref="caseChangeHistoryRef"></case-change-history>
|
<case-change-history
|
||||||
|
:case-id="caseId"
|
||||||
|
ref="caseChangeHistoryRef"
|
||||||
|
></case-change-history>
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
|
@ -128,7 +158,6 @@
|
||||||
></case-detail-component>
|
></case-detail-component>
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -144,6 +173,7 @@ import CaseCommentComponent from "./CaseCommentComponent";
|
||||||
import CaseCommentViewer from "./CaseCommentViewer";
|
import CaseCommentViewer from "./CaseCommentViewer";
|
||||||
import { getRelationshipCountCase } from "@/api/testCase";
|
import { getRelationshipCountCase } from "@/api/testCase";
|
||||||
import { testCaseCommentList } from "@/api/test-case-comment";
|
import { testCaseCommentList } from "@/api/test-case-comment";
|
||||||
|
import TabPaneCount from "@/business/plan/view/comonents/report/detail/component/TabPaneCount";
|
||||||
export default {
|
export default {
|
||||||
name: "CaseEditInfoComponent",
|
name: "CaseEditInfoComponent",
|
||||||
components: {
|
components: {
|
||||||
|
@ -156,6 +186,7 @@ export default {
|
||||||
CaseCommentViewer,
|
CaseCommentViewer,
|
||||||
CaseRelationshipViewer,
|
CaseRelationshipViewer,
|
||||||
CaseTestRelate,
|
CaseTestRelate,
|
||||||
|
TabPaneCount,
|
||||||
},
|
},
|
||||||
props: [
|
props: [
|
||||||
"richTextDefaultOpen",
|
"richTextDefaultOpen",
|
||||||
|
@ -201,7 +232,7 @@ export default {
|
||||||
relateFiles: [],
|
relateFiles: [],
|
||||||
unRelateFiles: [],
|
unRelateFiles: [],
|
||||||
dumpFile: {},
|
dumpFile: {},
|
||||||
commentState: 'READY'
|
commentState: "READY",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -209,8 +240,8 @@ export default {
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
isCommentEdit() {
|
isCommentEdit() {
|
||||||
return this.commentState == 'EDIT';
|
return this.commentState == "EDIT";
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
caseId() {
|
caseId() {
|
||||||
|
@ -267,7 +298,7 @@ export default {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getRelatedTest();
|
this.getRelatedTest();
|
||||||
});
|
});
|
||||||
} else if(tab.name === "changeRecord"){
|
} else if (tab.name === "changeRecord") {
|
||||||
this.$refs.caseChangeHistoryRef.openHit();
|
this.$refs.caseChangeHistoryRef.openHit();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue