//Tue Dec 03 2019 00:00:00 GMT+0800 (中国标准时间)
d = this.form.begin_end[0];
d1 = this.form.begin_end[1];
function timeAdd0(num) {
str = num.toString();
if (str.length <= 1) {
str = '0' + str;
}
return str
}
time = d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + timeAdd0(d.getDate()) + ' ';
time1 = d1.getFullYear() + '-' + (d1.getMonth() + 1) + '-' + timeAdd0(d.getDate()) + ' ';
console.log(time);
console.log(time1);