From 2f0e1ee5a74344f6a108df4559beed0423b9639d Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期二, 08 四月 2025 17:50:19 +0800 Subject: [PATCH] 1 --- src/views/standard/renshunum/index.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/standard/renshunum/index.vue b/src/views/standard/renshunum/index.vue index 291416b..127c06a 100644 --- a/src/views/standard/renshunum/index.vue +++ b/src/views/standard/renshunum/index.vue @@ -93,7 +93,7 @@ }, created() { // this.getNowTime(); - this.getList(); + this.getdate(); }, @@ -104,11 +104,18 @@ moment(res.data).format("YYYY-MM-DD 00:00:00"), moment(res.data).format("YYYY-MM-DD 23:59:00"), ]; + this.getList(); }); }, 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