diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 3af0e2484..595ed0829 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -676,6 +676,10 @@ li{ right: calc(100% - 440px) !important; /*transform: translateX(100%);*/ } +.config .top-tool-main-right-to-left { + right: calc(100% - 492px) !important; + /*transform: translateX(100%);*/ +} .top-tool-main-right-to-left { right: calc(100% - 390px) !important; /*transform: translateX(100%);*/ diff --git a/nezha-fronted/src/components/common/js/tools.js b/nezha-fronted/src/components/common/js/tools.js index 0b376462f..b6b288bc6 100644 --- a/nezha-fronted/src/components/common/js/tools.js +++ b/nezha-fronted/src/components/common/js/tools.js @@ -532,6 +532,7 @@ export const tableSet = { case 'alertName': case 'threshold': case 'idc': + case 'alertNum': return'custom'; case 'state': if( from === 'operationlog'){ diff --git a/nezha-fronted/src/components/common/project/overViewTopology.vue b/nezha-fronted/src/components/common/project/overViewTopology.vue index 42b3f32ac..4118c568d 100644 --- a/nezha-fronted/src/components/common/project/overViewTopology.vue +++ b/nezha-fronted/src/components/common/project/overViewTopology.vue @@ -441,6 +441,9 @@ }, modelTopUpdate(){//model上的图标 实时更新 this.modelTop=[]; + if(!this.network){ + return + } this.nodesArray.forEach((item)=>{ let position=this.network.canvasToDOM({x:item.x,y:item.y}); let obj={ @@ -693,6 +696,14 @@ setTimeout(()=>{ let this_=this; this.init('modal'); + this.network.on("resize", function (params) {//检测resize + setTimeout(()=>{ + this_.modelTopUpdate(); + this_.selNodeArrUpdate(); + this_.networkPopShow=false; + }); + return false + }); }) }, beforeDestroy(){ diff --git a/nezha-fronted/src/components/page/alert/config.vue b/nezha-fronted/src/components/page/alert/config.vue index 98484c671..d2015ec6a 100644 --- a/nezha-fronted/src/components/page/alert/config.vue +++ b/nezha-fronted/src/components/page/alert/config.vue @@ -33,13 +33,13 @@ +