diff --git a/nezha-fronted/src/assets/css/components/common/timePicker.scss b/nezha-fronted/src/assets/css/components/common/timePicker.scss
index f48ba5ff5..68819745a 100644
--- a/nezha-fronted/src/assets/css/components/common/timePicker.scss
+++ b/nezha-fronted/src/assets/css/components/common/timePicker.scss
@@ -83,6 +83,7 @@
font-size: 14px;
.utc-str {
+ line-height: 44px;
text-align: right;
span{
font-size: 12px;
@@ -163,7 +164,7 @@
}
.date-range-panel {
- height: 460px;
+ // height: 460px;
width: 500px;
background: #FFFFFF;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
index 23d517f43..490e34358 100644
--- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
+++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
@@ -118,7 +118,8 @@ export default {
obj: Object, // 关联的实体对象
from: String, // 来自哪个页面
tabList: Array, // 动态页签列表
- targetTab: String // 展示哪个页签
+ targetTab: String, // 展示哪个页签
+ sign:[Number,String], //pickTime历史记录的唯一标识
},
watch: {
obj: {
diff --git a/nezha-fronted/src/components/common/timePicker.vue b/nezha-fronted/src/components/common/timePicker.vue
index 625ae3599..8fd40be0d 100644
--- a/nezha-fronted/src/components/common/timePicker.vue
+++ b/nezha-fronted/src/components/common/timePicker.vue
@@ -20,7 +20,11 @@
-
{{ showTime.text }}
+
+ {{searchTime[0]}}
{{$t("dashboard.panel.to")}}
{{searchTime[1]}}
+ {{ showTime.text }}
+
+
@@ -96,6 +100,8 @@
@click="timeChange(item)"
:class="showTime.id === item.id ? 'active' : ''"
:key="key"
+ :v-if="item.id !== 12 || showEmpty"
+
>
{
+ if (viewGraphDialogStyle['z-index'] !== 'auto') {
+ const dom =
+ document.getElementsByClassName('el-picker-panel')
+ Array.prototype.forEach.call(dom, function (element) {
+ element.style['z-index'] =
+ viewGraphDialogStyle['z-index'] + 1
+ })
+ this.$refs.calendar.$el.style['z-index'] =
+ viewGraphDialogStyle['z-index'] + 1
+ }
+ })
+ }
},
historyChange (item) {
this.searchTime[0] = item.start
@@ -357,33 +383,33 @@ export default {
this.$set(this.searchTime, 0, timeGroup.start_time)
this.$set(this.searchTime, 1, timeGroup.end_time)
} else {
- const time = this.searchTime.splice(' ')
- this.showTime = this.nowTimeType = {
- text: time[0] + ' ' + this.$t('dashboard.panel.to') + ' ' + time[1]
- }
- this.$set(this.searchTime, 0, bus.timeFormate(time[0]))
- this.$set(this.searchTime, 1, bus.timeFormate(time[1]))
- // this.$set(this.searchTime, 0, bus.timeFormate(timeGroup.start_time));
- // this.$set(this.searchTime, 1, bus.timeFormate(timeGroup.end_time));
+ // const time = this.searchTime.splice(' ')
// this.showTime = this.nowTimeType = {
- // id: 4,
- // text: this.$t("dashboard.panel.lastOneHour"),
- // type: "hour",
- // value: 1,
- // };
- // const time = bus.getTimezontDateRange();
- // if (timeGroup.start_time) {
- // this.$set(
- // this.searchTime,
- // 0,
- // bus.timeFormate(timeGroup.start_time)
- // );
- // this.$set(this.searchTime, 1, bus.timeFormate(timeGroup.end_time));
- // } else {
- // this.$set(this.searchTime, 0, bus.timeFormate(time[0]));
- // this.$set(this.searchTime, 1, bus.timeFormate(time[1]));
+ // text: time[0] + ' ' + this.$t('dashboard.panel.to') + ' ' + time[1]
// }
- // this.$set(this.searchTime, 0, bus.timeFormate(time[0]));
+ // this.$set(this.searchTime, 0, bus.timeFormate(time[0]))
+ // this.$set(this.searchTime, 1, bus.timeFormate(time[1]))
+ this.$set(this.searchTime, 0, bus.timeFormate(timeGroup.start_time));
+ this.$set(this.searchTime, 1, bus.timeFormate(timeGroup.end_time));
+ this.showTime = this.nowTimeType = {
+ id: 4,
+ text: this.$t("dashboard.panel.lastOneHour"),
+ type: "hour",
+ value: 1,
+ };
+ const time = bus.getTimezontDateRange();
+ if (timeGroup.start_time) {
+ this.$set(
+ this.searchTime,
+ 0,
+ bus.timeFormate(timeGroup.start_time)
+ );
+ this.$set(this.searchTime, 1, bus.timeFormate(timeGroup.end_time));
+ } else {
+ this.$set(this.searchTime, 0, bus.timeFormate(time[0]));
+ this.$set(this.searchTime, 1, bus.timeFormate(time[1]));
+ }
+ this.$set(this.searchTime, 0, bus.timeFormate(time[0]));
}
} else {
this.showTime = this.nowTimeType = {
@@ -437,7 +463,7 @@ export default {
}
}
} else {
- // this.isCustom = false;
+ this.isCustom = false;
this.showDropdown()
if (this.showEmpty && id === 12) {
this.searchTime = []
diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue
index 326d0d473..9ff791b81 100644
--- a/nezha-fronted/src/components/page/alert/alertMessage.vue
+++ b/nezha-fronted/src/components/page/alert/alertMessage.vue
@@ -580,7 +580,6 @@ export default {
},
messageDetail (row) {
this.sign = Number(row.alertRule.id)
- console.log(this.sign);
this.$get('/alert/rule/' + row.alertRule.id).then(res => {
this.currentMsg = { ...row, alertRule: { ...res.data } }
this.$nextTick(() => {