重大危险源

main
Ldy20010130 2 years ago
parent adf949b2f3
commit 90cef735f6

@ -567,7 +567,10 @@
"titleBarColor": "#FFFFFF"
},
"navigationStyle": "custom",
"onReachBottomDistance": 0
"onReachBottomDistance": 0,
"app-plus": {
"titleNView": false
}
}
}

@ -16,7 +16,7 @@
</u-sticky> -->
<!-- <swiper :current="tabIndex" @change="tabChange" style="height: calc(100vh - 176rpx);margin-top: 10rpx;">
<swiper-item> -->
<view class="content" style="height: 100%;overflow-y: scroll;">
<view class="content" :style="{ top: navbarHeight + 'px', height: webViewHeight + 'px' }">
<!-- 危险源统计 -->
<view class="tongji" v-for="(item,index) in countList" :key="index">
<view class="head">
@ -143,13 +143,34 @@
beianList: [], //备案表格数据
beianStatusList: [], //是否备案字典数组
countList: [], //数量数组
// 导航栏高度(动态计算)
navbarHeight: 0,
// web-view 的高度(动态计算)
webViewHeight: 0,
};
},
mounted() {
this.getDict();
this.setNavbarHeight()
},
methods: {
setNavbarHeight() {
// 获取系统信息
const systemInfo = uni.getSystemInfoSync();
// 获取状态栏的高度
const statusBarHeight = systemInfo.statusBarHeight;
// 自定义导航栏高度可以根据设计需求调整,这里假设导航栏的高度是 44px
const customNavbarHeight = 44;
// 计算导航栏的总高度
this.navbarHeight = statusBarHeight + customNavbarHeight;
// 设置 web-view 的高度:全屏高度减去导航栏的高度
this.webViewHeight = systemInfo.windowHeight - this.navbarHeight;
},
//文件预览
prefile(e) {
uni.downloadFile({
@ -240,6 +261,8 @@
box-sizing: border-box !important;
.content {
height: 100%;
overflow-y: scroll;
padding: 30rpx;
.tongji {

Loading…
Cancel
Save