refactor: 修改表格高度计算方式

This commit is contained in:
Captain.B 2021-04-27 10:35:29 +08:00 committed by 刘瑞斌
parent 46be679e96
commit 15b6a69b45
5 changed files with 14 additions and 6 deletions

View File

@ -250,8 +250,8 @@ export default {
currentPage: 1,
pageSize: 10,
total: 0,
selectDataCounts:0,
screenHeight: document.documentElement.clientHeight - 368,//
selectDataCounts: 0,
screenHeight: 'calc(100vh - 330px)',//
// environmentId: undefined,
currentCaseProjectId: "",
runData: [],

View File

@ -324,7 +324,7 @@ export default {
return {
type: TEST_PLAN_FUNCTION_TEST_CASE,
headerItems: Test_Plan_Function_Test_Case,
screenHeight: document.documentElement.clientHeight-365,
screenHeight: 'calc(100vh - 365px)',
tableLabel: [],
result: {},
deletePath: "/test/case/delete",

View File

@ -191,9 +191,9 @@ export default {
currentPage: 1,
pageSize: 10,
total: 0,
selectDataCounts:0,
selectDataCounts: 0,
status: 'default',
screenHeight: document.documentElement.clientHeight - 368,//
screenHeight: 'calc(100vh - 330px)',//
buttons: [
{
name: this.$t('test_track.plan.load_case.unlink_in_bulk'), handleClick: this.handleDeleteBatch

View File

@ -171,4 +171,12 @@ export default {
<style scoped>
/deep/ .ms-main-container {
height: calc(100vh - 80px - 53px);
}
/deep/ .ms-aside-container {
height: calc(100vh - 80px - 53px);
margin-top: 1px;
}
</style>

View File

@ -239,7 +239,7 @@ export default {
return {
type: TEST_CASE_REVIEW_CASE_LIST,
headerItems: Test_Case_Review_Case_List,
screenHeight: document.documentElement.clientHeight - 278,
screenHeight: 'calc(100vh - 330px)',
tableLabel: [],
result: {},
condition: {},