Merge branch 'main' of http://182.92.203.107:3000/libingkun/skyeyesystem
This commit is contained in:
commit
a372b06c2a
26
README.md
26
README.md
@ -110,3 +110,29 @@ npx update-browserslist-db@latest
|
|||||||
```
|
```
|
||||||
## 4. 在浏览器中打开主页,localhost:8080, 默认用户名密码为:admin/123
|
## 4. 在浏览器中打开主页,localhost:8080, 默认用户名密码为:admin/123
|
||||||
|
|
||||||
|
# 前端nginx启动
|
||||||
|
|
||||||
|
## 1.执行build
|
||||||
|
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm run build
|
||||||
|
|
||||||
|
出现错误的执行
|
||||||
|
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm install babel-plugin-transform-remove-console --save-dev
|
||||||
|
|
||||||
|
出现版本node.js太大问题
|
||||||
|
1.降低版本
|
||||||
|
2."scripts": {
|
||||||
|
"serve": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service serve",
|
||||||
|
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider vue-cli-service build",
|
||||||
|
"lint": "vue-cli-service lint"
|
||||||
|
}
|
||||||
|
|
||||||
|
## 2. 拷贝resource目录中的dt-sdk到node-modules目录
|
||||||
|
|
||||||
|
## 3.继续build
|
||||||
|
PS D:\IdeaProjects\skyeyesystem\frontend\Skyeye-sys-ui> npm run build
|
||||||
|
|
||||||
|
## 4.然后到nginx-conf目录下修改配置文件nginx.conf的启动路径
|
||||||
|
root "D:/IdeaProjects/skyeyesystem/frontend/Skyeye-sys-ui/dist";
|
||||||
|
|
||||||
|
## 5.回到nginx目录下cmd 执行.\nginx.exe
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import com.zhangy.skyeye.jm.dto.JmJobImageDTO;
|
|||||||
import com.zhangy.skyeye.jm.entity.JmImage;
|
import com.zhangy.skyeye.jm.entity.JmImage;
|
||||||
import com.zhangy.skyeye.jm.service.JmImageService;
|
import com.zhangy.skyeye.jm.service.JmImageService;
|
||||||
import com.zhangy.skyeye.publics.consts.FileTypeEnum;
|
import com.zhangy.skyeye.publics.consts.FileTypeEnum;
|
||||||
|
import com.zhangy.skyeye.publics.utils.OpenCVUtil;
|
||||||
import org.opencv.core.Core;
|
import org.opencv.core.Core;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
import org.springframework.data.redis.core.RedisTemplate;
|
||||||
@ -138,21 +139,7 @@ public class JmImageController {
|
|||||||
}
|
}
|
||||||
static {
|
static {
|
||||||
//System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
//System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
||||||
//加载 OpenCV (强制使用绝对路径加载,解决 UnsatisfiedLinkError)
|
OpenCVUtil.loadNativeDylib();
|
||||||
String openCvDll = System.getProperty("opencv.library.path") + File.separator + Core.NATIVE_LIBRARY_NAME + ".dll";
|
|
||||||
try {
|
|
||||||
File dllFile = new File(openCvDll);
|
|
||||||
if (dllFile.exists()) {
|
|
||||||
// 注意:必须使用 System.load() 加载绝对路径
|
|
||||||
System.load(dllFile.getAbsolutePath());
|
|
||||||
System.out.println("SUCCESS: OpenCV loaded from -> " + dllFile.getAbsolutePath());
|
|
||||||
} else {
|
|
||||||
System.err.println("ERROR: OpenCV DLL not found at -> " + openCvDll);
|
|
||||||
}
|
|
||||||
} catch (Throwable e) {
|
|
||||||
System.err.println("CRITICAL: Failed to load OpenCV: " + e.getMessage());
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@IgnoreAuth
|
/*@IgnoreAuth
|
||||||
|
|||||||
@ -25,6 +25,7 @@ import com.zhangy.skyeye.kmz.KmzGen;
|
|||||||
import com.zhangy.skyeye.publics.consts.ExecStatusEnum;
|
import com.zhangy.skyeye.publics.consts.ExecStatusEnum;
|
||||||
import com.zhangy.skyeye.publics.consts.FileTypeEnum;
|
import com.zhangy.skyeye.publics.consts.FileTypeEnum;
|
||||||
import com.zhangy.skyeye.publics.consts.UavAirlineUploadEnum;
|
import com.zhangy.skyeye.publics.consts.UavAirlineUploadEnum;
|
||||||
|
import com.zhangy.skyeye.publics.consts.WebSocketKey;
|
||||||
import com.zhangy.skyeye.publics.service.SysFileTypeService;
|
import com.zhangy.skyeye.publics.service.SysFileTypeService;
|
||||||
import com.zhangy.skyeye.publics.utils.CoordUtil;
|
import com.zhangy.skyeye.publics.utils.CoordUtil;
|
||||||
import com.zhangy.skyeye.py.service.IPyAirlineService;
|
import com.zhangy.skyeye.py.service.IPyAirlineService;
|
||||||
@ -39,6 +40,7 @@ import com.zhangy.skyeye.sar.service.ISarMtiPointService;
|
|||||||
import com.zhangy.skyeye.sar.service.ISarMtiTrailService;
|
import com.zhangy.skyeye.sar.service.ISarMtiTrailService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.messaging.simp.SimpMessagingTemplate;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
@ -82,6 +84,8 @@ public class JmJobServiceImpl implements JmJobService {
|
|||||||
private QuartzService quartzService;
|
private QuartzService quartzService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private JmAirlinePlanService jmAirlinePlanService;
|
private JmAirlinePlanService jmAirlinePlanService;
|
||||||
|
@Autowired
|
||||||
|
private SimpMessagingTemplate simpMessagingTemplate;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IPage<JmJobDTO> selectPage(JmJobPageDTO param) {
|
public IPage<JmJobDTO> selectPage(JmJobPageDTO param) {
|
||||||
@ -454,6 +458,12 @@ public class JmJobServiceImpl implements JmJobService {
|
|||||||
sarControlService.sendUdp(controlParam);
|
sarControlService.sendUdp(controlParam);
|
||||||
// 标记缓存状态,确保断连重新发送请求时不会重复执行
|
// 标记缓存状态,确保断连重新发送请求时不会重复执行
|
||||||
// uav.setSarStatus(ExecStatusEnum.OVER);
|
// uav.setSarStatus(ExecStatusEnum.OVER);
|
||||||
|
|
||||||
|
// 只会通知一次?
|
||||||
|
// 通知前端任务停止
|
||||||
|
JmJobStatusWsDTO wsVo = new JmJobStatusWsDTO(id, uav.getUavId());
|
||||||
|
wsVo.setJobStatus(ExecStatusEnum.OVER.getValue());
|
||||||
|
simpMessagingTemplate.convertAndSend(WebSocketKey.JM_JOB_STATUS, wsVo);
|
||||||
});
|
});
|
||||||
// 删除缓存任务信息
|
// 删除缓存任务信息
|
||||||
jobStatusService.remove(id);
|
jobStatusService.remove(id);
|
||||||
|
|||||||
@ -24,7 +24,8 @@ import java.util.List;
|
|||||||
public class ImageUtil {
|
public class ImageUtil {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
//System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
||||||
|
OpenCVUtil.loadNativeDylib();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -19,7 +19,26 @@ import java.util.List;
|
|||||||
public class OpenCVUtil {
|
public class OpenCVUtil {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
//System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
||||||
|
loadNativeDylib();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void loadNativeDylib() {
|
||||||
|
//加载 OpenCV (强制使用绝对路径加载,解决 UnsatisfiedLinkError)
|
||||||
|
String openCvDll = System.getProperty("opencv.library.path") + File.separator + Core.NATIVE_LIBRARY_NAME + ".dll";
|
||||||
|
try {
|
||||||
|
File dllFile = new File(openCvDll);
|
||||||
|
if (dllFile.exists()) {
|
||||||
|
// 注意:必须使用 System.load() 加载绝对路径
|
||||||
|
System.load(dllFile.getAbsolutePath());
|
||||||
|
System.out.println("SUCCESS: OpenCV loaded from -> " + dllFile.getAbsolutePath());
|
||||||
|
} else {
|
||||||
|
System.err.println("ERROR: OpenCV DLL not found at -> " + openCvDll);
|
||||||
|
}
|
||||||
|
} catch (Throwable e) {
|
||||||
|
System.err.println("CRITICAL: Failed to load OpenCV: " + e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user