fix:修改 project module endpoint 的路由
This commit is contained in:
@@ -100,7 +100,7 @@ export default {
|
|||||||
permissionCode: 'asset_view'
|
permissionCode: 'asset_view'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
route: '/monitor/project',
|
route: '/project',
|
||||||
title: this.$t('overall.monitor'),
|
title: this.$t('overall.monitor'),
|
||||||
icon: 'nz-icon nz-icon-menu-project',
|
icon: 'nz-icon nz-icon-menu-project',
|
||||||
tip: this.$t('guide.monitorTip'),
|
tip: this.$t('guide.monitorTip'),
|
||||||
@@ -238,7 +238,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/monitor/project',
|
path: '/project',
|
||||||
query: {
|
query: {
|
||||||
t: +new Date(),
|
t: +new Date(),
|
||||||
add: 'project'
|
add: 'project'
|
||||||
@@ -252,7 +252,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/monitor/module',
|
path: '/module',
|
||||||
query: {
|
query: {
|
||||||
t: +new Date(),
|
t: +new Date(),
|
||||||
add: 'module'
|
add: 'module'
|
||||||
@@ -266,7 +266,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/monitor/endpoint',
|
path: '/endpoint',
|
||||||
query: {
|
query: {
|
||||||
t: +new Date(),
|
t: +new Date(),
|
||||||
add: 'endpoint'
|
add: 'endpoint'
|
||||||
@@ -280,7 +280,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/monitor/endpoint',
|
path: '/endpoint',
|
||||||
query: {
|
query: {
|
||||||
t: +new Date(),
|
t: +new Date(),
|
||||||
importEndpoint: 'importEndpoint'
|
importEndpoint: 'importEndpoint'
|
||||||
|
|||||||
@@ -1475,7 +1475,7 @@ export default {
|
|||||||
if (this.$route.path === '/assetLabel') {
|
if (this.$route.path === '/assetLabel') {
|
||||||
this.getGroupData()
|
this.getGroupData()
|
||||||
}
|
}
|
||||||
if (this.$route.path === '/monitor/module') {
|
if (this.$route.path === '/module') {
|
||||||
this.getProjectData()
|
this.getProjectData()
|
||||||
}
|
}
|
||||||
if (this.$route.path === '/alertRule') {
|
if (this.$route.path === '/alertRule') {
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export default {
|
|||||||
},
|
},
|
||||||
jumpModule (row) {
|
jumpModule (row) {
|
||||||
localStorage.setItem('moduleProjectId', JSON.stringify([row.id, row.name]))
|
localStorage.setItem('moduleProjectId', JSON.stringify([row.id, row.name]))
|
||||||
this.$router.push({ path: '/monitor/module' })
|
this.$router.push({ path: '/module' })
|
||||||
},
|
},
|
||||||
jumpAlertMessage (row) {
|
jumpAlertMessage (row) {
|
||||||
localStorage.setItem('alertMessageProjectId', row.id)
|
localStorage.setItem('alertMessageProjectId', row.id)
|
||||||
@@ -168,7 +168,7 @@ export default {
|
|||||||
},
|
},
|
||||||
jumpEndpoint (row) {
|
jumpEndpoint (row) {
|
||||||
localStorage.setItem('endpointProjectId', row.id)
|
localStorage.setItem('endpointProjectId', row.id)
|
||||||
this.$router.push({ path: '/monitor/endpoint' })
|
this.$router.push({ path: '/endpoint' })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -618,7 +618,7 @@ export default {
|
|||||||
this.$get(this.url, params).then(response => {
|
this.$get(this.url, params).then(response => {
|
||||||
this.tools.loading = false
|
this.tools.loading = false
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
if (response.statistics && this.$route.path === '/monitor/endpoint') {
|
if (response.statistics && this.$route.path === '/endpoint') {
|
||||||
this.setSearchData(response.statistics)
|
this.setSearchData(response.statistics)
|
||||||
}
|
}
|
||||||
for (let i = 0; i < response.data.list.length; i++) {
|
for (let i = 0; i < response.data.list.length; i++) {
|
||||||
|
|||||||
@@ -34,16 +34,16 @@ export default new Router({
|
|||||||
component: resolve => require(['../components/page/dashboard/overview/overview.vue'], resolve)
|
component: resolve => require(['../components/page/dashboard/overview/overview.vue'], resolve)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/monitor/project',
|
path: '/project',
|
||||||
component: resolve => require(['../components/page/monitor/project/index.vue'], resolve)
|
component: resolve => require(['../components/page/monitor/project/index.vue'], resolve)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/monitor/module',
|
path: '/module',
|
||||||
name: '/monitor/module',
|
name: '/module',
|
||||||
component: resolve => require(['../components/page/monitor/module/moduleList.vue'], resolve)
|
component: resolve => require(['../components/page/monitor/module/moduleList.vue'], resolve)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/monitor/endpoint',
|
path: '/endpoint',
|
||||||
component: resolve => require(['../components/page/monitor/endpoint/endpointList.vue'], resolve)
|
component: resolve => require(['../components/page/monitor/endpoint/endpointList.vue'], resolve)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user