refactor: 修改表格高度计算方式
This commit is contained in:
parent
46be679e96
commit
15b6a69b45
|
@ -250,8 +250,8 @@ export default {
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
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: [],
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -191,9 +191,9 @@ export default {
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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: {},
|
||||||
|
|
Loading…
Reference in New Issue