rockychen1221 / Globalregion
Licence: apache-2.0
全球国家/地区下拉级联,包含中英文国际化,国家/省份(直辖市)/城市(区)/县
Stars: ✭ 28
Projects that are alternatives of or similar to Globalregion
Postgrest Starter Kit
Starter Kit and tooling for authoring REST API backends with PostgREST
Stars: ✭ 657 (+2246.43%)
Mutual labels: plpgsql
Scidb4geo
A SciDB Plugin for Managing Spatial and Temporal Reference Information of Arrays
Stars: ✭ 8 (-71.43%)
Mutual labels: plpgsql
Postgis
PostGIS spatial database extension to PostgreSQL [mirror]
Stars: ✭ 925 (+3203.57%)
Mutual labels: plpgsql
Node Sqlite3
Asynchronous, non-blocking SQLite3 bindings for Node.js
Stars: ✭ 5,083 (+18053.57%)
Mutual labels: plpgsql
Sqlgenerate
Generates SQL when given an AST from the Codeschool/sqlite-parser
Stars: ✭ 14 (-50%)
Mutual labels: plpgsql
Chinook Database
Sample database for SQL Server, Oracle, MySQL, PostgreSQL, SQLite, DB2
Stars: ✭ 786 (+2707.14%)
Mutual labels: plpgsql
Mallcloud Platform
mallcloud商城基于SpringBoot2.x、SpringCloud和SpringCloudAlibaba并采用前后端分离vue的企业级微服务敏捷开发系统架构。并引入组件化的思想实现高内聚低耦合,项目代码简洁注释丰富上手容易,适合学习和企业中使用。真正实现了基于RBAC、jwt和oauth2的无状态统一权限认证的解决方案,面向互联网设计同时适合B端和C端用户,支持CI/CD多环境部署,并提供应用管理方便第三方系统接入;同时还集合各种微服务治理功能和监控功能。模块包括:企业级的认证系统、开发平台、应用监控、慢sql监控、统一日志、单点登录、Redis分布式高速缓存、配置中心、分布式任务调度、接口文档、代码生成等等
Stars: ✭ 27 (-3.57%)
Mutual labels: plpgsql
Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+22507.14%)
Mutual labels: plpgsql
Geocode
Batch geocoding addressess, map to census block with PostGIS Tiger Geocoder
Stars: ✭ 23 (-17.86%)
Mutual labels: plpgsql
Basketball Data Scraper
A scraping library that gets you basketball data for the NBA and WNBA
Stars: ✭ 13 (-53.57%)
Mutual labels: plpgsql
GlobalRegion 简介
世界各国是指世界上各个国家,截至2019年,世界上共有233个国家和地区,其中国家有195个,地区有38个。
数据较全,体验较好,支持快速接入,根据上级查找附属直接下级,支持检索以及默认值初始化赋值(本example默认:中国/湖南/湘潭/湘乡市)
支持中英文国际化,通过pinyin4j-example获取地区数据国际化
级联格式依次为:国家(地区)/省份(直辖市)/市(区)/县,效果如图
本实例依赖以下插件或库,可根据实际使用进行调整修改
- jQuery
- BootStrap 3
- BootStrap Select
考虑到同一个页面会有多个地区应用场景,比如故乡和工作地,故Ajax请求发送设置为同步,可根据需要调整
如何运行
Step 1. 在您的数据库中执行sql
目录中的脚本,d_area
为地区层级,sys_lang
为国际化,更换应用数据库连接信息- Step 1. 使用
mvn spring-boot:run
,启动后浏览器访问http://localhost:8080
如何接入使用
- Step 1. 自定义地区下拉元素页面布局,根据实际页面比例预留长度,声明下拉元素ID(需在Step 3 初始化传入,如使用默认ID:fromArea,即可不传)
- Step 2. 在您自己的页面引入
area.js
- Step 3. 调用
Area.initFromArea();
,初始化即可接入使用
Update...
- 加入h2内存数据库,去除mysql依赖,
- 添加单元测试
- 优化部分代码
- 同步Gitee
如果对您有帮助节省了您的时间,请Star支持,数据欢迎补充维护
Next
- [ ] 目前脚本查询到的一级国家/地区共有240个,哪多冒出来7个。。。需要进行核对,和外交部一致
- [ ] 封装成Vue组件
- [ ] 将地区数据做成地图图表,支持下钻
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].