<template>
|
<div id="right-panel">
|
<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>
|
<div class="panel-fold-btn">
|
<div class="btn-stretch" @click="toggleMonitorPanel"></div>
|
</div>
|
|
<div class="right-control">
|
|
<component :title="title" :is="gcComp"></component>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
import $ from 'jquery'
|
import EnvProtectSearch from './topicSearch/EnvProtectSearch'
|
import DischargeSearch from './topicSearch/DischargeSearch'
|
import { TopicList } from '../../conf/Topic'
|
|
import SewersSearch from '@components/panel/topicSearch/SewersSearch'
|
export default {
|
name: 'MonitorPanel',
|
components: { EnvProtectSearch, DischargeSearch },
|
data () {
|
return {
|
topicMenu: [],
|
topicList: TopicList,
|
topicCheckedList: [],
|
isPanelVisible: false,
|
gcComp: SewersSearch,
|
|
gdVisible: true,
|
hbVisible: false,
|
pkVisible: false,
|
toggleMonitorStyle: 'right:0px',
|
|
title: '污雨水管网'
|
|
}
|
},
|
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) {
|
// item.checked = tr
|
this.topicMenu.push(item)
|
}
|
})
|
})
|
}
|
},
|
methods: {
|
handleClose (done) {
|
console.log(done)
|
},
|
|
handlePage (page) {
|
},
|
handleGd () {
|
this.title = '管道信息查询'
|
},
|
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: '-322px'
|
})
|
el.css({
|
transform: 'rotateY(180deg)',
|
'transform-origin': '50% 50%',
|
transition: 'transform 1s linear'
|
})
|
el2.animate({
|
right: '320px',
|
speed: 1000
|
})
|
} else {
|
rightControl.animate({
|
right: '10px'
|
})
|
el.css({
|
transform: 'rotateY(0deg)',
|
'transform-origin': '50% 50%',
|
transition: 'transform 1s linear'
|
})
|
el2.animate({
|
right: '290px',
|
speed: 1000
|
})
|
}
|
}
|
},
|
mounted () {
|
}
|
}
|
</script>
|
|
<style lang="less">
|
@import '@assets/css/map/_map-variable';
|
#right-panel {
|
width: 322px;
|
//height: 573px;
|
height: 100%;
|
position: absolute;
|
right: 10px;
|
top: 10px;
|
|
.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);
|
}
|
|
.el-input__inner::placeholder {
|
color: #9a9494;
|
}
|
|
/* 谷歌 */
|
|
.el-input__inner::-webkit-input-placeholder {
|
color: #9a9494;
|
}
|
|
/* 火狐 */
|
|
.el-input__inner:-moz-placeholder {
|
color: #9a9494;
|
}
|
|
/*ie*/
|
|
.el-input__inner:-ms-input-placeholder {
|
color: #9a9494;
|
}
|
|
.warning {
|
color: #dcc805;
|
}
|
|
#plateNumber_n a {
|
color: rgb(52, 224, 255);
|
}
|
|
.offline {
|
color: #9a9494;
|
}
|
|
.customInput {
|
width: 118px;
|
}
|
|
.btn-ok {
|
margin-right: 10px;
|
width: 4rem;
|
background-color: #0B89B5;
|
color: white;
|
border: 0;
|
}
|
|
.btn-reset {
|
margin-right: 10px;
|
width: 4rem;
|
background-color: orange;
|
color: white;
|
border: 0;
|
}
|
|
.component-fade-enter-active, .component-fade-leave-active {
|
transition: opacity .5s ease;
|
}
|
|
.component-fade-enter, .component-fade-leave-to
|
/* .component-fade-leave-active for below version 2.1.8 */ {
|
opacity: 0;
|
}
|
|
.B-TMD-table-icons ul li {
|
float: left;
|
margin: 10px;
|
list-style: none;
|
}
|
|
.B-TMD-table-list {
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
.B-TMD-table-list-title {
|
width: 100%;
|
height: 30px;
|
}
|
|
.B-TMD-table-list-head {
|
//width: 160px;
|
float: left;
|
padding-left: 5px;
|
overflow: hidden;
|
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: 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;
|
}
|
}
|
|
.tab-item {
|
width: 32px;
|
height: 30px;
|
color: @color;
|
font-size: 12px;
|
background-color: #0B3B6D;
|
}
|
.tab-item:hover{
|
cursor: pointer;
|
}
|
.panel-tab {
|
position: absolute;
|
left: 0;
|
//height: 120px;
|
top: 0;
|
width: 32px;
|
z-index: 500;
|
background: url('../../assets/images/map-pages/icon/caidan.png') no-repeat;
|
}
|
|
.right-control {
|
width: 290px;
|
//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 {
|
font-size: 12px;
|
float: right;
|
}
|
|
.panel_header {
|
// background-color: #030D2E;
|
padding: 7px 15px 3px 20px;
|
}
|
|
.panel_title {
|
font-size: 12px;
|
margin: 0px;
|
padding: 0px;
|
color: #78c4ff;
|
font-weight: bold;
|
}
|
|
.el-message-box__content {
|
background-color: transparent;
|
}
|
|
.search-form .el-form-item {
|
margin: 0px;
|
margin-bottom: 8px;
|
}
|
|
.search-form .el-icon-search {
|
display: grid;
|
line-height: 30px;
|
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;
|
}
|
}
|
|
input::-webkit-input-placeholder {
|
color: #569ee1;
|
}
|
|
input::-moz-placeholder {
|
color: #569ee1;
|
}
|
|
input::-ms-input-placeholder {
|
color: #569ee1;
|
}
|
|
input[type=text]:focus {
|
outline: 1px solid #17e4f6;
|
// box-shadow: 1px 0px 3px 0px #17e4f6;
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
}
|
|
.search-result {
|
margin: 5px 0px 0px 0px;
|
padding: 0px;
|
border: #051842;
|
//height: 290px;
|
height: calc(~"100vh - 180px");
|
overflow-y: scroll;
|
background-color: transparent !important;
|
margin-bottom: -8px !important;
|
}
|
|
.offline {
|
color: #64778B;
|
}
|
|
.B-TMD-table-list {
|
margin-top: 10px;
|
text-align: left;
|
padding-left: 10px;
|
//color: #64778B;
|
color: #34e0ff;
|
width: 100%;
|
line-height: 25px;
|
background: url('../../assets/images/map-pages/icon/dd.png') no-repeat;
|
}
|
|
.B-TMD-inp-button {
|
width: 46px;
|
height: 52px;
|
position: absolute;
|
bottom: 8px;
|
right: 16px;
|
background: url('../../assets/images/map-pages/icon/icon.png') no-repeat -481px 0;
|
cursor: pointer;
|
}
|
|
.footer-page {
|
position: absolute;
|
background-color: transparent !important;
|
bottom: 10px !important;
|
margin-left: 0px;
|
border: none;
|
|
.warnPagination {
|
.btn-quicknext, .btn-quickprev {
|
color: #e4e8f1 !important;
|
background-color: transparent;
|
// border: 1px solid #25AECD;
|
border-left: 1px solid #25AECD;
|
border-bottom: 1px solid #25AECD;
|
border-top: 1px solid #25AECD;
|
color: #e4e8f1;
|
}
|
|
.el-pager li {
|
color: #e4e8f1;
|
background: transparent;
|
// border: 1px solid #25AECD;
|
border-left: 1px solid #25AECD;
|
border-bottom: 1px solid #25AECD;
|
border-top: 1px solid #25AECD;
|
}
|
|
.el-pager li.active {
|
border-color: #25AECD;
|
background-color: rgba(38, 222, 253, 0.3);
|
color: #e4e8f1;
|
}
|
|
.el-pager li:hover {
|
border-color: #25AECD;
|
background-color: rgba(38, 222, 253, 0.3);
|
color: #34e0ff;
|
}
|
|
.btn-prev {
|
background-color: transparent;
|
// border: 1px solid #25AECD;
|
border-left: 1px solid #25AECD;
|
border-bottom: 1px solid #25AECD;
|
border-top: 1px solid #25AECD;
|
color: #e4e8f1;
|
}
|
|
.btn-next {
|
background-color: transparent;
|
border: 1px solid #25AECD;
|
color: #e4e8f1;
|
}
|
}
|
}
|
|
::-webkit-scrollbar {
|
width: 7px;
|
height: 5px !important;
|
}
|
|
::-webkit-scrollbar-thumb {
|
/*滚动条里面小方块*/
|
border-radius: 10px;
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
|
background: #0661AE;
|
border: 1px solid transparent;
|
}
|
|
::-webkit-scrollbar-track {
|
/*滚动条里面轨道*/
|
// box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2);
|
border-radius: 0px;
|
background: #0E3565;
|
}
|
|
.selectFrom {
|
color: #061e51;
|
border: 1px solid #061e51 !important;
|
background: #dcc805 !important;
|
|
.el-select-dropdown__list {
|
background: #061e51 !important;
|
}
|
|
.el-select-dropdown__item {
|
color: #949494;
|
background: #061e51 !important;
|
}
|
|
.el-select-dropdown__item.hover,
|
.el-select-dropdown__item:hover {
|
color: #fff;
|
background: #061e51 !important;
|
}
|
|
.popper__arrow {
|
background-color: #061e51 !important;
|
}
|
}
|
}
|
</style>
|