index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. <template>
  2. <div class="layer-list-panel" :class="{ 'fix-layer-list-panel': leftPanelHide }">
  3. <div class="layer-list-panel-title">
  4. <div class="title">
  5. <img src="@/assets/image/common/layerIcon.png" alt="" />
  6. <span style="margin-left: 0.08rem">资源列表</span>
  7. </div>
  8. <div @click="onExpandChange" style="cursor: pointer">
  9. <img v-show="isExpanded" src="@/assets/image/common/arrow-up.png" style="width: 14px; height: 12px" />
  10. <img v-show="!isExpanded" src="@/assets/image/common/arrow-up.png" style="transform: rotate(180deg); width: 14px; height: 12px" />
  11. </div>
  12. </div>
  13. <div class="layer-list-panel-content" v-show="isExpanded">
  14. <el-tree ref="treeRef" :data="treeData" show-checkbox node-key="id" :props="defaultProps" @check="onCheckChange" :default-expanded-keys="['1']">
  15. <template #default="{ node, data }">
  16. <span class="custom-tree-node">
  17. <span>{{ node.label }}</span>
  18. <i v-if="data.loading" class="el-icon-loading" style="margin-left: 4px; color: #409eff"></i>
  19. <i v-if="data.error" class="el-icon-warning" style="margin-left: 4px; color: #f56c6c" :title="data.error"></i>
  20. </span>
  21. </template>
  22. </el-tree>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. import * as mars3d from 'mars3d'
  28. import { getFloodPreventionList } from '@/api/floodPreventionPlan'
  29. import { getPwkPopup, getSitePopup } from './popup'
  30. let layerCache = {}
  31. let graphicsLayer = null
  32. let csqGraphicsLayer = null
  33. export default {
  34. name: 'LayerListView',
  35. data() {
  36. return {
  37. leftPanelHide: false,
  38. isExpanded: true,
  39. defaultProps: { children: 'children', label: 'label' },
  40. treeData: [
  41. {
  42. id: '1',
  43. label: '综合信息',
  44. children: [
  45. {
  46. id: '1-1',
  47. label: '生态区',
  48. children: [
  49. { id: '1-1-1', label: '提防背河坡脚线', meta: { type: 'polyline', url: '/sddnWeihe/geojson/提防背河坡脚线.geojson' } },
  50. { id: '1-1-2', label: '河道管理范围线', meta: { type: 'polyline', url: '/sddnWeihe/geojson/河道管理范围线.geojson' } },
  51. { id: '1-1-3', label: '一级管控区界限', meta: { type: 'polyline', url: '/sddnWeihe/geojson/一二级管控区界限.geojson' } },
  52. { id: '1-1-4', label: '生态区界限', meta: { type: 'polyline', url: '/sddnWeihe/geojson/生态区界限.geojson' } },
  53. { id: '1-1-5', label: '城市核心区', meta: { type: 'polyline', url: '/sddnWeihe/geojson/城市核心区.geojson' } },
  54. { id: '1-1-6', label: '农村区段', meta: { type: 'polyline', url: '/sddnWeihe/geojson/农村区段.geojson' } },
  55. { id: '1-1-8', label: '城市核心区(右岸)', meta: { type: 'polyline', url: '/sddnWeihe/geojson/城市核心区右岸.geojson' } },
  56. { id: '1-1-9', label: '农村区段(右岸)', meta: { type: 'polyline', url: '/sddnWeihe/geojson/农村区段右岸.geojson' } }
  57. ]
  58. },
  59. { id: '1-2', label: '监测设备', type: 'monitor' },
  60. {
  61. id: '1-3',
  62. label: '入河排水(污)口',
  63. children: [
  64. { id: '1-3-1', label: '兴平城市总排口', meta: { type: 'point', url: '/sddnWeihe/geojson/兴平城市总排口.geojson' } },
  65. { id: '1-3-2', label: '兴包企业集团工业废水排口', meta: { type: 'point', url: '/sddnWeihe/geojson/兴平城市总排口2.geojson' } },
  66. { id: '1-3-3', label: '新兴纺织园污水处理厂排口', meta: { type: 'point', url: '/sddnWeihe/geojson/新兴纺织园污水处理厂排口.geojson' } }
  67. ]
  68. },
  69. {
  70. id: '1-4',
  71. label: '河道管理站',
  72. children: [
  73. { id: '1-4-1', label: '庄头管理站', meta: { type: 'point', url: '/sddnWeihe/geojson/庄头管理站.geojson' } },
  74. { id: '1-4-2', label: '汤坊管理站', meta: { type: 'point', url: '/sddnWeihe/geojson/汤坊管理站.geojson' } },
  75. { id: '1-4-3', label: '阜寨管理站', meta: { type: 'point', url: '/sddnWeihe/geojson/阜寨管理站.geojson' } }
  76. ]
  77. }
  78. ]
  79. },
  80. {
  81. id: '2',
  82. label: '水文监测',
  83. children: [
  84. { id: '2-1', label: '水文监测点1', meta: { type: 'point', url: '/sddnWeihe/geojson/sw1.geojson' } },
  85. { id: '2-2', label: '水文监测点2', meta: { type: 'point', url: '/sddnWeihe/geojson/sw2.geojson' } }
  86. ]
  87. },
  88. {
  89. id: '3',
  90. label: '采砂区',
  91. children: [
  92. { id: '3-1', label: '兴平市宜空采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/宜空采砂区.geojson' } },
  93. { id: '3-2', label: '兴平市团结采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/团结采砂区.geojson' } },
  94. { id: '3-3', label: '兴平市汤坊龙兴1区采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/坊龙兴1区采砂区.geojson' } }
  95. ]
  96. },
  97. {
  98. id: '4',
  99. label: '防汛应急预案',
  100. type: 'plan',
  101. children: [
  102. { id: '4-1', type: 'plan', label: '2025年度渭河兴平段水灾害防御工作方案' },
  103. { id: '4-2', type: 'plan', label: '2025年度渭河水灾害防御工作方案' },
  104. { id: '4-3', type: 'plan', label: '陕西省防汛应急预案' }
  105. ]
  106. }
  107. ],
  108. mainMenu: '',
  109. checkedNodes: []
  110. }
  111. },
  112. created() {
  113. this.mainMenu = this.$route.params.menu
  114. this.getFloodPlanList()
  115. },
  116. mounted() {
  117. this.$globalEventBus.$on('toggleLeftPanel', (val) => {
  118. this.leftPanelHide = val
  119. })
  120. this.$globalEventBus.$on('closePlanDialog', (data) => {
  121. this.checkedNodes = []
  122. const ids = data.map((item) => item.id)
  123. this.cancelCheckNode(ids)
  124. })
  125. },
  126. watch: {
  127. mainMenu: {
  128. handler(val) {
  129. if (val === 'hydrologicInfo') {
  130. this.handleData(true)
  131. } else {
  132. this.handleData(false)
  133. }
  134. }
  135. }
  136. },
  137. methods: {
  138. //关闭防汛预案弹窗后取消选中
  139. cancelCheckNode(ids) {
  140. const currentCheckedKeys = this.$refs.treeRef.getCheckedKeys(true)
  141. const newArray = currentCheckedKeys.filter((item) => !ids.includes(item))
  142. this.$refs.treeRef.setCheckedKeys(newArray)
  143. },
  144. onExpandChange() {
  145. this.isExpanded = !this.isExpanded
  146. },
  147. async onCheckChange(node, checkData) {
  148. const { checkedKeys, checkedNodes } = checkData
  149. const id = node.id
  150. const isChecked = checkedKeys.includes(id)
  151. // 维护选中的预案节点
  152. this.checkedNodes = checkedNodes.filter((item) => item.type === 'plan' && !item.children)
  153. // ================== 选中 ==================
  154. if (isChecked) {
  155. if (node.type === 'plan') {
  156. this.$globalEventBus.$emit('showPlanDialog',{ list: this.checkedNodes })
  157. return
  158. }
  159. if (node.type === 'monitor') {
  160. if (graphicsLayer) {
  161. graphicsLayer.show = true
  162. } else {
  163. this.getMonitorData()
  164. }
  165. return
  166. }
  167. if (node.children?.length) {
  168. // 递归加载所有叶子节点
  169. await this.loadAllLeafLayers(node.children)
  170. return
  171. }
  172. if (node.meta?.url) {
  173. if (layerCache[id]) {
  174. layerCache[id].show = true
  175. } else {
  176. await this.loadGeoJsonLayer(node)
  177. if (node.type === 'csq') {
  178. this.getCsqLayer(node.label)
  179. }
  180. }
  181. }
  182. }
  183. // ================== 取消选中 ==================
  184. else {
  185. if (node.type === 'plan') {
  186. this.$globalEventBus.$emit('showPlanDialog', { list: this.checkedNodes })
  187. return
  188. }
  189. if (node.type === 'monitor') {
  190. this.removeMonitorData()
  191. return
  192. }
  193. if (node.children?.length) {
  194. // 递归删除所有叶子节点
  195. this.removeAllLeafLayers(node.children)
  196. return
  197. }
  198. if (node.type === 'csq') {
  199. this.removeCsqLayer(node.label)
  200. }
  201. this.removeLayer(id)
  202. }
  203. },
  204. // 批量加载叶子节点
  205. async loadAllLeafLayers(children) {
  206. for (const child of children) {
  207. if (child.children?.length) {
  208. await this.loadAllLeafLayers(child.children)
  209. } else if (child.meta?.url) {
  210. if (layerCache[child.id]) {
  211. layerCache[child.id].show = true
  212. } else {
  213. await this.loadGeoJsonLayer(child)
  214. if (child.type === 'csq') {
  215. this.getCsqLayer(child.label)
  216. }
  217. }
  218. }
  219. }
  220. },
  221. getFloodPlanList() {
  222. getFloodPreventionList().then((res) => {
  223. const newItems = res.data.records.map((item)=>({...item,type:"plan",label:item.planName}))
  224. this.treeData.forEach((item)=>{
  225. if(item.id == '4'){
  226. item.children = newItems
  227. }
  228. })
  229. })
  230. },
  231. // 批量删除叶子节点
  232. removeAllLeafLayers(children) {
  233. for (const child of children) {
  234. if (child.children?.length) {
  235. this.removeAllLeafLayers(child.children)
  236. } else {
  237. this.removeLayer(child.id)
  238. if (child.type === 'csq') {
  239. this.removeCsqLayer(child.label)
  240. }
  241. }
  242. }
  243. },
  244. // 删除图层的通用方法
  245. removeLayer(id) {
  246. if (layerCache[id]) {
  247. try {
  248. window.map.removeLayer(layerCache[id])
  249. } catch (e) {
  250. console.warn(`removeLayer failed: ${id}`, e)
  251. }
  252. delete layerCache[id]
  253. }
  254. },
  255. // 加载GeoJson图层的通用方法
  256. async loadGeoJsonLayer(node) {
  257. const id = node.id
  258. if (layerCache[id]) {
  259. layerCache[id].show = true
  260. return
  261. }
  262. this.$set(node, 'loading', true)
  263. this.$set(node, 'error', '')
  264. try {
  265. const layer = new mars3d.layer.GeoJsonLayer({
  266. id,
  267. name: node.label,
  268. url: node.meta.url,
  269. clampToGround: true,
  270. symbol: this.getStyleByName(node.label),
  271. flyTo: false
  272. })
  273. window.map.addLayer(layer)
  274. this.bindEvent(layer)
  275. layerCache[id] = layer
  276. // 父子关联
  277. const parent = this.$refs.treeRef.getNode(id).parent
  278. if (parent?.data?.id) {
  279. layer.options.parentId = parent.data.id
  280. }
  281. } catch (e) {
  282. this.$set(node, 'error', e.message || '加载失败')
  283. } finally {
  284. this.$set(node, 'loading', false)
  285. }
  286. },
  287. getStyleByName(name) {
  288. if (name === '生态区界限') {
  289. return { type: 'polyline', styleOptions: { color: '#0c5b0f', width: 2 } }
  290. } else if (name === '提防背河坡脚线') {
  291. return { type: 'polyline', styleOptions: { color: '#c53632', width: 2 } }
  292. } else if (name === '河道管理范围线') {
  293. return { type: 'polyline', styleOptions: { color: '#12641c', width: 2 } }
  294. } else if (name === '一级管控区界限') {
  295. return {
  296. type: 'polyline',
  297. styleOptions: { width: 2, materialType: mars3d.MaterialType.PolylineDash, materialOptions: { color: '#12641c', dashLength: 60 } }
  298. }
  299. } else if (name === '城市核心区' || name === '农村区段') {
  300. return {
  301. type: 'polygon',
  302. styleOptions: {
  303. color: '#194830',
  304. opacity: 0.6,
  305. outline: true,
  306. outlineWidth: 1,
  307. outlineColor: '#57e0a9'
  308. }
  309. }
  310. } else if (name === '城市核心区(右岸)' || name === '农村区段(右岸)') {
  311. return {
  312. type: 'polygon',
  313. styleOptions: {
  314. color: '#368d63',
  315. opacity: 0.3,
  316. outline: true,
  317. outlineWidth: 1,
  318. outlineColor: '#57e0a9'
  319. }
  320. }
  321. } else if (name.indexOf('水文') > -1) {
  322. const ptStyle = this.getPointStyle(name)
  323. return {
  324. type: 'billboard',
  325. styleOptions: {
  326. image: require('./image/水文站.png'),
  327. ...ptStyle
  328. }
  329. }
  330. } else if (name.indexOf('排口') > -1) {
  331. const ptStyle = this.getPointStyle(name)
  332. return {
  333. type: 'billboard',
  334. styleOptions: {
  335. image: require('./image/排污口.png'),
  336. ...ptStyle
  337. }
  338. }
  339. } else if (name.indexOf('管理站') > -1) {
  340. const ptStyle = this.getPointStyle(name)
  341. return {
  342. type: 'billboard',
  343. styleOptions: {
  344. image: require('./image/管理站.png'),
  345. ...ptStyle
  346. }
  347. }
  348. } else if (name.indexOf('采砂区') > -1) {
  349. return {
  350. type: 'polygon',
  351. styleOptions: {
  352. label: { text: name, font_size: 14, outline: true, outlineColor: '#000000', outlineWidth: 2 },
  353. clampToGround: true,
  354. materialType: this.mars3d.MaterialType.Grid,
  355. materialOptions: { color: '#cc9648', cellAlpha: 0.5 },
  356. outline: true,
  357. outlineWidth: 1,
  358. outlineColor: '#cc9648'
  359. }
  360. }
  361. }
  362. },
  363. getPointStyle(name) {
  364. return {
  365. scale: 0.8,
  366. label: { text: name, font_size: 14, outline: true, outlineColor: '#000000', outlineWidth: 2, pixelOffsetY: -60 },
  367. clampToGround: true,
  368. horizontalOrigin: this.Cesium.HorizontalOrigin.CENTER,
  369. verticalOrigin: this.Cesium.VerticalOrigin.BOTTOM,
  370. pixelOffset: new this.Cesium.Cartesian2(0, -6), // 偏移量
  371. distanceDisplayCondition: new this.Cesium.DistanceDisplayCondition(0.0, 500000) // 按视距显示
  372. }
  373. },
  374. // 处理水文站数据
  375. handleData(isShow) {
  376. const nodeIds = ['2-1', '2-2']
  377. this.$nextTick(() => {
  378. nodeIds.forEach((id) => {
  379. const node = this.$refs.treeRef.getNode(id)
  380. if (!node) return
  381. // 直接修改 checked 状态
  382. this.$refs.treeRef.setChecked(node, isShow)
  383. // 手动触发 check 事件
  384. this.$refs.treeRef.$emit(
  385. 'check',
  386. node.data, // 选中的节点数据
  387. {
  388. checkedKeys: this.$refs.treeRef.getCheckedKeys(),
  389. checkedNodes: this.$refs.treeRef.getCheckedNodes()
  390. }
  391. )
  392. })
  393. })
  394. },
  395. // 绑定点击事件
  396. bindEvent(layer) {
  397. const _that = this
  398. if (layer.id === '2-1' || layer.id === '2-2') {
  399. layer.on(mars3d.EventType.click, function (event) {
  400. _that.$globalEventBus.$emit('clickWaterStation', event)
  401. })
  402. } else if (['1-3-1', '1-3-2', '1-3-3'].includes(layer.id)) {
  403. layer.bindPopup(
  404. function (event) {
  405. window.closePopupA = function () {
  406. event.graphic.closePopup()
  407. }
  408. const popupHtml = getPwkPopup(layer.id)
  409. return popupHtml
  410. },
  411. { template: false, offsetY: 0 }
  412. )
  413. } else if (['1-4-1', '1-4-2', '1-4-3'].includes(layer.id)) {
  414. layer.bindPopup(
  415. function (event) {
  416. window.closePopupA = function () {
  417. event.graphic.closePopup()
  418. }
  419. const popupHtml = getSitePopup(layer.id)
  420. return popupHtml
  421. },
  422. { template: false, offsetY: 0 }
  423. )
  424. }
  425. },
  426. getMonitorData() {
  427. graphicsLayer = new this.mars3d.layer.GraphicLayer()
  428. window.map.addLayer(graphicsLayer)
  429. window.requestSDK('/sddnWeiHe/device/deviceSimpleList', { pageNum: 1, pageSize: 10, platFlag: '1', operType: '0' }, {}, 'post').then((res) => {
  430. const data = res.data
  431. if (data) {
  432. data.forEach((point, index) => {
  433. const graphic = new mars3d.graphic.BillboardEntity({
  434. position: [point.longitude, point.latitude],
  435. style: {
  436. image: require('./image/camera.png'),
  437. scale: 0.8,
  438. clampToGround: true,
  439. horizontalOrigin: this.Cesium.HorizontalOrigin.CENTER,
  440. verticalOrigin: this.Cesium.VerticalOrigin.BOTTOM,
  441. pixelOffset: new this.Cesium.Cartesian2(0, -6), // 偏移量
  442. distanceDisplayCondition: new this.Cesium.DistanceDisplayCondition(0.0, 500000) // 按视距显示
  443. },
  444. attr: { ...point }
  445. })
  446. //添加可视化区域
  447. const sector = new this.mars3d.graphic.CircleEntity({
  448. id: 'sector_' + index,
  449. positions: [[point.longitude, point.latitude, 0]],
  450. style: {
  451. radius: 3000,
  452. color: '#32edda',
  453. opacity: 0.35,
  454. outline: true,
  455. outlineWidth: 1,
  456. outlineColor: '#32edda',
  457. visibleDepth: false,
  458. clampToGround: true
  459. },
  460. attr: { ...point }
  461. })
  462. graphicsLayer.addGraphic(sector)
  463. graphicsLayer.addGraphic(graphic)
  464. let that = this
  465. graphic.on(this.mars3d.EventType.click, function () {
  466. const pointData = graphic.attr
  467. that.fetchUrl(pointData).then((res) => {
  468. if (res.code == 4001) {
  469. that.$message.warning(JSON.parse(res.msg).resultMsg)
  470. } else if (res.code == 400) {
  471. that.$message.error(res.msg)
  472. } else {
  473. const url = res.data.streamUrl
  474. that.$set(pointData, 'url', url)
  475. that.$globalEventBus.$emit('clickVideoPlay', { point: pointData, visible: true, type: 'click' })
  476. }
  477. })
  478. })
  479. })
  480. }
  481. })
  482. },
  483. fetchUrl(item) {
  484. return new Promise((resolve, reject) => {
  485. window
  486. .requestSDK(
  487. '/ttvideo/video/player/getVideoRealtimeUrl',
  488. {
  489. deviceCode: item.deviceCode,
  490. channelCode: item.channelCode,
  491. netType: 2,
  492. protocolType: 9,
  493. streamType: 1
  494. },
  495. {},
  496. 'post'
  497. )
  498. .then(async (res) => {
  499. resolve(res)
  500. })
  501. })
  502. },
  503. removeMonitorData() {
  504. if (graphicsLayer) {
  505. graphicsLayer.show = false
  506. // window.map.removeLayer(graphicsLayer)
  507. }
  508. },
  509. // 采砂区柱状图
  510. getCsqLayer(name) {
  511. const coorList = {
  512. 兴平市宜空采砂区: [108.352091, 34.202407, 100],
  513. 兴平市团结采砂区: [108.360076, 34.20512, 100],
  514. 兴平市汤坊龙兴1区采砂区: [108.474301, 34.21255, 100]
  515. }
  516. const lengthList = {
  517. 兴平市宜空采砂区: 300,
  518. 兴平市团结采砂区: 500,
  519. 兴平市汤坊龙兴1区采砂区: 600
  520. }
  521. if (csqGraphicsLayer) {
  522. csqGraphicsLayer.show = true
  523. } else {
  524. csqGraphicsLayer = new this.mars3d.layer.GraphicLayer()
  525. window.map.addLayer(csqGraphicsLayer)
  526. }
  527. const position = coorList[name]
  528. const graphic = new this.mars3d.graphic.CylinderEntity({
  529. id: name,
  530. position,
  531. style: {
  532. length: lengthList[name],
  533. topRadius: 20.0,
  534. bottomRadius: 20.0,
  535. color: '#85bc68',
  536. opacity: 0.45,
  537. clampToGround: true
  538. }
  539. })
  540. csqGraphicsLayer.addGraphic(graphic)
  541. },
  542. removeCsqLayer(name) {
  543. if (csqGraphicsLayer) {
  544. const graphic = csqGraphicsLayer.getGraphicById(name)
  545. csqGraphicsLayer.removeGraphic(graphic)
  546. }
  547. }
  548. },
  549. destroyed() {
  550. this.$globalEventBus.$off('closePlanDialog')
  551. this.$globalEventBus.$off('toggleLeftPanel')
  552. // 把图层上绑定的事件也清掉
  553. Object.values(layerCache).forEach((l) => l.off('click'))
  554. window.map.removeLayer(graphicsLayer)
  555. graphicsLayer = null
  556. window.map.removeLayer(csqGraphicsLayer)
  557. csqGraphicsLayer = null
  558. }
  559. }
  560. </script>
  561. <style lang="scss" scoped>
  562. .layer-list-panel {
  563. position: absolute;
  564. top: px-to-rem(80);
  565. left: px-to-rem(480);
  566. width: px-to-rem(240);
  567. padding: px-to-rem(10);
  568. background: #1b2535;
  569. border-radius: 6px;
  570. opacity: 0.85;
  571. z-index: 1000;
  572. transition: left 0.3s ease-in-out;
  573. .layer-list-panel-title {
  574. margin-bottom: px-to-rem(10);
  575. height: px-to-rem(30);
  576. line-height: px-to-rem(30);
  577. display: flex;
  578. justify-content: space-between;
  579. align-items: center;
  580. .title {
  581. display: flex;
  582. justify-content: center;
  583. align-items: center;
  584. font-size: px-to-rem(18);
  585. color: #eaf3fe;
  586. }
  587. }
  588. .layer-list-panel-content {
  589. margin: px-to-rem(-10);
  590. padding: px-to-rem(10);
  591. max-height: px-to-rem(340);
  592. overflow: auto;
  593. :deep(.el-tree) {
  594. background: transparent;
  595. color: #fff;
  596. .el-tree-node__content {
  597. height: unset;
  598. }
  599. .el-tree-node__content:hover,
  600. .el-upload-list__item:hover,
  601. .el-tree-node:focus > .el-tree-node__content {
  602. background-color: transparent;
  603. height: unset;
  604. }
  605. .el-tree-node__label {
  606. white-space: wrap;
  607. }
  608. }
  609. .custom-tree-node {
  610. font-size: px-to-rem(16);
  611. overflow: hidden;
  612. white-space: nowrap;
  613. text-overflow: ellipsis;
  614. }
  615. }
  616. }
  617. .fix-layer-list-panel {
  618. left: px-to-rem(20);
  619. }
  620. </style>