diff --git a/nezha-fronted/src/assets/css/common.scss b/nezha-fronted/src/assets/css/common.scss
index 7764073bf..77aa08277 100644
--- a/nezha-fronted/src/assets/css/common.scss
+++ b/nezha-fronted/src/assets/css/common.scss
@@ -96,25 +96,25 @@
background-color: $--color-primary !important;
}
.colorffa416 {
- color: #ffa416;
+ color: #ffa416 !important;
}
.colorfa901c {
- color: $--color-primary;
+ color: $--color-primary !important;
}
.colorec7f66 {
- color: #ec7f66;
+ color: #ec7f66 !important;
}
.color535b64 {
- color: #535b64;
+ color: #535b64 !important;
}
.color999999 {
- color: #999999;
+ color: #999999 !important;
}
.color23bf9a {
- color: #23bf9a;
+ color: #23bf9a !important;
}
.color969dea{
- color: #969dea;
+ color: #969dea !important;
}
.bgFFECD9{
background: $--color-primary !important;
diff --git a/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss b/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss
index 41df9bbf0..499837744 100644
--- a/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss
+++ b/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss
@@ -64,6 +64,12 @@
height: 100%;
padding-bottom: 0;
}
+ .message-info-dashboard {
+ .nz-chart{
+ height: calc(100% - 55px);
+ padding-bottom: 0;
+ }
+ }
.alert-message-info-tab {
height: 61.8%;
flex: 1;
@@ -590,6 +596,11 @@
}
}
}
+#viewGraphDialog {
+ .el-dialog.is-fullscreen {
+ overflow: hidden;
+ }
+}
diff --git a/nezha-fronted/src/assets/css/components/common/rightBox/alertRuleBox.scss b/nezha-fronted/src/assets/css/components/common/rightBox/alertRuleBox.scss
index 7a09d8fc9..5054982d3 100644
--- a/nezha-fronted/src/assets/css/components/common/rightBox/alertRuleBox.scss
+++ b/nezha-fronted/src/assets/css/components/common/rightBox/alertRuleBox.scss
@@ -202,4 +202,7 @@
display: inline-block;
}
}
+ .el-form-item__error {
+ padding-top: 0;
+ }
}
diff --git a/nezha-fronted/src/components/chart/chartDataFormat.js b/nezha-fronted/src/components/chart/chartDataFormat.js
index 59a9c9aa4..34343948b 100644
--- a/nezha-fronted/src/components/chart/chartDataFormat.js
+++ b/nezha-fronted/src/components/chart/chartDataFormat.js
@@ -10,7 +10,7 @@ function none (value, index) {
if (!numberWithEConvent(scientificNotationValue)) {
return scientificNotationValue
}
- if (isNaN(value) || value=== null) {
+ if (isNaN(value) || value === null) {
return value
}
return keepDoubleNumber(value)
@@ -55,12 +55,19 @@ function localFormat (value, index) {
return result
}
function bits (value, index, type = 1, dot = 0) {
+ const num = value / 8
+ if (value < 8) {
+ return value + 'b'
+ }
+ if (num < 1024) {
+ return num + 'B'
+ }
if (type == 1) {
- return asciiCompute(value, 1024, ['b', 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], 0)
+ return asciiCompute(num, 1024, ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], 0)
} else if (type == -1) {
- return asciiCompute(value, 1024, ['b', 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], dot)
+ return asciiCompute(num, 1024, ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], dot)
} else {
- return asciiCompute(value, 1024, ['b', 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], 2)
+ return asciiCompute(num, 1024, ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], 2)
}
}
function bytes (value, index, type = 1, dot) {
diff --git a/nezha-fronted/src/components/chart/chartHeader.vue b/nezha-fronted/src/components/chart/chartHeader.vue
index 7d50c6b2f..41ad9b13f 100644
--- a/nezha-fronted/src/components/chart/chartHeader.vue
+++ b/nezha-fronted/src/components/chart/chartHeader.vue
@@ -47,7 +47,7 @@
({{chartData ? chartData.length : 0}} charts)
-
{{$t('overall.edit')}}
- {{$t('config.system.terminal.terminal')}}
{{$t('overall.duplicate')}}
{{$t('overall.delete')}}
+ {{$t('config.system.terminal.terminal')}}
{{$t('overall.silenceAlert')}}
{{$t('overall.topology')}}
{{$t('overall.diagnosis')}}
diff --git a/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue b/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue
index fc6437ef4..00a7e4d8f 100644
--- a/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/dashboardTmplTable.vue
@@ -65,8 +65,8 @@
{{$t('overall.edit')}}
- {{$t('overall.delete')}}
{{$t('overall.duplicate')}}
+ {{$t('overall.delete')}}
{{$t('overall.syncChart')}}
diff --git a/nezha-fronted/src/components/common/table/settings/endpointTable.vue b/nezha-fronted/src/components/common/table/settings/endpointTable.vue
index eae28a065..da2564abc 100644
--- a/nezha-fronted/src/components/common/table/settings/endpointTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/endpointTable.vue
@@ -182,8 +182,8 @@
{{$t('overall.edit')}}
- {{$t('overall.delete')}}
{{$t('overall.duplicate')}}
+ {{$t('overall.delete')}}
{{$t('overall.silenceAlert')}}
{{$t('overall.topology')}}
{{$t('overall.diagnosis')}}
diff --git a/nezha-fronted/src/components/common/table/settings/moduleTable.vue b/nezha-fronted/src/components/common/table/settings/moduleTable.vue
index 1c1ef5bc6..fd30af3e8 100644
--- a/nezha-fronted/src/components/common/table/settings/moduleTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/moduleTable.vue
@@ -102,8 +102,8 @@
{{$t('overall.edit')}}
- {{$t('overall.delete')}}
{{$t('overall.duplicate')}}
+ {{$t('overall.delete')}}
{{$t('overall.syncChart')}}
{{$t('overall.silenceAlert')}}
{{$t('overall.topology')}}
diff --git a/nezha-fronted/src/components/common/table/settings/projectTable.vue b/nezha-fronted/src/components/common/table/settings/projectTable.vue
index 4398665df..cda1be998 100644
--- a/nezha-fronted/src/components/common/table/settings/projectTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/projectTable.vue
@@ -89,8 +89,8 @@
{{$t('overall.edit')}}
- {{$t('overall.delete')}}
{{$t('overall.duplicate')}}
+ {{$t('overall.delete')}}
{{$t('overall.silenceAlert')}}
{{$t('overall.topology')}}
diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue
index 2b1d83695..3b793749f 100644
--- a/nezha-fronted/src/components/page/alert/alertMessage.vue
+++ b/nezha-fronted/src/components/page/alert/alertMessage.vue
@@ -232,7 +232,7 @@ export default {
chartDatas: [],
sameLabels: ['instance', 'module', 'project', 'asset', 'endpoint', 'datacenter'],
legend: [],
- searchTime: [bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime())).setHours(new Date(bus.computeTimezone(new Date().getTime())).getHours() - 24 * 30)), bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime()))), '7d'],
+ searchTime: [bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime())).setHours(new Date(bus.computeTimezone(new Date().getTime())).getHours() - 24 * 7)), bus.timeFormate(new Date(bus.computeTimezone(new Date().getTime()))), '7d'],
searchTimeDialog: [],
searchTimeSelect: bus.getTimezontDateRange(),
currentMsg: {},
diff --git a/nezha-fronted/src/components/page/config/system/license.vue b/nezha-fronted/src/components/page/config/system/license.vue
index 97fa5c8bb..cbc79df5e 100644
--- a/nezha-fronted/src/components/page/config/system/license.vue
+++ b/nezha-fronted/src/components/page/config/system/license.vue
@@ -285,6 +285,7 @@ export default {
this.$post('/sys/license/upload', form).then(res => {
if (res.code == 200) {
this.licenseGetStatus()
+ this.$message.success(this.$t('overall.result.success'))
} else {
this.$message.error(res.msg)
}
diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue
index b90ac26c1..6a2517609 100644
--- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue
+++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue
@@ -3953,6 +3953,8 @@ export default {
} else {
if (response.error) {
this.$refs['promql-' + promqlIndex][0].setError(response.error)
+ } else if(response.msg) {
+ this.$refs['promql-' + promqlIndex][0].setError(response.msg)
} else {
this.$refs['promql-' + promqlIndex][0].setError(response)
}