From 84d7b5e9b0a31c1e18dc52b3d69b1cadf96938e7 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期五, 06 十二月 2024 17:47:57 +0800 Subject: [PATCH] 报错提示 --- src/views/standard/renshunum/index.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/views/standard/renshunum/index.vue b/src/views/standard/renshunum/index.vue index 91a8092..127c06a 100644 --- a/src/views/standard/renshunum/index.vue +++ b/src/views/standard/renshunum/index.vue @@ -108,8 +108,14 @@ }); }, getList() { - this.queryParams.beginTime = this.startTime[0]; + if(this.startTime){ + this.queryParams.beginTime = this.startTime[0]; this.queryParams.endTime = this.startTime[1]; + }else if(this.startTime == null){ + this.queryParams.beginTime = null; + this.queryParams.endTime = null; + } + getTiaoNumsByDate(this.queryParams).then((res) => { let myChart = this.$echarts.init(document.getElementById("main")); //浣犺繘鍏ラ〉闈㈠厛鎶婂浘琛ㄦ覆鏌撲簡 鐒跺悗鎵嶈幏鍙栫殑鏁版嵁鎶� -- Gitblit v1.8.0