TemperatureInfo.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <div>
  3. <common @asynCallBack="asynCallBack"></common>
  4. <top-header :pageTitle="pageTitle" :rightLink="rightLink" :doRightLink="doRightLink"></top-header>
  5. <div class="mui-content fyy-detail-content mui-fullscreen">
  6. <div class="mui-content-padded fyynew-detail">
  7. <div class="fyynew-detail-photo">
  8. <div class="fyynew-detail-region">
  9. <img :src="detail.faceImage">
  10. </div>
  11. </div>
  12. <div class="fyynew-detail-title" :style="detail.fever?'background: rgba(254,97,108,0.6);':'background: rgba(5,200,175,0.6);'"
  13. v-text="detail.fever?'检测异常':'检测正常'"></div>
  14. <div class="fyynew-detail-wendu" :style="'background-color:'+detail.fever?'#fe616c':'#05c8af'" v-text="detail.temperature"></div>
  15. <div class="fyynew-detail-text">
  16. <h4 v-text="detail.personName"></h4>
  17. <ul class="mui-table-view fyy-view">
  18. <li class="mui-table-view-cell">
  19. <label>检测时间</label>
  20. <span v-text="detail.recordTime"></span>
  21. </li>
  22. <li class="mui-table-view-cell">
  23. <label>设备名称</label>
  24. <span v-text="detail.deviceName"></span>
  25. </li>
  26. </ul>
  27. </div>
  28. </div>
  29. </div>
  30. <loading :visible="isLoading"></loading>
  31. </div>
  32. </template>
  33. <script>
  34. import * as API_Health from '@/apis/Common/health'
  35. import Common from '$project/components/Common.vue'
  36. import Loading from '$project/components/Loading.vue'
  37. import TopHeader from '$project/components/TopHeader.vue'
  38. import {
  39. mapGetters,
  40. mapMutations
  41. } from 'vuex'
  42. export default {
  43. name: 'CommonHealthTemperatureInfo',
  44. components: {
  45. Common,
  46. Loading,
  47. TopHeader
  48. },
  49. data() {
  50. return {
  51. pageTitle: '详情',
  52. isLoading: false,
  53. rightLink: {
  54. show: true,
  55. icon: 'icon-tongji',
  56. style: 'font-size:14px',
  57. title: '健康统计'
  58. },
  59. detail: {},
  60. subForm: {
  61. id: this.$route.query.id
  62. },
  63. }
  64. },
  65. created() {
  66. },
  67. methods: {
  68. //获取详情
  69. getInfo() {
  70. this.isLoading = true;
  71. API_Health.getTemperatureInfo(this.subForm).then(response => {
  72. this.detail = response;
  73. this.isLoading = false;
  74. }).catch(error => {
  75. this.isLoading = false;
  76. mui.toast(error);
  77. })
  78. },
  79. //右上角点击事件
  80. doRightLink() {
  81. this.$router.push({
  82. name: 'CommonHealthCert',
  83. query: {}
  84. })
  85. },
  86. asynCallBack() {},
  87. },
  88. mounted() {
  89. this.getInfo();
  90. },
  91. destroyed() {},
  92. computed: {
  93. ...mapGetters({
  94. openId: 'wx_openid',
  95. token: 'token',
  96. person_data: 'person_data',
  97. company_data: 'company_data',
  98. })
  99. }
  100. }
  101. </script>
  102. <style scoped src="$project/assets/css/xpwyfyy.css"></style>
  103. <style scoped src="$project/assets/css/sczpfyy.css"></style>
  104. <style scoped src="$project/assets/css/iconfont.css"></style>
  105. <style scoped>
  106. </style>