From 403ab689a36165398d26a7ec1a3040cd0e8505e4 Mon Sep 17 00:00:00 2001 From: yxq Date: Mon, 23 Sep 2024 18:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=BD=92=E5=AF=9D=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SafeCampus.WEB/src/views/attendance/studentsReturn/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SafeCampus.WEB/src/views/attendance/studentsReturn/index.vue b/SafeCampus.WEB/src/views/attendance/studentsReturn/index.vue index 53d4529..8762be4 100644 --- a/SafeCampus.WEB/src/views/attendance/studentsReturn/index.vue +++ b/SafeCampus.WEB/src/views/attendance/studentsReturn/index.vue @@ -36,6 +36,7 @@ value-format="YYYY-MM-DD" type="date" placeholder="选择查询日期" + :disabled-date="disabledDate" @change="retrunTimeChange" > @@ -115,6 +116,9 @@ const retrunTimeChange = () => { proTable.value!.searchParam.ReturnTime = ReturnTime.value || ReturnTimeDefault; proTable.value!.search(); }; +const disabledDate = (time: Date) => { + return time.getTime() > Date.now(); +}; // 获取 ProTable 元素,调用其获取刷新数据方法(还能获取到当前查询参数,方便导出携带参数) // 表格配置项 const columns: ColumnProps[] = [