refactor(测试跟踪): 表格高度

This commit is contained in:
Captain.B 2021-05-26 14:06:49 +08:00 committed by 刘瑞斌
parent be0248d168
commit 88979c56fb
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@
:data="tableData" :data="tableData"
@filter-change="filter" @filter-change="filter"
@sort-change="sort" @sort-change="sort"
:height="screenHeight"
@row-click="intoPlan"> @row-click="intoPlan">
<template v-for="(item, index) in tableLabel"> <template v-for="(item, index) in tableLabel">
<el-table-column <el-table-column
@ -282,6 +283,7 @@ export default {
isTestManagerOrTestUser: false, isTestManagerOrTestUser: false,
total: 0, total: 0,
tableData: [], tableData: [],
screenHeight: 'calc(100vh - 295px)',
statusFilters: [ statusFilters: [
{text: this.$t('test_track.plan.plan_status_prepare'), value: 'Prepare'}, {text: this.$t('test_track.plan.plan_status_prepare'), value: 'Prepare'},
{text: this.$t('test_track.plan.plan_status_running'), value: 'Underway'}, {text: this.$t('test_track.plan.plan_status_running'), value: 'Underway'},

View File

@ -12,6 +12,7 @@
class="adjust-table" class="adjust-table"
:data="tableData" :data="tableData"
@filter-change="filter" @filter-change="filter"
:height="screenHeight"
@sort-change="sort" @sort-change="sort"
@row-click="intoReview"> @row-click="intoReview">
<template v-for="(item, index) in tableLabel"> <template v-for="(item, index) in tableLabel">
@ -155,6 +156,7 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
screenHeight: 'calc(100vh - 295px)',
statusFilters: [ statusFilters: [
{text: this.$t('test_track.plan.plan_status_prepare'), value: 'Prepare'}, {text: this.$t('test_track.plan.plan_status_prepare'), value: 'Prepare'},
{text: this.$t('test_track.plan.plan_status_running'), value: 'Underway'}, {text: this.$t('test_track.plan.plan_status_running'), value: 'Underway'},