equipmentConditionMonitoring.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <template>
  2. <view>
  3. <u-navbar title="设备状态监测" title-color="#101010"></u-navbar>
  4. <view class="dropdown">
  5. <view class="dropdown-item" @click="show1=true">
  6. <view class="text">
  7. {{device}}
  8. </view>
  9. <view class="item-icon">
  10. <u-icon name="arrow-down" color="#999999" v-if="show1==false"></u-icon>
  11. <u-icon name="arrow-up" color="#999999" v-else></u-icon>
  12. </view>
  13. </view>
  14. <view class="dropdown-item" @click="show2=true">
  15. <view class="text">
  16. {{company}}
  17. </view>
  18. <view class="icon">
  19. <u-icon name="arrow-down" color="#999999" v-if="show2==false"></u-icon>
  20. <u-icon name="arrow-up" color="#999999" v-else></u-icon>
  21. </view>
  22. </view>
  23. </view>
  24. <u-select v-model="show1" mode="single-column" :list="deviceList" ></u-select>
  25. <u-select v-model="show2" mode="single-column" :list="companyList" ></u-select>
  26. <view class="main">
  27. <view class="item">
  28. <view class="item-icon">
  29. <image class="img" src="@/assets/img/energy1.svg" mode=""></image>
  30. </view>
  31. <view class="item-content">
  32. <view class="content1">
  33. <view class="name1">
  34. 格莱慧费控电表
  35. </view>
  36. <view class="name2">
  37. 荆鹏A栋1101
  38. </view>
  39. </view>
  40. <view class="content2">
  41. 费控电量计量仪
  42. </view>
  43. </view>
  44. <view class="item-state">
  45. <view class="dot off-line">
  46. </view>
  47. <view class="text">
  48. 离线
  49. </view>
  50. <view class="more">
  51. <u-icon name="arrow-right" size="24" color="#acacac"></u-icon>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="item">
  56. <view class="item-icon">
  57. <image class="img" src="@/assets/img/transformer2.svg" mode=""></image>
  58. </view>
  59. <view class="item-content">
  60. <view class="content1">
  61. <view class="name1">
  62. 格莱慧费控电表
  63. </view>
  64. <view class="name2">
  65. 荆鹏A栋1101
  66. </view>
  67. </view>
  68. <view class="content2">
  69. 费控电量计量仪
  70. </view>
  71. </view>
  72. <view class="item-state">
  73. <view class="dot on-line">
  74. </view>
  75. <view class="text">
  76. 在线
  77. </view>
  78. <view class="more">
  79. <u-icon name="arrow-right" size="24" color="#acacac"></u-icon>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </template>
  86. <script>
  87. export default {
  88. data() {
  89. return {
  90. show1: false,
  91. show2: false,
  92. device: '全部设备',
  93. company: '全部公司',
  94. deviceList: [],
  95. companyList: [],
  96. }
  97. },
  98. methods: {
  99. }
  100. }
  101. </script>
  102. <style lang="scss" scoped>
  103. .dropdown {
  104. background-color: #fff;
  105. position: sticky;
  106. top: 88rpx;
  107. z-index: 999;
  108. padding: 18rpx 46rpx;
  109. display: flex;
  110. border-bottom: 1px solid rgba(245, 245, 245, 1);
  111. .dropdown-item {
  112. width: 50%;
  113. text-align: center;
  114. height: 60rpx;
  115. line-height: 60rpx;
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. .text{
  120. max-width: 80%;
  121. white-space: nowrap;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. }
  125. }
  126. }
  127. .main{
  128. background-color: #fff;
  129. padding: 0 32rpx;
  130. .item:last-of-type{
  131. border: none;
  132. }
  133. .item{
  134. padding: 32rpx 0;
  135. display: flex;
  136. align-items: center;
  137. border-bottom: 1px solid rgba(245,245,245,1);
  138. .item-icon{
  139. width: 72rpx;
  140. height: 72rpx;
  141. border-radius: 4px;
  142. background-color: rgba(219,234,255,1);
  143. display: flex;
  144. align-items: center;
  145. justify-content: center;
  146. .img{
  147. width: 48rpx;
  148. height: 48rpx;
  149. }
  150. }
  151. .item-content{
  152. margin-left: 16rpx;
  153. .content1{
  154. display: flex;
  155. align-items: center;
  156. .name1{
  157. color: rgba(51,51,51,1);
  158. font-weight: bold;
  159. }
  160. .name2{
  161. color: rgba(119,119,119,1);
  162. font-size: 24rpx;
  163. margin-left: 16rpx;
  164. }
  165. }
  166. .content2{
  167. color: rgba(119,119,119,1);
  168. font-size: 12px;
  169. }
  170. }
  171. }
  172. .item-state{
  173. margin-left: auto;
  174. display: flex;
  175. align-items: center;
  176. .dot {
  177. width: 16rpx;
  178. height: 16rpx;
  179. border-radius: 999px;
  180. }
  181. .text{
  182. margin: 0 8rpx;
  183. color: rgba(51,51,51,1);
  184. font-size: 24rpx;
  185. }
  186. .off-line {
  187. background-color: rgba(255, 123, 0, 1);
  188. }
  189. .on-line {
  190. background-color: rgba(0, 185, 98, 1);
  191. }
  192. }
  193. }
  194. </style>