mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-11-30 19:18:59 +08:00
fix(测试跟踪): 测试计划及用例评审依赖关系的显示问题
--bug=1017148 --user=宋昌昌 【测试跟踪】测试计划-查看功能用例的依赖关系图显示评论框 https://www.tapd.cn/55049933/s/1251156
This commit is contained in:
parent
f49a50fc25
commit
95643875c1
@ -25,7 +25,7 @@
|
||||
</el-tooltip>
|
||||
</div>
|
||||
|
||||
<relationship-graph-drawer v-xpack v-permission :graph-data="graphData" ref="relationshipGraph"/>
|
||||
<relationship-graph-drawer v-xpack v-permission :graph-data="graphData" @closeRelationGraph="closeRelationGraph" ref="relationshipGraph"/>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
@ -67,8 +67,12 @@ export default {
|
||||
getRelationshipGraph(this.resourceId, this.resourceType, (data) => {
|
||||
this.graphData = data;
|
||||
this.$refs.relationshipGraph.open();
|
||||
this.$emit("openDependGraphDrawer", true);
|
||||
});
|
||||
},
|
||||
closeRelationGraph() {
|
||||
this.$emit("openDependGraphDrawer", false);
|
||||
},
|
||||
setPreCount(count) {
|
||||
this.preCount = count;
|
||||
this.$emit('setCount', this.preCount + this.postCount);
|
||||
|
@ -55,6 +55,7 @@
|
||||
<tab-pane-count :title="$t('commons.relationship.name')" :count="relationshipCount"/>
|
||||
</template>
|
||||
<dependencies-list @setCount="setRelationshipCount" :read-only="readOnly" :resource-id="caseId"
|
||||
@openDependGraphDrawer="setRelationshipGraph"
|
||||
:version-enable="versionEnable" resource-type="TEST_CASE" ref="relationship"/>
|
||||
</el-tab-pane>
|
||||
|
||||
@ -195,7 +196,7 @@ export default {
|
||||
uploadFiles: [],
|
||||
relateFiles: [],
|
||||
unRelateFiles: [],
|
||||
dumpFile: {},
|
||||
dumpFile: {}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@ -255,6 +256,9 @@ export default {
|
||||
setRelationshipCount(count) {
|
||||
this.relationshipCount = count;
|
||||
},
|
||||
setRelationshipGraph(val) {
|
||||
this.$emit("syncRelationGraphOpen", val);
|
||||
},
|
||||
reset() {
|
||||
this.tabActiveName = "remark";
|
||||
},
|
||||
|
@ -110,7 +110,7 @@
|
||||
|
||||
<el-form-item :label="$t('test_track.case.other_info')" :label-width="formLabelWidth">
|
||||
<test-case-edit-other-info :plan-id="testCase.planId" v-if="otherInfoActive" @openTest="openTest"
|
||||
:is-test-plan-edit="true"
|
||||
:is-test-plan-edit="true" @syncRelationGraphOpen="syncRelationGraphOpen"
|
||||
:read-only="true" :is-test-plan="true" :project-id="testCase.projectId"
|
||||
:form="testCase" :case-id="testCase.caseId" ref="otherInfo"/>
|
||||
</el-form-item >
|
||||
@ -121,7 +121,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="7">
|
||||
<el-col :span="7" v-if="!relationGraphOpen">
|
||||
<div class="comment-card">
|
||||
<test-plan-functional-execute
|
||||
:test-case="testCase"
|
||||
@ -214,7 +214,8 @@ export default {
|
||||
isReadOnly: false,
|
||||
testCases: [],
|
||||
originalStatus: '',
|
||||
titleWith: 0
|
||||
titleWith: 0,
|
||||
relationGraphOpen: false,
|
||||
};
|
||||
},
|
||||
props: {
|
||||
@ -506,6 +507,9 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
syncRelationGraphOpen(val) {
|
||||
this.relationGraphOpen = val;
|
||||
},
|
||||
setTitleWith() {
|
||||
this.$nextTick(() => {
|
||||
this.titleWith = 0;
|
||||
@ -629,7 +633,8 @@ p {
|
||||
}
|
||||
|
||||
/deep/ .el-scrollbar__bar.is-vertical {
|
||||
z-index: 3;
|
||||
z-index: 0;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
.head-bar {
|
||||
|
@ -115,6 +115,7 @@
|
||||
|
||||
<el-form-item :label="$t('test_track.case.other_info')" :label-width="formLabelWidth">
|
||||
<test-case-edit-other-info @openTest="openTest" :read-only="true"
|
||||
@syncRelationGraphOpen="syncRelationGraphOpen"
|
||||
:project-id="projectId" :form="testCase" :case-id="testCase.caseId"
|
||||
ref="otherInfo"/>
|
||||
</el-form-item>
|
||||
@ -126,7 +127,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="7">
|
||||
<el-col :span="7" v-if="!relationGraphOpen">
|
||||
<div class="comment-card">
|
||||
<test-review-test-case-execute
|
||||
:test-case="testCase"
|
||||
@ -219,7 +220,8 @@ export default {
|
||||
formLabelWidth: '100px',
|
||||
isCustomFiledActive: false,
|
||||
oldReviewStatus: '',
|
||||
titleWith: 0
|
||||
titleWith: 0,
|
||||
relationGraphOpen: false,
|
||||
};
|
||||
},
|
||||
props: {
|
||||
@ -282,6 +284,9 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
syncRelationGraphOpen(val) {
|
||||
this.relationGraphOpen = val;
|
||||
},
|
||||
handleClose() {
|
||||
removeGoBackListener(this.handleClose);
|
||||
this.showDialog = false;
|
||||
@ -574,6 +579,7 @@ export default {
|
||||
}
|
||||
|
||||
/deep/ .el-scrollbar__bar.is-vertical {
|
||||
z-index: 3;
|
||||
z-index: 0;
|
||||
width: 0;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user