index.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <template>
  2. <el-col :span="24" class="xiaofangjiangkong modular modularTop">
  3. <el-col class="top" >
  4. <span class="biao"></span>
  5. <span class="title">消防监控</span>
  6. </el-col>
  7. <el-row class="wrap">
  8. <el-col class="left_" :span="3">
  9. <el-col :span="24" class="pingfeng">
  10. <el-col class="attribute"><el-image :src="img7" fit="scale-down"/>本月消防评分<el-col class="num">{{pingfen}}<span class="unit">分</span></el-col></el-col>
  11. </el-col>
  12. </el-col>
  13. <el-col class="middle" :span="10">
  14. <div class="lineL1">
  15. <el-image :src="line1"></el-image>
  16. </div>
  17. <el-row class="content" >
  18. <el-col :span="16">
  19. <p class="title">本月消防事件</p>
  20. <pie :resData="pieData"/>
  21. </el-col>
  22. <el-col :span="8">
  23. <el-col class="listWrap">
  24. <el-col class="list">
  25. <el-image :src="img8" fit="scale-down"/>
  26. <el-col class="attribute"
  27. >1楼消防水压<el-col class="num"
  28. >{{shuiya}}<span class="unit">MPa</span></el-col
  29. ></el-col
  30. >
  31. </el-col>
  32. <el-col class="list">
  33. <el-image :src="img8" fit="scale-down"/>
  34. <el-col class="attribute"
  35. >总表线缆湿度<el-col class="num"
  36. >{{shidu}}<span class="unit">℃</span></el-col
  37. ></el-col
  38. >
  39. </el-col>
  40. <el-col class="list">
  41. <el-image :src="img8" fit="scale-down"/>
  42. <el-col class="attribute"
  43. >基础消防设备数<el-col class="num"
  44. >{{shebei}}<span class="unit">个</span></el-col
  45. ></el-col>
  46. </el-col>
  47. </el-col>
  48. </el-col>
  49. </el-row>
  50. </el-col>
  51. <el-col class="right" :span="10">
  52. <div class="lineL2">
  53. <el-image :src="line1"></el-image>
  54. </div>
  55. <el-row class="content">
  56. <el-col :span="24">
  57. <p class="title">消防设备工况</p>
  58. <pie2 :resData="pie2Data"/>
  59. </el-col>
  60. </el-row>
  61. </el-col>
  62. </el-row>
  63. </el-col>
  64. </template>
  65. <script>
  66. import img7 from "@/assets/images/7.png";
  67. import img8 from "@/assets/images/8.png";
  68. import pie from "@/components3/xiaofangjiangkong/pie.vue";
  69. import pie2 from "@/components3/xiaofangjiangkong/pie2.vue";
  70. import line1 from "@/assets/images/line1.png";
  71. export default {
  72. name: "nengyuan",
  73. props:["resInfo"],
  74. components: {
  75. pie,
  76. pie2
  77. },
  78. data() {
  79. return {
  80. img7:img7,
  81. img8:img8,
  82. line1:line1,
  83. pieData:[],
  84. pie2Data:[],
  85. pingfen:null,
  86. shuiya:null,
  87. shidu:null,
  88. shebei:null,
  89. };
  90. },
  91. watch:{
  92. resInfo(val,old){
  93. this.pingfen = val.pingfen
  94. this.shuiya = val.event.shuiya
  95. this.shidu = val.event.shidu
  96. this.shebei = val.event.shebei
  97. this.pieData = val.event
  98. this.pie2Data = val.shebei
  99. }
  100. }
  101. };
  102. </script>
  103. <style lang="scss" scoped>
  104. @import '@/assets/styles/common.scss';
  105. .wrap{
  106. color:$white;
  107. margin-top:50px;
  108. .left_{
  109. margin:20px 0 0 24px;
  110. .attribute{
  111. font-size: 14px;
  112. width:90px;
  113. height:102px;
  114. text-align: center;
  115. background: linear-gradient(180deg, rgba(77,85,101,0.00) 0%, #4D5565 100%);
  116. position: relative;
  117. margin:80px auto 0;
  118. .el-image{
  119. margin:-50px auto -4px;
  120. display: block;
  121. }
  122. .num {
  123. font-size: 16px;
  124. font-family: "微软雅黑";
  125. font-weight: 700;
  126. margin: 0.7vh 0 0 -2px;
  127. .unit {
  128. font-size: 16px;
  129. width: auto;
  130. margin:10px 0 0 0px;
  131. }
  132. }
  133. }
  134. }
  135. >.middle,>.right{
  136. position: relative;
  137. .lineL1{
  138. height:240px;
  139. position: absolute;
  140. left:0px;
  141. top:-40px;
  142. }
  143. .lineL2{
  144. height:240px;
  145. position: absolute;
  146. left:25px;
  147. top:-40px;
  148. }
  149. .content{
  150. margin-top:20px;
  151. .title{
  152. width:100%;
  153. text-align: center;
  154. margin:-10px auto 10px;
  155. font-size: 20px;
  156. font-weight: 700;
  157. }
  158. .listWrap{
  159. margin-top:-20px;
  160. .list{
  161. margin-top:15px;
  162. .el-image{
  163. width:24px;
  164. vertical-align: top;
  165. display: inline-block;
  166. }
  167. .attribute{
  168. margin-top:-26px;
  169. font-size: 14px;
  170. margin-left: 30px;
  171. .num {
  172. font-size: 18px;
  173. font-family: "微软雅黑";
  174. font-weight: 700;
  175. margin: 0.7vh 0 0 -2px;
  176. .unit {
  177. font-size: 18px;
  178. width: auto;
  179. margin:10px 0 0 0px;
  180. }
  181. }
  182. }
  183. }
  184. }
  185. }
  186. >.left{
  187. }
  188. }
  189. }
  190. </style>