SearchBox.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <template>
  2. <transition
  3. appear
  4. name="animate__animated animate__move"
  5. enter-active-class="animate__fadeInLeftBig"
  6. leave-active-class="animate__fadeOutLeftBig"
  7. >
  8. <div class="widget-SearchBox" ref="widget-SearchBox">
  9. <div class="search">
  10. <el-input
  11. placeholder=""
  12. v-model="searchInput"
  13. class="input-with-select"
  14. size="small"
  15. clearable
  16. @focus="inputFocus()"
  17. @blur="inputBlur()"
  18. @clear="clearInput()"
  19. @keyup.enter.native="searching()"
  20. >
  21. <el-select v-model="selectType" slot="prepend" placeholder="请选择" :popper-append-to-body="false">
  22. <el-option label="工程" value="4"></el-option>
  23. <el-option label="PBS编码" value="3"></el-option>
  24. <el-option label="部件标识码" value="2"></el-option>
  25. <el-option label="设备" value="1"></el-option>
  26. </el-select>
  27. <el-button slot="append" icon="el-icon-search" @click="searching()" :loading="isSearching"></el-button>
  28. </el-input>
  29. </div>
  30. <transition
  31. appear
  32. name="animate__animated animate__move"
  33. enter-active-class="animate__fadeIn"
  34. leave-active-class="animate__fadeOut"
  35. >
  36. <div class="infoPanel" v-if="isShowInfoPanel" @mouseenter="PanelEnter()" @mouseleave="PanelLeave()">
  37. <pbs-tree ref="pbsTree" @selectChange="pbsTreeSelectChange" />
  38. </div>
  39. <div class="devicePanel" v-if="!isShowInfoPanel && searchDeviceList.length > 0">
  40. <div class="deviceItem" v-for="item of searchDeviceList" :key="item.id" @click="deviceClickLocated(item)">
  41. {{ item.id }}
  42. </div>
  43. </div>
  44. </transition>
  45. <!-- <div class="lifting">
  46. <span>抬升:</span>
  47. <el-input-number v-model="layerdown" size="small" controls-position="right"></el-input-number>
  48. <span class="unit">米</span>
  49. </div>
  50. <div class="setOpacity">
  51. <span>透明度:</span>
  52. <el-input-number v-model="opacity" size="small" controls-position="right" :min="0" :max="100" :step="10">
  53. </el-input-number>
  54. <span class="unit">%</span>
  55. </div> -->
  56. </div>
  57. </transition>
  58. </template>
  59. <script lang="ts">
  60. import { Vue, Component, Prop, Watch } from 'vue-property-decorator'
  61. import { mapSearch_api } from '@/api/APIs'
  62. import { queryMapByAttribute } from '@/views/groupPage/util'
  63. import ComTreeList from '@/views/groupPage/components/ComTreeList.vue'
  64. import Config from '@/views/groupPage/districtPageModules/commonModules/config.json'
  65. import _ from 'lodash'
  66. import SearchInfo from '@/views/groupPage/districtPageModules/customTools/infoComponents/serachInfo.vue'
  67. import pbsTree from '@/views/groupPage/districtPageModules/customTools/pbsTree.vue'
  68. const Cesium = (window as any).Cesium
  69. const SuperMap = (window as any).SuperMap
  70. let _customDataSource = null
  71. const gLayerList = [
  72. 'NETWORK_SJ_PSWS@sxgk#1',
  73. 'NETWORK_SJ_PSYS@sxgk#1',
  74. 'NETWORK_SJ_PSWS_Node@sxgk#1',
  75. 'NETWORK_SJ_PSYS_Node@sxgk#1',
  76. 'TF_SJ_PSYS_JG_B_3D@sxgk#1',
  77. 'TF_SJ_PSYS_JG_B_3D@sxgk#2',
  78. 'TF_SJ_PSWS_JG_B_3D@sxgk#2',
  79. 'TF_SJ_PSWS_JG_B_3D@sxgk#1'
  80. ]
  81. //搜索栏
  82. @Component({ name: 'SearchBox', components: { ComTreeList, pbsTree } })
  83. export default class SearchBox extends Vue {
  84. isSearching: boolean = false
  85. searinfoModules = [] //地图信息面板收集
  86. searchInput = ''
  87. selectType = '4'
  88. loading = null
  89. apiurl = {
  90. sjfw: '',
  91. dtfw: '',
  92. smiddtfw: ''
  93. }
  94. backImg = require('@/views/groupPage/images/searchBoxBack.png')
  95. layerdown = 0
  96. //地表透明度配置
  97. opacity = 0
  98. disVisibleLayers = ['Config']
  99. g_modelTransparent = false
  100. //工程树相关配置
  101. isShowInfoPanel: boolean = false
  102. isEnterPanel: boolean = false
  103. //设备查询列表
  104. searchDeviceList = []
  105. mounted() {
  106. let target = this.$refs['widget-SearchBox'] as any
  107. if (this.$store.state.bigScreen.currentActive) target.style.setProperty('--left', '2.34375rem')
  108. else target.style.setProperty('--left', '.10417rem')
  109. }
  110. viewer
  111. get config() {
  112. return Config
  113. }
  114. get mapConfig() {
  115. return this.$store.state.bigScreen.mapConfig
  116. }
  117. get isInitViewer() {
  118. return this.$store.state.bigScreen.isInitViewer
  119. }
  120. @Watch('isInitViewer', { immediate: true })
  121. onChangeMethod() {
  122. this.viewer = (window as any).viewer
  123. this.init()
  124. }
  125. //透明度变化
  126. @Watch('opacity')
  127. changeOpacity(newVal) {
  128. const val = parseFloat(newVal)
  129. const alpha = parseFloat((1 - val / 100).toString())
  130. const layers = this.disVisibleLayers
  131. if (this.g_modelTransparent && layers.length > 0) {
  132. this.viewer.scene.layers.layerQueue.forEach((layer) => {
  133. if (_.indexOf(layers, layer.name) !== -1) {
  134. layer.style3D.fillForeColor.alpha = alpha
  135. }
  136. })
  137. }
  138. this.viewer.scene.globe.globeAlpha = 1 - val / 100
  139. for (var i = 0; i < this.viewer.scene.imageryLayers.length; i++) {
  140. var ly = this.viewer.scene.imageryLayers.get(i)
  141. ly.alpha = alpha
  142. }
  143. }
  144. //管线抬升
  145. @Watch('layerdown')
  146. changeDepth(value) {
  147. let height = parseFloat(value)
  148. if (isNaN(height)) {
  149. return
  150. }
  151. this.mapConfig.upDepth = height
  152. const style3D = new Cesium.Style3D()
  153. style3D.altitudeMode = 0
  154. style3D.bottomAltitude = height
  155. gLayerList.forEach((item) => {
  156. var layer = this.viewer.scene.layers.find(item)
  157. if (layer) {
  158. layer.style3D = style3D
  159. layer.refresh()
  160. }
  161. })
  162. }
  163. // @Watch('selectType')
  164. // changeSelectTypeMethod(val) {
  165. // if (val !== '4') {
  166. // this.isShowInfoPanel = false
  167. // }
  168. // }
  169. /**页面全局键盘事件监听 */
  170. // created() {
  171. // this.keyDown()
  172. // }
  173. // beforeDestroy() {
  174. // this.keyDownReview()
  175. // }
  176. // //按键恢复
  177. // keyDownReview() {
  178. // document.onkeydown = function (event) {
  179. // var e = event || window.event
  180. // e.returnValue = true
  181. // }
  182. // }
  183. // //按钮监听键盘
  184. // keyDown() {
  185. // //监听键盘按钮
  186. // document.onkeydown = function (event) {
  187. // var e: any = event || window.event
  188. // var keyCode = e.keyCode || e.which
  189. // switch (keyCode) {
  190. // case 13: //enter
  191. // alert('enter')
  192. // break
  193. // default:
  194. // break
  195. // }
  196. // if (e && e.preventDefault) {
  197. // e.preventDefault()
  198. // } else {
  199. // window.event.returnValue = false
  200. // }
  201. // }
  202. // }
  203. //工程搜索模块
  204. init() {
  205. this.apiurl.sjfw = this.mapConfig.gisResource.tiplayers.config['sjfw'].url
  206. this.apiurl.dtfw = this.mapConfig.gisResource.maps.config['sjdt'].url
  207. this.apiurl.smiddtfw = this.mapConfig.gisResource.tiplayers.config['bjsmidfw'].url
  208. _customDataSource = new Cesium.CustomDataSource('SearchBox')
  209. this.viewer.dataSources.add(_customDataSource)
  210. }
  211. // changeProjectName(data) {
  212. // if (data != '') {
  213. // const { name, code } = data
  214. // this.searchInput = name
  215. // this.searching()
  216. // } else {
  217. // this.clearInput()
  218. // }
  219. // }
  220. // clearInput() {
  221. // this.searchInput = ''
  222. // this.removeLabels()
  223. // }
  224. searching() {
  225. this.isSearching = true
  226. const searchType = this.selectType
  227. const inputObj = this.searchInput.toString().trim()
  228. // if (xss.isXSS(inputObj)) {
  229. if (!inputObj) {
  230. this.$message.warning('请输入内容!')
  231. this.isSearching = false
  232. return
  233. }
  234. switch (searchType) {
  235. case '4':
  236. this.searchPrjSpeedInfo(inputObj)
  237. this.filterPbsTree(inputObj)
  238. break
  239. case '3':
  240. this.searchPbsTree(inputObj)
  241. break
  242. case '2':
  243. this.searchPbsTree(inputObj)
  244. break
  245. case '1':
  246. this.searchEntity(inputObj)
  247. break
  248. }
  249. this.isSearching = false
  250. }
  251. /**
  252. * 该方法用于查询工程进度
  253. * @param prjName 工程(包括工程项目、单项工程、单位工程、子单位工程)
  254. * @returns
  255. */
  256. searchPrjSpeedInfo(prjName) {
  257. if (!prjName) {
  258. this.removeLabels()
  259. // this.clearSelection()
  260. return
  261. }
  262. this.loading = this.$loading({
  263. lock: true,
  264. text: '正在搜索中,请耐心等待...',
  265. spinner: 'el-icon-loading',
  266. background: 'rgba(0, 0, 0, 0.3)',
  267. customClass: 'loadingclass'
  268. })
  269. const data = { queryText: prjName } //查询条件
  270. const pipe = (this.config as any).pipe
  271. const that = this
  272. const fieldName = 'CODE'
  273. const geourl = this.apiurl.smiddtfw
  274. mapSearch_api(data).then((res) => {
  275. const result = res
  276. if (result.code !== 1) return
  277. if (result.result.length === 0) {
  278. this.$message('未搜索到相关工程')
  279. this.loading.close()
  280. return
  281. }
  282. this.searinfoModules = []
  283. const filters = []
  284. const cwpInfos = []
  285. const len = result.result.length
  286. for (let i = 0; i < len; i++) {
  287. const item = result.result[i]
  288. const pipename = item.firstLayerName.split(',')[0]
  289. const layer = _.find(pipe, function (pipeItem) {
  290. return pipeItem.origindataset === pipename
  291. })
  292. if (!layer) {
  293. continue
  294. }
  295. //组装
  296. let cwpInfo = {
  297. name: '',
  298. roadName: '',
  299. code: '',
  300. percent: '',
  301. design: {
  302. name: '',
  303. total: 0,
  304. pipe: 0,
  305. node: 0
  306. },
  307. spv: {
  308. name: '',
  309. pipeLen: 0,
  310. times: 0,
  311. part: 0,
  312. pictures: 0
  313. },
  314. con: {
  315. name: '',
  316. pipeLen: 0,
  317. times: 0,
  318. part: 0,
  319. pictures: 0
  320. }
  321. }
  322. cwpInfo.percent = !item.percent ? 0 : item.percent
  323. cwpInfo.code = item.firstPbs
  324. cwpInfo.name = item.zdwName
  325. cwpInfo.roadName = item.roadName
  326. //设计
  327. const design = _.find(item.tjData, (djData) => {
  328. return djData.dataType === 'DESIGN'
  329. })
  330. if (design) {
  331. cwpInfo.design.name = design.designUnit
  332. cwpInfo.design.total = design.tfPipeLength
  333. cwpInfo.design.pipe = design.tfPipeCount
  334. cwpInfo.design.node = design.tfNodeCount
  335. }
  336. //施工
  337. const con = _.find(item.tjData, (djData) => {
  338. return djData.dataType === 'CON'
  339. })
  340. if (con) {
  341. cwpInfo.con.name = con.buildUnit
  342. cwpInfo.con.pipeLen = con.smLength
  343. cwpInfo.con.times = con.scanTimes
  344. cwpInfo.con.part = con.partsTotal
  345. cwpInfo.con.pictures = con.pictures
  346. }
  347. //监理
  348. const spv = _.find(item.tjData, (djData) => {
  349. return djData.dataType === 'SPV'
  350. })
  351. if (spv) {
  352. cwpInfo.spv.name = spv.supervisionUnit
  353. cwpInfo.spv.pipeLen = spv.smLength
  354. cwpInfo.spv.times = spv.scanTimes
  355. cwpInfo.spv.part = spv.partsTotal
  356. cwpInfo.spv.pictures = spv.pictures
  357. }
  358. cwpInfos.push(cwpInfo)
  359. //多图层搜索
  360. const queryname = layer.smidmapnameNT ? layer.smidmapnameNT : layer.smidmapname
  361. const JGFilter = new SuperMap.REST.FilterParameter({
  362. name: queryname,
  363. attributeFilter: fieldName + " = '" + item['firstPbs'] + "'",
  364. fields: [fieldName]
  365. })
  366. filters.push(JGFilter)
  367. }
  368. const onComplete = function (geoResult) {
  369. that.loading.close()
  370. //交互事件
  371. // that.getCurrentInfo()
  372. // that.clickHightLight()
  373. geoResult.originResult.recordsets.forEach((record) => {
  374. const features = record.features
  375. if (features.length > 1) {
  376. console.log('pbs重复')
  377. return true
  378. }
  379. if (features.length == 0) {
  380. return true
  381. }
  382. const scanProj = _.find(cwpInfos, function (scanItem) {
  383. return scanItem.code === features[0]['fieldValues'][0]
  384. })
  385. let labelText = ''
  386. let imgSrc = that.backImg
  387. let position = features[0].geometry.points[0]
  388. position = Cesium.Cartesian3.fromDegrees(position.x, position.y, position.z)
  389. //缩放定位,默认第一个
  390. const camera = that.viewer.camera
  391. const location = Cesium.Cartographic.fromDegrees(
  392. features[0].geometry.points[0].x,
  393. features[0].geometry.points[0].y,
  394. features[0].geometry.points[0].z + 5000
  395. )
  396. const cartesian3 = Cesium.Cartographic.toCartesian(location)
  397. camera.flyTo({
  398. destination: cartesian3,
  399. orientation: {
  400. heading: camera.heading,
  401. pitch: Cesium.Math.toRadians(-90),
  402. roll: 0
  403. }
  404. })
  405. scanProj.displayType = 'gcss'
  406. that.addUnitContent({
  407. id: scanProj.code,
  408. name: scanProj.code,
  409. text: labelText,
  410. position: position,
  411. scanProj: scanProj,
  412. imgSrc: imgSrc
  413. })
  414. })
  415. }
  416. queryMapByAttribute({
  417. url: geourl,
  418. filterParameters: filters,
  419. completed: onComplete.bind(this),
  420. failed: function (err) {
  421. that.loading.close()
  422. that.$message.error('查询失败')
  423. console.log(err)
  424. }
  425. })
  426. })
  427. }
  428. //添加站点指示牌
  429. addUnitContent(options) {
  430. const searchInfoConstructor = Vue.extend(SearchInfo)
  431. let searinfoModule = new searchInfoConstructor({
  432. data: {
  433. id: options.name.replaceAll('.', ''),
  434. options
  435. },
  436. store: this.$store
  437. }).$mount()
  438. this.searinfoModules.push(searinfoModule)
  439. }
  440. //该方法用于清除entity label
  441. removeLabels() {
  442. if (Cesium.defined(_customDataSource)) {
  443. _customDataSource.entities.removeAll()
  444. }
  445. if (this.searinfoModules.length > 0) {
  446. this.searinfoModules.forEach((item) => {
  447. item.remove()
  448. })
  449. }
  450. }
  451. //--------------------------------------工程树搜索模块
  452. //工程树面板显示逻辑
  453. inputFocus() {
  454. if (this.selectType !== '1') {
  455. this.isShowInfoPanel = true
  456. }
  457. }
  458. inputBlur() {
  459. // setTimeout(() => {
  460. if (this.searchInput !== '' || this.isEnterPanel) return
  461. else this.isShowInfoPanel = false
  462. // }, 300)
  463. }
  464. clearInput() {
  465. this.isShowInfoPanel = false
  466. this.removeLabels()
  467. //
  468. this.searchDeviceList = []
  469. }
  470. PanelEnter() {
  471. this.isEnterPanel = true
  472. }
  473. PanelLeave() {
  474. this.isEnterPanel = false
  475. if (document.activeElement.className == 'el-input__inner') return
  476. if (this.searchInput === '') this.isShowInfoPanel = false
  477. }
  478. //选择搜索
  479. pbsTreeSelectChange(data) {
  480. switch (this.selectType) {
  481. case '4':
  482. this.searchInput = data.originname ? data.originname : ''
  483. break
  484. case '3':
  485. this.searchInput = data.code ? data.code : ''
  486. break
  487. case '2':
  488. this.searchInput = data.pipeId ? data.pipeId : ''
  489. break
  490. }
  491. }
  492. filterPbsTree(input) {
  493. ;(this.$refs['pbsTree'] as any).searchLocal(input, true)
  494. }
  495. searchPbsTree(code) {
  496. ;(this.$refs['pbsTree'] as any).searchOnline(code)
  497. }
  498. searchEntity(input) {
  499. this.searchDeviceList = []
  500. let dataSource = this.viewer.dataSources.getByName('monitorTree')
  501. // let target = dataSource[0].entities.getById(input)
  502. let targetArr = dataSource[0].entities.values
  503. let target: any = this.unsharpMask(
  504. targetArr.map((item) => item.id),
  505. input
  506. )
  507. target.forEach((item) => {
  508. let index = targetArr.findIndex((e) => e.id === item)
  509. if (index != -1) {
  510. this.searchDeviceList.push(targetArr[index])
  511. }
  512. })
  513. }
  514. deviceClickLocated(target) {
  515. this.$store.state.bigScreen.currentDeviceShow = null
  516. if (target) {
  517. this.viewer.flyTo(target).then(() => {
  518. this.$store.state.bigScreen.currentDeviceShow = target.info
  519. })
  520. } else {
  521. this.$message('暂无设备位置信息')
  522. }
  523. }
  524. unsharpMask(list, keyword) {
  525. let arr = []
  526. for (let index = 0; index < list.length; index++) {
  527. if (JSON.stringify(list[index]).indexOf(keyword) !== -1) {
  528. arr.push(list[index])
  529. }
  530. }
  531. return arr
  532. }
  533. }
  534. </script>
  535. <style lang="scss" scoped>
  536. // .animate__fadeInLeftBig,
  537. // .animate__fadeOutLeftBig {
  538. // animation-duration: 3s; //动画持续时间
  539. // animation-delay: 0s; //动画延迟时间
  540. // }
  541. .widget-SearchBox {
  542. $size10: 0.052083rem /* 10/192 */;
  543. $size20: 0.104167rem /* 20/192 */;
  544. z-index: 2;
  545. //position
  546. top: 0.505208rem /* 97/192 */;
  547. margin-left: var(--left); //2.34375rem /* 450/192 */;
  548. position: absolute;
  549. left: 0;
  550. //font
  551. font-family: Source Han Sans CN;
  552. .search {
  553. float: left;
  554. margin-right: 0.052083rem /* 10/192 */;
  555. & ::placeholder {
  556. color: rgba(43, 167, 255, 1);
  557. }
  558. /deep/ .el-input {
  559. $backgroundColor: rgba(7, 48, 80, 0.9);
  560. // .el-select .el-input {
  561. // width: 0.46875rem /* 90/192 */;
  562. // }
  563. .el-input__inner {
  564. color: #eee;
  565. background-color: $backgroundColor;
  566. border: none;
  567. // width: 0.78125rem /* 150/192 */;
  568. width: 0.625rem; /* 120/192 */
  569. }
  570. .el-input-group__append,
  571. .el-input-group__prepend {
  572. background-color: $backgroundColor;
  573. border: none;
  574. color: #2ba7ff;
  575. }
  576. .el-input-group__prepend {
  577. .el-select {
  578. margin: -0.015625rem /* 3/192 */ -0.109375rem /* 21/192 */;
  579. position: relative;
  580. }
  581. .el-input__inner {
  582. font-size: 0.072917rem /* 14/192 */;
  583. font-family: Source Han Sans CN;
  584. font-weight: 500;
  585. color: #2ba7ff;
  586. position: relative;
  587. }
  588. .el-input::after {
  589. content: '';
  590. position: absolute;
  591. top: 0;
  592. bottom: 0;
  593. right: 0;
  594. margin: auto 0;
  595. width: 1px;
  596. height: 80%;
  597. background-color: rgba(41, 177, 255, 0.3);
  598. }
  599. .el-select .el-input .el-select__caret {
  600. display: flex;
  601. align-items: center;
  602. }
  603. .el-icon-arrow-up:before {
  604. content: '';
  605. display: block;
  606. // 定义元素宽高
  607. width: 0.130208rem /* 25/192 */;
  608. height: 0.078125rem /* 15/192 */;
  609. background: url('~@/views/groupPage/images/三角下.png') no-repeat center center;
  610. background-size: 100% 100%;
  611. transform: rotate(180deg);
  612. }
  613. }
  614. .el-input-group__append {
  615. .el-button {
  616. padding: 0;
  617. }
  618. }
  619. }
  620. /deep/ .el-tree {
  621. background: #023c5d;
  622. color: #ffffff;
  623. .el-tree-node__content {
  624. background: #023c5d;
  625. }
  626. .el-tree-node.is-current > .el-tree-node__content,
  627. .el-tree-node__content:hover {
  628. background-color: rgba(43, 167, 255, 0.2) !important;
  629. }
  630. }
  631. }
  632. .lifting,
  633. .setOpacity {
  634. float: left;
  635. $background: rgba(7, 48, 80, 0.9);
  636. background: $background;
  637. border-radius: 0.010417rem /* 2/192 */;
  638. margin-right: 0.052083rem /* 10/192 */;
  639. span {
  640. padding: 0.052083rem /* 10/192 */ 0 0.052083rem /* 10/192 */ 0.052083rem /* 10/192 */;
  641. font-size: 0.072917rem /* 14/192 */;
  642. font-family: Source Han Sans CN;
  643. font-weight: 500;
  644. color: #82bae2;
  645. }
  646. .unit {
  647. padding: 0.052083rem /* 10/192 */ 0.052083rem /* 10/192 */ 0 0 !important;
  648. }
  649. /deep/ .el-input-number {
  650. width: 0.3125rem /* 60/192 */;
  651. .el-input-group__append,
  652. .el-input-group__prepend {
  653. padding: 0 0.026042rem /* 5/192 */;
  654. }
  655. .el-input__inner {
  656. color: rgba(43, 167, 255, 1);
  657. border: none;
  658. background-color: $background;
  659. position: relative;
  660. padding-right: 0.15625rem /* 30/192 */;
  661. padding-left: 0;
  662. }
  663. .el-input-number__decrease,
  664. .el-input-number__increase {
  665. background: transparent;
  666. border: none;
  667. height: 50%;
  668. }
  669. .el-input-number__increase .el-icon-arrow-up:before {
  670. content: '';
  671. display: block;
  672. // 定义元素宽高
  673. margin-top: 0.010417rem /* 2/192 */;
  674. width: 0.130208rem /* 25/192 */;
  675. height: 0.078125rem /* 15/192 */;
  676. background: url('~@/views/groupPage/images/三角上.png') no-repeat center center;
  677. background-size: 100% 100%;
  678. object-fit: contain;
  679. }
  680. .el-input-number__decrease .el-icon-arrow-down:before {
  681. content: '';
  682. display: block;
  683. // 定义元素宽高
  684. // margin-top: 0.010417rem /* 2/192 */;
  685. width: 0.130208rem /* 25/192 */;
  686. height: 0.078125rem /* 15/192 */;
  687. background: url('~@/views/groupPage/images/三角下.png') no-repeat center center;
  688. background-size: 100% 100%;
  689. object-fit: contain;
  690. }
  691. }
  692. }
  693. .infoPanel {
  694. position: absolute;
  695. top: 0.21875rem /* 42/192 */;
  696. background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.24) 100%);
  697. height: 2.5625rem /* 492/192 */;
  698. width: 2.395833rem /* 460/192 */;
  699. }
  700. .devicePanel {
  701. position: absolute;
  702. top: 0.21875rem /* 42/192 */;
  703. background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.24) 100%);
  704. max-height: 1.354167rem /* 260/192 */;
  705. width: 1.40625rem /* 270/192 */;
  706. overflow-y: auto;
  707. .deviceItem {
  708. display: inline-flex;
  709. justify-content: center;
  710. align-items: center;
  711. width: 100%;
  712. padding: 0.104167rem /* 20/192 */;
  713. font-size: 0.072917rem /* 14/192 */;
  714. color: #eee;
  715. }
  716. .deviceItem:hover {
  717. background-color: rgba(130, 186, 226, 0.3);
  718. }
  719. }
  720. }
  721. </style>