فهرست منبع

首页云图  基本情况 变更为  通知公告

王通 1 سال پیش
والد
کامیت
3d572d9380
2فایلهای تغییر یافته به همراه11 افزوده شده و 13 حذف شده
  1. 1 1
      src/views/bigdata/bigdata.vue
  2. 10 12
      src/views/forest.vue

+ 1 - 1
src/views/bigdata/bigdata.vue

@@ -23,7 +23,7 @@
       <div class="bigdata-list wid-li-1">
         <div class="b-con mg-b-20">
           <div class="b-tit"><img src="@/assets/images/integrated/bigdata-tit-icon.png">
-            <span>事件来源,类型统计</span>
+            <span>火情来源,类型统计</span>
           </div>
           <chartEvent></chartEvent>
         </div>

+ 10 - 12
src/views/forest.vue

@@ -7,18 +7,18 @@
     <div class="visual-body">
       <!-- 左侧 -->
       <div class="leftbar" ref="left">
-        <!-- 1 基本情况 -->
+        <!-- 1 通知公告 -->
         <div class="forthis">
           <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)"   style="padding-bottom: 1rem;">
             <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
             <div class="this-title">
-              <span>基本情况</span>
+              <span>通知公告</span>
               <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;"/>
             </div>
             <div class="i-list-con h-14">
               <div class="d-l-con no_hover">
                 <div class="d-l-l-text w-100p no-weight">
-                  <h4 class="line-h-1 w-100p" v-html="forestInfo">{{ forestInfo }}</h4>
+                  <h4 class="line-h-1 w-100p" v-html="noticeContent">{{ noticeContent }}</h4>
                 </div>
               </div>
             </div>
@@ -437,6 +437,7 @@
   import {
     getMenuEventType,
     getEventPush,
+    getLatestNotice,
     getBaseInfo,
     getTodayEvents,
     getDeptEventCount,
@@ -502,7 +503,7 @@
       // 初始化地图数据
       this.getSuperMapUrl();
       setTimeout(() => {
-        this.getBaseInfo()
+        this.getLatestNotice()
         this.getTodayEvents(this.getCurrentDataStr())
         this.getDeptEventCount(this.getCurrentDataStr())
         this.getWeather(this.getCurrentDataStr())
@@ -523,6 +524,7 @@
     },
     data() {
       return {
+        noticeContent: '', //通知公告
         title:"",
         //警报MP3文件
         audioSrc: require('@/assets/jingbao.mp3'),
@@ -879,15 +881,11 @@
           }]
         })
       },
-      getBaseInfo() {
-        //左侧获取部门信息
-        getBaseInfo().then(res => {
+      getLatestNotice() {
+        getLatestNotice().then(res => {
+          debugger
           if (res.code == 200) {
-            if (res.msg == '未找到特色信息') {
-              this.forestInfo = '暂无基本情况!'
-            } else {
-              this.forestInfo = res.data.baseinfo //基本情况
-            }
+            this.noticeContent = res.data.noticeContent //通知公告
           }
         })
       },