index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035
  1. <template>
  2. <div class="parcel-box">
  3. <div class="form-wrapper">
  4. <el-select
  5. size="mini"
  6. :disabled="displayDetail"
  7. v-model="company"
  8. placeholder="请选择"
  9. @change="handleCompanyChange(company)"
  10. >
  11. <el-option
  12. v-for="item in companyOptions"
  13. :key="item.id"
  14. :label="item.aname"
  15. :value="item.id"
  16. >
  17. </el-option>
  18. </el-select>
  19. <div class="tabCut" v-if="$store.state.showGf">
  20. <div
  21. @click="tabClick(val.id)"
  22. :class="[
  23. tabIndex === val.id ? 'active' : '',
  24. displayDetail ? 'disabled' : '',
  25. ]"
  26. v-for="val in tabOptions"
  27. :key="val.id"
  28. >
  29. <span>{{ val.name }}</span>
  30. </div>
  31. </div>
  32. <!-- <div class="station">
  33. 场站:
  34. <el-select
  35. size="mini"
  36. :disabled="displayDetail"
  37. v-model="stationObj"
  38. multiple
  39. collapse-tags
  40. placeholder="请选择"
  41. @change="handleStationChange(stationObj)"
  42. clearable
  43. >
  44. <el-option
  45. v-for="item in stationList"
  46. :key="item.id"
  47. :label="item.name"
  48. :value="item.id"
  49. >
  50. </el-option>
  51. </el-select>
  52. </div> -->
  53. <div class="station">
  54. 项目:
  55. <el-select
  56. size="mini"
  57. :disabled="displayDetail"
  58. v-model="projectObj"
  59. multiple
  60. collapse-tags
  61. placeholder="请选择"
  62. @change="handleProjectChange(projectObj)"
  63. clearable
  64. >
  65. <el-option
  66. v-for="item in projectList"
  67. :key="item.id"
  68. :label="item.name"
  69. :value="item.id"
  70. >
  71. </el-option>
  72. </el-select>
  73. </div>
  74. <div class="station">
  75. 线路:
  76. <el-select
  77. size="mini"
  78. :disabled="displayDetail"
  79. v-model="lineObj"
  80. multiple
  81. collapse-tags
  82. placeholder="请选择"
  83. clearable
  84. @change="gerXldb()"
  85. >
  86. <el-option
  87. v-for="item in lineList"
  88. :key="item.id"
  89. :label="item.name"
  90. :value="item.id"
  91. >
  92. </el-option>
  93. </el-select>
  94. </div>
  95. <div class="station">
  96. 日期
  97. <div class="search-input">
  98. <el-date-picker
  99. v-model="dateTime"
  100. size="mini"
  101. type="datetimerange"
  102. range-separator="-"
  103. format="YYYY-MM-DD HH:mm:ss"
  104. value-format="YYYY-MM-DD HH:mm:ss"
  105. start-placeholder="开始"
  106. end-placeholder="结束"
  107. popper-class="date-select"
  108. >
  109. </el-date-picker>
  110. </div>
  111. </div>
  112. <div class="but">
  113. <el-button
  114. round
  115. size="mini"
  116. :disabled="displayDetail"
  117. class="buttons"
  118. @click="gerXldb"
  119. >搜 索</el-button
  120. >
  121. <el-button
  122. round
  123. size="mini"
  124. class="buttons"
  125. @click="dbfx"
  126. :disabled="
  127. chooseList.length <= 5 && chooseList.length > 1 ? false : true
  128. "
  129. >对标分析</el-button
  130. >
  131. <el-button
  132. round
  133. size="mini"
  134. class="buttons"
  135. @click="goBack"
  136. v-if="displayDetail"
  137. >返回</el-button
  138. >
  139. <!-- <el-button round size="mini" class="buttons">导出</el-button> -->
  140. </div>
  141. </div>
  142. <div class="bodys" v-if="!displayDetail">
  143. <div class="line">
  144. <div class="leftContent"><span>线路对标</span></div>
  145. </div>
  146. <div class="economicTable">
  147. <el-table
  148. :data="tableData"
  149. ref="multipleTable"
  150. size="mini"
  151. height="calc(100% - 40px)"
  152. :cell-style="{ padding: '4px' }"
  153. :row-style="{ height: '0' }"
  154. stripe
  155. @selection-change="handleCurrentChange"
  156. >
  157. <el-table-column type="selection" width="56" align="center">
  158. </el-table-column>
  159. <el-table-column
  160. show-overflow-tooltip
  161. align="center"
  162. prop="name"
  163. label="名称"
  164. sortable
  165. >
  166. <template v-slot="scope">
  167. <span
  168. @click="goDetail(scope.row)"
  169. style="cursor: pointer; color: #67b9ff"
  170. >{{ scope.row.name }}</span
  171. >
  172. </template>
  173. </el-table-column>
  174. <el-table-column
  175. header-align="center"
  176. align="center"
  177. v-for="item in tabIndex == -1 ? tableHeader : tableHeaderG"
  178. :key="item.code"
  179. :prop="item.code"
  180. :label="item.name"
  181. :width="item.name.length == 4 ? 55 : 67"
  182. show-overflow-tooltip
  183. sortable
  184. >
  185. <template #header="scope">
  186. <div v-if="scope.column.label.indexOf('(') > 0">
  187. <div style="font-size: 14px">
  188. {{
  189. scope.column.label.slice(0, scope.column.label.indexOf("("))
  190. }}
  191. </div>
  192. <div style="font-size: 12px">
  193. {{
  194. scope.column.label.slice(scope.column.label.indexOf("("))
  195. }}
  196. </div>
  197. </div>
  198. <div v-else>{{ scope.column.label }}</div>
  199. </template>
  200. </el-table-column>
  201. </el-table>
  202. <div class="pagination-class">
  203. <el-pagination
  204. @current-change="handlePageChange"
  205. :current-page="page.currentPage"
  206. :page-size="page.pagesize"
  207. layout="total, prev, pager, next, jumper"
  208. :total="page.total"
  209. >
  210. </el-pagination>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="echarts" v-if="!displayDetail">
  215. <div class="pie-echarts">
  216. <div class="chart-name">
  217. <div class="point point-left bottom"></div>
  218. <div class="point point-right bottom"></div>
  219. 损失电量分析
  220. </div>
  221. <PieChart
  222. :lossPower="lossPower"
  223. width="100%"
  224. height="calc(100% - 39px)"
  225. :showLable="false"
  226. ></PieChart>
  227. </div>
  228. <div class="bar-echarts">
  229. <div class="chart-name">
  230. <div class="point point-left bottom"></div>
  231. <div class="point point-right bottom"></div>
  232. 五项损失
  233. </div>
  234. <BarCharts
  235. :list="barList"
  236. width="100%"
  237. height="calc(100% - 39px)"
  238. :showLegend="true"
  239. :xdate="false"
  240. :colorIndex="true"
  241. ></BarCharts>
  242. </div>
  243. </div>
  244. <div
  245. v-if="displayDetail"
  246. style="height: calc(100% - 43px - 35px); padding-bottom: 10px"
  247. >
  248. <el-table
  249. :data="detailTable"
  250. ref="multipleTable"
  251. size="mini"
  252. height="100%"
  253. :cell-style="{ padding: '0px' }"
  254. :row-style="{ height: '0' }"
  255. stripe
  256. @selection-change="handleCurrentChange"
  257. >
  258. <el-table-column type="selection" width="60" align="center">
  259. </el-table-column>
  260. <el-table-column
  261. show-overflow-tooltip
  262. align="center"
  263. prop="name"
  264. label="风机名称"
  265. sortable
  266. >
  267. </el-table-column>
  268. <el-table-column
  269. v-for="item in tabIndex == -1
  270. ? tableHeaderDetail
  271. : tableHeaderGDetail"
  272. :key="item.code"
  273. :prop="item.code"
  274. :label="item.name"
  275. :width="item.name.length == 4 ? 58 : 88"
  276. show-overflow-tooltip
  277. header-align="center"
  278. :align="item.align ? item.align : 'center'"
  279. sortable
  280. />
  281. </el-table>
  282. <div class="pagination-class">
  283. <el-pagination
  284. @current-change="handlePageDChange"
  285. :current-page="pageD.currentPage"
  286. :page-size="pageD.pagesize"
  287. @size-change="handleSizeDChange"
  288. :page-sizes="[23, 50, 100, 500]"
  289. layout="total, sizes, prev, pager, next, jumper"
  290. :total="pageD.total"
  291. >
  292. </el-pagination>
  293. </div>
  294. </div>
  295. <el-dialog
  296. class="dialogs"
  297. width="90%"
  298. top="40px"
  299. v-model="dialogVisible"
  300. :show-close="true"
  301. >
  302. <template #title>
  303. <div class="dialog-title">
  304. <div class="title">对标排名分析</div>
  305. </div>
  306. </template>
  307. <div class="dialog-body">
  308. <!-- <img class="dialog-img" src="@assets/imgs/dialog.png" /> -->
  309. <dayinfo
  310. :radarValue="radarValue"
  311. :title="[windNum, windNum2, windNum3, windNum4, windNum5]"
  312. :windNum="windNum"
  313. :windNum2="windNum2"
  314. :windNum3="windNum3"
  315. :windNum4="windNum4"
  316. :windNum5="windNum5"
  317. :tabs="tabs"
  318. :analyisDialog="analyisDialog"
  319. />
  320. </div>
  321. </el-dialog>
  322. </div>
  323. </template>
  324. <script>
  325. import dayjs from "dayjs";
  326. import {
  327. tableHeader,
  328. tableHeaderG,
  329. tableHeaderDetail,
  330. tableHeaderGDetail,
  331. } from "@/utills//constant.js";
  332. import { companys } from "@/api/curveAnalyse";
  333. import {
  334. getStation,
  335. getProject,
  336. getLine,
  337. xldb,
  338. details,
  339. } from "@/api/performance";
  340. import PieChart from "../../homePage/components/pieChart.vue";
  341. import BarCharts from "../../homePage/components/barCharts.vue";
  342. import dayinfo from "../compontent/dayinfo.vue";
  343. import dataJson from "./dataJson.json";
  344. export default {
  345. name: "wiringBenchmarking", //线路对标
  346. components: {
  347. PieChart,
  348. BarCharts,
  349. dayinfo,
  350. },
  351. data() {
  352. return {
  353. tableHeader,
  354. tableHeaderG,
  355. tableHeaderDetail,
  356. tableHeaderGDetail,
  357. page: {
  358. pagesize: 11,
  359. currentPage: 1,
  360. total: 0,
  361. },
  362. pageD: {
  363. pagesize: 23,
  364. currentPage: 1,
  365. total: 0,
  366. },
  367. company: "",
  368. companyOptions: [],
  369. stationObj: ["NX_FGS_HA_FDC_STA"],
  370. stationList: [],
  371. projectObj: [],
  372. projectList: [],
  373. lineObj: [],
  374. lineList: [],
  375. dateTime:[],
  376. tabIndex: -1,
  377. tabOptions: [
  378. { id: -1, name: "风电" },
  379. { id: -2, name: "光伏" },
  380. ],
  381. tableData: [],
  382. detailTable: [],
  383. chooseList: [],
  384. lossPower: [],
  385. barList: [],
  386. displayDetail: false,
  387. dialogVisible: false,
  388. radarValue: [],
  389. windNum: "",
  390. windNum2: "",
  391. windNum3: "",
  392. windNum4: "",
  393. windNum5: "",
  394. tabs: [],
  395. analyisDialog: [],
  396. screenHeight: window.innerHeight,
  397. echartsHeight: "53vh",
  398. detailRow: {},
  399. };
  400. },
  401. created() {
  402. this.dateTime = [
  403. `${dayjs().format("YYYY-MM-DD")} 00:00:00`,
  404. dayjs().format("YYYY-MM-DD HH:mm:ss"),
  405. ];
  406. this.initialization();
  407. },
  408. mounted() {
  409. if (this.screenHeight > 1100) {
  410. this.echartsHeight = "58vh";
  411. } else {
  412. this.echartsHeight = "53vh";
  413. }
  414. window.onresize = () => {
  415. return (() => {
  416. window.screenHeight = window.innerHeight;
  417. this.screenHeight = window.screenHeight;
  418. })();
  419. };
  420. },
  421. methods: {
  422. handlePageChange(val) {
  423. this.page.currentPage = val;
  424. this.gerXldb();
  425. },
  426. handlePageDChange(val) {
  427. this.pageD.currentPage = val;
  428. this.goDetail();
  429. },
  430. handleSizeDChange(val) {
  431. this.pageD.currentPage = 1;
  432. this.pageD.pagesize = val;
  433. this.goDetail();
  434. },
  435. tabClick(val) {
  436. this.tabIndex = val;
  437. this.stationList = [];
  438. this.stationObj = [];
  439. this.projectObj = [];
  440. this.lineObj = [];
  441. if (val == -2) {
  442. this.company = "SXJ_KGDL_GFFD_ZGS";
  443. } else {
  444. this.company = this.companyOptions[0].id;
  445. }
  446. this.getStation(this.company);
  447. this.gerXldb();
  448. },
  449. initialization() {
  450. // this.dataChange(dataJson.data)
  451. companys().then(({ data: res }) => {
  452. if (res.data) {
  453. this.company = res.data[0].id;
  454. this.companyOptions = res.data;
  455. this.getStation(res.data[0].id);
  456. }
  457. });
  458. },
  459. getStation(companyids) {
  460. getStation({
  461. companyids: companyids,
  462. type: this.tabIndex,
  463. }).then(({ data: res }) => {
  464. if (res.data.length) {
  465. this.stationList = res.data;
  466. this.gerXldb();
  467. this.getProject(this.stationObj.join(","));
  468. }
  469. });
  470. },
  471. getProject(wpids) {
  472. getProject({
  473. wpids: wpids,
  474. }).then(({ data: res }) => {
  475. if (res.data.length) {
  476. this.projectList = res.data;
  477. this.getLine(res.data[0].id);
  478. }
  479. });
  480. },
  481. getLine(pjids) {
  482. getLine({
  483. pjids: pjids,
  484. }).then(({ data: res }) => {
  485. if (res.data.length) {
  486. this.lineList = res.data;
  487. this.gerXldb();
  488. }
  489. });
  490. },
  491. gerXldb() {
  492. xldb({
  493. companys: this.company,
  494. type: this.tabIndex,
  495. beginDate: this.dateTime[0],
  496. endDate: this.dateTime[1],
  497. wpids: this.stationObj.join(","),
  498. projectids: this.projectObj.join(","),
  499. lineids: this.lineObj.join(","),
  500. pageSize: this.page.pagesize,
  501. pageNum: this.page.currentPage,
  502. target: "",
  503. sort: "",
  504. }).then(({ data: res }) => {
  505. this.dataChange(res);
  506. });
  507. },
  508. dataChange(res) {
  509. if (res.data) {
  510. let barList = [
  511. {
  512. name: "故障损失电量",
  513. children: [],
  514. date: [],
  515. },
  516. {
  517. name: "检修损失电量",
  518. children: [],
  519. },
  520. {
  521. name: "性能损失电量",
  522. children: [],
  523. },
  524. {
  525. name: "限电损失电量",
  526. children: [],
  527. },
  528. {
  529. name: "受累损失电量",
  530. children: [],
  531. },
  532. ];
  533. this.tableData = res.data.resultList;
  534. this.page.total = res.data.total;
  535. let lossPower = [];
  536. res.data.resultList.forEach((item) => {
  537. let obj = {
  538. name: item.name,
  539. value: item.zssdl,
  540. };
  541. lossPower.push(obj);
  542. barList[0].date.push(item.name);
  543. barList[0].children.push(item.gzssdl);
  544. barList[1].children.push(item.jxssdl);
  545. barList[2].children.push(item.xnssdl);
  546. barList[3].children.push(item.xdssdl);
  547. barList[4].children.push(item.slssdl);
  548. });
  549. this.lossPower = lossPower;
  550. this.barList = barList;
  551. }
  552. },
  553. handleCompanyChange(val) {
  554. this.company = val;
  555. // this.lineObj = [];
  556. this.getStation(val);
  557. this.gerXldb();
  558. },
  559. handleStationChange(val) {
  560. this.gerXldb();
  561. // this.lineObj = [];
  562. this.getProject(val);
  563. },
  564. handleProjectChange(val) {
  565. this.gerXldb();
  566. // this.lineObj = [];
  567. this.getLine(val);
  568. },
  569. handleCurrentChange(val) {
  570. if (val.length > 5) {
  571. let del_row = val.shift();
  572. this.$refs.multipleTable.toggleRowSelection(del_row, false);
  573. }
  574. let arr = [];
  575. val.forEach((item, index) => {
  576. if (index < 5) {
  577. arr.push(item);
  578. }
  579. });
  580. this.chooseList = arr;
  581. },
  582. goDetail(row) {
  583. if (!this.displayDetail) {
  584. this.displayDetail = true;
  585. this.detailRow = row;
  586. }
  587. details({
  588. id: this.detailRow.id,
  589. beginDate: this.dateTime[0],
  590. endDate: this.dateTime[1],
  591. pageSize: this.pageD.pagesize,
  592. pageNum: this.pageD.currentPage,
  593. target: "",
  594. sort: "",
  595. }).then(({ data: res }) => {
  596. if (res.data) {
  597. this.detailTable = res.data.resultList;
  598. this.pageD.total = res.data.total;
  599. }
  600. });
  601. },
  602. goBack() {
  603. this.displayDetail = false;
  604. },
  605. dbfx() {
  606. if (this.chooseList.length <= 5) {
  607. this.dialogVisible = true;
  608. this.AjaxDbfx();
  609. }
  610. },
  611. AjaxDbfx() {
  612. var data = this.chooseList;
  613. this.windNum = data[0]?.date || data[0]?.name;
  614. this.windNum2 = data[1]?.date || data[1]?.name;
  615. this.windNum3 = data[2]?.date || data[2]?.name;
  616. this.windNum4 = data[3]?.date || data[3]?.name;
  617. this.windNum5 = data[4]?.date || data[4]?.name;
  618. let tabs = [
  619. {
  620. name: "发电量(万kWh)",
  621. code: "fdl",
  622. },
  623. {
  624. name: "故障损失电量(万kWh)",
  625. code: "gzssdl",
  626. },
  627. {
  628. name: "检修损失电量(万kWh)",
  629. code: "jxssdl",
  630. },
  631. {
  632. name: "性能未达标损失电量(万kWh)",
  633. code: "xnssdl",
  634. },
  635. {
  636. name: "受累损失电量(万kWh)",
  637. code: "slssdl",
  638. },
  639. {
  640. name: "风能利用率(%)",
  641. code: "fnlyl",
  642. },
  643. {
  644. name: "故障损失率(%)",
  645. code: "gzssl",
  646. },
  647. {
  648. name: "检修损失率(%)",
  649. code: "jxssl",
  650. },
  651. {
  652. name: "弃风率(%)",
  653. code: "qfl",
  654. },
  655. {
  656. name: "性能损失率(%)",
  657. code: "xnssl",
  658. },
  659. {
  660. name: "受累损失率(%)",
  661. code: "slssl",
  662. },
  663. ];
  664. tabs = tabs.map((item) => {
  665. if (item.code == "fnlyl") {
  666. if (this.tabIndex == -1) {
  667. item.name = "风能利用率(%)";
  668. } else {
  669. item.name = "光能利用率(%)";
  670. }
  671. }
  672. if (item.code == "qfl") {
  673. if (this.tabIndex == -1) {
  674. item.name = "弃风率(%)";
  675. } else {
  676. item.name = "弃光率(%)";
  677. }
  678. }
  679. return item;
  680. });
  681. tabs.forEach((val) => {
  682. data.forEach((item, index) => {
  683. val["windData" + (index + 1)] = item[val.code];
  684. });
  685. });
  686. this.tabs = tabs;
  687. let radarValue = [];
  688. data.forEach((item, index) => {
  689. let data = {
  690. indicator: [
  691. "风能利用率排名",
  692. "故障损失率排名",
  693. "检修损失率排名",
  694. "弃风率排名",
  695. "性能损失率排名",
  696. "受累损失率排名",
  697. ],
  698. data: [
  699. {
  700. value: [
  701. item.fnlylpm,
  702. item.gzsslpm,
  703. item.jxsslpm,
  704. item.qflpm,
  705. item.xnsslpm,
  706. item.slsslpm,
  707. ],
  708. name: item.name,
  709. },
  710. ],
  711. };
  712. if (this.tabIndex == -1) {
  713. data.indicator = [
  714. "风能利用率排名",
  715. "故障损失率排名",
  716. "检修损失率排名",
  717. "弃风率排名",
  718. "性能损失率排名",
  719. "受累损失率排名",
  720. ];
  721. } else {
  722. data.indicator = [
  723. "光能利用率排名",
  724. "故障损失率排名",
  725. "检修损失率排名",
  726. "弃光率排名",
  727. "性能损失率排名",
  728. "受累损失率排名",
  729. ];
  730. }
  731. radarValue.push(data);
  732. });
  733. this.radarValue = radarValue;
  734. var analyis = [],
  735. gzssdl = [],
  736. jxssdl = [],
  737. xnssdl = [],
  738. xdssdl = [],
  739. slssdl = [];
  740. data.forEach((item, index) => {
  741. gzssdl.push({
  742. text: item.name,
  743. value: item.gzssdl,
  744. });
  745. jxssdl.push({
  746. text: item.name,
  747. value: item.jxssdl,
  748. });
  749. xnssdl.push({
  750. text: item.name,
  751. value: item.xnssdl,
  752. });
  753. xdssdl.push({
  754. text: item.name,
  755. value: item.xdssdl,
  756. });
  757. slssdl.push({
  758. text: item.name,
  759. value: item.slssdl,
  760. });
  761. });
  762. analyis.push(
  763. {
  764. title: "故障损失电量(万kWh)",
  765. yAxisIndex: 0,
  766. value: gzssdl,
  767. },
  768. {
  769. title: "检修损失电量(万kWh)",
  770. yAxisIndex: 0,
  771. value: jxssdl,
  772. },
  773. {
  774. title: "性能损失电量(万kWh)",
  775. yAxisIndex: 0,
  776. value: xnssdl,
  777. },
  778. {
  779. title: "限电损失电量(万kWh)",
  780. yAxisIndex: 0,
  781. value: xdssdl,
  782. },
  783. {
  784. title: "受累损失电量(万kWh)",
  785. yAxisIndex: 0,
  786. value: slssdl,
  787. }
  788. );
  789. this.analyisDialog = analyis;
  790. },
  791. },
  792. watch: {
  793. screenHeight(val) {
  794. this.screenHeight = val;
  795. if (val > 1100) {
  796. this.echartsHeight = "58vh";
  797. } else {
  798. this.echartsHeight = "53vh";
  799. }
  800. },
  801. },
  802. };
  803. </script>
  804. <style lang="less" scoped>
  805. .pagination-class {
  806. text-align: right;
  807. margin-top: 5px;
  808. }
  809. .parcel-box {
  810. height: 100%;
  811. width: 100%;
  812. padding: 0 30px;
  813. padding-bottom: 10px;
  814. }
  815. .form-wrapper {
  816. display: flex;
  817. flex-direction: row;
  818. align-items: center;
  819. margin-top: 10px;
  820. margin-bottom: 10px;
  821. .tabCut {
  822. display: inline-block;
  823. margin: 0 10px;
  824. white-space: nowrap;
  825. div {
  826. display: inline-block;
  827. width: 60px;
  828. height: 27px;
  829. border: 1px solid #274934;
  830. text-align: center;
  831. line-height: 25px;
  832. cursor: pointer;
  833. }
  834. div:nth-child(1) {
  835. border-radius: 13px 0px 0px 13px;
  836. border-right-width: 0;
  837. }
  838. div:nth-child(2) {
  839. border-radius: 0px 13px 13px 0px;
  840. }
  841. .active {
  842. background-color: rgba(5, 187, 76, 0.9);
  843. color: #fff;
  844. }
  845. .disabled {
  846. pointer-events: none;
  847. }
  848. }
  849. .tabCut1 {
  850. display: inline-block;
  851. margin: 0 10px;
  852. div {
  853. display: inline-block;
  854. width: 60px;
  855. height: 27px;
  856. border: 1px solid #274934;
  857. text-align: center;
  858. line-height: 25px;
  859. cursor: pointer;
  860. }
  861. div:nth-child(1) {
  862. border-radius: 13px 0px 0px 13px;
  863. }
  864. div:nth-child(3) {
  865. border-radius: 0px 13px 13px 0px;
  866. }
  867. .active {
  868. background-color: rgba(5, 187, 76, 0.9);
  869. color: #fff;
  870. }
  871. }
  872. .station {
  873. display: flex;
  874. flex-direction: row;
  875. align-items: center;
  876. white-space: nowrap;
  877. font-size: 14px;
  878. font-family: Microsoft YaHei;
  879. font-weight: 400;
  880. color: #b3b3b3;
  881. margin-right: 10px;
  882. }
  883. .search-input {
  884. margin-left: 10px;
  885. }
  886. .but {
  887. display: flex;
  888. flex-direction: row;
  889. align-content: center;
  890. margin-left: 20px;
  891. }
  892. .buttons {
  893. background-color: rgba(5, 187, 76, 0.2);
  894. border: 1px solid #3b6c53;
  895. color: #b3b3b3;
  896. font-size: 14px;
  897. &:hover {
  898. background-color: rgba(5, 187, 76, 0.5);
  899. color: #ffffff;
  900. }
  901. }
  902. }
  903. .bodys {
  904. width: 100%;
  905. height: calc(100% - 350px - 43px - 20px);
  906. background-color: rgba(0, 0, 0, 0.45);
  907. border-radius: 5px;
  908. }
  909. .economicTable {
  910. width: 100%;
  911. height: calc(100% - 36px);
  912. }
  913. .line {
  914. display: flex;
  915. flex-direction: row;
  916. align-items: center;
  917. justify-content: space-between;
  918. width: 100%;
  919. .leftContent {
  920. width: 242px;
  921. height: 41px;
  922. display: flex;
  923. align-items: center;
  924. background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
  925. span {
  926. font-size: 16px;
  927. font-family: Microsoft YaHei;
  928. font-weight: 400;
  929. color: #05bb4c;
  930. margin-left: 25px;
  931. }
  932. }
  933. .rightContent {
  934. width: 212px;
  935. height: 28px;
  936. margin-top: 13px;
  937. background: url("~@/assets/imgs/title_right_bg.png");
  938. }
  939. }
  940. .echarts {
  941. width: 100%;
  942. height: 350px;
  943. display: flex;
  944. flex-direction: row;
  945. align-items: center;
  946. .chart-name {
  947. display: flex;
  948. align-items: center;
  949. padding-left: 20px;
  950. position: relative;
  951. height: 39px;
  952. width: 98%;
  953. margin-left: 1%;
  954. border-bottom: 1px solid rgba(153, 153, 153, 0.5);
  955. font-size: 16px;
  956. font-family: Microsoft YaHei;
  957. font-weight: 400;
  958. color: #ffffff;
  959. }
  960. .pie-echarts {
  961. width: 30%;
  962. height: 100%;
  963. background: rgba(0, 0, 0, 0.45);
  964. border-radius: 5px;
  965. }
  966. .bar-echarts {
  967. width: 69%;
  968. margin-left: 1%;
  969. height: 100%;
  970. background: rgba(0, 0, 0, 0.45);
  971. border-radius: 5px;
  972. }
  973. }
  974. .point {
  975. width: 6px;
  976. height: 1px;
  977. background-color: #ffffff;
  978. position: absolute;
  979. &.point-left {
  980. left: 0;
  981. }
  982. &.point-right {
  983. right: 0;
  984. }
  985. &.top {
  986. top: -1px;
  987. }
  988. &.bottom {
  989. bottom: -1px;
  990. }
  991. }
  992. /*去除表头全选框*/
  993. ::v-deep .el-table__header-wrapper .el-checkbox {
  994. display: none;
  995. }
  996. ::v-deep .el-table__body-wrapper .el-checkbox {
  997. .el-checkbox__input {
  998. display: block;
  999. }
  1000. }
  1001. </style>