From ef997937ea49ac8d2297418ae500903f720e680e Mon Sep 17 00:00:00 2001 From: bestlee Date: Fri, 13 Nov 2026 09:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/abnormal.js | 10 ++ src/router/index.js | 6 +- src/views/abnormal/index.vue | 293 +++++++++++++++++++++++++++++++++++ 3 files changed, 306 insertions(+), 3 deletions(-) create mode 100644 src/api/abnormal.js create mode 100644 src/views/abnormal/index.vue diff --git a/src/api/abnormal.js b/src/api/abnormal.js new file mode 100644 index 0000000..a6dfefa --- /dev/null +++ b/src/api/abnormal.js @@ -0,0 +1,10 @@ +import axios from 'axios'; + +// 获取推送消息信息 +export function pushInfoApi(params) { + return axios.get('/api/chain-remove-applies', {params}); +} +// 推送消息判断确认 +export function confirmInfoApi(id,params) { + return axios.post('/api/chain-remove-applies/'+id+'/audit',params); +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index b6b0647..a9dadad 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -59,8 +59,8 @@ const asyncRoutes = [ // 异常工况模块:异常工况推送 { path: '/abnormal', - name: 'abnormalInbox', - component: () => import('../views/abnormal/PushInbox.vue'), + name: 'abnormal', + component: () => import('../views/abnormal/index.vue'), meta: { title: '异常工况推送' }, }, ] @@ -68,7 +68,7 @@ const asyncRoutes = [ // 标志位:是否已添加动态路由 let isRoutesAdded = false router.beforeEach((to, from, next) => { - const token = localStorage.getItem('token') || '123' + const token = localStorage.getItem('token') || '' if (token) { // 关键:有 token 但业务路由还没挂载 => 动态添加(仅一次) if (!isRoutesAdded) { diff --git a/src/views/abnormal/index.vue b/src/views/abnormal/index.vue new file mode 100644 index 0000000..0dd3f01 --- /dev/null +++ b/src/views/abnormal/index.vue @@ -0,0 +1,293 @@ + + + + +