infoPage.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <!-- 进出记录 -->
  2. <template>
  3. <view class="record-list-page">
  4. <view class="for-min-box">
  5. <view class="top-name-box">
  6. <view class="position-left"></view>
  7. <img v-if="minItem.avatar" :src="baseUrl+minItem.avatar">
  8. <img v-else src="@/pages_basics/images/icon_01.png">
  9. <view class="top-name-p">{{minItem.userName}}</view>
  10. <view class="top-type-p"
  11. :class="minItem.accessStatus==1?'colorA':(minItem.accessStatus==2?'colorB':(minItem.accessStatus==3?'colorC':''))">
  12. {{minItem.accessStatusStr}}
  13. </view>
  14. <view class="position-right"></view>
  15. </view>
  16. <view class="titme-bottom-p">签到时间:{{minItem.inTime?minItem.inTime:'-'}}</view>
  17. <view class="titme-bottom-p">离开时间:{{minItem.outTime?minItem.outTime:'-'}}</view>
  18. <view class="titme-bottom-p">停留时间:{{minItem.hoursMinutes?minItem.hoursMinutes:'-'}}</view>
  19. </view>
  20. <view v-if="imgDataList[0]" class="img-data-list-max-box">
  21. <view class="img-data-list-text-p">检查项</view>
  22. <view class="img-data-list-for-box" v-for="(item,index) in imgDataList" :key="index">
  23. <img :src="baseUrl+item.subUrl" v-if="item.subUrl">
  24. <view :class="item.subUrl?'img-data-list-name-box-one':'img-data-list-name-box-tow'"
  25. class="img-data-list-name-box">
  26. <view class="img-data-list-name">{{item.checkOutName}}</view>
  27. <uni-icons class="img-data-list-icon-box" type="checkmarkempty" color='#fff' size="24"></uni-icons>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import {
  35. config
  36. } from '@/api/request/config.js'
  37. import {
  38. laboratoryAppletPhotoInspectList
  39. } from '@/pages_basics/api/index.js'
  40. export default {
  41. data() {
  42. return {
  43. baseUrl: config.base_url,
  44. minItem: null,
  45. imgDataList: [],
  46. }
  47. },
  48. onLoad(option) {
  49. this.minItem = JSON.parse(decodeURIComponent(option.item));
  50. },
  51. onShow() {
  52. this.laboratoryAppletPhotoInspectList();
  53. },
  54. methods: {
  55. //查询实验室
  56. async laboratoryAppletPhotoInspectList() {
  57. let self = this;
  58. const {
  59. data
  60. } = await laboratoryAppletPhotoInspectList({
  61. passOutId: this.minItem.passOutId
  62. });
  63. if (data.code == 200) {
  64. this.$set(this, 'imgDataList', data.data);
  65. }
  66. },
  67. }
  68. }
  69. </script>
  70. <style lang="stylus" scoped>
  71. .record-list-page {
  72. height: 100%;
  73. .for-min-box {
  74. background: #fff;
  75. margin: 32rpx;
  76. padding-bottom: 30rpx;
  77. .top-name-box {
  78. position: relative;
  79. display: flex;
  80. border-bottom: 1rpx dashed #dedede;
  81. margin-bottom: 30rpx;
  82. img {
  83. width: 70rpx;
  84. height: 70rpx;
  85. border-radius: 50%;
  86. margin: 27rpx 31rpx 33rpx 31rpx;
  87. }
  88. .top-name-p {
  89. line-height: 130rpx;
  90. font-size: 28rpx;
  91. flex: 1;
  92. display: block;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. white-space: nowrap;
  96. }
  97. .top-type-p {
  98. line-height: 130rpx;
  99. margin-right: 40rpx;
  100. font-size: 28rpx;
  101. display: block;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. }
  106. .colorA {
  107. color: #0183FA;
  108. }
  109. .colorB {
  110. color: #999999;
  111. }
  112. .colorC {
  113. color: #FA5801;
  114. }
  115. .position-left {
  116. position: absolute;
  117. left: -15rpx;
  118. top: 114rpx;
  119. width: 30rpx;
  120. height: 30rpx;
  121. background: #f5f5f5;
  122. border-radius: 15rpx;
  123. }
  124. .position-right {
  125. position: absolute;
  126. right: -15rpx;
  127. top: 114rpx;
  128. width: 30rpx;
  129. height: 30rpx;
  130. background: #f5f5f5;
  131. border-radius: 15rpx;
  132. }
  133. }
  134. .titme-bottom-p {
  135. line-height: 50rpx;
  136. font-size: 28rpx;
  137. margin: 0 32rpx;
  138. }
  139. }
  140. .img-data-list-max-box {
  141. .img-data-list-text-p {
  142. line-height: 100rpx;
  143. font-size: 30rpx;
  144. padding: 0 30rpx;
  145. }
  146. .img-data-list-for-box {
  147. padding-bottom: 40rpx;
  148. img {
  149. margin:0 30rpx;
  150. width:690rpx;
  151. height: 250rpx;
  152. border-top-left-radius:20rpx;
  153. border-top-right-radius:20rpx;
  154. }
  155. .img-data-list-name-box-one {
  156. border: 1px dashed #dedede;
  157. border-top:none;
  158. border-bottom-left-radius:20rpx;
  159. border-bottom-right-radius:20rpx;
  160. }
  161. .img-data-list-name-box-tow {
  162. border: 1px dashed #dedede;
  163. border-radius: 20rpx;
  164. }
  165. .img-data-list-name-box {
  166. position: relative;
  167. height: 80rpx;
  168. margin: 0 30rpx;
  169. background-color: #fff;
  170. .img-data-list-name {
  171. font-size: 28rpx;
  172. line-height: 80rpx;
  173. margin-left: 30rpx;
  174. display: block;
  175. overflow: hidden;
  176. text-overflow: ellipsis;
  177. white-space: nowrap;
  178. }
  179. .img-data-list-icon-box {
  180. position: absolute;
  181. right: 0;
  182. bottom: 0;
  183. background-color: #0183FA;
  184. border-top-left-radius: 20rpx;
  185. border-bottom-right-radius: 20rpx;
  186. }
  187. }
  188. }
  189. }
  190. }
  191. </style>