Jelajahi Sumber

火灾蔓延

王通 2 tahun lalu
induk
melakukan
81d17f225f

+ 9 - 1
src/api/forest.js

@@ -330,6 +330,14 @@ export function sendMessage(param) {
   return request({
     url: '/center-firecontrol/VisuForestCloudMapController/sendMeetingMsgFireControl',
     method: 'post',
-    data:param
+    data: param
   })
 }
+  // 会议添加联系人并发送短信
+  export function getNewDataByDate(data) {
+    return request({
+      url: '/center-event/spread/getNewDataByDate?Date='+data,
+      method: 'get',
+    })
+
+}

+ 27 - 19
src/components/supermap.vue

@@ -106,6 +106,8 @@ export default {
   name: 'sookaSuperMap',
   data() {
     return {
+      windDirection:'',
+      windSpeed:null,
       plottingdrawControl: null,
       plottingLayer: null,
       mapDivId: '',
@@ -373,10 +375,13 @@ export default {
     //     that.map.doubleClickZoom.enable()
     //   })
     // },
-    showheatPlotting: function(heat_lat, heat_lng) {
+    showheatPlotting:  function(heat_lat, heat_lng,windSpeed,windDirection) {
+      console.log(heat_lat, heat_lng,windSpeed,windDirection)
       this.heat_lat = heat_lat
       this.heat_lng = heat_lng
-      this.isheatPlotting = true
+      this.windDirection = windDirection
+      this.windSpeed = windSpeed
+      this.createHeatPoints()
     },
     createHeatPoints: function() {
       let that = this
@@ -400,29 +405,29 @@ export default {
 
       var features = []
 
-      switch (heatNums) {
-        case 1://南风
+      switch (that.windDirection) {
+        case '南风'://南风
           features = that.getPointArray1()
           break
-        case 31://西南风
+        case '西南风'://西南风
           features = that.getPointArray3_1()
           break
-        case 41://东南风
+        case '东南风'://东南风
           features = that.getPointArray4_1()
           break
-        case 2://北风
+        case '北风'://北风
           features = that.getPointArray2()
           break
-        case 32://西北风
+        case '西北风'://西北风
           features = that.getPointArray3_2()
           break
-        case 42://东北风
+        case '东北风'://东北风
           features = that.getPointArray4_2()
           break
-        case 3://西风
+        case '西风'://西风
           features = that.getPointArray3()
           break
-        case 4://东风
+        case '东风'://东风
           features = that.getPointArray4()
           break
       }
@@ -442,7 +447,7 @@ export default {
     },
 
     getPointArray1: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+      var heatNums1 = this.windSpeed
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {
@@ -454,7 +459,7 @@ export default {
       return points
     },
     getPointArray3_1: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+      var heatNums1 = this.windSpeed
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {
@@ -467,7 +472,7 @@ export default {
       return points
     },
     getPointArray4_1: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+      var heatNums1 = this.windSpeed
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {
@@ -480,7 +485,7 @@ export default {
       return points
     },
     getPointArray2: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+      var heatNums1 = this.windSpeed
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {
@@ -492,7 +497,7 @@ export default {
       return points
     },
     getPointArray3_2: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+      var heatNums1 = this.windSpeed
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {
@@ -505,7 +510,7 @@ export default {
       return points
     },
     getPointArray4_2: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+      var heatNums1 = this.windSpeed
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {
@@ -518,7 +523,10 @@ export default {
       return points
     },
     getPointArray3: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+
+      var heatNums1 = this.windSpeed
+      console.log(heatNums1)
+
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {
@@ -531,7 +539,7 @@ export default {
 
     },
     getPointArray4: function() {
-      var heatNums1 = parseInt($('#heatNums1').val())
+      var heatNums1 = this.windSpeed
       var mLon = this.heat_lng, mLat = this.heat_lat
       var points = []
       for (var i = 0; i < parseInt(heatNums1 / 3); i++) {

+ 4 - 3
src/views/eventdetailsdialog.vue

@@ -1354,6 +1354,7 @@ export default {
     this.ws = DHWsInstance
     /** ----------------------------------摄像头预览结束------------------------------------- */
   },
+
   methods: {
     // 获取消防左侧菜单列表
     fireControlViewList() {
@@ -1399,7 +1400,7 @@ export default {
         depteventId: '',//事件部门关联责任人
         name: '',//姓名
         post: '',//岗位
-        telphone: ''//手机号
+        telphone: ''//手机号addSelection
       }
       //添加新的行数
       this.dutysystemTableData.push(newValue)
@@ -2167,8 +2168,8 @@ export default {
           markersMap.radius = res.data.eventdetail[0].fireRadius
         }
         setTimeout(() => {
-          that.$refs.supermapDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
-          that.$refs.supermapDialog.clearM(false)
+           that.$refs.supermapDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
+           that.$refs.supermapDialog.clearM(false)
           that.$refs.supermapDialog.setMarkersRadius([markersMap])
           that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
         }, 2000)

File diff ditekan karena terlalu besar
+ 1033 - 58
src/views/firespread.vue


+ 2 - 0
src/views/forest.vue

@@ -608,6 +608,7 @@ export default {
     showEventDialog(eventCode) {
       //事件信息弹出
       this.$refs.eventdetailsdialog.showEventDialog(eventCode)
+
     },
     getFirespread(eventCode) {
       this.$refs.firespread.showEventDialog(eventCode);
@@ -622,6 +623,7 @@ export default {
       return y + '-' + m + '-' + d
     },
     selectDay(day) { //日历点击
+      console.log(day)
       this.getTodayEvents(day)
       this.getDeptEventCount(day)
       this.getWeather(day)