Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
| | |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | | --> |
| | | <template> |
| | | <div class="shrink-box" @click="shrinkClick"> |
| | | {{ str }} |
| | | </div> |
| | | <div class="shrink-box" @click="shrinkClick">{{ str }}</div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | this.str = '<<' |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.remove('shrink-btn') |
| | | document.querySelector('.screen-full-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-icon-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-img-btn').classList.remove('shrink-btn') |
| | | |
| | | } else { |
| | | this.str = '>>' |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.add('shrink-btn') |
| | | document.querySelector('.screen-full-btn').classList.add('shrink-btn') |
| | | document.querySelector('.image-switch-icon-btn').classList.add('shrink-btn') |
| | | document.querySelector('.image-switch-img-btn').classList.add('shrink-btn') |
| | | } |
| | | } |
| | | }, |
| | |
| | | beforeDestroy () { |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.remove('shrink-btn') |
| | | document.querySelector('.screen-full-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-icon-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-img-btn').classList.remove('shrink-btn') |
| | | } |
| | | } |
| | | </script> |
| | |
| | | left: 410px; |
| | | bottom: 500px; |
| | | } |
| | | .image-switch-icon-btn.shrink-btn { |
| | | left: 410px !important; |
| | | } |
| | | .image-switch-img-btn { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | .image-switch-img-btn.imgbottom { |
| | | left: 446px; |
| | | bottom: 490px; |
| | | } |
| | | .image-switch-img-btn.shrink-btn { |
| | | left: 410px !important; |
| | | } |
| | |
| | | initPersonOptions (xDate, yDate) { |
| | | return { |
| | | tooltip: { |
| | | trigger: 'item' |
| | | trigger: 'item', |
| | | formatter: ' <span style="display: inline-block; margin-right: 4px; border-radius: 10px; width: 10px; height: 10px;background-color: #91cc75;"></span> {b0}<strong style="margin-left:10px">{c0}人</strong>' |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | |
| | | { |
| | | data: yDate, |
| | | type: 'bar', |
| | | itemStyle: { |
| | | normal: { |
| | | label: { |
| | | show: true, |
| | | position: 'top', |
| | | textStyle: { |
| | | color: '#1a94a8', |
| | | fontSize: 16 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ], |
| | | grid: { |
| | |
| | | initHouseOptions (xDate, y1Date, y2Date) { |
| | | return { |
| | | tooltip: { |
| | | trigger: 'item' |
| | | }, |
| | | color: ['#2967c4', '#112d54'], |
| | | xAxis: { |
| | |
| | | data: y1Date, |
| | | type: 'bar', |
| | | zlevel: 2, |
| | | tooltip: { |
| | | trigger: 'item', |
| | | formatter: params => { |
| | | let msg |
| | | if (params.value > 10000) { |
| | | msg = (params.value / 10000).toFixed(2) + '万人' |
| | | } else { |
| | | msg = params.value + '人' |
| | | } |
| | | msg = ` <span style="display: inline-block; margin-right: 4px; border-radius: 10px; width: 10px; height: 10px;background-color: #2d71d7;"></span> ${params.name}<strong style="margin-left:10px">${msg}</strong>'` |
| | | return msg |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | data: y2Date, |
| | | type: 'bar', |
| | | barGap: '-100%', |
| | | label: { |
| | | show: true, |
| | | color: '#fff', |
| | | position: 'right', // 标签右对齐 |
| | | distance: 0,// 标签距离柱条的距离 |
| | | formatter: params => { |
| | | let msg |
| | | if (params.data.realValue > 10000) { |
| | | msg = (params.data.realValue / 10000).toFixed(2) + '万个' |
| | | } else { |
| | | msg = params.data.realValue + '个' |
| | | } |
| | | tooltip: { |
| | | trigger: 'item', |
| | | show: false |
| | | |
| | | return msg |
| | | } |
| | | } |
| | | } |
| | | ], |
| | | grid: { |
| | | top: '2%', |
| | | left: '60', |
| | | right: '40', |
| | | right: '-30', |
| | | bottom: '2%' |
| | | }, |
| | | |
| | |
| | | initLandOptions (xDate, yDate) { |
| | | return { |
| | | tooltip: { |
| | | trigger: 'item' |
| | | trigger: 'item', |
| | | formatter: ' <span style="display: inline-block; margin-right: 4px; border-radius: 10px; width: 10px; height: 10px;background-color: #91cc75;"></span> {b0}<strong style="margin-left:10px">{c0}个</strong>' |
| | | }, |
| | | xAxis: { |
| | | type: 'category', |
| | |
| | | { |
| | | data: yDate, |
| | | type: 'bar', |
| | | itemStyle: { |
| | | normal: { |
| | | label: { |
| | | show: true, |
| | | position: 'top', |
| | | textStyle: { |
| | | color: '#1a94a8', |
| | | fontSize: 16 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ], |
| | | grid: { |
| | |
| | | initkeyPersonOption (dataArr) { |
| | | return { |
| | | tooltip: { |
| | | trigger: 'item' |
| | | trigger: 'item', |
| | | formatter: params => { |
| | | let msg |
| | | if (params.value > 10000) { |
| | | msg = (params.value / 10000).toFixed(2) + '万人' |
| | | } else { |
| | | msg = params.value + '人' |
| | | } |
| | | msg = ` <span style="display: inline-block; margin-right: 4px; border-radius: 10px; width: 10px; height: 10px;background-color: #5470c6;"></span> ${params.name}<strong style="margin-left:10px">${msg}</strong>'` |
| | | return msg |
| | | } |
| | | }, |
| | | legend: { |
| | | left: '48%', |
| | |
| | | } |
| | | } |
| | | let v = tarValue |
| | | return `${name} ${v} 个 ` |
| | | return `${name} ${v} 人 ` |
| | | }, |
| | | }, |
| | | series: [ |
| | |
| | | return { |
| | | tooltip: { |
| | | trigger: 'item', |
| | | confine: true |
| | | confine: true, |
| | | formatter: ' <span style="display: inline-block; margin-right: 4px; border-radius: 10px; width: 10px; height: 10px;background-color: #91cc75;"></span> {b0}<strong style="margin-left:10px">{c0}人</strong>' |
| | | }, |
| | | legend: { |
| | | left: '60%', |
| | |
| | | series: [ |
| | | { |
| | | data: seriesData, |
| | | type: 'line' |
| | | type: 'line', |
| | | smooth: true |
| | | } |
| | | ], |
| | | grid: { |
| | |
| | | |
| | | <!-- 菜单导航 --> |
| | | <div class="menu-list"> |
| | | <div class="nav-list" :class="{ on: currentUrl == item.path }" @click="goToPath(item)" |
| | | v-for="(item, index) in menuList" :key="index"> |
| | | {{ item.menuName }} |
| | | </div> |
| | | <div |
| | | class="nav-list" |
| | | :class="{ on: currentUrl == item.path }" |
| | | @click="goToPath(item)" |
| | | v-for="(item, index) in menuList" |
| | | :key="index" |
| | | >{{ item.menuName }}</div> |
| | | </div> |
| | | |
| | | <!-- 用户登录展示的 --> |
| | |
| | | <mapBox ref="modalForm" /> |
| | | |
| | | <!-- 主体内容区域 --> |
| | | <div class="main-content" id="MainContent" |
| | | :class="{ 'spread': leftShow && show, 'take-back': leftShow && !show }"> |
| | | <router-view ref='target-name'></router-view> |
| | | <div |
| | | class="main-content" |
| | | id="MainContent" |
| | | :class="{ 'spread': leftShow && show, 'take-back': leftShow && !show }" |
| | | > |
| | | <router-view ref="target-name"></router-view> |
| | | </div> |
| | | |
| | | |
| | | <el-button v-show='leftShow' class="flexible-btn" |
| | | <el-button |
| | | v-show="leftShow" |
| | | class="flexible-btn" |
| | | :class="{ 'spread': leftShow && show, 'take-back': leftShow && !show }" |
| | | :icon="show ? 'el-icon-arrow-left' : 'el-icon-arrow-right'" id="FlexibleBtn" type="primary" |
| | | @click="flexibelClick"></el-button> |
| | | :icon="show ? 'el-icon-arrow-left' : 'el-icon-arrow-right'" |
| | | id="FlexibleBtn" |
| | | type="primary" |
| | | @click="flexibelClick" |
| | | ></el-button> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | this.$nextTick(() => { |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.remove('shrink-btn') |
| | | document.querySelector('.screen-full-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-icon-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-img-btn').classList.remove('shrink-btn') |
| | | }) |
| | | |
| | | if (this.currentUrl == '/lyout/home') { |
| | |
| | | if (this.show) { |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.add('shrink-btn') |
| | | document.querySelector('.screen-full-btn').classList.add('shrink-btn') |
| | | document.querySelector('.image-switch-icon-btn').classList.add('shrink-btn') |
| | | document.querySelector('.image-switch-img-btn').classList.add('shrink-btn') |
| | | } else { |
| | | |
| | | document.querySelector('.dc-container .dc-zoom-controller').classList.remove('shrink-btn') |
| | | document.querySelector('.screen-full-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-icon-btn').classList.remove('shrink-btn') |
| | | document.querySelector('.image-switch-img-btn').classList.remove('shrink-btn') |
| | | } |
| | | }, |
| | | |
| | |
| | | overflow: hidden; |
| | | letter-spacing: 6px; |
| | | |
| | | &>img { |
| | | & > img { |
| | | // width: 100%; |
| | | height: 80%; |
| | | margin: 0 10px 0 10px; |
| | |
| | | cursor: pointer; |
| | | border-bottom: 3px solid transparent; |
| | | } |
| | | |
| | | } |
| | | |
| | | .user-infor {} |
| | | .user-infor { |
| | | } |
| | | } |
| | | |
| | | .main-container { |