diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index f7619998..86a5a6ed 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -391,7 +391,9 @@ export default { this.dnsRcodeMapData = await getDnsMapData('dnsRcode') } } - this.initDropdownList() + if (this.$route.path.indexOf('panel') > -1) { + await this.initDropdownList() + } }, setup () { const { query } = useRoute() @@ -435,6 +437,23 @@ export default { type: entityDetailMenu.type }) return true + } else if (this.route === '/entityGraph') { + const entityMenu = menus.find(m => m.route === '/entityExplorer') + const entityGraphMenu = menus.find(m => m.route === '/entityGraph') + console.info(entityGraphMenu) + breadcrumb.push({ + code: entityMenu.code, + value: entityMenu.i18n ? this.$t(entityMenu.i18n) : entityMenu.name, + route: entityMenu.route, + type: entityMenu.type + }) + breadcrumb.push({ + code: entityGraphMenu.code, + value: entityGraphMenu.i18n ? this.$t(entityGraphMenu.i18n) : entityGraphMenu.name, + route: entityGraphMenu.route, + type: entityGraphMenu.type + }) + return true } const menu = menus.find(m => m.route === this.route) if (menu) { diff --git a/src/router/index.js b/src/router/index.js index 9339213e..9a170143 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -29,7 +29,7 @@ const routes = [ }, { path: '/entityGraph', - component: () => import('@/views/entityExplorer/EntityGraph2') + component: () => import('@/views/entityExplorer/EntityGraph') }, { path: '/detection', diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 1a579730..4a6b5607 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -12,82 +12,67 @@ :size="400" :with-header="false" destroy-on-close> - - - - - - - + + - + @closeBlock="onCloseBlock" + > + - diff --git a/src/views/entityExplorer/EntityGraph2.vue b/src/views/entityExplorer/EntityGraph2.vue deleted file mode 100644 index 923783b5..00000000 --- a/src/views/entityExplorer/EntityGraph2.vue +++ /dev/null @@ -1,1085 +0,0 @@ - - - diff --git a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue index 8d23e2b3..e39e8b99 100644 --- a/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue +++ b/src/views/entityExplorer/entityGraph/GraphEntityDetail.vue @@ -124,14 +124,6 @@ export default { } }, computed: { - appRisk () { - return function (level) { - const m = riskLevelMapping.find(mapping => { - return mapping.value == level - }) - return (m && m.name) || level - } - }, iconClass () { let className switch (_.get(this.node, 'myData.entityType', '')) { @@ -230,6 +222,12 @@ export default { this.showError = true this.errorMsg = this.errorMsgHandler(e) }, + appRisk (level) { + const m = riskLevelMapping.find(mapping => { + return mapping.value == level + }) + return (m && m.name) || level + }, location (detailData) { let location = '' if (detailData) { @@ -292,12 +290,12 @@ export default { { name: 'categoryName', label: this.$t('entities.category'), - value: _.get(n.myData, 'basicInfo.category.name', '-') + value: _.get(n.myData, 'basicInfo.category.categoryName', '-') }, { name: 'categoryGroup', label: this.$t('entities.group'), - value: _.get(n.myData, 'basicInfo.category.group', '-') + value: _.get(n.myData, 'basicInfo.category.categoryGroup', '-') }, { name: 'reputationLevel', @@ -365,32 +363,32 @@ export default { { name: 'appCategory', label: this.$t('entities.category'), - value: _.get(n.myData, 'detail.category.appCategory', '-') + value: _.get(n.myData, 'basicInfo.category.appCategory', '-') }, { name: 'appSubcategory', label: this.$t('entities.subcategory'), - value: _.get(n.myData, 'detail.category.appSubcategory', '-') + value: _.get(n.myData, 'basicInfo.category.appSubcategory', '-') }, { name: 'appRisk', label: this.$t('entities.riskLevel'), - value: _.get(n.myData, 'detail.category.appRisk', '-') + value: this.appRisk(_.get(n.myData, 'basicInfo.category.appRisk', '-')) }, { name: 'appTechnology', label: this.$t('overall.technology'), - value: _.get(n.myData, 'detail.category.appTechnology', '-') + value: _.get(n.myData, 'basicInfo.category.appTechnology', '-') }, { name: 'appLongname', label: this.$t('overall.appFullName'), - value: _.get(n.myData, 'detail.category.appLongname', '-') + value: _.get(n.myData, 'basicInfo.category.appLongname', '-') }, { name: 'appDescription', label: this.$t('config.dataSource.description'), - value: _.get(n.myData, 'detail.category.appDescription', '-') + value: _.get(n.myData, 'basicInfo.category.appDescription', '-') } ] diff --git a/src/views/entityExplorer/entityGraphDetail/AppList.vue b/src/views/entityExplorer/entityGraphDetail/AppList.vue deleted file mode 100644 index c74ecd1e..00000000 --- a/src/views/entityExplorer/entityGraphDetail/AppList.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - diff --git a/src/views/entityExplorer/entityGraphDetail/DomainList.vue b/src/views/entityExplorer/entityGraphDetail/DomainList.vue deleted file mode 100644 index b28e0333..00000000 --- a/src/views/entityExplorer/entityGraphDetail/DomainList.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - diff --git a/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue b/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue deleted file mode 100644 index 091f1d4f..00000000 --- a/src/views/entityExplorer/entityGraphDetail/GraphDetail.vue +++ /dev/null @@ -1,493 +0,0 @@ - - - diff --git a/src/views/entityExplorer/entityGraphDetail/IpList.vue b/src/views/entityExplorer/entityGraphDetail/IpList.vue deleted file mode 100644 index 4811b6bd..00000000 --- a/src/views/entityExplorer/entityGraphDetail/IpList.vue +++ /dev/null @@ -1,101 +0,0 @@ - - -