diff --git a/nezha-fronted/src/components/common/alert/alertMessageTable.vue b/nezha-fronted/src/components/common/alert/alertMessageTable.vue
index c6deeeb42..592b0360b 100644
--- a/nezha-fronted/src/components/common/alert/alertMessageTable.vue
+++ b/nezha-fronted/src/components/common/alert/alertMessageTable.vue
@@ -84,6 +84,8 @@
P3
+ {{utcTimeToTimezoneStr(scope.row[item.prop])}}
+ {{utcTimeToTimezoneStr(scope.row[item.prop])}}
-->
Expression
-
{{alertRuleData?(alertRuleData.expr + alertRuleData.operator + formatThreshold(alertRuleData.threshold,alertRuleData.unit)):'-'}}
-
-
+
{{alertRuleData?(alertRuleData.expr + alertRuleData.operator + formatThreshold(alertRuleData.threshold,alertRuleData.unit)):''}}
Level
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
index bdce79fc7..746adb482 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
@@ -476,8 +476,8 @@
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
if(this.searchTime&& this.searchTime.length>1){
- this.$set(this.searchLabel, "startAt", bus.timeFormate(this.searchTime[0], 'yyyy-MM-dd hh:mm:ss'));
- this.$set(this.searchLabel, "endAt", bus.timeFormate(this.searchTime[1], 'yyyy-MM-dd hh:mm:ss'));
+ this.$set(this.searchLabel, "startAt", this.timezoneToUtcTimeStr(this.searchTime[0]));
+ this.$set(this.searchLabel, "endAt", this.timezoneToUtcTimeStr(this.searchTime[1]));
}else{
delete this.searchLabel.startAt
delete this.searchLabel.endAt
diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js
index 22b350aa0..6b1939234 100644
--- a/nezha-fronted/src/components/common/language/cn.js
+++ b/nezha-fronted/src/components/common/language/cn.js
@@ -887,6 +887,17 @@ const cn = {
requiredName:'名称不能为空'
},
},
+ date:{
+ week:{
+ one:'星期一',
+ two:'星期二',
+ three:'星期三',
+ four:'星期四',
+ five:'星期五',
+ six:'星期六',
+ seven:'星期日',
+ }
+ },
el: {
colorpicker: {
confirm: "确定",
diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js
index aa023057d..486a8f005 100644
--- a/nezha-fronted/src/components/common/language/en.js
+++ b/nezha-fronted/src/components/common/language/en.js
@@ -894,6 +894,17 @@ const en = {
requiredName:'The name of the required'
},
},
+ date:{
+ week:{
+ one:'MON',
+ two:'TUE',
+ three:'WED',
+ four:'THU',
+ five:'FRI',
+ six:'SAT',
+ seven:'SUN',
+ }
+ },
...enLocale
}
diff --git a/nezha-fronted/src/components/page/alert/list.vue b/nezha-fronted/src/components/page/alert/list.vue
index dfb3bd113..1f5074aa3 100644
--- a/nezha-fronted/src/components/page/alert/list.vue
+++ b/nezha-fronted/src/components/page/alert/list.vue
@@ -334,8 +334,8 @@
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
if(this.searchTime&& this.searchTime.length>1){
- this.$set(this.searchLabel, "startAt", bus.timeFormate(this.searchTime[0], 'yyyy-MM-dd hh:mm:ss'));
- this.$set(this.searchLabel, "endAt", bus.timeFormate(this.searchTime[1], 'yyyy-MM-dd hh:mm:ss'));
+ this.$set(this.searchLabel, "startAt", this.timezoneToUtcTimeStr(this.searchTime[0]));
+ this.$set(this.searchLabel, "endAt", this.timezoneToUtcTimeStr(this.searchTime[1]));
}else{
delete this.searchLabel.startAt
delete this.searchLabel.endAt
diff --git a/nezha-fronted/src/components/page/asset/asset.vue b/nezha-fronted/src/components/page/asset/asset.vue
index 9f808b8a6..555c427fd 100644
--- a/nezha-fronted/src/components/page/asset/asset.vue
+++ b/nezha-fronted/src/components/page/asset/asset.vue
@@ -628,7 +628,7 @@
}
let ds='-';
let ts=':';
- let time=new Date(str);
+ let time=new Date(bus.UTCTimeToConfigTimezone(str));
let year=time.getFullYear();
let month=time.getMonth()+1 > 9 ? time.getMonth()+1 : ('0'+(time.getMonth()+1));
let day=time.getDate() > 9 ? time.getDate():('0'+time.getDate());
diff --git a/nezha-fronted/src/components/page/config/account.vue b/nezha-fronted/src/components/page/config/account.vue
index 1d8db5dfa..1a4185fde 100644
--- a/nezha-fronted/src/components/page/config/account.vue
+++ b/nezha-fronted/src/components/page/config/account.vue
@@ -79,6 +79,7 @@
@change="(val)=>{statusChange(scope.row)}">
+
{{utcTimeToTimezoneStr(scope.row[item.prop])}}
{{scope.row[item.prop]}}
diff --git a/nezha-fronted/src/components/page/config/mib.vue b/nezha-fronted/src/components/page/config/mib.vue
index 3fa7c918f..c8623ffb1 100644
--- a/nezha-fronted/src/components/page/config/mib.vue
+++ b/nezha-fronted/src/components/page/config/mib.vue
@@ -73,6 +73,7 @@
+ {{utcTimeToTimezoneStr(scope.row[item.prop])}}
diff --git a/nezha-fronted/src/components/page/config/operationlog.vue b/nezha-fronted/src/components/page/config/operationlog.vue
index 6185e9b64..d6b492215 100644
--- a/nezha-fronted/src/components/page/config/operationlog.vue
+++ b/nezha-fronted/src/components/page/config/operationlog.vue
@@ -50,6 +50,7 @@
{{scope.row[item.prop]}} ms
+
{{utcTimeToTimezoneStr(scope.row[item.prop])}}
{{scope.row[item.prop]}}
diff --git a/nezha-fronted/src/components/page/config/promServer.vue b/nezha-fronted/src/components/page/config/promServer.vue
index 297919908..e6f08bfd5 100644
--- a/nezha-fronted/src/components/page/config/promServer.vue
+++ b/nezha-fronted/src/components/page/config/promServer.vue
@@ -48,8 +48,9 @@
{{scope.row[item.prop] == '2' ? 'Per-Datacenter' : ''}}-->
{{findServerType(scope.row[item.prop]).text}}
+
{{utcTimeToTimezoneStr(scope.row[item.prop])}}
-
+
diff --git a/nezha-fronted/src/components/page/config/terminallog.vue b/nezha-fronted/src/components/page/config/terminallog.vue
index 633039262..cdb106b13 100644
--- a/nezha-fronted/src/components/page/config/terminallog.vue
+++ b/nezha-fronted/src/components/page/config/terminallog.vue
@@ -51,6 +51,7 @@
{{scope.row[item.prop] == 'zh' ? '中文' : ''}}
{{scope.row[item.prop] == 'ru' ? 'русский' : ''}}
+
{{utcTimeToTimezoneStr(scope.row[item.prop])}}
{{scope.row.status==='1' ? $t("config.terminallog.success") : $t("config.terminallog.fail")}}
@@ -92,7 +93,7 @@
show: false,
isEdit: false, //false查看,true编辑
title: ''
-
+
},
rightBoxResize: { //resize弹出框相关
show: false,
diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview2.scss b/nezha-fronted/src/components/page/dashboard/overview/overview2.scss
index 230a02b0f..e7ee564ac 100644
--- a/nezha-fronted/src/components/page/dashboard/overview/overview2.scss
+++ b/nezha-fronted/src/components/page/dashboard/overview/overview2.scss
@@ -356,4 +356,13 @@
top: 50%;
transform: translate(100%, -50%);
}
-
+.overview-loading{
+ width: 35px;
+ height: 35px;
+ position: relative;
+}
+.overview-loading .el-loading-spinner{
+ transform: scale(0.5);
+ top: -5px;
+ left: 0px;
+}
diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue
index 28eb24477..71a799626 100644
--- a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue
+++ b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue
@@ -3,6 +3,7 @@