warning-information.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <template>
  2. <div class="page animate__animated animate__faster animate__fadeInRight">
  3. <more title="设备告警"></more>
  4. <!-- 工单列表 -->
  5. <div style="padding-top: 0.8rem;">
  6. <div class="card" v-for="(item,index) in list" :key="index">
  7. <div class="left">
  8. <div class="title">{{item.title}}</div>
  9. <div class="position">
  10. {{item.position}}
  11. </div>
  12. </div>
  13. <div class="right">
  14. <div class="data" :class="item.isHigh?'highColor':'lowColor'">
  15. <img :src="item.isHigh?'/img/environment/xs.png':'/img/environment/xx.png'" />
  16. <span >{{item.data}}</span>
  17. </div>
  18. <div class="time">{{item.time}}</div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import more from "@/components/more.vue"
  26. export default {
  27. components: {
  28. more
  29. },
  30. data() {
  31. return {
  32. tabList: [{
  33. label: '设备工单',
  34. value: 0
  35. },
  36. {
  37. label: '保修工单',
  38. value: 1
  39. }
  40. ],
  41. list:[{
  42. title:"温度",
  43. position:'A1栋工业楼3号车间',
  44. isHigh:true,
  45. data:'15.3rh',
  46. time:'2021-03-15 22:40'
  47. },
  48. {
  49. title:"温度",
  50. position:'A1栋工业楼3号车间',
  51. isHigh:false,
  52. data:'15.3rh',
  53. time:'2021-03-15 22:40'
  54. },
  55. {
  56. title:"温度",
  57. position:'A1栋工业楼3号车间',
  58. isHigh:true,
  59. data:'15.3rh',
  60. time:'2021-03-15 22:40'
  61. },
  62. {
  63. title:"温度",
  64. position:'A1栋工业楼3号车间',
  65. isHigh:false,
  66. data:'15.3rh',
  67. time:'2021-03-15 22:40'
  68. },
  69. {
  70. title:"温度",
  71. position:'A1栋工业楼3号车间',
  72. isHigh:false,
  73. data:'15.3rh',
  74. time:'2021-03-15 22:40'
  75. },
  76. {
  77. title:"温度",
  78. position:'A1栋工业楼3号车间',
  79. isHigh:true,
  80. data:'15.3rh',
  81. time:'2021-03-15 22:40'
  82. },
  83. {
  84. title:"温度",
  85. position:'A1栋工业楼3号车间',
  86. isHigh:true,
  87. data:'15.3rh',
  88. time:'2021-03-15 22:40'
  89. },
  90. {
  91. title:"温度",
  92. position:'A1栋工业楼3号车间',
  93. isHigh:true,
  94. data:'15.3rh',
  95. time:'2021-03-15 22:40'
  96. },
  97. {
  98. title:"温度",
  99. position:'A1栋工业楼3号车间',
  100. isHigh:true,
  101. data:'15.3rh',
  102. time:'2021-03-15 22:40'
  103. }]
  104. };
  105. },
  106. methods: {
  107. }
  108. };
  109. </script>
  110. <style lang="scss" scoped>
  111. .page {
  112. box-sizing: border-box;
  113. background-color: #FFFFFF;
  114. padding: 1rem;
  115. }
  116. .center{
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. }
  121. .lowColor{
  122. color:#3B8FF4
  123. }
  124. .highColor{
  125. color:#EB653C
  126. }
  127. .card {
  128. cursor: pointer;
  129. box-sizing: border-box;
  130. background-color: #F5F5F5;
  131. display: flex;
  132. justify-content: space-between;
  133. margin: 15px 5px;
  134. padding: 15px;
  135. .left {
  136. text-align: left;
  137. .title {
  138. font-size: 0.8rem;
  139. font-weight: 800;
  140. color: #000000;
  141. }
  142. .position {
  143. margin-top: 0.375rem;
  144. font-size: 13px;
  145. font-family: Microsoft YaHei;
  146. font-weight: 400;
  147. color: #666666;
  148. }
  149. }
  150. .right {
  151. text-align: right;
  152. .data {
  153. justify-content: flex-end;
  154. display: flex;
  155. font-size: 13px;
  156. font-family: Microsoft YaHei;
  157. font-weight: bold;
  158. img{
  159. width: 1rem;
  160. height: 1rem;
  161. border-radius: 50%;
  162. margin-right: 4px;
  163. }
  164. }
  165. .time {
  166. margin-top: 0.375rem;
  167. font-size: 13px;
  168. font-family: Microsoft YaHei;
  169. font-weight: 400;
  170. color: #666666;
  171. }
  172. }
  173. }
  174. </style>