|
|
@ -46,6 +46,7 @@ export default {
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 1);
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 1);
|
|
|
|
this.options.value = start;
|
|
|
|
this.options.value = start;
|
|
|
|
console.log("date", this.options, start);
|
|
|
|
console.log("date", this.options, start);
|
|
|
|
|
|
|
|
this.setCondition()
|
|
|
|
} else if (this.options.attrs.type === "daterange") {
|
|
|
|
} else if (this.options.attrs.type === "daterange") {
|
|
|
|
const end = new Date();
|
|
|
|
const end = new Date();
|
|
|
|
end.setTime(end.getTime() - 3600 * 1000 * 24 * 1);
|
|
|
|
end.setTime(end.getTime() - 3600 * 1000 * 24 * 1);
|
|
|
@ -53,6 +54,7 @@ export default {
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 8);
|
|
|
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 8);
|
|
|
|
this.options.value = [start, end];
|
|
|
|
this.options.value = [start, end];
|
|
|
|
console.log("daterange", this.options);
|
|
|
|
console.log("daterange", this.options);
|
|
|
|
|
|
|
|
this.setCondition()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.options.value = null;
|
|
|
|
this.options.value = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|