diff --git a/src/views/abnormalAlarm/RouteView.vue b/src/views/abnormalAlarm/RouteView.vue
index 5e58073..7a9c46b 100644
--- a/src/views/abnormalAlarm/RouteView.vue
+++ b/src/views/abnormalAlarm/RouteView.vue
@@ -28,9 +28,9 @@
-
+
-
+
@@ -72,11 +72,11 @@ const SubMenu = {
export default {
name: 'menuTree',
components: { 'sub-menu': SubMenu },
- computed: {
- keepAlive() {
- return this.$route.meta.keepAlive
- },
- },
+ // computed: {
+ // keepAlive() {
+ // return this.$route.meta.keepAlive
+ // },
+ // },
data() {
const collapsed = false
return {
diff --git a/src/views/abnormalAlarm/serverMonitor/instances/details.vue b/src/views/abnormalAlarm/serverMonitor/instances/details.vue
index 53ac151..92fecdb 100644
--- a/src/views/abnormalAlarm/serverMonitor/instances/details.vue
+++ b/src/views/abnormalAlarm/serverMonitor/instances/details.vue
@@ -1592,4 +1592,12 @@ export default {
width: 100%;
text-align: center;
}
+/deep/.ant-spin-nested-loading {
+ width: 100%;
+ height: 100%;
+}
+/deep/.ant-spin-container {
+ width: 100%;
+ height: 100%;
+}
\ No newline at end of file
diff --git a/src/views/statistics/RouteView.vue b/src/views/statistics/RouteView.vue
index f999aa6..d5fcaa6 100644
--- a/src/views/statistics/RouteView.vue
+++ b/src/views/statistics/RouteView.vue
@@ -1,8 +1,8 @@
-
+
-
+
-
+
-
+
@@ -74,11 +74,11 @@ const SubMenu = {
export default {
name: 'menuTree',
components: { 'sub-menu': SubMenu },
- computed: {
- keepAlive() {
- return this.$route.meta.keepAlive
- },
- },
+ // computed: {
+ // keepAlive() {
+ // return this.$route.meta.keepAlive
+ // },
+ // },
data() {
const collapsed = false
return {
@@ -104,30 +104,29 @@ export default {
this.menus = f.children
}
})
- console.log("路由信息",this.menus);
// this.initDefaultKeys(this.menus[0])
// 将从缓存中取出openKeys
const openKeys = window.sessionStorage.getItem('openKeys')
const selectedKeys = window.sessionStorage.getItem('currMenu_web')
if (selectedKeys) {
- this.currSlecteKey=[]
+ this.currSlecteKey = []
// this.defaultSelectedKeys.push(selectedKeys)
this.currSlecteKey.push(selectedKeys)
} else {
- this.currSlecteKey=[]
+ this.currSlecteKey = []
this.initDefaultKeys(this.menus[0])
- this.menus.forEach(item => {
- if (item.name!=="istatistics-data") {
- // this.defaultOpenKeys.push(item.path)
- this.openKeys.push(item.path)
- }
+ this.menus.forEach((item) => {
+ if (item.name !== 'istatistics-data') {
+ // this.defaultOpenKeys.push(item.path)
+ this.openKeys.push(item.path)
+ }
})
window.sessionStorage.setItem('openKeys', JSON.stringify(this.openKeys))
}
// if (openKeys) {
// // 存在即赋值
// this.defaultOpenKeys = JSON.parse(openKeys)
- // }
+ // }
if (openKeys) {
// 存在即赋值
this.openKeys = JSON.parse(openKeys)
@@ -151,25 +150,25 @@ export default {
// this.defaultOpenKeys.push(data.path)
this.openKeys.push(data.path)
// if (data.children) {
- if (data.name!=="istatistics-StateOfHealth-alerts") {
- data.children.some((f) => {
- if (f.name!=="istatistics-met") {
- if (f.children) {
- // 第一个节点展开
- // this.defaultOpenKeys.push(f.path)
- this.openKeys.push(f.path)
- this.initDefaultKeys(f.children[0])
- } else {
- // 选中
- // this.defaultSelectedKeys.push(f.path)
- this.currSlecteKey.push(f.path)
- return true
- }
+ if (data.name !== 'istatistics-StateOfHealth-alerts') {
+ data.children.some((f) => {
+ if (f.name !== 'istatistics-met') {
+ if (f.children) {
+ // 第一个节点展开
+ // this.defaultOpenKeys.push(f.path)
+ this.openKeys.push(f.path)
+ this.initDefaultKeys(f.children[0])
+ } else {
+ // 选中
+ // this.defaultSelectedKeys.push(f.path)
+ this.currSlecteKey.push(f.path)
+ return true
}
- })
- }
+ }
+ })
+ }
// } else {
- // this.defaultOpenKeys.push(data.path)
+ // this.defaultOpenKeys.push(data.path)
// }
},
onOpenChange(openKeys) {
@@ -193,7 +192,7 @@ export default {
background: none;
}
}
-::v-deep .ant-card-body{
+::v-deep .ant-card-body {
height: 100%;
}
.ant-menu {