|
|
@@ -4,7 +4,11 @@
|
|
|
* @Descripttion:
|
|
|
-->
|
|
|
<template>
|
|
|
- <div class="xtjc-left-side" v-show="mapStore.rightSideMenu">
|
|
|
+ <div class="xtjc-left-side" v-show="mapStore.rightSideMenu" :style="{
|
|
|
+ transform: `scale(${transformNum})`,
|
|
|
+ top: `${transformTop}px`,
|
|
|
+ 'margin-right': `${transformRight}px`
|
|
|
+ }">
|
|
|
<!-- 实时告警 -->
|
|
|
<alarm />
|
|
|
<!-- 水位信息 -->
|
|
|
@@ -13,10 +17,36 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
+import { onMounted, ref } from 'vue';
|
|
|
import { useMapStore } from '/@/store/modules/map';
|
|
|
import alarm from './components/alarm.vue';
|
|
|
import qxWater from './components/qxWater.vue';
|
|
|
+import { useDebounceFn } from '@vueuse/core';
|
|
|
const mapStore = useMapStore();
|
|
|
+
|
|
|
+let transformNum = ref(0.8)
|
|
|
+let transformTop = ref(0)
|
|
|
+let transformRight = ref(-40)
|
|
|
+const getWindowSize = (e) => {
|
|
|
+ let visualHeight = window.innerHeight
|
|
|
+ console.log(visualHeight)
|
|
|
+ // transformNum.value = visualHeight/1080
|
|
|
+ if(visualHeight>911){
|
|
|
+ transformTop.value = 90
|
|
|
+ transformRight.value = 0
|
|
|
+ transformNum.value = 1
|
|
|
+ }else{
|
|
|
+ transformTop.value = 0
|
|
|
+ transformRight.value = -40
|
|
|
+ transformNum.value = 0.8
|
|
|
+ }
|
|
|
+}
|
|
|
+onMounted(() => {
|
|
|
+ window.addEventListener('resize', useDebounceFn(function (event) {
|
|
|
+ getWindowSize(event)
|
|
|
+ }, 300));
|
|
|
+ getWindowSize()
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
@@ -24,40 +54,50 @@ const mapStore = useMapStore();
|
|
|
font-family: 'AgencyFB';
|
|
|
src: url('../../assets/font/AgencyFB-Bold.ttf');
|
|
|
}
|
|
|
+
|
|
|
@font-face {
|
|
|
font-family: 'AlimamaShuHeiTi';
|
|
|
src: url('../../assets/font/AlimamaShuHeiTi-Bold.ttf');
|
|
|
}
|
|
|
+
|
|
|
.xtjc-left-side {
|
|
|
animation-name: move;
|
|
|
animation-duration: 0.5s;
|
|
|
animation-fill-mode: forwards;
|
|
|
}
|
|
|
+
|
|
|
@keyframes move {
|
|
|
0% {
|
|
|
right: -400px;
|
|
|
}
|
|
|
+
|
|
|
100% {
|
|
|
right: 20px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-bar {
|
|
|
border-bottom: 0px solid #303030 !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-nav .ant-tabs-tab-active {
|
|
|
// color: #ffe75c !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-nav .ant-tabs-tab-active {
|
|
|
// background: url('../../assets/images/sjx1.png') no-repeat 0px 10px;
|
|
|
}
|
|
|
-::v-deep .ant-tabs-nav-animated > div {
|
|
|
+
|
|
|
+::v-deep .ant-tabs-nav-animated>div {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
-::v-deep .ant-tabs-nav-animated > div > div {
|
|
|
+
|
|
|
+::v-deep .ant-tabs-nav-animated>div>div {
|
|
|
flex: 1;
|
|
|
text-align: center;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .total3 .ant-tabs-nav .ant-tabs-tab-active {
|
|
|
// background: url('../../assets/images/sjx1.png') no-repeat 42px 9px;
|
|
|
background: url('../../assets/images/tab.png') no-repeat;
|
|
|
@@ -77,23 +117,28 @@ const mapStore = useMapStore();
|
|
|
// margin: 10px 15px;
|
|
|
background: url('../../assets/images/tab-背景.png') no-repeat;
|
|
|
}
|
|
|
+
|
|
|
::v-deep span.anticon.anticon-caret-right svg path {
|
|
|
box-shadow: 0 0 10px 5px yellow;
|
|
|
background: linear-gradient(to right, yellow, #fff);
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-nav .ant-tabs-tab {
|
|
|
margin-left: -10px;
|
|
|
// margin-right: 0px;
|
|
|
padding: 6px 10px 4px 26px;
|
|
|
}
|
|
|
+
|
|
|
.bjj {
|
|
|
display: flex;
|
|
|
justify-content: space-evenly;
|
|
|
margin-top: 10px;
|
|
|
}
|
|
|
+
|
|
|
.bjj li {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
+
|
|
|
.bjj li span {
|
|
|
display: block;
|
|
|
width: 65px;
|
|
|
@@ -109,21 +154,25 @@ const mapStore = useMapStore();
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
+
|
|
|
.bjj li:nth-child(2) span {
|
|
|
background: url('../../assets/images/yjn-03.png') no-repeat;
|
|
|
background-size: 65px 65px;
|
|
|
background-position: 3px 0px;
|
|
|
}
|
|
|
+
|
|
|
.bjj li:nth-child(3) span {
|
|
|
background: url('../../assets/images/yjn-02.png') no-repeat;
|
|
|
background-size: 65px 65px;
|
|
|
background-position: 3px 0px;
|
|
|
}
|
|
|
+
|
|
|
.bjj li:nth-child(4) span {
|
|
|
background: url('../../assets/images/yjn-01.png') no-repeat;
|
|
|
background-size: 65px 65px;
|
|
|
background-position: 3px 0px;
|
|
|
}
|
|
|
+
|
|
|
.bjj li b {
|
|
|
color: #fff;
|
|
|
width: 56px;
|
|
|
@@ -133,34 +182,41 @@ const mapStore = useMapStore();
|
|
|
font-family: 'AlimamaShuHeiTi';
|
|
|
margin-left: 7px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-ink-bar {
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
|
|
|
-::v-deep .ant-tabs-top > .ant-tabs-nav::before,
|
|
|
-.ant-tabs-bottom > .ant-tabs-nav::before,
|
|
|
-.ant-tabs-top > div > .ant-tabs-nav::before,
|
|
|
-.ant-tabs-bottom > div > .ant-tabs-nav::before {
|
|
|
+::v-deep .ant-tabs-top>.ant-tabs-nav::before,
|
|
|
+.ant-tabs-bottom>.ant-tabs-nav::before,
|
|
|
+.ant-tabs-top>div>.ant-tabs-nav::before,
|
|
|
+.ant-tabs-bottom>div>.ant-tabs-nav::before {
|
|
|
border-bottom: 0px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs {
|
|
|
color: #69aeec !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-nav .ant-tabs-tab-active {
|
|
|
color: #fff !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
|
|
// color: #ffe75c;
|
|
|
}
|
|
|
+
|
|
|
::v-deep .ant-tabs-tab {
|
|
|
// font-size: 18px;
|
|
|
// font-weight: bold;
|
|
|
font-size: 16px;
|
|
|
font-weight: normal !important;
|
|
|
}
|
|
|
+
|
|
|
.ant-tabs-tab-active {
|
|
|
// background-color: yellow;
|
|
|
}
|
|
|
+
|
|
|
.tab-content {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
@@ -176,10 +232,12 @@ const mapStore = useMapStore();
|
|
|
.text {
|
|
|
color: #333;
|
|
|
}
|
|
|
-::v-deep .ant-tabs > .ant-tabs-nav .ant-tabs-nav-list,
|
|
|
-.ant-tabs > div > .ant-tabs-nav .ant-tabs-nav-list {
|
|
|
+
|
|
|
+::v-deep .ant-tabs>.ant-tabs-nav .ant-tabs-nav-list,
|
|
|
+.ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-list {
|
|
|
height: 32px;
|
|
|
}
|
|
|
+
|
|
|
.total3 {
|
|
|
position: relative;
|
|
|
padding: 15px 20px;
|
|
|
@@ -190,6 +248,7 @@ const mapStore = useMapStore();
|
|
|
background: rgba(3, 49, 79, 0.4);
|
|
|
border-image: linear-gradient(to right, #134564, #2eb3ff, #134564) 1;
|
|
|
}
|
|
|
+
|
|
|
.total3:before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
@@ -202,6 +261,7 @@ const mapStore = useMapStore();
|
|
|
border-image: linear-gradient(rgba(39, 209, 238, 0.3) 0%, #00d0e3 50%, rgba(255, 255, 255, 0) 99%) 1;
|
|
|
// background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1),rgba(253, 253, 253, 0.3));
|
|
|
}
|
|
|
+
|
|
|
.total3:after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
@@ -213,6 +273,7 @@ const mapStore = useMapStore();
|
|
|
border-radius: 5px;
|
|
|
border-image: linear-gradient(rgba(39, 209, 238, 0.3) 0%, #00d0e3 50%, rgba(255, 255, 255, 0) 99%) 1;
|
|
|
}
|
|
|
+
|
|
|
.xtjc-left-side {
|
|
|
// position: fixed;
|
|
|
position: absolute;
|
|
|
@@ -222,6 +283,7 @@ const mapStore = useMapStore();
|
|
|
width: 400px;
|
|
|
// height: 100%;
|
|
|
}
|
|
|
+
|
|
|
.leafTotal {
|
|
|
width: 400px;
|
|
|
height: 47px;
|
|
|
@@ -235,6 +297,7 @@ const mapStore = useMapStore();
|
|
|
line-height: 38px;
|
|
|
margin: 0px 0px 5px 0px;
|
|
|
}
|
|
|
+
|
|
|
.leafTotal i {
|
|
|
margin-left: 32px;
|
|
|
font-family: 'AlimamaShuHeiTi';
|
|
|
@@ -248,6 +311,7 @@ const mapStore = useMapStore();
|
|
|
// -webkit-background-clip:text;
|
|
|
// -webkit-text-fill-color:transparent;
|
|
|
}
|
|
|
+
|
|
|
.leafTotal b {
|
|
|
font-weight: normal;
|
|
|
font-size: 15px;
|
|
|
@@ -295,8 +359,10 @@ const mapStore = useMapStore();
|
|
|
padding-left: 10px;
|
|
|
// align-items: ;
|
|
|
align-items: flex-start;
|
|
|
- align-content: flex-start; /* 添加这行代码 */
|
|
|
+ align-content: flex-start;
|
|
|
+ /* 添加这行代码 */
|
|
|
}
|
|
|
+
|
|
|
.total:before {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
@@ -309,6 +375,7 @@ const mapStore = useMapStore();
|
|
|
border-image: linear-gradient(rgba(39, 209, 238, 0.3) 0%, #00d0e3 50%, rgba(255, 255, 255, 0) 99%) 1;
|
|
|
// background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1),rgba(253, 253, 253, 0.3));
|
|
|
}
|
|
|
+
|
|
|
.total:after {
|
|
|
content: '';
|
|
|
position: absolute;
|
|
|
@@ -326,23 +393,28 @@ const mapStore = useMapStore();
|
|
|
position: relative;
|
|
|
padding: 10px 10px 0px 0px;
|
|
|
position: relative;
|
|
|
+
|
|
|
.imageItem2 {
|
|
|
height: 90px;
|
|
|
width: 100%;
|
|
|
position: relative;
|
|
|
}
|
|
|
+
|
|
|
.imageItem2.active {
|
|
|
border: 3px solid #04f7fa !important;
|
|
|
}
|
|
|
+
|
|
|
/deep/ .ant-image {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
position: relative;
|
|
|
}
|
|
|
+
|
|
|
/deep/ .ant-image-img {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
+
|
|
|
span {
|
|
|
position: absolute;
|
|
|
bottom: 0px;
|
|
|
@@ -353,18 +425,25 @@ const mapStore = useMapStore();
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.projectList::-webkit-scrollbar {
|
|
|
- width: 4px; /* 设置滚动条宽度 */
|
|
|
+ width: 4px;
|
|
|
+ /* 设置滚动条宽度 */
|
|
|
}
|
|
|
+
|
|
|
.projectList::-webkit-scrollbar-track {
|
|
|
/* 设置滚动条背景颜色 */
|
|
|
}
|
|
|
|
|
|
.projectList::-webkit-scrollbar-thumb {
|
|
|
- background-color: #007e8f; /* 设置滚动条滑块颜色 */
|
|
|
- border-radius: 4px; /* 设置滚动条滑块圆角 */
|
|
|
+ background-color: #007e8f;
|
|
|
+ /* 设置滚动条滑块颜色 */
|
|
|
+ border-radius: 4px;
|
|
|
+ /* 设置滚动条滑块圆角 */
|
|
|
}
|
|
|
+
|
|
|
.projectList::-webkit-scrollbar-thumb:hover {
|
|
|
- background-color: #007e8f; /* 设置滚动条滑块在鼠标悬停时的颜色 */
|
|
|
+ background-color: #007e8f;
|
|
|
+ /* 设置滚动条滑块在鼠标悬停时的颜色 */
|
|
|
}
|
|
|
</style>
|