fix: 调整detection菜单和一些文字描述
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="index===2">
|
||||
<span v-if="route===wholeScreenRouterMapping.dns">{{ $t(item.value) }}</span>
|
||||
<span v-if="route===wholeScreenRouterMapping.dns || !route.startsWith('/panel')">{{ $t(item.value) }}</span>
|
||||
<span v-else class="route-menu" @click="jump(route,item.value,'',3)">{{ $t(item.value) }}</span>
|
||||
</template>
|
||||
<!-- index=0和index=1的点击跳转由breadcrumb里的数据控制 -->
|
||||
@@ -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) {
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!--theme-->
|
||||
<el-form-item :label="$t('config.user.theme')" prop="i18n">
|
||||
<!-- <el-form-item :label="$t('config.user.theme')" prop="i18n">
|
||||
<el-select id="account-input-roleIds"
|
||||
v-model="editObject.theme"
|
||||
class="right-box__select"
|
||||
@@ -83,7 +83,7 @@
|
||||
<el-option :label="theme.label" :value="theme.value"></el-option>
|
||||
</template>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<!--enable-->
|
||||
<el-form-item :label="$t('config.user.enable')">
|
||||
<el-switch
|
||||
|
||||
@@ -93,19 +93,15 @@ const routes = [
|
||||
component: () => 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')
|
||||
}
|
||||
]
|
||||
|
||||
@@ -791,7 +791,7 @@ export default {
|
||||
},
|
||||
jumpNewDetetion () {
|
||||
this.$router.push({
|
||||
path: '/detectionsNew',
|
||||
path: '/detectionPolicy',
|
||||
query: {
|
||||
t: +new Date()
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user