qx
qx
2025-03-14 992b14d4c5e0ebba87d3ae8fb1ca9d06c0bdc6e9
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"));
        //你进入页面先把图表渲染了  然后才获取的数据把