From 7d64868ce0c362b9b9e4908fae880f99718b2fd5 Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Fri, 17 Nov 2023 13:54:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:1=20CN-1470=20=E8=B0=83=E6=95=B4=E6=96=B0?= =?UTF-8?q?=E5=A2=9E/=E4=BF=AE=E6=94=B9role=E9=A1=B5=E9=9D=A2=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=A0=91=E7=9A=84=E9=80=BB=E8=BE=91;2.=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E6=A8=A1=E5=9D=97=E4=B8=8B=E7=9A=84=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=A5=BC=E5=9B=BElegend=E5=AE=BD=E5=BA=A6?= =?UTF-8?q?=E9=9A=8F=E5=88=86=E8=BE=A8=E7=8E=87=E8=80=8C=E6=94=B9=E5=8F=98?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/setting/knowledgeBase.scss | 12 + src/components/layout/Header.vue | 16 +- src/components/rightBox/settings/RoleBox.vue | 39 +- .../setting/knowledgeBaseTableForCard.vue | 117 ++-- src/views/charts/charts/tools.js | 4 +- .../networkOverview/NetworkOverviewApps.vue | 8 +- .../NetworkOverviewDdosDetection.vue | 4 +- src/views/detections/Index.vue | 46 +- .../detections/options/detectionOptions.js | 4 +- src/views/setting/KnowledgeBase.vue | 526 +++++++++--------- 10 files changed, 426 insertions(+), 350 deletions(-) diff --git a/src/assets/css/components/views/setting/knowledgeBase.scss b/src/assets/css/components/views/setting/knowledgeBase.scss index 7495e195..f3af03a8 100644 --- a/src/assets/css/components/views/setting/knowledgeBase.scss +++ b/src/assets/css/components/views/setting/knowledgeBase.scss @@ -1798,6 +1798,12 @@ margin-right:5px; } } + .top-tool-btn--update:disabled { + cursor: not-allowed; + opacity: 0.66; + i { + } + } .top-tool-btn--update:hover { background-color: #57B8D9 !important; border-color: #2E88A6 !important; @@ -1846,6 +1852,12 @@ margin-right:5px; } } + .top-tool-btn--update:disabled { + cursor: not-allowed; + opacity: 0.66; + i { + } + } .top-tool-btn--update:hover { background-color: #57B8D9 !important; border-color: #2E88A6 !important; diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index 321d9527..c02e281f 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -333,14 +333,14 @@ export default { breadcrumb () { const breadcrumb = [] this.generateBreadcrumb(breadcrumb, this.$store.getters.menuList) - if(breadcrumb){ + if (breadcrumb) { // panel菜单是否可以点击跳转:一级菜单不可点击,二级菜单可以点击 - if(breadcrumb[0] && breadcrumb[1] && breadcrumb[1].route - && breadcrumb[1].route.indexOf('/panel/') === 0){ + if (breadcrumb[0] && breadcrumb[1] && breadcrumb[1].route && + breadcrumb[1].route.indexOf('/panel/') === 0) { breadcrumb[1].clickable = true - }else {// 除panel外的菜单是否可以点击跳转:除了新增、编辑,其它均可点击 + } else { // 除panel外的菜单是否可以点击跳转:除了新增、编辑,其它均可点击 breadcrumb.forEach(item => { - if(item.value !== 'Create' && item.value !== 'Edit'){ + if (item.value !== 'Create' && item.value !== 'Edit') { item.clickable = true } }) @@ -676,11 +676,11 @@ export default { } } }, - //仅处理除panel外的相关路径的导航 + // 仅处理除panel外的相关路径的导航 async jumpOther (route, index) { route = route.replace('redirect:', '') this.showMenu = false - if (route === this.route && index > 0) {//当前只有一级菜单时,点击不进行刷新,重新跳转 + if (route === this.route && index > 0) { // 当前只有一级菜单时,点击不进行刷新,重新跳转 this.refresh() return } @@ -693,7 +693,7 @@ export default { }) } }, - //仅处理panel相关路径的导航 + // 仅处理panel相关路径的导航 async jump (route, columnName, columnValue, opeType) { route = route.replace('redirect:', '') if (route === '/panel/linkMonitor' && opeType === 3) { diff --git a/src/components/rightBox/settings/RoleBox.vue b/src/components/rightBox/settings/RoleBox.vue index 00950e88..1279cc0e 100644 --- a/src/components/rightBox/settings/RoleBox.vue +++ b/src/components/rightBox/settings/RoleBox.vue @@ -23,7 +23,8 @@ --> - + +