overview.vue 4.36 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
<template>
 <div class="overview-wrapper height100">
      <div class="middel-part">
            <!--地区展板播放统计-->
            <areas class="table-list"></areas>
            <!--中间地图-->
            <div class="map-container">
                <borderNums></borderNums>
                <mapDiv></mapDiv>
            </div>
            <!--全国点播板块-->
            <top10 class="table-list"></top10>
        </div>
         <div class="echartspanel">
             <div class="echarts-box left">
                 <demand class="echarts-panel"></demand>
             </div>
            <div class="echarts-box right">
                <interact  class="echarts-panel"></interact>           
            </div>       
        </div>
 </div>
</template>
<script>
import {
    demand,
    interact,
    areas,
    top10,
    mapDiv,
    borderNums
  } from './components'
export default {
    data(){
        return {

        }
    },
     components:{demand, interact , areas, top10, mapDiv, borderNums},
}
</script>
<style lang="less" scoped>
.overview-wrapper{
    .middel-part{
        display: flex;
        height: 50vh;
        justify-content: space-between;
        overflow:hidden;
        .table-list{
            width: 25vw;
            height: 100%;
            background: @party-white;
            box-shadow: 0 4px 8px 0 rgba(0,0,0,0.10);
            border-radius: 8px;
            padding: 20px;
        }
        .map-container{
            position: relative;
            width: calc(100% - 50vw);
            height: 100%;
        }
    }
   /deep/ .common-title{
        .icon-title{
            width: 20px;
            vertical-align: middle;
        }
        .title{
            font-weight: 500;
            font-size: 20px;
            color: @font-color;
            line-height: 20px;
            vertical-align: middle;
            margin-left: 12px;
        }
        .bg{
            width: 100%;
        }
    }
    //列表
    .table-list{
     /deep/.list-of-body{
            height: calc(100% - 50px);
            box-sizing: border-box;
            ul{
                display: flex;
                align-items: flex-start;
                font-size: 16px;
                padding-left: 20px;
                box-sizing: border-box;
                li{
                    line-height: 40px;
                    &.f1{
                       width: 10%;
                    }
                    &.f2{
                       width: 20%;
                    }
                    &.f3{
                        width: 30%;
                    }
                    &.f5{
                        width: 50%;
                    }
                    &.f6{
                        width: 60%;
                    }
                    &.f7{
                        width: 70%;
                    }
                    div.title{
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        padding-right: 10px;
                    }
                }
            }
            .body-title{
                color: @font-color;
            }
            .body-content{
                height: calc(100% - 40px);
                overflow-y: hidden;
                .body-item{
                    height: 40px;
                    background-color: @party-bg-gray;
                    margin-bottom: 3px;
                    color: @font-color;
                }
            }
        }
    }
    // echarts 样式
     .echartspanel{
         height: calc(100% - 50vh);
         padding-top: 20px;
         .echarts-box{
            height: 100%;
            width: 50%;
            display: inline-block;
            box-sizing: border-box;
           &.left{
               padding-right: 10px;
               float: left;
           }
           &.right{
               padding-left: 10px;
               float: right;
           }
           .echarts-panel{
                background:@party-white;
                border: 1px solid #FFFFFF;
                box-shadow: 0 4px 8px 0 rgba(0,0,0,0.10);
                border-radius: 8px;
                height: 100%;
                padding: 20px;
           }
        }
     }
}
xulili's avatar
xulili committed
162
</style>