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 }} - + {{ event.filter(item => item.id == row.eventType)[0]?.name || '/' }} @@ -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)" > diff --git a/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue b/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue index 553c88dc..c910818f 100644 --- a/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue +++ b/src/views/pqs/harmonicMonitoring/area/TransientEventList/index.vue @@ -131,7 +131,7 @@ const tableStore = new TableStore({ { field: 'scale', title: '电压等级', minWidth: '110' }, // { // field: 'advanceType', - // title: '暂降类型', + // title: '触发类型', // minWidth: '90', // formatter: (row: any) => { // return row.cellValue || '其他' @@ -147,7 +147,7 @@ const tableStore = new TableStore({ }, { field: 'eventType', - title: '暂态统计类型', + title: '触发类型', minWidth: '120', formatter: (row: any) => { return eventList.filter(item => item.id === row.cellValue)[0]?.name diff --git a/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue b/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue index 9402873a..192843ed 100644 --- a/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue +++ b/src/views/pqs/harmonicMonitoring/reportForms/word/index.vue @@ -109,9 +109,10 @@ const handleNodeClick = (data: any, node: any) => { } // 上传 const choose = (files: any) => { - const isJPG = files.raw.type === 'image/jpeg' + const isJPG = files.raw.type === 'image/jpg' + const isJPEG = files.raw.type === 'image/jpeg' const isPNG = files.raw.type === 'image/png' - if (!isJPG && !isPNG) { + if (!isJPG && !isPNG && !isJPEG) { ElMessage.warning('上传文件只能是 jpg/png 格式!') return false } diff --git a/src/views/pqs/panorama/components/details/temporaryState.vue b/src/views/pqs/panorama/components/details/temporaryState.vue index e278b323..a7f3ee9e 100644 --- a/src/views/pqs/panorama/components/details/temporaryState.vue +++ b/src/views/pqs/panorama/components/details/temporaryState.vue @@ -1,153 +1,153 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/pqs/qualityInspeection/panorama/components/details/temporaryState.vue b/src/views/pqs/qualityInspeection/panorama/components/details/temporaryState.vue index 5b08ac10..17c4f60c 100644 --- a/src/views/pqs/qualityInspeection/panorama/components/details/temporaryState.vue +++ b/src/views/pqs/qualityInspeection/panorama/components/details/temporaryState.vue @@ -53,7 +53,7 @@ - + diff --git a/src/views/pqs/voltageSags/Region/components/TypeStatistics.vue b/src/views/pqs/voltageSags/Region/components/TypeStatistics.vue index 3e815f7b..4c68b232 100644 --- a/src/views/pqs/voltageSags/Region/components/TypeStatistics.vue +++ b/src/views/pqs/voltageSags/Region/components/TypeStatistics.vue @@ -1,144 +1,144 @@ - - 注:暂降类型仅统计暂降原因为短路故障事件 - - - - - - - - - - - - - - - - - - - - - - - - - - - + + 注:触发类型仅统计暂降原因为短路故障事件 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/pqs/voltageSags/Region/transientList/index.vue b/src/views/pqs/voltageSags/Region/transientList/index.vue index c80ca001..3f26f78a 100644 --- a/src/views/pqs/voltageSags/Region/transientList/index.vue +++ b/src/views/pqs/voltageSags/Region/transientList/index.vue @@ -85,8 +85,8 @@ > -