| | |
| | | <template> |
| | | <div id="right-panel"> |
| | | <div class="panel-right" v-show="isShow"> |
| | | <div class="panel-tab"> |
| | | <div v-for="item in topicMenu" :key="item.id" :title="item.name" class="tab-item" @click="handleGd" :class="{'B-TMT-tab-waybill-isActive': isWaybillHover}"> |
| | | <img :src="item.icon" style="width: 24px;height: 24px;"></div> |
| | | <!-- <div class="tab-item" @click="handleHb" :class="{'B-TMT-tab-route-isActive': isRouteHover}"></div>--> |
| | | <!-- <div class="tab-item" @click="handlePk" :class="{'B-TMT-tab-route-isActive': isRouteHover}"></div>--> |
| | | <!-- <div v-for="item in topicMenu" :key="item.id" :title="item.name" class="tab-item" @click="handleGd"--> |
| | | <!-- :class="{'B-TMT-tab-waybill-isActive': isWaybillHover}">--> |
| | | <!-- <img :src="item.icon" style="width: 24px;height: 24px;"></div>--> |
| | | <div class="container"> |
| | | <ul v-for="item in topicList" :key="item.name" :class="item.checked?'module-wrap map-btn-active':'module-wrap map-btn-unactive'" @click="()=>{selected(item)}" > |
| | | <el-tooltip :popper-class="'map-tooltip'" effect="dark" :content="item.name" placement="left"> |
| | | <li style=" "> |
| | | <!-- <span>{{item.name}}</span>--> |
| | | |
| | | <!-- <div >--> |
| | | <img src="../../assets/images/map-pages/icon/sl.png" class="icon"> |
| | | <!-- </div>--> |
| | | </li> |
| | | </el-tooltip> |
| | | </ul> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="panel-fold-btn" >--> |
| | | <!-- <div class="btn-stretch" @click="toggleMonitorPanel"></div>--> |
| | |
| | | <!-- <div class="btn-shrink" v-else-if="!isCollapse"></div>--> |
| | | <div :class="[isCollapse? 'btn-stretch':'btn-shrink']" ></div> |
| | | </div> |
| | | <component :title="title" :is="gcComp"></component> |
| | | |
| | | <div :class="'search-container map-background'"> |
| | | <div class="el-message-box__content" style="padding:6px;font-size: 13px;"> |
| | | <div class="search-title"> |
| | | 污雨水 |
| | | </div> |
| | | <component :title="title" :is="gcComp"></component> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | // import $ from 'jquery' |
| | | import EnvProtectSearch from './topicSearch/EnvProtectSearch' |
| | | import DischargeSearch from './topicSearch/DischargeSearch' |
| | | import { TopicList } from '../../conf/Topic' |
| | |
| | | components: { EnvProtectSearch, DischargeSearch }, |
| | | data () { |
| | | return { |
| | | isShow: true, |
| | | topicMenu: [], |
| | | topicList: TopicList, |
| | | topicCheckedList: [], |
| | | isPanelVisible: false, |
| | | gcComp: 'sewersSearch', |
| | | gcComp: SewersSearch, |
| | | |
| | | gdVisible: true, |
| | | hbVisible: false, |
| | |
| | | toggleMonitorStyle: 'right:0px', |
| | | |
| | | title: '污雨水管网', |
| | | |
| | | isCollapse: false |
| | | isCollapse: true |
| | | } |
| | | }, |
| | | computed: { |
| | | topicMenu () { |
| | | console.log(this.$store.state.map.topic.topicCheckedList) |
| | | return this.$store.state.map.topic.topicCheckedList |
| | | computed: {}, |
| | | watch: { |
| | | '$store.state.map.topic.topicCheckedList': function (newVal, oldVal) { |
| | | console.log(oldVal) |
| | | console.log(newVal) |
| | | this.topicCheckedList = newVal |
| | | this.topicMenu = [] |
| | | this.topicList.forEach((item) => { |
| | | this.topicCheckedList.forEach((itm) => { |
| | | if (item.name === itm) { |
| | | this.topicMenu.push(item) |
| | | } |
| | | }) |
| | | }) |
| | | } |
| | | }, |
| | | methods: { |
| | | handleClose (done) { |
| | | console.log(done) |
| | | }, |
| | | |
| | | selected (val) { |
| | | console.log(val) |
| | | this.topicList.forEach((itm) => { |
| | | itm.checked = val.name === itm.name |
| | | }) |
| | | }, |
| | | handlePage (page) { |
| | | }, |
| | | handleGd () { |
| | |
| | | // const el = document.getElementsByClassName('.btn-stretch') |
| | | // const el2 = document.getElementsByClassName('.panel-fold-btn') |
| | | // let = 'btn-stretch-active' |
| | | // var rightControl = $('#right-panel') |
| | | // var rightControl = document.getElementById('#right-panel') |
| | | // var rightControl = $('#panel-right') |
| | | // var rightControl = document.getElementById('#panel-right') |
| | | // const right = rightControl.css('right') |
| | | // const rightit = rightControl.ownerDocument.defaultView |
| | | // const right = rightit.getComputedStyle(rightit, null).right |
| | |
| | | </script> |
| | | |
| | | <style lang="less"> |
| | | @import '@assets/css/map/_map-variable'; |
| | | #right-panel { |
| | | width: 322px; |
| | | //height: 573px; |
| | | height: 100%; |
| | | .search-title{ |
| | | color: rgb(255, 255, 255); |
| | | font-size: 16px; |
| | | margin: 5px; |
| | | } |
| | | .search-container { |
| | | position: relative; |
| | | width: 1.79167rem; |
| | | height: 3.4375rem; |
| | | overflow: hidden; |
| | | } |
| | | .module-wrap{ |
| | | width: 0.15rem; |
| | | height: 0.15rem; |
| | | padding: .04167rem; |
| | | //padding: .00521rem; |
| | | background: rgba(0,16,30,.5); |
| | | border-radius: .03125rem; |
| | | border: .00521rem solid rgba(255,247,0,.5); |
| | | margin: .04167rem 0; |
| | | font-size: .08333rem; |
| | | -webkit-transition: all .2s linear; |
| | | transition: all .2s linear; |
| | | cursor: pointer; |
| | | position: relative; |
| | | line-height: 0.15rem; |
| | | li{ |
| | | margin: 0.00521rem 0; |
| | | text-align: center; |
| | | img{ |
| | | width: 0.1rem; |
| | | height: 0.1rem; |
| | | |
| | | } |
| | | } |
| | | } |
| | | .panel-right { |
| | | display: inline-flex; |
| | | //width: 322px; |
| | | //height: 100%; |
| | | //position: absolute; |
| | | //right: 10px; |
| | | //top: 10px; |
| | | height: 0; |
| | | position: absolute; |
| | | right: 10px; |
| | | top: 10px; |
| | | top: .4rem; |
| | | right: .08333rem; |
| | | z-index: 501; |
| | | display: -webkit-box; |
| | | display: -ms-flexbox; |
| | | display: flex; |
| | | -webkit-box-align: start; |
| | | -ms-flex-align: start; |
| | | align-items: flex-start; |
| | | |
| | | .el-card__body { |
| | | padding: 7px; |
| | | } |
| | | |
| | | .el-form-item__content { |
| | | color: rgb(52, 224, 255); |
| | | } |
| | | |
| | | .el-picker-panel { |
| | | background-color: #061e51 !important; |
| | | } |
| | | |
| | | .el-input__inner { |
| | | border-radius: 0 !important; |
| | | background-color: #061e51 !important; |
| | | border: solid 1px #0e639e !important; |
| | | } |
| | | //.el-card__body { |
| | | // padding: 7px; |
| | | //} |
| | | //.el-form-item__content { |
| | | // color: rgb(52, 224, 255); |
| | | //} |
| | | // |
| | | //.el-picker-panel { |
| | | // background-color: #061e51 !important; |
| | | //} |
| | | // |
| | | //.el-input__inner { |
| | | // border-radius: 0 !important; |
| | | // background-color: #061e51 !important; |
| | | // border: solid 1px #0e639e !important; |
| | | //} |
| | | |
| | | .el-form-item__label { |
| | | color: rgb(52, 224, 255); |
| | | /*<!--color: @color;-->*/ |
| | | color: @color; |
| | | } |
| | | |
| | | .el-input__inner::placeholder { |
| | |
| | | background-color: rgba(5,24,66,.8); |
| | | border-radius: 10px 0 0 10px; |
| | | .btn-stretch { |
| | | width: 20px; |
| | | height: 40px; |
| | | //width: 20px; |
| | | //height: 40px; |
| | | background: url('../../assets/images/map-pages/icon/icon.png') no-repeat -408px 5px; |
| | | cursor: pointer; |
| | | /*margin-left: -20px;*/ |
| | |
| | | } |
| | | |
| | | .tab-item { |
| | | width: 32px; |
| | | height: 30px; |
| | | //width: .2rem; |
| | | //height: .2rem; |
| | | color: @color; |
| | | font-size: 12px; |
| | | background-color: #0B3B6D; |
| | |
| | | cursor: pointer; |
| | | } |
| | | .panel-tab { |
| | | position: absolute; |
| | | left: 0; |
| | | //height: 120px; |
| | | top: 0; |
| | | width: 32px; |
| | | position: relative; |
| | | z-index: 500; |
| | | background: url('../../assets/images/map-pages/icon/caidan.png') no-repeat; |
| | | margin-right: .025rem; |
| | | .container{ |
| | | max-height: 3.125rem; |
| | | overflow: hidden; |
| | | position: relative; |
| | | position: relative; |
| | | } |
| | | |
| | | } |
| | | |
| | | .right-control { |
| | |
| | | //height: 573px; |
| | | height: 100%; |
| | | position: relative; |
| | | top: 0; |
| | | right: 0; |
| | | z-index: 999; |
| | | background: url('../../assets/images/map-pages/icon/bgc.png') no-repeat; |
| | | background-size: 100% 98%; |
| | | //top: 0; |
| | | //right: 0; |
| | | z-index: 500; |
| | | //background: url('../../assets/images/map-pages/icon/bgc.png') no-repeat; |
| | | //background-size: 100% 98%; |
| | | } |
| | | .a{ |
| | | transform: translateX(328px); |
| | |
| | | font-size: 18px; |
| | | } |
| | | |
| | | .search-panel { |
| | | border: #07325B; |
| | | background-color: #07325B !important; |
| | | margin-top: 0px; |
| | | |
| | | .el-input__inner { |
| | | border-radius: 0px !important; |
| | | background-color: #061e51 !important; |
| | | } |
| | | } |
| | | //.search-panel { |
| | | // border: #07325B; |
| | | // background-color: #07325B !important; |
| | | // margin-top: 0px; |
| | | // |
| | | // .el-input__inner { |
| | | // border-radius: 0px !important; |
| | | // background-color: #061e51 !important; |
| | | // } |
| | | //} |
| | | |
| | | input::-webkit-input-placeholder { |
| | | color: #569ee1; |