index.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. <!-- 底图 -->
  2. <template>
  3. <div id='floor_base' v-loading='loading' ref='graphy'>
  4. <canvas :id='`canvas${id}`' :width='canvasWidth' :height='canvasHeight' tabindex='0'></canvas>
  5. <!-- 地图底部操作按钮 -->
  6. <div class='strip-bottom'>
  7. <canvasFun @fit='fit' @savePng='savePng' @saveSvg='saveSvg' @saveJson='saveJson' @scale='scale' @showText='showText' ref='canvasFun'></canvasFun>
  8. </div>
  9. <room-box ref='boxRoom'></room-box>
  10. <el-popover ref="popover" placement="right" trigger="manual" v-model="visible" width="380">
  11. <div style="text-align: right;">
  12. <span style="float: left;">对应的工程信息化信息</span>
  13. <el-link icon="el-icon-close" :underline="false" @click="visible = false"></el-link>
  14. </div>
  15. <el-tabs v-model="activeName" @tab-click="handleClickTab">
  16. <el-tab-pane v-if="tabData.tableData.length" label="设备设施" name="equip">
  17. <el-table :data="tabData.tableData" max-height="235" style="width: 100%">
  18. <el-table-column prop="id" width="80" label="设备内码" :show-overflow-tooltip='true'></el-table-column>
  19. <el-table-column prop="name" label="设备简称" width="208" :show-overflow-tooltip='true'></el-table-column>
  20. <el-table-column label="操作" width="50">
  21. <template slot-scope="scope">
  22. <el-button @click="handleClickEquipDetail(scope.row)" type="text" size="small">查看</el-button>
  23. </template>
  24. </el-table-column>
  25. </el-table>
  26. <!-- <div style="text-align: right; margin-top: 10px;">
  27. <el-button size="mini" type="primary" @click="visible = false">查看详情</el-button>
  28. </div> -->
  29. </el-tab-pane>
  30. <el-tab-pane v-if="tabData.pointData.length" label="位置" name="point">
  31. <ul class="pointList">
  32. <li v-for="point in tabData.pointData" :key="point.id">
  33. <span :title="point.name">{{point.name}}</span>
  34. <a @click="handleClickPointDeatil(point)">查看</a>
  35. </li>
  36. </ul>
  37. <div style="text-align: right; margin-top: 10px;" v-show="showBtnWell">
  38. <el-button size="mini" type="primary" @click="handleClickHightLight(tabData.pointData)">查看控制商铺范围</el-button>
  39. </div>
  40. </el-tab-pane>
  41. </el-tabs>
  42. </el-popover>
  43. <span class="popStyle" :style="popoverPosition" v-popover:popover></span>
  44. </div>
  45. </template>
  46. <script>
  47. import { SFengParser } from '@saga-web/feng-map'
  48. import { SFloorParser, ItemOrder, ItemColor } from '@saga-web/big'
  49. import { FloorView } from '@/lib/FloorView'
  50. import { FloorScene } from '@/lib/FloorScene'
  51. import RoomBox from '@/views/room/index'
  52. import canvasFun from '@/components/floorMap/canvasFun'
  53. import { readGroup, queryStatis } from '@/api/public'
  54. import { queryShops } from '@/api/equipmentList.js'
  55. import { STopologyParser } from '@/lib/parsers/STopologyParser'
  56. import { mapGetters, mapActions } from 'vuex'
  57. import { SImageItem, SImageShowType } from '@saga-web/graph/lib'
  58. import { SColor } from '@saga-web/draw/lib'
  59. import bus from '@/utils/bus.js'
  60. // import { uuid } from "@/components/mapClass/until";
  61. export default {
  62. data() {
  63. return {
  64. appName: '万达可视化系统',
  65. key: '23f30a832a862c58637a4aadbf50a566',
  66. mapServerURL: `http://map.wanda.cn/editor`,
  67. canvasWidth: 600,
  68. canvasHeight: 800,
  69. loading: false, // 限制重复查询
  70. view: null,
  71. urlMsg: {},
  72. canvasID: 'canvas',
  73. floorid: '', //楼层id
  74. topologyParser: null, // 解析器数据
  75. fParser: null, // 底图解析器
  76. wellMap: {}, // 电井控制商铺映射
  77. activeName: "equip",
  78. popoverPosition: {
  79. top: 0,
  80. left: 0
  81. },
  82. visible: false,
  83. tabData: {
  84. tableData: [],
  85. pointData: []
  86. },
  87. showBtnWell: false
  88. }
  89. },
  90. props: {
  91. id: {
  92. default: '1',
  93. type: String
  94. },
  95. categoryId: {
  96. default: '',
  97. type: String
  98. },
  99. // 弹窗高度,适配底图高度使用
  100. modalHeight: {
  101. type: [Number, undefined],
  102. default: undefined
  103. },
  104. loadName: null,
  105. type: null
  106. },
  107. components: { RoomBox, canvasFun },
  108. computed: {
  109. ...mapGetters(['plazaId', 'fmapID', 'haveFengMap', 'bunkObj'])
  110. },
  111. methods: {
  112. handleClickLegendItem(item, events) {
  113. this.tabData = {tableData: [], pointData: []};
  114. this.showBtnWell = false;
  115. this.visible = false;
  116. console.log(item)
  117. if (item.data.AttachObjectIds && item.data.AttachObjectIds.length) {
  118. const e = events[0];
  119. item.data.AttachObjectIds.forEach(v => {
  120. if (v.type == "Image") {
  121. this.tabData.tableData.push(v);
  122. } else if (v.type == "Zone") {
  123. this.tabData.pointData.push(v);
  124. }
  125. })
  126. this.activeName = this.tabData.tableData.length?"equip":"point";
  127. this.popoverPosition.top = `${e.clientY}px`;
  128. this.popoverPosition.left = `${e.clientX}px`;
  129. this.$nextTick(() => {
  130. if (this.tabData.tableData.length && !this.tabData.pointData.length) { //只绑定了设备
  131. if (this.tabData.tableData.length == 1) { //绑定了一个设备(跳详情)
  132. } else { //绑定了多个设备(跳表格)
  133. }
  134. } else if (!this.tabData.tableData.length && this.tabData.pointData.length) { //只绑定了位置
  135. if (
  136. item.data.GraphElementId == '100050' ||
  137. item.data.GraphElementId == '100055' ||
  138. item.data.GraphElementId == '100056' ||
  139. item.data.GraphElementId == '100057'
  140. ) { //判断是否为电井
  141. this.visible = true;
  142. this.showBtnWell = true;
  143. } else {
  144. if (this.tabData.pointData.length == 1) { //不是电井并且只绑定了一个位置(跳详情)
  145. } else {
  146. this.visible = true;
  147. }
  148. }
  149. } else if (this.tabData.tableData.length && this.tabData.pointData.length) { //既绑定了设备又绑定了位置
  150. this.visible = true;
  151. }
  152. })
  153. }
  154. },
  155. // 切换浮层tab
  156. handleClickTab() {
  157. },
  158. // 查看浮层设备详情
  159. handleClickEquipDetail(equip) {},
  160. // 查看浮层位置详情
  161. handleClickPointDeatil(point) {},
  162. handleClickHightLight(pointData) {
  163. this.clearHightLight();
  164. pointData.forEach(point => {
  165. let location = point.id ? point.id : '';
  166. if (this.wellMap.hasOwnProperty(location)) {
  167. this.wellMap[location].forEach(item => {
  168. item.highLightFlag = true;
  169. item.zOrder = 30;
  170. })
  171. } else {
  172. let getParams = {
  173. plazaId: this.plazaId,
  174. floor: this.floorid,
  175. keyword: `${location}:wellnum;`
  176. }
  177. queryShops({ getParams }).then(res => {
  178. let shopsnumList = []
  179. let shopsnumItemList = []
  180. if (res.data && res.data.length) {
  181. for (let floor in res.data[0]) {
  182. if (res.data[0][floor].length) {
  183. res.data[0][floor].forEach(v => {
  184. shopsnumList = shopsnumList.concat(v.shopsnumList.split(','))
  185. })
  186. }
  187. }
  188. }
  189. if (shopsnumList.length) {
  190. this.fParser.spaceList.forEach(item => {
  191. if (shopsnumList.findIndex(name => name == item.data.Name) != -1) {
  192. item.highLightFlag = true
  193. item.zOrder = 30
  194. shopsnumItemList.push(item)
  195. }
  196. })
  197. this.wellMap[location] = shopsnumItemList
  198. }
  199. })
  200. }
  201. });
  202. this.visible = false;
  203. },
  204. ...mapActions(['getfmapID']),
  205. init(floorid) {
  206. this.loading = true
  207. this.floorid = floorid
  208. this.mapSize()
  209. this.$refs.canvasFun.isShow = false
  210. setTimeout(() => {
  211. this.clearGraphy()
  212. this.scene = new FloorScene()
  213. if (this.haveFengMap == 1) {
  214. this.scene.selectContainer.connect('listChange', this, this.listChange)
  215. if (this.canvasID != `canvas${this.id}`) {
  216. this.canvasID = `canvas${this.id}`
  217. }
  218. this.parserData(floorid)
  219. } else if (this.haveFengMap == 0) {
  220. this.view.scene = this.scene
  221. this.readGraph()
  222. } else {
  223. this.loading = false
  224. }
  225. }, 100)
  226. },
  227. parserData(floor) {
  228. if (floor == 'g80') {
  229. // 屋顶
  230. if (window.fengmapData.frImg) {
  231. let imgItem = new SImageItem(null, `${this.mapServerURL}/webtheme/${this.fmapID}/${window.fengmapData.frImg}`)
  232. imgItem.showType = SImageShowType.AutoFit
  233. imgItem.connect('imgLoadOver', this, () => {
  234. this.readGraph()
  235. })
  236. this.scene.addItem(imgItem)
  237. this.view.scene = this.scene
  238. // this.view.fitSceneToView()
  239. }
  240. } else {
  241. if (window.fengmapData.gnameToGid[floor]) {
  242. window.fengmapData.parseData(window.fengmapData.gnameToGid[floor], res => {
  243. if (res.err) {
  244. console.log('errr', res.err)
  245. return
  246. }
  247. this.fParser = new SFloorParser(null)
  248. this.fParser.parseData(res)
  249. this.fParser.spaceList.forEach(t => {
  250. this.scene.addItem(t)
  251. t.nameSize = 12
  252. t.nameColor = '#2a2a2a'
  253. if (t.data.Name && this.bunkObj[t.data.Name]) {
  254. t.name = this.bunkObj[t.data.Name].brandname
  255. } else {
  256. // t.name = t.data.Name
  257. t.name = ''
  258. }
  259. })
  260. this.fParser.wallList.forEach(t => this.scene.addItem(t))
  261. this.fParser.virtualWallList.forEach(t => this.scene.addItem(t))
  262. this.fParser.doorList.forEach(t => this.scene.addItem(t))
  263. this.fParser.columnList.forEach(t => this.scene.addItem(t))
  264. this.fParser.casementList.forEach(t => this.scene.addItem(t))
  265. this.view.scene = this.scene
  266. // this.view.fitSceneToView()
  267. this.readGraph()
  268. })
  269. } else {
  270. console.log('楼层不正确')
  271. }
  272. }
  273. },
  274. readGraph() {
  275. this.readGroup(this.floorid)
  276. .then(data => {
  277. if (data.Result == 'failure') {
  278. this.$store.commit('SETISMESSAGE', false)
  279. this.view.fitSceneToView()
  280. this.view.minScale = this.view.scale
  281. if (this.$refs.canvasFun) {
  282. this.$refs.canvasFun.everyScale = this.view.scale
  283. }
  284. this.loading = false
  285. return
  286. } else {
  287. if (
  288. data.Data[0].Elements.Nodes.length === 0 &&
  289. data.Data[0].Elements.Markers.length === 0 &&
  290. data.Data[0].Elements.Relations.length === 0
  291. ) {
  292. this.$store.commit('SETISMESSAGE', false)
  293. } else {
  294. this.$store.commit('SETISMESSAGE', true)
  295. }
  296. }
  297. // 无返回Data处理
  298. if (!(data.Data && data.Data.length)) {
  299. this.view.fitSceneToView()
  300. this.view.minScale = this.view.scale
  301. if (this.$refs.canvasFun) {
  302. this.$refs.canvasFun.everyScale = this.view.scale
  303. }
  304. return false
  305. }
  306. // 请求回来的备注
  307. if (data.Data && data.Data[0].Note) {
  308. let note = data.Data[0].Note
  309. bus.$emit('queryRemarksMethods', note)
  310. } else {
  311. bus.$emit('queryRemarksMethods', '')
  312. }
  313. //土建装饰的图例展示
  314. if (this.$cookie.get('categoryId') == 'SCPZ') {
  315. let scpzTable = [],
  316. arr = []
  317. scpzTable = data.Data[0].Elements.Nodes || []
  318. console.log(scpzTable)
  319. if (scpzTable.length > 0) {
  320. scpzTable.forEach(e => {
  321. if (e.Properties.ItemExplain) {
  322. let obj = e
  323. arr.push(obj)
  324. }
  325. })
  326. }
  327. console.log(arr)
  328. this.$store.commit('SETSCPZTABLE', arr)
  329. }
  330. if (data.Data[0].Elements.Nodes.length > 0) {
  331. this.$store.commit('SETTYPENUM', '')
  332. let Lengd = data.Data[0].Elements.Nodes
  333. Lengd.forEach(el => {
  334. if (el.Type == 'Image' && el.Num > 1) {
  335. this.$store.commit('SETTYPENUM', el.Num)
  336. }
  337. })
  338. }
  339. // 放到后边 $cookie graphId
  340. this.$cookie.set('graphId', data.Data[0].ID, 3)
  341. if (this.$cookie.get('graphId')) {
  342. // 得到graphId 就请求图例
  343. // 除土建装饰之外的图例展示 包括楼层功能
  344. bus.$emit('queryViewMethods')
  345. }
  346. this.topologyParser = new STopologyParser(null)
  347. this.topologyParser.parseData(data.Data[0].Elements)
  348. // 多边形
  349. this.topologyParser.zoneLegendList.forEach(t => {
  350. this.scene.addItem(t)
  351. t.connect("legendItemClick", t, this.handleClickLegendItem);
  352. })
  353. // 增加文字
  354. this.topologyParser.textMarkerList.forEach(t => {
  355. this.scene.addItem(t)
  356. })
  357. // 增加图片
  358. this.topologyParser.imageMarkerList.forEach(t => {
  359. this.scene.addItem(t)
  360. })
  361. // 增加直线
  362. this.topologyParser.lineMarkerList.forEach(t => {
  363. this.scene.addItem(t)
  364. })
  365. // 增加图标类图例
  366. this.topologyParser.imageLegendList.forEach(t => {
  367. this.scene.addItem(t)
  368. t.connect("legendItemClick", t, this.handleClickLegendItem);
  369. })
  370. // 增加管线类
  371. // 增加图标类图例
  372. this.topologyParser.relationList.forEach(t => {
  373. t.selectable = true
  374. this.scene.addItem(t)
  375. t.connect("legendItemClick", t, this.handleClickLegendItem);
  376. })
  377. this.view.fitSceneToView()
  378. this.view.minScale = this.view.scale
  379. if (this.$refs.canvasFun) {
  380. this.$refs.canvasFun.everyScale = this.view.scale
  381. }
  382. this.loading = false
  383. })
  384. .catch(() => {
  385. this.loading = false
  386. })
  387. },
  388. clearGraphy() {
  389. if (this.view) {
  390. this.view.scene = null
  391. return
  392. }
  393. this.view = new FloorView(`canvas${this.id}`)
  394. },
  395. listChange(item, ev) {
  396. if (ev[0].length) {
  397. let selectItem1 = ev[0][0],
  398. location = selectItem1.data.AttachObjectIds[0] ? selectItem1.data.AttachObjectIds[0].id : ''
  399. // 空间类型都可打开弹窗(除防火分区 编号100131,商管办公室 编号100112,铺装石材 编号100129)
  400. if (selectItem1.data.GraphElementType == 'Zone') {
  401. if (
  402. selectItem1.data.GraphElementId != '100131' &&
  403. selectItem1.data.GraphElementId != '100112' &&
  404. selectItem1.data.GraphElementId != '100129'
  405. ) {
  406. if (location) {
  407. this.$refs.boxRoom.open({ name: selectItem1.name, type: this.type, location: location })
  408. }
  409. }
  410. }
  411. // // 选中电井设置电井关联的商铺高亮
  412. // this.setHightLight(ev[0])
  413. }
  414. // else {
  415. this.clearHightLight()
  416. // }
  417. },
  418. // 选中电井关联的商铺高亮
  419. setHightLight(arr) {
  420. this.clearHightLight()
  421. arr.forEach(item => {
  422. let location = item.data.AttachObjectIds[0] ? item.data.AttachObjectIds[0].id : ''
  423. // 添加了位置类型并且选中的类型为电井类型
  424. if (
  425. (item.data.GraphElementId == '100050' ||
  426. item.data.GraphElementId == '100055' ||
  427. item.data.GraphElementId == '100056' ||
  428. item.data.GraphElementId == '100057') &&
  429. location
  430. ) {
  431. if (this.wellMap.hasOwnProperty(location)) {
  432. this.wellMap[location].forEach(item => {
  433. item.highLightFlag = true
  434. item.zOrder = 30
  435. })
  436. } else {
  437. let getParams = {
  438. plazaId: this.plazaId,
  439. floor: this.floorid,
  440. keyword: `${location}:wellnum;`
  441. }
  442. queryShops({ getParams }).then(res => {
  443. let shopsnumList = []
  444. let shopsnumItemList = []
  445. if (res.data && res.data.length) {
  446. for (let floor in res.data[0]) {
  447. if (res.data[0][floor].length) {
  448. res.data[0][floor].forEach(v => {
  449. shopsnumList = shopsnumList.concat(v.shopsnumList.split(','))
  450. })
  451. }
  452. }
  453. }
  454. if (shopsnumList.length) {
  455. this.fParser.spaceList.forEach(item => {
  456. if (shopsnumList.findIndex(name => name == item.data.Name) != -1) {
  457. item.highLightFlag = true
  458. item.zOrder = 30
  459. shopsnumItemList.push(item)
  460. }
  461. })
  462. this.wellMap[location] = shopsnumItemList
  463. }
  464. })
  465. }
  466. }
  467. })
  468. },
  469. // 清除电井关联商铺的高亮状态
  470. clearHightLight() {
  471. ItemColor.spaceHighColor = new SColor('#FBF2CC')
  472. for (let key in this.wellMap) {
  473. this.wellMap[key].forEach(item => {
  474. item.highLightFlag = false
  475. item.zOrder = ItemOrder.spaceOrder
  476. })
  477. }
  478. },
  479. // 适配底图到窗口
  480. fit() {
  481. this.view.fitSceneToView()
  482. },
  483. // 保存为png
  484. savePng() {
  485. // this.view.saveImage(`${this.loadName}.png`, 'png')
  486. this.view.saveImageSize(`${this.loadName}.png`, 'png', 1920 * 2, 1080 * 2)
  487. //console.log(`${this.loadName}.png`)
  488. },
  489. // 保存为svg
  490. saveSvg() {
  491. this.view.saveSceneSvg(`${this.loadName}.svg`, 6400, 4800)
  492. },
  493. // 保存为json
  494. saveJson() {
  495. this.view.saveFloorJson(`${this.loadName}.json`)
  496. },
  497. // 缩放
  498. scale(val) {
  499. if (!this.view) {
  500. return
  501. }
  502. let scale = this.view.scale
  503. this.view.scaleByPoint(val / scale, this.canvasWidth / 2, this.canvasHeight / 2)
  504. },
  505. // 小眼睛控制显示铺位名称
  506. showText(val) {
  507. // this.topologyParser.zoneLegendList.forEach(t => {
  508. // t.showText = val
  509. // })
  510. this.fParser.spaceList.forEach(t => {
  511. t.showBaseName = val
  512. })
  513. },
  514. // 读取数据
  515. readGroup(FloorID) {
  516. const data = {
  517. BuildingID: '1',
  518. FloorID: FloorID,
  519. categoryId: this.categoryId ? this.categoryId : this.$cookie.get('categoryId'),
  520. projectId: this.urlMsg.ProjectID,
  521. Pub: true
  522. }
  523. return readGroup(data)
  524. },
  525. // 地图尺寸
  526. mapSize() {
  527. this.canvasWidth = this.$refs.graphy.offsetWidth
  528. if (window.screen.height == '768') {
  529. this.canvasHeight = this.$refs.graphy.offsetHeight - 100
  530. } else {
  531. this.canvasHeight = 900
  532. }
  533. // 弹窗中底图高度适配
  534. if (this.modalHeight) {
  535. this.canvasHeight = this.modalHeight
  536. }
  537. },
  538. getEvent() {
  539. bus.$on('changeShow', res => {
  540. this.topologyParser &&
  541. this.topologyParser.zoneLegendList.forEach(t => {
  542. let id = t.data.GraphElementId
  543. t.maskFlag = !(res.indexOf(id) > -1)
  544. })
  545. // this.topologyParser.textMarkerList.forEach(t => {
  546. // let id = t.data.GraphElementId
  547. // t.maskFlag = !(res.indexOf(id) > -1)
  548. // })
  549. // this.topologyParser.imageMarkerList.forEach(t => {
  550. // let id = t.data.GraphElementId
  551. // t.maskFlag = !(res.indexOf(id) > -1)
  552. // })
  553. // this.topologyParser.lineMarkerList.forEach(t => {
  554. // let id = t.data.GraphElementId
  555. // t.maskFlag = !(res.indexOf(id) > -1)
  556. // })
  557. this.topologyParser &&
  558. this.topologyParser.imageLegendList.forEach(t => {
  559. let id = t.data.GraphElementId
  560. t.maskFlag = !(res.indexOf(id) > -1)
  561. })
  562. this.topologyParser &&
  563. this.topologyParser.relationList.forEach(t => {
  564. let id = t.data.GraphElementId || t.data.GraphElementID
  565. t.maskFlag = !(res.indexOf(id) > -1)
  566. })
  567. })
  568. }
  569. },
  570. watch: {
  571. 'view.scale': {
  572. handler(n) {
  573. if (this.$refs.canvasFun) {
  574. let s = (n * 10) / this.view.minScale
  575. this.$refs.canvasFun.sliderVal = s > 1000 ? 1000 : s
  576. }
  577. }
  578. },
  579. haveFengMap() {
  580. this.init(this.floorid)
  581. }
  582. },
  583. mounted() {
  584. this.mapSize()
  585. this.getEvent()
  586. },
  587. created() {
  588. this.urlMsg = {
  589. categoryId: this.$cookie.get('categoryId'),
  590. ProjectID: this.plazaId,
  591. BuildingID: '1',
  592. FloorID: this.$cookie.get('floorMapId') || 'f1',
  593. fmapID: this.fmapID
  594. }
  595. }
  596. }
  597. </script>
  598. <style lang="less" scoped>
  599. #floor_base {
  600. position: relative;
  601. height: 100%;
  602. .fengMap {
  603. position: fixed;
  604. width: 100px;
  605. height: 100px;
  606. z-index: -1;
  607. }
  608. .strip-bottom {
  609. position: absolute;
  610. right: 0;
  611. bottom: 40px;
  612. width: 100%;
  613. }
  614. .popStyle {
  615. position: fixed;
  616. }
  617. }
  618. </style>
  619. <style lang="less">
  620. a:hover {
  621. text-decoration: none;
  622. }
  623. .el-popover {
  624. .pointList {
  625. max-height: 235px;
  626. overflow-y: auto;
  627. text-align: right;
  628. li {
  629. height: 38px;
  630. line-height: 38px;
  631. padding: 0 12px;
  632. cursor: pointer;
  633. border-bottom: 1px solid rgba(0,0,0,0.06);
  634. span {
  635. float: left;
  636. width: 260px;
  637. text-align: left;
  638. overflow: hidden;
  639. text-overflow: ellipsis;
  640. white-space: nowrap;
  641. }
  642. a {
  643. font-size: 13px;
  644. }
  645. }
  646. li:hover {
  647. background-color: #F5F6F7;
  648. }
  649. }
  650. }
  651. </style>