index.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. <template>
  2. <div class="comprehensiveEvaluation">
  3. <div class="Evaluation_topall">
  4. <div class="Evaluation_top">
  5. <div class="station">
  6. 场站:
  7. <el-select size="mini" v-model="wp" placeholder="请选择" clearable>
  8. <el-option
  9. v-for="item in wpArray"
  10. :key="item.id"
  11. :label="item.aname"
  12. :value="item.id"
  13. >
  14. </el-option>
  15. </el-select>
  16. </div>
  17. <div class="station">
  18. 频率:
  19. <el-select size="mini" v-model="pl" placeholder="请选择" clearable>
  20. <el-option
  21. v-for="item in plArray"
  22. :key="item.value"
  23. :label="item.label"
  24. :value="item.value"
  25. >
  26. </el-option>
  27. </el-select>
  28. </div>
  29. <div class="station">
  30. 部件指标:
  31. <el-select
  32. size="mini"
  33. v-model="wp"
  34. placeholder="请选择"
  35. multiple
  36. clearable
  37. collapse-tags
  38. >
  39. <el-option
  40. v-for="item in checkArray"
  41. :key="item.value"
  42. :label="item.label"
  43. :value="item.value"
  44. >
  45. </el-option>
  46. </el-select>
  47. </div>
  48. <div class="station">
  49. 日期:
  50. <el-date-picker
  51. style="width: 400px"
  52. v-model="date"
  53. type="daterange"
  54. range-separator="至"
  55. start-placeholder="开始时间"
  56. end-placeholder="结束时间"
  57. size="mini"
  58. format="YYYY-MM-DD"
  59. value-format="YYYY-MM-DD"
  60. />
  61. </div>
  62. <div class="but">
  63. <el-button round size="mini" class="buttons" @click="seachData">
  64. 查 询
  65. </el-button>
  66. <el-button round size="mini" class="buttons" @click="exportExcel">
  67. 导 出
  68. </el-button>
  69. </div>
  70. </div>
  71. </div>
  72. <div
  73. style="
  74. background: rgba(0, 0, 0, 0.4);
  75. height: calc(100% - 39px);
  76. padding-bottom: 15px;
  77. "
  78. >
  79. <div class="Evaluation_title clearfix">
  80. <div class="leftContent" :data-type="$store.state.moreSty">
  81. <span>自由报表分析</span>
  82. </div>
  83. </div>
  84. <el-table
  85. :data="tjsjfx"
  86. stripe
  87. size="mini"
  88. height="90vh"
  89. ref="exportExcelRef"
  90. >
  91. <el-table-column
  92. align="center"
  93. :prop="item.prop"
  94. :label="item.label"
  95. v-for="item in tHeader"
  96. :key="item.prop"
  97. />
  98. </el-table>
  99. </div>
  100. </div>
  101. </template>
  102. <script>
  103. import dayjs from "dayjs";
  104. import AreaLineChart from "@com/chart/combination/area-line-chart.vue";
  105. import utils from "@/utills/downXlsx";
  106. export default {
  107. components: {
  108. AreaLineChart,
  109. },
  110. data() {
  111. return {
  112. checkAll: false,
  113. isIndeterminate: true,
  114. wp: "",
  115. wpArray: [],
  116. pl: "",
  117. plArray: [],
  118. date: [],
  119. checkArray: [
  120. { label: "风速(m/s)", value: "fs" },
  121. { label: "风向", value: "fx" },
  122. { label: "对风角度", value: "dfjd" },
  123. { label: "发电机转速", value: "fdjzs" },
  124. { label: "U1电压", value: "u1dy" },
  125. { label: "U2电压", value: "u2dy" },
  126. { label: "U3电压", value: "u3dy" },
  127. { label: "U1电流", value: "u3dl" },
  128. { label: "U2电流", value: "u3dl" },
  129. { label: "U3电流", value: "u3dl" },
  130. { label: "功率因数", value: "glyx" },
  131. { label: "电网频率", value: "dwpl" },
  132. { label: "机舱温度", value: "jcwd" },
  133. { label: "齿轮油温", value: "clxyw" },
  134. { label: "U2烧组温度", value: "u2szwd" },
  135. { label: "功率限定值", value: "glxdz" },
  136. { label: "转速限定值", value: "zsxdz" },
  137. { label: "环境温度", value: "hjwd" },
  138. { label: "机舱柜温度", value: "jcgwd" },
  139. { label: "齿轮箱入口自油温", value: "clxrkyw" },
  140. { label: "齿轮箱油温", value: "clxrkyw" },
  141. ],
  142. tHeader: [
  143. { prop: "fj", label: "风机" },
  144. { prop: "tjsj", label: "停机时间" },
  145. { prop: "hfsj", label: "恢复时间" },
  146. { prop: "hfsj", label: "恢复时间" },
  147. { prop: "tjxs", label: "停机小时" },
  148. { prop: "ssdl", label: "损失电量" },
  149. { prop: "tjlx", label: "停机类型" },
  150. ],
  151. tjsjfx: [
  152. {
  153. fj: "#01",
  154. tjsj: "2025-05-15 14:32:53",
  155. hfsj: "2025-05-15 14:32:53",
  156. tjxs: 10,
  157. ssdl: 100,
  158. tjlx: "维护停机",
  159. },
  160. {
  161. fj: "#01",
  162. tjsj: "2025-05-15 14:32:53",
  163. hfsj: "2025-05-15 14:32:53",
  164. tjxs: 10,
  165. ssdl: 100,
  166. tjlx: "维护停机",
  167. },
  168. {
  169. fj: "#01",
  170. tjsj: "2025-05-15 14:32:53",
  171. hfsj: "2025-05-15 14:32:53",
  172. tjxs: 10,
  173. ssdl: 100,
  174. tjlx: "维护停机",
  175. },
  176. {
  177. fj: "#01",
  178. tjsj: "2025-05-15 14:32:53",
  179. hfsj: "2025-05-15 14:32:53",
  180. tjxs: 10,
  181. ssdl: 100,
  182. tjlx: "维护停机",
  183. },
  184. {
  185. fj: "#01",
  186. tjsj: "2025-05-15 14:32:53",
  187. hfsj: "2025-05-15 14:32:53",
  188. tjxs: 10,
  189. ssdl: 100,
  190. tjlx: "维护停机",
  191. },
  192. ],
  193. };
  194. },
  195. created() {},
  196. methods: {
  197. exportExcel() {
  198. if (this.tjsjfx.length > 0) {
  199. let tH = [];
  200. this.tHeader.forEach((ele) => {
  201. tH.push(ele.label);
  202. });
  203. utils.exportExcel(this.$refs.exportExcelRef.$el, tH, `风机运行分析`);
  204. }
  205. },
  206. },
  207. };
  208. </script>
  209. <style lang="less" scoped>
  210. .comprehensiveEvaluation {
  211. padding: 0 20px;
  212. height: 100%;
  213. .Evaluation_title {
  214. .leftContent[data-type~="greenSty"] {
  215. background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
  216. }
  217. .leftContent[data-type~="blueSty"] {
  218. background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
  219. }
  220. .leftContent {
  221. width: 242px;
  222. height: 41px;
  223. line-height: 41px;
  224. span {
  225. font-size: 16px;
  226. font-family: Microsoft YaHei;
  227. font-weight: 400;
  228. color: #05bb4c;
  229. margin-left: 25px;
  230. }
  231. }
  232. }
  233. .clearfix::after {
  234. content: "";
  235. clear: both;
  236. height: 0;
  237. line-height: 0;
  238. visibility: hidden;
  239. display: block;
  240. }
  241. .clearfix {
  242. zoom: 1;
  243. }
  244. .Evaluation_topall {
  245. display: flex;
  246. justify-content: flex-start;
  247. align-items: center;
  248. flex-wrap: wrap;
  249. width: 100%;
  250. .selections {
  251. position: relative;
  252. right: 120px;
  253. display: flex;
  254. margin-top: 10px;
  255. .selections_btn {
  256. flex: 0 0 55px;
  257. text-align: center;
  258. height: 33px;
  259. line-height: 33px;
  260. margin-right: 8px;
  261. color: #b9b9b9;
  262. font-size: 1.296vh;
  263. background: fade(#606769, 20);
  264. border: 1px solid fade(#606769, 20);
  265. border-radius: 20px;
  266. &:hover,
  267. &.active {
  268. background: fade(#05bb4c, 80);
  269. border: 1px solid #05bb4c;
  270. color: #fff;
  271. cursor: pointer;
  272. }
  273. }
  274. }
  275. .Evaluation_top {
  276. display: flex;
  277. flex-direction: row;
  278. align-items: center;
  279. margin-top: 10px;
  280. margin-bottom: 5px;
  281. .station {
  282. display: flex;
  283. flex-direction: row;
  284. align-items: center;
  285. font-size: 14px;
  286. font-family: Microsoft YaHei;
  287. font-weight: 400;
  288. color: #b3b3b3;
  289. margin-right: 10px;
  290. margin-left: 10px;
  291. }
  292. .search-input {
  293. margin-left: 10px;
  294. .el-input__inner {
  295. width: 175px;
  296. }
  297. .el-input__suffix {
  298. right: -50px;
  299. }
  300. }
  301. .tabCut {
  302. display: inline-block;
  303. margin: 0 10px;
  304. div {
  305. display: inline-block;
  306. width: 60px;
  307. height: 27px;
  308. border: 1px solid #274934;
  309. text-align: center;
  310. line-height: 25px;
  311. cursor: pointer;
  312. }
  313. div:nth-child(1) {
  314. border-radius: 13px 0px 0px 13px;
  315. border-right-width: 0;
  316. }
  317. div:nth-child(2) {
  318. border-radius: 0px 13px 13px 0px;
  319. }
  320. .active {
  321. background-color: rgba(5, 187, 76, 0.9);
  322. color: #fff;
  323. }
  324. }
  325. .but {
  326. display: flex;
  327. flex-direction: row;
  328. align-content: center;
  329. margin-left: 20px;
  330. .buttons {
  331. background-color: rgba(5, 187, 76, 0.2);
  332. border: 1px solid #3b6c53;
  333. color: #b3b3b3;
  334. font-size: 14px;
  335. &:hover,
  336. &.active {
  337. background-color: rgba(5, 187, 76, 0.5);
  338. color: #ffffff;
  339. }
  340. }
  341. }
  342. &:last-child {
  343. margin-top: 0;
  344. margin-bottom: 0;
  345. }
  346. }
  347. }
  348. }
  349. </style>
  350. <style lang="less">
  351. .comprehensiveEvaluation {
  352. .detailInfoTabs {
  353. background: #081410;
  354. color: #fff;
  355. .el-tabs__header {
  356. background: #081410;
  357. color: #fff;
  358. .el-tabs__item {
  359. border: 0;
  360. &.is-active {
  361. background: transparent;
  362. }
  363. &::after {
  364. width: 90% !important;
  365. left: 5% !important;
  366. }
  367. }
  368. }
  369. }
  370. }
  371. </style>