This commit is contained in:
2023-07-11 08:43:34 +08:00
parent d0eea9c22a
commit 79894eb7e8
257 changed files with 2056 additions and 1503 deletions

View File

@ -174,7 +174,7 @@ import {
getsendSms,
getmeteorologyEquipment, meteorologicalsPeople, meteorology, zdmc,
} from '@/api/meteorological/monitor/information.js';
import { ElMessage } from 'element-plus'
import 'echarts-gl';
@ -345,7 +345,7 @@ let map = ref(null);
const cun = () => {
layers = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie',
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84@huangdaoqu_bianjie',
//rasterfunction: new SuperMap.NDVIParameter({ redIndex: 0, nirIndex: 2 }),
cacheEnabled: false,
}),
@ -360,7 +360,7 @@ const cun = () => {
const zhen = () => {
var layer = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie',
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84@huangdaoqu_bianjie',
//rasterfunction: new SuperMap.NDVIParameter({ redIndex: 0, nirIndex: 2 }),
cacheEnabled: false,
}),
@ -381,6 +381,10 @@ onMounted(() => {
let rightWra = document.querySelector('.rightWra');
rightWra.style.transform = 'translate(107%,0)';
});
onUpdated(() => {
document.querySelector('.mode').style.display = 'none';
window.document.querySelector('#screenfull').style.display = 'block';
});
let alterData = ref([]);
let newArr = ref([]);
const zdmcList = ref([])
@ -841,9 +845,14 @@ const selectTime = () => {
};
const subText = () => {
//发送短信
getsendSms({meteorologicalStations: multipleSelection.value}).then(res => {
console.log(res.data);
});
getsendSms(multipleSelection.value).then(res => {
if (res.data.code == 'OK') {
ElMessage({
message: '发送成功',
type: 'success',
});
}
});
};
const handleSelectionChange = val => {
multipleSelection.value = val;

View File

@ -174,7 +174,7 @@ import {
getsendSms,
getmeteorologyEquipment, meteorologicalsPeople, meteorology, zdmc,
} from '@/api/meteorological/monitor/information.js';
import { ElMessage } from 'element-plus'
import 'echarts-gl';
@ -349,7 +349,7 @@ let map = ref(null);
const cun = () => {
layers = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie',
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84@huangdaoqu_bianjie',
//rasterfunction: new SuperMap.NDVIParameter({ redIndex: 0, nirIndex: 2 }),
cacheEnabled: false,
}),
@ -364,7 +364,7 @@ const cun = () => {
const zhen = () => {
var layer = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie',
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84@huangdaoqu_bianjie',
//rasterfunction: new SuperMap.NDVIParameter({ redIndex: 0, nirIndex: 2 }),
cacheEnabled: false,
}),
@ -385,6 +385,10 @@ onMounted(() => {
let rightWra = document.querySelector('.rightWra');
rightWra.style.transform = 'translate(107%,0)';
});
onUpdated(() => {
document.querySelector('.mode').style.display = 'none';
window.document.querySelector('#screenfull').style.display = 'block';
});
let alterData = ref([]);
let newArr = ref([]);
const zdmcList = ref([])
@ -845,9 +849,14 @@ const selectTime = () => {
};
const subText = () => {
//发送短信
getsendSms({meteorologicalStations: multipleSelection.value}).then(res => {
console.log(res.data);
});
getsendSms(multipleSelection.value).then(res => {
if (res.data.code == 'OK') {
ElMessage({
message: '发送成功',
type: 'success',
});
}
});
};
const handleSelectionChange = val => {
multipleSelection.value = val;

File diff suppressed because one or more lines are too long

View File

@ -174,7 +174,7 @@ import {
getsendSms,
getmeteorologyEquipment, meteorologicalsPeople, meteorology, zdmc,
} from '@/api/meteorological/monitor/information.js';
import { ElMessage } from 'element-plus'
import 'echarts-gl';
@ -345,7 +345,7 @@ let map = ref(null);
const cun = () => {
layers = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_village@huangdaoqu_bianjie',
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/CJQY3702112019WGS84@huangdaoqu_bianjie',
//rasterfunction: new SuperMap.NDVIParameter({ redIndex: 0, nirIndex: 2 }),
cacheEnabled: false,
}),
@ -360,7 +360,7 @@ const cun = () => {
const zhen = () => {
var layer = new ol.layer.Tile({
source: new ol.source.TileSuperMapRest({
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/huangdaoqu_town@huangdaoqu_bianjie',
url: 'http://36.134.44.75:8090/iserver/services/map-huangdaoqu_bianjie/rest/maps/XJQY3702112019WGS84@huangdaoqu_bianjie',
//rasterfunction: new SuperMap.NDVIParameter({ redIndex: 0, nirIndex: 2 }),
cacheEnabled: false,
}),
@ -381,6 +381,10 @@ onMounted(() => {
let rightWra = document.querySelector('.rightWra');
rightWra.style.transform = 'translate(107%,0)';
});
onUpdated(() => {
document.querySelector('.mode').style.display = 'none';
window.document.querySelector('#screenfull').style.display = 'block';
});
let alterData = ref([]);
let newArr = ref([]);
const zdmcList = ref([])
@ -841,9 +845,15 @@ const selectTime = () => {
};
const subText = () => {
//发送短信
getsendSms({meteorologicalStations: multipleSelection.value}).then(res => {
console.log(res.data);
});
getsendSms(multipleSelection.value).then(res => {
console.log(res.data);
if (res.data.code == 'OK') {
ElMessage({
message: '发送成功',
type: 'success',
});
}
});
};
const handleSelectionChange = val => {
multipleSelection.value = val;

View File

@ -172,6 +172,7 @@ import L from 'leaflet';
import iconShadow from '/img/marker/mark.png';
import moment from 'Moment';
import { downLoadFile } from '@/utils/download.js';
import elementResizeDetectorMaker from "element-resize-detector";
let map = L.Map;
let tabulation = ref([]);
@ -219,6 +220,10 @@ onMounted(() => {
getmeteorologys();
getMeteorologyTbs();
});
onUpdated(() => {
document.querySelector('.mode').style.display = 'none';
window.document.querySelector('#screenfull').style.display = 'none';
});
const initLeafletMap = () => {
//加载地图
@ -430,7 +435,6 @@ const dowcity = () => {
function farmland() {
const farmlandDivIntance = echarts.init(chartDiv.value);
console.log(chartData);
let leftY = '温度(℃)';
let rightY = '湿度(%)';
let arr1 = chartData.value.airTemperature;
@ -756,8 +760,14 @@ function farmland() {
],
};
option && farmlandDivIntance.setOption(option, { notMerge: true, grid: { bottom: 20 } });
// option && farmlandDivIntance.setOption(option, { notMerge: true, grid: { bottom: 20 } });
useEcharts(farmlandDivIntance, option);
let erd = elementResizeDetectorMaker();
erd.listenTo(chartDiv.value, () => {
nextTick(() => {
farmlandDivIntance.resize();
})
})
}
</script>
@ -825,7 +835,12 @@ $height: calc(100vh - 100px);
.chartModeFather {
width: 100%;
height: 89%;
.chartDiv{
width: 100% !important;
height: 89% !important;
}
}
.demo-tabs {
// width: 100%;
// height: 98%;