|
@@ -165,7 +165,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
|
|
|
|
|
- <div class="phenology-tip-banner" v-if="route.query.type == '病虫害态势监控'">
|
|
|
|
|
|
|
+ <div class="phenology-tip-banner" v-if="route.query.type != '物候跟踪记录'">
|
|
|
<div class="banner__left">
|
|
<div class="banner__left">
|
|
|
<div class="banner__title">
|
|
<div class="banner__title">
|
|
|
<el-icon size="17">
|
|
<el-icon size="17">
|
|
@@ -503,8 +503,8 @@ const getWorkDetail = async () => {
|
|
|
const getFarmRecord = async () => {
|
|
const getFarmRecord = async () => {
|
|
|
const res = await VE_API.monitor.getFarmRecord();
|
|
const res = await VE_API.monitor.getFarmRecord();
|
|
|
if (res.code === 200 && res.data?.abnormal.length) {
|
|
if (res.code === 200 && res.data?.abnormal.length) {
|
|
|
- if(route.query.type == '病虫害态势监控'){
|
|
|
|
|
- phenologyTrackList.value = res.data.abnormal.map(item => {
|
|
|
|
|
|
|
+ if(route.query.type == '物候跟踪记录'){
|
|
|
|
|
+ phenologyTrackList.value = res.data.phenology.map(item => {
|
|
|
return {
|
|
return {
|
|
|
date: item.time,
|
|
date: item.time,
|
|
|
content: item.record + item.ratio + '%',
|
|
content: item.record + item.ratio + '%',
|
|
@@ -512,7 +512,7 @@ const getFarmRecord = async () => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}else{
|
|
}else{
|
|
|
- phenologyTrackList.value = res.data.phenology.map(item => {
|
|
|
|
|
|
|
+ phenologyTrackList.value = res.data.abnormal.map(item => {
|
|
|
return {
|
|
return {
|
|
|
date: item.time,
|
|
date: item.time,
|
|
|
content: item.record + item.ratio + '%',
|
|
content: item.record + item.ratio + '%',
|