index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  1. <template>
  2. <!-- 风机原始数据统计表页面 -->
  3. <div class="history-analyse">
  4. <!-- 页面头部 multiple多选属性 -->
  5. <div class="form-wrapper">
  6. <div class="search-wrapper">
  7. <div class="search-item">
  8. <span class="label">报警类型:</span>
  9. <div class="search-content">
  10. <el-select
  11. v-model="state.typeVal"
  12. style="width: 100px"
  13. size="mini"
  14. placeholder="全部"
  15. popper-class="select"
  16. @change="changeType"
  17. >
  18. <el-option
  19. v-for="item in state.typeList"
  20. :key="item.value"
  21. :value="item.value"
  22. :label="item.label"
  23. >
  24. </el-option>
  25. </el-select>
  26. </div>
  27. </div>
  28. <div class="search-item">
  29. <span class="label">场站:</span>
  30. <div class="search-content">
  31. <el-select
  32. size="mini"
  33. v-model="state.changZhan"
  34. style="width: 120px"
  35. @change="changeChangzhan"
  36. placeholder="全部场站"
  37. >
  38. <el-option
  39. v-for="item in changZhanArray"
  40. :key="item.id"
  41. :label="item.name"
  42. :value="item.id"
  43. >
  44. </el-option>
  45. </el-select>
  46. </div>
  47. </div>
  48. <div class="search-item" v-if="state.typeVal !== 'booststation'">
  49. <span class="label">型号:</span>
  50. <div class="search-content">
  51. <el-select
  52. size="mini"
  53. v-model="state.modelId"
  54. style="width: 120px"
  55. @change="changeModel"
  56. placeholder="全部型号"
  57. >
  58. <el-option
  59. v-for="item in modelList"
  60. :key="item.id"
  61. :label="item.name"
  62. :value="item.id"
  63. >
  64. </el-option>
  65. </el-select>
  66. </div>
  67. </div>
  68. <div class="search-item" v-if="state.typeVal !== 'booststation'">
  69. <span class="label">部件:</span>
  70. <div class="search-content">
  71. <el-select
  72. v-model="state.components"
  73. style="width: 120px"
  74. multiple
  75. size="mini"
  76. collapse-tags
  77. clearable
  78. placeholder="全部部件"
  79. @change="changeComponents"
  80. >
  81. <el-option
  82. v-for="item in componentList"
  83. :key="item.id"
  84. :label="item.name"
  85. :value="item.nemCode"
  86. >
  87. </el-option>
  88. </el-select>
  89. </div>
  90. </div>
  91. <div class="search-item" v-if="state.typeVal !== 'booststation'">
  92. <span class="label">报警描述:</span>
  93. <div class="search-content">
  94. <el-select
  95. v-model="state.alarmIds"
  96. style="width: 120px"
  97. multiple
  98. size="mini"
  99. clearable
  100. collapse-tags
  101. placeholder="全部描述"
  102. >
  103. <el-option
  104. v-for="item in state.alarmIdList"
  105. :key="item.id"
  106. :label="item.description"
  107. :value="item.alarmId"
  108. >
  109. </el-option>
  110. </el-select>
  111. </div>
  112. </div>
  113. <div class="search-item">
  114. <span class="label">开始日期:</span>
  115. <div class="search-content">
  116. <el-date-picker
  117. size="mini"
  118. v-model="state.starttime"
  119. type="datetime"
  120. placeholder="选择日期"
  121. value-format="YYYY-MM-DD HH:mm:ss"
  122. popper-class="date-select"
  123. >
  124. </el-date-picker>
  125. </div>
  126. </div>
  127. <div class="search-item">
  128. <span class="label">结束日期:</span>
  129. <div class="search-content">
  130. <el-date-picker
  131. size="mini"
  132. v-model="state.endtime"
  133. type="datetime"
  134. placeholder="选择日期"
  135. value-format="YYYY-MM-DD HH:mm:ss"
  136. popper-class="date-select"
  137. >
  138. </el-date-picker>
  139. </div>
  140. </div>
  141. <div class="btns">
  142. <el-button class="buttons" size="mini" round @click="getTableList"
  143. >查询</el-button
  144. >
  145. </div>
  146. </div>
  147. </div>
  148. <!-- 页面下部---统计表 -->
  149. <div class="table_all">
  150. <div class="leftContent" :data-type="$store.state.moreSty">
  151. <span>{{ pageTitle }}</span>
  152. </div>
  153. <el-table
  154. :data="state.tableData"
  155. stripe
  156. style="height: calc(100% - 60px)"
  157. @sort-change="handleSort"
  158. >
  159. <el-table-column
  160. prop="wtname"
  161. label="设备编号"
  162. align="center"
  163. width="80"
  164. />
  165. <el-table-column
  166. :label="item.label"
  167. v-for="(item, index) in state.tHeard"
  168. :key="index"
  169. :prop="item"
  170. min-width="170"
  171. header-align="center"
  172. show-overflow-tooltip
  173. sortable="custom"
  174. >
  175. <template #default="scope">
  176. <div class="bar">
  177. <!-- :style="{
  178. width:
  179. row[`${item.code}_count`] || row[`${item.code}_time`]
  180. ? (row[`${item.code}_count`] /
  181. (row[`${item.code}_count`] +
  182. row[`${item.code}_time`])) *
  183. 100 +
  184. 'px'
  185. : '0px',
  186. }" -->
  187. <div
  188. class="bar-percent"
  189. :style="{width: (Math.ceil(scope.row[`${item.code}_count`]) /
  190. Math.ceil(scope.column.realWidth))*100 + 'px'}"
  191. ></div>
  192. <!-- <span class="value">{{ row[`${item.code}_count`] }} 次</span> -->
  193. <span class="value">{{ getCalcValue(scope.row[`${item.code}_count`]) }} 次</span>
  194. </div>
  195. <div class="bar">
  196. <!-- :style="{
  197. width:
  198. row[`${item.code}_count`] || row[`${item.code}_time`]
  199. ? (row[`${item.code}_time`] /
  200. (row[`${item.code}_count`] +
  201. row[`${item.code}_time`])) *
  202. 100 +
  203. 'px'
  204. : '0px',
  205. }" -->
  206. <div
  207. class="bar-percent"
  208. :style="{width: (Math.ceil(scope.row[`${item.code}_time`]) /
  209. Math.ceil(scope.column.realWidth))*100 + 'px'}"
  210. ></div>
  211. <!-- <span class="value">{{ row[`${item.code}_time`] }} 分钟</span> -->
  212. <span class="value">{{ getCalcValue(scope.row[`${item.code}_time`]) }} 分钟</span>
  213. </div>
  214. </template>
  215. </el-table-column>
  216. </el-table>
  217. </div>
  218. <el-dialog
  219. v-model="dialogVisible"
  220. width="80%"
  221. :before-close="dialogClose"
  222. custom-class="currentPdfDialogStyle"
  223. >
  224. <el-table
  225. :data="DataDetail"
  226. border
  227. :cell-class-name="tableCell"
  228. :header-row-class-name="tableRowClassName"
  229. height="600px"
  230. @row-click="handle"
  231. >
  232. <el-table-column prop="windturbineId" label="风机编号" align="center" />
  233. <el-table-column prop="alarmName" label="报警名称" align="center" />
  234. <el-table-column prop="alarmDate" label="时间" align="center" />
  235. <el-table-column prop="type" label="类型(触发/解除)" align="center">
  236. <template #default="scope">
  237. <!-- <span v-if="scope.row.type === 1">触发</span>
  238. <span v-if="scope.row.type === 0">解除</span> -->
  239. {{ scope.row.type === 1 ? "触发" : "解除" }}
  240. </template>
  241. </el-table-column>
  242. </el-table>
  243. </el-dialog>
  244. <!-- <el-pagination
  245. small
  246. background
  247. layout="total, prev, pager, next"
  248. :current-page="pageParam.pagenum"
  249. :page-size="pageParam.pagesize"
  250. :total="pageParam.total"
  251. @current-change="changePage"
  252. ></el-pagination> -->
  253. </div>
  254. </template>
  255. <script setup>
  256. import { useStore } from "vuex";
  257. import BASE from "@tools/basicTool.js";
  258. import dataJson from "./dataJson.json";
  259. import {
  260. ref,
  261. onMounted,
  262. watch,
  263. reactive,
  264. computed,
  265. onUnmounted,
  266. nextTick,
  267. } from "vue";
  268. import {
  269. getAlarmCountList,
  270. fetchModel,
  271. fetchRelatePartAndAlarmType,
  272. GetAlarmId,
  273. getWpList,
  274. } from "@/api/zhbj/index.js";
  275. import dayjs from "dayjs";
  276. onMounted(() => {
  277. getWpArray();
  278. getequipmentmodel_list();
  279. getfetchRelatePart();
  280. // state.tHeard = dataJson.data.data.title;
  281. // state.tableData = dataJson.data.data.dataList;
  282. // getTableList();
  283. });
  284. const pageTitle = "报警分析";
  285. const store = useStore();
  286. const changZhanArray = ref([]);
  287. const state = reactive({
  288. typeVal: "windturbine",
  289. typeList: [
  290. // {
  291. // label: "升压站",
  292. // value: "booststation",
  293. // },
  294. // {
  295. // label: "自定义",
  296. // value: "custom",
  297. // },
  298. {
  299. label: "风机",
  300. value: "windturbine",
  301. },
  302. // {
  303. // label: "光伏",
  304. // value: "inverter",
  305. // },
  306. ],
  307. tableData: [],
  308. tHeard: [],
  309. changZhan: "",
  310. components: ["FDJ", "CLX"], //部件
  311. modelId: "", //型号
  312. alarmIds: "",
  313. alarmIdList: [],
  314. modelListAll: {},
  315. fetchListAll: {},
  316. starttime: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
  317. endtime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
  318. dialogVisible: false,
  319. });
  320. const getCalcValue = (num) => {
  321. if (!num) {
  322. return 0;
  323. } else {
  324. return Math.ceil(num);
  325. }
  326. };
  327. const changeType = (value) => {
  328. state.typeVal = value;
  329. getWpArray();
  330. };
  331. const getWpArray = async () => {
  332. const { data } = await getWpList(state.typeVal);
  333. changZhanArray.value = data;
  334. if (state.typeVal != "booststation") {
  335. state.changZhan = data[0]?.id
  336. getTableList();
  337. } else {
  338. state.changZhan = "";
  339. state.modelId = "";
  340. }
  341. };
  342. // 机型
  343. const getequipmentmodel_list = async () => {
  344. const { data } = await fetchModel();
  345. state.modelListAll = data;
  346. };
  347. //所属部件
  348. const getfetchRelatePart = async () => {
  349. const { data } = await fetchRelatePartAndAlarmType();
  350. state.fetchListAll = data;
  351. };
  352. //型号列表
  353. const modelList = computed(() => {
  354. // if (state.changZhan == "") {
  355. // return [];
  356. // } else {
  357. // return state.modelListAll[state.changZhan];
  358. // }
  359. return [
  360. {
  361. id: "SEC-W02B-1250kW",
  362. nemCode: "SEC-W02B-1250kW",
  363. name: "SEC-W02B-1250kW",
  364. aname: "SEC-W02B-1250kW",
  365. description: "DI",
  366. powerProduction: 1250,
  367. windturbineManufacturerId: "SHDQ_MF",
  368. photo: null,
  369. unit: null,
  370. cutinwindSpeed: 3,
  371. ratedwindSpeed: 11,
  372. cutoutwindSpeed: "25",
  373. sweptArea: 5800,
  374. equipmentCategory: "F",
  375. },
  376. ];
  377. });
  378. //部件列表
  379. const componentList = computed(() => {
  380. // if (state.changZhan == "") {
  381. // return [];
  382. // } else {
  383. // if (state.changZhan.includes("FDC")) {
  384. // return state.fetchListAll?.fjbj;
  385. // } else {
  386. // return state.fetchListAll?.gfbj;
  387. // }
  388. // }
  389. return [
  390. {
  391. id: "1",
  392. category: "alertrule_category",
  393. nemCode: "YP",
  394. name: "叶片",
  395. orderNumber: 1,
  396. enable: 1,
  397. },
  398. {
  399. id: "2",
  400. category: "alertrule_category",
  401. nemCode: "LG",
  402. name: "轮毂",
  403. orderNumber: 2,
  404. enable: 1,
  405. },
  406. {
  407. id: "3",
  408. category: "alertrule_category",
  409. nemCode: "TJ",
  410. name: "塔架",
  411. orderNumber: 3,
  412. enable: 1,
  413. },
  414. {
  415. id: "4",
  416. category: "alertrule_category",
  417. nemCode: "JC",
  418. name: "机舱",
  419. orderNumber: 4,
  420. enable: 1,
  421. },
  422. {
  423. id: "5",
  424. category: "alertrule_category",
  425. nemCode: "KZXT",
  426. name: "控制系统",
  427. orderNumber: 5,
  428. enable: 1,
  429. },
  430. {
  431. id: "6",
  432. category: "alertrule_category",
  433. nemCode: "BJXT",
  434. name: "变桨系统",
  435. orderNumber: 6,
  436. enable: 1,
  437. },
  438. {
  439. id: "7",
  440. category: "alertrule_category",
  441. nemCode: "PHXT",
  442. name: "偏航系统",
  443. orderNumber: 7,
  444. enable: 1,
  445. },
  446. {
  447. id: "8",
  448. category: "alertrule_category",
  449. nemCode: "CLX",
  450. name: "齿轮箱",
  451. orderNumber: 8,
  452. enable: 1,
  453. },
  454. {
  455. id: "9",
  456. category: "alertrule_category",
  457. nemCode: "FDJ",
  458. name: "发电机",
  459. orderNumber: 9,
  460. enable: 1,
  461. },
  462. {
  463. id: "10",
  464. category: "alertrule_category",
  465. nemCode: "BPQ",
  466. name: "变频器",
  467. orderNumber: 10,
  468. enable: 1,
  469. },
  470. {
  471. id: "11",
  472. category: "alertrule_category",
  473. nemCode: "YYXT",
  474. name: "液压系统",
  475. orderNumber: 11,
  476. enable: 1,
  477. },
  478. {
  479. id: "12",
  480. category: "alertrule_category",
  481. nemCode: "FZXT",
  482. name: "辅助系统",
  483. orderNumber: 12,
  484. enable: 1,
  485. },
  486. {
  487. id: "13",
  488. category: "alertrule_category",
  489. nemCode: "CFXT",
  490. name: "测风系统",
  491. orderNumber: 13,
  492. enable: 1,
  493. },
  494. {
  495. id: "14",
  496. category: "alertrule_category",
  497. nemCode: "DWXT",
  498. name: "电网系统",
  499. orderNumber: 14,
  500. enable: 1,
  501. },
  502. {
  503. id: "15",
  504. category: "alertrule_category",
  505. nemCode: "TDG",
  506. name: "塔底柜",
  507. orderNumber: 15,
  508. enable: 1,
  509. },
  510. {
  511. id: "16",
  512. category: "alertrule_category",
  513. nemCode: "CDL",
  514. name: "传动链",
  515. orderNumber: 16,
  516. enable: 1,
  517. },
  518. {
  519. id: "17",
  520. category: "alertrule_category",
  521. nemCode: "QT",
  522. name: "其他",
  523. orderNumber: 17,
  524. enable: 1,
  525. },
  526. {
  527. id: "42",
  528. category: "alertrule_category",
  529. nemCode: "CGQ",
  530. name: "传感器",
  531. orderNumber: 19,
  532. enable: 1,
  533. },
  534. {
  535. id: "41",
  536. category: "alertrule_category",
  537. nemCode: "BYQ",
  538. name: "变压器",
  539. orderNumber: 18,
  540. enable: 1,
  541. },
  542. {
  543. id: "44",
  544. category: "alertrule_category",
  545. nemCode: "ZZ",
  546. name: "主轴",
  547. orderNumber: 20,
  548. enable: 1,
  549. },
  550. ];
  551. });
  552. watch(
  553. () => [modelList, componentList],
  554. (val) => {
  555. if (state.typeVal != "booststation") {
  556. let arr = val.map((item) => item.value);
  557. if (arr[0] && arr[0].length && arr[1] && arr[1].length) {
  558. // state.modelId = [arr[0][0]?.nemCode];
  559. let componenDefaultSelect =
  560. arr[1]?.find((ele) => {
  561. return ele.nemCode === "FDJ";
  562. })?.nemCode || "";
  563. componenDefaultSelect
  564. ? (state.components = ["FDJ", "CLX"])
  565. : arr[1]?.[0]?.nemCode
  566. ? (state.components = [arr[1]?.[0]?.nemCode])
  567. : (state.components = []);
  568. getAlarmId();
  569. }
  570. }
  571. },
  572. {
  573. deep: true,
  574. immediate: true,
  575. }
  576. );
  577. function changeModel(val) {
  578. state.modelId = val;
  579. getAlarmId();
  580. }
  581. function changeComponents(val) {
  582. state.components = val;
  583. getAlarmId();
  584. }
  585. function changeChangzhan(val) {
  586. state.changZhan = val;
  587. if (state.typeVal != "booststation") {
  588. getAlarmId();
  589. }
  590. }
  591. function getAlarmId() {
  592. // GetAlarmId({
  593. // components: state.components,
  594. // modelId: state.modelId,
  595. // wpId: state.changZhan,
  596. // }).then(({ data }) => {
  597. // state.alarmIdList = data;
  598. // state.alarmIds = [];
  599. // // state.alarmIds =
  600. // // data.length <= 5
  601. // // ? data.map((item) => item.alarmId)
  602. // // : data.slice(0, 5).map((item) => item.alarmId);
  603. // getTableList();
  604. // });
  605. state.alarmIdList = [
  606. {
  607. alarmId: "10",
  608. description: "发电机转速大于900,并且 任意齿轮箱轴温度每分钟上升超过1.5",
  609. },
  610. ];
  611. getTableList();
  612. }
  613. // 获取列表数据 调用接口
  614. function getTableList() {
  615. if (state.components?.length) {
  616. getAlarmCountList({
  617. stationid: state.changZhan || "",
  618. begin: state.starttime,
  619. end: state.endtime,
  620. timeType: "m",
  621. components: state.typeVal === "booststation" ? "" : state.components,
  622. modelId: state.modelId,
  623. alarmIds: state.alarmIds,
  624. alarmType: state.typeVal,
  625. }).then((res) => {
  626. changeTableData(res)
  627. }).catch(() =>{
  628. changeTableData(dataJson.data.data.dataList)
  629. });
  630. } else {
  631. BASE.showMsg({
  632. msg: "部件至少选择一项才可查询",
  633. });
  634. }
  635. }
  636. const changeTableData = (res) => {
  637. if (res.length) {
  638. let tableData = [];
  639. let tHeard = [];
  640. let data = res;
  641. data.forEach((pEle) => {
  642. for (let wtId in pEle) {
  643. let wtItem = data.find((tableItem) => {
  644. return wtId === tableItem.windturbineId;
  645. });
  646. !wtItem && (wtItem = { wtId });
  647. pEle[wtId].forEach((cEle) => {
  648. let someRes = tHeard.some((findEle) => {
  649. return findEle.label == cEle.alertText;
  650. });
  651. if (!someRes) {
  652. tHeard.push({
  653. label: cEle.alertText,
  654. code: cEle.alarmid,
  655. });
  656. }
  657. wtItem[`${cEle.alarmid}_count`] = cEle.count;
  658. wtItem[`${cEle.alarmid}_time`] = cEle.time;
  659. wtItem["wtname"] = cEle.windturbineCode;
  660. });
  661. tableData.push(wtItem);
  662. }
  663. });
  664. state.tHeard = tHeard;
  665. state.tableData = tableData;
  666. } else {
  667. state.tHeard = [];
  668. state.tableData = [];
  669. }
  670. }
  671. const handleSort = function (val) {
  672. let item = val.prop;
  673. let list = JSON.parse(JSON.stringify(state.tableData));
  674. if (val.order == "ascending") {
  675. state.tableData = list.sort(compare(`${item.code}_count`));
  676. } else if (val.order == "descending") {
  677. state.tableData = list.sort(compare(`${item.code}_count`)).reverse();
  678. }
  679. };
  680. //排序函数
  681. const compare = function (property) {
  682. return function (a, b) {
  683. var value1 = a[property];
  684. var value2 = b[property];
  685. return value1 - value2;
  686. };
  687. };
  688. // // 单元格点击事件
  689. // handle(row, column, event, cell) {
  690. // let parts =
  691. // this.tHeard.find((ele) => {
  692. // return ele.label === column.label;
  693. // })?.parts || "";
  694. // getDialogData({
  695. // stationid: this.changZhan || "",
  696. // starttime: dayjs(this.starttime).format("YYYY-MM-DD"),
  697. // endtime: dayjs(this.endtime).format("YYYY-MM-DD"),
  698. // windturbineid: row.wtId,
  699. // parts,
  700. // }).then((res) => {
  701. // if (res && res.status === 20000) {
  702. // if (res.data.length) {
  703. // if (column.property !== "wtId") {
  704. // this.DataDetail = res.data;
  705. // let tableArr = [];
  706. // res.data.forEach((currentItem) => {
  707. // // if (currentItem.type === 1) {
  708. // // currentItem.type = '触发'
  709. // // }
  710. // // else if (currentItem.type === 0) {
  711. // // currentItem.type = '解除'
  712. // // }
  713. // tableArr.push(currentItem);
  714. // });
  715. // this.dialogVisible = true;
  716. // }
  717. // } else {
  718. // BASE.showMsg({
  719. // msg: "所选风机暂无数据",
  720. // });
  721. // }
  722. // }
  723. // });
  724. // },
  725. </script>
  726. <style lang="less" scoped>
  727. .history-analyse {
  728. height: 100%;
  729. .form-wrapper ::v-deep {
  730. display: flex;
  731. flex-direction: column;
  732. padding-top: 10px;
  733. position: relative;
  734. .search-wrapper {
  735. display: flex;
  736. align-items: center;
  737. font-size: 14px;
  738. font-family: Microsoft YaHei;
  739. font-weight: 400;
  740. color: #b3b3b3;
  741. margin-bottom: 10px;
  742. margin-left: 20px;
  743. .search-item {
  744. display: flex;
  745. margin-right: 10px;
  746. max-width: 450px;
  747. align-items: center;
  748. .label {
  749. margin-right: 10px;
  750. text-align: right;
  751. white-space: nowrap;
  752. // width: 60px;
  753. }
  754. .search-content {
  755. flex: 1;
  756. }
  757. }
  758. }
  759. .buttons {
  760. background-color: rgba(5, 187, 76, 0.2);
  761. border: 1px solid #3b6c53;
  762. color: #b3b3b3;
  763. font-size: 14px;
  764. &:hover {
  765. background-color: rgba(5, 187, 76, 0.5);
  766. color: #ffffff;
  767. }
  768. }
  769. }
  770. .table_all {
  771. width: calc(100% - 20px);
  772. height: calc(100% - 130px);
  773. padding: 20px;
  774. .leftContent[data-type~="greenSty"] {
  775. background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
  776. }
  777. .leftContent[data-type~="blueSty"] {
  778. background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
  779. }
  780. .leftContent {
  781. width: 242px;
  782. height: 41px;
  783. display: flex;
  784. align-items: center;
  785. span {
  786. font-size: 16px;
  787. font-family: Microsoft YaHei;
  788. font-weight: 400;
  789. color: #05bb4c;
  790. margin-left: 25px;
  791. }
  792. }
  793. .el-table {
  794. .el-table__row {
  795. td {
  796. cursor: pointer;
  797. &:first-child {
  798. cursor: auto;
  799. }
  800. }
  801. }
  802. }
  803. }
  804. .bar {
  805. display: flex;
  806. align-items: center;
  807. height: 16px;
  808. margin: 8px 0;
  809. .bar-percent {
  810. height: 100%;
  811. background: #2169c3;
  812. margin-right: 8px;
  813. }
  814. }
  815. }
  816. </style>