fix: 调整detection菜单和一些文字描述

This commit is contained in:
chenjinsong
2023-10-23 18:04:29 +08:00
parent 5b7dd6da90
commit d0aa64fb9c
6 changed files with 15 additions and 35 deletions

View File

@@ -791,7 +791,7 @@ export default {
},
jumpNewDetetion () {
this.$router.push({
path: '/detectionsNew',
path: '/detectionPolicy',
query: {
t: +new Date()
}

View File

@@ -3,7 +3,7 @@
<loading :loading="myLoading"></loading>
<div class="detection-form-header">
{{ $t('detection.createEventPolicies') }}
{{ ruleId ? $t('detection.editEventPolicies') : $t('detection.createEventPolicies') }}
</div>
<!--第一步General Settings-->
@@ -88,9 +88,9 @@
<div class="form-setting__btn1">
<div class="btn1">
<el-button @click="createPolicy('')">{{ $t('overall.create') }}</el-button>
<el-button @click="createPolicy('')">{{ $t('overall.save') }}</el-button>
</div>
<el-button @click="createPolicy('enabled')">{{ $t('overall.create') }} & {{ $t('detection.create.enablePolicy') }}</el-button>
<el-button @click="createPolicy('enabled')">{{ $t('overall.save') }} & {{ $t('detection.create.enablePolicy') }}</el-button>
</div>
</div>
</el-collapse-item>
@@ -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()

View File

@@ -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,