فهرست منبع

首页监控设备数据过滤,地图缩放级别调整,文案调整

yf_zhb 2 سال پیش
والد
کامیت
82075c5715
3فایلهای تغییر یافته به همراه11 افزوده شده و 6 حذف شده
  1. 1 1
      minggao/config/index.js
  2. 1 1
      minggao/src/page/forecasting/cbd/Cbd.vue
  3. 9 4
      minggao/src/page/homepage/facilitydistribute.vue

+ 1 - 1
minggao/config/index.js

@@ -25,7 +25,7 @@ module.exports = {
 
     // Various Dev Server settings
     // host: 'localhost', // can be overwritten by process.env.HOST
-    host: '192.168.1.77', // can be overwritten by process.env.HOST
+    host: '192.168.1.106', // can be overwritten by process.env.HOST
     port: 8888, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     autoOpenBrowser: false,
     errorOverlay: true,

+ 1 - 1
minggao/src/page/forecasting/cbd/Cbd.vue

@@ -65,7 +65,7 @@
                 class="superOperate el-icon-setting"
                 @click="equipOperation(item)"
               ></span>
-              <span slot="title">虫情测报</span>
+              <span slot="title">智能测报灯</span>
               <div slot="content" class="content">
                 <p :title="item.device_name">
                   <i class="iconfont icon-biaoqian"></i>

+ 9 - 4
minggao/src/page/homepage/facilitydistribute.vue

@@ -94,7 +94,7 @@
           实蝇诱捕器:<span style="color: #ff00ff">{{ ybqnum }}台</span>
         </p>
       </div>
-      <div class="tallybox_item">
+      <div class="tallybox_item" v-if="isShowMonitorInfo">
         <img src="../../../static/images/homepage/jk.png" alt="" />
         <p>
           监控设备:<span style="color: #e94c3e">{{ jknum }}台</span>
@@ -390,7 +390,8 @@ export default {
       total: 8,
       tracklistdata_backups: {},
       arealistmouse: {},
-      trackloading: true
+      trackloading: true,
+      isShowMonitorInfo: false
     };
   },
   //监听属性 类似于data概念
@@ -465,7 +466,7 @@ export default {
       var map = new AMap.Map(document.getElementById('mapContainer2'), {
         center: this.center,
         resizeEnable: true,
-        zoom: 11,
+        zoom: 12.5,
         lang: 'en',
         mapStyle: 'amap://styles/fresh',
         layers: []
@@ -549,11 +550,15 @@ export default {
         //监控
         icon = '../../../static/images/homepage/jk.png';
         this.jknum++;
+
+        if (!this.isShowMonitorInfo) {
+          this.isShowMonitorInfo = true;
+        }
       }
 
       var iconInstance = new AMap.Icon({
         size: new AMap.Size(18, 23), // 图标尺寸
-        imageSize: new AMap.Size(16, 20),
+        imageSize: new AMap.Size(9, 10),
         image: icon // Icon的图像
       });