BoxCommonVector.vue 24 KB

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