Elements-SY

Merge branch 'et86' into test

...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <sidebar class="sidebar-container" 4 <sidebar class="sidebar-container"
5 :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg }" /> 5 :style="{ backgroundColor: sideTheme === 'theme-dark' ? variables.menuBg : variables.menuLightBg }" />
6 <div :class="{ hasTagsView: needTagsView }" class="main-container"> 6 <div :class="{ hasTagsView: needTagsView }" class="main-container">
7 - <div :class="{ 'fixed-header': fixedHeader }" ref="headerRef"> 7 + <div class="headerRef" :class="{ 'fixed-header': fixedHeader }" ref="headerRef">
8 <navbar /> 8 <navbar />
9 <tags-view v-if="needTagsView" /> 9 <tags-view v-if="needTagsView" />
10 </div> 10 </div>
......
...@@ -50,7 +50,6 @@ export default { ...@@ -50,7 +50,6 @@ export default {
50 let appMainHeight = this.$refs.appMainBlock.$el.clientHeight; 50 let appMainHeight = this.$refs.appMainBlock.$el.clientHeight;
51 this.$store.dispatch("app/setAppHeaderBlockCH", appHeaderHeight); 51 this.$store.dispatch("app/setAppHeaderBlockCH", appHeaderHeight);
52 this.$store.dispatch("app/setAppMainBlockCH", appMainHeight); 52 this.$store.dispatch("app/setAppMainBlockCH", appMainHeight);
53 - console.log(appHeaderHeight);
54 }, 53 },
55 }, 54 },
56 }; 55 };
......
...@@ -448,5 +448,7 @@ export function restTableHeight($refs) { ...@@ -448,5 +448,7 @@ export function restTableHeight($refs) {
448 heigth += getPropertyValue($refs[key]); 448 heigth += getPropertyValue($refs[key]);
449 } 449 }
450 }); 450 });
451 - return heigth; 451 + let topHeaderClientHeight =
452 + document.querySelector(".headerRef").clientHeight;
453 + return heigth + topHeaderClientHeight;
452 } 454 }
......
...@@ -75,7 +75,6 @@ export default { ...@@ -75,7 +75,6 @@ export default {
75 this.tableAttr.maxHeight = 75 this.tableAttr.maxHeight =
76 window.innerHeight - restTableHeight(this.$refs); 76 window.innerHeight - restTableHeight(this.$refs);
77 }); 77 });
78 - console.log(store.getters.appHeaderBlockClientHeight)
79 }, 78 },
80 methods: { 79 methods: {
81 // ET86查询 80 // ET86查询
......