analysisEvent.vue 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958
  1. <!--
  2. * @Author: your name
  3. * @Date: 2024-05-29 09:13:51
  4. * @LastEditTime: 2024-06-19 14:03:49
  5. * @LastEditors: bogon
  6. * @Description: In User Settings Edit
  7. * @FilePath: /performance-test/src/views/performance/components/analysisEvent.vue
  8. -->
  9. <template>
  10. <div v-loading="loading">
  11. <el-form ref="form" :model="form" label-position="right">
  12. <el-row type="flex" justify="end">
  13. <el-col :span="5">
  14. <el-form-item class="searchFrom">
  15. <el-button type="primary" @click="onSubmit" size="small"
  16. >分析</el-button
  17. >
  18. <el-button size="small" @click="resetForm">重置</el-button>
  19. <i @click="drawer = true" class="el-icon-setting"></i>
  20. </el-form-item>
  21. </el-col>
  22. </el-row>
  23. <el-collapse v-model="activeNames">
  24. <el-collapse-item title="基础筛选:" name="1">
  25. <el-row class="flex-wrap-row" :gutter="5">
  26. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="5">
  27. <el-form-item
  28. label="分析类型"
  29. v-if="checkedCities.find((item) => item === '分析类型')"
  30. prop=""
  31. >
  32. <el-select
  33. v-model="form.configAnalysis"
  34. placeholder="请选择分析类型"
  35. size="small"
  36. multiple
  37. clearable
  38. >
  39. <el-option
  40. v-for="item in analysisTypeList"
  41. :key="item.typeCode"
  42. :label="item.typeName"
  43. :value="item.typeCode"
  44. ></el-option>
  45. </el-select> </el-form-item
  46. ></el-col>
  47. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="5">
  48. <el-form-item
  49. label="机组编号"
  50. v-if="checkedCities.find((item) => item === '机组编号')"
  51. >
  52. <el-select
  53. multiple
  54. v-model="form.turbines"
  55. placeholder="请选择机组编号"
  56. size="small"
  57. clearable
  58. >
  59. <el-option
  60. v-for="item in windEngineGroupList"
  61. :key="item"
  62. :label="item"
  63. :value="item"
  64. ></el-option>
  65. </el-select>
  66. </el-form-item>
  67. </el-col>
  68. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="5">
  69. <el-form-item
  70. label="SCADA数据"
  71. v-if="checkedCities.find((item) => item === 'SCADA数据')"
  72. >
  73. <el-select
  74. v-model="form.scada"
  75. placeholder="请选择SCADA数据"
  76. size="small"
  77. clearable
  78. >
  79. <el-option
  80. :key="'minute'"
  81. :label="'分钟级'"
  82. :value="'minute'"
  83. ></el-option>
  84. <el-option
  85. :key="'second'"
  86. :label="'秒级'"
  87. :value="'second'"
  88. ></el-option>
  89. </el-select>
  90. </el-form-item>
  91. </el-col>
  92. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="5">
  93. <el-form-item
  94. label="滤除月份"
  95. v-if="checkedCities.find((item) => item === '滤除月份')"
  96. >
  97. <el-date-picker
  98. value-format="timestamp"
  99. width="200"
  100. size="small"
  101. type="months"
  102. v-model="form.excludingMonths"
  103. placeholder="选择一个或多个月"
  104. >
  105. </el-date-picker>
  106. </el-form-item>
  107. </el-col>
  108. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="9">
  109. <el-form-item
  110. label="分析时间"
  111. v-if="checkedCities.find((item) => item === '分析时间')"
  112. >
  113. <el-date-picker
  114. value-format="timestamp"
  115. size="small"
  116. v-model="picker"
  117. type="daterange"
  118. range-separator="至"
  119. start-placeholder="开始日期"
  120. end-placeholder="结束日期"
  121. >
  122. </el-date-picker> </el-form-item
  123. ></el-col>
  124. </el-row>
  125. </el-collapse-item>
  126. <el-collapse-item
  127. title="SACAD数据测点过滤设置:"
  128. name="2"
  129. v-if="checkedCities.find((item) => item === 'SCADA数据过滤')"
  130. >
  131. <el-row :gutter="5">
  132. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  133. <el-form-item label="风速过滤">
  134. <div class="demo-input-suffix">
  135. <el-input
  136. type="number"
  137. :min="1"
  138. size="small"
  139. placeholder="最小值"
  140. v-model="form.valueWindSpeed[0]"
  141. @input="ensureMinValue(form.valueWindSpeed, 0)"
  142. >
  143. </el-input>
  144. <el-input
  145. type="number"
  146. :min="1"
  147. size="small"
  148. placeholder="最大值"
  149. v-model="form.valueWindSpeed[1]"
  150. @input="ensureMinValue(form.valueWindSpeed, 1)"
  151. >
  152. </el-input>
  153. </div>
  154. </el-form-item>
  155. </el-col>
  156. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  157. <el-form-item label="桨距角过滤">
  158. <div class="demo-input-suffix">
  159. <el-input
  160. type="number"
  161. :min="1"
  162. size="small"
  163. placeholder="最小值"
  164. v-model="form.valuePitchAngle[0]"
  165. @input="ensureMinValue(form.valuePitchAngle, 0)"
  166. >
  167. </el-input>
  168. <el-input
  169. type="number"
  170. :min="1"
  171. size="small"
  172. placeholder="最大值"
  173. v-model="form.valuePitchAngle[1]"
  174. @input="ensureMinValue(form.valuePitchAngle, 1)"
  175. >
  176. </el-input>
  177. </div>
  178. </el-form-item>
  179. </el-col>
  180. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  181. <el-form-item label="有功功率过滤">
  182. <div class="demo-input-suffix">
  183. <el-input
  184. type="number"
  185. :min="1"
  186. size="small"
  187. placeholder="最小值"
  188. v-model="form.valueActivePower[0]"
  189. @input="ensureMinValue(form.valueActivePower, 0)"
  190. >
  191. </el-input>
  192. <el-input
  193. type="number"
  194. :min="1"
  195. size="small"
  196. placeholder="最大值"
  197. v-model="form.valueActivePower[1]"
  198. @input="ensureMinValue(form.valueActivePower, 1)"
  199. >
  200. </el-input>
  201. </div>
  202. </el-form-item>
  203. </el-col>
  204. <el-col :xs="24" :sm="24" :md="12" :lg="8" :xl="6">
  205. <el-form-item label="发电机转速过滤">
  206. <div class="demo-input-suffix">
  207. <el-input
  208. type="number"
  209. :min="1"
  210. size="small"
  211. placeholder="最小值"
  212. v-model="form.valueGeneratorSpeed[0]"
  213. @input="ensureMinValue(form.valueGeneratorSpeed, 0)"
  214. >
  215. </el-input>
  216. <el-input
  217. type="number"
  218. :min="1"
  219. size="small"
  220. placeholder="最大值"
  221. v-model="form.valueGeneratorSpeed[1]"
  222. @input="ensureMinValue(form.valueGeneratorSpeed, 1)"
  223. >
  224. </el-input>
  225. </div>
  226. </el-form-item>
  227. </el-col>
  228. </el-row>
  229. </el-collapse-item>
  230. <el-collapse-item
  231. title="图像轴系设置:"
  232. name="3"
  233. v-if="checkedCities.find((item) => item === '图像设置')"
  234. >
  235. <el-row :gutter="5">
  236. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  237. <el-form-item label="直驱发电机转速轴系">
  238. <div class="demo-input-suffix">
  239. <el-input
  240. type="number"
  241. :min="1"
  242. size="small"
  243. placeholder="步长"
  244. v-model="form.dGeneratorSpeed[0]"
  245. @input="ensureMinValue(form.dGeneratorSpeed, 0)"
  246. >
  247. </el-input>
  248. <el-input
  249. type="number"
  250. :min="1"
  251. size="small"
  252. placeholder="最小值"
  253. v-model="form.dGeneratorSpeed[1]"
  254. @input="ensureMinValue(form.dGeneratorSpeed, 1)"
  255. >
  256. </el-input>
  257. <el-input
  258. type="number"
  259. :min="1"
  260. size="small"
  261. placeholder="最大值"
  262. v-model="form.dGeneratorSpeed[2]"
  263. @input="ensureMinValue(form.dGeneratorSpeed, 2)"
  264. >
  265. </el-input>
  266. </div>
  267. </el-form-item>
  268. </el-col>
  269. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  270. <el-form-item label="非直驱发电机转速轴系设置">
  271. <div class="demo-input-suffix">
  272. <el-input
  273. type="number"
  274. :min="1"
  275. size="small"
  276. placeholder="步长"
  277. v-model="form.iGeneratorSpeed[0]"
  278. @input="ensureMinValue(form.iGeneratorSpeed, 0)"
  279. >
  280. </el-input>
  281. <el-input
  282. type="number"
  283. :min="1"
  284. size="small"
  285. placeholder="最小值"
  286. v-model="form.iGeneratorSpeed[1]"
  287. @input="ensureMinValue(form.iGeneratorSpeed, 1)"
  288. >
  289. </el-input>
  290. <el-input
  291. type="number"
  292. :min="1"
  293. size="small"
  294. placeholder="最大值"
  295. v-model="form.iGeneratorSpeed[2]"
  296. @input="ensureMinValue(form.iGeneratorSpeed, 2)"
  297. >
  298. </el-input>
  299. </div>
  300. </el-form-item>
  301. </el-col>
  302. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  303. <el-form-item label="直驱发电机转矩轴系">
  304. <div class="demo-input-suffix">
  305. <el-input
  306. type="number"
  307. :min="1"
  308. size="small"
  309. placeholder="步长"
  310. v-model="form.dGeneratorTorque[0]"
  311. @input="ensureMinValue(form.dGeneratorTorque, 0)"
  312. >
  313. </el-input>
  314. <el-input
  315. type="number"
  316. :min="1"
  317. size="small"
  318. placeholder="最小值"
  319. v-model="form.dGeneratorTorque[1]"
  320. @input="ensureMinValue(form.dGeneratorTorque, 1)"
  321. >
  322. </el-input>
  323. <el-input
  324. type="number"
  325. :min="1"
  326. size="small"
  327. placeholder="最大值"
  328. v-model="form.dGeneratorTorque[2]"
  329. @input="ensureMinValue(form.dGeneratorTorque, 2)"
  330. >
  331. </el-input>
  332. </div>
  333. </el-form-item>
  334. </el-col>
  335. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  336. <el-form-item label="非直驱发电机转矩轴系">
  337. <div class="demo-input-suffix">
  338. <el-input
  339. type="number"
  340. :min="1"
  341. size="small"
  342. placeholder="步长"
  343. v-model="form.iGeneratorTorque[0]"
  344. @input="ensureMinValue(form.iGeneratorTorque, 0)"
  345. >
  346. </el-input>
  347. <el-input
  348. type="number"
  349. :min="1"
  350. size="small"
  351. placeholder="最小值"
  352. v-model="form.iGeneratorTorque[1]"
  353. @input="ensureMinValue(form.iGeneratorTorque, 1)"
  354. >
  355. </el-input>
  356. <el-input
  357. type="number"
  358. :min="1"
  359. size="small"
  360. placeholder="最大值"
  361. v-model="form.iGeneratorTorque[2]"
  362. @input="ensureMinValue(form.iGeneratorTorque, 2)"
  363. >
  364. </el-input>
  365. </div>
  366. </el-form-item>
  367. </el-col>
  368. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  369. <el-form-item label="风能利用系数">
  370. <div class="demo-input-suffix">
  371. <el-input
  372. type="number"
  373. :min="1"
  374. size="small"
  375. placeholder="步长"
  376. v-model="form.cp[0]"
  377. @input="ensureMinValue(form.cp, 0)"
  378. >
  379. </el-input>
  380. <el-input
  381. type="number"
  382. :min="1"
  383. size="small"
  384. placeholder="最小值"
  385. v-model="form.cp[1]"
  386. @input="ensureMinValue(form.cp, 1)"
  387. >
  388. </el-input>
  389. <el-input
  390. type="number"
  391. :min="1"
  392. size="small"
  393. placeholder="最大值"
  394. v-model="form.cp[2]"
  395. @input="ensureMinValue(form.cp, 2)"
  396. >
  397. </el-input>
  398. </div>
  399. </el-form-item>
  400. </el-col>
  401. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  402. <el-form-item label="叶尖转速比">
  403. <div class="demo-input-suffix">
  404. <el-input
  405. type="number"
  406. :min="1"
  407. size="small"
  408. placeholder="步长"
  409. v-model="form.tsr[0]"
  410. @input="ensureMinValue(form.tsr, 0)"
  411. >
  412. </el-input>
  413. <el-input
  414. type="number"
  415. :min="1"
  416. size="small"
  417. placeholder="最小值"
  418. v-model="form.tsr[1]"
  419. @input="ensureMinValue(form.tsr, 1)"
  420. >
  421. </el-input>
  422. <el-input
  423. type="number"
  424. :min="1"
  425. size="small"
  426. placeholder="最大值"
  427. v-model="form.tsr[2]"
  428. @input="ensureMinValue(form.tsr, 2)"
  429. >
  430. </el-input>
  431. </div>
  432. </el-form-item>
  433. </el-col>
  434. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  435. <el-form-item label="有功功率">
  436. <div class="demo-input-suffix">
  437. <el-input
  438. type="number"
  439. :min="1"
  440. size="small"
  441. placeholder="步长"
  442. v-model="form.activePower[0]"
  443. @input="ensureMinValue(form.activePower, 0)"
  444. >
  445. </el-input>
  446. <el-input
  447. type="number"
  448. :min="1"
  449. size="small"
  450. placeholder="最小值"
  451. v-model="form.activePower[1]"
  452. @input="ensureMinValue(form.activePower, 1)"
  453. >
  454. </el-input>
  455. <el-input
  456. type="number"
  457. :min="1"
  458. size="small"
  459. placeholder="最大值"
  460. v-model="form.activePower[2]"
  461. @input="ensureMinValue(form.activePower, 2)"
  462. >
  463. </el-input>
  464. </div>
  465. </el-form-item>
  466. </el-col>
  467. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  468. <el-form-item label="桨距角">
  469. <div class="demo-input-suffix">
  470. <el-input
  471. type="number"
  472. :min="1"
  473. size="small"
  474. placeholder="步长"
  475. v-model="form.pitchAngle[0]"
  476. @input="ensureMinValue(form.pitchAngle, 0)"
  477. >
  478. </el-input>
  479. <el-input
  480. type="number"
  481. :min="1"
  482. size="small"
  483. placeholder="最小值"
  484. v-model="form.pitchAngle[1]"
  485. @input="ensureMinValue(form.pitchAngle, 1)"
  486. >
  487. </el-input>
  488. <el-input
  489. type="number"
  490. :min="1"
  491. size="small"
  492. placeholder="最大值"
  493. v-model="form.pitchAngle[2]"
  494. @input="ensureMinValue(form.pitchAngle, 2)"
  495. >
  496. </el-input>
  497. </div>
  498. </el-form-item>
  499. </el-col>
  500. </el-row>
  501. </el-collapse-item>
  502. </el-collapse>
  503. </el-form>
  504. <el-card shadow="always" class="box-card">
  505. <el-row>
  506. <el-col :span="12"
  507. ><div class="left">
  508. <div>
  509. <span>机组编号:</span>
  510. <el-select
  511. v-model="engineCode"
  512. placeholder="请选择机组编号"
  513. size="small"
  514. clearable
  515. @change="handleEngineCode"
  516. >
  517. <el-option
  518. v-for="item in windEngineGroupList"
  519. :key="item"
  520. :label="item"
  521. :value="item"
  522. ></el-option>
  523. </el-select>
  524. </div>
  525. <div>1.额定容量:{{ windDetail.ratedCapacity }}</div>
  526. <!-- <div>2.发电机类型(Generator Type):{{}}</div> -->
  527. <div>2.风机编号:{{ windDetail.engineCode }}</div>
  528. <div>3.经度(Longitude):{{ windDetail.longitude }}</div>
  529. <div>4.维度(Dimensionality):{{ windDetail.latitude }}</div>
  530. <div>5.海拔高度(Altitude):{{ windDetail.elevationHeight }}</div>
  531. <div>6.风机名称:{{ windDetail.engineName }}</div>
  532. <div>
  533. 7.是否标杆(Benchmarking or not):{{ windDetail.sightcing }}
  534. </div>
  535. <div>8.风场编号:{{ windDetail.fieldCode }}</div>
  536. <div>9.轮毂高度:{{ windDetail.hubHeight }}</div>
  537. <div>10.机型编号:{{ windDetail.millTypeCode }}</div>
  538. <div>11.切入风速:{{ windDetail.ratedCutInWindspeed }}</div>
  539. <div>12.切出风速:{{ windDetail.ratedCutOutWindspeed }}</div>
  540. <!-- <div>8.地理位置(Location):不同地理位置的气候条件{{}}</div>
  541. <div>
  542. 9.供应商信息(Manufacturer
  543. Information):制造商的信誉、技术水平和售后
  544. </div>
  545. <div>
  546. 10.维护需求(Maintenance Requirements):风力发电机组需要定期
  547. </div>
  548. <div>11.预期寿命(Expected Lifetime):风力发电机组的设计寿命</div> -->
  549. </div>
  550. </el-col>
  551. <el-col :span="12">
  552. <div class="right">
  553. <iframe src="/html/A01.html" frameborder="0"></iframe>
  554. </div>
  555. </el-col>
  556. </el-row>
  557. </el-card>
  558. <el-drawer
  559. title="偏好设置"
  560. :visible.sync="drawer"
  561. :direction="direction"
  562. :before-close="handleClose"
  563. class="drawerOption"
  564. >
  565. <el-row>
  566. <el-col :span="12"
  567. ><div class="drawerLeft">
  568. <div style="text-align: center; font-size: 16px">常用功能设置</div>
  569. <el-checkbox
  570. :indeterminate="isIndeterminate"
  571. v-model="checkAll"
  572. @change="handleCheckAllChange"
  573. >全选</el-checkbox
  574. >
  575. <div style="margin: 15px 0"></div>
  576. <el-checkbox-group
  577. v-model="checkedCities"
  578. @change="handleCheckedCitiesChange"
  579. >
  580. <el-checkbox v-for="city in cities" :label="city" :key="city">{{
  581. city
  582. }}</el-checkbox>
  583. <el-checkbox
  584. label="SCADA数据过滤"
  585. key="SCADA数据过滤"
  586. ></el-checkbox>
  587. <div class="checkFromRow">
  588. <el-row>
  589. <el-col :span="12">发电机转速测点</el-col>
  590. <el-col :span="12">桨距角值测点</el-col>
  591. <el-col :span="12">有功功率测点</el-col>
  592. <el-col :span="12">风速速度测点</el-col>
  593. </el-row>
  594. </div>
  595. <el-checkbox label="图像设置" key="图像设置"></el-checkbox>
  596. <div class="checkFromRow">
  597. <el-row>
  598. <el-col :span="12">发电机转矩轴系</el-col>
  599. <el-col :span="12">桨距角轴系</el-col>
  600. <el-col :span="12">叶尖速比轴系</el-col>
  601. <el-col :span="12">有功功率轴系</el-col>
  602. <el-col :span="12">发电机转矩轴系</el-col>
  603. </el-row>
  604. </div>
  605. </el-checkbox-group>
  606. </div></el-col
  607. >
  608. <el-col :span="12">
  609. <div class="drawerRight">
  610. <div style="text-align: center; font-size: 16px">已选中功能</div>
  611. <ul>
  612. <li v-for="func in checkedCities" :key="func">
  613. {{ func }}
  614. <el-button
  615. type="text"
  616. icon="el-icon-delete"
  617. @click="removeFunction(func)"
  618. ></el-button>
  619. </li>
  620. </ul></div
  621. ></el-col>
  622. </el-row>
  623. <div class="demo-drawer__footer">
  624. <el-button @click="handleClose">取 消</el-button>
  625. <el-button type="primary" @click="handleClose">{{ "确 定" }}</el-button>
  626. </div>
  627. </el-drawer>
  628. </div>
  629. </template>
  630. <script>
  631. import { analysisEditQuery, analysis } from "@/api/performance";
  632. import { getWindEngineGroup } from "@/api/ledger";
  633. export default {
  634. data() {
  635. return {
  636. engineCode: null, //台账机组编号
  637. picker: [],
  638. loading: false,
  639. form: {
  640. configAnalysis: null, //分析类型
  641. powerFarmID: null, //风场编号//通过路由获取的默认传递的
  642. dataBatchNum: null, //批次号
  643. scada: "minute", //scada数类型
  644. turbines: [], //机组编号
  645. beginTime: null, //开始时间
  646. endTime: null, //结束时间
  647. excludingMonths: null, //过滤月份
  648. valueWindSpeed: [], //风速值最大最小 数组第一值为min 第二个 max
  649. valuePitchAngle: [], //桨距角最大最小
  650. valueActivePower: [], //有功功率
  651. valueGeneratorSpeed: [], //发电机转速
  652. //图像
  653. dGeneratorSpeed: [], //直驱发电机转速轴系 第一个值为步长 第二个min 第三个 max
  654. iGeneratorSpeed: [], //非直驱发电机转速轴系设置
  655. dGeneratorTorque: [], //直驱发电机转矩轴系
  656. iGeneratorTorque: [], //非直驱发电机转矩轴系
  657. cp: [], //风能利用系数轴系
  658. tsr: [], //叶尖速比轴系
  659. pitchAngle: [], //桨距角轴系
  660. activePower: [], //有功功率轴系
  661. },
  662. activeNames: ["1", "2", "3"],
  663. checkAll: false,
  664. checkedCities: [
  665. "分析类型",
  666. "SCADA数据",
  667. "分析时间",
  668. "滤除月份",
  669. "机组编号",
  670. ],
  671. cities: ["分析类型", "SCADA数据", "分析时间", "滤除月份", "机组编号"],
  672. isIndeterminate: true,
  673. drawer: false,
  674. direction: "rtl",
  675. value: "",
  676. options: [],
  677. tabIndex: 2,
  678. analysisTypeList: [],
  679. windEngineGroupList: [],
  680. windDetail: {},
  681. };
  682. },
  683. created() {
  684. //获取分析 分析类型、机组编号 列表
  685. this.getWindCodeList();
  686. },
  687. methods: {
  688. ensureMinValue(field, index) {
  689. if (field[index] < 1) {
  690. field[index] = 1;
  691. }
  692. },
  693. handleEngineCode(e) {
  694. console.log(e);
  695. this.engineCode = e;
  696. this.getWindEngList();
  697. },
  698. async getWindEngList() {
  699. this.loading = true;
  700. try {
  701. const res = await getWindEngineGroup({
  702. engineCode: this.engineCode,
  703. });
  704. this.loading = false;
  705. this.windDetail = res.data;
  706. } catch (error) {
  707. this.loading = false;
  708. console.error(error);
  709. }
  710. },
  711. async getAnalysis() {
  712. console.log(this.form.excludingMonths, "过滤月份");
  713. console.log(this.picker, "分析时间");
  714. this.loading = true;
  715. try {
  716. await analysis({
  717. // ...this.form,
  718. configAnalysis:
  719. this.form.configAnalysis !== null
  720. ? this.form.configAnalysis
  721. : undefined, //分析类型
  722. powerFarmID: this.$route.query.fieldEngineCode, //风场编号//通过路由获取的默认传递的
  723. dataBatchNum: this.$route.query.batchCode, //批次号
  724. scada: this.form.scada !== null ? this.form.scada : undefined, //scada数类型
  725. turbines:
  726. this.form.turbines.length > 0 ? this.form.turbines : undefined, //机组编号
  727. excludingMonths:
  728. this.form.excludingMonths === null
  729. ? undefined
  730. : this.form.excludingMonths, //过滤月份
  731. valueWindSpeed:
  732. this.form.valueWindSpeed.length > 0
  733. ? this.form.valueWindSpeed
  734. : undefined, //风速值最大最小 数组第一值为min 第二个 max
  735. valuePitchAngle:
  736. this.form.valuePitchAngle.length > 0
  737. ? this.form.valuePitchAngle
  738. : undefined, //桨距角最大最小
  739. valueActivePower:
  740. this.form.valueActivePower.length > 0
  741. ? this.form.valueActivePower
  742. : undefined, //有功功率
  743. valueGeneratorSpeed:
  744. this.form.valueGeneratorSpeed.length > 0
  745. ? this.form.valueGeneratorSpeed
  746. : undefined, //发电机转速
  747. //图像
  748. dGeneratorSpeed:
  749. this.form.dGeneratorSpeed.length > 0
  750. ? this.form.dGeneratorSpeed
  751. : undefined, //直驱发电机转速轴系 第一个值为步长 第二个min 第三个 max
  752. iGeneratorSpeed:
  753. this.form.iGeneratorSpeed.length > 0
  754. ? this.form.iGeneratorSpeed
  755. : undefined, //非直驱发电机转速轴系设置
  756. dGeneratorTorque:
  757. this.form.dGeneratorTorque.length > 0
  758. ? this.form.dGeneratorTorque
  759. : undefined, //直驱发电机转矩轴系
  760. iGeneratorTorque:
  761. this.form.iGeneratorTorque.length > 0
  762. ? this.form.iGeneratorTorque
  763. : undefined, //非直驱发电机转矩轴系
  764. cp: this.form.cp.length > 0 ? this.form.cp : undefined, //风能利用系数轴系
  765. tsr: this.form.tsr.length > 0 ? this.form.tsr : undefined, //叶尖速比轴系
  766. pitchAngle:
  767. this.form.pitchAngle.length > 0 ? this.form.pitchAngle : undefined, //桨距角轴系
  768. activePower:
  769. this.form.activePower.length > 0
  770. ? this.form.activePower
  771. : undefined, //有功功率轴系
  772. beginTime: this.picker[0], //开始时间
  773. endTime: this.picker[1], //结束时间
  774. });
  775. this.$message({
  776. type: "success",
  777. message: "已分析请前往分析详情中查看结果",
  778. });
  779. this.loading = false;
  780. } catch (error) {
  781. console.error(error);
  782. this.loading = false;
  783. }
  784. },
  785. async getWindCodeList() {
  786. this.loading = true;
  787. try {
  788. const response = await analysisEditQuery({
  789. batchCode: this.$route.query.batchCode,
  790. });
  791. this.form.powerFarmID = this.$route.query.fieldEngineCode;
  792. this.form.dataBatchNum = this.$route.query.batchCode;
  793. this.analysisTypeList = response.data.analysisTypeList;
  794. this.windEngineGroupList = response.data.windEngineGroupList;
  795. this.engineCode = response.data.windEngineGroupList[0];
  796. if (response.data.windEngineGroupList.length > 0) {
  797. //获取台账机组编号
  798. this.getWindEngList();
  799. }
  800. this.loading = false;
  801. } catch (error) {
  802. console.error(error);
  803. this.loading = false;
  804. this.$router.go(-1);
  805. }
  806. },
  807. handleCheckAllChange(val) {
  808. this.checkedCities = val
  809. ? [...this.cities, "SCADA数据过滤", "图像设置"]
  810. : [];
  811. this.isIndeterminate = false;
  812. },
  813. handleCheckedCitiesChange(value) {
  814. let checkedCount = value.length;
  815. this.checkAll = checkedCount === this.cities.length + 2;
  816. this.isIndeterminate =
  817. checkedCount > 0 && checkedCount < this.cities.length + 2;
  818. },
  819. removeFunction(item) {
  820. this.checkedCities = this.checkedCities.filter((fuc) => fuc !== item);
  821. },
  822. handleClose(done) {
  823. this.$confirm("确认关闭?")
  824. .then((_) => {
  825. // done();
  826. this.drawer = false;
  827. })
  828. .catch((_) => {});
  829. },
  830. onSubmit() {
  831. this.getAnalysis();
  832. console.log("submit!");
  833. },
  834. resetForm() {
  835. this.picker = [];
  836. this.form = {
  837. configAnalysis: null, //分析类型
  838. powerFarmID: this.$route.query.fieldEngineCode, //风场编号//通过路由获取的默认传递的
  839. dataBatchNum: this.$route.query.batchCode, //批次号
  840. scada: "minute", //scada数类型
  841. turbines: [], //机组编号
  842. beginTime: null, //开始时间
  843. endTime: null, //结束时间
  844. excludingMonths: null, //过滤月份
  845. valueWindSpeed: [], //风速值最大最小 数组第一值为min 第二个 max
  846. valuePitchAngle: [], //桨距角最大最小
  847. valueActivePower: [], //有功功率
  848. valueGeneratorSpeed: [], //发电机转速
  849. //图像
  850. dGeneratorSpeed: [], //直驱发电机转速轴系 第一个值为步长 第二个min 第三个 max
  851. iGeneratorSpeed: [], //非直驱发电机转速轴系设置
  852. dGeneratorTorque: [], //直驱发电机转矩轴系
  853. iGeneratorTorque: [], //非直驱发电机转矩轴系
  854. cp: [], //风能利用系数轴系
  855. tsr: [], //叶尖速比轴系
  856. pitchAngle: [], //桨距角轴系
  857. activePower: [], //有功功率轴系
  858. };
  859. },
  860. // 清空内容
  861. clear() {
  862. this.$refs.editor.clear();
  863. },
  864. },
  865. };
  866. </script>
  867. <style scoped lang="scss">
  868. .box-card {
  869. margin: 10px 0;
  870. width: 100%;
  871. font-size: 14px;
  872. .el-card__body {
  873. width: 100%;
  874. .left {
  875. > div {
  876. line-height: 3;
  877. }
  878. }
  879. .right {
  880. height: 450px;
  881. width: 100%;
  882. iframe {
  883. width: 100%;
  884. height: 100%;
  885. }
  886. }
  887. }
  888. }
  889. ::v-deep .searchFrom {
  890. .el-form-item__content {
  891. display: flex !important;
  892. justify-content: end !important;
  893. align-items: center !important;
  894. i {
  895. margin-left: 10px;
  896. font-size: 20px;
  897. }
  898. }
  899. }
  900. .drawerOption {
  901. .el-checkbox-group {
  902. line-height: 40px !important;
  903. }
  904. .drawerLeft {
  905. margin-left: 20px;
  906. color: #606266 !important;
  907. }
  908. .checkFromRow {
  909. .el-col-12 {
  910. color: #606266 !important;
  911. font-size: 14px;
  912. }
  913. .el-col-12:nth-child(even) {
  914. text-align: end !important;
  915. }
  916. }
  917. .drawerRight {
  918. margin-right: 20px;
  919. color: #606266 !important;
  920. font-size: 14px;
  921. ul {
  922. list-style-type: none;
  923. padding: 0;
  924. color: #606266 !important;
  925. li {
  926. display: flex;
  927. align-items: center;
  928. justify-content: space-between;
  929. padding: 0px 10px;
  930. line-height: 40px !important;
  931. }
  932. }
  933. }
  934. .demo-drawer__footer {
  935. display: flex;
  936. margin-top: 50px;
  937. justify-content: center;
  938. }
  939. }
  940. ::v-deep.el-input--small .el-input__inner {
  941. width: 200px !important;
  942. }
  943. .demo-input-suffix {
  944. display: flex !important;
  945. }
  946. ::v-deep.demo-input-suffix .el-input--small {
  947. width: 100px !important;
  948. }
  949. ::v-deep.demo-input-suffix .el-input--small .el-input__inner {
  950. width: 90px !important;
  951. }
  952. .abalysisType {
  953. margin-top: 30px;
  954. }
  955. </style>