BoxCommonVector.vue 22 KB

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