diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index cd56f03de..67eeac420 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -1451,7 +1451,7 @@ li{ border-radius: 5px !important; } .line-chart-block-modal .el-dialog { - margin-top: 5% !important; + //margin-top: 5% !important; } .table-chart-dialog .el-dialog { height: 80%; diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue index e5ed9fc82..8c10fdf8b 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointQueryTab.vue @@ -4,6 +4,11 @@ margin-top: 16px; } + @@ -37,6 +39,8 @@ metricStore:[], metricOptions:[], cascaderValue:'', + errorMsg:null, + appendMsg:null, } }, created() { @@ -118,6 +122,13 @@ }, expressionChange:function(){ this.$emit('change') + }, + setError:function(errMsg){ + console.log(errMsg) + this.errorMsg=errMsg; + }, + setMsg:function(){ + this.appendMsg } }, watch:{ @@ -141,6 +152,14 @@ .promqlInput .query-row{ width: 100%; } + .inputBox .append-msg{ + font-size: 12px; + line-height: 1; + padding-top: 4px; + } + .inputBox .error{ + color: #F56C6C; + } .query-row .query-input{ display: flex; justify-content: flex-start; diff --git a/nezha-fronted/src/components/page/project/project.vue b/nezha-fronted/src/components/page/project/project.vue index 8054e0acf..c8aae31e1 100644 --- a/nezha-fronted/src/components/page/project/project.vue +++ b/nezha-fronted/src/components/page/project/project.vue @@ -46,7 +46,7 @@