From a337fc824fc85b3771a422b373dfcb9ae1161f8c Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 21 Dec 2023 16:31:08 +0800
Subject: [PATCH] fix:热力图播放

---
 src/views/hotMap/index.vue |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/views/hotMap/index.vue b/src/views/hotMap/index.vue
index 9043c66..87e56fc 100644
--- a/src/views/hotMap/index.vue
+++ b/src/views/hotMap/index.vue
@@ -105,8 +105,8 @@
       orgId: 71,
       city: '������',
       formInline: {
-        city: '���������',
-        cityCode: '210300',
+        city: '���������',
+        cityCode: '210381',
         dayType: 'hour',
         starTime: '',
         endTime: '',
@@ -331,7 +331,7 @@
     init1 () { // ������������
       var that = this
       this.map.setCity(this.formInline.city)
-      console.log('this.formInline.city', this.formInline.cityCode)
+      console.log('������', this.formInline.cityCode)
       if (that.polygon) {
         that.map.remove(that.polygon)
       }
@@ -340,7 +340,7 @@
         new AMap.DistrictSearch({
           extensions: 'all',
           subdistrict: 0
-        }).search(that.formInline.city, function (status, result) { // ���������������������������������������������������
+        }).search(that.formInline.cityCode, function (status, result) { // ���������������������������������������������������
           var outer = [
             new AMap.LngLat(-360, 90, true),
             new AMap.LngLat(-360, -90, true),
@@ -502,7 +502,7 @@
       this.map.plugin(['AMap.Heatmap'], function () {
         // ���������heatmap������
         that.heatmap = new AMap.Heatmap(that.map, {
-          radius: 100, // ������������
+          radius: 130, // ������������
           opacity: [0.5, 1],
           gradient: that.selectSensor.gradient
         })
@@ -527,8 +527,8 @@
     },
     regionData (id) {
       let cityData = _.find(this.orgData, { id: id })
-      this.formInline.city = cityData.cityName
-      this.formInline.cityCode = cityData.cityCode
+      this.formInline.city = cityData.areaName
+      this.formInline.cityCode = cityData.areaCode
     },
     selectHourData (data) {
       if (data) {

--
Gitblit v1.8.0