From 2ddec61770c9486197dc7ec5f7914037cda3dfbf Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 16 六月 2025 10:39:54 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
---
admin/src/components/base/BaseComputHeight.vue | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/admin/src/components/base/BaseComputHeight.vue b/admin/src/components/base/BaseComputHeight.vue
index 6a876aa..c4cc769 100644
--- a/admin/src/components/base/BaseComputHeight.vue
+++ b/admin/src/components/base/BaseComputHeight.vue
@@ -1,20 +1,25 @@
<script>
+import {mapState} from "vuex";
+
export default {
name: 'BaseComputeHeight',
data () {
return {
- tableHeightNew: 300
+ // tableHeightNew: 300
}
},
+ computed: {
+ ...mapState(['tableHeightNew'])
+ },
created() {
- this.computeTableHeight()
+ // this.computeTableHeight()
},
mounted () {
- this.computeTableHeight()
- window.addEventListener('resize', this.computeTableHeight)
+ // this.computeTableHeight()
+ // window.addEventListener('resize', this.computeTableHeight)
},
activated() {
- this.computeTableHeight()
+ // this.computeTableHeight()
},
methods: {
computeTableHeight () {
@@ -33,8 +38,8 @@
const height12 = document.getElementsByClassName('platgroup_tabs') && document.getElementsByClassName('platgroup_tabs')[0]?20+ document.getElementsByClassName('platgroup_tabs')[0].clientHeight:0
// this.tableHeightNew = height-height4-height3-height2-height1-height5-height6-height7-height8-height9 -height10// 鎵撳嵃楂樺害
this.tableHeightNew = height-height3 -height5-height6-height2-height7-height4-height9-height10 -height11 -height12
- console.log('self',height,height3 ,height5,(height6==0?20:height6),height2,height7,height4,height9,height10 ,height11 ,height12)
- console.log('self',this.tableHeightNew)
+ // console.log('self',height,height3 ,height5,(height6==0?20:height6),height2,height7,height4,height9,height10 ,height11 ,height12)
+ // console.log('self',this.tableHeightNew)
})
}
}
--
Gitblit v1.9.3