p-safety-monitoring-content-2.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <template>
  2. <view>
  3. <view class="p-i-s-content-2">
  4. <view class="top">
  5. <view class="list_item">
  6. <view class="item" v-for="(item,index) in sluice" :key="index" :class="item.type" @click="go_status_detail(item.type,item.name)">
  7. <view class="name">{{item.name}}</view>
  8. <view class="num">{{item.count}}个</view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="inner">
  13. <view class="list_item">
  14. <view class="item" v-for="(item,index) in sluiceList" :key="index" @click="go_name_detail(item.typeCodeDesc)">
  15. <view class="item_title">
  16. <view class="item_name">{{item.typeCodeDesc}}</view>
  17. </view>
  18. <view class="item_content">
  19. <view class="item_content_list">
  20. <view class="content_item" v-for="(inner,index) in item.normalCount" :key="index">
  21. <view class="name">{{inner.name}}</view>
  22. <view class="num" :class="inner.type">{{inner.count}}个</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. props:[
  35. "sluice",
  36. "sluiceList",
  37. "mine"
  38. ],
  39. data() {
  40. return {
  41. };
  42. },
  43. methods:{
  44. go_status_detail(status,title){
  45. uni.navigateTo({
  46. url: "../../production/safety_monitoring/safety_monitoring_status_detail/safety_monitoring_status_detail?status=" + status + "&title=" + title + "&type=sluice" + "&mine=" + this.mine
  47. })
  48. },
  49. go_name_detail(name){
  50. uni.navigateTo({
  51. url: "../../production/safety_monitoring/safety_monitoring_name_detail/safety_monitoring_name_detail?name=" + name + "&mine=" + this.mine
  52. })
  53. }
  54. }
  55. }
  56. </script>
  57. <style lang="scss">
  58. .p-i-s-content-2{
  59. .top{
  60. height: 202rpx;
  61. background: #FFFFFF;
  62. border-bottom: 1rpx solid #f3f3f3;
  63. .list_item{
  64. height: 202rpx;
  65. display: flex;
  66. justify-content: space-around;
  67. align-items: center;
  68. .item{
  69. width: 106rpx;
  70. height: 106rpx;
  71. border-radius: 50%;
  72. text-align: center;
  73. line-height: 53rpx;
  74. .name{
  75. margin-top: 21rpx;
  76. font-size: 25rpx;
  77. font-family: PingFangSC-Regular, PingFang SC;
  78. font-weight: 400;
  79. color: #FFFFFF;
  80. line-height: 34rpx;
  81. }
  82. .num{
  83. margin-top: 4rpx;
  84. font-size: 21rpx;
  85. font-family: PingFangSC-Regular, PingFang SC;
  86. font-weight: 400;
  87. color: #FFFFFF;
  88. line-height: 29rpx;
  89. }
  90. }
  91. .item_1{
  92. background: #27AE60;
  93. }
  94. .item_2{
  95. background: #E74C3C;
  96. }
  97. .item_3{
  98. background: #2C3E50;
  99. }
  100. .item_4{
  101. background: #2873FF;
  102. }
  103. // 开关量 统计
  104. .normal{
  105. background: #2C3E50;
  106. }
  107. .alarm{
  108. background: #E74C3C;
  109. }
  110. .open{
  111. background: #27AE60;
  112. }
  113. .close{
  114. background: #2873FF;
  115. }
  116. }
  117. }
  118. .inner{
  119. .list_item{
  120. .item{
  121. border-top: 1rpx solid #f3f3f3;
  122. border-bottom: 1rpx solid #f3f3f3;
  123. box-sizing: border-box;
  124. padding: 0 30rpx;
  125. padding-top: 28rpx;
  126. padding-bottom: 26rpx;
  127. .item_title{
  128. display: flex;
  129. box-sizing: border-box;
  130. padding-bottom: 18rpx;
  131. border-bottom: 1rpx solid #f3f3f3;
  132. .item_icon{
  133. margin-left: 6rpx;
  134. image{
  135. width: 83rpx;
  136. height: 83rpx;
  137. }
  138. }
  139. .item_name{
  140. margin-left: 23rpx;
  141. font-size: 29rpx;
  142. font-family: PingFangSC-Regular, PingFang SC;
  143. font-weight: 400;
  144. color: #002257;
  145. line-height: 83rpx;
  146. }
  147. }
  148. .item_content{
  149. .item_content_list{
  150. display: flex;
  151. justify-content: space-between;
  152. .content_item{
  153. width: 158rpx;
  154. text-align: center;
  155. .name{
  156. margin-top: 22rpx;
  157. font-size: 25rpx;
  158. font-family: PingFangSC-Regular, PingFang SC;
  159. font-weight: 400;
  160. color: #97A3B4;
  161. line-height: 33rpx;
  162. }
  163. .num{
  164. margin-top: 6rpx;
  165. font-size: 28rpx;
  166. font-family: PingFangSC-Medium, PingFang SC;
  167. font-weight: 500;
  168. line-height: 33rpx;
  169. }
  170. .normal{
  171. color: #2ECC71;
  172. }
  173. .alarm{
  174. color: #E74C3C;
  175. }
  176. .sign{
  177. color: #2C3E50;
  178. }
  179. .fault{
  180. color: #2F54EB;
  181. }
  182. }
  183. }
  184. }
  185. }
  186. }
  187. }
  188. }
  189. </style>