This commit is contained in:
2023-06-22 06:50:23 +08:00
parent 94e7e9685f
commit bb24077192
282 changed files with 800435 additions and 2020 deletions

View File

@ -2606,7 +2606,7 @@ const handleNodeClick = (data, node, data1, data2) => {
}
}
if (label3.value == '智能孢子仪') {
getSpore({ equipment: label2.value ,whetherToDownload: true,}).then(res => {
getSpore({ equipment: label2.value, whetherToDownload: true }).then(res => {
tabulation.value = res.data;
tableNewData.value = res.data.slice(
(tabulationcurrentPage.value - 1) * tabulationpageSize.value,
@ -2623,6 +2623,8 @@ const handleNodeClick = (data, node, data1, data2) => {
console.log(res.data);
// 创建一个Entity对象加图片
res.data.forEach((item, index) => {
center = L.latLng(item.msLatitude, item.msLongitude);
map.setView(center, 17);
L.marker([item.msLatitude, item.msLongitude], { icon: greenIcon })
.addTo(map)
.bindPopup(
@ -2632,7 +2634,7 @@ const handleNodeClick = (data, node, data1, data2) => {
});
});
} else if (label3.value == '虫情监测仪') {
getinsect({ equipment: label2.value ,whetherToDownload: true,}).then(res => {
getinsect({ equipment: label2.value, whetherToDownload: true }).then(res => {
tabulation.value = res.data;
res.data.forEach(item => {
if (item.warning == '有') {
@ -2659,6 +2661,8 @@ const handleNodeClick = (data, node, data1, data2) => {
townZuowu.label = res.data;
// 创建一个Entity对象加图片
res.data.forEach((item, index) => {
center = L.latLng(item.msLatitude, item.msLongitude);
map.setView(center, 17);
L.marker([item.msLatitude, item.msLongitude], { icon: greenIcon })
.addTo(map)
.bindPopup(
@ -2668,7 +2672,7 @@ const handleNodeClick = (data, node, data1, data2) => {
});
});
} else if (label3.value == '土壤墒情、土质') {
getfindAllSoil({ equipment: label2.value ,whetherToDownload: true,}).then(res => {
getfindAllSoil({ equipment: label2.value, whetherToDownload: true }).then(res => {
tabulation.value = res.data;
res.data.forEach(item => {
item['style'] = [];
@ -2755,6 +2759,8 @@ const handleNodeClick = (data, node, data1, data2) => {
townZuowu.label = res.data;
// 创建一个Entity对象加图片
res.data.forEach((item, index) => {
center = L.latLng(item.msLatitude, item.msLongitude);
map.setView(center, 17);
L.marker([item.msLatitude, item.msLongitude], { icon: greenIcon })
.addTo(map)
.bindPopup(
@ -3150,7 +3156,7 @@ const ondownload3 = () => {
});
};
const dowcity = () => {
console.log(tabulation)
console.log(tabulation);
downLoadFile(tabulation.value[tabulation.value.length - 1].excelPath);
};
@ -3166,7 +3172,7 @@ const resetForm = () => {
value1.value = '';
formInline.value.flag = '';
if (label3.value == '智能孢子仪') {
getSpore({ equipment: label2.value ,whetherToDownload: true,}).then(res => {
getSpore({ equipment: label2.value, whetherToDownload: true }).then(res => {
tabulation.value = res.data;
tableNewData.value = res.data.slice(
(tabulationcurrentPage.value - 1) * tabulationpageSize.value,
@ -3175,7 +3181,7 @@ const resetForm = () => {
);
});
} else if (label3.value == '虫情监测仪') {
getinsect({ equipment: label2.value,whetherToDownload: true, }).then(res => {
getinsect({ equipment: label2.value, whetherToDownload: true }).then(res => {
res.data.forEach(item => {
if (item.warning == '有') {
item.pestName = item.picturesMark2O1List[0].pestName;
@ -3189,7 +3195,7 @@ const resetForm = () => {
);
});
} else if (label3.value == '土壤墒情、土质') {
getfindAllSoil({ equipment: label2.value ,whetherToDownload: true,}).then(res => {
getfindAllSoil({ equipment: label2.value, whetherToDownload: true }).then(res => {
tabulation.value = res.data;
tableNewData.value = res.data.slice(
(tabulationcurrentPage.value - 1) * tabulationpageSize.value,
@ -3641,6 +3647,8 @@ const getdeviceNumbers = num => {
townZuowu.label = res.data;
// 创建一个Entity对象加图片
res.data.forEach((item, index) => {
center = L.latLng(item.msLatitude, item.msLongitude);
map.setView(center, 17);
L.marker([item.msLatitude, item.msLongitude], { icon: greenIcon })
.addTo(map)
.bindPopup(
@ -3654,6 +3662,8 @@ const getdeviceNumbers = num => {
townZuowu.label = res.data;
// 创建一个Entity对象加图片
res.data.forEach((item, index) => {
center = L.latLng(item.msLatitude, item.msLongitude);
map.setView(center, 17);
L.marker([item.msLatitude, item.msLongitude], { icon: greenIcon })
.addTo(map)
.bindPopup(
@ -3667,6 +3677,8 @@ const getdeviceNumbers = num => {
townZuowu.label = res.data;
// 创建一个Entity对象加图片
res.data.forEach((item, index) => {
center = L.latLng(item.msLatitude, item.msLongitude);
map.setView(center, 17);
L.marker([item.msLatitude, item.msLongitude], { icon: greenIcon })
.addTo(map)
.bindPopup(