Elements-SY

Merge branch 'et86' into test

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