其他页面都改了
This commit is contained in:
parent
9a97c65d32
commit
744d3920a8
BIN
src/assets/images/wind0.png
Normal file
BIN
src/assets/images/wind0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/wind1.png
Normal file
BIN
src/assets/images/wind1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/wind2.png
Normal file
BIN
src/assets/images/wind2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/wind3.png
Normal file
BIN
src/assets/images/wind3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<div style="width: 100%; height: 100%" id="cesiumContainer"></div>
|
<div style="width: 100%; height: 100%" class="cesiumContainer" id="cesiumContainer"></div>
|
||||||
<div class="rightWra">
|
<div class="rightWra">
|
||||||
<div class="farmlandHeader">
|
<div class="farmlandHeader">
|
||||||
监测日期: 
|
监测日期: 
|
||||||
@ -123,7 +123,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<el-collapse class="legend" accordion>
|
<el-collapse class="legend" accordion>
|
||||||
<el-collapse-item name="1">
|
<el-collapse-item name="1">
|
||||||
<template #title>图例</template>
|
<template #title>图例</template>
|
||||||
@ -142,7 +141,8 @@
|
|||||||
|
|
||||||
}"
|
}"
|
||||||
|
|
||||||
>{{ item }}</div>
|
>{{ item }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
@ -153,14 +153,19 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import guanbi from '@/assets/images/guanbi.png';
|
||||||
|
import icon from '@/assets/images/icon.png';
|
||||||
|
|
||||||
|
|
||||||
import {ref, onMounted, reactive,} from 'vue';
|
import {ref, onMounted, reactive,} from 'vue';
|
||||||
|
|
||||||
|
|
||||||
|
import ganhan1 from '@/assets/images/wind1.png';
|
||||||
|
import ganhan2 from '@/assets/images/wind2.png';
|
||||||
|
import ganhan3 from '@/assets/images/wind3.png';
|
||||||
|
|
||||||
|
import ganhan0 from '@/assets/images/wind0.png';
|
||||||
|
|
||||||
import ganhan1 from '@/assets/images/lengdong1.png';
|
|
||||||
import ganhan2 from '@/assets/images/lengdong2.png';
|
|
||||||
import ganhan3 from '@/assets/images/lengdong3.png';
|
|
||||||
import ganhan0 from '@/assets/images/lengdong0.png';
|
|
||||||
import pun from '@/assets/images/personUnselected.png';
|
import pun from '@/assets/images/personUnselected.png';
|
||||||
import pse from '@/assets/images/personSelected.png';
|
import pse from '@/assets/images/personSelected.png';
|
||||||
import pin from '@/assets/images/pin.png';
|
import pin from '@/assets/images/pin.png';
|
||||||
@ -173,7 +178,6 @@ import {
|
|||||||
import 'echarts-gl';
|
import 'echarts-gl';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const value = ref()
|
const value = ref()
|
||||||
|
|
||||||
|
|
||||||
@ -238,6 +242,7 @@ const warnList = [
|
|||||||
label: '重度干热风',
|
label: '重度干热风',
|
||||||
flag: 3,
|
flag: 3,
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
@ -292,15 +297,18 @@ const rules = reactive({
|
|||||||
const currentPage = ref(1)
|
const currentPage = ref(1)
|
||||||
const pageSize = ref(6)
|
const pageSize = ref(6)
|
||||||
const pageData = ref([])
|
const pageData = ref([])
|
||||||
|
|
||||||
function handleCurrentChange(page) {
|
function handleCurrentChange(page) {
|
||||||
currentPage.value = page;
|
currentPage.value = page;
|
||||||
updatePagedData();
|
updatePagedData();
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatePagedData() {
|
function updatePagedData() {
|
||||||
const start = (currentPage.value - 1) * pageSize.value;
|
const start = (currentPage.value - 1) * pageSize.value;
|
||||||
const end = currentPage.value * pageSize.value;
|
const end = currentPage.value * pageSize.value;
|
||||||
pageData.value = SaveResultsDiv.value.slice(start, end);
|
pageData.value = SaveResultsDiv.value.slice(start, end);
|
||||||
}
|
}
|
||||||
|
|
||||||
// watch(
|
// watch(
|
||||||
// () => value1.value,
|
// () => value1.value,
|
||||||
// val => {
|
// val => {
|
||||||
@ -314,10 +322,10 @@ function updatePagedData(){
|
|||||||
// );
|
// );
|
||||||
|
|
||||||
function getIcon(val) {
|
function getIcon(val) {
|
||||||
if (val === '轻度干热风') return ganhan1
|
if (val === '轻度干旱') return ganhan1
|
||||||
if (val === '中度干热风') return ganhan2
|
if (val === '中度干旱') return ganhan2
|
||||||
if (val === '重度干热风') return ganhan3
|
if (val === '严重干旱') return ganhan3
|
||||||
|
if (val === '特大干旱') return ganhan4
|
||||||
if (val === '无灾害') return ganhan0
|
if (val === '无灾害') return ganhan0
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -392,8 +400,6 @@ function getmeteorology() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getZdmc() {
|
function getZdmc() {
|
||||||
zdmc().then(res => {
|
zdmc().then(res => {
|
||||||
zdmcList.value = res.data
|
zdmcList.value = res.data
|
||||||
@ -427,10 +433,12 @@ function initMap() {
|
|||||||
cun();
|
cun();
|
||||||
zhen();
|
zhen();
|
||||||
const infoOverlay = new ol.Overlay({
|
const infoOverlay = new ol.Overlay({
|
||||||
element: document.createElement('div'), // 创建一个用于显示信息的div元素
|
element: document.createElement('div'),
|
||||||
|
className: 'overlay1',// 创建一个用于显示信息的div元素
|
||||||
positioning: 'bottom-center', // 设置覆盖层相对于锚点的位置
|
positioning: 'bottom-center', // 设置覆盖层相对于锚点的位置
|
||||||
offset: [0, -10], // 设置偏移量以便覆盖层不会遮挡图标
|
offset: [0, -10], // 设置偏移量以便覆盖层不会遮挡图标
|
||||||
stopEvent: true, // 允许地图事件继续传播(例如,缩放和拖动)
|
stopEvent: true, // 允许地图事件继续传播(例如,缩放和拖动)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//滚轮控制村级矢量
|
//滚轮控制村级矢量
|
||||||
@ -442,6 +450,7 @@ function initMap() {
|
|||||||
layers.setVisible(false);
|
layers.setVisible(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
map.on('singleclick', function (e) {
|
map.on('singleclick', function (e) {
|
||||||
alterData = ref([]);
|
alterData = ref([]);
|
||||||
const pixel = map.getEventPixel(e.originalEvent);
|
const pixel = map.getEventPixel(e.originalEvent);
|
||||||
@ -471,9 +480,15 @@ function initMap() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
map.forEachFeatureAtPixel(pixel, (feature) => {
|
map.forEachFeatureAtPixel(pixel, (feature) => {
|
||||||
|
|
||||||
|
view.animate({
|
||||||
|
center: [lon, lat],
|
||||||
|
duration: 1000,
|
||||||
|
zoom:13
|
||||||
|
});
|
||||||
// 获取Feature的其他属性(例如,自定义属性'id')
|
// 获取Feature的其他属性(例如,自定义属性'id')
|
||||||
const featureId = feature.get('id');
|
const featureId = feature.get('id');
|
||||||
const featureType = feature.get('type');
|
const featureType = feature.get('type');
|
||||||
@ -491,12 +506,12 @@ function initMap() {
|
|||||||
infoOverlay.setPosition(feature.getGeometry().getCoordinates());
|
infoOverlay.setPosition(feature.getGeometry().getCoordinates());
|
||||||
// 设置覆盖层的内容
|
// 设置覆盖层的内容
|
||||||
infoOverlay.getElement().innerHTML = `
|
infoOverlay.getElement().innerHTML = `
|
||||||
<div class="info-window" style="padding: 10px 20px 10px 20px;background: rgba(2, 31, 26, 0.85);border: 1.5px solid rgba(23, 194, 180, 1);">
|
<div class="info-window">
|
||||||
<span class="close-btn" style="color:white;display: flex;justify-content: end;cursor:pointer;" >X</span>
|
<div class="close-btn" ><span>站点信息</span><img src="${guanbi}" alt=""/> </div>
|
||||||
<div style="color:white;font-size: 18px">
|
<div class="content" style="color:white;font-size: 16px">
|
||||||
<div style="margin-top: 10px"><span>名称:</span><span>${clickInformationData.name}</span></div>
|
<div class="line" style="margin-top: 10px"><img src="${icon}" alt=""/> <span>名称:</span><span>${clickInformationData.name}</span></div>
|
||||||
<div style="margin-top: 10px"><span>经度:</span><span>${clickInformationData.lon}</span></div>
|
<div class="line" style="margin-top: 10px"><img src="${icon}" alt=""/> <span>经度:</span><span>${clickInformationData.lon}</span></div>
|
||||||
<div style="margin-top: 10px"><span>维度:</span><span>${clickInformationData.lat}</span></div>
|
<div class="line" style="margin-top: 10px"><img src="${icon}" alt=""/> <span>维度:</span><span>${clickInformationData.lat}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@ -519,12 +534,12 @@ function initMap() {
|
|||||||
infoOverlay.setPosition(feature.getGeometry().getCoordinates());
|
infoOverlay.setPosition(feature.getGeometry().getCoordinates());
|
||||||
// 设置覆盖层的内容
|
// 设置覆盖层的内容
|
||||||
infoOverlay.getElement().innerHTML = `
|
infoOverlay.getElement().innerHTML = `
|
||||||
<div class="info-window" style="padding: 10px 20px 10px 20px;background: rgba(2, 31, 26, 0.85);border: 1.5px solid rgba(23, 194, 180, 1);">
|
<div class="info-window" >
|
||||||
<span class="close-btn" style="color:white;display: flex;justify-content: end;cursor:pointer;" >X</span>
|
<div class="close-btn" ><span>人员信息</span><img src="${guanbi}" alt=""/> </div>
|
||||||
<div style="color:white;font-size: 18px">
|
<div class="content" style="color:white;font-size: 16px">
|
||||||
<div style="margin-top: 10px"><span>姓名:</span><span>${clickInformationData.name}</span></div>
|
<div class="line" style="margin-top: 10px"><img src="${icon}" alt=""/><span>姓名:</span><span>${clickInformationData.name}</span></div>
|
||||||
<div style="margin-top: 10px"><span>手机:</span><span>${clickInformationData.phone}</span></div>
|
<div class="line" style="margin-top: 10px"><img src="${icon}" alt=""/><span>手机:</span><span>${clickInformationData.phone}</span></div>
|
||||||
<div style="margin-top: 10px"><span>位置:</span><span>${clickInformationData.region}</span></div>
|
<div class="line" style="margin-top: 10px"><img src="${icon}" alt=""/><span>位置:</span><span>${clickInformationData.region}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@ -597,7 +612,6 @@ function initMap() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -815,6 +829,14 @@ const selectTime = () => {
|
|||||||
//选择时间
|
//选择时间
|
||||||
|
|
||||||
meteorologicals()
|
meteorologicals()
|
||||||
|
meteorology({
|
||||||
|
data: value.value,
|
||||||
|
alertRange: radio1.value,
|
||||||
|
flag: 4,
|
||||||
|
}).then(res => {
|
||||||
|
SaveResultsDiv.value = res.data
|
||||||
|
updatePagedData()
|
||||||
|
})
|
||||||
// getmeteorologicalFreezes();
|
// getmeteorologicalFreezes();
|
||||||
};
|
};
|
||||||
const subText = () => {
|
const subText = () => {
|
||||||
@ -907,8 +929,49 @@ $height: calc(100vh - 100px);
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cesiumContainer {
|
||||||
|
|
||||||
|
::v-deep .ol-viewport {
|
||||||
|
.ol-overlaycontainer-stopevent {
|
||||||
|
|
||||||
|
.overlay1 div:first-child {
|
||||||
|
|
||||||
|
.info-window {
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
.close-btn {
|
||||||
|
color: white;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 22px;
|
||||||
|
background: url("@/assets/images/top.png");
|
||||||
|
padding: 3px 0 3px 40px;
|
||||||
|
img{
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
background: url("@/assets/images/bottom.png") no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.line {
|
||||||
|
background: url("@/assets/images/chande.png");
|
||||||
|
padding-left: 20px;
|
||||||
|
margin: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.rightWra {
|
.rightWra {
|
||||||
@ -1042,6 +1105,7 @@ $height: calc(100vh - 100px);
|
|||||||
background: rgba(22, 94, 102, 1);
|
background: rgba(22, 94, 102, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-pagination {
|
.el-pagination {
|
||||||
::v-deep .el-pager {
|
::v-deep .el-pager {
|
||||||
.number {
|
.number {
|
||||||
@ -1049,18 +1113,22 @@ $height: calc(100vh - 100px);
|
|||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-active {
|
.is-active {
|
||||||
background: rgba(5, 179, 179, 1);
|
background: rgba(5, 179, 179, 1);
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .btn-next {
|
::v-deep .btn-next {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .btn-prev {
|
::v-deep .btn-prev {
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-table tr) {
|
:deep(.el-table tr) {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
@ -1199,3 +1267,6 @@ $height: calc(100vh - 100px);
|
|||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user