|
@@ -46,6 +46,28 @@ class MockFarmLayer {
|
|
that.initLayer(kmap)
|
|
that.initLayer(kmap)
|
|
VE_API.mini_farm.weatherRiskVirtualFarmList().then(res => {
|
|
VE_API.mini_farm.weatherRiskVirtualFarmList().then(res => {
|
|
if(res.code ===0){
|
|
if(res.code ===0){
|
|
|
|
+ const lby = {}
|
|
|
|
+ const jgjd = {
|
|
|
|
+ disease:'',
|
|
|
|
+ grow:'花苞',
|
|
|
|
+ img:'https://birdseye-img.sysuimars.com/birdseye-look-mini/img_crop/bch/ch/cropped_DJI_20240707184352_0041_V_9.jpg',
|
|
|
|
+ name:'井冈基地',
|
|
|
|
+ mapId:2,
|
|
|
|
+ nodeType:"mock_farm_data",
|
|
|
|
+ mockFarmId:88866,
|
|
|
|
+ cloudFilename:'',
|
|
|
|
+ dic:{
|
|
|
|
+ "病虫异常": 0,
|
|
|
|
+ "物候期": "果期",
|
|
|
|
+ "比例": 91,
|
|
|
|
+ "生育期": "膨果期",
|
|
|
|
+ "生长异常": 1
|
|
|
|
+ },
|
|
|
|
+ targetSampleId:96774,
|
|
|
|
+ wkt:'POINT(113.5081595 23.5320866)'
|
|
|
|
+ }
|
|
|
|
+ res.data.push(jgjd)
|
|
|
|
+ console.log('res.data',res.data);
|
|
that.setData(res.data)
|
|
that.setData(res.data)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -96,6 +118,9 @@ class MockFarmLayer {
|
|
that.setProperties(feature,f)
|
|
that.setProperties(feature,f)
|
|
let text = "";
|
|
let text = "";
|
|
let fontColor = "#ffffff"
|
|
let fontColor = "#ffffff"
|
|
|
|
+ if(name==='井冈基地'){
|
|
|
|
+ console.log('井冈基地',grow);
|
|
|
|
+ }
|
|
if (disease) {
|
|
if (disease) {
|
|
text = disease;
|
|
text = disease;
|
|
styles.push(that.textBgStyle("#EFEEEE","#EFEEEE"));
|
|
styles.push(that.textBgStyle("#EFEEEE","#EFEEEE"));
|
|
@@ -106,9 +131,9 @@ class MockFarmLayer {
|
|
text = grow;
|
|
text = grow;
|
|
fontColor = "#B6B6B6"
|
|
fontColor = "#B6B6B6"
|
|
}else{
|
|
}else{
|
|
- styles.push(that.textBgStyle("#FFFF00","#FFA500"));
|
|
|
|
|
|
+ styles.push(that.textBgStyle("#fff","#fff"));
|
|
text = grow;
|
|
text = grow;
|
|
- fontColor = "#c1c1c1"
|
|
|
|
|
|
+ fontColor = "#BBBBBB"
|
|
}
|
|
}
|
|
|
|
|
|
} else if (phenology) {
|
|
} else if (phenology) {
|