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
20ee22f3
Commit
20ee22f3
authored
Nov 26, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复新值没有覆盖旧值的问题
parent
d11b74b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
index.tsx
...upon/platformCouponQuery/components/ActionModal/index.tsx
+2
-2
index.tsx
...mCoupon/platformCouponQuery/components/EditForm/index.tsx
+2
-2
index.tsx
...ketingManage/platformCoupon/platformCouponQuery/index.tsx
+1
-1
No files found.
src/pages/marketingManage/platformCoupon/platformCouponQuery/components/ActionModal/index.tsx
View file @
20ee22f3
...
@@ -67,11 +67,11 @@ const ActionModal: React.FC<IProps> = (props) => {
...
@@ -67,11 +67,11 @@ const ActionModal: React.FC<IProps> = (props) => {
const
formRef
=
useRef
<
ReasonFormRefHandle
|
EditFormRefHandle
|
null
>
(
null
);
const
formRef
=
useRef
<
ReasonFormRefHandle
|
EditFormRefHandle
|
null
>
(
null
);
const
handleReasonSubmit
=
(
values
:
ReasonValueType
)
=>
{
const
handleReasonSubmit
=
(
values
:
ReasonValueType
)
=>
{
onConfirm
({
reason
:
values
.
reason
,
...
value
},
modalName
);
onConfirm
({
...
value
,
reason
:
values
.
reason
},
modalName
);
};
};
const
handleEditSubmit
=
(
values
:
EditSubmitValueType
)
=>
{
const
handleEditSubmit
=
(
values
:
EditSubmitValueType
)
=>
{
onConfirm
({
...
value
s
,
...
value
},
modalName
);
onConfirm
({
...
value
,
...
values
,
},
modalName
);
};
};
const
handleConfirm
=
()
=>
{
const
handleConfirm
=
()
=>
{
...
...
src/pages/marketingManage/platformCoupon/platformCouponQuery/components/EditForm/index.tsx
View file @
20ee22f3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-07-02 17:53:01
* @Date: 2021-07-02 17:53:01
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
07-02 18:07:39
* @LastEditTime: 2021-
11-26 18:08:51
* @Description: 修改的表单
* @Description: 修改的表单
*/
*/
import
React
,
{
useImperativeHandle
}
from
'react'
;
import
React
,
{
useImperativeHandle
}
from
'react'
;
...
@@ -51,7 +51,7 @@ export interface EditFormRefHandle {
...
@@ -51,7 +51,7 @@ export interface EditFormRefHandle {
}
}
const
EditForm
:
React
.
ForwardRefRenderFunction
<
EditFormRefHandle
,
IProps
>
=
((
props
,
ref
)
=>
{
const
EditForm
:
React
.
ForwardRefRenderFunction
<
EditFormRefHandle
,
IProps
>
=
((
props
,
ref
)
=>
{
const
{
onSubmit
}
=
props
;
const
{
onSubmit
,
value
}
=
props
;
useImperativeHandle
(
ref
,
()
=>
({
useImperativeHandle
(
ref
,
()
=>
({
submit
:
()
=>
formActions
.
submit
(),
submit
:
()
=>
formActions
.
submit
(),
...
...
src/pages/marketingManage/platformCoupon/platformCouponQuery/index.tsx
View file @
20ee22f3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-06-22 09:49:42
* @Date: 2021-06-22 09:49:42
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
09-30 17:07:2
0
* @LastEditTime: 2021-
11-26 18:12:4
0
* @Description: 商家优惠劵查询
* @Description: 商家优惠劵查询
*/
*/
import
React
,
{
useRef
,
useState
}
from
'react'
;
import
React
,
{
useRef
,
useState
}
from
'react'
;
...
...
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