el-date-picker默认日期区间

在搜索部分引用

         

计算一下起始时间

computed: {
    time: {
      get() {
        const { beginTime, finishTime } = this.searchForm
        return [beginTime, finishTime]
      },
      set([beginTime, finishTime]) {
        this.searchForm.beginTime = beginTime
        this.searchForm.finishTime = finishTime
      }
    },
    }

你可能感兴趣的:(vue)