|
@@ -1,46 +1,175 @@
|
|
<template>
|
|
<template>
|
|
-<div>
|
|
|
|
- <header class="mui-bar mui-bar-nav">
|
|
|
|
- <h1 class="mui-title">异常记录</h1>
|
|
|
|
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
|
|
|
|
- </header>
|
|
|
|
- <div class="mui-content">
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <common @asynCallBack="asynCallBack"></common>
|
|
|
|
+ <top-header :pageTitle="pageTitle" :rightLink="rightLink" :doRightLink="doRightLink"></top-header>
|
|
|
|
+
|
|
|
|
+ <div class="mui-content fyy-date">
|
|
<div class="mui-content-padded fyy-date mui-clearfix">
|
|
<div class="mui-content-padded fyy-date mui-clearfix">
|
|
- <h5>荆鹏软件
|
|
|
|
- <a href="" class="mui-navigate-right mui-pull-right">2020-03-19</a>
|
|
|
|
|
|
+ <h5>{{company_data.name}}
|
|
|
|
+ <a class="mui-navigate-right mui-pull-right" @click="selectData">{{listForm.queryDate}}</a>
|
|
</h5>
|
|
</h5>
|
|
</div>
|
|
</div>
|
|
- <div class="mui-content-padded">
|
|
|
|
- <ul class="mui-table-view openfyy-list fyy-headimg fyy-tiwenlist">
|
|
|
|
- <li class="mui-table-view-cell mui-media">
|
|
|
|
- <div class="mui-media-body">
|
|
|
|
- 2020-03-22<span class="fyy-margin">08:00</span>
|
|
|
|
- </div>
|
|
|
|
- <p class="colorfe616c">异常<span>39.3</span></p>
|
|
|
|
- </li>
|
|
|
|
- <li class="mui-table-view-cell mui-media">
|
|
|
|
- <div class="mui-media-body">
|
|
|
|
- 2020-03-22<span class="fyy-margin">08:00</span>
|
|
|
|
|
|
+ <div class="fyydate-out">
|
|
|
|
+ <div class="fyydate-name">
|
|
|
|
+ <div v-for="(item,index) in recordList" class="fyydate-name-list">
|
|
|
|
+ <h5>{{item.name}}</h5>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="fyydate-temper">
|
|
|
|
+ <div v-for="(item,index) in recordList" class="fyydate-temper-list">
|
|
|
|
+ <div v-for="(iten,index) in item.list" class="fyydate-temper-num">
|
|
|
|
+ <span>{{iten.recordTime}}</span>
|
|
|
|
+ <span :class="(iten.temperature<=37) ? 'color05c8af':'colorfe616c'">{{iten.temperature}}</span>
|
|
</div>
|
|
</div>
|
|
- <p class="colorfe616c">异常<span>39.3</span></p>
|
|
|
|
- </li>
|
|
|
|
- <li class="mui-table-view-cell mui-media">
|
|
|
|
- <div class="mui-media-body">
|
|
|
|
- 2020-03-22<span class="fyy-margin">08:00</span>
|
|
|
|
- </div>
|
|
|
|
- <p class="colorfe616c">异常<span>39.3</span></p>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-</div>
|
|
|
|
|
|
+
|
|
|
|
+ <loading :visible="isLoading"></loading>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+ require('$project/assets/js/mui.picker.min.js');
|
|
|
|
+ import * as API_Admin from '@/apis/HouseKeeper/admin'
|
|
|
|
+ import Common from '$project/components/Common.vue'
|
|
|
|
+ import Loading from '$project/components/Loading.vue'
|
|
|
|
+ import isReachBottom from '$project/utils/isReachBottom'
|
|
|
|
+ import TopHeader from '$project/components/TopHeader.vue'
|
|
|
|
+ import {
|
|
|
|
+ mapGetters,
|
|
|
|
+ mapMutations
|
|
|
|
+ } from 'vuex'
|
|
|
|
+ import {
|
|
|
|
+ currentTimeStamp,
|
|
|
|
+ parseUnixTime
|
|
|
|
+ } from '$project/utils'
|
|
|
|
+ export default {
|
|
|
|
+ name: 'HouseKeeperAdminHealthAbnormalRecord',
|
|
|
|
+ components: {
|
|
|
|
+ Common,
|
|
|
|
+ Loading,
|
|
|
|
+ TopHeader
|
|
|
|
+ },
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ pageTitle: '异常记录',
|
|
|
|
+
|
|
|
|
+ isLoading: false,
|
|
|
|
+
|
|
|
|
+ rightLink: {
|
|
|
|
+ show: true,
|
|
|
|
+ icon: 'icon-ziyuan',
|
|
|
|
+ style: 'font-size:14px;color:#000;',
|
|
|
|
+ title: '未测人员'
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ listForm: {
|
|
|
|
+ pageIndex: 1,
|
|
|
|
+ pageSize: 20,
|
|
|
|
+ queryDate: '',
|
|
|
|
+ companyId: '',
|
|
|
|
+ totalPage: 1,
|
|
|
|
+ filter: 1
|
|
|
|
+ },
|
|
|
|
+ recordList: [],
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ if (this.$route.query.queryDate) {
|
|
|
|
+ this.listForm.queryDate = this.$route.query.queryDate;
|
|
|
|
+ } else {
|
|
|
|
+ this.listForm.queryDate = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ //获取列表
|
|
|
|
+ getList() {
|
|
|
|
+ this.isLoading = true;
|
|
|
|
+ API_Admin.getTemperatureList(this.listForm).then(response => {
|
|
|
|
+ if (response) {
|
|
|
|
+ if (this.listForm.pageIndex == 1) {
|
|
|
|
+ this.recordList = response.data;
|
|
|
|
+ this.listForm.pageIndex = response.pageNumber;
|
|
|
|
+ this.listForm.totalPage = response.totalPage;
|
|
|
|
+ } else {
|
|
|
|
+ this.recordList = [
|
|
|
|
+ ...this.recordList,
|
|
|
|
+ ...response.data
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.listForm.pageIndex++;
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ this.isLoading = false;
|
|
|
|
+ mui.toast(error);
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //下拉事件
|
|
|
|
+ handleScrool() {
|
|
|
|
+ if (isReachBottom()) {
|
|
|
|
+ console.log('到达底部')
|
|
|
|
+ if (this.listForm.pageIndex <= this.listForm.totalPage && this.isLoading == false) {
|
|
|
|
+ this.getList();
|
|
|
|
+ } else {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ //选择日期
|
|
|
|
+ selectData() {
|
|
|
|
+ var _this = this;
|
|
|
|
+ var picker = new mui.DtPicker({
|
|
|
|
+ "type": "date",
|
|
|
|
+ "beginYear": 2020,
|
|
|
|
+ "endYear": 2040,
|
|
|
|
+ "endDate": new Date(),
|
|
|
|
+ "value": _this.listForm.queryDate
|
|
|
|
+ });
|
|
|
|
+ picker.show(function(rs) {
|
|
|
|
+ _this.listForm.queryDate = rs.text;
|
|
|
|
+ _this.listForm.pageIndex = 1;
|
|
|
|
+ _this.getList();
|
|
|
|
+ picker.dispose();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ doRightLink() {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: 'HouseKeeperAdminHealthNoTemperatureRecord',
|
|
|
|
+ query: {}
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ asynCallBack() {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ mounted() {
|
|
|
|
+ this.getList();
|
|
|
|
+ //监控下拉加载事件
|
|
|
|
+ var _this = this;
|
|
|
|
+ window.addEventListener('scroll', _this.handleScrool);
|
|
|
|
+ },
|
|
|
|
+ destroyed() {
|
|
|
|
+ //销毁监听事件
|
|
|
|
+ var _this = this;
|
|
|
|
+ window.removeEventListener('scroll', _this.handleScrool);
|
|
|
|
+ },
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapGetters({
|
|
|
|
+ openId: 'wx_openid',
|
|
|
|
+ token: 'token',
|
|
|
|
+ person_data: 'person_data',
|
|
|
|
+ company_data: 'company_data',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped src="$project/assets/css/sczpfyy.css"></style>
|
|
<style scoped src="$project/assets/css/sczpfyy.css"></style>
|
|
<style scoped src="$project/assets/css/xpwyfyy.css"></style>
|
|
<style scoped src="$project/assets/css/xpwyfyy.css"></style>
|
|
<style src="$project/assets/css/iconfont.css"></style>
|
|
<style src="$project/assets/css/iconfont.css"></style>
|
|
-<style>
|
|
|
|
|
|
+<style src="$project/assets/css/mui.picker.min.css"></style>
|
|
|
|
+<style scoped>
|
|
</style>
|
|
</style>
|