This commit is contained in:
2023-11-08 11:15:41 +08:00
parent 700b8a4449
commit a5a8a38989
272 changed files with 10131 additions and 641 deletions

View File

@ -2271,7 +2271,6 @@ function SQLSearch(name) {
let quyu = '';
url = `${serverAPI.geoserverUrl}/data-huangdaoqu_bianjie/rest/data`;
names = name;
setName = 'XJQY3702112019WGS84';
setOf = 'huangdaoqu_bianjie';
quyu = 'XJQYMC';

View File

@ -347,7 +347,7 @@
<template #default="props">
<div class="selectdiv" m="4">
<p>
0cm湿度:
-10cm湿度:
<span
v-if="
props.row.soilHumidity1 < 5 ||
@ -363,7 +363,7 @@
<span v-else>{{ props.row.soilHumidity1 }}</span>
</p>
<p>
-10cm湿度:
-20cm湿度:
<span
v-if="
props.row.soilHumidity2 < 0 ||
@ -379,7 +379,7 @@
<span v-else>{{ props.row.soilHumidity2 }}</span>
</p>
<p>
-20cm湿度:
-30cm湿度:
<span
v-if="
props.row.soilHumidity3 < 0 ||
@ -395,7 +395,7 @@
<span v-else>{{ props.row.soilHumidity3 }}</span>
</p>
<p>
-30cm湿度:
-40cm湿度:
<span
v-if="
props.row.soilHumidity4 < 0 ||
@ -411,7 +411,7 @@
<span v-else>{{ props.row.soilHumidity4 }}</span>
</p>
<p>
-40cm湿度:
-50cm湿度:
<span
v-if="
props.row.soilHumidity5 < 0 ||
@ -427,7 +427,7 @@
<span v-else>{{ props.row.soilHumidity5 }}</span>
</p>
<p>
0cm温度:
-10cm温度:
<span
v-if="
props.row.soilTemperature1 < -10 ||
@ -443,7 +443,7 @@
<span v-else>{{ props.row.soilTemperature1 }}</span>
</p>
<p>
-10cm温度:
-20cm温度:
<span
v-if="
props.row.soilTemperature2 < -5 ||
@ -459,7 +459,7 @@
<span v-else>{{ props.row.soilTemperature2 }}</span>
</p>
<p>
-20cm温度:
-30cm温度:
<span
v-if="
props.row.soilTemperature3 < 0 ||
@ -475,7 +475,7 @@
<span v-else>{{ props.row.soilTemperature3 }}</span>
</p>
<p>
-30cm温度:
-40cm温度:
<span
v-if="
props.row.soilTemperature4 < 0 ||
@ -491,7 +491,7 @@
<span v-else>{{ props.row.soilTemperature4 }}</span>
</p>
<p>
-40cm温度:
-50cm温度:
<span
v-if="
props.row.soilTemperature5 < 0 ||
@ -973,7 +973,7 @@
style="width: 100%"
>
<el-table-column prop="dataTime" label="日期" />
<el-table-column prop="soilTemperature1" label="0cm温度">
<el-table-column prop="soilTemperature1" label="-10cm温度">
<template #default="scope">
<span
v-if="
@ -988,7 +988,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilTemperature2" label="-10cm温度">
<el-table-column prop="soilTemperature2" label="-20cm温度">
<template #default="scope">
<span
v-if="
@ -1003,7 +1003,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilTemperature3" label="-20cm温度">
<el-table-column prop="soilTemperature3" label="-30cm温度">
<template #default="scope">
<span
v-if="
@ -1018,7 +1018,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilTemperature4" label="-30cm温度">
<el-table-column prop="soilTemperature4" label="-40cm温度">
<template #default="scope">
<span
v-if="
@ -1033,7 +1033,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilTemperature5" label="-40温度">
<el-table-column prop="soilTemperature5" label="-50cm温度">
<template #default="scope">
<span
v-if="
@ -1048,7 +1048,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilHumidity1" width="80" label="0cm湿度(%rh)">
<el-table-column prop="soilHumidity1" width="80" label="-10cm湿度(%rh)">
<template #default="scope">
<span
v-if="
@ -1063,7 +1063,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilHumidity2" label="-10cm湿度">
<el-table-column prop="soilHumidity2" label="-20cm湿度">
<template #default="scope">
<span
v-if="
@ -1078,7 +1078,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilHumidity3" label="-20cm湿度">
<el-table-column prop="soilHumidity3" label="-30cm湿度">
<template #default="scope">
<span
v-if="
@ -1093,7 +1093,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilHumidity4" label="-30cm湿度">
<el-table-column prop="soilHumidity4" label="-40cm湿度">
<template #default="scope">
<span
v-if="
@ -1108,7 +1108,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="soilHumidity5" label="-40cm湿度">
<el-table-column prop="soilHumidity5" label="-50cm湿度">
<template #default="scope">
<span
v-if="
@ -1616,31 +1616,31 @@
:class="active == '1' ? 'SelectedDiv' : ''"
@click="depthclick(1)"
>
0cm
-10cm
</p>
<p
:class="active == '2' ? 'SelectedDiv' : ''"
@click="depthclick(2)"
>
-10cm
-20cm
</p>
<p
:class="active == '3' ? 'SelectedDiv' : ''"
@click="depthclick(3)"
>
-20cm
-30cm
</p>
<p
:class="active == '4' ? 'SelectedDiv' : ''"
@click="depthclick(4)"
>
-30cm
-40cm
</p>
<p
:class="active == '5' ? 'SelectedDiv' : ''"
@click="depthclick(5)"
>
-40cm
-50cm
</p>
<p
:class="active == '6' ? 'SelectedDiv' : ''"
@ -1925,7 +1925,7 @@
</el-radio-group>
</div>
<el-button class="but" type="primary" @click="subText">
预警信息
预警信息
</el-button>
</div>
<image-preview
@ -2007,7 +2007,7 @@
<div>
<div class="rowContentTopChildren">
<div>
0cm湿度(%rh):
-10cm湿度(%rh):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2033,7 +2033,7 @@
</span>
</div>
<div>
-10cm湿度(%rh):
-20cm湿度(%rh):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2059,7 +2059,7 @@
</span>
</div>
<div>
-20cm湿度(%rh):
-30cm湿度(%rh):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2085,7 +2085,7 @@
</span>
</div>
<div>
-30cm湿度(%rh):
-40cm湿度(%rh):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2111,7 +2111,7 @@
</span>
</div>
<div>
-40cm湿度(%rh):
-50cm湿度(%rh):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2144,7 +2144,7 @@
<div>
<div class="rowContentTopChildren">
<div>
0cm温度(℃):
-10cm温度(℃):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2170,7 +2170,7 @@
</span>
</div>
<div>
-10cm温度(℃):
-20cm温度(℃):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2196,7 +2196,7 @@
</span>
</div>
<div>
-20cm温度(℃):
-30cm温度(℃):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2222,7 +2222,7 @@
</span>
</div>
<div>
-30cm温度(℃):
-40cm温度(℃):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2248,7 +2248,7 @@
</span>
</div>
<div>
-40cm温度(℃):
-50cm温度(℃):
<span
style="
color: rgba(67, 207, 124, 1);
@ -2552,16 +2552,16 @@ let gridArr = ref({});
const radio1 = ref(5000);
const dictionary = ref({
soilTemperature1: '0cm温度',
soilTemperature2: '-10cm温度',
soilTemperature3: '-20cm温度',
soilTemperature4: '-30cm温度',
soilTemperature5: '-40cm温度',
soilHumidity1: '0cm湿度(%rh)',
soilHumidity2: '-10cm湿度(%rh)',
soilHumidity3: '-20cm湿度(%rh)',
soilHumidity4: '-30cm湿度(%rh)',
soilHumidity5: '-40cm湿度(%rh)',
soilTemperature1: '-10cm温度',
soilTemperature2: '-20cm温度',
soilTemperature3: '-30cm温度',
soilTemperature4: '-40cm温度',
soilTemperature5: '-50cm温度',
soilHumidity1: '-10cm湿度(%rh)',
soilHumidity2: '-20cm湿度(%rh)',
soilHumidity3: '-30cm湿度(%rh)',
soilHumidity4: '-40cm湿度(%rh)',
soilHumidity5: '-50cm湿度(%rh)',
soilPh: 'PH值(ph)',
soilEc: 'EC值(S/cm)',
});
@ -3274,43 +3274,43 @@ const handleNodeClick = (data, node, data1, data2) => {
tableNewData.value = res.data;
tableItem.value = [
{
lable: '0cm湿度(%rh)',
lable: '-10cm湿度(%rh)',
value: 'soilHumidity1',
},
{
lable: '-10cm湿度(%rh)',
lable: '-20cm湿度(%rh)',
value: 'soilHumidity2',
},
{
lable: '-20cm湿度(%rh)',
lable: '-30cm湿度(%rh)',
value: 'soilHumidity3',
},
{
lable: '-30cm湿度(%rh)',
lable: '-40cm湿度(%rh)',
value: 'soilHumidity4',
},
{
lable: '-40cm湿度(%rh)',
lable: '-50cm湿度(%rh)',
value: 'soilHumidity5',
},
{
lable: '0cm温度',
lable: '-10cm温度',
value: 'soilTemperature1',
},
{
lable: '-10cm温度',
lable: '-20cm温度',
value: 'soilTemperature2',
},
{
lable: '-20cm温度',
lable: '-30cm温度',
value: 'soilTemperature3',
},
{
lable: '-30cm温度',
lable: '-40cm温度',
value: 'soilTemperature4',
},
{
lable: '-40cm温度',
lable: '-50cm温度',
value: 'soilTemperature5',
},
{
@ -3948,6 +3948,7 @@ const handleCurrentChanges = val => {
currentPage.value = val;
getinsect({
divisions: code,
equipment: deviceValue.value,
pageNums: currentPage.value,
pageSizes: pageSize.value,
early: value3.value,
@ -4653,43 +4654,43 @@ const handleClick = (tab, event) => {
} else if (tab.paneName == '土壤墒情、土质') {
tableItem.value = [
{
lable: '0cm湿度(%rh)',
lable: '-10cm湿度(%rh)',
value: 'soilHumidity1',
},
{
lable: '-10cm湿度(%rh)',
lable: '-20cm湿度(%rh)',
value: 'soilHumidity2',
},
{
lable: '-20cm湿度(%rh)',
lable: '-30cm湿度(%rh)',
value: 'soilHumidity3',
},
{
lable: '-30cm湿度(%rh)',
lable: '-40cm湿度(%rh)',
value: 'soilHumidity4',
},
{
lable: '-40cm湿度(%rh)',
lable: '-50cm湿度(%rh)',
value: 'soilHumidity5',
},
{
lable: '0cm温度',
lable: '-10cm温度',
value: 'soilTemperature1',
},
{
lable: '-10cm温度',
lable: '-20cm温度',
value: 'soilTemperature2',
},
{
lable: '-20cm温度',
lable: '-30cm温度',
value: 'soilTemperature3',
},
{
lable: '-30cm温度',
lable: '-40cm温度',
value: 'soilTemperature4',
},
{
lable: '-40cm温度',
lable: '-50cm温度',
value: 'soilTemperature5',
},
{
@ -6438,7 +6439,7 @@ $height: calc(100vh - 110px);
background: rgba(255, 255, 255, 1);
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px rgba(0, 0, 0, 0.08),
0px 9px 28px 8px rgba(0, 0, 0, 0.05);
width: 300px;
width: 305px;
.pophead {
background-repeat: no-repeat;
// height: 42px;

View File

@ -113,7 +113,7 @@
class="but"
type="primary"
:disabled="multipleSelection.length < 1"
@click="subText"
@click="centerDialogVisible = true"
>
发布预警短信
</el-button>
@ -175,6 +175,15 @@
</div>
</el-collapse-item>
</el-collapse>
<el-dialog v-model="centerDialogVisible" title="系统提示" width="30%" center>
<span>是否确认发送预警短信?</span>
<template #footer>
<span class="dialog-footer">
<el-button @click="centerDialogVisible = false">取消</el-button>
<el-button type="primary" @click="subText">确定</el-button>
</span>
</template>
</el-dialog>
</div>
</template>
@ -213,7 +222,7 @@ let clickInfoMap = ref({ name: '', value: '' });
let rightWraFlag = ref(false);
const value1 = ref('');
let centerDialogVisible = ref(false)
let informationData = ref([]);
let clickInformationData = reactive({
lat: '',
@ -387,7 +396,9 @@ let map = ref(null);
const cun = () => {
layers = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: serverAPI.geoserverUrl + `/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,
url:
serverAPI.geoserverUrl +
`/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84%40huangdaoqu_bianjie`,
cacheEnabled: false,
}),
name: 'CJQY3702112019WGS84',
@ -399,7 +410,9 @@ const cun = () => {
const zhen = () => {
var layer = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: serverAPI.geoserverUrl + `/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,
url:
serverAPI.geoserverUrl +
`/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84%40huangdaoqu_bianjie`,
cacheEnabled: false,
}),
name: 'XJQY3702112019WGS84',
@ -468,7 +481,11 @@ function initMap() {
new ol.layer.Tile({
source: new ol.source.XYZ({
url: `${serverAPI.tiandituLayers}`,
projection: serverAPI.tiandituLayers == 'http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng'?'EPSG:4326':'EPSG:3857',
projection:
serverAPI.tiandituLayers ==
'http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng'
? 'EPSG:4326'
: 'EPSG:3857',
}),
preload: 20, // 设置预加载的瓦片数这里是预加载当前级别和2个级别更低的瓦片
}),
@ -529,7 +546,7 @@ function initMap() {
view.animate({
center: [lon, lat],
duration: 1000,
zoom: 13,
// zoom: 13,
});
// 获取Feature的其他属性例如自定义属性'id'
const featureId = feature.get('id');
@ -577,7 +594,7 @@ function initMap() {
// 设置覆盖层的内容
infoOverlay.getElement().innerHTML = `
<div class="info-window" >
<div class="close-btn" ><span>人员信息</span><img src="${guanbi}" alt=""/> </div>
<div class="close-btn" ><span>种粮大户信息</span><img src="${guanbi}" alt=""/> </div>
<div class="content" style="color:white;font-size: 16px">
<div class="line" style="margin-top: 10px"><div class="label">姓名:</div><span>${clickInformationData.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">手机:</div><span>${clickInformationData.phone}</span></div>
@ -717,7 +734,7 @@ const meteorologicals = () => {
map.removeLayer(personIconLayer.value[i]);
}
personIconLayer.value = [];
getmeteorologyEquipment({ flag: 4, data: value.value ,divisions:code }).then(res => {
getmeteorologyEquipment({ flag: 4, data: value.value, divisions: code }).then(res => {
informationData.value = res.data;
for (const i in informationData.value) {
const centerLonLat = [
@ -744,7 +761,9 @@ const meteorologicals = () => {
// 为圆形创建一个样式
const circleStyle = new ol.style.Style({
stroke: new ol.style.Stroke({
color: dic[informationData.value[i].warning] && dic[informationData.value[i].warning].color,
color:
dic[informationData.value[i].warning] &&
dic[informationData.value[i].warning].color,
width: 2,
}),
});
@ -891,6 +910,7 @@ const selectTime = () => {
// getmeteorologicalFreezes();
};
const subText = () => {
centerDialogVisible.value = false;
//发送短信
getsendSms(multipleSelection.value).then(res => {
if (res.data.code == '200') {
@ -1379,7 +1399,7 @@ $height: calc(100vh - 100px);
<style lang="scss">
.disabled {
color: var(--el-datepicker-off-text-color) !important;
cursor:not-allowed !important;
cursor: not-allowed !important;
}
.select_city {
background: #fff;

View File

@ -113,7 +113,7 @@
class="but"
type="primary"
:disabled="multipleSelection.length < 1"
@click="subText"
@click="centerDialogVisible = true"
>
发布预警短信
</el-button>
@ -174,6 +174,19 @@
</div>
</el-collapse-item>
</el-collapse>
<el-dialog v-model="centerDialogVisible" title="系统提示" width="30%" center>
<span>
是否确认发送预警短信?
</span>
<template #footer>
<span class="dialog-footer">
<el-button @click="centerDialogVisible = false">取消</el-button>
<el-button type="primary" @click="subText">
确定
</el-button>
</span>
</template>
</el-dialog>
</div>
</template>
@ -213,7 +226,7 @@ let clickInfoMap = ref({ name: '', value: '' });
let rightWraFlag = ref(false);
const value1 = ref('');
let centerDialogVisible = ref(false)
let informationData = ref([]);
let clickInformationData = reactive({
lat: '',
@ -474,7 +487,11 @@ function initMap() {
new ol.layer.Tile({
source: new ol.source.XYZ({
url: `${serverAPI.tiandituLayers}`,
projection: serverAPI.tiandituLayers == 'http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng'?'EPSG:4326':'EPSG:3857',
projection:
serverAPI.tiandituLayers ==
'http://59.206.203.34/tileservice/SdRasterPubMap?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=sdimg2017&STYLE=default&TILEMATRIXSET=img2017&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=application%2Fpng'
? 'EPSG:4326'
: 'EPSG:3857',
}),
preload: 20, // 设置预加载的瓦片数这里是预加载当前级别和2个级别更低的瓦片
}),
@ -535,7 +552,7 @@ function initMap() {
view.animate({
center: [lon, lat],
duration: 1000,
zoom: 13,
// zoom: 13,
});
// 获取Feature的其他属性例如自定义属性'id'
const featureId = feature.get('id');
@ -582,7 +599,7 @@ function initMap() {
// 设置覆盖层的内容
infoOverlay.getElement().innerHTML = `
<div class="info-window" >
<div class="close-btn" ><span>人员信息</span><img src="${guanbi}" alt=""/> </div>
<div class="close-btn" ><span>种粮大户信息</span><img src="${guanbi}" alt=""/> </div>
<div class="content" style="color:white;font-size: 16px">
<div class="line" style="margin-top: 10px"><div class="label">姓名:</div><span>${clickInformationData.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">手机:</div><span>${clickInformationData.phone}</span></div>
@ -895,13 +912,16 @@ const selectTime = () => {
// getmeteorologicalFreezes();
};
const subText = () => {
centerDialogVisible.value = false;
//发送短信
getsendSms(multipleSelection.value).then(res => {
if (res.data.code == '200') {
if (res.code == '200') {
ElMessage({
message: '发送成功',
type: 'success',
});
} else {
ElMessage.error('发送失败');
}
});
};
@ -1107,7 +1127,7 @@ $height: calc(100vh - 100px);
.rightTop {
width: 100%;
// height: 88%;
height:calc(100% - 72px);
height: calc(100% - 72px);
opacity: 1;
display: flex;
flex-direction: column;

View File

@ -113,7 +113,7 @@
class="but"
type="primary"
:disabled="multipleSelection.length < 1"
@click="subText"
@click="centerDialogVisible = true"
>
发布预警短信
</el-button>
@ -175,6 +175,19 @@
</div>
</el-collapse-item>
</el-collapse>
<el-dialog v-model="centerDialogVisible" title="系统提示" width="30%" center>
<span>
是否确认发送预警短信?
</span>
<template #footer>
<span class="dialog-footer">
<el-button @click="centerDialogVisible = false">取消</el-button>
<el-button type="primary" @click="subText">
确定
</el-button>
</span>
</template>
</el-dialog>
</div>
</template>
@ -213,6 +226,7 @@ let clickInfoMap = ref({ name: '', value: '' });
let rightWraFlag = ref(false);
const value1 = ref('');
let centerDialogVisible = ref(false)
let informationData = ref([]);
let clickInformationData = reactive({
@ -545,7 +559,7 @@ function initMap() {
view.animate({
center: [lon, lat],
duration: 1000,
zoom: 13,
// zoom: 13,
});
// 获取Feature的其他属性例如自定义属性'id'
const featureId = feature.get('id');
@ -593,7 +607,7 @@ function initMap() {
// 设置覆盖层的内容
infoOverlay.getElement().innerHTML = `
<div class="info-window" >
<div class="close-btn" ><span>人员信息</span><img src="${guanbi}" alt=""/> </div>
<div class="close-btn" ><span>种粮大户信息</span><img src="${guanbi}" alt=""/> </div>
<div class="content" style="color:white;font-size: 16px">
<div class="line" style="margin-top: 10px"><div class="label">姓名:</div><span>${clickInformationData.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">手机:</div><span>${clickInformationData.phone}</span></div>
@ -910,6 +924,7 @@ const selectTime = () => {
};
const subText = () => {
//发送短信
centerDialogVisible.value = false;
getsendSms(multipleSelection.value).then(res => {
if (res.data.code == '200') {
ElMessage({

View File

@ -112,7 +112,7 @@
class="but"
type="primary"
:disabled="multipleSelection.length < 1"
@click="subText"
@click="centerDialogVisible = true"
>
发布预警短信
</el-button>
@ -170,6 +170,19 @@
</div>
</el-collapse-item>
</el-collapse>
<el-dialog v-model="centerDialogVisible" title="系统提示" width="30%" center>
<span>
是否确认发送预警短信?
</span>
<template #footer>
<span class="dialog-footer">
<el-button @click="centerDialogVisible = false">取消</el-button>
<el-button type="primary" @click="subText">
确定
</el-button>
</span>
</template>
</el-dialog>
</div>
</template>
@ -204,7 +217,7 @@ import 'echarts-gl';
const value = ref();
let clickInfoMap = ref({ name: '', value: '' });
let centerDialogVisible = ref(false)
let rightWraFlag = ref(false);
let code = window.localStorage.getItem('deptName');
@ -525,7 +538,7 @@ function initMap() {
view.animate({
center: [lon, lat],
duration: 1000,
zoom: 13,
// zoom: 13,
});
// 获取Feature的其他属性例如自定义属性'id'
const featureId = feature.get('id');
@ -573,7 +586,7 @@ function initMap() {
// 设置覆盖层的内容
infoOverlay.getElement().innerHTML = `
<div class="info-window" >
<div class="close-btn" ><span>人员信息</span><img src="${guanbi}" alt=""/> </div>
<div class="close-btn" ><span>种粮大户信息</span><img src="${guanbi}" alt=""/> </div>
<div class="content" style="color:white;font-size: 16px">
<div class="line" style="margin-top: 10px"><div class="label">姓名:</div><span>${clickInformationData.name}</span></div>
<div class="line" style="margin-top: 10px"><div class="label">手机:</div><span>${clickInformationData.phone}</span></div>
@ -888,6 +901,7 @@ const selectTime = () => {
};
const subText = () => {
//发送短信
centerDialogVisible.value = false;
getsendSms(multipleSelection.value).then(res => {
if (res.data.code == '200') {
ElMessage({

View File

@ -346,19 +346,19 @@ const getMeteorologyTbs = () => {
(chartData.value['photosyntheticEffectiveRadiation'] = []), //光合有效
(chartData.value['dataTimeArr'] = []),
res.data.forEach(item => {
chartData.value['airTemperature'].push(item.airTemperature);
chartData.value['airHumidity'].push(item.airHumidity);
chartData.value['windSpeed'].push(item.windSpeed);
chartData.value['windDirection'].push(item.windDirection);
chartData.value['rainfall'].push(item.rainfall);
chartData.value['atmosphericPressure'].push(item.atmosphericPressure);
chartData.value['evaporation'].push(item.evaporation);
chartData.value['lightIntensity'].push(item.lightIntensity);
chartData.value['sunlightHours'].push(item.sunlightHours);
chartData.value['photosyntheticEffectiveRadiation'].push(
chartData.value['airTemperature'].unshift(item.airTemperature);
chartData.value['airHumidity'].unshift(item.airHumidity);
chartData.value['windSpeed'].unshift(item.windSpeed);
chartData.value['windDirection'].unshift(item.windDirection);
chartData.value['rainfall'].unshift(item.rainfall);
chartData.value['atmosphericPressure'].unshift(item.atmosphericPressure);
chartData.value['evaporation'].unshift(item.evaporation);
chartData.value['lightIntensity'].unshift(item.lightIntensity);
chartData.value['sunlightHours'].unshift(item.sunlightHours);
chartData.value['photosyntheticEffectiveRadiation'].unshift(
item.photosyntheticEffectiveRadiation
);
chartData.value['dataTimeArr'].push(item.dataTime);
chartData.value['dataTimeArr'].unshift(item.dataTime);
});
chart();
});

View File

@ -510,9 +510,9 @@ onUpdated(() => {
});
const pickerChangeFn = e => {
if(!e){
let startTime =''
let endTime =''
if (!e) {
let startTime = '';
let endTime = '';
gettyphoonDamageSelect({ startTime: startTime, endTime: endTime }).then(res => {
SaveResultsDiv.value = res.data;
});
@ -522,6 +522,76 @@ const pickerChangeFn = e => {
/*-------------地图------------------------*/
//外网底图
let mapOption = null;
if (serverAPI.flag) {
mapOption = {
url: 'http://59.206.203.34/tileservice/SdRasterPubMap?tilematrixset=img2017',
layer: 'sdimg2017',
style: 'default',
tileMatrixSetID: 'img2017',
format: 'image/png',
tileMatrixLabels: [
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
'11',
'12',
'13',
'14',
'15',
'16',
'17',
'18',
'19',
],
tilingScheme: new Cesium.GeographicTilingScheme(),
// tileMatrixSetID: 'your-tile-matrix-set-id',
maximumLevel: 18,
errorEvent: 'preventDefault',
};
} else {
mapOption = {
url:
'http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0' +
'&LAYER=img&tileMatrixSet=c&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}' +
'&style=default&format=tiles&tk=31091965e263284a501a723b8909f405',
layer: 'tdtCva',
style: 'default',
format: 'tiles',
tileMatrixSetID: 'c',
subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
tilingScheme: new Cesium.GeographicTilingScheme(),
tileMatrixLabels: [
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
'11',
'12',
'13',
'14',
'15',
'16',
'17',
'18',
'19',
],
maximumLevel: 18,
};
}
// const mapOption = {
// url:
// 'http://{s}.tianditu.gov.cn/img_c/wmts?service=wmts&request=GetTile&version=1.0.0' +
@ -557,38 +627,38 @@ const pickerChangeFn = e => {
// maximumLevel: 18,
// };
//内网地图服务
const mapOption = {
url: 'http://59.206.203.34/tileservice/SdRasterPubMap?tilematrixset=img2017',
layer: 'sdimg2017',
style: 'default',
tileMatrixSetID: 'img2017',
format: 'image/png',
tileMatrixLabels: [
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10',
'11',
'12',
'13',
'14',
'15',
'16',
'17',
'18',
'19',
],
tilingScheme: new Cesium.GeographicTilingScheme(),
// tileMatrixSetID: 'your-tile-matrix-set-id',
maximumLevel: 18,
errorEvent: 'preventDefault',
};
// const mapOption = {
// url: 'http://59.206.203.34/tileservice/SdRasterPubMap?tilematrixset=img2017',
// layer: 'sdimg2017',
// style: 'default',
// tileMatrixSetID: 'img2017',
// format: 'image/png',
// tileMatrixLabels: [
// '1',
// '2',
// '3',
// '4',
// '5',
// '6',
// '7',
// '8',
// '9',
// '10',
// '11',
// '12',
// '13',
// '14',
// '15',
// '16',
// '17',
// '18',
// '19',
// ],
// tilingScheme: new Cesium.GeographicTilingScheme(),
// // tileMatrixSetID: 'your-tile-matrix-set-id',
// maximumLevel: 18,
// errorEvent: 'preventDefault',
// };
Cesium.Ion.defaultAccessToken =
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJiYzcwZmJmNi02MzQ5LTQ1MGEtODgzMy0yZTZiZGExY2MzMGMiLCJpZCI6MTAxOTgsInNjb3BlcyI6WyJhc2wiLCJhc3IiLCJnYyJdLCJpYXQiOjE1ODEzMDgxNTR9.NeJU4yfUi-SnLrNDOBYsQgmiSh3B4axCTi1m84Qw99c';

File diff suppressed because it is too large Load Diff