|
|
@ -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 {
|
|
|
|