Browse Source

获取上报排名 转直连

JX.LI 2 years ago
parent
commit
7b9e0a334f
3 changed files with 4 additions and 4 deletions
  1. 1 1
      src/api/forest.js
  2. 2 2
      src/views/forest.vue
  3. 1 1
      vue.config.js

+ 1 - 1
src/api/forest.js

@@ -169,7 +169,7 @@ export function getEventByEventType(param,loading) {
 // 获取上报排名
 export function getEventByReportorOrder(param) {
   return request({
-    url: '/center-traffic/traffic/getEventByReportorOrder',
+    url: '/center-event/eventview/getEventByReportorOrder',
     method: 'post',
     data: param
   })

+ 2 - 2
src/views/forest.vue

@@ -1546,8 +1546,8 @@
         let that = this
         //右侧获取上报排名
         getEventByReportorOrder({
-          eventTypeIdDl: that.eventTypeIdDl,
-          eventTypeId: that.eventTypeId,
+          eventTypeIdDl: that.eventTypeIdDl.length == 0 ? Cookies.get("eventTypeDl").split(",") : that.eventTypeIdDl,
+          eventTypeId: that.eventTypeId.length == 0 ? Cookies.get("eventType").split(",") : that.eventTypeId,
           day: day
         }, loading).then(res => {
           if (res.data != null && res.data.length > 0) {

+ 1 - 1
vue.config.js

@@ -43,7 +43,7 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://127.0.0.1:3031`,
-        target: `http://121.36.228.66:3031`,
+        target: `http://192.168.31.235:3031`,
         // target: `http://192.168.2.118:3031`,
         // target: `https://29613561xe.eicp.vip`,
         changeOrigin: true,