BoxCommonVector.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752
  1. <template>
  2. <div class="BoxCommonVector" v-if="title">
  3. <div class="innerContainerVector leftPaneVector" v-drag>
  4. <h2 class="PangetitleVector">
  5. <span class="pange_textVector">{{ title }}</span>
  6. </h2>
  7. <i class="el-icon-close" @click="close"></i>
  8. <el-input
  9. v-if="word"
  10. clearable
  11. v-model="state"
  12. @input="change_witch"
  13. class="search"
  14. placeholder="请输入内容"
  15. ></el-input>
  16. <div class="searchDiv" v-else>
  17. <div class="sidiv" v-for="sitem in searchs" :key="sitem.key">
  18. <el-input
  19. v-if="sitem.type == 'input'"
  20. clearable
  21. v-model="searchform[sitem.key]"
  22. @input="change_witch"
  23. class="search"
  24. :placeholder="`请输入${sitem.label}`"
  25. ></el-input>
  26. <el-select
  27. v-else-if="sitem.type == 'select'"
  28. clearable
  29. v-model="searchform[sitem.key]"
  30. :placeholder="sitem.label"
  31. @change="change_witch"
  32. >
  33. <el-option
  34. v-for="item in sitem.options"
  35. :key="item.value"
  36. :label="item.label"
  37. :value="item.value"
  38. ></el-option>
  39. </el-select>
  40. <!-- clearable -->
  41. <el-cascader
  42. v-else-if="sitem.type == 'cascader'"
  43. v-model="searchform[sitem.key]"
  44. :show-all-levels="false"
  45. :options="sitem.options"
  46. :placeholder="sitem.label"
  47. :props="{
  48. checkStrictly: true,
  49. expandTrigger: 'hover',
  50. emitPath: false,
  51. }"
  52. @change="change_witch"
  53. ></el-cascader>
  54. </div>
  55. </div>
  56. <el-table
  57. :row-class-name="tableRowClassName"
  58. ref="singleTable"
  59. :data="active_dableData"
  60. style="width: 100%"
  61. height="650"
  62. :header-cell-style="{
  63. background: 'rgba(10, 25, 38, 0.6)',
  64. color: '#66b1ff',
  65. fontSize: '14px',
  66. fontFamily: 'Microsoft YaHei',
  67. fontWeight: '400',
  68. }"
  69. >
  70. <el-table-column
  71. show-overflow-tooltip="true"
  72. v-for="(item, index) in store.state.cockpit_vector.columns"
  73. :key="index"
  74. :width="index ? 80 : 150"
  75. :prop="item"
  76. :label="item"
  77. >
  78. </el-table-column>
  79. <el-table-column fixed="right" label="操作" width="50">
  80. <template slot-scope="scope">
  81. <!-- <el-button @click="info(scope.row)" type="text" size="small">详情</el-button> -->
  82. <el-button @click="go(scope.row)" type="text" size="small"
  83. >定位</el-button
  84. >
  85. </template>
  86. </el-table-column>
  87. </el-table>
  88. </div>
  89. </div>
  90. </template>
  91. <script>
  92. import { QueryOne, QueryList } from "@/api/cockpitNew";
  93. import * as tdsy from "@/views/cockpit/js/tdsy";
  94. import * as wellknown from "wellknown";
  95. import * as turf from "@turf/turf";
  96. let BoxCommonVector_entity = null;
  97. let layersObj = {};
  98. export default {
  99. data() {
  100. return {
  101. state: "",
  102. timeout: null,
  103. title: "",
  104. active_dableData: null,
  105. tableData: null,
  106. layersData: {},
  107. scrollTop_index: null,
  108. tempdataLayerId: null,
  109. searchs: [],
  110. searchform: {},
  111. xzqTreeData: [],
  112. };
  113. },
  114. methods: {
  115. tableRowClassName({ row, rowIndex }) {
  116. if (rowIndex === this.scrollTop_index) {
  117. return "warning-row";
  118. }
  119. return "";
  120. },
  121. async draw_vector_server(jscType) {
  122. let res = await QueryOne({ jscType, id: "4602" });
  123. this.layersData = { ...res.data, title: this.title };
  124. tdsy.addLayer(this.layersData);
  125. this.Getlayers(res.data.url);
  126. },
  127. async Getlayers(mapurl) {
  128. let url = `${mapurl}/layers.json`;
  129. let res = await axios.get(url);
  130. let layers = res.data[0].subLayers.layers;
  131. if (layers.length > 0) this.layersData.layerName = layers[0].name;
  132. },
  133. async setLayerStatus(item) {
  134. this.tempdataLayerId = item.did;
  135. if (layersObj[item.did]) {
  136. layersObj[item.did].show = true;
  137. } else if (this.layersData.layerName) {
  138. var params_gh = {
  139. layerName: this.layersData.layerName,
  140. isVisible: true,
  141. displayFilter: `xmmc = '${item["项目名称"]}'`,
  142. };
  143. tdsy.superProvider.setLayerStatusParameters([params_gh]);
  144. tdsy.layer.show = false;
  145. let layer = viewer.imageryLayers.addImageryProvider(tdsy.superProvider);
  146. layersObj[item.did] = layer;
  147. } else {
  148. Message.error("缺少图层名称,设置失败");
  149. }
  150. },
  151. multiPolygonToPolygons(multiPolygon) {
  152. const polygons = [];
  153. multiPolygon.coordinates.forEach((polygonCoordinates) => {
  154. polygons.push({
  155. type: "Polygon",
  156. coordinates: polygonCoordinates,
  157. });
  158. });
  159. return polygons;
  160. },
  161. // draw_vector_tdgy_gy_jd(data) {
  162. // const that = this;
  163. // data.forEach((res) => {
  164. // res.type = this.title
  165. // if (res.geom) {
  166. // res.geom.coordinates.forEach((res_coordinates) => {
  167. // // let arrayt = [];
  168. // // if (res_coordinates.length == 1) {
  169. // // arrayt = res_coordinates[0]
  170. // // const twoDArray = arrayt;
  171. // // const oneDArray = twoDArray.reduce((accumulator, currentValue) => accumulator.concat(currentValue), []);
  172. // // tdsy.add(res, oneDArray);
  173. // // } else {
  174. // // // arrayt = res_coordinates
  175. // // }
  176. // // 多面转单面
  177. // // if (res.geom.type == 'MultiPolygon') {
  178. // // let polygons = that.multiPolygonToPolygons(geojson);
  179. // // // 在
  180. // // polygons.forEach((res) => {
  181. // // that.add_viewer_for_vector(res, data);
  182. // // tdsy.add(res, oneDArray);
  183. // // })
  184. // // } else {
  185. // // }
  186. // })
  187. // }
  188. // })
  189. // },
  190. draw_vector_tdgy_gy_jd(data) {
  191. // tdsy.remove();
  192. data.forEach((res, index) => {
  193. res.type = "图斑上图";
  194. res.index = index;
  195. if (res.geom) {
  196. let geojson = res.geom;
  197. if (geojson.type == "MultiPolygon") {
  198. geojson.coordinates.forEach((res) => {
  199. const twoDArray = res[0];
  200. const oneDArray = twoDArray.reduce(
  201. (accumulator, currentValue) => accumulator.concat(currentValue),
  202. []
  203. );
  204. tdsy.add(res, oneDArray);
  205. });
  206. } else {
  207. const twoDArray = geojson.coordinates[0];
  208. const oneDArray = twoDArray.reduce(
  209. (accumulator, currentValue) => accumulator.concat(currentValue),
  210. []
  211. );
  212. tdsy.add(res, oneDArray);
  213. }
  214. }
  215. });
  216. },
  217. close() {
  218. store.setViewerFlagb(true);
  219. tdsy.remove();
  220. store.state.vectorData = [];
  221. store.hideToolBar();
  222. },
  223. info() {},
  224. switch_show(flag) {
  225. BoxCommonVector_entity.entities.values.forEach((res) => {
  226. res.show = flag;
  227. });
  228. },
  229. build_data(geojson) {
  230. geojson.coordinates.forEach((res) => {
  231. const twoDArray = res[0];
  232. const oneDArray = twoDArray.reduce(
  233. (accumulator, currentValue) => accumulator.concat(currentValue),
  234. []
  235. );
  236. BoxCommonVector_entity.entities.add({
  237. polygon: {
  238. // 获取指定属性(positions,holes(图形内需要挖空的区域))
  239. hierarchy: {
  240. positions: Cesium.Cartesian3.fromDegreesArrayHeights(
  241. oneDArray.slice(0, -3)
  242. ),
  243. },
  244. // 边框
  245. outline: true,
  246. // 边框颜色
  247. outlineColor: Cesium.Color.RED,
  248. // 边框尺寸
  249. outlineWidth: 10,
  250. // 填充的颜色,withAlpha透明度
  251. material: Cesium.Color.GREEN.withAlpha(0),
  252. // 是否被提供的材质填充
  253. fill: false,
  254. // 恒定高度
  255. height: 1.1,
  256. // 显示在距相机的距离处的属性,多少区间内是可以显示的
  257. // distanceDisplayCondition: new Cesium.DistanceDisplayCondition(1000, 10000000),
  258. // 是否显示
  259. show: true,
  260. // 顺序,仅当`clampToGround`为true并且支持地形上的折线时才有效。
  261. zIndex: 10,
  262. },
  263. });
  264. // 注意:polygon首尾坐标要一致
  265. var polygon = turf.polygon([twoDArray]);
  266. var centroid = turf.centroid(polygon).geometry.coordinates;
  267. viewer.camera.flyTo({
  268. duration: 1,
  269. destination: Cesium.Cartesian3.fromDegrees(
  270. centroid[0],
  271. centroid[1],
  272. 3000
  273. ),
  274. // destination: {
  275. // x: -6283267.004204832,
  276. // y: 28123682.896774407,
  277. // z: 23709669.98539126
  278. // },
  279. orientation: {
  280. heading: 6.149339593573709,
  281. pitch: -1.539825618847483,
  282. roll: 0,
  283. },
  284. });
  285. });
  286. },
  287. go(item) {
  288. if (!item.geom) {
  289. this.$message.warning("缺少定位图斑");
  290. } else {
  291. if (this.cockpit_vector.mapType) {
  292. this.setLayerStatus(item);
  293. } else this.addpolygon(item);
  294. }
  295. store.setVectordataid(item.dataid);
  296. let arr = [];
  297. // BoxCommonVector_entity = new Cesium.CustomDataSource("BoxCommonVector_entity");
  298. // viewer.dataSources.add(BoxCommonVector_entity);
  299. Object.keys(item).forEach((key) => {
  300. arr.push({
  301. name: key,
  302. value: item[key],
  303. });
  304. });
  305. store.state.vectorData = arr;
  306. store.setActiveToolBar(9);
  307. },
  308. addpolygon(item) {
  309. const that = this;
  310. let geojson = item.geom;
  311. if (geojson.type == "MultiPolygon") {
  312. this.build_data(geojson);
  313. } else {
  314. const twoDArray = geojson.coordinates[0];
  315. const oneDArray = twoDArray.reduce(
  316. (accumulator, currentValue) => accumulator.concat(currentValue),
  317. []
  318. );
  319. BoxCommonVector_entity.entities.add({
  320. polygon: {
  321. // 获取指定属性(positions,holes(图形内需要挖空的区域))
  322. hierarchy: {
  323. positions: Cesium.Cartesian3.fromDegreesArrayHeights(
  324. oneDArray.slice(0, -3)
  325. ),
  326. },
  327. // 边框
  328. outline: true,
  329. // 边框颜色
  330. outlineColor: Cesium.Color.RED,
  331. // 边框尺寸
  332. outlineWidth: 10,
  333. // 填充的颜色,withAlpha透明度
  334. material: Cesium.Color.GREEN.withAlpha(0),
  335. // 是否被提供的材质填充
  336. fill: false,
  337. // 恒定高度
  338. height: 1.1,
  339. // 显示在距相机的距离处的属性,多少区间内是可以显示的
  340. // distanceDisplayCondition: new Cesium.DistanceDisplayCondition(1000, 10000000),
  341. // 是否显示
  342. show: true,
  343. // 顺序,仅当`clampToGround`为true并且支持地形上的折线时才有效。
  344. zIndex: 10,
  345. },
  346. });
  347. // 注意:polygon首尾坐标要一致
  348. var polygon = turf.polygon([geojson.coordinates[0]]);
  349. var centroid = turf.centroid(polygon).geometry.coordinates;
  350. viewer.camera.flyTo({
  351. duration: 1,
  352. destination: Cesium.Cartesian3.fromDegrees(
  353. centroid[0],
  354. centroid[1],
  355. 3000
  356. ),
  357. // destination: {
  358. // x: -6283267.004204832,
  359. // y: 28123682.896774407,
  360. // z: 23709669.98539126
  361. // },
  362. orientation: {
  363. heading: 6.149339593573709,
  364. pitch: -1.539825618847483,
  365. roll: 0,
  366. },
  367. });
  368. }
  369. let flag = true;
  370. let time = setInterval(() => {
  371. flag = !flag;
  372. that.switch_show(flag);
  373. }, 500);
  374. setTimeout(() => {
  375. clearInterval(time);
  376. for (var i = 0; i < 10; i++) {
  377. BoxCommonVector_entity.entities.values.forEach((res) => {
  378. BoxCommonVector_entity.entities.remove(res);
  379. });
  380. }
  381. }, 6000);
  382. },
  383. change_witch() {
  384. if (this.word) this.get_searchWord(this.state);
  385. else this.init_vector(this.searchform);
  386. },
  387. // get_search(word) {
  388. // if (word.length == 0) {
  389. // this.active_dableData = this.tableData;
  390. // } else {
  391. // let gy_ju = {
  392. // beginTime: store.state.cockpit_date[0],
  393. // endTime: store.state.cockpit_date[1],
  394. // jscType: store.state.cockpit_vector.tablejscType + '_cx',
  395. // id: '4602',
  396. // val0: word,
  397. // }
  398. // if (this.title == '土地供应完成项目' || this.title == '山水工程项目') {
  399. // gy_ju.beginTime = undefined
  400. // gy_ju.endTime = undefined
  401. // }
  402. // Promise.all([QueryList(gy_ju)]).then((values) => {
  403. // values[0].data.map((res) => {
  404. // if (res.geom) {
  405. // res.geom = wellknown.parse(res.geom.split(";")[1]);
  406. // }
  407. // })
  408. // this.active_dableData = values[0].data
  409. // }).catch((error) => {
  410. // console.error(error); // 如果有任何一个 promise 失败,则捕获这个错误
  411. // });
  412. // }
  413. // },
  414. get_searchWord() {
  415. if (this.state.length == 0) {
  416. this.active_dableData = this.tableData;
  417. console.log("this.active_dableData: ", this.active_dableData);
  418. } else {
  419. // console.log('this.tableData: ', this.tableData);
  420. // this.active_dableData = this.tableData.filter((item) => {
  421. // item.项目名称.indexOf(word) >= 0
  422. // })
  423. console.log("this.tableData: ", this.word);
  424. this.active_dableData = this.tableData.filter((item) => {
  425. console.log("item: ", item);
  426. if (item[this.word] && this.state) {
  427. return item[this.word].indexOf(this.state) >= 0;
  428. }
  429. return false;
  430. });
  431. }
  432. },
  433. async init_vector(params) {
  434. const that = this;
  435. let obj = {
  436. jscType: store.state.cockpit_vector.tablejscType,
  437. beginTime: store.state.cockpit_date[0],
  438. endTime: store.state.cockpit_date[1],
  439. id: store.state.cockpit_region.id,
  440. ...params,
  441. };
  442. if (this.title == "土地供应完成项目" || this.title == "山水工程项目") {
  443. obj.beginTime = undefined;
  444. obj.endTime = undefined;
  445. }
  446. if (this.title == "进出平衡") {
  447. (obj.jscType = "jsc_gdbh_jcph_zbmc"),
  448. (obj.val2 = 0),
  449. (obj.val1 = 50000),
  450. (obj.beginTime = store.state.cockpit_date[1].slice(0, 4)),
  451. (obj.endTime = undefined);
  452. }
  453. if (this.title == "土地收储计划项目") {
  454. obj.beginTime = undefined;
  455. obj.endTime = undefined;
  456. }
  457. let data = await QueryList(obj);
  458. data.data.map((res) => {
  459. if (res.geom) {
  460. res.geom = wellknown.parse(res.geom.split(";")[1]);
  461. }
  462. });
  463. this.active_dableData = data.data;
  464. this.tableData = data.data;
  465. },
  466. },
  467. computed: {
  468. cockpit_vector() {
  469. return store.state.cockpit_vector;
  470. },
  471. computed_vectorData() {
  472. return store.state.vectorData;
  473. },
  474. },
  475. watch: {
  476. cockpit_vector(newVal, oldVal) {
  477. this.title = newVal.title;
  478. this.word = newVal.word;
  479. this.searchs = newVal.searchs || [{ key: "a", label: newVal.word }];
  480. this.searchform = newVal.searchform;
  481. this.state = "";
  482. if (newVal.tableData && newVal.tableData.length > 0) {
  483. this.active_dableData = []; //防止重复点击tableData不刷新
  484. this.active_dableData = newVal.tableData;
  485. this.tableData = newVal.tableData;
  486. // this.init_vector()
  487. } else if (this.title) {
  488. this.init_vector();
  489. }
  490. if (newVal.goitem) {
  491. this.go(newVal.goitem);
  492. }
  493. },
  494. active_dableData(newVal, oldVal) {
  495. if (this.cockpit_vector.mapType)
  496. this.draw_vector_server(this.cockpit_vector.mapType);
  497. else this.draw_vector_tdgy_gy_jd(newVal);
  498. },
  499. tempdataLayerId(newVal, oldVal) {
  500. if (oldVal && layersObj[oldVal]) {
  501. layersObj[oldVal].show = false;
  502. } else if (layersObj[newVal]) {
  503. layersObj[newVal].show = true;
  504. }
  505. },
  506. computed_vectorData(newVal, oldVal) {
  507. newVal.forEach((res) => {
  508. if (res.name == "index") {
  509. const TableRows = this.$refs.singleTable.bodyWrapper.querySelectorAll(
  510. ".el-table__body tbody .el-table__row"
  511. );
  512. let scrollTop = 0;
  513. for (let i = 0; i < TableRows.length; i++) {
  514. if (i === res.value) {
  515. break;
  516. }
  517. scrollTop += TableRows[i].offsetHeight;
  518. }
  519. this.$refs.singleTable.bodyWrapper.scrollTop = scrollTop;
  520. this.scrollTop_index = res.value;
  521. }
  522. });
  523. },
  524. },
  525. mounted() {
  526. const that = this;
  527. this.$nextTick(() => {
  528. BoxCommonVector_entity = new Cesium.CustomDataSource(
  529. "BoxCommonVector_entity"
  530. );
  531. viewer.dataSources.add(BoxCommonVector_entity);
  532. });
  533. },
  534. };
  535. </script>
  536. <style lang="scss" scoped>
  537. .BoxCommonVector {
  538. width: 100%;
  539. height: 100%;
  540. position: absolute;
  541. left: -1rem;
  542. top: 0rem;
  543. }
  544. .innerContainerVector {
  545. width: 350px;
  546. height: 760px; //calc(100% - 20px);
  547. position: absolute;
  548. top: 28px;
  549. z-index: 99;
  550. background-image: url("/static/images/ghzc/内容框.png");
  551. background-size: 100% 100%;
  552. border-top-right-radius: 15px;
  553. .searchDiv {
  554. width: 100%;
  555. display: flex;
  556. justify-content: space-between;
  557. margin-right: 10px;
  558. .sidiv {
  559. // min-width: calc(50% - 10px);
  560. height: 40px;
  561. margin-bottom: 5px;
  562. margin-right: 5px;
  563. display: inline-block;
  564. }
  565. }
  566. .search {
  567. // margin: 2rem;
  568. }
  569. /deep/ .el-input {
  570. display: inline-block;
  571. }
  572. /deep/ .el-input__inner {
  573. // background: transparent !important;
  574. color: white !important;
  575. background: rgba(10, 25, 38, 0.5);
  576. border-color: #5ecef09a;
  577. // color: #64daff;
  578. // font-size: 12px;
  579. }
  580. }
  581. .leftPaneVector {
  582. left: 20px;
  583. .el-icon-close {
  584. width: 22px;
  585. height: 22px;
  586. color: #fff !important;
  587. background-color: #335f87;
  588. line-height: 23px;
  589. padding: 0 5px;
  590. border-radius: 4px;
  591. top: -1.9rem !important;
  592. position: relative;
  593. right: -19.5rem;
  594. }
  595. .PangetitleVector {
  596. box-sizing: border-box;
  597. width: 100%;
  598. height: 35px;
  599. background: url("/static/images/overview/titlebox.gif") no-repeat !important;
  600. background-size: 100% 100% !important;
  601. line-height: 35px;
  602. font-size: 14px;
  603. padding-left: 15px;
  604. display: flex;
  605. position: relative;
  606. overflow: hidden;
  607. }
  608. .pange_textVector {
  609. font-size: 14px !important;
  610. font-family: "HarmonyOS Sans, HarmonyOS Sans";
  611. font-weight: bold;
  612. font-size: 18px;
  613. color: #ffffff;
  614. margin-left: 30px;
  615. }
  616. }
  617. /deep/.el-input__inner:focus {
  618. border: 1px solid #1fb1ef;
  619. }
  620. /deep/.el-input__inner {
  621. border: 1px solid rgba(10, 25, 38, 0.5);
  622. background: rgba(10, 25, 38, 0.5);
  623. border-radius: 18px;
  624. height: 30px;
  625. color: white;
  626. line-height: 30px;
  627. // background: #ffffff3b;
  628. }
  629. /deep/.el-input__icon {
  630. line-height: 30px;
  631. border-radius: 0 18px 18px 0;
  632. cursor: pointer;
  633. }
  634. /deep/.el-input__suffix {
  635. background: #1fb1ef;
  636. right: 1px;
  637. padding: 0 5px;
  638. border-radius: 0 18px 18px 0;
  639. opacity: 0.8;
  640. color: #fff;
  641. }
  642. /deep/ .el-autocomplete-suggestion {
  643. margin-top: 8px;
  644. border-radius: 6px;
  645. border: 1px solid #198ec0;
  646. background: rgba(10, 25, 38, 0.9);
  647. color: rgba(25, 142, 192, 1);
  648. .popper__arrow {
  649. top: -8px;
  650. border-bottom-color: rgba(31, 177, 239, 1);
  651. }
  652. .popper__arrow::after {
  653. border-bottom-color: rgba(0, 80, 111, 0.9);
  654. }
  655. .el-autocomplete-suggestion__wrap {
  656. padding: 2px;
  657. }
  658. }
  659. /deep/ .el-autocomplete-suggestion li {
  660. color: #ffffff;
  661. }
  662. /deep/ .el-autocomplete-suggestion li:hover {
  663. background-color: rgba(8, 162, 223, 0.8);
  664. border-radius: 6px;
  665. }
  666. /deep/ .el-table tr {
  667. background: rgba(10, 25, 38, 0.5) !important;
  668. }
  669. /deep/ .el-table td.el-table__cell,
  670. .el-table th.el-table__cell.is-leaf {
  671. background: rgba(10, 25, 38, 0.5) !important;
  672. border-bottom: 0px solid #ebeef5;
  673. }
  674. .el-table {
  675. color: #fff;
  676. background: rgba(10, 25, 38, 0.5) !important;
  677. }
  678. /deep/ .el-table__fixed-right::before,
  679. .el-table__fixed::before {
  680. background: rgba(10, 25, 38, 0.9) !important;
  681. }
  682. /deep/ .el-table__fixed-right-patch {
  683. background: rgba(10, 25, 38, 0.9) !important;
  684. }
  685. /deep/ .el-table--border::after,
  686. .el-table--group::after,
  687. .el-table::before {
  688. background: rgba(10, 25, 38, 0) !important;
  689. }
  690. /deep/ .el-table .warning-row {
  691. background: rgb(102, 177, 255) !important;
  692. }
  693. </style>