loopMonitor.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <div>
  3. <!-- 筛选start -->
  4. <div class="filter-container">
  5. <div class="left">
  6. <div>
  7. <div class="filter-item">
  8. 选择站点:
  9. <el-select
  10. v-model="store.state.siteId"
  11. placeholder="请选择"
  12. style="width: 220px"
  13. clearable
  14. filterable
  15. @change="linkDevice()"
  16. >
  17. <el-option
  18. v-for="site in store.state.siteList"
  19. :key="site"
  20. :label="site.siteName"
  21. :value="site.id"
  22. ></el-option>
  23. </el-select>
  24. </div>
  25. <div class="filter-item" style="margin-right: 20px">
  26. 选择设备:
  27. <el-select
  28. v-model="deviceCode"
  29. placeholder="请选择"
  30. style="width: 150px"
  31. >
  32. <el-option
  33. v-for="device in deviceList"
  34. :key="device"
  35. :label="device.deviceName"
  36. :value="device.deviceCode"
  37. ></el-option>
  38. </el-select>
  39. </div>
  40. <el-button type="primary" class="search-button">搜索</el-button>
  41. </div>
  42. </div>
  43. <div class="right descIcon">
  44. <img src="@/assets/images/descIcon.png" alt="" />
  45. 指标说明
  46. </div>
  47. </div>
  48. <!-- 筛选end -->
  49. <el-row :gutter="20" class="mt-20">
  50. <!-- 三项不平衡度 -->
  51. <el-col :md="24" :lg="8">
  52. <div class="grid-content bg-purple loopUnbanlancePanel">
  53. <div class="blanceChartTit">
  54. <span>三项不平衡度</span>
  55. </div>
  56. <el-row
  57. :gutter="20"
  58. style="padding: 20px; border-bottom: 1px solid #d3dce6"
  59. >
  60. <el-col :span="12" class="loopUnbanlanceCard">
  61. <div class="grid-content" style="text-align: center">
  62. <loop-radarChart></loop-radarChart>
  63. </div>
  64. </el-col>
  65. <el-col :span="12" class="loopUnbanlanceCard">
  66. <div
  67. style="
  68. width: 90%;
  69. background: #1187ff;
  70. margin: 0px auto;
  71. text-align: center;
  72. color: #fff;
  73. padding: 10px 0px;
  74. "
  75. >
  76. <div class="mb-10">电压不平衡度</div>
  77. <div>100%</div>
  78. </div>
  79. <ul>
  80. <li>
  81. <div>A相电压</div>
  82. <div>
  83. <div class="mb-5">幅值:9.72A</div>
  84. <div>相角:-</div>
  85. </div>
  86. </li>
  87. <li>
  88. <div>A相电压</div>
  89. <div>
  90. <div class="mb-5">幅值:9.72A</div>
  91. <div>相角:-</div>
  92. </div>
  93. </li>
  94. <li>
  95. <div>A相电压</div>
  96. <div>
  97. <div class="mb-5">幅值:9.72A</div>
  98. <div>相角:-</div>
  99. </div>
  100. </li>
  101. </ul>
  102. </el-col>
  103. </el-row>
  104. <el-row
  105. :gutter="20"
  106. style="padding: 20px; border-bottom: 1px solid #d3dce6"
  107. >
  108. <el-col :span="12" class="loopUnbanlanceCard">
  109. <div class="grid-content" style="text-align: center">
  110. <loop-radarChart></loop-radarChart>
  111. </div>
  112. </el-col>
  113. <el-col :span="12" class="loopUnbanlanceCard">
  114. <div
  115. style="
  116. width: 90%;
  117. background: #1187ff;
  118. margin: 0px auto;
  119. text-align: center;
  120. color: #fff;
  121. padding: 10px 0px;
  122. "
  123. >
  124. <div class="mb-10">电流不平衡度</div>
  125. <div>100%</div>
  126. </div>
  127. <ul>
  128. <li>
  129. <div>A相电压</div>
  130. <div>
  131. <div class="mb-5">幅值:9.72A</div>
  132. <div>相角:-</div>
  133. </div>
  134. </li>
  135. <li>
  136. <div>A相电压</div>
  137. <div>
  138. <div class="mb-5">幅值:9.72A</div>
  139. <div>相角:-</div>
  140. </div>
  141. </li>
  142. <li>
  143. <div>A相电压</div>
  144. <div>
  145. <div class="mb-5">幅值:9.72A</div>
  146. <div>相角:-</div>
  147. </div>
  148. </li>
  149. </ul>
  150. </el-col>
  151. </el-row>
  152. </div>
  153. </el-col>
  154. <!-- 三项不平衡度 end -->
  155. <!-- 谐波 -->
  156. <el-col :md="24" :lg="16">
  157. <harmonic-panel></harmonic-panel>
  158. </el-col>
  159. <!-- 谐波 end -->
  160. </el-row>
  161. <el-row :gutter="20" class="mt-20">
  162. <!-- 电压start -->
  163. <el-col :md="24" :lg="8" class="mb-20">
  164. <voltage-panel></voltage-panel>
  165. </el-col>
  166. <!-- 电压end -->
  167. <!-- 频率 start-->
  168. <el-col :md="24" :lg="8" class="mb-20">
  169. <frequency-panel></frequency-panel>
  170. </el-col>
  171. <!-- 频率 end -->
  172. <!-- 有功功率 -->
  173. <el-col :md="24" :lg="8">
  174. <power-panel></power-panel>
  175. </el-col>
  176. <!-- 有功功率 end -->
  177. </el-row>
  178. </div>
  179. </template>
  180. <script>
  181. import { useStore } from 'vuex'
  182. import { defineComponent, onMounted,ref } from 'vue'
  183. import loopRadarChart from './loopMonitorComponent/loopRadarChart'
  184. import harmonicPanel from './loopMonitorComponent/harmonicPanel'
  185. import voltagePanel from './loopMonitorComponent/voltagePanel'
  186. import frequencyPanel from './loopMonitorComponent/frequencyPanel'
  187. import powerPanel from './loopMonitorComponent/powerPanel'
  188. import * as api from '@/api/powerQuality/realScore.js'
  189. import { ElMessage } from 'element-plus'
  190. export default defineComponent({
  191. name: 'LoopMonitor',
  192. components: {
  193. loopRadarChart,
  194. harmonicPanel,
  195. voltagePanel,
  196. frequencyPanel,
  197. powerPanel,
  198. },
  199. setup() {
  200. const store = useStore()
  201. const deviceList = ref([])
  202. const deviceCode = ref('')
  203. function linkDevice(){
  204. deviceSelect()
  205. }
  206. //设备下拉请求
  207. function deviceSelect() {
  208. api.deviceListOne({ siteId: store.state.siteId }).then((requset) => {
  209. if (requset.status === 'SUCCESS') {
  210. deviceList.value = requset.data
  211. deviceCode.value = requset.data[0] ? requset.data[0].deviceCode : ''
  212. } else {
  213. ElMessage.error(requset.msg)
  214. }
  215. })
  216. }
  217. onMounted(() => {
  218. deviceSelect()
  219. })
  220. return {
  221. store,
  222. deviceList,
  223. deviceCode,
  224. linkDevice,
  225. deviceSelect
  226. }
  227. },
  228. })
  229. </script>
  230. <style lang="scss" scoped>
  231. .el-row {
  232. margin-bottom: 20px;
  233. &:last-child {
  234. margin-bottom: 0;
  235. }
  236. }
  237. .el-col {
  238. border-radius: 4px;
  239. }
  240. .bg-purple-dark {
  241. border: 1px solid #99a9bf;
  242. }
  243. .bg-purple {
  244. border: 1px solid #d3dce6;
  245. }
  246. .bg-purple-light {
  247. border: 1px solid #e5e9f2;
  248. }
  249. .grid-content {
  250. border-radius: 4px;
  251. min-height: 36px;
  252. }
  253. .row-bg {
  254. padding: 10px 0;
  255. border: 1px solid #f9fafc;
  256. }
  257. </style>