From 31d0779baa38356e763d7688dc1c62ee84aa6415 Mon Sep 17 00:00:00 2001 From: TiaStars Date: Wed, 13 Dec 2023 11:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E7=BD=91=E6=A0=BC=EF=BC=8C?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=9C=A8=E7=BA=BF=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bigScreenApi/index.js | 31 +++ src/assets/styles/leaflet.scss | 6 +- src/permission.js | 3 +- src/router/index.js | 10 +- .../bigScreen/components/mapLeftContent.vue | 32 ++- .../bigScreen/components/mapRightContent.vue | 28 ++- src/views/bigScreen/map/index.vue | 231 ++++++++++++------ src/views/components/mapLeftNumber/index.vue | 14 +- src/views/components/mapRight/index.vue | 29 ++- src/views/components/personagetrack/index.vue | 60 +++-- 10 files changed, 317 insertions(+), 127 deletions(-) diff --git a/src/api/bigScreenApi/index.js b/src/api/bigScreenApi/index.js index 4e0bf79..9051340 100644 --- a/src/api/bigScreenApi/index.js +++ b/src/api/bigScreenApi/index.js @@ -1,4 +1,26 @@ import request from "@/utils/request" +/** + * + * 人员 + */ + +// 终端设备坐标采集、在线状态接口 +export function getDeviceList(params) { + return request({ + url: "/jn/dockingEq/getDeviceList", + method:'get', + params + }) +} + +// 获取历史轨迹 +export function getLocInfoByImei(data) { + return request({ + url: "/jn/dockingEq/getLocInfoByImei", + method:'post', + data + }) +} // 重点区域 export function regionalsettings(params){ @@ -18,6 +40,15 @@ export function roadsetting(params){ }) } +// 根据等级查询所有区域网格 +export function levelQywg(query) { + return request({ + url: '/jn/bgridsetting/getListBylevel', + method: 'get', + params:query + }) +} + // 围栏 export function fence(params){ return request({ diff --git a/src/assets/styles/leaflet.scss b/src/assets/styles/leaflet.scss index 049da04..ae85a07 100644 --- a/src/assets/styles/leaflet.scss +++ b/src/assets/styles/leaflet.scss @@ -27,6 +27,7 @@ .title { font-size: 14px; font-family: Source Han Sans CN-Bold, Source Han Sans CN; + margin-bottom: 0; font-weight: 700; color: #E9F4FF; line-height: 19px; @@ -120,6 +121,7 @@ .title { font-size: 14px; font-family: Source Han Sans CN-Bold, Source Han Sans CN; + margin-bottom: 0; font-weight: 700; color: #E9F4FF; line-height: 19px; @@ -210,6 +212,7 @@ .title { font-size: 14px; font-family: Source Han Sans CN-Bold, Source Han Sans CN; + margin-bottom: 0; font-weight: 700; color: #E9F4FF; line-height: 19px; @@ -297,6 +300,7 @@ .title { font-size: 14px; font-family: Source Han Sans CN-Bold, Source Han Sans CN; + margin-bottom: 0; font-weight: 700; color: #E9F4FF; line-height: 19px; @@ -412,7 +416,7 @@ } .land-name5 { - font-size: 16px; + // font-size: 16px; // font-weight: bold; text-align: center; color: #62E1FA; diff --git a/src/permission.js b/src/permission.js index f22f266..e18ff85 100644 --- a/src/permission.js +++ b/src/permission.js @@ -19,6 +19,7 @@ router.beforeEach((to, from, next) => { next({ path: '/' }) NProgress.done() } else { + console.log('store.getters.roles',store.getters.roles) if (store.getters.roles.length === 0) { isRelogin.show = true // 判断当前用户是否已拉取完user_info信息 @@ -32,7 +33,7 @@ router.beforeEach((to, from, next) => { }).catch(err => { store.dispatch('LogOut').then(() => { Message.error(err) - next({ path: '/' }) + next({ path: '/login' }) }) }) } else { diff --git a/src/router/index.js b/src/router/index.js index bfa8f3b..648b06d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -61,10 +61,10 @@ export const constantRoutes = [ component: () => import('@/views/error/401'), hidden: true }, - // { - // path: '', - // component: Layout, - // redirect: 'index', + { + path: '', + component: Layout, + redirect: '/bigScreen', // children: [ // { // path: 'index', @@ -73,7 +73,7 @@ export const constantRoutes = [ // meta: { title: '首页', icon: 'dashboard', affix: true } // } // ] - // }, + }, { path:'/bigScreen', component: () => import('@/views/bigScreen'), diff --git a/src/views/bigScreen/components/mapLeftContent.vue b/src/views/bigScreen/components/mapLeftContent.vue index 60c7031..bcc0d73 100644 --- a/src/views/bigScreen/components/mapLeftContent.vue +++ b/src/views/bigScreen/components/mapLeftContent.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-08-15 09:44:13 * @LastEditors: JC9527 - * @LastEditTime: 2023-08-18 20:42:47 + * @LastEditTime: 2023-12-13 11:10:36 -->