hiddenDangerRecord.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!-- 隐患记录 -->
  2. <template>
  3. <view class="hiddenDangerRecord">
  4. <scroll-view scroll-y @scrolltolower="scrollGet" class="info-max-box">
  5. <view class="tip">此检查项在当前实验室累计出现 3 次隐患</view>
  6. <view class="list">
  7. <view class="list-li" v-for="(item,index) in dataList">
  8. <view>{{item.name}}</view>
  9. <view>{{item.time}}
  10. <img src="@/pages_safetyCheck/images/icon_wd_gd@1x.png">
  11. </view>
  12. </view>
  13. </view>
  14. </scroll-view>
  15. </view>
  16. </template>
  17. <script>
  18. import {
  19. config
  20. } from '@/api/request/config.js'
  21. import {} from '@/pages/api/index.js'
  22. import {} from '@/pages_safetyCheck/api/index.js'
  23. export default {
  24. name: "hiddenDangerRecord",
  25. components: {
  26. },
  27. data() {
  28. return {
  29. baseUrl: config.base_url,
  30. pageType: 0,
  31. dataList: [{
  32. name: '检查时间',
  33. time: '2024-09-06',
  34. },
  35. {
  36. name: '检查时间',
  37. time: '2024-09-06',
  38. },
  39. {
  40. name: '检查时间',
  41. time: '2024-09-06',
  42. },
  43. ]
  44. }
  45. },
  46. onLoad(option) {
  47. this.$set(this, 'newData', JSON.parse(decodeURIComponent(option.infoData)));
  48. },
  49. onShow() {
  50. },
  51. mounted() {
  52. },
  53. methods: {
  54. //滚动事件
  55. scrollGet() {},
  56. }
  57. }
  58. </script>
  59. <style lang="stylus" scoped>
  60. .hiddenDangerRecord {
  61. height: 100%;
  62. display flex;
  63. .tip {
  64. width: 750rpx;
  65. height: 80rpx;
  66. background: rgba(255, 140, 0, 0.2);
  67. border-radius: 0rpx 0rpx 0rpx 0rpx;
  68. font-size: 30rpx;
  69. color: #FF8C00;
  70. line-height: 80rpx;
  71. text-align: center;
  72. }
  73. .list {
  74. width: 690rpx;
  75. background: #FFFFFF;
  76. border-radius: 20rpx 20rpx 20rpx 20rpx;
  77. margin: 20rpx 30rpx 0;
  78. .list-li {
  79. display: flex;
  80. justify-content: space-between;
  81. align-items: center;
  82. border-bottom: 1rpx solid #E0E0E0;
  83. padding: 0 30rpx;
  84. box-sizing: border-box;
  85. >view:nth-of-type(1) {
  86. font-size: 30rpx;
  87. color: #333333;
  88. line-height: 100rpx;
  89. text-align: left;
  90. }
  91. >view:nth-of-type(2) {
  92. font-size: 28rpx;
  93. color: #666666;
  94. line-height: 100rpx;
  95. text-align: left;
  96. display: flex;
  97. justify-content: space-between;
  98. align-items: center;
  99. >img {
  100. width: 24rpx;
  101. height: 24rpx;
  102. margin-left: 10rpx;
  103. }
  104. }
  105. }
  106. .list-li:last-of-type {
  107. border: none;
  108. }
  109. }
  110. }
  111. </style>