dashboard日期T-1自动把条件带到接口

master
郑皇 4 years ago
parent f0e65253e6
commit 0bfc5ab22e

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

Loading…
Cancel
Save