From 97cf321b57e6066e56af8bafa873ac47f16c71c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E5=B7=9D?= <604737071@qq.com> Date: Tue, 9 Apr 2024 14:44:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2=E5=92=8C=E5=AE=89=E8=A3=85=E5=8C=85?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=80=BB=E8=BE=91=EF=BC=8C=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=EF=BC=8C=E5=88=A0=E9=99=A4=E5=A4=9A=E6=AC=A1=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=9A=84=E9=80=BB=E8=BE=91=EF=BC=8C=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=98=BE=E9=9A=90=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf-ui/src/router/index.js | 34 +- .../src/views/FDS/installationList/index.vue | 453 ++++++++++-------- sf-ui/src/views/FDS/publishList/index.vue | 412 ++++++++-------- .../views/FDS/whiteListManagement/index.vue | 411 ++++++++++------ 4 files changed, 758 insertions(+), 552 deletions(-) diff --git a/sf-ui/src/router/index.js b/sf-ui/src/router/index.js index 71907b6..9cb90ef 100644 --- a/sf-ui/src/router/index.js +++ b/sf-ui/src/router/index.js @@ -1,11 +1,10 @@ import Vue from 'vue' import Router from 'vue-router' - -Vue.use(Router) - /* Layout */ import Layout from '@/layout' +Vue.use(Router) + /** * Note: 路由配置项 * @@ -20,12 +19,12 @@ import Layout from '@/layout' * roles: ['admin', 'common'] // 访问路由的角色权限 * permissions: ['a:a:a', 'b:b:b'] // 访问路由的菜单权限 * meta : { - noCache: true // 如果设置为true,则不会被 缓存(默认 false) - title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字 - icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg - breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示 - activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。 - } + noCache: true // 如果设置为true,则不会被 缓存(默认 false) + title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字 + icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg + breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示 + activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。 + } */ // 公共路由 @@ -161,12 +160,25 @@ export const dynamicRoutes = [ meta: { title: '修改生成配置', activeMenu: '/tool/gen' } } ] + }, + { + path: '/publishLish/add', + component: Layout, + hidden: true, + children: [ + { + path: 'index/:jobId(\\d+)', + component: () => import('@/views/monitor/job/log'), + name: 'PublishAdd', + meta: { title: '新建发布', activeMenu: '/FDS/publishList' } + } + ] } ] // 防止连续点击多次路由报错 -let routerPush = Router.prototype.push; -let routerReplace = Router.prototype.replace; +let routerPush = Router.prototype.push +let routerReplace = Router.prototype.replace // push Router.prototype.push = function push(location) { return routerPush.call(this, location).catch(err => err) diff --git a/sf-ui/src/views/FDS/installationList/index.vue b/sf-ui/src/views/FDS/installationList/index.vue index 0d56ca2..1dd00be 100644 --- a/sf-ui/src/views/FDS/installationList/index.vue +++ b/sf-ui/src/views/FDS/installationList/index.vue @@ -1,21 +1,20 @@ diff --git a/sf-ui/src/views/FDS/whiteListManagement/index.vue b/sf-ui/src/views/FDS/whiteListManagement/index.vue index f2f4e0a..f2d2205 100644 --- a/sf-ui/src/views/FDS/whiteListManagement/index.vue +++ b/sf-ui/src/views/FDS/whiteListManagement/index.vue @@ -1,11 +1,11 @@