Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project
jinfa-admin
Commits
968f7cc3
Commit
968f7cc3
authored
Nov 30, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复结束时间可以小于当前时间的问题
parent
3833bfeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
schema.tsx
...Coupon/platformCouponQuery/components/EditForm/schema.tsx
+1
-1
schema.tsx
...latformCouponUnsubmitted/components/CouponForm/schema.tsx
+3
-3
No files found.
src/pages/marketingManage/platformCoupon/platformCouponQuery/components/EditForm/schema.tsx
View file @
968f7cc3
...
@@ -40,7 +40,7 @@ const schema: ISchema = {
...
@@ -40,7 +40,7 @@ const schema: ISchema = {
},
},
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledTime
:
(
current
,
type
)
=>
{
disabledTime
:
(
current
,
type
)
=>
{
if
(
type
===
'start'
&&
moment
().
isSame
(
current
,
'day'
))
{
if
(
(
type
===
'start'
||
type
||
'end'
)
&&
moment
().
isSame
(
current
,
'day'
))
{
return
{
return
{
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
...
...
src/pages/marketingManage/platformCoupon/platformCouponUnsubmitted/components/CouponForm/schema.tsx
View file @
968f7cc3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-06-24 14:05:57
* @Date: 2021-06-24 14:05:57
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-11-
15 14:22:39
* @LastEditTime: 2021-11-
30 20:14:44
* @Description:
* @Description:
*/
*/
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ISchema
}
from
'@formily/antd'
;
...
@@ -106,7 +106,7 @@ const schema: ISchema = {
...
@@ -106,7 +106,7 @@ const schema: ISchema = {
showTime
:
true
,
showTime
:
true
,
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledTime
:
(
current
,
type
)
=>
{
disabledTime
:
(
current
,
type
)
=>
{
if
(
type
===
'start'
&&
moment
().
isSame
(
current
,
'day'
))
{
if
(
(
type
===
'start'
||
type
||
'end'
)
&&
moment
().
isSame
(
current
,
'day'
))
{
return
{
return
{
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
...
@@ -303,7 +303,7 @@ const schema: ISchema = {
...
@@ -303,7 +303,7 @@ const schema: ISchema = {
showTime
:
true
,
showTime
:
true
,
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledDate
:
(
current
)
=>
current
&&
current
<
moment
().
startOf
(
'day'
),
disabledTime
:
(
current
,
type
)
=>
{
disabledTime
:
(
current
,
type
)
=>
{
if
(
type
===
'start'
&&
moment
().
isSame
(
current
,
'day'
))
{
if
(
(
type
===
'start'
||
type
||
'end'
)
&&
moment
().
isSame
(
current
,
'day'
))
{
return
{
return
{
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledHours
:
()
=>
range
(
0
,
24
).
splice
(
0
,
moment
().
get
(
'hour'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
disabledMinutes
:
()
=>
range
(
0
,
60
).
splice
(
0
,
moment
().
get
(
'minute'
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment