diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index 028d4265..bcaf7268 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -99,7 +99,7 @@ @@ -455,22 +455,6 @@ export default { type: entityGraphMenu.type }) return true - } else if (this.route === '/detectionsNew') { - const detectionMenu = menus.find(m => m.route === '/detection') - const policyMenu = menus.find(m => m.route === '/detectionsNew') - breadcrumb.push({ - code: detectionMenu.code, - value: detectionMenu.i18n ? this.$t(detectionMenu.i18n) : detectionMenu.name, - route: detectionMenu.route, - type: detectionMenu.type - }) - breadcrumb.push({ - code: policyMenu.code, - value: policyMenu.i18n ? this.$t(policyMenu.i18n) : policyMenu.name, - route: policyMenu.route, - type: policyMenu.type - }) - return true } const menu = menus.find(m => m.route === this.route) if (menu) { diff --git a/src/components/rightBox/settings/UserBox.vue b/src/components/rightBox/settings/UserBox.vue index 51461cac..6df0d8b7 100644 --- a/src/components/rightBox/settings/UserBox.vue +++ b/src/components/rightBox/settings/UserBox.vue @@ -70,7 +70,7 @@ - + import('@/views/administration/I18n') }, { - path: '/detectionsNew', + path: '/detectionPolicy', component: () => import('@/views/detectionsNew/Index') }, { - path: '/detection/policies', - component: () => import('@/views/detectionsNew/Index') - }, - { - path: '/detection/policies/create', + path: '/detectionPolicy/create', component: () => import('@/views/detectionsNew/DetectionForm') }, { - path: '/detection/policies/edit', + path: '/detectionPolicy/edit', component: () => import('@/views/detectionsNew/DetectionForm') } ] diff --git a/src/views/detections/Index.vue b/src/views/detections/Index.vue index 54abd608..3931a241 100644 --- a/src/views/detections/Index.vue +++ b/src/views/detections/Index.vue @@ -791,7 +791,7 @@ export default { }, jumpNewDetetion () { this.$router.push({ - path: '/detectionsNew', + path: '/detectionPolicy', query: { t: +new Date() } diff --git a/src/views/detectionsNew/DetectionForm.vue b/src/views/detectionsNew/DetectionForm.vue index 320a7e37..05a47183 100644 --- a/src/views/detectionsNew/DetectionForm.vue +++ b/src/views/detectionsNew/DetectionForm.vue @@ -3,7 +3,7 @@
- {{ $t('detection.createEventPolicies') }} + {{ ruleId ? $t('detection.editEventPolicies') : $t('detection.createEventPolicies') }}
@@ -88,9 +88,9 @@
- {{ $t('overall.create') }} + {{ $t('overall.save') }}
- {{ $t('overall.create') }} & {{ $t('detection.create.enablePolicy') }} + {{ $t('overall.save') }} & {{ $t('detection.create.enablePolicy') }}
@@ -212,7 +212,7 @@ export default { console.error(e) this.$message.error(this.errorMsgHandler(e)) this.$router.push({ - path: '/detection/policies', + path: '/detectionPolicy', query: { pageNo: this.pageNoForTable ? Number(this.pageNoForTable) : 1, t: +new Date() @@ -276,7 +276,7 @@ export default { }) this.$router.push({ - path: '/detectionsNew', + path: '/detectionPolicy', query: { t: +new Date() } @@ -301,7 +301,7 @@ export default { }) this.$router.push({ - path: '/detectionsNew', + path: '/detectionPolicy', query: { pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, t: +new Date() diff --git a/src/views/detectionsNew/Index.vue b/src/views/detectionsNew/Index.vue index 4febd749..8d93f8eb 100644 --- a/src/views/detectionsNew/Index.vue +++ b/src/views/detectionsNew/Index.vue @@ -140,7 +140,7 @@ export default { }, onCreate () { this.$router.push({ - path: '/detection/policies/create', + path: '/detectionPolicy/create', query: { t: +new Date() } @@ -149,7 +149,7 @@ export default { onEdit () { const pageNo = this.$router.currentRoute.value.query.pageNo this.$router.push({ - path: '/detection/policies/edit', + path: '/detectionPolicy/edit', query: { t: +new Date(), pageNoForTable: pageNo || 1,