index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824
  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">{{ Math.ceil(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">{{ Math.ceil(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. changeTableData(dataJson.data.data.dataList)
  283. // getTableList();
  284. });
  285. const pageTitle = "报警分析";
  286. const store = useStore();
  287. const changZhanArray = ref([]);
  288. const state = reactive({
  289. typeVal: "windturbine",
  290. typeList: [
  291. // {
  292. // label: "升压站",
  293. // value: "booststation",
  294. // },
  295. // {
  296. // label: "自定义",
  297. // value: "custom",
  298. // },
  299. {
  300. label: "风机",
  301. value: "windturbine",
  302. },
  303. // {
  304. // label: "光伏",
  305. // value: "inverter",
  306. // },
  307. ],
  308. tableData: [],
  309. tHeard: [],
  310. changZhan: "",
  311. components: "", //部件
  312. modelId: "", //型号
  313. alarmIds: "",
  314. alarmIdList: [],
  315. modelListAll: {},
  316. fetchListAll: {},
  317. starttime: dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss"),
  318. endtime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
  319. dialogVisible: false,
  320. });
  321. const changeType = (value) => {
  322. state.typeVal = value;
  323. getWpArray();
  324. };
  325. const getWpArray = async () => {
  326. const { data } = await getWpList(state.typeVal);
  327. changZhanArray.value = data;
  328. if (state.typeVal != "booststation") {
  329. state.changZhan =
  330. state.typeVal == "windturbine" ? "GJNY_SXGS_FSG_FDC_STA" : "";
  331. } else {
  332. state.changZhan = "";
  333. state.modelId = "";
  334. getTableList();
  335. }
  336. };
  337. // 机型
  338. const getequipmentmodel_list = async () => {
  339. const { data } = await fetchModel();
  340. state.modelListAll = data;
  341. };
  342. //所属部件
  343. const getfetchRelatePart = async () => {
  344. const { data } = await fetchRelatePartAndAlarmType();
  345. state.fetchListAll = data;
  346. };
  347. //型号列表
  348. const modelList = computed(() => {
  349. // if (state.changZhan == "") {
  350. // return [];
  351. // } else {
  352. // return state.modelListAll[state.changZhan];
  353. // }
  354. return [
  355. {
  356. id: "SEC-W02B-1250kW",
  357. nemCode: "SEC-W02B-1250kW",
  358. name: "SEC-W02B-1250kW",
  359. aname: "SEC-W02B-1250kW",
  360. description: "DI",
  361. powerProduction: 1250,
  362. windturbineManufacturerId: "SHDQ_MF",
  363. photo: null,
  364. unit: null,
  365. cutinwindSpeed: 3,
  366. ratedwindSpeed: 11,
  367. cutoutwindSpeed: "25",
  368. sweptArea: 5800,
  369. equipmentCategory: "F",
  370. },
  371. ];
  372. });
  373. //部件列表
  374. const componentList = computed(() => {
  375. // if (state.changZhan == "") {
  376. // return [];
  377. // } else {
  378. // if (state.changZhan.includes("FDC")) {
  379. // return state.fetchListAll?.fjbj;
  380. // } else {
  381. // return state.fetchListAll?.gfbj;
  382. // }
  383. // }
  384. return [
  385. {
  386. id: "1",
  387. category: "alertrule_category",
  388. nemCode: "YP",
  389. name: "叶片",
  390. orderNumber: 1,
  391. enable: 1,
  392. },
  393. {
  394. id: "2",
  395. category: "alertrule_category",
  396. nemCode: "LG",
  397. name: "轮毂",
  398. orderNumber: 2,
  399. enable: 1,
  400. },
  401. {
  402. id: "3",
  403. category: "alertrule_category",
  404. nemCode: "TJ",
  405. name: "塔架",
  406. orderNumber: 3,
  407. enable: 1,
  408. },
  409. {
  410. id: "4",
  411. category: "alertrule_category",
  412. nemCode: "JC",
  413. name: "机舱",
  414. orderNumber: 4,
  415. enable: 1,
  416. },
  417. {
  418. id: "5",
  419. category: "alertrule_category",
  420. nemCode: "KZXT",
  421. name: "控制系统",
  422. orderNumber: 5,
  423. enable: 1,
  424. },
  425. {
  426. id: "6",
  427. category: "alertrule_category",
  428. nemCode: "BJXT",
  429. name: "变桨系统",
  430. orderNumber: 6,
  431. enable: 1,
  432. },
  433. {
  434. id: "7",
  435. category: "alertrule_category",
  436. nemCode: "PHXT",
  437. name: "偏航系统",
  438. orderNumber: 7,
  439. enable: 1,
  440. },
  441. {
  442. id: "8",
  443. category: "alertrule_category",
  444. nemCode: "CLX",
  445. name: "齿轮箱",
  446. orderNumber: 8,
  447. enable: 1,
  448. },
  449. {
  450. id: "9",
  451. category: "alertrule_category",
  452. nemCode: "FDJ",
  453. name: "发电机",
  454. orderNumber: 9,
  455. enable: 1,
  456. },
  457. {
  458. id: "10",
  459. category: "alertrule_category",
  460. nemCode: "BPQ",
  461. name: "变频器",
  462. orderNumber: 10,
  463. enable: 1,
  464. },
  465. {
  466. id: "11",
  467. category: "alertrule_category",
  468. nemCode: "YYXT",
  469. name: "液压系统",
  470. orderNumber: 11,
  471. enable: 1,
  472. },
  473. {
  474. id: "12",
  475. category: "alertrule_category",
  476. nemCode: "FZXT",
  477. name: "辅助系统",
  478. orderNumber: 12,
  479. enable: 1,
  480. },
  481. {
  482. id: "13",
  483. category: "alertrule_category",
  484. nemCode: "CFXT",
  485. name: "测风系统",
  486. orderNumber: 13,
  487. enable: 1,
  488. },
  489. {
  490. id: "14",
  491. category: "alertrule_category",
  492. nemCode: "DWXT",
  493. name: "电网系统",
  494. orderNumber: 14,
  495. enable: 1,
  496. },
  497. {
  498. id: "15",
  499. category: "alertrule_category",
  500. nemCode: "TDG",
  501. name: "塔底柜",
  502. orderNumber: 15,
  503. enable: 1,
  504. },
  505. {
  506. id: "16",
  507. category: "alertrule_category",
  508. nemCode: "CDL",
  509. name: "传动链",
  510. orderNumber: 16,
  511. enable: 1,
  512. },
  513. {
  514. id: "17",
  515. category: "alertrule_category",
  516. nemCode: "QT",
  517. name: "其他",
  518. orderNumber: 17,
  519. enable: 1,
  520. },
  521. {
  522. id: "42",
  523. category: "alertrule_category",
  524. nemCode: "CGQ",
  525. name: "传感器",
  526. orderNumber: 19,
  527. enable: 1,
  528. },
  529. {
  530. id: "41",
  531. category: "alertrule_category",
  532. nemCode: "BYQ",
  533. name: "变压器",
  534. orderNumber: 18,
  535. enable: 1,
  536. },
  537. {
  538. id: "44",
  539. category: "alertrule_category",
  540. nemCode: "ZZ",
  541. name: "主轴",
  542. orderNumber: 20,
  543. enable: 1,
  544. },
  545. ];
  546. });
  547. watch(
  548. () => [modelList, componentList],
  549. (val) => {
  550. if (state.typeVal != "booststation") {
  551. let arr = val.map((item) => item.value);
  552. if (arr[0] && arr[0].length && arr[1] && arr[1].length) {
  553. state.modelId = [arr[0][0]?.nemCode];
  554. let componenDefaultSelect =
  555. arr[1]?.find((ele) => {
  556. return ele.nemCode === "ZZ";
  557. })?.nemCode || "";
  558. componenDefaultSelect
  559. ? (state.components = [componenDefaultSelect])
  560. : arr[1]?.[0]?.nemCode
  561. ? (state.components = [arr[1]?.[0]?.nemCode])
  562. : (state.components = []);
  563. getAlarmId();
  564. }
  565. }
  566. },
  567. {
  568. deep: true,
  569. immediate: true,
  570. }
  571. );
  572. function changeModel(val) {
  573. state.modelId = val;
  574. getAlarmId();
  575. }
  576. function changeComponents(val) {
  577. state.components = val;
  578. getAlarmId();
  579. }
  580. function changeChangzhan(val) {
  581. state.changZhan = val;
  582. if (state.typeVal != "booststation") {
  583. getAlarmId();
  584. }
  585. }
  586. function getAlarmId() {
  587. // GetAlarmId({
  588. // components: state.components,
  589. // modelId: state.modelId,
  590. // wpId: state.changZhan,
  591. // }).then(({ data }) => {
  592. // state.alarmIdList = data;
  593. // state.alarmIds = [];
  594. // // state.alarmIds =
  595. // // data.length <= 5
  596. // // ? data.map((item) => item.alarmId)
  597. // // : data.slice(0, 5).map((item) => item.alarmId);
  598. // getTableList();
  599. // });
  600. state.alarmIdList = [
  601. {
  602. alarmId: "10",
  603. description: "发电机转速大于900,并且 任意齿轮箱轴温度每分钟上升超过1.5",
  604. },
  605. ];
  606. getTableList();
  607. }
  608. // 获取列表数据 调用接口
  609. function getTableList() {
  610. if (state.components?.length) {
  611. getAlarmCountList({
  612. stationid: state.changZhan || "",
  613. begin: state.starttime,
  614. end: state.endtime,
  615. timeType: "m",
  616. components: state.typeVal === "booststation" ? "" : state.components,
  617. modelId: state.modelId,
  618. alarmIds: state.alarmIds,
  619. alarmType: state.typeVal,
  620. }).then((res) => {
  621. changeTableData(res)
  622. });
  623. } else {
  624. BASE.showMsg({
  625. msg: "部件至少选择一项才可查询",
  626. });
  627. }
  628. }
  629. const changeTableData = (res) => {
  630. if (res.length) {
  631. let tableData = [];
  632. let tHeard = [];
  633. let data = res;
  634. data.forEach((pEle) => {
  635. for (let wtId in pEle) {
  636. let wtItem = data.find((tableItem) => {
  637. return wtId === tableItem.windturbineId;
  638. });
  639. !wtItem && (wtItem = { wtId });
  640. pEle[wtId].forEach((cEle) => {
  641. let someRes = tHeard.some((findEle) => {
  642. return findEle.label == cEle.alertText;
  643. });
  644. if (!someRes) {
  645. tHeard.push({
  646. label: cEle.alertText,
  647. code: cEle.alarmid,
  648. });
  649. }
  650. wtItem[`${cEle.alarmid}_count`] = cEle.count;
  651. wtItem[`${cEle.alarmid}_time`] = cEle.time;
  652. wtItem["wtname"] = cEle.windturbineCode;
  653. });
  654. tableData.push(wtItem);
  655. }
  656. });
  657. state.tHeard = tHeard;
  658. state.tableData = tableData;
  659. } else {
  660. state.tHeard = [];
  661. state.tableData = [];
  662. }
  663. }
  664. const handleSort = function (val) {
  665. let item = val.prop;
  666. let list = JSON.parse(JSON.stringify(state.tableData));
  667. if (val.order == "ascending") {
  668. state.tableData = list.sort(compare(`${item.code}_count`));
  669. } else if (val.order == "descending") {
  670. state.tableData = list.sort(compare(`${item.code}_count`)).reverse();
  671. }
  672. };
  673. //排序函数
  674. const compare = function (property) {
  675. return function (a, b) {
  676. var value1 = a[property];
  677. var value2 = b[property];
  678. return value1 - value2;
  679. };
  680. };
  681. // // 单元格点击事件
  682. // handle(row, column, event, cell) {
  683. // let parts =
  684. // this.tHeard.find((ele) => {
  685. // return ele.label === column.label;
  686. // })?.parts || "";
  687. // getDialogData({
  688. // stationid: this.changZhan || "",
  689. // starttime: dayjs(this.starttime).format("YYYY-MM-DD"),
  690. // endtime: dayjs(this.endtime).format("YYYY-MM-DD"),
  691. // windturbineid: row.wtId,
  692. // parts,
  693. // }).then((res) => {
  694. // if (res && res.status === 20000) {
  695. // if (res.data.length) {
  696. // if (column.property !== "wtId") {
  697. // this.DataDetail = res.data;
  698. // let tableArr = [];
  699. // res.data.forEach((currentItem) => {
  700. // // if (currentItem.type === 1) {
  701. // // currentItem.type = '触发'
  702. // // }
  703. // // else if (currentItem.type === 0) {
  704. // // currentItem.type = '解除'
  705. // // }
  706. // tableArr.push(currentItem);
  707. // });
  708. // this.dialogVisible = true;
  709. // }
  710. // } else {
  711. // BASE.showMsg({
  712. // msg: "所选风机暂无数据",
  713. // });
  714. // }
  715. // }
  716. // });
  717. // },
  718. </script>
  719. <style lang="less" scoped>
  720. .history-analyse {
  721. height: 100%;
  722. .form-wrapper ::v-deep {
  723. display: flex;
  724. flex-direction: column;
  725. padding-top: 10px;
  726. position: relative;
  727. .search-wrapper {
  728. display: flex;
  729. align-items: center;
  730. font-size: 14px;
  731. font-family: Microsoft YaHei;
  732. font-weight: 400;
  733. color: #b3b3b3;
  734. margin-bottom: 10px;
  735. margin-left: 20px;
  736. .search-item {
  737. display: flex;
  738. margin-right: 10px;
  739. max-width: 450px;
  740. align-items: center;
  741. .label {
  742. margin-right: 10px;
  743. text-align: right;
  744. white-space: nowrap;
  745. // width: 60px;
  746. }
  747. .search-content {
  748. flex: 1;
  749. }
  750. }
  751. }
  752. .buttons {
  753. background-color: rgba(5, 187, 76, 0.2);
  754. border: 1px solid #3b6c53;
  755. color: #b3b3b3;
  756. font-size: 14px;
  757. &:hover {
  758. background-color: rgba(5, 187, 76, 0.5);
  759. color: #ffffff;
  760. }
  761. }
  762. }
  763. .table_all {
  764. width: calc(100% - 20px);
  765. height: calc(100% - 130px);
  766. padding: 20px;
  767. .leftContent[data-type~="greenSty"] {
  768. background: url("~@/assets/imgs/title_left_bg1.png") no-repeat;
  769. }
  770. .leftContent[data-type~="blueSty"] {
  771. background: url("~@/assets/imgs/title_left_bg.png") no-repeat;
  772. }
  773. .leftContent {
  774. width: 242px;
  775. height: 41px;
  776. display: flex;
  777. align-items: center;
  778. span {
  779. font-size: 16px;
  780. font-family: Microsoft YaHei;
  781. font-weight: 400;
  782. color: #05bb4c;
  783. margin-left: 25px;
  784. }
  785. }
  786. .el-table {
  787. .el-table__row {
  788. td {
  789. cursor: pointer;
  790. &:first-child {
  791. cursor: auto;
  792. }
  793. }
  794. }
  795. }
  796. }
  797. .bar {
  798. display: flex;
  799. align-items: center;
  800. height: 16px;
  801. margin: 8px 0;
  802. .bar-percent {
  803. height: 100%;
  804. background: #2169c3;
  805. margin-right: 8px;
  806. }
  807. }
  808. }
  809. </style>