BoxCommonVector.vue 23 KB

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