kongdeqiang
2023-02-10 f3fe55f98c59dffc647a6440b2d236bea4440676
src/views/your/carInfo-manage/carInfoManage.vue
@@ -444,17 +444,18 @@
      },
      getDataList() {
        this.loading = true;
        if (this.value[0]!="" && this.value[1]!=""){
        if (this.value.length >0){
          this.searchForm.beginTime = this.selectDate(this.value[0]);
          this.searchForm.endTime = this.selectDate(this.value[1]);
        }else{
          var date = new Date();
          this.searchForm.endTime = this.selectDate(date);
          this.value[1] = this.searchForm.endTime;
          date.setDate(1);
          this.value[0] = date;
          this.searchForm.beginTime = this.selectDate(date);
        }
        // else{
        //   var date = new Date();
        //   this.searchForm.endTime = this.selectDate(date);
        //   this.value[1] = this.searchForm.endTime;
        //   date.setDate(1);
        //   this.value[0] = date;
        //   this.searchForm.beginTime = this.selectDate(date);
        // }
        getCar(this.searchForm).then((res) => {
          this.loading = false;
          if (res.success) {
@@ -958,4 +959,4 @@
      this.init();
    },
  };
</script>
</script>