Browse Source

火灾蔓延

王通 2 years ago
parent
commit
71ddabd1fd
2 changed files with 4 additions and 5 deletions
  1. 3 3
      src/views/firespread.vue
  2. 1 2
      src/views/forest.vue

+ 3 - 3
src/views/firespread.vue

@@ -1283,9 +1283,9 @@
       },
       getNewDataByDate(eventCode)
     {
-
       const that=this
-    getNewDataByDate('2023-05-02').then(function(res){
+      console.log(eventCode)
+    getNewDataByDate(eventCode).then(function(res){
       that.windDirection=res.data.windDirection
       that.windSpeed=res.data.windSpeed
     })
@@ -1989,7 +1989,7 @@
         this.eventLogList = []
       },
       showEventDialog(eventCode) {
-        this.getNewDataByDate(eventCode)
+        this.getNewDataByDate(this.calendarDay)
         this.eventCode = eventCode
         let that = this
         //获取事件详情

+ 1 - 2
src/views/forest.vue

@@ -611,7 +611,7 @@ export default {
 
     },
     getFirespread(eventCode) {
-      this.$refs.firespread.showEventDialog(eventCode);
+      this.$refs.firespread.showEventDialog(eventCode,this.calendarDay);
     },
     getCurrentDataStr() {
       let date = new Date()
@@ -623,7 +623,6 @@ export default {
       return y + '-' + m + '-' + d
     },
     selectDay(day) { //日历点击
-      console.log(day)
       this.getTodayEvents(day)
       this.getDeptEventCount(day)
       this.getWeather(day)