Selaa lähdekoodia

删除左侧部门数量接口

JX.LI 1 vuosi sitten
vanhempi
commit
2508ab94a1
2 muutettua tiedostoa jossa 3 lisäystä ja 43 poistoa
  1. 0 8
      src/api/forest.js
  2. 3 35
      src/views/forest.vue

+ 0 - 8
src/api/forest.js

@@ -118,14 +118,6 @@ export function getExposureStage(param) {
     data: param
   })
 }
-// 左侧获取事件部门数量
-export function getDeptEventCount(param) {
-  return request({
-    url: '/center-traffic/traffic/getDeptEventCount',
-    method: 'post',
-    data: param
-  })
-}
 // 右侧获取天气
 export function getWeather(param) {
   return request({

+ 3 - 35
src/views/forest.vue

@@ -98,20 +98,6 @@
                   </div>
                 </div>
               </div>
-
-              <!--            <el-collapse accordion>
-                <el-collapse-item v-for="(item, index) in forestFarm" :key="index">
-                  <template slot="title">
-                    <div class="d-l-con sj-collapse" :class="{ on: listCurrentIndex1 == item.deptId }"
-                      v-on:click="selectCameraByDeptId(item.deptId)">
-                      <div class="d-l-l-text">
-                        <h4 class="collapse-title">{{ item.deptName }}</h4>
-                      </div>
-                      <div class="d-l-l-count">{{ item.eventCount }}</div>
-                    </div>
-                  </template>
-                </el-collapse-item>
-              </el-collapse> -->
             </div>
           </dv-border-box-13>
         </div>
@@ -443,7 +429,7 @@
     getEventPush,
     getLatestNotice,
     getTodayEvents,
-    getDeptEventCount,
+   
     getWeather,
     selectByMenuId,
     getEventList,
@@ -536,7 +522,7 @@
       setTimeout(() => {
         this.getResourcesCount();
         this.getTodayEvents(this.getCurrentDataStr())
-        this.getDeptEventCount(this.getCurrentDataStr())
+       
         this.getWeather(this.getCurrentDataStr())
         this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum)
         this.getEventByEventType(this.getCurrentDataStr())
@@ -583,8 +569,6 @@
         otherTotal_pre: '',
         readyFinish_pre: '',
         readySure_pre: '',
-        //左侧部门事件数量
-        forestFarm: [],
         //右侧天气
         todatWeather: false,
         weatherinformationDirection: '',
@@ -1140,7 +1124,7 @@
       selectDay(day) { //日历点击
         this.pageNum = 1
         this.getTodayEvents(day)
-        this.getDeptEventCount(day)
+      
         this.getWeather(day)
         this.getEventList(day, 10, 1)
         this.getEventByEventType(day)
@@ -1366,17 +1350,6 @@
           this.eventChartAi(this.aiTotal_pre, this.otherTotal_pre)
         })
       },
-      getDeptEventCount(day, loading) {
-        let that = this
-        //左侧获取事件部门数量
-        getDeptEventCount({
-          eventTypeIdDl: that.eventTypeIdDl,
-          eventTypeId: that.eventTypeId,
-          day: day
-        }, loading).then(res => {
-          this.forestFarm = res.data
-        })
-      },
       getWeather(day) {
         let that = this
         //右侧获取天气信息
@@ -1506,7 +1479,6 @@
         that.getEventByEventType(that.calendarDay, false)
         that.getExposureStage(that.calendarDay, false)
         that.getEventByReportorOrder(that.calendarDay, false)
-        that.getDeptEventCount(that.calendarDay, false)
         that.getEventList(that.calendarDay, that.pageSize, that.pageNum, '', false)
       },
       getEventList(day, pageSize, pageNum, eventSearch, loading) {
@@ -1720,11 +1692,7 @@
         // let data = "{\"fromId\":\"forest\",\"fromUserId\":\""+Cookies.get('username')+"\",\"toUserId\":\""+Cookies.get('username')+"\"}";
         let data = "{\"fromId\":\"traffic\"}";
         if (this.calendarDay == this.getCurrentDataStr() && data != e.data) {
-
-
-
           this.getTodayEvents(this.getCurrentDataStr(), false);
-          this.getDeptEventCount(this.getCurrentDataStr(), false);
           this.getEventByEventType(this.getCurrentDataStr(), false);
           this.getEventByReportorOrder(this.getCurrentDataStr(), false);
           this.getExposureStage(this.getCurrentDataStr(), false);