p-i-s-content-1.vue 4.6 KB

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