index.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  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. activeItem: null,
  88. showBtnWell: false
  89. }
  90. },
  91. props: {
  92. id: {
  93. default: '1',
  94. type: String
  95. },
  96. categoryId: {
  97. default: '',
  98. type: String
  99. },
  100. // 弹窗高度,适配底图高度使用
  101. modalHeight: {
  102. type: [Number, undefined],
  103. default: undefined
  104. },
  105. loadName: null,
  106. type: null
  107. },
  108. components: { RoomBox, canvasFun },
  109. computed: {
  110. ...mapGetters(['plazaId', 'fmapID', 'haveFengMap', 'bunkObj'])
  111. },
  112. methods: {
  113. handleClickLegendItem(item, events) {
  114. this.tabData = {tableData: [], pointData: []};
  115. this.showBtnWell = false;
  116. this.visible = false;
  117. this.activeItem = null;
  118. console.log(item)
  119. if (item.data.AttachObjectIds && item.data.AttachObjectIds.length) {
  120. const e = events[0];
  121. this.activeItem = item;
  122. item.data.AttachObjectIds.forEach(v => {
  123. if (v.type == "Image") {
  124. this.tabData.tableData.push(v);
  125. } else if (v.type == "Zone") {
  126. this.tabData.pointData.push(v);
  127. }
  128. })
  129. this.activeName = this.tabData.tableData.length?"equip":"point";
  130. this.popoverPosition.top = `${e.clientY}px`;
  131. this.popoverPosition.left = `${e.clientX}px`;
  132. this.$nextTick(() => {
  133. if (
  134. item.data.GraphElementId == '100050' ||
  135. item.data.GraphElementId == '100055' ||
  136. item.data.GraphElementId == '100056' ||
  137. item.data.GraphElementId == '100057'
  138. ) { //判断是否为电井
  139. this.showBtnWell = true;
  140. }
  141. this.visible = true;
  142. })
  143. }
  144. },
  145. // 切换浮层tab
  146. handleClickTab() {
  147. },
  148. // 查看浮层设备详情
  149. handleClickEquipDetail(equip) {},
  150. // 查看浮层位置详情
  151. handleClickPointDeatil(point) {
  152. if (point.id && this.activeItem)
  153. this.$refs.boxRoom.open({ name: this.activeItem.name, type: this.type, location: point.id });
  154. },
  155. handleClickHightLight(pointData) {
  156. this.clearHightLight();
  157. pointData.forEach(point => {
  158. let location = point.id ? point.id : '';
  159. if (this.wellMap.hasOwnProperty(location)) {
  160. this.wellMap[location].forEach(item => {
  161. item.highLightFlag = true;
  162. item.zOrder = 30;
  163. })
  164. } else {
  165. let getParams = {
  166. plazaId: this.plazaId,
  167. floor: this.floorid,
  168. keyword: `${location}:wellnum;`
  169. }
  170. queryShops({ getParams }).then(res => {
  171. let shopsnumList = []
  172. let shopsnumItemList = []
  173. if (res.data && res.data.length) {
  174. for (let floor in res.data[0]) {
  175. if (res.data[0][floor].length) {
  176. res.data[0][floor].forEach(v => {
  177. shopsnumList = shopsnumList.concat(v.shopsnumList.split(','))
  178. })
  179. }
  180. }
  181. }
  182. if (shopsnumList.length) {
  183. this.fParser.spaceList.forEach(item => {
  184. if (shopsnumList.findIndex(name => name == item.data.Name) != -1) {
  185. item.highLightFlag = true
  186. item.zOrder = 30
  187. shopsnumItemList.push(item)
  188. }
  189. })
  190. this.wellMap[location] = shopsnumItemList
  191. }
  192. })
  193. }
  194. });
  195. this.visible = false;
  196. },
  197. ...mapActions(['getfmapID']),
  198. init(floorid) {
  199. this.loading = true
  200. this.floorid = floorid
  201. this.mapSize()
  202. this.$refs.canvasFun.isShow = false
  203. setTimeout(() => {
  204. this.clearGraphy()
  205. this.scene = new FloorScene()
  206. if (this.haveFengMap == 1) {
  207. this.scene.selectContainer.connect('listChange', this, this.listChange)
  208. if (this.canvasID != `canvas${this.id}`) {
  209. this.canvasID = `canvas${this.id}`
  210. }
  211. this.parserData(floorid)
  212. } else if (this.haveFengMap == 0) {
  213. this.view.scene = this.scene
  214. this.readGraph()
  215. } else {
  216. this.loading = false
  217. }
  218. }, 100)
  219. },
  220. parserData(floor) {
  221. if (floor == 'g80') {
  222. // 屋顶
  223. if (window.fengmapData.frImg) {
  224. let imgItem = new SImageItem(null, `${this.mapServerURL}/webtheme/${this.fmapID}/${window.fengmapData.frImg}`)
  225. imgItem.showType = SImageShowType.AutoFit
  226. imgItem.connect('imgLoadOver', this, () => {
  227. this.readGraph()
  228. })
  229. this.scene.addItem(imgItem)
  230. this.view.scene = this.scene
  231. // this.view.fitSceneToView()
  232. }
  233. } else {
  234. if (window.fengmapData.gnameToGid[floor]) {
  235. window.fengmapData.parseData(window.fengmapData.gnameToGid[floor], res => {
  236. if (res.err) {
  237. console.log('errr', res.err)
  238. return
  239. }
  240. this.fParser = new SFloorParser(null)
  241. this.fParser.parseData(res)
  242. this.fParser.spaceList.forEach(t => {
  243. this.scene.addItem(t)
  244. t.nameSize = 12
  245. t.nameColor = '#2a2a2a'
  246. if (t.data.Name && this.bunkObj[t.data.Name]) {
  247. t.name = this.bunkObj[t.data.Name].brandname
  248. } else {
  249. // t.name = t.data.Name
  250. t.name = ''
  251. }
  252. })
  253. this.fParser.wallList.forEach(t => this.scene.addItem(t))
  254. this.fParser.virtualWallList.forEach(t => this.scene.addItem(t))
  255. this.fParser.doorList.forEach(t => this.scene.addItem(t))
  256. this.fParser.columnList.forEach(t => this.scene.addItem(t))
  257. this.fParser.casementList.forEach(t => this.scene.addItem(t))
  258. this.view.scene = this.scene
  259. // this.view.fitSceneToView()
  260. this.readGraph()
  261. })
  262. } else {
  263. console.log('楼层不正确')
  264. }
  265. }
  266. },
  267. readGraph() {
  268. this.readGroup(this.floorid)
  269. .then(data => {
  270. if (data.Result == 'failure') {
  271. this.$store.commit('SETISMESSAGE', false)
  272. this.view.fitSceneToView()
  273. this.view.minScale = this.view.scale
  274. if (this.$refs.canvasFun) {
  275. this.$refs.canvasFun.everyScale = this.view.scale
  276. }
  277. this.loading = false
  278. return
  279. } else {
  280. if (
  281. data.Data[0].Elements.Nodes.length === 0 &&
  282. data.Data[0].Elements.Markers.length === 0 &&
  283. data.Data[0].Elements.Relations.length === 0
  284. ) {
  285. this.$store.commit('SETISMESSAGE', false)
  286. } else {
  287. this.$store.commit('SETISMESSAGE', true)
  288. }
  289. }
  290. // 无返回Data处理
  291. if (!(data.Data && data.Data.length)) {
  292. this.view.fitSceneToView()
  293. this.view.minScale = this.view.scale
  294. if (this.$refs.canvasFun) {
  295. this.$refs.canvasFun.everyScale = this.view.scale
  296. }
  297. return false
  298. }
  299. // 请求回来的备注
  300. if (data.Data && data.Data[0].Note) {
  301. let note = data.Data[0].Note
  302. bus.$emit('queryRemarksMethods', note)
  303. } else {
  304. bus.$emit('queryRemarksMethods', '')
  305. }
  306. //土建装饰的图例展示
  307. if (this.$cookie.get('categoryId') == 'SCPZ') {
  308. let scpzTable = [],
  309. arr = []
  310. scpzTable = data.Data[0].Elements.Nodes || []
  311. console.log(scpzTable)
  312. if (scpzTable.length > 0) {
  313. scpzTable.forEach(e => {
  314. if (e.Properties.ItemExplain) {
  315. let obj = e
  316. arr.push(obj)
  317. }
  318. })
  319. }
  320. console.log(arr)
  321. this.$store.commit('SETSCPZTABLE', arr)
  322. }
  323. if (data.Data[0].Elements.Nodes.length > 0) {
  324. this.$store.commit('SETTYPENUM', '')
  325. let Lengd = data.Data[0].Elements.Nodes
  326. Lengd.forEach(el => {
  327. if (el.Type == 'Image' && el.Num > 1) {
  328. this.$store.commit('SETTYPENUM', el.Num)
  329. }
  330. })
  331. }
  332. // 放到后边 $cookie graphId
  333. this.$cookie.set('graphId', data.Data[0].ID, 3)
  334. if (this.$cookie.get('graphId')) {
  335. // 得到graphId 就请求图例
  336. // 除土建装饰之外的图例展示 包括楼层功能
  337. bus.$emit('queryViewMethods')
  338. }
  339. this.topologyParser = new STopologyParser(null)
  340. this.topologyParser.parseData(data.Data[0].Elements)
  341. // 多边形
  342. this.topologyParser.zoneLegendList.forEach(t => {
  343. this.scene.addItem(t)
  344. t.connect("legendItemClick", t, this.handleClickLegendItem);
  345. })
  346. // 增加文字
  347. this.topologyParser.textMarkerList.forEach(t => {
  348. this.scene.addItem(t)
  349. })
  350. // 增加图片
  351. this.topologyParser.imageMarkerList.forEach(t => {
  352. this.scene.addItem(t)
  353. })
  354. // 增加直线
  355. this.topologyParser.lineMarkerList.forEach(t => {
  356. this.scene.addItem(t)
  357. })
  358. // 增加图标类图例
  359. this.topologyParser.imageLegendList.forEach(t => {
  360. this.scene.addItem(t)
  361. t.connect("legendItemClick", t, this.handleClickLegendItem);
  362. })
  363. // 增加管线类
  364. // 增加图标类图例
  365. this.topologyParser.relationList.forEach(t => {
  366. t.selectable = true
  367. this.scene.addItem(t)
  368. t.connect("legendItemClick", t, this.handleClickLegendItem);
  369. })
  370. this.view.fitSceneToView()
  371. this.view.minScale = this.view.scale
  372. if (this.$refs.canvasFun) {
  373. this.$refs.canvasFun.everyScale = this.view.scale
  374. }
  375. this.loading = false
  376. })
  377. .catch(() => {
  378. this.loading = false
  379. })
  380. },
  381. clearGraphy() {
  382. if (this.view) {
  383. this.view.scene = null
  384. return
  385. }
  386. this.view = new FloorView(`canvas${this.id}`)
  387. },
  388. listChange(item, ev) {
  389. // if (ev[0].length) {
  390. // let selectItem1 = ev[0][0],
  391. // location = selectItem1.data.AttachObjectIds[0] ? selectItem1.data.AttachObjectIds[0].id : ''
  392. // // 空间类型都可打开弹窗(除防火分区 编号100131,商管办公室 编号100112,铺装石材 编号100129)
  393. // if (selectItem1.data.GraphElementType == 'Zone') {
  394. // if (
  395. // selectItem1.data.GraphElementId != '100131' &&
  396. // selectItem1.data.GraphElementId != '100112' &&
  397. // selectItem1.data.GraphElementId != '100129'
  398. // ) {
  399. // if (location) {
  400. // this.$refs.boxRoom.open({ name: selectItem1.name, type: this.type, location: location })
  401. // }
  402. // }
  403. // }
  404. // // // 选中电井设置电井关联的商铺高亮
  405. // // this.setHightLight(ev[0])
  406. // }
  407. // else {
  408. // this.clearHightLight()
  409. // }
  410. this.clearHightLight()
  411. },
  412. // 选中电井关联的商铺高亮
  413. setHightLight(arr) {
  414. this.clearHightLight()
  415. arr.forEach(item => {
  416. let location = item.data.AttachObjectIds[0] ? item.data.AttachObjectIds[0].id : ''
  417. // 添加了位置类型并且选中的类型为电井类型
  418. if (
  419. (item.data.GraphElementId == '100050' ||
  420. item.data.GraphElementId == '100055' ||
  421. item.data.GraphElementId == '100056' ||
  422. item.data.GraphElementId == '100057') &&
  423. location
  424. ) {
  425. if (this.wellMap.hasOwnProperty(location)) {
  426. this.wellMap[location].forEach(item => {
  427. item.highLightFlag = true
  428. item.zOrder = 30
  429. })
  430. } else {
  431. let getParams = {
  432. plazaId: this.plazaId,
  433. floor: this.floorid,
  434. keyword: `${location}:wellnum;`
  435. }
  436. queryShops({ getParams }).then(res => {
  437. let shopsnumList = []
  438. let shopsnumItemList = []
  439. if (res.data && res.data.length) {
  440. for (let floor in res.data[0]) {
  441. if (res.data[0][floor].length) {
  442. res.data[0][floor].forEach(v => {
  443. shopsnumList = shopsnumList.concat(v.shopsnumList.split(','))
  444. })
  445. }
  446. }
  447. }
  448. if (shopsnumList.length) {
  449. this.fParser.spaceList.forEach(item => {
  450. if (shopsnumList.findIndex(name => name == item.data.Name) != -1) {
  451. item.highLightFlag = true
  452. item.zOrder = 30
  453. shopsnumItemList.push(item)
  454. }
  455. })
  456. this.wellMap[location] = shopsnumItemList
  457. }
  458. })
  459. }
  460. }
  461. })
  462. },
  463. // 清除电井关联商铺的高亮状态
  464. clearHightLight() {
  465. ItemColor.spaceHighColor = new SColor('#FBF2CC')
  466. for (let key in this.wellMap) {
  467. this.wellMap[key].forEach(item => {
  468. item.highLightFlag = false
  469. item.zOrder = ItemOrder.spaceOrder
  470. })
  471. }
  472. },
  473. // 适配底图到窗口
  474. fit() {
  475. this.view.fitSceneToView()
  476. },
  477. // 保存为png
  478. savePng() {
  479. // this.view.saveImage(`${this.loadName}.png`, 'png')
  480. this.view.saveImageSize(`${this.loadName}.png`, 'png', 1920 * 2, 1080 * 2)
  481. //console.log(`${this.loadName}.png`)
  482. },
  483. // 保存为svg
  484. saveSvg() {
  485. this.view.saveSceneSvg(`${this.loadName}.svg`, 6400, 4800)
  486. },
  487. // 保存为json
  488. saveJson() {
  489. this.view.saveFloorJson(`${this.loadName}.json`)
  490. },
  491. // 缩放
  492. scale(val) {
  493. if (!this.view) {
  494. return
  495. }
  496. let scale = this.view.scale
  497. this.view.scaleByPoint(val / scale, this.canvasWidth / 2, this.canvasHeight / 2)
  498. },
  499. // 小眼睛控制显示铺位名称
  500. showText(val) {
  501. // this.topologyParser.zoneLegendList.forEach(t => {
  502. // t.showText = val
  503. // })
  504. this.fParser.spaceList.forEach(t => {
  505. t.showBaseName = val
  506. })
  507. },
  508. // 读取数据
  509. readGroup(FloorID) {
  510. const data = {
  511. BuildingID: '1',
  512. FloorID: FloorID,
  513. categoryId: this.categoryId ? this.categoryId : this.$cookie.get('categoryId'),
  514. projectId: this.urlMsg.ProjectID,
  515. Pub: true
  516. }
  517. return readGroup(data)
  518. },
  519. // 地图尺寸
  520. mapSize() {
  521. this.canvasWidth = this.$refs.graphy.offsetWidth
  522. if (window.screen.height == '768') {
  523. this.canvasHeight = this.$refs.graphy.offsetHeight - 100
  524. } else {
  525. this.canvasHeight = 900
  526. }
  527. // 弹窗中底图高度适配
  528. if (this.modalHeight) {
  529. this.canvasHeight = this.modalHeight
  530. }
  531. },
  532. getEvent() {
  533. bus.$on('changeShow', res => {
  534. this.topologyParser &&
  535. this.topologyParser.zoneLegendList.forEach(t => {
  536. let id = t.data.GraphElementId
  537. t.maskFlag = !(res.indexOf(id) > -1)
  538. })
  539. // this.topologyParser.textMarkerList.forEach(t => {
  540. // let id = t.data.GraphElementId
  541. // t.maskFlag = !(res.indexOf(id) > -1)
  542. // })
  543. // this.topologyParser.imageMarkerList.forEach(t => {
  544. // let id = t.data.GraphElementId
  545. // t.maskFlag = !(res.indexOf(id) > -1)
  546. // })
  547. // this.topologyParser.lineMarkerList.forEach(t => {
  548. // let id = t.data.GraphElementId
  549. // t.maskFlag = !(res.indexOf(id) > -1)
  550. // })
  551. this.topologyParser &&
  552. this.topologyParser.imageLegendList.forEach(t => {
  553. let id = t.data.GraphElementId
  554. t.maskFlag = !(res.indexOf(id) > -1)
  555. })
  556. this.topologyParser &&
  557. this.topologyParser.relationList.forEach(t => {
  558. let id = t.data.GraphElementId || t.data.GraphElementID
  559. t.maskFlag = !(res.indexOf(id) > -1)
  560. })
  561. })
  562. }
  563. },
  564. watch: {
  565. 'view.scale': {
  566. handler(n) {
  567. if (this.$refs.canvasFun) {
  568. let s = (n * 10) / this.view.minScale
  569. this.$refs.canvasFun.sliderVal = s > 1000 ? 1000 : s
  570. }
  571. }
  572. },
  573. haveFengMap() {
  574. this.init(this.floorid)
  575. }
  576. },
  577. mounted() {
  578. this.mapSize()
  579. this.getEvent()
  580. },
  581. created() {
  582. document.onclick = () => {
  583. if (this.visible) {
  584. debugger
  585. console.log(this.visible)
  586. }
  587. }
  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. .el-button--primary{
  651. background: linear-gradient(180deg, #369cf7 0%, #025baa 100%);
  652. }
  653. .el-tabs--bottom .el-tabs__item.is-bottom:nth-child(2),
  654. .el-tabs--bottom .el-tabs__item.is-top:nth-child(2),
  655. .el-tabs--top .el-tabs__item.is-bottom:nth-child(2),
  656. .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  657. padding-left: 16px;
  658. }
  659. .el-tabs--bottom .el-tabs__item.is-bottom:last-child,
  660. .el-tabs--bottom .el-tabs__item.is-top:last-child,
  661. .el-tabs--top .el-tabs__item.is-bottom:last-child,
  662. .el-tabs--top .el-tabs__item.is-top:last-child {
  663. padding-right: 16px;
  664. }
  665. .el-tabs__nav-wrap::after {
  666. height: 0;
  667. }
  668. .is-active {
  669. color: #fff !important;
  670. border-color: #025baa !important;
  671. background: linear-gradient(180deg, #369cf7 0%, #025baa 100%);
  672. }
  673. .el-tabs__item {
  674. padding: 5px 16px;
  675. height: 30px;
  676. line-height: 22px;
  677. font-size: 14px;
  678. font-family: MicrosoftYaHei;
  679. color: rgba(31, 36, 41, 1);
  680. border: 1px solid rgba(195, 199, 203, 1);
  681. }
  682. .el-tabs__active-bar {
  683. background-color: transparent !important;
  684. }
  685. /deep/ .el-tabs__item:last-child {
  686. border-radius: 0px 4px 4px 0px;
  687. }
  688. /deep/ .el-tabs__item:nth-child(2) {
  689. border-radius: 4px 0px 0px 4px;
  690. }
  691. }
  692. </style>