This commit is contained in:
lb
2023-09-14 14:49:36 +08:00
parent 1bd826b21c
commit 1f99830600
12 changed files with 142 additions and 42 deletions

View File

@@ -60,7 +60,9 @@ export default function () {
}
};
const now = new Date().getTime();
const now = new Date()
const [y, m, d] = [now.getFullYear(), now.getMonth(), now.getDate()]
const today = new Date(y, m, d, 0, 0, 0, 0).getTime()
const headFormFields = [
{
prop: "material",
@@ -96,7 +98,7 @@ export default function () {
"start-placeholder": "开始时间",
"end-placeholder": "结束时间",
},
default: { value: [now - 3600 * 24 * 7 * 1000, now] },
default: { value: [today - 3600 * 24 * 1000 * 7, today + 3600 * 1000 * 24] },
},
{
button: {