| | |
| | | }) |
| | | |
| | | router.afterEach((to, from, failure) => { |
| | | setTimeout(function (){computeTableHeightIndex()},1000) |
| | | setTimeout(function () { computeTableHeightIndex() }, 1000) |
| | | window.addEventListener('resize', computeTableHeightIndex()) |
| | | }) |
| | | function computeTableHeightIndex () { |
| | |
| | | const height9 = getEleHeghtByClassName('static_wrap', 0) |
| | | const height10 = getEleHeghtByClassName('query_btns', 0) |
| | | const height11 = getEleHeghtByClassName('el-tabs-ele', 0) |
| | | const height12 = getEleHeghtByClassName('platgroup_tabs', 0) |
| | | router.app.$store.commit('setTableHeightNew', height - height13 - height3 - height5 - height6 - height2 - height7 - height4 - height9 - height10 - height11 - height12) |
| | | const height12 = getEleHeghtByClassName('platgroup_tabs', 0,20) |
| | | router.app.$store.commit('setTableHeightNew', height -10 - height2 - height3 - height4 - height5 - height6 - height7 - height9 - height10 - height11 - height12 - height13) |
| | | console.log('gableHeightNew', router.app.$store.state.tableHeightNew) |
| | | } else { |
| | | console.log('tableLayout========================') |