Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
861cba6e
Commit
861cba6e
authored
Jan 18, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复编辑授信信息成功之后页面数据还是旧数据的问题
parent
b02d6a7b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
index.tsx
...payandSettle/creditManage/components/DetailInfo/index.tsx
+7
-8
index.tsx
...le/creditManage/components/QuotaApplicationInfo/index.tsx
+1
-1
No files found.
src/pages/payandSettle/creditManage/components/DetailInfo/index.tsx
View file @
861cba6e
...
...
@@ -82,11 +82,6 @@ const DetailInfo: React.FC<DetailInfoProps> = (props) => {
headExtra
,
}
=
props
;
const
[
quotaInfo
,
setQuotaInfo
]
=
useState
<
QuotaInfo
>
(
null
);
const
[
quotaValues
,
setQuotaValues
]
=
useState
<
QuotaValues
>
({
quota
:
undefined
,
billDay
:
undefined
,
repayPeriod
:
undefined
,
});
const
[
infoLoading
,
setInfoloading
]
=
useState
(
false
);
// 获取授信详情
...
...
@@ -123,8 +118,6 @@ const DetailInfo: React.FC<DetailInfoProps> = (props) => {
quotaValuesData
.
repayPeriod
=
verify
.
repayPeriod
;
}
setQuotaValues
(
quotaValuesData
);
setQuotaInfo
({
...
res
.
data
,
quotaInfo
:
{
...
...
@@ -166,7 +159,13 @@ const DetailInfo: React.FC<DetailInfoProps> = (props) => {
...
values
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setQuotaValues
(
values
);
setQuotaInfo
({
...
quotaInfo
,
verify
:
{
...
quotaInfo
.
verify
,
...
values
,
},
});
resolve
();
}
reject
();
...
...
src/pages/payandSettle/creditManage/components/QuotaApplicationInfo/index.tsx
View file @
861cba6e
...
...
@@ -276,7 +276,7 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
onFormInit$
().
subscribe
(()
=>
{
// 初始化数据
setFieldState
(
'
applyQ
uota'
,
fileState
=>
{
setFieldState
(
'
q
uota'
,
fileState
=>
{
fileState
.
rules
=
fileState
.
rules
.
concat
({
validator
(
value
)
{
return
+
value
>
verify
?.
maxApplyQuota
?
'输入值已超出最大额度'
:
''
;
...
...
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