refactor: 修改表格高度计算方式
This commit is contained in:
parent
46be679e96
commit
15b6a69b45
|
@ -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: [],
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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: {},
|
||||
|
|
Loading…
Reference in New Issue