| | |
| | | <template> |
| | | <div id="right-panel"> |
| | | <div class="panel-tab"> |
| | | <div class="btn-stretch" @click="toggleMonitorPanel"></div> |
| | | <div class="tab-gd" @click="handleGd" :class="{'B-TMT-tab-waybill-isActive': isWaybillHover}"></div> |
| | | <div class="tab-hb" @click="handleHb" :class="{'B-TMT-tab-route-isActive': isRouteHover}"></div> |
| | | <div class="tab-pk" @click="handlePk" :class="{'B-TMT-tab-route-isActive': isRouteHover}"></div> |
| | | </div> |
| | | <div class="panel-fold-btn"> |
| | | <div class="btn-stretch" @click="toggleMonitorPanel"></div> |
| | | </div> |
| | | |
| | | <div class="right-control"> |
| | | <div class="el-message-box__header panel_header"> |
| | | <div class="el-message-box__title panel_title"><!----><span>{{ title }}</span> |
| | |
| | | }, |
| | | toggleMonitorPanel () { |
| | | const el = $('.btn-stretch') |
| | | const el2 = $('.panel-fold-btn') |
| | | // let cs = 'btn-stretch-active' |
| | | var rightControl = $('#right-panel') |
| | | const right = rightControl.css('right') |
| | | if (right === '10px') { |
| | | rightControl.animate({ |
| | | right: '-290px' |
| | | right: '-322px' |
| | | }) |
| | | el.css({ |
| | | transform: 'rotateY(180deg)', |
| | | 'transform-origin': '50% 50%', |
| | | transition: 'transform 1s linear' |
| | | }) |
| | | el2.animate({ |
| | | right: '320px', |
| | | speed: 1000 |
| | | }) |
| | | } else { |
| | | rightControl.animate({ |
| | |
| | | transform: 'rotateY(0deg)', |
| | | 'transform-origin': '50% 50%', |
| | | transition: 'transform 1s linear' |
| | | }) |
| | | el2.animate({ |
| | | right: '290px', |
| | | speed: 1000 |
| | | }) |
| | | } |
| | | } |
| | |
| | | <style lang="less"> |
| | | #right-panel { |
| | | width: 322px; |
| | | height: 573px; |
| | | //height: 573px; |
| | | height: 100%; |
| | | position: absolute; |
| | | right: 10px; |
| | | top: 10px; |
| | |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | } |
| | | |
| | | .panel-fold-btn{ |
| | | position: absolute; |
| | | top:45%; |
| | | //right: 320px; |
| | | right: 290px; |
| | | z-index: 1000; |
| | | background-color: rgba(5,24,66,.8); |
| | | border-radius: 10px 0 0 10px; |
| | | .btn-stretch { |
| | | width: 15px; |
| | | height: 28px; |
| | | background: url('../../assets/images/map-pages/icon/icon.png') no-repeat -408px 0; |
| | | margin-left: 10px; |
| | | margin-top: 3px; |
| | | cursor: pointer; |
| | | width: 20px; |
| | | height: 40px; |
| | | background: url('../../assets/images/map-pages/icon/icon.png') no-repeat -408px 5px; |
| | | cursor: pointer; |
| | | |
| | | transform: rotateY(180deg); |
| | | transform-origin: 50% 50%; |
| | | transition: transform 1s linear; |
| | | transform: rotateY(180deg); |
| | | transform-origin: 50% 50%; |
| | | transition: transform 1s linear; |
| | | } |
| | | } |
| | | |
| | | .tab-gd { |
| | | width: 32px; |
| | |
| | | |
| | | .right-control { |
| | | width: 290px; |
| | | height: 573px; |
| | | //height: 573px; |
| | | height: 100%; |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | z-index: 999; |
| | | background: url('../../assets/images/map-pages/icon/bgc.png') no-repeat; |
| | | background-size: 100% 98%; |
| | | } |
| | | |
| | | .panel_searchTotal { |