dataMonitoring-map.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <template>
  2. <view>
  3. <!-- <u-navbar title="设备数据监测" title-color="#101010" > -->
  4. <view class="navbar-c">
  5. <view class="back">
  6. <u-icon name="arrow-left" color="#101010" size="36"></u-icon>
  7. </view>
  8. <view class="title">
  9. 设备数据监测<image class="img" src="@/assets/img/refresh-line.svg"></image>
  10. </view>
  11. <view class="right">
  12. <image class="img" src="@/assets/img/riLine-road-map-line.svg" mode=""></image>列表
  13. </view>
  14. </view>
  15. <view class="slot" slot="right">
  16. <image class="img" src="@/assets/img/riLine-list-check-2.svg" mode=""></image>地图
  17. </view>
  18. </u-navbar>
  19. <view class="dropdown">
  20. <u-dropdown>
  21. <u-dropdown-item v-model="value1" title="全部设备" :options="options1"></u-dropdown-item>
  22. <u-dropdown-item v-model="value2" title="全部状态" :options="options2"></u-dropdown-item>
  23. </u-dropdown>
  24. </view>
  25. <!-- 地图 -->
  26. <view class="map">
  27. <image class="img" src="@/assets/img/map.png" mode=""></image>
  28. <!-- 标注1 -->
  29. <view class="location1">
  30. <image class="img" src="@/assets/img/antFill-alert Copy 1.svg" mode=""></image>
  31. <view class="corner">
  32. </view>
  33. </view>
  34. <!-- 标注2 -->
  35. <view class="location2">
  36. <view class="icon2-left">
  37. <image class="img1" src="@/assets/img/antFill-alert.svg" mode=""></image>
  38. </view>
  39. <view class="icon2-right">
  40. <view class="corner2"></view>
  41. <view class="corner2-top">
  42. 荆鹏软件园01
  43. </view>
  44. <view class="corner2-bottom">
  45. <image class="img2" src="@/assets/img/antFill-alert(2).svg"></image>正常
  46. </view>
  47. </view>
  48. </view>
  49. <view class="card">
  50. <view class="item">
  51. <view class="title">
  52. <view class="icon-box">
  53. <image class="img" src="@/assets/img/transformer1.svg" mode=""></image>
  54. </view>
  55. <view class="equipment">
  56. <view class="name1">
  57. 御河社区03
  58. </view>
  59. <view class="name2">
  60. 荆鹏集团
  61. </view>
  62. </view>
  63. <!-- 状态 -->
  64. <view class="state">
  65. <view class="state1">
  66. <view class="icon icon2">
  67. </view>
  68. <view class="text">
  69. 温度异常
  70. </view>
  71. </view>
  72. <view class="state1">
  73. <view class="icon">
  74. </view>
  75. <view class="text">
  76. 烟感正常
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <!-- 设备信息 -->
  82. <view class="infos">
  83. <view class="infos-item" >
  84. <view class="item-title">
  85. 当前电流:
  86. </view>
  87. <view class="item-value">
  88. 20A
  89. </view>
  90. </view>
  91. <view class="infos-item" >
  92. <view class="item-title">
  93. 当前电压:
  94. </view>
  95. <view class="item-value">
  96. 380V
  97. </view>
  98. </view>
  99. <view class="infos-item" >
  100. <view class="item-title">
  101. 当前温度:
  102. </view>
  103. <view class="item-value">
  104. 80°C
  105. </view>
  106. </view>
  107. <view class="infos-item" >
  108. <view class="item-title">
  109. 当前功率:
  110. </view>
  111. <view class="item-value">
  112. 80kW
  113. </view>
  114. </view>
  115. <view class="infos-item" >
  116. <view class="item-title">
  117. 当前功率因数:
  118. </view>
  119. <view class="item-value">
  120. 0.98
  121. </view>
  122. </view>
  123. <view class="infos-item" >
  124. <view class="item-title">
  125. 平均功率因数:
  126. </view>
  127. <view class="item-value">
  128. 0.97
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </template>
  137. <script>
  138. export default {
  139. data() {
  140. return {
  141. value1: 1,
  142. value2: 1,
  143. options1: [{
  144. label: '荆鹏集团',
  145. value: 1,
  146. },
  147. {
  148. label: '青少年宫',
  149. value: 2,
  150. },
  151. {
  152. label: '荆州院子',
  153. value: 3,
  154. },
  155. ],
  156. options2: [{
  157. label: '设备离线',
  158. value: 1,
  159. },
  160. {
  161. label: '温度异常',
  162. value: 2,
  163. },
  164. {
  165. label: '电压异常',
  166. value: 3,
  167. },
  168. {
  169. label: '功率因数异常',
  170. value: 4,
  171. },
  172. ],
  173. }
  174. },
  175. methods: {
  176. }
  177. }
  178. </script>
  179. <style lang="scss" scoped>
  180. .slot{
  181. display: flex;
  182. align-items: center;
  183. .img{
  184. width: 32rpx;
  185. height: 32rpx;
  186. margin-right: 4rpx;
  187. }
  188. }
  189. .dropdown{
  190. background-color: #fff;
  191. position: fixed;
  192. left: 0;
  193. right: 0;
  194. top: 88rpx;
  195. z-index: 999;
  196. }
  197. // 地图
  198. .map{
  199. position: relative;
  200. .img{
  201. width: 100%;
  202. height: 100vh;
  203. }
  204. .location1 {
  205. width: 36px;
  206. height: 36px;
  207. text-align: center;
  208. border: 2px solid #FF3D00;
  209. border-radius: 999px;
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. position: absolute;
  214. top: 89px;
  215. left: 38px;
  216. .img{
  217. width: 40rpx;
  218. height: 40rpx;
  219. }
  220. .corner {
  221. width: 0;
  222. height: 0;
  223. position: absolute;
  224. top: 34px;
  225. left: 0;
  226. right: 0;
  227. margin: auto;
  228. border-bottom: 8rpx solid transparent;
  229. border-left: 8rpx solid transparent;
  230. border-right: 8rpx solid transparent;
  231. border-top: 12rpx solid #FF3D00;
  232. }
  233. }
  234. .location2 {
  235. width: 280rpx;
  236. border-radius: 50px;
  237. background-color: #27B148;
  238. display: flex;
  239. position: absolute;
  240. top: 370rpx;
  241. left: 280rpx;
  242. .icon2-left {
  243. width: 72rpx;
  244. height: 72rpx;
  245. line-height: 72rpx;
  246. text-align: center;
  247. border: 1px solid rgba(0, 185, 98, 100);
  248. border-radius: 999px;
  249. background-color: #fff;
  250. display: flex;
  251. align-items: center;
  252. justify-content: center;
  253. .img1{
  254. width: 40rpx;
  255. height: 40rpx;
  256. }
  257. }
  258. .icon2-right {
  259. color: #ffffff;
  260. line-height: 36rpx;
  261. padding-left: 8rpx;
  262. font-size: 14px;
  263. .corner2-top{
  264. font-weight: bold;
  265. }
  266. .corner2-bottom{
  267. font-size: 24rpx;
  268. .img2{
  269. width: 24rpx;
  270. height: 24rpx;
  271. }
  272. }
  273. }
  274. .corner2 {
  275. width: 0;
  276. height: 0;
  277. position: absolute;
  278. top: 72rpx;
  279. left: 0;
  280. right: 0;
  281. margin: auto;
  282. border-bottom: 6px solid transparent;
  283. border-left: 6px solid transparent;
  284. border-right: 6px solid transparent;
  285. border-top: 8px solid #27B148;
  286. }
  287. }
  288. // 卡片
  289. .card{
  290. border-radius: 8px;
  291. border: 1px solid rgba(232,232,232,1);
  292. box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.4);
  293. background-color: rgba(255,255,255,1);
  294. position: fixed;
  295. left: 24rpx;
  296. right: 24rpx;
  297. bottom: 32rpx;
  298. .item{
  299. border-bottom: 1px solid rgba(245,245,245,1);
  300. padding: 32rpx 16rpx 16rpx 16rpx;
  301. .title{
  302. display: flex;
  303. align-items: flex-start;
  304. .icon-box{
  305. width: 72rpx;
  306. height: 72rpx;
  307. border-radius: 4px;
  308. display: flex;
  309. align-items: center;
  310. justify-content: center;
  311. background-color: rgba(219,234,255,1);
  312. .img{
  313. width: 48rpx;
  314. height: 48rpx;
  315. }
  316. }
  317. .equipment{
  318. margin-left: 16rpx;
  319. .name1{
  320. color: rgba(51,51,51,1);
  321. }
  322. .name2{
  323. color: rgba(119,119,119,1);
  324. font-size: 24rpx;
  325. margin-top: 4rpx;
  326. }
  327. }
  328. // 状态
  329. .state{
  330. display: flex;
  331. align-items: center;
  332. margin-left: auto;
  333. .state1{
  334. display: flex;
  335. align-items: center;
  336. margin-left: 24rpx;
  337. .icon{
  338. width: 16rpx;
  339. height: 16rpx;
  340. border-radius: 99px;
  341. background-color: rgba(22,119,255,1);
  342. margin-right: 8rpx;
  343. }
  344. .icon2{
  345. background-color:#FF4F3F;
  346. }
  347. }
  348. }
  349. }
  350. // 设备信息
  351. .infos{
  352. margin-top: 32rpx;
  353. display: flex;
  354. align-items: center;
  355. justify-content: space-between;
  356. flex-wrap: wrap;
  357. font-size: 24rpx;
  358. .infos-item{
  359. display: flex;
  360. margin-bottom: 16rpx;
  361. .warning{
  362. color: rgba(255,61,0,1);
  363. }
  364. }
  365. }
  366. }
  367. }
  368. }
  369. </style>