Merge pull request 'feature_dzc' (#15) from feature_dzc into test
Reviewed-on: http://220.205.16.27:18081/goflytec/GoFly-platform-services/pulls/15
@@ -64,7 +64,9 @@
|
||||
"Bash(tree:*)",
|
||||
"Bash(move \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-business\\\\order-center\\\\src\\\\main\\\\resources\\\\mapper\\\\mission\\\\MissionMapper.xml\" \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-business\\\\order-center\\\\src\\\\main\\\\resources\\\\mapper\\\\MissionMapper.xml\")",
|
||||
"Bash(cmd /c move:*)",
|
||||
"Bash(set:*)"
|
||||
"Bash(set:*)",
|
||||
"Bash(copy \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\react-web-next\\\\src\\\\assets\\\\logo.png\" \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\yingyan\\\\src\\\\assets\\\\logo.png\")",
|
||||
"Bash(cmd /c copy \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\react-web-next\\\\src\\\\assets\\\\logo.png\" \"F:\\\\project\\\\go-fly-platform-services\\\\zlt-web\\\\yingyan\\\\src\\\\assets\\\\logo.png\")"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
|
||||
@@ -1,69 +1,4 @@
|
||||
# zlt-microservices-platform
|
||||
|
||||
<p align="center">
|
||||
<img src="https://img.shields.io/badge/Version-6.0.0-critical" alt="Downloads"/>
|
||||
<img src="https://img.shields.io/badge/JDK-17-8A2BE2" alt="Downloads"/>
|
||||
<img src="https://img.shields.io/badge/Spring Authorization Server-1.1.3-40A24E" alt="Downloads"/>
|
||||
<img src="https://img.shields.io/badge/Spring%20Boot-3.1.6-blue" alt="Downloads"/>
|
||||
<img src="https://img.shields.io/badge/Spring%20Cloud-2022.0.4-blue" alt="Downloads"/>
|
||||
<img src="https://img.shields.io/badge/Spring%20Cloud%20Alibaba-2022.0.0.0-blue" alt="Downloads"/>
|
||||
<img src="https://img.shields.io/badge/Elasticsearch-7.x-34A2AE" alt="Downloads"/>
|
||||
<img src="https://img.shields.io/badge/Ant%20Design-pro-9cf" alt="Downloads"/>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## 如果您觉得有帮助,请点右上角 "Star" 支持一下谢谢
|
||||
|
||||
## 1. 总体架构图
|
||||

|
||||
|
||||
|
||||
## 2. 功能介绍
|
||||

|
||||
|
||||
|
||||
## 3. 项目介绍
|
||||
* **技术交流群**
|
||||
<table>
|
||||
<tr>
|
||||
<td><center><strong><a href="https://qm.qq.com/cgi-bin/qm/qr?k=HntAHTirZwCEjF8PQpjDYkw37Zx5rJg8&jump_from=webapi" target="_blank">交流三群</a></strong></center></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://qm.qq.com/cgi-bin/qm/qr?k=HntAHTirZwCEjF8PQpjDYkw37Zx5rJg8&jump_from=webapi" target="_blank"><img width=250px height=300px alt="交流三群" src="https://gitee.com/zlt2000/images/raw/master/%E4%BA%A4%E6%B5%81%E4%B8%89%E7%BE%A4.png"/></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
* **详细在线文档** :https://www.kancloud.cn/zlt2000/microservices-platform/919418
|
||||
* **[项目更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936235)**
|
||||
* **[文档更新日志](https://www.kancloud.cn/zlt2000/microservices-platform/936236)**
|
||||
* **演示环境地址**: [http://zlt2000.cn](http://zlt2000.cn/)
|
||||
* 账号密码:admin/admin
|
||||
* Grafana账号:zlt/zlt123
|
||||
* **演示环境有全方位的监控示例:日志系统 + APM系统 + GPE系统**
|
||||
* Gitee地址:https://gitee.com/zlt2000/microservices-platform
|
||||
* Github地址:https://github.com/zlt2000/microservices-platform
|
||||
* 前后端分离的企业级微服务架构
|
||||
* 主要针对解决微服务和业务开发时常见的**非功能性需求**
|
||||
* 基于 `Spring Authorization Server` 深度定制`Spring Security`真正实现了基于`RBAC`、`jwt`和`oauth2`的无状态统一权限认证的解决方案
|
||||
* 提供应用管理,方便第三方系统接入,**支持多租户(应用隔离)**
|
||||
* 引入组件化的思想实现高内聚低耦合并且高度可配置化
|
||||
* 注重代码规范,严格控制包依赖,每个工程基本都是最小依赖
|
||||
* 非常适合学习和企业中使用
|
||||
>重构于开源项目OCP&cp:https://gitee.com/owenwangwen/open-capacity-platform
|
||||
|
||||
|
||||
## 4. 分支说明
|
||||
| 分支名 | JDK | Spring Boot | Spring Cloud | Spring Security |
|
||||
| --- | --- | --- | --- |---|
|
||||
| master | 17 | 3.x | 2022.x | Spring Authorization Server |
|
||||
| 5.x | 1.8 | 2.5.x | 2020.x | Spring Security OAuth |
|
||||
| 4.x | 1.8 | 2.3.x | 2.2.x | Spring Security OAuth |
|
||||
|
||||
|
||||
## 5. 模块说明
|
||||
```lua
|
||||
central-platform -- 父项目,公共依赖
|
||||
@@ -108,69 +43,5 @@ central-platform -- 父项目,公共依赖
|
||||
│ │ ├─websocket-demo -- websocket demo
|
||||
```
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><a target="_blank" href="https://www.aliyun.com/minisite/goods?userCode=dickv1kw&share_source=copy_link"><img width="460px" height="177px" alt="阿里云" src="https://gitee.com/zlt2000/images/raw/master/aly.jpg"/></a></td>
|
||||
<td><a target="_blank" href="https://cloud.tencent.com/act/cps/redirect?redirect=1074&cps_key=5516bbd5876cd224d90bd41d53d3f7fe&from=console"><img width="460px" height="177px" alt="腾讯云" src="https://gitee.com/zlt2000/images/raw/master/txy.jpg"/></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
## 6. 交流反馈
|
||||
* 有问题先看看 [F&Q](https://www.kancloud.cn/zlt2000/microservices-platform/981382) 中有没有相关的回答
|
||||
* 欢迎提交`ISSUS`,请写清楚问题的具体原因,重现步骤和环境(上下文)
|
||||
* 项目/微服务交流请进群:
|
||||
* 一群:[250883130(已满)](https://shang.qq.com/wpa/qunwpa?idkey=17544199255998bda0d938fb72b08d076c40c52c9904520b76eb5eb0585da71e)
|
||||
* 二群:[1041797659(已满)](https://shang.qq.com/wpa/qunwpa?idkey=41988facbc02f678942a7ee7ae03122f2ef0a10c948b3d07319f070bfb0d3a98)
|
||||
* 三群:[512637767](https://qm.qq.com/cgi-bin/qm/qr?k=HntAHTirZwCEjF8PQpjDYkw37Zx5rJg8&jump_from=webapi)
|
||||
* 个人博客:[http://zlt2000.gitee.io](http://zlt2000.gitee.io)
|
||||
* 个人邮箱:zltdiablo@163.com
|
||||
* 个人公众号:[陶陶技术笔记](http://qiniu.zlt2000.cn/blog/20190902/M56cWjw7uNsc.png?imageslim)
|
||||
* GitChat:[https://gitbook.cn/gitchat/author/5b2362320398d50d7b7ab29e](https://gitbook.cn/gitchat/author/5b2362320398d50d7b7ab29e)
|
||||
|
||||
|
||||
## 7. 截图(点击可大图预览)
|
||||
<table>
|
||||
<tr>
|
||||
<td><img alt="首页" src="https://gitee.com/zlt2000/images/raw/master/%E9%A6%96%E9%A1%B5.png"/></td>
|
||||
<td><img alt="用户搜索" src="https://gitee.com/zlt2000/images/raw/master/%E7%94%A8%E6%88%B7%E6%90%9C%E7%B4%A2.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="日志系统" src="https://gitee.com/zlt2000/images/raw/master/%E6%97%A5%E5%BF%97%E7%B3%BB%E7%BB%9F.png"/></td>
|
||||
<td><img alt="日志链路" src="https://gitee.com/zlt2000/images/raw/master/%E6%97%A5%E5%BF%97%E9%93%BE%E8%B7%AF.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="server_metrics" src="https://gitee.com/zlt2000/images/raw/master/server_metrics.png"/></td>
|
||||
<td><img alt="application_metrics" src="https://gitee.com/zlt2000/images/raw/master/application_metrics.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="skywalking首页.png" src="https://gitee.com/zlt2000/images/raw/master/skywalking%E9%A6%96%E9%A1%B5.png"/></td>
|
||||
<td><img alt="skywalking应用拓扑图" src="https://gitee.com/zlt2000/images/raw/master/skywalking%E5%BA%94%E7%94%A8%E6%8B%93%E6%89%91%E5%9B%BE.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="elk" src="https://gitee.com/zlt2000/images/raw/master/elk.png"/></td>
|
||||
<td><img alt="任务中心" src="https://gitee.com/zlt2000/images/raw/master/%E4%BB%BB%E5%8A%A1%E4%B8%AD%E5%BF%83.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="日志中心02" src="https://gitee.com/zlt2000/images/raw/master/%E6%97%A5%E5%BF%97%E4%B8%AD%E5%BF%8302.png"/></td>
|
||||
<td><img alt="慢查询sql" src="https://gitee.com/zlt2000/images/raw/master/%E6%85%A2%E6%9F%A5%E8%AF%A2sql.png"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="nacos-discovery" src="https://gitee.com/zlt2000/images/raw/master/nacos-discovery.png"/></td>
|
||||
<td><img alt="应用吞吐量监控" src="https://gitee.com/zlt2000/images/raw/master/%E5%BA%94%E7%94%A8%E5%90%9E%E5%90%90%E9%87%8F%E7%9B%91%E6%8E%A7.png"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
## 8.友情链接
|
||||
|
||||
### flowsphere
|
||||
|
||||
云原生微服务流量治理解决方案,项目地址:https://github.com/flowsphere-projects/flowsphere
|
||||
|
||||
项目亮点:
|
||||
|
||||
1.全网唯一使用JavaAgent实现Http、MQ、Job全链路灰度
|
||||
|
||||
2.全网唯一支持JavaAgent接入Sentinel
|
||||
|
||||
|
||||
@@ -192,4 +192,20 @@ public class TourismController {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Operation(summary = "获取景区以及设备信息")
|
||||
@GetMapping("/{tourismId}/device-sn")
|
||||
public Result<Map<String,Object>> getTourismAndDeviceSn(@PathVariable("tourismId") Long tourismId) {
|
||||
try {
|
||||
if(tourismId==null || tourismId ==0L){
|
||||
return Result.failed("tourismId不能为空或者不能为0");
|
||||
}
|
||||
return tourismService.getTourismInfo(tourismId);
|
||||
} catch (Exception e) {
|
||||
log.error("获取景区设备列表失败", e);
|
||||
return Result.failed("获取景区设备列表失败:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -95,5 +95,8 @@ public interface ITourismService extends ISuperService<Tourism> {
|
||||
* @return 去重后的设备SN列表
|
||||
*/
|
||||
List<String> getDeviceSnsByTourismId(Long tourismId);
|
||||
|
||||
|
||||
Result<Map<String, Object>> getTourismInfo(Long tourismId);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,10 +23,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -265,4 +262,41 @@ public class TourismServiceImpl extends SuperServiceImpl<TourismMapper, Tourism>
|
||||
return deviceSns;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result<Map<String, Object>> getTourismInfo(Long tourismId) {
|
||||
Tourism tourism = baseMapper.getTourismById(tourismId);
|
||||
if(Objects.isNull(tourism)){
|
||||
return Result.failed("获取景区失败");
|
||||
}
|
||||
if(tourism.getStatus()==0){
|
||||
return Result.failed("景区被禁用");
|
||||
}
|
||||
Map<String,Object> map =new HashMap<>();
|
||||
map.put("tourismDec",tourism.getTourismDesc());
|
||||
LambdaQueryWrapper<TourismFile> wrapper =new LambdaQueryWrapper<>() ;
|
||||
wrapper.eq(TourismFile::getTourismId,tourismId)
|
||||
.eq(TourismFile::getType,6);
|
||||
List<TourismFile> tourismFiles = tourismFileService.list(wrapper);
|
||||
if(tourismFiles!=null && tourismFiles.size()>0){
|
||||
List<String> list = new ArrayList<>();
|
||||
for(TourismFile tourismFile:tourismFiles){
|
||||
if (tourismFile != null && tourismFile.getImageUrl() != null) {
|
||||
// 获取图片的完整URL
|
||||
String imageUrl = fileCenterService.getViewUrlByPath(tourismFile.getImageUrl());
|
||||
list.add(imageUrl);
|
||||
}
|
||||
}
|
||||
map.put("images",list);
|
||||
}
|
||||
LambdaQueryWrapper<QrCode> wrapperQrcod =new LambdaQueryWrapper<>() ;
|
||||
wrapperQrcod.eq(QrCode::getTourismId,tourismId);
|
||||
wrapperQrcod.eq(QrCode::getIsTest,0);
|
||||
wrapperQrcod.orderByDesc(QrCode::getId);
|
||||
List<QrCode> qrCodes= qrCodeMapper.selectList(wrapperQrcod);
|
||||
if(qrCodes!=null && qrCodes.size()>0){
|
||||
map.put("deviceSn",qrCodes.get(0).getDeviceSn());
|
||||
}
|
||||
return Result.succeed(map,"获取成功");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,600 @@
|
||||
# Yingyan (鹰眼) - 3D可视化管控平台设计文档
|
||||
|
||||
## 1. 项目概述
|
||||
|
||||
### 1.1 项目背景
|
||||
从现有 `react-web-next` 后台管理系统中提取3D相关功能,构建一个独立的3D可视化管控平台,专注于设备管控和任务管理。
|
||||
|
||||
### 1.2 项目定位
|
||||
- **名称**: Yingyan (鹰眼)
|
||||
- **类型**: 3D可视化大屏管控平台
|
||||
- **核心功能**: 设备实时管控 + 任务管理 + 3D地图可视化
|
||||
- **目标用户**: 运维人员、设备管理员
|
||||
|
||||
### 1.3 与原项目区别
|
||||
|
||||
| 特性 | react-web-next | yingyan |
|
||||
|------|---------------|---------|
|
||||
| 定位 | 综合后台管理系统 | 3D可视化管控平台 |
|
||||
| 菜单系统 | 完整侧边栏菜单 | 无菜单(大屏直达) |
|
||||
| 首页 | 订单/景区统计仪表板 | 设备/任务大屏展示 |
|
||||
| 功能范围 | 订单、景区、分润、系统管理等 | 仅3D地图、设备、任务 |
|
||||
| 交互模式 | 表格列表为主 | 大屏可视化为主 |
|
||||
|
||||
---
|
||||
|
||||
## 2. 技术架构
|
||||
|
||||
### 2.1 技术栈(继承原项目)
|
||||
|
||||
| 技术 | 版本 | 说明 |
|
||||
|------|------|------|
|
||||
| React | 17.0.2 | UI框架 |
|
||||
| UmiJS | 3.5.0 | 应用框架 |
|
||||
| TypeScript | 4.5.0 | 类型系统 |
|
||||
| Ant Design | 4.20.0 | 基础组件 |
|
||||
| Cesium | 1.110.0 | 3D地球渲染 |
|
||||
| @ant-design/plots | 2.6.5 | 图表组件 |
|
||||
|
||||
### 2.2 项目结构
|
||||
|
||||
```
|
||||
yingyan/
|
||||
├── config/
|
||||
│ ├── config.ts # Umi核心配置
|
||||
│ ├── routes.ts # 路由配置(精简版)
|
||||
│ └── proxy.ts # 代理配置
|
||||
├── src/
|
||||
│ ├── layouts/
|
||||
│ │ └── BlankLayout.tsx # 无菜单布局(新增)
|
||||
│ ├── components/
|
||||
│ │ ├── SecureLoginForm/ # 安全登录表单(复用)
|
||||
│ │ ├── TenantScopeFilter/ # 租户过滤器(复用)
|
||||
│ │ └── ui/ # 通用UI组件
|
||||
│ │ ├── GlassCard/ # 玻璃态卡片
|
||||
│ │ ├── KPIStat/ # KPI统计组件
|
||||
│ │ └── ...
|
||||
│ ├── pages/
|
||||
│ │ ├── user/
|
||||
│ │ │ └── Login/ # 登录页(复用+定制)
|
||||
│ │ ├── dashboard/ # 大屏首页(新开发)
|
||||
│ │ │ ├── index.tsx # 设备任务大屏
|
||||
│ │ │ └── components/
|
||||
│ │ │ ├── DeviceStats/ # 设备统计卡片
|
||||
│ │ │ ├── TaskStats/ # 任务统计卡片
|
||||
│ │ │ ├── DeviceStatusChart/ # 设备状态图表
|
||||
│ │ │ ├── TaskTrendChart/ # 任务趋势图表
|
||||
│ │ │ ├── RealtimeAlerts/ # 实时告警
|
||||
│ │ │ └── Quick3DEntry/ # 3D入口按钮
|
||||
│ │ └── map3d/ # 3D地图页(复用+精简)
|
||||
│ │ ├── index.tsx
|
||||
│ │ └── components/
|
||||
│ │ ├── CesiumContainer/ # Cesium容器
|
||||
│ │ ├── DeviceInfo/ # 设备信息面板
|
||||
│ │ ├── ControlPanel/ # 设备操控台
|
||||
│ │ ├── TaskPanel/ # 任务面板
|
||||
│ │ ├── TilesetPanel/ # 模型管理
|
||||
│ │ └── hooks/
|
||||
│ │ ├── useDroneSSE.ts
|
||||
│ │ ├── useDeviceSSE.ts
|
||||
│ │ └── useTilesetLoader.ts
|
||||
│ ├── services/
|
||||
│ │ ├── login.ts # 登录API
|
||||
│ │ ├── tenant.ts # 租户API
|
||||
│ │ ├── device.ts # 设备API
|
||||
│ │ ├── mission.ts # 任务API
|
||||
│ │ ├── threeDModel.ts # 3D模型API
|
||||
│ │ └── dashboard.ts # 大屏统计API(新增)
|
||||
│ ├── hooks/
|
||||
│ │ └── useSecurity.ts
|
||||
│ ├── utils/
|
||||
│ │ ├── rsaUtil.ts # RSA加密
|
||||
│ │ ├── tenantCache.ts # 租户缓存
|
||||
│ │ └── request.ts
|
||||
│ ├── app.tsx # 应用入口
|
||||
│ └── global.less # 全局样式(大屏定制)
|
||||
├── public/
|
||||
│ └── cesium/ # Cesium资源
|
||||
├── .env.local
|
||||
├── package.json
|
||||
└── tsconfig.json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 3. 功能模块设计
|
||||
|
||||
### 3.1 登录模块
|
||||
|
||||
**复用原项目功能,保持完整性:**
|
||||
|
||||
- 租户标识 (clientId) 输入
|
||||
- 用户名/密码登录
|
||||
- 图片验证码
|
||||
- RSA密码加密
|
||||
- Token存储与管理
|
||||
- 租户树缓存
|
||||
|
||||
**定制调整:**
|
||||
- 登录成功后跳转到 `/dashboard`(大屏首页)
|
||||
- 登录页样式适配大屏风格(深色科技感)
|
||||
|
||||
### 3.2 大屏首页模块 (Dashboard)
|
||||
|
||||
**页面布局:**
|
||||
|
||||
```
|
||||
┌──────────────────────────────────────────────────────────────────┐
|
||||
│ 顶部状态栏 │
|
||||
│ Logo 项目名称 租户选择器 当前时间 用户信息 退出 │
|
||||
├──────────────────────────────────────────────────────────────────┤
|
||||
│ │
|
||||
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────┐ │
|
||||
│ │ 设备总数 │ │ 在线设备 │ │ 任务总数 │ │ 执行中 │ │
|
||||
│ │ 128 │ │ 96 │ │ 256 │ │ 12 │ │
|
||||
│ │ ↑ 5.2% │ │ 75% │ │ ↑ 12.3% │ │ 进行中 │ │
|
||||
│ └─────────────┘ └─────────────┘ └─────────────┘ └─────────┘ │
|
||||
│ │
|
||||
│ ┌───────────────────────────┐ ┌───────────────────────────┐ │
|
||||
│ │ │ │ │ │
|
||||
│ │ 设备状态分布图 │ │ 任务趋势图 │ │
|
||||
│ │ (环形图) │ │ (折线图) │ │
|
||||
│ │ │ │ │ │
|
||||
│ └───────────────────────────┘ └───────────────────────────┘ │
|
||||
│ │
|
||||
│ ┌───────────────────────────┐ ┌───────────────────────────┐ │
|
||||
│ │ │ │ │ │
|
||||
│ │ 设备类型统计 │ │ 实时告警列表 │ │
|
||||
│ │ (柱状图) │ │ (滚动列表) │ │
|
||||
│ │ │ │ │ │
|
||||
│ └───────────────────────────┘ └───────────────────────────┘ │
|
||||
│ │
|
||||
│ ┌─────────────────────────────────┐ │
|
||||
│ │ │ │
|
||||
│ │ 进入 3D 地图监控中心 → │ │
|
||||
│ │ │ │
|
||||
│ └─────────────────────────────────┘ │
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
**统计指标:**
|
||||
|
||||
| 指标类别 | 具体指标 | 数据来源 |
|
||||
|---------|---------|---------|
|
||||
| **设备统计** | 设备总数 | device.count() |
|
||||
| | 在线设备数 | device.onlineCount() |
|
||||
| | 离线设备数 | device.offlineCount() |
|
||||
| | 故障设备数 | device.faultCount() |
|
||||
| | 设备在线率 | online / total |
|
||||
| | 设备类型分布 | 无人机/机库/其他 |
|
||||
| **任务统计** | 任务总数 | mission.count() |
|
||||
| | 待执行任务 | mission.pendingCount() |
|
||||
| | 执行中任务 | mission.runningCount() |
|
||||
| | 已完成任务 | mission.completedCount() |
|
||||
| | 失败任务数 | mission.failedCount() |
|
||||
| | 今日新增任务 | mission.todayCount() |
|
||||
| | 任务成功率 | completed / total |
|
||||
| **趋势图表** | 任务执行趋势(7天/30天) | mission.trend() |
|
||||
| | 设备在线趋势 | device.trend() |
|
||||
| **实时告警** | 设备离线告警 | SSE订阅 |
|
||||
| | 任务失败告警 | SSE订阅 |
|
||||
| | 低电量告警 | SSE订阅 |
|
||||
|
||||
**交互功能:**
|
||||
|
||||
1. **租户切换**: 顶部租户选择器,切换后刷新所有统计
|
||||
2. **时间筛选**: 支持"今日/本周/本月"快速切换
|
||||
3. **自动刷新**: 统计数据每30秒自动刷新
|
||||
4. **进入3D**: 点击底部按钮跳转到3D地图页面
|
||||
|
||||
### 3.3 3D地图监控模块
|
||||
|
||||
**复用原项目核心功能:**
|
||||
|
||||
- Cesium 3D地球渲染
|
||||
- 景区/设备标记显示
|
||||
- 3D Tiles模型加载
|
||||
- 无人机实时位置追踪
|
||||
- 飞行轨迹绘制
|
||||
- 设备操控台(起飞/返航/拍照等)
|
||||
- 任务面板(航线任务管理)
|
||||
- 视频流播放(WHEP)
|
||||
|
||||
**精简调整:**
|
||||
|
||||
- 移除订单/景区相关的右侧面板内容
|
||||
- 保留设备信息和操控功能
|
||||
- 简化模型管理(仅加载/卸载/显隐)
|
||||
|
||||
**页面布局:**
|
||||
|
||||
```
|
||||
┌──────────────────────────────────────────────────────────────────┐
|
||||
│ ← 返回大屏 租户选择 景区选择 2D/3D切换 全屏 退出 │
|
||||
├──────────────────────────────────────────────────────────────────┤
|
||||
│ │
|
||||
│ ┌────────┐ ┌──────────┐ │
|
||||
│ │ │ │ │ │
|
||||
│ │ 模型 │ │ 设备信息 │ │
|
||||
│ │ 面板 │ 3D 地球视图 │ 面板 │ │
|
||||
│ │ │ │ │ │
|
||||
│ │ │ │ │ │
|
||||
│ └────────┘ └──────────┘ │
|
||||
│ │
|
||||
│ ┌──────────────────────────────────────────────────────────┐ │
|
||||
│ │ 操控台 / 任务面板 │ │
|
||||
│ │ 无人机控制 云台控制 拍照录像 航线任务 视频流 │ │
|
||||
│ └──────────────────────────────────────────────────────────┘ │
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 4. API接口设计
|
||||
|
||||
### 4.1 新增大屏统计API
|
||||
|
||||
#### 设备统计
|
||||
|
||||
```typescript
|
||||
// GET /api-device/dashboard/device-stats
|
||||
// 请求参数
|
||||
{
|
||||
tenantId?: string;
|
||||
includeChildren?: boolean;
|
||||
}
|
||||
|
||||
// 响应
|
||||
{
|
||||
total: number; // 设备总数
|
||||
online: number; // 在线数
|
||||
offline: number; // 离线数
|
||||
fault: number; // 故障数
|
||||
onlineRate: number; // 在线率 (0-100)
|
||||
byType: [ // 按类型分布
|
||||
{ type: 'drone', name: '无人机', count: 50 },
|
||||
{ type: 'dock', name: '机库', count: 30 },
|
||||
{ type: 'camera', name: '摄像头', count: 48 }
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### 任务统计
|
||||
|
||||
```typescript
|
||||
// GET /api-device/dashboard/task-stats
|
||||
// 请求参数
|
||||
{
|
||||
tenantId?: string;
|
||||
includeChildren?: boolean;
|
||||
period?: 'day' | 'week' | 'month';
|
||||
}
|
||||
|
||||
// 响应
|
||||
{
|
||||
total: number; // 任务总数
|
||||
pending: number; // 待执行
|
||||
running: number; // 执行中
|
||||
completed: number; // 已完成
|
||||
failed: number; // 失败
|
||||
todayNew: number; // 今日新增
|
||||
successRate: number; // 成功率 (0-100)
|
||||
}
|
||||
```
|
||||
|
||||
#### 趋势数据
|
||||
|
||||
```typescript
|
||||
// GET /api-device/dashboard/trends
|
||||
// 请求参数
|
||||
{
|
||||
tenantId?: string;
|
||||
includeChildren?: boolean;
|
||||
days?: number; // 天数,默认7
|
||||
}
|
||||
|
||||
// 响应
|
||||
{
|
||||
taskTrend: [
|
||||
{ date: '2025-01-01', created: 10, completed: 8, failed: 1 },
|
||||
// ...
|
||||
],
|
||||
deviceTrend: [
|
||||
{ date: '2025-01-01', online: 90, total: 100 },
|
||||
// ...
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
#### 实时告警
|
||||
|
||||
```typescript
|
||||
// SSE /api-device/dashboard/alerts/subscribe
|
||||
// 事件类型
|
||||
{
|
||||
type: 'device_offline' | 'task_failed' | 'low_battery' | 'device_fault';
|
||||
deviceSn?: string;
|
||||
deviceName?: string;
|
||||
taskId?: number;
|
||||
taskName?: string;
|
||||
message: string;
|
||||
level: 'warning' | 'error' | 'critical';
|
||||
timestamp: string;
|
||||
}
|
||||
```
|
||||
|
||||
### 4.2 复用原有API
|
||||
|
||||
| API | 用途 |
|
||||
|-----|------|
|
||||
| `/api-uaa/oauth/login` | 登录认证 |
|
||||
| `/api-user/tenant/*` | 租户相关 |
|
||||
| `/api-device/device/*` | 设备管理 |
|
||||
| `/api-device/wayline/*` | 航线管理 |
|
||||
| `/api-device/mission/*` | 任务管理 |
|
||||
| `/api-device/3dmodel/*` | 3D模型 |
|
||||
| `/api-device/sse/drone-telemetry/*` | 无人机遥测 |
|
||||
|
||||
---
|
||||
|
||||
## 5. 路由设计
|
||||
|
||||
```typescript
|
||||
// config/routes.ts
|
||||
export default [
|
||||
// 登录页 - 无布局
|
||||
{
|
||||
path: '/user/login',
|
||||
component: '@/pages/user/Login',
|
||||
layout: false,
|
||||
},
|
||||
// 主应用 - 无菜单布局
|
||||
{
|
||||
path: '/',
|
||||
component: '@/layouts/BlankLayout',
|
||||
routes: [
|
||||
// 大屏首页
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/dashboard',
|
||||
},
|
||||
{
|
||||
path: '/dashboard',
|
||||
component: '@/pages/dashboard',
|
||||
name: '监控大屏',
|
||||
},
|
||||
// 3D地图
|
||||
{
|
||||
path: '/map3d',
|
||||
component: '@/pages/map3d',
|
||||
name: '3D地图',
|
||||
},
|
||||
// 404
|
||||
{
|
||||
path: '*',
|
||||
component: '@/pages/404',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 6. 布局设计
|
||||
|
||||
### 6.1 BlankLayout(无菜单布局)
|
||||
|
||||
```typescript
|
||||
// src/layouts/BlankLayout.tsx
|
||||
import React from 'react';
|
||||
import { Outlet, history } from 'umi';
|
||||
import { Layout, Space, Avatar, Dropdown, Select } from 'antd';
|
||||
import { LogoutOutlined, UserOutlined } from '@ant-design/icons';
|
||||
import { TenantSelector } from '@/components/ui';
|
||||
import styles from './BlankLayout.less';
|
||||
|
||||
const { Header, Content } = Layout;
|
||||
|
||||
const BlankLayout: React.FC = () => {
|
||||
const handleLogout = () => {
|
||||
sessionStorage.clear();
|
||||
history.push('/user/login');
|
||||
};
|
||||
|
||||
return (
|
||||
<Layout className={styles.layout}>
|
||||
<Header className={styles.header}>
|
||||
<div className={styles.logo}>
|
||||
<img src="/logo.png" alt="Logo" />
|
||||
<span>鹰眼管控平台</span>
|
||||
</div>
|
||||
<Space size="large">
|
||||
<TenantSelector />
|
||||
<span className={styles.time}>{currentTime}</span>
|
||||
<Dropdown menu={{ items: userMenu }}>
|
||||
<Avatar icon={<UserOutlined />} />
|
||||
</Dropdown>
|
||||
</Space>
|
||||
</Header>
|
||||
<Content className={styles.content}>
|
||||
<Outlet />
|
||||
</Content>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
```
|
||||
|
||||
### 6.2 大屏样式设计
|
||||
|
||||
**设计风格:深色科技感**
|
||||
|
||||
```less
|
||||
// global.less
|
||||
:root {
|
||||
--bg-primary: #0a0e27; // 深蓝黑背景
|
||||
--bg-secondary: #131a3d; // 卡片背景
|
||||
--bg-card: rgba(19, 26, 61, 0.8); // 半透明卡片
|
||||
--border-color: #1e3a5f; // 边框色
|
||||
--text-primary: #ffffff; // 主文字
|
||||
--text-secondary: #8b9dc3; // 次要文字
|
||||
--accent-blue: #00d4ff; // 科技蓝
|
||||
--accent-green: #00ff88; // 状态绿
|
||||
--accent-yellow: #ffb800; // 警告黄
|
||||
--accent-red: #ff4757; // 错误红
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 7. 组件复用清单
|
||||
|
||||
### 7.1 完全复用(直接拷贝)
|
||||
|
||||
| 组件/文件 | 路径 | 说明 |
|
||||
|----------|------|------|
|
||||
| SecureLoginForm | components/SecureLoginForm | 安全登录表单 |
|
||||
| TenantScopeFilter | components/TenantScopeFilter | 租户过滤器 |
|
||||
| TenantSelector | components/ui/TenantSelector | 租户选择器 |
|
||||
| GlassCard | components/ui/GlassCard | 玻璃态卡片 |
|
||||
| KPIStat | components/ui/KPIStat | KPI统计组件 |
|
||||
| rsaUtil.ts | utils/rsaUtil.ts | RSA加密 |
|
||||
| tenantCache.ts | utils/tenantCache.ts | 租户缓存 |
|
||||
| login.ts | services/login.ts | 登录API |
|
||||
| tenant.ts | services/tenant.ts | 租户API |
|
||||
| device.ts | services/device.ts | 设备API |
|
||||
| mission.ts | services/mission.ts | 任务API |
|
||||
| threeDModel.ts | services/threeDModel.ts | 3D模型API |
|
||||
|
||||
### 7.2 需修改复用
|
||||
|
||||
| 组件/文件 | 原路径 | 修改内容 |
|
||||
|----------|-------|---------|
|
||||
| Login/index.tsx | pages/user/Login | 修改登录后跳转路径 |
|
||||
| CesiumContainer.tsx | pages/device/mapDashboard/components | 移除订单/景区相关代码 |
|
||||
| useDroneSSE.ts | components/MapContainer/3d/hooks | 无需修改,直接复用 |
|
||||
| useTilesetLoader.ts | components/MapContainer/3d/hooks | 无需修改,直接复用 |
|
||||
|
||||
### 7.3 新开发
|
||||
|
||||
| 组件 | 说明 |
|
||||
|------|------|
|
||||
| BlankLayout.tsx | 无菜单大屏布局 |
|
||||
| pages/dashboard/index.tsx | 大屏首页主组件 |
|
||||
| DeviceStats.tsx | 设备统计卡片组 |
|
||||
| TaskStats.tsx | 任务统计卡片组 |
|
||||
| DeviceStatusChart.tsx | 设备状态环形图 |
|
||||
| TaskTrendChart.tsx | 任务趋势折线图 |
|
||||
| DeviceTypeChart.tsx | 设备类型柱状图 |
|
||||
| RealtimeAlerts.tsx | 实时告警列表 |
|
||||
| Quick3DEntry.tsx | 3D入口按钮 |
|
||||
| services/dashboard.ts | 大屏统计API |
|
||||
|
||||
---
|
||||
|
||||
## 8. 实施计划
|
||||
|
||||
### 阶段一:项目初始化
|
||||
1. 创建 yingyan 项目目录结构
|
||||
2. 配置 package.json(复制并精简依赖)
|
||||
3. 配置 UmiJS (config.ts, routes.ts, proxy.ts)
|
||||
4. 配置环境变量 (.env.local)
|
||||
5. 配置 TypeScript (tsconfig.json)
|
||||
|
||||
### 阶段二:基础功能
|
||||
1. 实现 BlankLayout 无菜单布局
|
||||
2. 复用并适配登录模块
|
||||
3. 复用租户相关组件和服务
|
||||
4. 实现路由守护和请求拦截
|
||||
|
||||
### 阶段三:大屏首页
|
||||
1. 开发 Dashboard 页面框架
|
||||
2. 实现设备统计组件
|
||||
3. 实现任务统计组件
|
||||
4. 实现图表组件(环形图、折线图、柱状图)
|
||||
5. 实现实时告警列表
|
||||
6. 实现3D入口组件
|
||||
|
||||
### 阶段四:3D地图
|
||||
1. 复用 CesiumContainer 组件
|
||||
2. 复用设备操控台组件
|
||||
3. 复用任务面板组件
|
||||
4. 精简不需要的功能模块
|
||||
5. 添加返回大屏导航
|
||||
|
||||
### 阶段五:联调优化
|
||||
1. 前后端接口联调
|
||||
2. SSE实时数据对接
|
||||
3. 性能优化
|
||||
4. 样式调优
|
||||
5. 测试验收
|
||||
|
||||
---
|
||||
|
||||
## 9. 注意事项
|
||||
|
||||
### 9.1 复用注意
|
||||
|
||||
1. **依赖版本一致**: 确保 Cesium、AntD 等核心依赖版本与原项目一致
|
||||
2. **API路径**: 保持API路径与原项目一致,便于共用后端
|
||||
3. **Token共享**: 考虑是否需要与原系统共享登录状态
|
||||
|
||||
### 9.2 安全考虑
|
||||
|
||||
1. 保持 RSA 加密登录机制
|
||||
2. Token 使用 sessionStorage 存储
|
||||
3. 路由守护必须生效
|
||||
4. 租户隔离机制继承
|
||||
|
||||
### 9.3 性能优化
|
||||
|
||||
1. Cesium 按需加载(动态 import)
|
||||
2. 大屏统计数据定时刷新而非实时
|
||||
3. 3D模型懒加载
|
||||
4. 图表组件性能优化
|
||||
|
||||
---
|
||||
|
||||
## 10. 附录
|
||||
|
||||
### 10.1 目录对照表
|
||||
|
||||
| 原项目路径 | 新项目路径 | 状态 |
|
||||
|-----------|-----------|------|
|
||||
| src/pages/user/Login | src/pages/user/Login | 复用 |
|
||||
| src/pages/Welcome.tsx | - | 不需要 |
|
||||
| src/pages/device/mapDashboard | src/pages/map3d | 精简复用 |
|
||||
| src/pages/orders/* | - | 不需要 |
|
||||
| src/pages/system/* | - | 不需要 |
|
||||
| src/components/SecureLoginForm | src/components/SecureLoginForm | 复用 |
|
||||
| src/components/TenantScopeFilter | src/components/TenantScopeFilter | 复用 |
|
||||
| src/layouts/BasicLayout.tsx | src/layouts/BlankLayout.tsx | 重写 |
|
||||
| - | src/pages/dashboard | 新开发 |
|
||||
|
||||
### 10.2 依赖精简
|
||||
|
||||
**保留依赖:**
|
||||
- react, react-dom
|
||||
- umi, @umijs/preset-react
|
||||
- antd, @ant-design/pro-components
|
||||
- cesium
|
||||
- @ant-design/plots
|
||||
- jsencrypt (RSA)
|
||||
- moment, lodash
|
||||
|
||||
**移除依赖:**
|
||||
- xlsx, file-saver, jszip (文件导出相关)
|
||||
- 其他与订单、景区业务相关的依赖
|
||||
|
||||
---
|
||||
|
||||
**文档版本**: v1.0
|
||||
**创建日期**: 2025-12-26
|
||||
**作者**: dzc
|
||||
@@ -0,0 +1,22 @@
|
||||
# 鹰眼管控平台 - 环境变量配置
|
||||
|
||||
# ========== 地图服务配置 ==========
|
||||
|
||||
# 高德地图API Key
|
||||
REACT_APP_AMAP_KEY=7df3685709e341daed76e877e417e5be
|
||||
|
||||
# Cesium Ion Token
|
||||
REACT_APP_CESIUM_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI5NjhjNDBlMS02OTBiLTQ5OWMtYjk3Mi04NjdiM2I4N2E4NDYiLCJpZCI6MzYxMzMzLCJpYXQiOjE3NjM0NDIxOTh9.PxIgncOzYVrDY17SWVJWD7U-9A1Wnomac8GEdcAYOeM
|
||||
|
||||
# ========== WebSocket服务配置 ==========
|
||||
|
||||
# 设备实时数据WebSocket地址
|
||||
REACT_APP_DEVICE_WS_URL=ws://119.45.169.13:8848/device
|
||||
|
||||
# ========== 应用配置 ==========
|
||||
|
||||
# 运行环境: dev | test | pre | prod
|
||||
# REACT_APP_ENV=dev
|
||||
|
||||
# 应用基础路径
|
||||
# APP_BASE=/yingyan
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* 鹰眼管控平台 - Umi配置
|
||||
*/
|
||||
import routes from './routes';
|
||||
import proxy from './proxy';
|
||||
|
||||
const { REACT_APP_ENV } = process.env as any;
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
const API_PREFIX = isDev ? '' : (process.env.API_PREFIX || '');
|
||||
const APP_BASE = isDev ? '/' : (process.env.APP_BASE || '/');
|
||||
|
||||
export default {
|
||||
hash: true,
|
||||
publicPath: isDev ? '/' : (APP_BASE.endsWith('/') ? APP_BASE : APP_BASE + '/'),
|
||||
// 禁用 umi 的 antd 插件,Ant Design 5.x 由 app.tsx 中的 ConfigProvider 管理
|
||||
antd: false,
|
||||
title: '鹰眼管控平台',
|
||||
metas: [
|
||||
{ charset: 'utf-8' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' },
|
||||
],
|
||||
// Ant Design 5.x 使用 ConfigProvider 配置主题,不再使用 Less 变量
|
||||
// 主题配置移至 app.tsx 中的 ConfigProvider
|
||||
locale: { antd: false, default: 'zh-CN', baseNavigator: true },
|
||||
dynamicImport: { loading: '@/components/PageLoading' },
|
||||
routes,
|
||||
history: { type: 'browser' },
|
||||
base: APP_BASE,
|
||||
proxy: (proxy as any)[REACT_APP_ENV || 'dev'],
|
||||
define: {
|
||||
'process.env.API_PREFIX': API_PREFIX,
|
||||
'process.env.APP_BASE': APP_BASE,
|
||||
},
|
||||
nodeModulesTransform: { type: 'none' },
|
||||
mfsu: false,
|
||||
fastRefresh: {},
|
||||
// Cesium 资源配置
|
||||
chainWebpack: (config: any) => {
|
||||
config.plugin('define').tap((definitions: any) => {
|
||||
Object.assign(definitions[0], {
|
||||
'process.env.CESIUM_BASE_URL': JSON.stringify(isDev ? '/' : (APP_BASE.endsWith('/') ? APP_BASE : APP_BASE + '/')),
|
||||
});
|
||||
return definitions;
|
||||
});
|
||||
return config;
|
||||
},
|
||||
} as any;
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* 鹰眼管控平台 - 开发代理配置
|
||||
*/
|
||||
const GATEWAY = process.env.GATEWAY_ORIGIN || 'http://localhost:9900';
|
||||
const SRS_SERVER = process.env.SRS_SERVER || 'http://220.205.16.27:8024';
|
||||
|
||||
export default {
|
||||
dev: {
|
||||
// API 请求代理
|
||||
'/api-': {
|
||||
target: GATEWAY,
|
||||
changeOrigin: true,
|
||||
},
|
||||
// 3D模型CDN代理
|
||||
'/goflymodel': {
|
||||
target: 'https://minicdn.goflytec.com',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
// SRS WebRTC WHEP 视频流代理
|
||||
'/rtc': {
|
||||
target: SRS_SERVER,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
// SRS 登录认证接口代理
|
||||
'/terraform': {
|
||||
target: SRS_SERVER,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
'/api-': {
|
||||
target: GATEWAY,
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
},
|
||||
'/goflymodel': {
|
||||
target: 'https://minicdn.goflytec.com',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
pre: {
|
||||
'/api-': {
|
||||
target: GATEWAY,
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
},
|
||||
'/goflymodel': {
|
||||
target: 'https://minicdn.goflytec.com',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* 鹰眼管控平台 - 路由配置
|
||||
* 支持多平台切换:通用监控大屏 / 海事智慧监控平台
|
||||
*/
|
||||
export default [
|
||||
// 登录页 - 无布局
|
||||
{
|
||||
path: '/user/login',
|
||||
component: '@/pages/user/Login',
|
||||
layout: false,
|
||||
},
|
||||
// 主应用 - 无菜单布局
|
||||
{
|
||||
path: '/',
|
||||
component: '@/layouts/BlankLayout',
|
||||
routes: [
|
||||
// 默认跳转海事大屏
|
||||
{
|
||||
path: '/',
|
||||
redirect: '/maritime',
|
||||
},
|
||||
// 通用监控大屏首页
|
||||
{
|
||||
path: '/dashboard',
|
||||
component: '@/pages/dashboard',
|
||||
name: '监控大屏',
|
||||
},
|
||||
// 海事智慧监控平台
|
||||
{
|
||||
path: '/maritime',
|
||||
component: '@/pages/maritime/dashboard',
|
||||
name: '海事监控',
|
||||
},
|
||||
// 3D地图
|
||||
{
|
||||
path: '/map3d',
|
||||
component: '@/pages/map3d',
|
||||
name: '3D地图',
|
||||
},
|
||||
// 404
|
||||
{
|
||||
path: '*',
|
||||
component: '@/pages/404',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "yingyan",
|
||||
"version": "1.0.0",
|
||||
"description": "鹰眼 - 3D可视化管控平台",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"copy:cesium": "node scripts/copy-cesium-assets.js",
|
||||
"prestart": "npm run copy:cesium",
|
||||
"prestart:dev": "npm run copy:cesium",
|
||||
"prestart:test": "npm run copy:cesium",
|
||||
"prestart:pre": "npm run copy:cesium",
|
||||
"prebuild": "npm run copy:cesium",
|
||||
"prebuild:test": "npm run copy:cesium",
|
||||
"prebuild:pre": "npm run copy:cesium",
|
||||
"prebuild:prod": "npm run copy:cesium",
|
||||
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=dev GATEWAY_ORIGIN=http://localhost:9900 umi dev",
|
||||
"start:dev": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=dev GATEWAY_ORIGIN=http://localhost:9900 umi dev",
|
||||
"start:test": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=test GATEWAY_ORIGIN=https://test.goflytec.com umi dev",
|
||||
"start:pre": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=pre GATEWAY_ORIGIN=http://119.45.169.13:9900 umi dev",
|
||||
"build": "cross-env NODE_OPTIONS=--openssl-legacy-provider umi build",
|
||||
"build:test": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=test API_PREFIX=http://119.45.169.13:9900 umi build",
|
||||
"build:pre": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=pre API_PREFIX=http://119.45.169.13:9900 umi build",
|
||||
"build:prod": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=prod umi build",
|
||||
"lint": "eslint --ext .ts,.tsx src",
|
||||
"tsc": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/plots": "^2.6.5",
|
||||
"@ant-design/pro-components": "^2.6.0",
|
||||
"@ant-design/pro-layout": "^7.22.7",
|
||||
"antd": "^5.12.0",
|
||||
"cesium": "^1.110.0",
|
||||
"dayjs": "^1.11.10",
|
||||
"jsencrypt": "^3.5.4",
|
||||
"lodash": "^4.17.21",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"umi": "^3.5.0",
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/lodash": "^4.14.202",
|
||||
"@types/node": "^20.10.0",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"@types/uuid": "^9.0.0",
|
||||
"@umijs/preset-react": "^2.1.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"typescript": "^4.9.0"
|
||||
},
|
||||
"overrides": {
|
||||
"path-to-regexp": "^3.3.0",
|
||||
"postcss": "^7.0.39",
|
||||
"@babel/runtime": "^7.26.10"
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 329 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 191 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 8.0 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 8.3 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
|
||||
<Title>NE2_HR_LC_SR_W_DR_recolored.tif</Title>
|
||||
<Abstract></Abstract>
|
||||
<SRS>EPSG:4326</SRS>
|
||||
<BoundingBox miny="-90.00000000000000" minx="-180.00000000000000" maxy="90.00000000000000" maxx="180.00000000000000"/>
|
||||
<Origin y="-90.00000000000000" x="-180.00000000000000"/>
|
||||
<TileFormat width="256" height="256" mime-type="image/jpg" extension="jpg"/>
|
||||
<TileSets profile="geodetic">
|
||||
<TileSet href="0" units-per-pixel="0.70312500000000" order="0"/>
|
||||
<TileSet href="1" units-per-pixel="0.35156250000000" order="1"/>
|
||||
<TileSet href="2" units-per-pixel="0.17578125000000" order="2"/>
|
||||
</TileSets>
|
||||
</TileMap>
|
||||
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 164 KiB |
|
After Width: | Height: | Size: 120 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.5 KiB |