accessRecord.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <!-- 进出记录 -->
  2. <template>
  3. <view class="accessRecord">
  4. <view class="title">
  5. <view v-for="(item,index) in statisticsData" :key="index">
  6. <view>{{item.num}}</view>
  7. <view>{{item.name}}</view>
  8. </view>
  9. </view>
  10. <view class="list" v-for="(item,index) in dataList" :key="index">
  11. <view class="list-t">{{item.time}}</view>
  12. <view class="list-b" v-for="(item2,index2) in item.child" :key="index2">
  13. <view class="list-b-t">
  14. <img :src="item2.avatar">
  15. <view>{{item2.name}}</view>
  16. <view>{{item2.phone}}</view>
  17. <view :class="item2.status==0?'color-A':(item2.status==1?'color-B':(item2.status==2?'color-C':''))">
  18. {{item2.status==0?'实验中':(item2.status==1?'已离开':(item2.status==2?'未离开考勤违规':''))}}
  19. </view>
  20. </view>
  21. <img class="list-b-img" src="@/pages_manage/images/for_min_bg.png">
  22. <view class="list-b-b">
  23. <view>签到时间:{{item2.time1}}</view>
  24. <view>离开时间:{{item2.time2}}</view>
  25. <view>停留时间:{{item2.time3}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import {} from '@/pages_manage/api/index.js'
  33. export default {
  34. name: "accessRecord",
  35. props: {
  36. subjectData: {},
  37. },
  38. data() {
  39. return {
  40. statisticsData:[
  41. {name:'当前实验人数',num:'1'},
  42. {name:'今日累计人次',num:'23'},
  43. {name:'当月累计人次',num:'302'},
  44. ],
  45. newData:{
  46. },
  47. dataList:[
  48. {
  49. time:'2023年12月',
  50. child:[
  51. {
  52. avatar:require('@/pages_manage/images/icon_yw_yc.png'),
  53. name:'姓名',
  54. phone:'123456987',
  55. status:0,
  56. time1:'2023-12-14 12:20',
  57. time2:'2023-12-14 14:56',
  58. time3:'2小时26分钟',
  59. }
  60. ],
  61. },
  62. {
  63. time:'2023年12月',
  64. child:[
  65. {
  66. avatar:require('@/pages_manage/images/icon_yw_yc.png'),
  67. name:'姓名',
  68. phone:'123456987',
  69. status:1,
  70. time1:'2023-12-14 12:20',
  71. time2:'2023-12-14 14:56',
  72. time3:'2小时26分钟',
  73. }
  74. ],
  75. },
  76. {
  77. time:'2023年12月',
  78. child:[
  79. {
  80. avatar:require('@/pages_manage/images/icon_yw_yc.png'),
  81. name:'姓名',
  82. phone:'123456987',
  83. status:2,
  84. time1:'2023-12-14 12:20',
  85. time2:'2023-12-14 14:56',
  86. time3:'2小时26分钟',
  87. }
  88. ],
  89. }
  90. ]
  91. }
  92. },
  93. created() {
  94. },
  95. mounted() {
  96. },
  97. methods: {
  98. },
  99. }
  100. </script>
  101. <style lang="stylus" scoped>
  102. .accessRecord {
  103. width: 750rpx;
  104. .title{
  105. width: 750rpx;
  106. height: 160rpx;
  107. background: #fff;
  108. display: flex;
  109. justify-content: space-between;
  110. padding: 0 20rpx;
  111. box-sizing: border-box;
  112. >view{
  113. flex: 1;
  114. >view:nth-of-type(1){
  115. font-family: PingFang SC;
  116. font-weight: 500;
  117. font-size: 36rpx;
  118. color: #0183FA;
  119. line-height: 30rpx;
  120. text-align: center;
  121. margin: 30rpx 0 34rpx 0;
  122. }
  123. >view:nth-of-type(2){
  124. font-family: PingFang SC;
  125. font-weight: 500;
  126. font-size: 30rpx;
  127. color: #222222;
  128. line-height: 30rpx;
  129. text-align: center;
  130. border-right: 1rpx solid #E0E0E0;
  131. }
  132. }
  133. >view:last-child{
  134. >view:nth-of-type(2){
  135. border-right: none;
  136. }
  137. }
  138. }
  139. .list{
  140. padding: 0 20rpx;
  141. box-sizing: border-box;
  142. .list-t{
  143. height: 80rpx;
  144. font-family: PingFang SC;
  145. font-weight: 500;
  146. font-size: 32rpx;
  147. color: #222222;
  148. line-height: 80rpx;
  149. }
  150. .list-b{
  151. .list-b-t{
  152. background: #FFFFFF;
  153. border-radius:20rpx 20rpx 0 0;
  154. display: flex;
  155. justify-content: flex-start;
  156. align-items: center;
  157. padding: 30rpx 26rpx 16rpx 30rpx;
  158. box-sizing: border-box;
  159. >img{
  160. width: 70rpx;
  161. height: 70rpx;
  162. border-radius: 35rpx;
  163. }
  164. >view:nth-of-type(1){
  165. font-family: PingFang SC;
  166. font-weight: 500;
  167. font-size: 28rpx;
  168. color: #333333;
  169. line-height: 30rpx;
  170. margin-left: 22rpx;
  171. }
  172. >view:nth-of-type(2){
  173. font-family: PingFang SC;
  174. font-weight: 500;
  175. font-size: 28rpx;
  176. color: #333333;
  177. line-height: 30rpx;
  178. margin-left: 44rpx;
  179. }
  180. >view:nth-of-type(3){
  181. font-family: PingFang SC;
  182. font-weight: 500;
  183. font-size: 28rpx;
  184. line-height: 30rpx;
  185. flex: 1;
  186. text-align: right;
  187. }
  188. .color-A{
  189. color: #0183FA;
  190. }
  191. .color-B{
  192. color: #999999;
  193. }
  194. .color-C{
  195. color: #FFAE00;
  196. }
  197. }
  198. .list-b-img{
  199. width: 710rpx;
  200. height: 32rpx;
  201. }
  202. .list-b-b{
  203. background: #FFFFFF;
  204. border-radius:0 0 20rpx 20rpx;
  205. padding-top: 32rpx;
  206. box-sizing: border-box;
  207. overflow: hidden;
  208. >view{
  209. margin: 0 0 26rpx 20rpx;
  210. }
  211. }
  212. }
  213. }
  214. }
  215. </style>