Health0.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  1. <template>
  2. <div class="health-0">
  3. <el-row>
  4. <el-col :span="14">
  5. <el-row>
  6. <el-col :span="24">
  7. <div class="query mg-b-8">
  8. <div class="query-items">
  9. <div class="query-item">
  10. <div class="lable">风场:</div>
  11. <div class="search-input">
  12. <el-select
  13. v-model="value1"
  14. clearable
  15. placeholder="请选择风场"
  16. popper-class="select"
  17. @change="wpselect"
  18. >
  19. <el-option
  20. v-for="item in options"
  21. :key="item.id"
  22. :label="item.name"
  23. :value="item.id"
  24. >
  25. </el-option>
  26. </el-select>
  27. </div>
  28. </div>
  29. <div class="query-item">
  30. <div class="lable">风机:</div>
  31. <div class="search-input">
  32. <el-select
  33. v-model="value2"
  34. clearable
  35. placeholder="请选择风机"
  36. popper-class="select"
  37. @change="wtselect"
  38. >
  39. <el-option
  40. v-for="item in options1"
  41. :key="item.id"
  42. :label="item.name"
  43. :value="item.id"
  44. >
  45. </el-option>
  46. </el-select>
  47. </div>
  48. </div>
  49. </div>
  50. <!-- <div class="query-actions">
  51. <button class="btn" type="button">
  52. <i class="el-icon-back mg-r-8"></i><span>返回</span>
  53. </button>
  54. </div> -->
  55. </div>
  56. </el-col>
  57. </el-row>
  58. <el-row class="mg-t-16">
  59. <el-col :span="24" class="fan-code-box">
  60. <span class="svg-icon svg-icon-white svg-icon-md mg-l-16 mg-r-16">
  61. <SvgIcon svgid="svg-wind-site"></SvgIcon>
  62. </span>
  63. <div class="fan-code">
  64. <div class="fan-code-text font-md green">{{value2}}</div>
  65. <div class="fan-code-label font-md gray-l" style="margin-left:20px">高频:</div>
  66. <div class="fan-code-value font-md green">{{stoptypemap && stoptypemap.top1type}}</div>
  67. <div class="fan-code-label font-md gray-l" style="margin-left:100px">中频:</div>
  68. <div class="fan-code-value font-md green">{{stoptypemap && stoptypemap.top2type}}</div>
  69. <div class="fan-code-label font-md gray-l" style="margin-left:65px">低频:</div>
  70. <div class="fan-code-value font-md green">{{stoptypemap && (stoptypemap.top3type == 'null'?'暂无数据':stoptypemap.top3type)}}</div>
  71. </div>
  72. <!-- <span class="svg-icon svg-icon-white svg-icon-md mg-l-16">
  73. <SvgIcon svgid="svg-wind-site"></SvgIcon>
  74. </span>
  75. <div class="fan-code bg">
  76. <div class="fan-code-label font-md gray-l">风机评分:</div>
  77. </div>
  78. <div class="fan-code">
  79. <div class="fan-code-value nm font-md green">{{stoptypemap && stoptypemap.wtscore}}</div>
  80. </div> -->
  81. <button class="btn mg-l-16" type="button" @click="onClickReport()">
  82. <i class="el-icon-s-order mg-r-8"></i><span>健康报告</span>
  83. </button>
  84. </el-col>
  85. </el-row>
  86. <el-row>
  87. <el-col :span="24" style="text-align: center">
  88. <StandAloneImg
  89. class="sai"
  90. :activeIndex="activeIndex"
  91. @selectSvg="selectSvg"
  92. ></StandAloneImg>
  93. </el-col>
  94. </el-row>
  95. <el-row>
  96. <el-col :span="6">
  97. <img :src="bsxImg" class="bsx" />
  98. <img :src="bsxImg" class="bsx o" />
  99. </el-col>
  100. <el-col :span="6"></el-col>
  101. <el-col :span="6"></el-col>
  102. <el-col :span="6">
  103. <progress-bar title="风机" name="风机健康度" :progress='stoptypemap && stoptypemap.wtscore' :color="stoptypemap &&color('05bb4c')"></progress-bar>
  104. </el-col>
  105. </el-row>
  106. <el-row>
  107. <el-col :span="6" class="mg-t-16">
  108. <progress-bar title="发电机" name="寿命指数" :progress='partmap && partmap.fdj.smsyl' :color="partmap &&color(partmap.fdj.jkzt)"></progress-bar>
  109. </el-col>
  110. <el-col :span="6" class="mg-t-16">
  111. <progress-bar title="齿轮箱" name="寿命指数" :progress='partmap &&partmap.clx.smsyl' :color="partmap &&color(partmap.clx.jkzt)"></progress-bar>
  112. </el-col>
  113. <el-col :span="6" class="mg-t-16">
  114. <progress-bar title="主轴" name="寿命指数" :progress='partmap &&partmap.zz.smsyl' :color="partmap &&color(partmap.zz.jkzt)"></progress-bar>
  115. </el-col>
  116. <el-col :span="6" class="mg-t-16">
  117. <progress-bar title="变桨" name="寿命指数" :progress='partmap &&partmap.bj.smsyl' :color="partmap &&color(partmap.bj.jkzt)"></progress-bar>
  118. </el-col>
  119. </el-row>
  120. <el-row>
  121. <el-col :span="6" class="mg-t-16">
  122. <progress-bar title="偏航" name="寿命指数" :progress='partmap &&partmap.ph.smsyl' :color="partmap &&color(partmap.ph.jkzt)"></progress-bar>
  123. </el-col>
  124. <el-col :span="6" class="mg-t-16">
  125. <progress-bar title="机舱" name="寿命指数" :progress='partmap &&partmap.jc.smsyl' :color="partmap &&color(partmap.jc.jkzt)"></progress-bar>
  126. </el-col>
  127. <el-col :span="6" class="mg-t-16">
  128. <progress-bar title="变频器" name="寿命指数" :progress='partmap &&partmap.bpq.smsyl' :color="partmap &&color(partmap.bpq.jkzt)"></progress-bar>
  129. </el-col>
  130. <el-col :span="6" class="mg-t-16">
  131. <progress-bar title="主控" name="寿命指数" :progress='partmap &&partmap.zk.smsyl' :color="partmap &&color(partmap.zk.jkzt)"></progress-bar>
  132. </el-col>
  133. </el-row>
  134. </el-col>
  135. <el-col :span="10" class="health-0-right">
  136. <el-row>
  137. <el-col :span="24">
  138. <div class="table">
  139. <Table :data="gztableData" />
  140. </div>
  141. </el-col>
  142. </el-row>
  143. <el-row class="mg-t-16">
  144. <el-col :span="24">
  145. <div class="table">
  146. <Table :data="yjtableData" />
  147. </div>
  148. </el-col>
  149. </el-row>
  150. <el-row class="mg-t-16">
  151. <el-col :span="24">
  152. <div class="table">
  153. <Table :data="yxtableData" />
  154. </div>
  155. </el-col>
  156. </el-row>
  157. <el-row class="mg-t-16">
  158. <el-col :span="24">
  159. <div class="table">
  160. <Table :data="tableData2" />
  161. </div>
  162. </el-col>
  163. </el-row>
  164. <el-row class="mg-t-16">
  165. <el-col :span="24">
  166. <div class="card-tool">
  167. <div class="card-tool-item font-sm gray-l">故障描述</div>
  168. <div class="card-tool-item font-sm gray-l">
  169. 开始时间<i class="el-icon-d-caret"></i>
  170. </div>
  171. </div>
  172. </el-col>
  173. </el-row>
  174. <el-row class="mg-t-16">
  175. <el-col :span="24">
  176. <div class="table">
  177. <Table :data="tableData11" />
  178. </div>
  179. </el-col>
  180. </el-row>
  181. <el-row class="mg-t-16">
  182. <el-col :span="24">
  183. <div class="table">
  184. <Table :data="tableData3" />
  185. </div>
  186. </el-col>
  187. </el-row>
  188. <el-row class="mg-t-16">
  189. <el-col :span="24">
  190. <div class="card-tool font-sm gray-l pd">评判扣分</div>
  191. </el-col>
  192. </el-row>
  193. <el-row class="mg-t-16">
  194. <el-col :span="24">
  195. <div class="table">
  196. <Table :data="tableData4" />
  197. </div>
  198. </el-col>
  199. </el-row>
  200. </el-col>
  201. </el-row>
  202. <health-report :show="reportshow" :params="reportparams" ref="eport" @closed="closed"/>
  203. </div>
  204. </template>
  205. <script>
  206. import SvgIcon from "@com/coms/icon/svg-icon.vue";
  207. import StandAloneImg from "@/views/WindSite/pages/Info/StandAloneImg.vue";
  208. import ProgressBar from "@com/coms/progress-bar/progress-bar.vue";
  209. import Table from "../../components/coms/table/table.vue";
  210. import HealthReport from "../../components/other/healthReport/index.vue"
  211. export default {
  212. setup() {},
  213. components: {
  214. SvgIcon,
  215. StandAloneImg,
  216. ProgressBar,
  217. Table,
  218. HealthReport
  219. },
  220. data() {
  221. return {
  222. reportshow: false, //是否显示健康报告
  223. reportparams: undefined,
  224. bsxImg: require("@assets/png/bsx.png"),
  225. options: [],
  226. wtid:'',
  227. wpid:'',
  228. options1:[],
  229. value1: [],
  230. value2: [],
  231. colorval:{
  232. '1.0':'green',
  233. '2.0':'purple',
  234. '3.0':'orange',
  235. '4.0':'red',
  236. },
  237. activeIndex: -1,
  238. gztableData: {
  239. column: [
  240. {
  241. name: "",
  242. field: "index",
  243. width: "30px",
  244. is_num: false,
  245. is_light: false,
  246. },
  247. {
  248. name: "时间",
  249. field: "name",
  250. width: "130px",
  251. is_num: false,
  252. is_light: false,
  253. },
  254. {
  255. name: "故障1名称",
  256. field: "top1gzname",
  257. is_num: false,
  258. is_light: false,
  259. },
  260. {
  261. name: "故障1数量",
  262. field: "top1gznum",
  263. is_num: false,
  264. is_light: false,
  265. },
  266. {
  267. name: "故障2名称",
  268. field: "top2gzname",
  269. is_num: false,
  270. is_light: false,
  271. },
  272. {
  273. name: "故障2数量",
  274. field: "top2gznum",
  275. is_num: false,
  276. is_light: false,
  277. },
  278. {
  279. name: "故障3名称",
  280. field: "top3gzname",
  281. is_num: false,
  282. is_light: false,
  283. },
  284. {
  285. name: "故障3数量",
  286. field: "top3gznum",
  287. is_num: false,
  288. is_light: false,
  289. },
  290. ],
  291. data: [
  292. ],
  293. },
  294. yjtableData: {
  295. column: [
  296. {
  297. name: "",
  298. field: "index",
  299. width: "30px",
  300. is_num: false,
  301. is_light: false,
  302. },
  303. {
  304. name: "时间",
  305. field: "name",
  306. width: "130px",
  307. is_num: false,
  308. is_light: false,
  309. },
  310. {
  311. name: "预警1名称",
  312. field: "top1gzname",
  313. is_num: false,
  314. is_light: false,
  315. },
  316. {
  317. name: "预警1数量",
  318. field: "top1gznum",
  319. is_num: false,
  320. is_light: false,
  321. },
  322. {
  323. name: "预警2名称",
  324. field: "top2gzname",
  325. is_num: false,
  326. is_light: false,
  327. },
  328. {
  329. name: "预警2数量",
  330. field: "top2gznum",
  331. is_num: false,
  332. is_light: false,
  333. },
  334. {
  335. name: "预警3名称",
  336. field: "top3gzname",
  337. is_num: false,
  338. is_light: false,
  339. },
  340. {
  341. name: "故障3数量",
  342. field: "top3gznum",
  343. is_num: false,
  344. is_light: false,
  345. },
  346. ],
  347. data: [
  348. ],
  349. },
  350. yxtableData: {
  351. column: [
  352. {
  353. name: "",
  354. field: "index",
  355. width: "30px",
  356. is_num: false,
  357. is_light: false,
  358. },
  359. {
  360. name: "时间",
  361. field: "name",
  362. width: "130px",
  363. is_num: false,
  364. is_light: false,
  365. },
  366. {
  367. name: "发电机",
  368. field: "numfdj",
  369. is_num: false,
  370. is_light: false,
  371. },
  372. {
  373. name: "齿轮箱",
  374. field: "numclx",
  375. is_num: false,
  376. is_light: false,
  377. },
  378. {
  379. name: "主轴",
  380. field: "numzz",
  381. is_num: false,
  382. is_light: false,
  383. },
  384. {
  385. name: "变桨",
  386. field: "numbj",
  387. is_num: false,
  388. is_light: false,
  389. },
  390. {
  391. name: "偏航",
  392. field: "numph",
  393. is_num: false,
  394. is_light: false,
  395. },
  396. {
  397. name: "机舱",
  398. field: "numjc",
  399. is_num: false,
  400. is_light: false,
  401. },
  402. {
  403. name: "变频器",
  404. field: "numbpq",
  405. is_num: false,
  406. is_light: false,
  407. },
  408. {
  409. name: "主控",
  410. field: "numzk",
  411. is_num: false,
  412. is_light: false,
  413. },
  414. ],
  415. data: [
  416. {
  417. index: 1,
  418. time: "1天故障数据分析",
  419. fdj: "0.00",
  420. clx: "9.00",
  421. zz: "0.00",
  422. bj: "0.00",
  423. ph: "0.00",
  424. jc: "0.00",
  425. bpq: "0.00",
  426. zk: "0.00",
  427. is_light: false,
  428. },
  429. {
  430. index: 2,
  431. time: "3天故障数据分析",
  432. fdj: "0.00",
  433. clx: "74.00",
  434. zz: "0.00",
  435. bj: "0.00",
  436. ph: "0.00",
  437. jc: "0.00",
  438. bpq: "0.00",
  439. zk: "0.00",
  440. is_light: false,
  441. },
  442. ],
  443. },
  444. tableData2: {
  445. column: [
  446. {
  447. name: "",
  448. field: "index",
  449. width: "30px",
  450. is_num: false,
  451. is_light: false,
  452. },
  453. {
  454. name: "时间",
  455. field: "name",
  456. is_num: false,
  457. is_light: false,
  458. },
  459. {
  460. name: "评估等级",
  461. field: "level",
  462. is_num: false,
  463. is_light: false,
  464. },
  465. {
  466. name: "得分",
  467. field: "score",
  468. is_num: false,
  469. is_light: false,
  470. },
  471. ],
  472. data: [
  473. {
  474. index: 1,
  475. time: "1天故障数据分析",
  476. level: "C",
  477. score: "0.00",
  478. is_light: false,
  479. },
  480. ],
  481. },
  482. tableData11: {
  483. column: [
  484. {
  485. name: "",
  486. field: "index",
  487. width: "30px",
  488. is_num: false,
  489. is_light: false,
  490. },
  491. {
  492. name: "温度范围",
  493. field: "name",
  494. width: "130px",
  495. is_num: false,
  496. is_light: false,
  497. },
  498. {
  499. name: "发电机",
  500. field: "numfdj",
  501. is_num: false,
  502. is_light: false,
  503. },
  504. {
  505. name: "齿轮箱",
  506. field: "numclx",
  507. is_num: false,
  508. is_light: false,
  509. },
  510. {
  511. name: "主轴",
  512. field: "numzz",
  513. is_num: false,
  514. is_light: false,
  515. },
  516. {
  517. name: "变桨",
  518. field: "numbj",
  519. is_num: false,
  520. is_light: false,
  521. },
  522. {
  523. name: "偏航",
  524. field: "numph",
  525. is_num: false,
  526. is_light: false,
  527. },
  528. {
  529. name: "机舱",
  530. field: "numjc",
  531. is_num: false,
  532. is_light: false,
  533. },
  534. {
  535. name: "变频器",
  536. field: "numbpq",
  537. is_num: false,
  538. is_light: false,
  539. },
  540. {
  541. name: "主控",
  542. field: "numzk",
  543. is_num: false,
  544. is_light: false,
  545. },
  546. ],
  547. data: [
  548. {
  549. index: 1,
  550. time: "1天故障数据分析",
  551. fdj: "0.00",
  552. clx: "9.00",
  553. zz: "0.00",
  554. bj: "0.00",
  555. ph: "0.00",
  556. jc: "0.00",
  557. bpq: "0.00",
  558. zk: "0.00",
  559. is_light: false,
  560. },
  561. {
  562. index: 2,
  563. time: "3天故障数据分析",
  564. fdj: "0.00",
  565. clx: "74.00",
  566. zz: "0.00",
  567. bj: "0.00",
  568. ph: "0.00",
  569. jc: "0.00",
  570. bpq: "0.00",
  571. zk: "0.00",
  572. is_light: false,
  573. },
  574. {
  575. index: 3,
  576. time: "1天故障数据分析",
  577. fdj: "0.00",
  578. clx: "9.00",
  579. zz: "0.00",
  580. bj: "0.00",
  581. ph: "0.00",
  582. jc: "0.00",
  583. bpq: "0.00",
  584. zk: "0.00",
  585. is_light: false,
  586. },
  587. {
  588. index: 4,
  589. time: "3天故障数据分析",
  590. fdj: "0.00",
  591. clx: "74.00",
  592. zz: "0.00",
  593. bj: "0.00",
  594. ph: "0.00",
  595. jc: "0.00",
  596. bpq: "0.00",
  597. zk: "0.00",
  598. is_light: false,
  599. },
  600. ],
  601. },
  602. tableData3: {
  603. column: [
  604. {
  605. name: "",
  606. field: "index",
  607. width: "30px",
  608. is_num: false,
  609. is_light: false,
  610. },
  611. {
  612. name: "3-5米曲线偏差率",
  613. field: "qxpc1",
  614. is_num: false,
  615. is_light: false,
  616. },
  617. {
  618. name: "5-11米曲线偏差率",
  619. field: "qxpc2",
  620. is_num: false,
  621. is_light: false,
  622. },
  623. {
  624. name: "11-25米曲线偏差率",
  625. field: "qxpc3",
  626. is_num: false,
  627. is_light: false,
  628. },
  629. ],
  630. data: [
  631. {
  632. index: 1,
  633. v1: "1.50",
  634. v2: "1.69",
  635. v3: "2.44",
  636. is_light: false,
  637. },
  638. ],
  639. },
  640. tableData4: {
  641. column: [
  642. {
  643. name: "",
  644. field: "index",
  645. width: "30px",
  646. is_num: false,
  647. is_light: false,
  648. },
  649. {
  650. name: "判断描述",
  651. field: "name",
  652. is_num: false,
  653. is_light: false,
  654. },
  655. {
  656. name: "是否扣分",
  657. field: "value",
  658. is_num: false,
  659. is_light: false,
  660. },
  661. ],
  662. data: [
  663. {
  664. index: 1,
  665. v1: "运行状态为故障",
  666. v2: "未扣分",
  667. is_light: false,
  668. },
  669. {
  670. index: 2,
  671. v1: "风机部件温度超出合理值范围",
  672. v2: "未扣分",
  673. is_light: false,
  674. },
  675. {
  676. index: 3,
  677. v1: "性能损失率连续三天大于基准值",
  678. v2: "未扣分",
  679. is_light: false,
  680. },
  681. {
  682. index: 4,
  683. v1: "曲线偏差率连续三天大于基准值",
  684. v2: "未扣分",
  685. is_light: false,
  686. },
  687. ],
  688. },
  689. partmap:null,
  690. stoptypemap:null,
  691. };
  692. },
  693. created() {
  694. this.wtid = this.$route.params.wtId;
  695. this.wpid = this.$route.params.wpId;
  696. this.search()
  697. },
  698. methods: {
  699. // 查看健康报告
  700. onClickReport(){
  701. // console.log(this.value2,new Date(new Date()).formatDate("yyyy-MM-dd"))
  702. this.reportshow = true
  703. // this.reportparams = {wtId: this.value2, recorddate: new Date(new Date()).formatDate("yyyy-MM-dd")}
  704. this.$refs.eport.getReport(this.value2,new Date(new Date()).formatDate("yyyy-MM-dd"));
  705. },
  706. // 关闭健康报告
  707. closed(){
  708. this.reportshow = false
  709. },
  710. color(val){
  711. return this.colorval[val]
  712. },
  713. wpselect(){
  714. console.warn('wpselect');
  715. this.searchWindturbine('select')
  716. },
  717. wtselect(){
  718. console.warn('wtselect');
  719. this.searchWtHealthInfo()
  720. },
  721. async search() {
  722. const { data } = await this.API.requestData({
  723. subUrl: "powercompare/windfarmAjax",
  724. });
  725. this.options = data.data;
  726. this.value1 = this.wpid;
  727. this.searchWindturbine()
  728. },
  729. async searchWindturbine(statu) {
  730. const { data } = await this.API.requestData({
  731. subUrl: "/powercompare/windturbineAjax",
  732. data:{
  733. wpId : this.value1
  734. }
  735. });
  736. this.options1 = data.data;
  737. this.value2 = statu =='select' ?data.data[0].id : this.wtid;
  738. console.warn(data);
  739. this.searchWtHealthInfo()
  740. },
  741. async searchWtHealthInfo() {
  742. // const { data } = await this.API.requestData({
  743. // subUrl: "/healthsub//findWtHealthInfo",
  744. // showLoading: true,
  745. // method:'POST',
  746. // timeout: 30000, // 请求超时时间,默认 3s ,可缺省
  747. // data:{
  748. // wtId : this.value2
  749. // }
  750. // });
  751. // console.warn(data);
  752. // this.gztableData.data = data.data.gzls
  753. // this.yjtableData.data = data.data.yjls
  754. // this.yxtableData.data = data.data.bjyxls
  755. // this.tableData2.data = data.data.djpgls
  756. // this.tableData11.data = data.data.wdls
  757. // this.tableData3.data = data.data.qxpcls
  758. // this.tableData4.data = data.data.jkls
  759. // this.partmap = data.data.partmap
  760. // this.stoptypemap = data.data.stoptypemap
  761. this.search1();
  762. this.search2();
  763. this.search3();
  764. },
  765. search1(){
  766. const that = this;
  767. this.API.requestData({
  768. subUrl: "healthsub/findWtHealthInfo1",
  769. method:'POST',
  770. timeout: 30000,
  771. data:{
  772. wtId : this.value2
  773. },
  774. success(res) {
  775. that.yjtableData.data = res.data.yjls;
  776. that.partmap = res.data.partmap;
  777. that.stoptypemap = res.data.stoptypemap;
  778. that.gztableData.data = res.data.gzls;
  779. },
  780. });
  781. },
  782. search2(){
  783. const that = this;
  784. this.API.requestData({
  785. subUrl: "healthsub/findWtHealthInfo2",
  786. method:'POST',
  787. timeout: 30000,
  788. data:{
  789. wtId : this.value2
  790. },
  791. success(res) {
  792. that.yxtableData.data = res.data.bjyxls;
  793. that.tableData2.data = res.data.djpgls;
  794. },
  795. });
  796. },
  797. search3(){
  798. const that = this;
  799. this.API.requestData({
  800. subUrl: "healthsub/findWtHealthInfo3",
  801. method:'POST',
  802. timeout: 30000,
  803. data:{
  804. wtId : this.value2
  805. },
  806. success(res) {
  807. that.tableData3.data = res.data.qxpcls;
  808. that.tableData11.data = res.data.wdls;
  809. that.tableData4.data = res.data.jkls;
  810. },
  811. });
  812. },
  813. selectSvg: function (index) {
  814. this.activeIndex = index;
  815. },
  816. },
  817. };
  818. </script>
  819. <style lang="less">
  820. .health-0 {
  821. width: 100%;
  822. height: calc(100vh - 90px);
  823. .fan-code-box {
  824. display: flex;
  825. align-items: center;
  826. .fan-code {
  827. width:76%;
  828. display: flex;
  829. align-items: center;
  830. background: #53626833;
  831. padding: 7px 20px;
  832. &.bg {
  833. background: transparent;
  834. padding: 7px 0;
  835. .fan-code-label {
  836. margin-left: 8px;
  837. }
  838. }
  839. .fan-code-text {
  840. padding-right: 20px;
  841. border-right: 1px solid #536268;
  842. // overflow: hidden;
  843. // text-overflow:ellipsis;
  844. white-space: nowrap;
  845. }
  846. .fan-code-label {
  847. // margin-left: 20px;
  848. // min-width: 50px;
  849. min-width:41px;
  850. }
  851. .fan-code-value {
  852. // margin-left: 20px;
  853. // overflow: hidden;
  854. // text-overflow:ellipsis;
  855. white-space: nowrap;
  856. max-width: 112px;
  857. &.nm {
  858. margin-left: 0;
  859. }
  860. }
  861. }
  862. }
  863. .sai {
  864. height: 49.074vh;
  865. }
  866. .bsx {
  867. height: 11.481vh;
  868. margin-right: 1.852vh;
  869. &.o {
  870. opacity: 0.5;
  871. }
  872. }
  873. .health-0-right {
  874. margin-top: 56px;
  875. height: calc(100vh - 150px);
  876. overflow-y: auto;
  877. .table {
  878. border: 1px solid #6067697d;
  879. .com-table thead tr th,
  880. .com-table tr td {
  881. padding: 0.463vh 0;
  882. }
  883. }
  884. .card-tool {
  885. width: 100%;
  886. background: #53626866;
  887. padding: 0.463vh 0;
  888. display: flex;
  889. &.pd {
  890. padding-left: 2.778vh;
  891. }
  892. .card-tool-item {
  893. flex: 1;
  894. text-align: center;
  895. cursor: pointer;
  896. &:last-child {
  897. border-left: 1px solid #536268;
  898. }
  899. &:hover {
  900. color: @green;
  901. }
  902. }
  903. }
  904. }
  905. }
  906. </style>