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

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

View File

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

View File

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

View File

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

View File

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