feat(测试用例): 查看测试用例页面添加评论组件

This commit is contained in:
shiziyuan9527 2020-12-21 11:13:07 +08:00
parent c7da0346ab
commit 0540e15e86
3 changed files with 154 additions and 145 deletions

View File

@ -47,9 +47,7 @@
}, },
methods: { methods: {
handleSelect(index) { handleSelect(index) {
console.log(index)
this.activeIndex = index this.activeIndex = index
}, },
active() { active() {
if (this.activeIndex === '/api') { if (this.activeIndex === '/api') {

View File

@ -1,4 +1,7 @@
<template> <template>
<el-row :gutter="10">
<el-col :span="16">
<el-card>
<el-form :model="form" ref="caseFrom" v-loading="result.loading"> <el-form :model="form" ref="caseFrom" v-loading="result.loading">
<el-row> <el-row>
@ -151,13 +154,21 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</el-card>
</el-col>
<el-col :span="8">
<case-comment :case-id="testCaseId"/>
</el-col>
</el-row>
</template> </template>
<script> <script>
import CaseComment from "@/business/components/track/case/components/CaseComment";
export default { export default {
name: "TestCaseDetail", name: "TestCaseDetail",
components: {CaseComment},
data() { data() {
return { return {
result: {}, result: {},

View File

@ -62,7 +62,7 @@
<el-popover <el-popover
placement="right-end" placement="right-end"
:title="$t('test_track.case.view_case')" :title="$t('test_track.case.view_case')"
width="60%" width="70%"
trigger="hover" trigger="hover"
> >
<test-case-detail v-if="currentCaseId === scope.row.id" :test-case-id="currentCaseId"/> <test-case-detail v-if="currentCaseId === scope.row.id" :test-case-id="currentCaseId"/>