diff --git a/src/assets/img/region.png b/src/assets/img/region.png index 7344073f..6adcdd26 100644 Binary files a/src/assets/img/region.png and b/src/assets/img/region.png differ diff --git a/src/components/echarts/analytics.vue b/src/components/echarts/analytics.vue index 9447c6ca..6209b18f 100644 --- a/src/components/echarts/analytics.vue +++ b/src/components/echarts/analytics.vue @@ -1,441 +1,441 @@ - - + + diff --git a/src/layouts/admin/components/globalPopUp.vue b/src/layouts/admin/components/globalPopUp.vue index 355a2542..47d2bbae 100644 --- a/src/layouts/admin/components/globalPopUp.vue +++ b/src/layouts/admin/components/globalPopUp.vue @@ -25,7 +25,7 @@ {{ Math.floor(row.eventValue * 10000) / 100 }} - + @@ -79,7 +79,7 @@ const init = async () => { // 设置消息接收回调 mqttClient.onMessage((topic, message) => { const msg = JSON.parse(message.toString()) - // console.log('🚀 ~ init ~ msg:', msg) + console.log('🚀 ~ init ~ msg:', msg) if (msg.deptList.includes(adminInfo.$state.deptId)) { drawer.value = true isLoading.value = true diff --git a/src/router/index.ts b/src/router/index.ts index 885c43cf..ffb8ed05 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,49 +1,49 @@ -import { createRouter, createWebHashHistory } from 'vue-router' -import staticRoutes from '@/router/static' -import { useAdminInfo } from '@/stores/adminInfo' -import NProgress from 'nprogress' -import { loading } from '@/utils/loading' -import { ElMessage } from 'element-plus' - -const router = createRouter({ - history: createWebHashHistory(), - routes: staticRoutes -}) - -router.beforeEach((to, from, next) => { - NProgress.configure({ showSpinner: false }) - NProgress.start() - if (!window.existLoading) { - loading.show() - window.existLoading = true - } - if (to.path == '/login' || to.path == '/404') { - // 登录或者注册才可以往下进行 - next() - } else if (to.path == '/admin/center/homePage') { - window.open(window.location.origin + '/homePage/#/') - } else { - // 获取 token - const adminInfo = useAdminInfo() - const token = adminInfo.getToken() - // token 不存在 - if (token === null || token === '') { - ElMessage.error('您还没有登录,请先登录') - next('/login') - } else { - next() - } - } - - // next() -}) - -// 路由加载后 -router.afterEach(() => { - if (window.existLoading) { - loading.hide() - } - NProgress.done() -}) - -export default router +import { createRouter, createWebHashHistory } from 'vue-router' +import staticRoutes from '@/router/static' +import { useAdminInfo } from '@/stores/adminInfo' +import NProgress from 'nprogress' +import { loading } from '@/utils/loading' +import { ElMessage } from 'element-plus' + +const router = createRouter({ + history: createWebHashHistory(), + routes: staticRoutes +}) + +router.beforeEach((to, from, next) => { + NProgress.configure({ showSpinner: false }) + NProgress.start() + if (!window.existLoading) { + loading.show() + window.existLoading = true + } + if (to.path == '/login' || to.path == '/404') { + // 登录或者注册才可以往下进行 + next() + } else if (to.path == '/admin/center/homePage') { + window.open(window.location.origin + '/homePage/#/') + } else { + // 获取 token + const adminInfo = useAdminInfo() + const token = adminInfo.getToken() + // token 不存在 + if (token === null || token === '') { + // ElMessage.error('您还没有登录,请先登录') + next('/login') + } else { + next() + } + } + + // next() +}) + +// 路由加载后 +router.afterEach(() => { + if (window.existLoading) { + loading.hide() + } + NProgress.done() +}) + +export default router diff --git a/src/views/pqs/business/terminal/FrontManagement/index.vue b/src/views/pqs/business/terminal/FrontManagement/index.vue index e9a54771..2a5087e9 100644 --- a/src/views/pqs/business/terminal/FrontManagement/index.vue +++ b/src/views/pqs/business/terminal/FrontManagement/index.vue @@ -83,7 +83,7 @@ v-else class="box-item" title="确定重启吗?" - placement="bottom" + placement="left" @confirm="restart(data)" >