diff --git a/.env.development b/.env.development index cfc9d5d..3d783ef 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 海纳云智慧照明管理平台 +VITE_APP_TITLE = 智聪物联网管理平台 # 开发环境配置 VITE_APP_ENV = 'development' diff --git a/.env.production b/.env.production index 05680f5..dc53e82 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 海纳云智慧照明管理平台 +VITE_APP_TITLE = 智聪物联网管理平台 # 生产环境配置 VITE_APP_ENV = 'production' diff --git a/.env.staging b/.env.staging index 47130b6..56a053d 100644 --- a/.env.staging +++ b/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VITE_APP_TITLE = 海纳云智慧照明管理平台 +VITE_APP_TITLE = 智聪物联网管理平台 # 生产环境配置 VITE_APP_ENV = 'staging' diff --git a/src/api/td/tdEngine.js b/src/api/td/tdEngine.js new file mode 100644 index 0000000..7cf7393 --- /dev/null +++ b/src/api/td/tdEngine.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +// 获取最新设备传感器数据 +export function getLastData() { + return request({ + url: '/tdengine/td/getLastData', + method: 'get' + }) +} diff --git a/src/config/map.js b/src/config/map.js index 56c5241..bf97acc 100644 --- a/src/config/map.js +++ b/src/config/map.js @@ -1,11 +1,11 @@ import { getAssetsFile } from '@/utils' export const mapConfig = { - zoom: 13, + zoom: 10, minZoom: 4, maxZoom: 18, pitch: 0, - center: ['120.43325056066504', '36.183868828044005'], + center: ['121.00', '35.80'], logoVisible: false } diff --git a/src/permission.js b/src/permission.js index 89bda58..02fe4ac 100644 --- a/src/permission.js +++ b/src/permission.js @@ -11,7 +11,7 @@ import usePermissionStore from '@/store/modules/permission' NProgress.configure({ showSpinner: false }) -const whiteList = ['/login', '/register', '/redirectTo'] +const whiteList = ['/login', '/register', '/redirectTo', '/bdsLocation'] router.beforeEach((to, from, next) => { NProgress.start() diff --git a/src/router/index.js b/src/router/index.js index 8611c99..21558ff 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -101,6 +101,12 @@ export const constantRoutes = [ meta: { title: '个人中心', icon: 'user' } } ] + }, + { + path: '/bdsLocation', + component: () => import('@/views/mapTest/index.vue'), + hidden: true, + meta: { title: '北斗上位机实时显示位置' } } ] diff --git a/src/views/mapTest/index.vue b/src/views/mapTest/index.vue new file mode 100644 index 0000000..706fefe --- /dev/null +++ b/src/views/mapTest/index.vue @@ -0,0 +1,759 @@ + + + + + 地图信息 + 总点位数: {{ points.length }} + 当前缩放级别: {{ currentZoom }} + + 图例 + + + 设备点位 + + + + + + + + + + + + + + + + + + + + + 编号: + {{ selectedPoint.id }} + + + 上报时间: + {{ selectedPoint.reportTime }} + + + 经度: + {{ selectedPoint.longitude }} + + + 纬度: + {{ selectedPoint.latitude }} + + + + + + + + +
总点位数: {{ points.length }}
当前缩放级别: {{ currentZoom }}