diff --git a/nezha-fronted/src/assets/css/common/rightBoxCommon.scss b/nezha-fronted/src/assets/css/common/rightBoxCommon.scss index 3edcf557b..cfae6e94f 100644 --- a/nezha-fronted/src/assets/css/common/rightBoxCommon.scss +++ b/nezha-fronted/src/assets/css/common/rightBoxCommon.scss @@ -74,16 +74,9 @@ height: 32px; } .input-box { - .logs-label.el-textarea { - .el-textarea__inner { - width: 509px; - height: 32px; - padding: 5px 70px 4px 10px; - } - } .el-textarea { .el-textarea__inner { - width: 517px; + width: 509px; height: 32px; padding: 5px 70px 4px 10px; } diff --git a/nezha-fronted/src/components/page/alert/alertRule.vue b/nezha-fronted/src/components/page/alert/alertRule.vue index 983522962..ef548be6a 100644 --- a/nezha-fronted/src/components/page/alert/alertRule.vue +++ b/nezha-fronted/src/components/page/alert/alertRule.vue @@ -97,6 +97,7 @@ export default { alertName: '', linkObject: { id: '', name: '' }, expr: '', + type: 1, unit: 2, operator: '>', last: 60, diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index a2d8333a1..2440dc6b6 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -57,7 +57,7 @@ padding: 10px 10px 5px 0; } .legend-title{ - width: 100px; + width: 108px; margin-right: 10px; text-align: left; padding-left:10px; diff --git a/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue b/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue index 27bde7923..ad3ee7f3d 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/promqlInput.vue @@ -51,7 +51,7 @@ + :class="[plugins.indexOf('metric-selector') > -1 ?'metric-selector-title':'metric-null-title']"> {{type === 'log' ? $t("overall.logLabels") : $t("overall.metric") }}  + :autosize="{ minRows: 1, maxRows: 6}" class="not-fixed-height no-resize" ref="elInput">
{{errorMsg}}
{{appendMsg}}
@@ -697,7 +697,7 @@ export default { /*'padding': plugins.indexOf('metric-selector') > -1 ?'0 0 0 10px':'0 20px 0 0 ',*/ /*'text-align':'left', 'color': '#666',*/ /*'font-weight':plugins.indexOf('metric-selector') > -1 ?'400':'bold',*/ - width:100px; + width:108px; margin-right: 10px; height: 32px; text-align: left;