fix:调整报名时间校验
This commit is contained in:
parent
7bc8c10d9a
commit
0d7063077f
@ -375,12 +375,14 @@ const disabledRegisterDate = (current: Dayjs | null) => {
|
||||
return current < timeRange.value[0].startOf("day") || current > timeRange.value[1].endOf("day")
|
||||
}
|
||||
const disabledSubmitDate = (current: Dayjs | null) => {
|
||||
if (!registerTimeRange.value || !timeRange.value || !current) return false
|
||||
return current < registerTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day")
|
||||
if (!timeRange.value || !current) return false
|
||||
return current < timeRange.value[0].startOf("day") || current > timeRange.value[1].endOf("day")
|
||||
// if (!registerTimeRange.value || !timeRange.value || !current) return false
|
||||
// return current < registerTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day")
|
||||
}
|
||||
const disabledReviewDate = (current: Dayjs | null) => {
|
||||
if (!registerTimeRange.value || !timeRange.value || !current) return false
|
||||
return current < registerTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day")
|
||||
if (!submitTimeRange.value || !timeRange.value || !current) return false
|
||||
return current < submitTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day")
|
||||
}
|
||||
const disabledPublishDate = (current: Dayjs | null) => {
|
||||
if (!reviewTimeRange.value || !timeRange.value || !current) return false
|
||||
|
||||
4
pnpm-lock.yaml
generated
4
pnpm-lock.yaml
generated
@ -8,7 +8,7 @@ importers:
|
||||
|
||||
.: {}
|
||||
|
||||
frontend:
|
||||
lesingle-creation-frontend:
|
||||
dependencies:
|
||||
'@ant-design/icons-vue':
|
||||
specifier: ^7.0.1
|
||||
@ -1402,7 +1402,7 @@ packages:
|
||||
|
||||
glob@7.2.3:
|
||||
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
|
||||
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
|
||||
deprecated: Glob versions prior to v9 are no longer supported
|
||||
|
||||
globals@13.24.0:
|
||||
resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user