diff --git a/src/views/abnormalAlarm/RouteView.vue b/src/views/abnormalAlarm/RouteView.vue index 82e7991..184e8f4 100644 --- a/src/views/abnormalAlarm/RouteView.vue +++ b/src/views/abnormalAlarm/RouteView.vue @@ -105,22 +105,26 @@ export default { console.log("路由信息",this.menus); // this.initDefaultKeys(this.menus[0]) // 将从缓存中取出openKeys - const openKeys = window.sessionStorage.getItem('openKeys') + // const openKeys = window.sessionStorage.getItem('openKeys') + // console.log(openKeys); const selectedKeys = window.sessionStorage.getItem('currMenu') if (selectedKeys) { this.defaultSelectedKeys.push(selectedKeys) } else { this.initDefaultKeys(this.menus[0]) - } - if (openKeys) { - // 存在即赋值 - this.defaultOpenKeys = JSON.parse(openKeys) - } - if (openKeys) { - // 存在即赋值 - this.openKeys = JSON.parse(openKeys) } + this.openKeys =this.defaultOpenKeys= this.menus.map(item => { + return item.path + }) + // if (openKeys) { + // // 存在即赋值 + // this.defaultOpenKeys = JSON.parse(openKeys) + // } + // if (openKeys) { + // // 存在即赋值 + // this.openKeys = JSON.parse(openKeys) + // } }, methods: { // 点击菜单,路由跳转,注意的是当点击MenuItem才会触发此函数 @@ -135,6 +139,7 @@ export default { }) }, initDefaultKeys(data) { + console.log("datadefaultOpenKeys",data); this.defaultOpenKeys.push(data.path) data.children.some((f) => { if (f.children) { diff --git a/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue b/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue index 90429a3..7d8beeb 100644 --- a/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue +++ b/src/views/abnormalAlarm/analysisMonitor/avgNuclide/index.vue @@ -10,7 +10,7 @@ Cacl date @@ -46,8 +46,8 @@ v-model="visible" @cancel="onCancel" > - - + + + />days + />%