dataBoard.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <template>
  2. <div class="main">
  3. <div class="header">
  4. <div class="select-veido">
  5. <el-select
  6. style="margin-top: 10px"
  7. v-model="currentVenId"
  8. placeholder="请选择"
  9. @change="selectChart"
  10. :popper-append-to-body="false"
  11. >
  12. <el-option
  13. v-for="item in venOptions"
  14. :key="item.id"
  15. :label="item.label"
  16. :value="item.id"
  17. >
  18. </el-option>
  19. </el-select>
  20. </div>
  21. </div>
  22. <div class="top">
  23. <el-row :gutter="10">
  24. <el-col :span="8">
  25. <div class="top_left">
  26. <!-- 三相线电压/三相相电流 -->
  27. <vol-and-current ref="volAndCurrent"></vol-and-current>
  28. </div>
  29. </el-col>
  30. <el-col :span="8">
  31. <div class="top_center">
  32. <!-- 三相绕组温度(定子温度) -->
  33. <threeline
  34. ref="separate"
  35. :id="89"
  36. title="三相绕组温度"
  37. unit="°C"
  38. :type="separateType"
  39. :legend="separateLegand"
  40. ></threeline>
  41. </div>
  42. </el-col>
  43. <el-col :span="8">
  44. <div class="top_right">
  45. <!-- 轴承温度 -->
  46. <twoline
  47. ref="bearing"
  48. :id="89"
  49. title="轴承温度"
  50. unit="°C"
  51. :type="bearingType"
  52. :legend="bearingLegand"
  53. ></twoline>
  54. </div>
  55. </el-col>
  56. </el-row>
  57. </div>
  58. <div class="center">
  59. <el-row :gutter="10">
  60. <el-col :span="8">
  61. <div class="center_left">
  62. <!-- 振动 -->
  63. <twoline
  64. ref="vibrate"
  65. :id="89"
  66. title="振动"
  67. unit="um/s"
  68. :type="vibrateType"
  69. :legend="vibrateLegand"
  70. ></twoline>
  71. </div>
  72. </el-col>
  73. <el-col :span="8">
  74. <div class="center_center">
  75. <!-- 风流/风速 -->
  76. <wind ref="wind"></wind>
  77. </div>
  78. </el-col>
  79. <el-col :span="8">
  80. <div class="center_right">
  81. <!-- 全压 -->
  82. <oneline
  83. ref="pressure"
  84. :id="91"
  85. title="管道全压"
  86. unit="Mpa"
  87. type="quanya_after"
  88. ></oneline>
  89. </div>
  90. </el-col>
  91. </el-row>
  92. </div>
  93. <div class="bottom">
  94. <el-row :gutter="130">
  95. <el-col :span="12">
  96. <div class="bottom_left">
  97. <fault-alarm></fault-alarm>
  98. </div>
  99. </el-col>
  100. <el-col :span="12">
  101. <div class="bottom_right">
  102. <running-msg></running-msg>
  103. </div>
  104. </el-col>
  105. </el-row>
  106. </div>
  107. </div>
  108. </template>
  109. <script>
  110. import oneline from "@/common/oneline";
  111. import twoline from "@/common/twoline";
  112. import threeline from "@/common/threeline";
  113. import volAndCurrent from "./volAndCurrent";
  114. import separate from "./separate";
  115. import bearing from "./bearing";
  116. import vibrate from "./vibrate";
  117. import wind from "./wind";
  118. import pressure from "./pressure";
  119. import faultAlarm from "./faultAlarm";
  120. import runningMsg from "./runningMsg";
  121. export default {
  122. data() {
  123. return {
  124. currentVenId: this.title,
  125. venOptions: [
  126. {
  127. id: "1",
  128. label: "1号风机",
  129. },
  130. {
  131. id: "2",
  132. label: "2号风机",
  133. },
  134. ],
  135. separateType: [
  136. "raozuyiwendu_after",
  137. "raozuerwendu_after",
  138. "raozusanwendu_after",
  139. ],
  140. separateLegand: ["绕组1温度", "绕组2温度", "绕组3温度"],
  141. bearingType: ["qianzhouwen_after", "houzhouwen_after"],
  142. bearingLegand: ["前轴温", "后轴温"],
  143. vibrateType: ["shuipingzhendong_after", "chuizhizhendong_after"],
  144. vibrateLegand: ["水平振动", "垂直振动"],
  145. };
  146. },
  147. props:["title"],
  148. methods: {
  149. selectChart(val) {
  150. console.log("val", val);
  151. this.$bus.$emit("changeVenId", String(val));
  152. this.$refs.volAndCurrent.idChange(val);
  153. this.$refs.separate.idChange(val);
  154. this.$refs.bearing.idChange(val);
  155. this.$refs.vibrate.idChange(val);
  156. this.$refs.wind.idChange(val);
  157. this.$refs.pressure.idChange(val);
  158. // this.$refs.faultAlarm.idChange(val);
  159. // this.$refs.runningMsg.idChange(val);
  160. },
  161. },
  162. components: {
  163. volAndCurrent,
  164. wind,
  165. faultAlarm,
  166. runningMsg,
  167. oneline,
  168. twoline,
  169. threeline,
  170. },
  171. };
  172. </script>
  173. <style scoped>
  174. .select-veido .el-select {
  175. width: 140px;
  176. margin-left: 10px;
  177. }
  178. .select-veido >>> .el-input--small .el-input__inner {
  179. background: none;
  180. color: #4adefe;
  181. font-size: 20px;
  182. }
  183. .select-veido >>> .el-input__inner {
  184. border: 0;
  185. }
  186. .select-veido >>> .el-scrollbar {
  187. background: rgba(255, 255, 255, 1);
  188. border: 0;
  189. }
  190. .main {
  191. width: 100%;
  192. height: 845px;
  193. background: linear-gradient(to bottom, #323232 0%, #3f3f3f 40%, #1c1c1c 150%),
  194. linear-gradient(
  195. to top,
  196. rgba(255, 255, 255, 0.4) 0%,
  197. rgba(0, 0, 0, 0.25) 200%
  198. );
  199. /* 正片叠底模式。 */
  200. background-blend-mode: multiply;
  201. /* background-color: antiquewhite; */
  202. }
  203. .header {
  204. margin: 0 auto;
  205. position: relative;
  206. width: 100%;
  207. height: 10%;
  208. max-width: 1920px;
  209. background: url("../../../assets/img/gas/header.png") center no-repeat;
  210. box-sizing: border-box;
  211. }
  212. .select-veido {
  213. margin: 0;
  214. padding: 0;
  215. line-height: 50px;
  216. text-align: center;
  217. font-size: 22px;
  218. color: #ffffff;
  219. }
  220. .top {
  221. height: 30%;
  222. }
  223. .top_left {
  224. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  225. background-size: 100%;
  226. height: 210px;
  227. }
  228. .top_center {
  229. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  230. background-size: 100%;
  231. height: 210px;
  232. }
  233. .top_right {
  234. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  235. background-size: 100%;
  236. height: 210px;
  237. }
  238. .center {
  239. height: 30%;
  240. }
  241. .center_left {
  242. width: 100%;
  243. height: 210px;
  244. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  245. background-size: 100%;
  246. }
  247. .center_center {
  248. width: 100%;
  249. height: 210px;
  250. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  251. background-size: 100%;
  252. }
  253. .center_right {
  254. /* margin-left: -25px; */
  255. width: 100%;
  256. height: 210px;
  257. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  258. background-size: 100%;
  259. }
  260. .bottom {
  261. /* height: 30%; */
  262. /* display: inline; */
  263. /* height: 400px; */
  264. margin-top: -40px;
  265. display: flex;
  266. justify-content: space-around;
  267. }
  268. .bottom_left {
  269. width: 500px;
  270. height: 210px;
  271. margin-top: -10px;
  272. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  273. background-size: 100%;
  274. }
  275. .bottom_right {
  276. width: 500px;
  277. height: 210px;
  278. margin-top: -10px;
  279. background: url(../../../assets/img/tunneling/dataBg.png) no-repeat;
  280. background-size: 100%;
  281. }
  282. </style>