JS当前时间和一周前时间
let date = new Date();
let Y = date.getFullYear();
let M = date.getMonth() + 1;
let D = date.getDate();
var old_date = new Date(date.getTime() - 7 * 24 * 3600 * 1000); // 一周前的时间戳
let last_week = old_date.getDate();
let last_month = old_date.getMonth() + 1;
let last_year = old_date.getFullYear();
this.searchObject.create_time_start = last_year + '-' + last_month + '-' + last_week + ' 00:00:00';
this.searchObject.create_time_stop = Y + '-' + M + '-' + D + ' 23:59:59';
this.createTime = [last_year + '-' + last_month + '-' + last_week, Y + '-' + M + '-' + D];