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
shenshaokai
jinfa-admin
Commits
44112079
Commit
44112079
authored
Sep 30, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 初始展示领券时间、发券数量
parent
ba4ab1d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
index.tsx
...upon/platformCouponQuery/components/ActionModal/index.tsx
+3
-2
index.tsx
...mCoupon/platformCouponQuery/components/EditForm/index.tsx
+5
-0
index.tsx
...ketingManage/platformCoupon/platformCouponQuery/index.tsx
+2
-2
No files found.
src/pages/marketingManage/platformCoupon/platformCouponQuery/components/ActionModal/index.tsx
View file @
44112079
...
...
@@ -8,10 +8,10 @@
import
React
,
{
useRef
}
from
'react'
;
import
{
Modal
}
from
'antd'
;
import
ReasonForm
,
{
ReasonValueType
,
ReasonFormRefHandle
}
from
'../ReasonForm'
;
import
EditForm
,
{
EditSubmitValueType
,
EditFormRefHandle
}
from
'../EditForm'
;
import
EditForm
,
{
EditSubmitValueType
,
EditFormRefHandle
,
EditValueType
}
from
'../EditForm'
;
export
type
ActionModalType
=
'stop'
|
'cancel'
|
'startUp'
|
'edit'
;
export
type
ActionModalValueType
=
{
id
:
number
};
export
type
ActionModalValueType
=
{
id
:
number
}
&
Partial
<
EditValueType
>
;
interface
IProps
{
/**
...
...
@@ -96,6 +96,7 @@ const ActionModal: React.FC<IProps> = (props) => {
render
:
()
=>
(
<
EditForm
onSubmit=
{
handleEditSubmit
}
value=
{
value
as
EditValueType
}
ref=
{
formRef
}
/>
),
...
...
src/pages/marketingManage/platformCoupon/platformCouponQuery/components/EditForm/index.tsx
View file @
44112079
...
...
@@ -40,6 +40,10 @@ interface IProps {
* 提交触发事件
*/
onSubmit
:
(
values
:
EditSubmitValueType
)
=>
void
,
/**
* 值
*/
value
:
EditValueType
,
}
export
interface
EditFormRefHandle
{
...
...
@@ -70,6 +74,7 @@ const EditForm: React.ForwardRefRenderFunction<EditFormRefHandle, IProps> = ((pr
components=
{
{
DatePicker
,
}
}
value=
{
value
}
effects=
{
(
$
,
{
setFieldState
})
=>
{
}
}
...
...
src/pages/marketingManage/platformCoupon/platformCouponQuery/index.tsx
View file @
44112079
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-22 09:49:42
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-09-
22 14:09:45
* @LastEditTime: 2021-09-
30 17:07:20
* @Description: 商家优惠劵查询
*/
import
React
,
{
useRef
,
useState
}
from
'react'
;
...
...
@@ -179,7 +179,7 @@ const PlatformCouponQuery: React.FC = () => {
{
record
.
update
&&
(
<
Button
type=
"link"
onClick=
{
()
=>
handleShowActionModal
(
'edit'
,
{
id
:
record
.
id
})
}
onClick=
{
()
=>
handleShowActionModal
(
'edit'
,
{
id
:
record
.
id
,
releaseTimeStart
:
moment
(
record
.
releaseTimeStart
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
releaseTimeEnd
:
moment
(
record
.
releaseTimeEnd
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
quantity
:
`${record.quantity}`
})
}
>
修改
</
Button
>
...
...
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