重大危险源

main
Ldy20010130 5 months ago
parent adf949b2f3
commit 90cef735f6

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

@ -16,7 +16,7 @@
</u-sticky> --> </u-sticky> -->
<!-- <swiper :current="tabIndex" @change="tabChange" style="height: calc(100vh - 176rpx);margin-top: 10rpx;"> <!-- <swiper :current="tabIndex" @change="tabChange" style="height: calc(100vh - 176rpx);margin-top: 10rpx;">
<swiper-item> --> <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="tongji" v-for="(item,index) in countList" :key="index">
<view class="head"> <view class="head">
@ -143,13 +143,34 @@
beianList: [], // beianList: [], //
beianStatusList: [], // beianStatusList: [], //
countList: [], // countList: [], //
//
navbarHeight: 0,
// web-view
webViewHeight: 0,
}; };
}, },
mounted() { mounted() {
this.getDict(); this.getDict();
this.setNavbarHeight()
}, },
methods: { 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) { prefile(e) {
uni.downloadFile({ uni.downloadFile({
@ -240,6 +261,8 @@
box-sizing: border-box !important; box-sizing: border-box !important;
.content { .content {
height: 100%;
overflow-y: scroll;
padding: 30rpx; padding: 30rpx;
.tongji { .tongji {

Loading…
Cancel
Save