WisdomFire.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. <template>
  2. <div>
  3. <div class="num-box">
  4. <!-- 物联网建筑数量 -->
  5. <div class="build-num">
  6. <div class="build-all">
  7. <span
  8. @click="$emit('click-label', 'WLWJZS')" style="cursor: pointer;"
  9. ><img src="@/assets/images/Vector (3).png" alt="" />
  10. <span >已接入物联网建筑数</span>
  11. </span>
  12. <span class="num">{{ iotList?.wlwlds }}</span>
  13. <span class="build-line">栋</span>
  14. </div>
  15. </div>
  16. <!-- 设备数 -->
  17. <div class="point-num">
  18. <div class="build-num" style="background: none; margin-bottom: 10px">
  19. <div class="build">
  20. <span
  21. >点位总数 <span class="num">{{ iotList?.jrsbzs }}</span> 个
  22. </span>
  23. <span
  24. >在线 <span class="online">{{ iotList?.jrsbzxs }}</span
  25. >个
  26. </span>
  27. <span
  28. >
  29. <span @click="$emit('click-label', 'GJS')" style="cursor: pointer;">告警</span>
  30. <span class="warning">{{
  31. iotList?.jrsbgjgs ? iotList?.jrsbgjgs : 0
  32. }}</span
  33. >个
  34. </span>
  35. </div>
  36. </div>
  37. <div>
  38. <span class="onlines on-line" style="margin: 0px 20px"> 在线</span>
  39. <span class="offlines on-line gj-bnt">告警</span>
  40. </div>
  41. <div class="pressure">
  42. <!-- 水压 -->
  43. <div class="pressure-num">
  44. <div
  45. class="pressure-bg"
  46. @click="
  47. toIot({
  48. name: '水压监测',
  49. zt: '',
  50. isShowAlarm: null,
  51. onLineOrder: 1,
  52. isShowOnLineAndAlarm: '',
  53. })
  54. "
  55. >
  56. {{ frieList.syzs ? frieList.syzs : 0
  57. }}<span style="margin-right: 1px"
  58. ><span style="margin-right: 1px">/</span></span
  59. >
  60. <span>{{ frieList.syds ? frieList.syds : 0 }}</span>
  61. <div style="font-size: 12px; margin-top: 5px">(个/栋)</div>
  62. </div>
  63. <ul class="pressure-list">
  64. <li style="font-size: 12px; margin: 6px 0 0 10px">
  65. {{ listNum[0] }}
  66. </li>
  67. <li
  68. class="pressure-line"
  69. @click="
  70. toIot({
  71. name: '水压监测',
  72. zt: '在线',
  73. onLineOrder: '',
  74. isShowAlarm: '',
  75. isShowOnLineAndAlarm: '',
  76. })
  77. "
  78. >
  79. <!-- 在线 -->
  80. <span class="onlines on-line"></span>
  81. <!-- <img
  82. class="pressure-img"
  83. src="../../assets/images/Ellipse 275.png"
  84. alt=""
  85. /> -->
  86. <span class="bumer" style="font-size: 16px; margin-left: 2px">
  87. {{ frieList.syzxs ? frieList.syzxs : 0
  88. }}<span style="margin-right: 1px">/</span>
  89. <span>{{ frieList.syzxlds ? frieList.syzxlds : 0 }}</span>
  90. <span class="unit" style="font-size: 12px">(个/栋)</span>
  91. </span>
  92. </li>
  93. <li
  94. class="pressure-line"
  95. @click="
  96. toIot({
  97. name: '水压监测',
  98. zt: '',
  99. isShowAlarm: '是',
  100. onLineOrder: 1,
  101. isShowOnLineAndAlarm: 1,
  102. })
  103. "
  104. >
  105. <!-- 离线 -->
  106. <span class="offlines on-line"></span>
  107. <!-- <img
  108. class="pressure-img"
  109. src="../../assets/images/Ellipse 275 (1).png"
  110. alt=""
  111. /> -->
  112. <span class="bumer" style="margin-left: 2px">
  113. {{ frieList.sygjs ? frieList.sygjs : 0
  114. }}<span style="margin-right: 1px">/</span>
  115. <span>{{ frieList.sygjlds ? frieList.sygjlds : 0 }}</span>
  116. <span style="font-size: 12px">(个/栋)</span>
  117. </span>
  118. <!-- <span class="unit">(个/栋)</span> -->
  119. </li>
  120. </ul>
  121. </div>
  122. <!--点气火灾 -->
  123. <div
  124. class="pressure-num"
  125. >
  126. <div class="pressure-bg" @click="
  127. toIot({
  128. name: '电气火灾监测',
  129. zt: '',
  130. isShowAlarm: null,
  131. onLineOrder: 1,
  132. isShowOnLineAndAlarm: '',
  133. })
  134. ">
  135. {{ frieList.dqhzzs ? frieList.dqhzzs : 0
  136. }}<span style="margin-right: 1px">/</span>
  137. <span>{{ frieList.dqhzds ? frieList.dqhzds : 0 }}</span>
  138. <div style="font-size: 12px; margin-top: 5px">(个/栋)</div>
  139. </div>
  140. <ul class="pressure-list">
  141. <li style="font-size: 12px; margin: 6px 0 0 10px">
  142. {{ listNum[1] }}
  143. </li>
  144. <li
  145. class="pressure-line"
  146. @click="
  147. toIot({
  148. name: '电气火灾监测',
  149. zt: '在线',
  150. isShowAlarm: '',
  151. onLineOrder: '',
  152. isShowOnLineAndAlarm: '',
  153. })
  154. "
  155. >
  156. <!-- 在线 -->
  157. <span class="onlines on-line"></span>
  158. <!-- <img
  159. class="pressure-img"
  160. src="../../assets/images/Ellipse 275.png"
  161. alt=""
  162. /> -->
  163. <span class="bumer" style="font-size: 16px; margin-left: 2px"
  164. >{{ frieList.dqhzzxs ? frieList.dqhzzxs : 0
  165. }}<span style="margin-right: 1px">/</span>
  166. <span>{{ frieList.dqhzzxlds ? frieList.dqhzzxlds : 0 }}</span>
  167. <span class="unit" style="font-size: 12px">(个/栋)</span>
  168. </span>
  169. </li>
  170. <li
  171. class="pressure-line"
  172. @click="
  173. toIot({
  174. name: '电气火灾监测',
  175. zt: '',
  176. isShowAlarm: '是',
  177. onLineOrder: 1,
  178. isShowOnLineAndAlarm: 1,
  179. })
  180. "
  181. >
  182. <!-- 离线 -->
  183. <span class="offlines on-line"></span>
  184. <!-- <img
  185. class="pressure-img"
  186. src="../../assets/images/Ellipse 275 (1).png"
  187. alt=""
  188. /> -->
  189. <span class="bumer" style="margin-left: 2px"
  190. >{{ frieList.dqhzgjs ? frieList.dqhzgjs : 0
  191. }}<span style="margin-right: 1px">/</span>
  192. <span>{{ frieList.dqhzgjlds ? frieList.dqhzgjlds : 0 }}</span>
  193. <span style="font-size: 12px">(个/栋)</span>
  194. </span>
  195. <!-- <span class="unit">(个/栋)</span> -->
  196. </li>
  197. </ul>
  198. </div>
  199. <!-- 生命通道 -->
  200. <div
  201. class="pressure-num"
  202. >
  203. <div class="pressure-bg"
  204. @click="
  205. toIot({
  206. name: '生命通道监测',
  207. zt: '',
  208. isShowAlarm: null,
  209. onLineOrder: 1,
  210. isShowOnLineAndAlarm: '',
  211. })
  212. ">
  213. {{ frieList.smtdzs ? frieList.smtdzs : 0
  214. }}<span style="margin-right: 1px"></span>
  215. <!-- <span>{{ frieList.smtdlds ? frieList.smtdlds : 0 }}</span> -->
  216. <div style="font-size: 12px; margin-top: 5px">(个)</div>
  217. </div>
  218. <ul class="pressure-list">
  219. <li style="font-size: 12px; margin: 6px 0 0 10px">
  220. {{ listNum[2] }}
  221. </li>
  222. <li
  223. class="pressure-line"
  224. @click="
  225. toIot({
  226. name: '生命通道监测',
  227. zt: '在线',
  228. onLineOrder: '',
  229. isShowAlarm: '',
  230. isShowOnLineAndAlarm: '',
  231. })
  232. "
  233. >
  234. <!-- 在线 -->
  235. <span class="onlines on-line"></span>
  236. <!-- <img
  237. class="pressure-img"
  238. src="../../assets/images/Ellipse 275.png"
  239. alt=""
  240. /> -->
  241. <span class="bumer" style="font-size: 16px; margin-left: 2px"
  242. >{{ frieList.smtdzxs ? frieList.smtdzxs : 0 }}
  243. <span style="margin-right: 1px">/</span>
  244. <span>{{ frieList.smtdzxlds ? frieList.smtdzxlds : 0 }}</span>
  245. <span class="unit" style="font-size: 12px">(个)</span>
  246. </span>
  247. </li>
  248. <li
  249. class="pressure-line"
  250. @click="
  251. toIot({
  252. name: '生命通道监测',
  253. zt: '',
  254. isShowAlarm: '是',
  255. onLineOrder: 1,
  256. isShowOnLineAndAlarm: 1,
  257. })
  258. "
  259. >
  260. <!-- 离线 -->
  261. <span class="offlines on-line"></span>
  262. <!-- <img
  263. class="pressure-img"
  264. src="../../assets/images/Ellipse 275 (1).png"
  265. alt=""
  266. /> -->
  267. <span class="bumer" style="margin-left: 2px"
  268. >{{ frieList.smtdgjs ? frieList.smtdgjs : 0 }}
  269. <!-- <span style="margin-right: 1px">/</span> -->
  270. <!-- <span>{{ frieList.smtdgjlds ? frieList.smtdgjlds : 0 }}</span> -->
  271. <span style="font-size: 12px">(个)</span>
  272. </span>
  273. <!-- <span class="unit">(个/栋)</span> -->
  274. </li>
  275. </ul>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. <basic-modal top="120px" ref="feirModal1">
  281. <fxfbCont :qy="qy" :sbType="sbType" />
  282. <ZhxfModalHeader slot="title" />
  283. </basic-modal>
  284. </div>
  285. </template>
  286. <script>
  287. import fxfbCont from "../../Iot/components/fxfbCont.vue";
  288. export default {
  289. props: {
  290. frieList: Object,
  291. iotList: Object,
  292. qy: String,
  293. },
  294. components: { fxfbCont },
  295. data() {
  296. return {
  297. listNum: ["水压监测点位", "电气火灾监测点位", "生命通道监测点位"],
  298. sbType: {},
  299. };
  300. },
  301. mounted() {},
  302. methods: {
  303. openFrieModal1() {
  304. this.showModal("feirModal1");
  305. },
  306. toIot(val) {
  307. this.sbType = val;
  308. this.showModal("feirModal1");
  309. },
  310. },
  311. };
  312. </script>
  313. <style scoped>
  314. .num-box {
  315. width: 414px;
  316. display: flex;
  317. flex-direction: column;
  318. padding: 10px 12px;
  319. }
  320. .build-num {
  321. width: 100%;
  322. height: 42px;
  323. background: linear-gradient(
  324. 180deg,
  325. rgba(5, 134, 253, 0.18) 0%,
  326. rgba(0, 224, 255, 0.5) 100%
  327. );
  328. border-radius: 5px;
  329. }
  330. .build {
  331. height: 100%;
  332. display: flex;
  333. justify-content: space-between;
  334. align-items: center;
  335. font-size: 12px;
  336. color: #fff;
  337. margin-left: 12px;
  338. }
  339. .build-all{
  340. display: flex;
  341. justify-content: space-between;
  342. align-items: center;
  343. margin: 0 12px;
  344. margin-top: 3px;
  345. }
  346. .point-num {
  347. flex: 1;
  348. /* margin-top: 10px; */
  349. }
  350. .num {
  351. font-size: 30px;
  352. color: #ffd74b;
  353. margin-left: 5px;
  354. }
  355. img {
  356. width: 20px;
  357. height: 19px;
  358. }
  359. .online {
  360. font-size: 30px;
  361. color: #00ff66;
  362. margin-left: 5px;
  363. }
  364. .warning {
  365. font-size: 30px;
  366. color: #ff4b23;
  367. margin-left: 5px;
  368. }
  369. .pressure {
  370. margin-top: 10px;
  371. display: flex;
  372. justify-content: space-between;
  373. }
  374. .gj-bnt{
  375. margin-left: 12px;
  376. }
  377. .pressure-num {
  378. /* width: 30%; */
  379. height: 150px;
  380. /* letter-spacing: 1px; */
  381. font-size: 12px;
  382. text-align: center;
  383. }
  384. .pressure-img {
  385. display: inline-block !important;
  386. width: 8px;
  387. height: 8px;
  388. margin-left: 5px;
  389. }
  390. .pressure-list {
  391. font-size: 12px;
  392. color: #fff;
  393. text-align: left;
  394. font-family: "Abel";
  395. }
  396. .onlines::after {
  397. background-color: #2fde60;
  398. }
  399. .offlines::after {
  400. background-color: #ff4f4f;
  401. }
  402. .on-line::after {
  403. content: "";
  404. display: inline-block;
  405. width: 8px;
  406. height: 8px;
  407. border-radius: 50%;
  408. margin-left: 10px;
  409. }
  410. .on-line {
  411. letter-spacing: 2px;
  412. }
  413. .pressure-bg {
  414. width: 66px;
  415. height: 77px;
  416. background: url("@/assets/images/water.png") no-repeat;
  417. font-size: 20px;
  418. text-align: center;
  419. padding-left: 3px;
  420. padding-top: 10px;
  421. box-sizing: border-box;
  422. margin: auto;
  423. }
  424. /* .pressure-line {
  425. display: flex;
  426. justify-content: space-between;
  427. align-items: center;
  428. } */
  429. .bumer {
  430. display: inline-block;
  431. font-size: 16px;
  432. margin-top: 5px;
  433. }
  434. .unit {
  435. margin-right: 12px;
  436. }
  437. .build-line {
  438. display: inline-block;
  439. margin-top: 6px;
  440. }
  441. </style>