如下 代码
const nowDate = new Date();
const lastMonth = new Date(new Date().setDate(nowDate.getDate() - 30));
this.value1 = [formatDate(lastMonth, "yyyy-MM-dd") + " 00:00:00", formatDate(nowDate, "yyyy-MM-dd") + " 23:59:59"];
value1 为 el-date-picker 组件 model绑定的值