Commit de6c6a94 by caoyanzhi

update: 云日报记录添加默认日期

parent d9d7e339
...@@ -418,6 +418,28 @@ export default { ...@@ -418,6 +418,28 @@ export default {
if (!!that.brandId) { if (!!that.brandId) {
that.getTableList(); that.getTableList();
} }
let start = new Date();
start = new Date(start.setMonth(start.getMonth() - 3));
const end = new Date();
const startDate = [];
const endDate = [];
startDate.push(start.getFullYear());
startDate.push((start.getMonth() + 1).toString().padStart(2, '0'));
startDate.push(
start
.getDate()
.toString()
.padStart(2, '0')
);
endDate.push(end.getFullYear());
endDate.push((end.getMonth() + 1).toString().padStart(2, '0'));
endDate.push(
end
.getDate()
.toString()
.padStart(2, '0')
);
this.conditionObj.dateRange = [startDate.join('-'), endDate.join('-')];
}, },
components: { components: {
multipleDel, multipleDel,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment