windProblem.vue 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175
  1. <template>
  2. <div class="bodys">
  3. <div class="parts">
  4. <div class="part-top">
  5. <div class="part-title" :data-type="$store.state.moreSty">
  6. <div
  7. class="title-item part-left"
  8. :class="{ active: current === 'fdj' }"
  9. @click="handleClick('fdj')"
  10. >
  11. 发电机
  12. </div>
  13. <div
  14. v-if="otherInfo?.model != 'XE100-2000'"
  15. class="title-item"
  16. :class="{ active: current === 'clx' }"
  17. @click="handleClick('clx')"
  18. >
  19. 齿轮箱
  20. </div>
  21. <div
  22. class="title-item"
  23. :class="{ active: current === 'bj' }"
  24. @click="handleClick('bj')"
  25. >
  26. 变桨
  27. </div>
  28. <div
  29. class="title-item"
  30. :class="{ active: current === 'ph' }"
  31. @click="handleClick('ph')"
  32. >
  33. 偏航
  34. </div>
  35. <div
  36. class="title-item"
  37. :class="{ active: current === 'yy' }"
  38. @click="handleClick('yy')"
  39. >
  40. 液压
  41. </div>
  42. <div
  43. class="title-item"
  44. :class="{ active: current === 'jc' }"
  45. @click="handleClick('jc')"
  46. >
  47. 机舱信息
  48. </div>
  49. <div
  50. class="title-item part-right"
  51. :class="{ active: current === 'zz' }"
  52. @click="handleClick('zz')"
  53. >
  54. 主轴
  55. </div>
  56. </div>
  57. <div class="part-imgs" v-if="otherInfo?.model == 'XE100-2000'">
  58. <img
  59. class="wind-part"
  60. :style="{ width: flag ? '450px' : '500px' }"
  61. src="@/assets/windimgs/zqfj.png"
  62. />
  63. </div>
  64. <div class="part-imgs" v-else>
  65. <img
  66. v-if="current === 'fdj'"
  67. class="wind-part"
  68. :style="{ width: flag ? '650px' : '800px' }"
  69. src="@/assets/windimgs/fdj_b.png"
  70. />
  71. <img
  72. v-if="current === 'clx'"
  73. class="wind-part"
  74. :style="{ width: flag ? '650px' : '800px' }"
  75. src="@/assets/windimgs/clx_b.png"
  76. />
  77. <img
  78. v-if="current === 'bj'"
  79. class="wind-part"
  80. :style="{ width: flag ? '650px' : '800px' }"
  81. src="@/assets/windimgs/bj_b.png"
  82. />
  83. <img
  84. v-if="current === 'ph'"
  85. class="wind-part"
  86. :style="{ width: flag ? '650px' : '800px' }"
  87. src="@/assets/windimgs/ph_b.png"
  88. />
  89. <img
  90. v-if="current === 'yy'"
  91. class="wind-part"
  92. :style="{ width: flag ? '650px' : '800px' }"
  93. src="@/assets/windimgs/yy_b.png"
  94. />
  95. <img
  96. v-if="current === 'jc'"
  97. class="wind-part"
  98. :style="{ width: flag ? '650px' : '800px' }"
  99. src="@/assets/windimgs/jc_b.png"
  100. />
  101. <img
  102. v-if="current === 'qt'"
  103. class="wind-part"
  104. :style="{ width: flag ? '650px' : '800px' }"
  105. src="@/assets/windimgs/qt_b.png"
  106. />
  107. </div>
  108. </div>
  109. <div class="part-info">
  110. <div
  111. class="part-body"
  112. style="max-height: 25vh"
  113. >
  114. <div class="monitoring-item">
  115. <div class="point point-left bottom"></div>
  116. <div class="point point-right bottom"></div>
  117. 遥信值
  118. </div>
  119. <div class="part-item">
  120. <div
  121. class="part"
  122. :class="{ active: index % 2 === 1 }"
  123. v-for="(val, index) in partDInfos"
  124. :key="index"
  125. >
  126. <div class="table-item" v-for="(item, ind) in val" :key="ind">
  127. <div>{{ item.name }}</div>
  128. <div
  129. class="table-value"
  130. :data-type="$store.state.moreSty"
  131. :class="item.value == 1 ? 'round-red' : 'round'"
  132. ></div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <div
  138. class="part-body"
  139. style="max-height: 25vh"
  140. >
  141. <div class="monitoring-item">
  142. <div class="point point-left bottom"></div>
  143. <div class="point point-right bottom"></div>
  144. 遥测值
  145. </div>
  146. <div class="part-item">
  147. <div
  148. class="part"
  149. :class="{ active: index % 2 === 1 }"
  150. v-for="(val, index) in partAInfos"
  151. :key="index"
  152. >
  153. <div class="table-item" v-for="(item, ind) in val" :key="ind">
  154. <div>{{ item.name }}</div>
  155. <div class="table-value" :data-type="$store.state.moreSty">
  156. {{
  157. item.name.includes("状态")
  158. ? item.value
  159. : item.name == "总发电量"
  160. ? (item.value / 10000).toFixed(2)
  161. : Number(item.value).toFixed(2)
  162. }}
  163. <div v-if="item.valueUnit != 'NULL'" class="unit">
  164. {{ item.valueUnit }}
  165. </div>
  166. <div v-else class="unit"></div>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <div class="problems" style="color: #fff">
  175. <div class="problemTit">
  176. <div class="point point-left bottom"></div>
  177. <div class="point point-right bottom"></div>
  178. <span style="font-size: 16px;position: relative;top: -5px;">故障分类</span>
  179. <div class="problemSeach" :data-type="$store.state.moreSty">
  180. <el-input v-model="inputcv" clearable placeholder="请输入" />
  181. <div class="seachBtn">
  182. <el-icon :size="18" :color="color">
  183. <Search />
  184. </el-icon>
  185. </div>
  186. </div>
  187. </div>
  188. <div class="problemMain">
  189. <div class="problemWarn">
  190. <div class="warn">
  191. <div class="warnCom">
  192. <div class="circle-container">
  193. <svg class="circle-segment segment-1" viewBox="0 0 100 100">
  194. <circle cx="50" cy="50" r="40"></circle>
  195. </svg>
  196. </div>
  197. <div class="warnComImg">
  198. <img src="@/assets/windimgs/danger.png" alt="">
  199. </div>
  200. <div class="warnComNum">
  201. <div class="numTop">42</div>
  202. <div class="numBot">总故障</div>
  203. </div>
  204. </div>
  205. <div class="warnItems" v-for="(it, index) in warnList1" :key="index">
  206. <div class="warnItemLeft">{{it.num}}</div>
  207. <div class="warnItemRight">{{it.name}}</div>
  208. </div>
  209. </div>
  210. <div class="warn" v-for="(it, index) in warnListT" :key="index">
  211. <div class="warnItems" v-for="(itv, idx) in it" :key="idx">
  212. <div class="warnItemLeft" :class="isRed(idx)">{{itv.num}}</div>
  213. <div class="warnItemRight" :class="isRed(idx)">{{itv.name}}</div>
  214. </div>
  215. </div>
  216. </div>
  217. <div class="warnTable">
  218. <el-table
  219. size="mini"
  220. :data="tableData"
  221. style="width: 100%;"
  222. max-height="45vh"
  223. stripe>
  224. <el-table-column
  225. v-for="item in tableHeader"
  226. :label="item.name"
  227. :prop="item.code"
  228. :key="item.code"
  229. :width="item.width || ''"
  230. show-overflow-tooltip
  231. header-align="center"
  232. align="center"
  233. >
  234. <template #default="scope">
  235. <span v-if="item.code == 'status'">
  236. <span :style="scope.row.status === 0 ? 'color: red' : ''">{{scope.row.status === 0 ? "异常" : "正常"}}</span>
  237. </span>
  238. <span v-else>
  239. {{
  240. scope.row[item.code] != "NULL" ? scope.row[item.code] : ""
  241. }}
  242. </span>
  243. </template>
  244. </el-table-column>
  245. </el-table>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. </template>
  251. <script>
  252. import warnJson from './warnJson.json'
  253. import dataJson from './dataJson.json'
  254. export default {
  255. name: "windDetail",
  256. data() {
  257. return {
  258. inputcv: "",
  259. current: "fdj",
  260. windname: "",
  261. wtid: "",
  262. wpid: "",
  263. windInfo: {},
  264. monitorInfo: {},
  265. otherInfo: {},
  266. partAInfo: [],
  267. partDInfo: [],
  268. partAInfos: [],
  269. partDInfos: [],
  270. uniformcodesA: [],
  271. uniformcodesD: [],
  272. resA: [],
  273. resD: [],
  274. indexe: 0,
  275. videoTit: [],
  276. dialogVisible: false,
  277. reliable: {},
  278. colorList: ["blue", "green", "red", "orange", "pink", "write", "gray"],
  279. path: ["camera.png", "camera2.png"],
  280. count: 0,
  281. colorFlag: false,
  282. timer: "",
  283. times: "",
  284. warnLeft: [
  285. {
  286. name: "防雷保护类",
  287. value: 10
  288. }
  289. ],
  290. tableData: [
  291. {
  292. code: "1000",
  293. name: "变桨电池充电故障",
  294. message: "error_battery_charger",
  295. status: 1
  296. },
  297. {
  298. code: "1002",
  299. name: "转子侧变流器电流故障",
  300. message: "error_converter_error_inu_flag",
  301. status: 0
  302. },
  303. {
  304. code: "1000",
  305. name: "变桨电池充电故障",
  306. message: "error_battery_charger",
  307. status: 1
  308. },
  309. {
  310. code: "1002",
  311. name: "转子侧变流器电流故障",
  312. message: "error_converter_error_inu_flag",
  313. status: 0
  314. },
  315. {
  316. code: "1000",
  317. name: "变桨电池充电故障",
  318. message: "error_battery_charger",
  319. status: 1
  320. },
  321. {
  322. code: "1002",
  323. name: "转子侧变流器电流故障",
  324. message: "error_converter_error_inu_flag",
  325. status: 0
  326. },
  327. {
  328. code: "1000",
  329. name: "变桨电池充电故障",
  330. message: "error_battery_charger",
  331. status: 1
  332. },
  333. {
  334. code: "1002",
  335. name: "转子侧变流器电流故障",
  336. message: "error_converter_error_inu_flag",
  337. status: 0
  338. },
  339. {
  340. code: "1000",
  341. name: "变桨电池充电故障",
  342. message: "error_battery_charger",
  343. status: 1
  344. },
  345. {
  346. code: "1002",
  347. name: "转子侧变流器电流故障",
  348. message: "error_converter_error_inu_flag",
  349. status: 0
  350. },
  351. {
  352. code: "1000",
  353. name: "变桨电池充电故障",
  354. message: "error_battery_charger",
  355. status: 1
  356. },
  357. {
  358. code: "1002",
  359. name: "转子侧变流器电流故障",
  360. message: "error_converter_error_inu_flag",
  361. status: 0
  362. },
  363. {
  364. code: "1000",
  365. name: "变桨电池充电故障",
  366. message: "error_battery_charger",
  367. status: 1
  368. },
  369. {
  370. code: "1002",
  371. name: "转子侧变流器电流故障",
  372. message: "error_converter_error_inu_flag",
  373. status: 0
  374. },
  375. {
  376. code: "1000",
  377. name: "变桨电池充电故障",
  378. message: "error_battery_charger",
  379. status: 1
  380. },
  381. {
  382. code: "1002",
  383. name: "转子侧变流器电流故障",
  384. message: "error_converter_error_inu_flag",
  385. status: 0
  386. },
  387. ],
  388. tableHeader: [
  389. {
  390. code: "code",
  391. name: "报警编号"
  392. },
  393. {
  394. code: "name",
  395. name: "PCL变量名"
  396. },
  397. {
  398. code: "message",
  399. name: "报警文字信息"
  400. },
  401. {
  402. code: "status",
  403. name: "报警状态"
  404. },
  405. ],
  406. warnTypeData: {
  407. typeData: [],
  408. tableData: []
  409. },
  410. warnList1: [],
  411. warnListT: []
  412. };
  413. },
  414. props: {
  415. wind: {
  416. type: Object,
  417. default: () => {},
  418. },
  419. flag: {
  420. type: Boolean,
  421. default: false,
  422. },
  423. },
  424. created() {
  425. this.warnList1 = warnJson.warn1
  426. this.warnListT = warnJson.warnT
  427. this.partAInfos = dataJson.data.partAInfos
  428. this.partDInfos = dataJson.data.partDInfos
  429. },
  430. computed: {
  431. // windSpeedRota() {
  432. // let count = this.windStatus?.SSPJFS / 25;
  433. // let result = Number((310 * count + 50).toFixed(0));
  434. // if (result) {
  435. // if (result > 310) {
  436. // return "rotateZ(310deg)";
  437. // } else {
  438. // return "rotateZ(" + Number((310 * count + 50).toFixed(0)) + "deg)";
  439. // }
  440. // } else {
  441. // return "rotateZ(50deg)";
  442. // }
  443. // },
  444. },
  445. mounted() {
  446. // this.timer = setInterval(() => {
  447. // if (Object.keys(this.windInfo).length) {
  448. // this.getWtMonitorInfo(this.windInfo);
  449. // this.getPointsData(this.resA, this.resD);
  450. // }
  451. // }, 5000);
  452. // this.times = setInterval(() => {
  453. // this.count++;
  454. // if (this.count > 1) {
  455. // this.count = 0;
  456. // }
  457. // }, 800);
  458. // if (document.getElementById("ifrId")) {
  459. // const oIframe = document.getElementById("ifrId");
  460. // const deviceWidth = document.getElementById("ifVideo").offsetWidth;
  461. // const deviceHeight = document.getElementById("ifVideo").offsetHeight;
  462. // oIframe.style.width = deviceWidth + "px";
  463. // oIframe.style.height = deviceHeight + "px";
  464. // }
  465. },
  466. unmounted() {
  467. // clearInterval(this.timer);
  468. // this.timer = null;
  469. // clearInterval(this.times);
  470. // this.times = null;
  471. },
  472. watch: {
  473. // wind: {
  474. // handler() {
  475. // if (Object.keys(this.wind).length) {
  476. // this.start(this.wind);
  477. // }
  478. // },
  479. // },
  480. // $route: {
  481. // handler(val) {
  482. // if (
  483. // val.path.includes("lightmatrix") ||
  484. // val.path.includes("detailmatrix") ||
  485. // val.path.includes("draughtFan")
  486. // ) {
  487. // this.colorFlag = true;
  488. // }
  489. // },
  490. // immediate: true,
  491. // },
  492. },
  493. methods: {
  494. getwarnTypeData() {
  495. let that = this
  496. let params = {
  497. wtid: "NX_FGS_HA_F_WT_0039_EQ"
  498. // wtid: that.wind.wtid
  499. }
  500. GetMatrixalarmtype(params).then(res =>{
  501. if (res && res.data) {
  502. that.warnTypeData.typeData = res.data
  503. that.getwarnTableData(res.data[0])
  504. }
  505. })
  506. },
  507. getwarnTableData(data) {
  508. let that = this
  509. let params = {
  510. type: "BJXT",
  511. wtid: "NX_FGS_HA_F_WT_0039_EQ"
  512. // type: data.nemCode,
  513. // wtid: that.wind.wtid
  514. }
  515. GetMatrixalarmtypeTable(params).then(res =>{
  516. if (res && res.data) {
  517. that.warnTypeData.tableData = res.data
  518. }
  519. })
  520. },
  521. handleXhClick(wind) {
  522. // console.log(wind);
  523. this.$refs.powerAndSpeed && this.$refs.powerAndSpeed.init(wind);
  524. },
  525. isRed(val) {
  526. if (val === 2 || val === 6) {
  527. return 'redsty'
  528. }
  529. },
  530. cancle() {
  531. this.windInfo = {};
  532. this.windname = "";
  533. this.wtid = "";
  534. this.current = "fdj";
  535. this.monitorInfo = {};
  536. this.partAInfo = [];
  537. this.partDInfo = [];
  538. this.partAInfos = [];
  539. this.partDInfos = [];
  540. this.uniformcodesA = [];
  541. this.uniformcodesD = [];
  542. this.resA = [];
  543. this.resD = [];
  544. },
  545. // 页面初始信息
  546. start(val) {
  547. if (Object.keys(val).length) {
  548. this.windInfo = val;
  549. this.windname = val.wtname;
  550. this.wtid = val.wtid;
  551. this.wpid = val.wpid;
  552. this.current = "fdj";
  553. this.getWtMonitorInfo(val);
  554. this.getWtOtherInfo(val);
  555. this.handleClick("fdj");
  556. } else {
  557. this.cancle();
  558. }
  559. },
  560. // 设备监测信息
  561. getWtMonitorInfo(val) {
  562. if (val.wtType == -1) {
  563. GetWtMonitorInfo({ wtid: val.wtid }).then(({ data }) => {
  564. this.monitorInfo = data.data;
  565. this.monitorInfo.rfdl =
  566. this.monitorInfo.rfdl < 0 ? 0 : this.monitorInfo.rfdl;
  567. // for(var key in this.monitorInfo){
  568. // this.monitorInfo[key]=this.monitorInfo[key] < 0 ? 0 : this.monitorInfo[key];
  569. // }
  570. });
  571. } else {
  572. this.monitorInfo = {};
  573. }
  574. },
  575. // 设备其他信息
  576. getWtOtherInfo(val) {
  577. GetWtOtherInfo({ wtid: val.wtid }).then((res) => {
  578. if (res.code == 200) {
  579. this.otherInfo = res.data;
  580. }
  581. });
  582. },
  583. // 查看各部位编码
  584. handleClick(val) {
  585. this.current = val;
  586. if (this.wtid) {
  587. this.getPartInfo();
  588. }
  589. },
  590. // 统一编码
  591. getPartInfo() {
  592. if (this.windInfo.wtType == -1) {
  593. if (this.wtid.length && this.current) {
  594. GetWtTelemeteryInfo({
  595. part: this.current,
  596. wtid: this.wtid,
  597. }).then(({ data }) => {
  598. // 拿到初始获取数据
  599. this.partAInfo = data.data.AI;
  600. this.partDInfo = data.data.DI;
  601. // 拿到数据的uniformcode集合
  602. this.uniformcodesD = this.partDInfo.length
  603. ? this.partDInfo.map((item) => item.uniformCode)
  604. : [];
  605. this.uniformcodesA = this.partAInfo.length
  606. ? this.partAInfo.map((item) => item.uniformCode)
  607. : [];
  608. // 获取测点数据
  609. this.getPointsIds();
  610. });
  611. }
  612. }
  613. },
  614. getPointsIds() {
  615. let pointsIdsA = new Promise((resolve, reject) => {
  616. GetWtPoints({
  617. wtid: this.wtid,
  618. uniformcodes: this.uniformcodesA,
  619. })
  620. .then(({ data }) => {
  621. resolve(data);
  622. })
  623. .catch((e) => {
  624. reject("发生错误");
  625. });
  626. });
  627. let pointsIdsD = new Promise((resolve, reject) => {
  628. GetWtPoints({
  629. wtid: this.wtid,
  630. uniformcodes: this.uniformcodesD,
  631. })
  632. .then(({ data }) => {
  633. resolve(data);
  634. })
  635. .catch((e) => {
  636. // 标记失败后给定某个数据
  637. reject("发生错误");
  638. });
  639. });
  640. Promise.all([pointsIdsA, pointsIdsD])
  641. .then((results) => {
  642. this.resA = results[0].data.length
  643. ? results[0].data.map((item) => (item != null ? item.nemCode : ""))
  644. : [];
  645. this.resD = results[1].data.length
  646. ? results[1].data.map((item) => (item != null ? item.nemCode : ""))
  647. : [];
  648. this.getPointsData(this.resA, this.resD);
  649. })
  650. .catch((e) => {
  651. console.log("error", e);
  652. });
  653. },
  654. getPointsData(pointsA, pointsD) {
  655. let pointsDataA = new Promise((resolve, reject) => {
  656. GetPointsData({
  657. pointIds: pointsA,
  658. })
  659. .then(({ data }) => {
  660. resolve(data);
  661. })
  662. .catch((e) => {
  663. // 标记失败后给定某个数据
  664. reject("发生错误");
  665. });
  666. });
  667. let pointsDataD = new Promise((resolve, reject) => {
  668. GetPointsData({
  669. pointIds: pointsD,
  670. })
  671. .then(({ data }) => {
  672. resolve(data);
  673. })
  674. .catch((e) => {
  675. // 标记失败后给定某个数据
  676. reject("发生错误");
  677. });
  678. });
  679. Promise.all([pointsDataA, pointsDataD])
  680. .then((results) => {
  681. let pointsInfoA = results[0].data.length ? results[0].data : [];
  682. let pointsInfoD = results[1].data.length ? results[1].data : [];
  683. let partAInfo = [];
  684. let partDInfo = [];
  685. let chunk = 4;
  686. this.partAInfo.forEach((item, index) => {
  687. pointsInfoA.forEach((i, ind) => {
  688. if (index == ind) {
  689. item.value = i.pointValueInDouble;
  690. }
  691. });
  692. });
  693. for (let i = 0, j = this.partAInfo.length; i < j; i += chunk) {
  694. partAInfo.push(this.partAInfo.slice(i, i + chunk));
  695. }
  696. this.partDInfo.forEach((item, index) => {
  697. pointsInfoD.forEach((i, ind) => {
  698. if (index == ind) {
  699. item.value = i.pointValueInDouble;
  700. }
  701. });
  702. });
  703. for (let m = 0, n = this.partDInfo.length; m < n; m += chunk) {
  704. partDInfo.push(this.partDInfo.slice(m, m + chunk));
  705. }
  706. this.partDInfos = partDInfo;
  707. this.partAInfos = partAInfo;
  708. })
  709. .catch((e) => {
  710. // 失败的时候则返回最先被reject失败状态的值
  711. console.log("error", e);
  712. });
  713. },
  714. //打开报警页面
  715. handleAlarm(id) {
  716. this.$refs.alarmDialog &&
  717. this.$refs.alarmDialog.openDialog(id, this.wpid, this.windInfo.wtType);
  718. },
  719. clickVideo(index) {
  720. this.indexe = index;
  721. },
  722. clivkFun() {
  723. this.dialogVisible = true;
  724. },
  725. },
  726. };
  727. </script>
  728. <style lang="less" scoped>
  729. .icLi {
  730. background: rgba(0, 70, 199, 0.1);
  731. border-radius: 20px;
  732. color: #b3b3b3;
  733. }
  734. .actives {
  735. background: rgba(0, 70, 199, 0.4);
  736. border-radius: 20px;
  737. color: #f5f7fa;
  738. }
  739. .bodys {
  740. display: flex;
  741. flex-direction: row;
  742. width: 100%;
  743. height: 100%;
  744. .parts {
  745. // width: calc(100% - 600px - 20px);
  746. width: calc(70vw - 20px);
  747. margin-right: 20px;
  748. height: 82vh;
  749. display: flex;
  750. flex-direction: column;
  751. align-items: center;
  752. justify-content: space-between;
  753. // position: relative;
  754. .part-top {
  755. flex: 1;
  756. width: 100%;
  757. }
  758. .part-title {
  759. width: 100%;
  760. height: 30px;
  761. display: flex;
  762. align-items: flex-start;
  763. flex-direction: row;
  764. .title-item {
  765. width: 140px;
  766. height: 100%;
  767. display: flex;
  768. align-items: center;
  769. color: #3685c5;
  770. justify-content: center;
  771. cursor: pointer;
  772. background: rgba(96, 103, 105, 0.2);
  773. border-left: 1px solid rgba(0, 70, 199, 0.48);
  774. border-top: 1px solid rgba(0, 70, 199, 0.48);
  775. border-bottom: 1px solid rgba(0, 70, 199, 0.48);
  776. &.active {
  777. background-color: rgba(0, 70, 199, 0.48);
  778. color: #ffffff;
  779. }
  780. &.part-left {
  781. border-radius: 15px 0px 0px 15px;
  782. }
  783. &.part-right {
  784. border-right: 1px solid rgba(0, 70, 199, 0.48);
  785. border-radius: 0px 15px 15px 0px;
  786. }
  787. }
  788. }
  789. .part-imgs {
  790. min-height: calc(100% - 30px);
  791. position: relative;
  792. }
  793. .wind-part {
  794. position: absolute;
  795. top: 50%;
  796. left: 50%;
  797. transform: translate(-50%, -50%);
  798. }
  799. .part-info {
  800. width: 100%;
  801. max-height: 50vh;
  802. bottom: 0px;
  803. display: flex;
  804. flex-direction: column-reverse;
  805. [v-cloak] {
  806. display: none;
  807. }
  808. .part-body {
  809. width: 100%;
  810. padding-bottom: 20px;
  811. backdrop-filter: blur(15px);
  812. background: rgba(255, 255, 255, 0.3);
  813. // background: rgba(96, 103, 105, 0.2);
  814. border-radius: 5px;
  815. margin-top: 10px;
  816. display: flex;
  817. flex-direction: column;
  818. align-items: center;
  819. padding: 10px 0;
  820. .part-item {
  821. width: 100%;
  822. height: 10vh;
  823. overflow-y: scroll;
  824. }
  825. .part {
  826. width: 100%;
  827. display: flex;
  828. // flex-direction: row;
  829. flex-wrap: wrap;
  830. margin-top: 5px;
  831. font-size: 13px;
  832. font-family: Source Han Sans SC;
  833. font-weight: 400;
  834. color: #959595;
  835. padding: 0 10px;
  836. .table-item {
  837. width: 25%;
  838. font-size: 12px;
  839. .table-value {
  840. display: flex;
  841. flex-direction: row;
  842. align-items: baseline;
  843. .unit {
  844. font-size: 12px;
  845. font-family: Source Han Sans SC;
  846. font-weight: 400;
  847. color: #817c7c;
  848. margin-left: 5px;
  849. width: 40px;
  850. }
  851. &.round {
  852. width: 8px;
  853. height: 8px;
  854. border-radius: 50%;
  855. margin-right: 90px;
  856. background-color: rgba(0, 70, 199, 0.48);
  857. }
  858. &.round-red {
  859. width: 8px;
  860. height: 8px;
  861. border-radius: 50%;
  862. background-color: red;
  863. margin-right: 90px;
  864. }
  865. }
  866. }
  867. &.active {
  868. background-color: rgba(83, 89, 104, 0.15);
  869. }
  870. }
  871. }
  872. }
  873. }
  874. .problems{
  875. width: 30vw;
  876. // background: rgba(96, 103, 105, 0.2);
  877. background: rgba(255, 255, 255, 0.3);
  878. backdrop-filter: blur(15px);
  879. border-radius: 5px;
  880. padding: 10px;
  881. height: 83vh;
  882. .problemTit{
  883. display: flex;
  884. justify-content: space-between;
  885. position: relative;
  886. width: 98%;
  887. height: 42px;
  888. border-bottom: 1px solid #363b46;
  889. display: flex;
  890. align-items: center;
  891. padding-left: 20px;
  892. font-size: 16px;
  893. font-family: Microsoft YaHei;
  894. font-weight: 400;
  895. color: #363b46;
  896. .problemSeach{
  897. display: flex;
  898. .el-input{
  899. width: 150px;
  900. position: relative;
  901. top: -4px;
  902. margin-right: 5px;
  903. }
  904. .seachBtn{
  905. width: 30px;
  906. height: 30px;
  907. border-radius: 30px;
  908. position: relative;
  909. margin-left: 5px;
  910. cursor: pointer;
  911. background: rgba(0, 70, 199, 0.48);
  912. &:hover {
  913. background-color: rgba(16, 81, 219, 0.5);
  914. color: #ffffff;
  915. }
  916. .el-icon{
  917. position: absolute;
  918. top: 6px;
  919. left: 7px;
  920. }
  921. }
  922. .buttons {
  923. background-color: rgba(5, 187, 76, 0.2);
  924. border: 1px solid #3b6c53;
  925. color: #b3b3b3;
  926. font-size: 14px;
  927. width: 40px;
  928. height: 30px;
  929. position: relative;
  930. padding: 0 25px !important;
  931. .button{
  932. position: absolute;
  933. left: 13px;
  934. top: 7px;
  935. }
  936. &:hover {
  937. background-color: rgba(5, 187, 76, 0.5);
  938. color: #ffffff;
  939. }
  940. }
  941. }
  942. }
  943. .problemMain{
  944. .problemWarn{
  945. margin-top: 10px;
  946. display: flex;
  947. justify-content: space-between;
  948. width: 100%;
  949. .warn{
  950. width: 32%;
  951. }
  952. .warnCom{
  953. width: 100%;
  954. height: 100px;
  955. // border: 1px solid rgba(255,0,0,0.8);
  956. margin-bottom: 5px;
  957. box-shadow: inset 0px 0px 40px 0px red;
  958. animation: flash 1s infinite alternate; /* 闪烁动画 */
  959. .warnComImg{
  960. width: 50px;
  961. height: 50px;
  962. text-align: center;
  963. border-radius: 50px;
  964. border: 1px solid rgba(255,0,0,.3);
  965. position: relative;
  966. top: -74px;
  967. left: 22px;
  968. img{
  969. position: relative;
  970. top: 5px;
  971. }
  972. }
  973. .warnComNum{
  974. position: relative;
  975. top: -119px;
  976. left: 78px;
  977. width: 55px;
  978. .numTop{
  979. font-size: 22px;
  980. font-weight: bold;
  981. color: red;
  982. text-align: end;
  983. }
  984. .numBot{
  985. font-size: 14px;
  986. color: rgb(136, 136, 136);
  987. position: absolute;
  988. right: 0;
  989. top: 21px;
  990. }
  991. }
  992. .circle-container {
  993. width: 100px;
  994. height: 100px;
  995. position: relative;
  996. }
  997. .circle-segment {
  998. position: absolute;
  999. top: 20%;
  1000. left: 17%;
  1001. width: 60px;
  1002. height: 60px;
  1003. transform-origin: center;
  1004. transform: translate(-50%, -50%);
  1005. stroke-width: 5;
  1006. fill: none;
  1007. stroke-dasharray: 50, 30; /* 圆周长三分之一加间隔 */
  1008. stroke-dashoffset: 0;
  1009. animation: rotate 4s linear infinite;
  1010. }
  1011. .segment-1 {
  1012. stroke: red;
  1013. transform: rotate(0deg);
  1014. }
  1015. @keyframes rotate {
  1016. from {
  1017. transform: rotate(0deg);
  1018. }
  1019. to {
  1020. transform: rotate(360deg);
  1021. }
  1022. }
  1023. }
  1024. @keyframes flash {
  1025. from {
  1026. box-shadow: inset 0 0 10px #e60101; /* 开始时的内阴影 */
  1027. }
  1028. to {
  1029. box-shadow: inset 0 0 40px #f00; /* 结束时的内阴影,颜色更亮或更大 */
  1030. }
  1031. }
  1032. .warnItems{
  1033. width: 100%;
  1034. display: flex;
  1035. color: #817c7c;
  1036. margin-bottom: 3px;
  1037. .warnItemLeft{
  1038. height: 32px;
  1039. width: 20%;
  1040. border: 1px solid #817c7c;
  1041. margin-right: 1%;
  1042. font-size: 14px;
  1043. text-align: center;
  1044. line-height: 28px;
  1045. }
  1046. .warnItemRight{
  1047. height: 32px;
  1048. width: 79%;
  1049. line-height: 28px;
  1050. font-size: 12px;
  1051. border: 1px solid #817c7c;
  1052. padding-left: 5px;
  1053. }
  1054. .redsty{
  1055. border: 1px solid red;
  1056. color: red;
  1057. }
  1058. }
  1059. }
  1060. .warnTable{
  1061. margin-top: 10px;
  1062. }
  1063. }
  1064. }
  1065. }
  1066. .monitoring-item {
  1067. position: relative;
  1068. width: 98%;
  1069. height: 42px;
  1070. border-bottom: 1px solid #363b46;
  1071. display: flex;
  1072. align-items: center;
  1073. padding-left: 20px;
  1074. font-size: 16px;
  1075. font-family: Microsoft YaHei;
  1076. font-weight: 400;
  1077. color: #363b46;
  1078. }
  1079. .point {
  1080. width: 8px;
  1081. height: 1px;
  1082. background-color: #ffffff;
  1083. position: absolute;
  1084. &.point-left {
  1085. left: 0;
  1086. }
  1087. &.point-right {
  1088. right: 0;
  1089. }
  1090. &.top {
  1091. top: -1px;
  1092. }
  1093. &.bottom {
  1094. bottom: -1px;
  1095. }
  1096. }
  1097. .points {
  1098. width: 1px;
  1099. height: 8px;
  1100. background-color: #ffffff;
  1101. position: absolute;
  1102. &.point-left {
  1103. left: 0;
  1104. }
  1105. &.point-right {
  1106. right: 0;
  1107. }
  1108. &.top {
  1109. top: -1px;
  1110. }
  1111. &.bottom {
  1112. bottom: -1px;
  1113. }
  1114. }
  1115. .table-item {
  1116. display: flex;
  1117. flex-direction: row;
  1118. align-items: center;
  1119. justify-content: space-between;
  1120. width: 100%;
  1121. height: 33px;
  1122. font-size: 12px;
  1123. font-family: Microsoft YaHei;
  1124. font-weight: 400;
  1125. color: #363b46;
  1126. padding: 0 0px;
  1127. .table-value {
  1128. font-family: Arial;
  1129. font-weight: 400;
  1130. margin-right: 25px;
  1131. color: rgb(15, 120, 240);
  1132. }
  1133. }
  1134. </style>