Browse Source

forest部门事件数量接口

qinhouyu 1 year ago
parent
commit
3b65658cdf
3 changed files with 21 additions and 7 deletions
  1. 12 2
      src/api/forest.js
  2. 7 2
      src/views/forest.vue
  3. 2 3
      vue.config.js

+ 12 - 2
src/api/forest.js

@@ -114,9 +114,19 @@ export function getBaseInfo() {
 //   })
 // }
 // 左侧获取事件部门数量
-export function getDeptEventCount(param,loading) {
+// export function getDeptEventCount(param,loading) {
+//   return request({
+//     url: '/center-emergency/VisuEmergencyCloudMapController/getDeptEventCount',
+//     method: 'post',
+//     data: param,
+//     headers: {
+//       loading: loading
+//     },
+//   })
+// }
+export function getDeptEventCount_direct(param,loading) {
   return request({
-    url: '/center-emergency/VisuEmergencyCloudMapController/getDeptEventCount',
+    url: '/center-event/eventview/selectDeptEventCount',
     method: 'post',
     data: param,
     headers: {

+ 7 - 2
src/views/forest.vue

@@ -424,7 +424,7 @@ import {
   getEventList,
   getEventByEventType,
   getEventByReportorOrder,
-  getExposureStage
+  getExposureStage, getDeptEventCount_direct
 } from '@/api/forest'
 import {
   getNearEvent
@@ -934,7 +934,12 @@ export default {
     getDeptEventCount(day, loading) {
       let that = this
       //左侧获取事件部门数量
-      getDeptEventCount({ eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId, day: day }, loading).then(res => {
+      getDeptEventCount_direct({
+        eventTypeIdDl: that.eventTypeIdDl.length === 0 ? Cookies.get("eventTypeDl").split(",") : that.eventTypeIdDl,
+        eventTypeId: that.eventTypeId.length === 0?Cookies.get("eventType").split(","): that.eventTypeId,
+        day: day,
+        menuId:6
+        }, loading).then(res => {
         this.forestFarm = res.data
       })
     },

+ 2 - 3
vue.config.js

@@ -53,10 +53,9 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://127.0.0.1:3031`,
-        // target: `https://2961rt3561.oicp.vip`,
-        // target: `https://29613561xe.eicp.vip`,
         // target: `http://121.36.228.66:3031`,
-        target: `http://192.168.31.235:3031`,
+        // target: `http://192.168.31.235:3031`,
+        target: `http://192.168.31.134:3031`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''