459242451@qq.com 3 anos atrás
pai
commit
f4b2a9acf8

+ 9 - 21
ruoyi-admin/src/main/java/com/ruoyi/web/controller/gas/GasCommonController.java

@@ -149,31 +149,19 @@ public class GasCommonController {
         return AjaxResult.success(Convert.toList(IllegalInfo.class, stringObjectMap.get("pageList")));
     }
 
-//    @GetMapping("/third/queryIllegalInfoList")
-//    @ApiOperation("提供第三方:获取嫌疑或违规船舶信息")
-//    public AjaxResult thirdQueryIllegalInfoList(@RequestParam String mmsi, @RequestParam(required = false, defaultValue = "2") Integer size) {
-//        Map<String, Object> equalsCondition = new HashMap<>();
-//        equalsCondition.put("mmsi", mmsi);
-//        equalsCondition.put("")
-//        List<String> orderBy = new ArrayList<>();
-//        orderBy.add("-createTime");
-//        Map<String, Object> stringObjectMap = client.searchDocument(equalsCondition,
-//                null,
-//                orderBy,
-//                1,
-//                size,
-//                ElasticConstants.AIS_ILLEGAL_SHIP,
-//                ElasticConstants.SO2_ALERT,
-//                ElasticConstants.HEIYAN_SHIP_RECOGNITION);
-//
-//        return AjaxResult.success(Convert.toList(IllegalInfo.class, stringObjectMap.get("pageList")));
-//    }
-
     @GetMapping("/queryDeviceList")
     @ApiOperation("获取所有设备数据")
     public AjaxResult queryDeviceList(@RequestParam(required = false) String monitor) {
         if (redisCache.hasKey(CacheConstants.DEVICE_LIST_STATIC)) {
-            return AjaxResult.success(redisCache.getCacheMap(CacheConstants.DEVICE_LIST_STATIC));
+            Map<String, Object> cacheMap = redisCache.getCacheMap(CacheConstants.DEVICE_LIST_STATIC);
+            Map<String, Object> data = MapUtil.newHashMap(6, true);
+            data.put("南京三桥", cacheMap.get("南京三桥"));
+            data.put("南京四桥", cacheMap.get("南京四桥"));
+            data.put("润扬大桥", cacheMap.get("润扬大桥"));
+            data.put("泰州大桥", cacheMap.get("泰州大桥"));
+            data.put("江阴大桥", cacheMap.get("江阴大桥"));
+            data.put("苏通大桥", cacheMap.get("苏通大桥"));
+            return AjaxResult.success(data);
         }
         List<DeviceBo> njsanq = new ArrayList<>();
         List<DeviceBo> njsiq = new ArrayList<>();

+ 7 - 4
ruoyi-ui/src/views/home.vue

@@ -106,10 +106,13 @@
       </div>
     </div>
     <div style="position: absolute;right: 0;color: #3FC9FD;top: 28rem;font-size: 9rem;">
-      <div style="display: inline-block;margin-right:6rem"><a target="view_window" :href="gosubsys('http://198.17.188.56:82','admin','111111',1)"><img style="width:20px;vertical-align: middle;margin-right:2px" src="../assets/images/txsb_selected@2x.png"/>光谱</a></div>
+      <div style="display: inline-block;margin-right:6rem"><a target="view_window" :href="gosubsys('http://198.17.188.56:82','admin','111111',1)"><img style="width:20px;vertical-align: middle;margin-right:2px"
+                                                                                                                                                       src="../assets/images/txsb_selected@2x.png"/>光谱</a></div>
       <div
-        style="display: inline-block;margin-right:6rem"><a target="view_window" :href="gosubsys('http://198.17.188.2:83/index.html','js_admin','js@123456',1)"><img style="width:20px;vertical-align: middle;margin-right:2px" src="../assets/images/gpsb@2x.png"/>嗅探</a></div>
-      <div style="display: inline-block;margin-right:20rem"><a  target="view_window" :href="gosubsys('http://198.17.23.29:8090','admin','word',1)"><img style="width:20px;vertical-align: middle;margin-right:2px" src="../assets/images/heiyan@2x.png"/>黑烟</a></div>
+        style="display: inline-block;margin-right:6rem"><a target="view_window" :href="gosubsys('http://198.17.188.2:83/index.html','js_admin','js@123456',1)"><img style="width:20px;vertical-align: middle;margin-right:2px"
+                                                                                                                                                                    src="../assets/images/gpsb@2x.png"/>嗅探</a></div>
+      <div style="display: inline-block;margin-right:20rem"><a target="view_window" :href="gosubsys('http://198.17.23.29:8090','admin','word',1)"><img style="width:20px;vertical-align: middle;margin-right:2px" src="../assets/images/heiyan@2x.png"/>黑烟</a>
+      </div>
     </div>
     <div class="center_content">
 
@@ -128,7 +131,7 @@
       ></iframe>
       <iframe style="height:350rem;width:100%" v-show="showTable==10" marginwidth="0" marginheight="0" vspace="0"
               hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" frameborder="0" name="showHere"
-              src="http://198.17.25.32:9001/device.html?opt=1"
+              src="http://198.17.188.56:9011/device.html?opt=1"
       ></iframe>
       <iframe style="height:350rem;width:100%" v-show="showTable==11" marginwidth="0" marginheight="0" vspace="0"
               hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" frameborder="0" name="showHere"