Prechádzať zdrojové kódy

feat:修改显示内容

wangsisi 2 týždňov pred
rodič
commit
29c3bdd9c0

+ 4 - 4
src/views/old_mini/recordDetails/index.vue

@@ -165,7 +165,7 @@
             </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__title">
                     <el-icon size="17">
@@ -503,8 +503,8 @@ const getWorkDetail = async () => {
 const getFarmRecord = async () => {
     const res = await VE_API.monitor.getFarmRecord();
     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 {
                     date: item.time,
                     content: item.record + item.ratio + '%',
@@ -512,7 +512,7 @@ const getFarmRecord = async () => {
                 }
             })
         }else{
-            phenologyTrackList.value = res.data.phenology.map(item => {
+            phenologyTrackList.value = res.data.abnormal.map(item => {
                 return {
                     date: item.time,
                     content: item.record + item.ratio + '%',