global-search-latitude
v1.0.14
Published
## 需求
Downloads
8
Readme
global-search-lantitude
需求
http://ztpm.goldwind.com.cn:9898/pro/task-view-6464.html
任务描述
1.确定风场经纬度信息是否可用 2.通过经纬度计算距离 3.先用列表的形式实现
1、业务场景: 查询一个风电场,需要知道这个风电场附近有哪些电场,出差或者商务活动时候可以统一规划。 南方台风过境,需要查询台风当前位置周围有哪些电场,可以提前通知预警。
2、需求内容: 可以参考百度地图 第一种查询-- 步骤1:输入风电场名称(模糊查询) 步骤2:选择要查询的风电场,输入距离,比如100公里 通过一个列表显示出方圆100公里内所有的风电场 第二种查询-- 步骤1:提供输入框,用户可以填入经纬度 步骤2:输入距离,比如100公里 步骤3:列表显示所选经纬度点周围100公里内的风电场信息
3、 目前所有风场的经纬度数据都有,根据经纬度和距离来设计算法查询(算法后期需要提供给监控部,他们借鉴用来做相关的数据分析) 这个页面可以只做成简单的查询页面,列表显示查询出来的风电场信息即可 也可以想办法附加上地图做出好的动态展示效果,可以评估一下 列表显示的内容暂定为:风场名称、机组数量、容量、质保状态、直线距离
路由列表
地图搜索: /search/latitude
运行与发布
运行
npm install
npm run serve
如使用mock数据请修改相关绑定
发布
1 npm version patch(minor/major) 2 检查npm registry npm set registry http://10.12.7.208:4873 后 npm publish 3 svn commit
更新历史
1.0.13 增加英文国际化处理