|
@@ -11,22 +11,22 @@
|
|
|
</view>
|
|
|
<view class="header-b">
|
|
|
<view class="header-b-li">
|
|
|
- <view class="header-b-li-t color-A">786</view>
|
|
|
+ <view class="header-b-li-t color-A">{{visitorCount}}</view>
|
|
|
<view class="header-b-li-b">今日访问人数</view>
|
|
|
</view>
|
|
|
<view class="line"></view>
|
|
|
<view class="header-b-li">
|
|
|
- <view class="header-b-li-t color-B">165</view>
|
|
|
+ <view class="header-b-li-t color-B">{{labOccupancyCount}}</view>
|
|
|
<view class="header-b-li-b">今日实验人数</view>
|
|
|
</view>
|
|
|
<view class="line"></view>
|
|
|
<view class="header-b-li">
|
|
|
- <view class="header-b-li-t color-C">39</view>
|
|
|
+ <view class="header-b-li-t color-C">{{dutyCount}}</view>
|
|
|
<view class="header-b-li-b">今日值日人数</view>
|
|
|
</view>
|
|
|
<view class="line"></view>
|
|
|
<view class="header-b-li">
|
|
|
- <view class="header-b-li-t color-D">562</view>
|
|
|
+ <view class="header-b-li-t color-D">{{checkCount}}</view>
|
|
|
<view class="header-b-li-b">今日检查次数</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -58,21 +58,39 @@
|
|
|
import {
|
|
|
navBar
|
|
|
} from '@/pages/component/navbar.vue'
|
|
|
- import {labPage} from '@/pages/views/dataBoard/labPage.vue'
|
|
|
- import {hazardSources} from '@/pages/views/dataBoard/hazardSources.vue'
|
|
|
- import {hazardousChemicals} from '@/pages/views/dataBoard/hazardousChemicals.vue'
|
|
|
- import {securityHidden} from '@/pages/views/dataBoard/securityHidden.vue'
|
|
|
- import {warningDispose} from '@/pages/views/dataBoard/warningDispose.vue'
|
|
|
- import {equipmentControl} from '@/pages/views/dataBoard/equipmentControl.vue'
|
|
|
- import {daYiReservation} from '@/pages/views/dataBoard/daYiReservation.vue'
|
|
|
- import {cagePosition} from '@/pages/views/dataBoard/cagePosition.vue'
|
|
|
- import {resourceReservation} from '@/pages/views/dataBoard/resourceReservation.vue'
|
|
|
+ import {
|
|
|
+ labPage
|
|
|
+ } from '@/pages/views/dataBoard/labPage.vue'
|
|
|
+ import {
|
|
|
+ hazardSources
|
|
|
+ } from '@/pages/views/dataBoard/hazardSources.vue'
|
|
|
+ import {
|
|
|
+ hazardousChemicals
|
|
|
+ } from '@/pages/views/dataBoard/hazardousChemicals.vue'
|
|
|
+ import {
|
|
|
+ securityHidden
|
|
|
+ } from '@/pages/views/dataBoard/securityHidden.vue'
|
|
|
+ import {
|
|
|
+ warningDispose
|
|
|
+ } from '@/pages/views/dataBoard/warningDispose.vue'
|
|
|
+ import {
|
|
|
+ equipmentControl
|
|
|
+ } from '@/pages/views/dataBoard/equipmentControl.vue'
|
|
|
+ import {
|
|
|
+ daYiReservation
|
|
|
+ } from '@/pages/views/dataBoard/daYiReservation.vue'
|
|
|
+ import {
|
|
|
+ cagePosition
|
|
|
+ } from '@/pages/views/dataBoard/cagePosition.vue'
|
|
|
+ import {
|
|
|
+ resourceReservation
|
|
|
+ } from '@/pages/views/dataBoard/resourceReservation.vue'
|
|
|
import {
|
|
|
config
|
|
|
} from '@/api/request/config.js'
|
|
|
import {
|
|
|
-
|
|
|
- } from '@/pages_basics/api/index.js'
|
|
|
+ reportAppStatisticsCountStatistics
|
|
|
+ } from '@/pages/api/index.js'
|
|
|
export default {
|
|
|
name: "dataBoard",
|
|
|
components: {
|
|
@@ -89,7 +107,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- pageType:1,
|
|
|
+ pageType: 1,
|
|
|
rectangleLogo: uni.getStorageSync('rectangleLogo'),
|
|
|
navHeight: uni.getStorageSync('navHeight'),
|
|
|
title: '实验室安全智慧化管控系统',
|
|
@@ -102,9 +120,17 @@
|
|
|
},
|
|
|
dataList: [],
|
|
|
total: 0,
|
|
|
- tabTextTow: ['实验室','危险源','危化品','安全隐患','预警处置','设备管控','大仪预约','笼位预约','资源预约'],
|
|
|
+ tabTextTow: ['实验室', '危险源', '危化品', '安全隐患', '预警处置', '设备管控', '大仪预约', '笼位预约', '资源预约'],
|
|
|
curTabTow: 0,
|
|
|
getDataType: false,
|
|
|
+
|
|
|
+ visitorCount:0,
|
|
|
+ labOccupancyCount:0,
|
|
|
+ dutyCount:0,
|
|
|
+ checkCount:0,
|
|
|
+
|
|
|
+ dataList:null,
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -113,62 +139,47 @@
|
|
|
beforeMount() {
|
|
|
|
|
|
},
|
|
|
- mounted() {},
|
|
|
+ mounted() {
|
|
|
+ this.reportAppStatisticsCountStatistics();
|
|
|
+ },
|
|
|
methods: {
|
|
|
//返回按钮
|
|
|
- outButton(){
|
|
|
+ outButton() {
|
|
|
this.$parent.goHome();
|
|
|
},
|
|
|
//滚动加载事件
|
|
|
scrollGet() {
|
|
|
- if (this.total / this.queryParams.pageSize <= this.queryParams.page) {
|
|
|
- this.$set(this, 'getDataType', true);
|
|
|
- } else {
|
|
|
- this.queryParams.page += 1;
|
|
|
- this.$nextTick(() => {
|
|
|
- this.getList();
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
//顶部tab点击
|
|
|
tabClickTow(item, index) {
|
|
|
this.curTabTow = index;
|
|
|
- this.pageType=index+1
|
|
|
+ this.pageType = index + 1
|
|
|
+ },
|
|
|
+ //人员统计
|
|
|
+ async reportAppStatisticsCountStatistics() {
|
|
|
+ let self = this;
|
|
|
+ const {
|
|
|
+ data
|
|
|
+ } = await reportAppStatisticsCountStatistics();
|
|
|
+ if (data.code == 200) {
|
|
|
+ this.$set(self, 'visitorCount', data.data.visitorCount);
|
|
|
+ this.$set(self, 'labOccupancyCount', data.data.labOccupancyCount);
|
|
|
+ this.$set(self, 'dutyCount', data.data.dutyCount);
|
|
|
+ this.$set(self, 'checkCount', data.data.checkCount);
|
|
|
+ }
|
|
|
},
|
|
|
-
|
|
|
async getList() {
|
|
|
let self = this;
|
|
|
- let obj = JSON.parse(JSON.stringify(this.queryParams));
|
|
|
const {
|
|
|
data
|
|
|
- } = await laboratoryAppletPassOutList(obj);
|
|
|
+ } = await reportAppStatisticsPersonDeviceSafety();
|
|
|
if (data.code == 200) {
|
|
|
- let list = [];
|
|
|
- if (this.queryParams.page != 1) {
|
|
|
- list = JSON.parse(JSON.stringify(this.dataList));
|
|
|
- }
|
|
|
- data.data.records.forEach((item) => {
|
|
|
- let num = 0;
|
|
|
- list.forEach((minItem) => {
|
|
|
- if (item.showInTime == minItem.showInTime) {
|
|
|
- num++
|
|
|
- minItem.list.push(item)
|
|
|
- }
|
|
|
- })
|
|
|
- if (num == 0) {
|
|
|
- list.push({
|
|
|
- showInTime: item.showInTime,
|
|
|
- list: [item]
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- this.$set(this, 'dataList', list);
|
|
|
- this.$set(this, 'total', data.data.total);
|
|
|
- if (data.data.total / this.queryParams.pageSize <= this.queryParams.page) {
|
|
|
- this.$set(this, 'getDataType', true);
|
|
|
- }
|
|
|
+ this.dataList = data.data;
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -179,9 +190,11 @@
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
background: #363744;
|
|
|
- .pageFlex{
|
|
|
+
|
|
|
+ .pageFlex {
|
|
|
display: flex;
|
|
|
}
|
|
|
+
|
|
|
.header {
|
|
|
width: 750rpx;
|
|
|
height: 476rpx;
|
|
@@ -289,11 +302,13 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.tabTitle_tow {
|
|
|
height: 80rpx;
|
|
|
white-space: nowrap;
|
|
|
display: inline-flex;
|
|
|
background: #3E414F;
|
|
|
+
|
|
|
.tabTitle_tow_li {
|
|
|
position: relative;
|
|
|
width: 152rpx;
|