监控看板添加时间为空查询图表时的判断

This commit is contained in:
康冉冉
2026-02-11 18:03:47 +08:00
parent e2bbb67faa
commit c5fb179e96
@@ -27,7 +27,7 @@
<div class="fr" style="text-align: right;">
<el-date-picker
v-model="datetimeModel"
style="width: 355px!important;margin-right: 8px;"
style="width: 355px!important;margin-right: 8px!important;"
type="datetimerange"
unlink-panels
:picker-options="pickerOptions"
@@ -405,8 +405,10 @@
},
// 时间选择器
dateChange() {
this.currTimeList = {startTime: this.datetimeModel[0], endTime: this.datetimeModel[1]};
this.fnChartView({});
if (this.datetimeModel) {
this.currTimeList = {startTime: this.datetimeModel[0], endTime: this.datetimeModel[1]};
this.fnChartView({});
}
},
// 下拉值变化事件
selectValChange(val) {