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
b03a2016
Commit
b03a2016
authored
Feb 16, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改接口返回message 国际化
parent
7c2c0351
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
realname.tsx
src/pages/accountSetting/realname.tsx
+3
-3
index.tsx
src/pages/balance/accountsPayable/settlementList/index.tsx
+1
-1
info.tsx
src/pages/balance/settleRules/memberSettle/info.tsx
+2
-2
accountDetail.tsx
...yandSettle/capitalAccounts/accountLists/accountDetail.tsx
+1
-1
index.tsx
src/pages/payandSettle/capitalAccounts/eAccount/index.tsx
+1
-1
index.tsx
...tion/purchaseAbility/purchaseInquiry/addInquiry/index.tsx
+1
-1
No files found.
src/pages/accountSetting/realname.tsx
View file @
b03a2016
...
...
@@ -61,7 +61,7 @@ const RealnameLayout = () => {
if
(
info
?.
frontUrl
&&
info
?.
backUrl
&&
term
)
{
postMemberSecurityUploadIdCard
({
frontUrl
:
info
?.
frontUrl
,
backUrl
:
info
?.
backUrl
}).
then
((
res
)
=>
{
if
(
res
.
code
!==
1000
)
{
message
.
error
(
res
.
message
)
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
)
return
}
const
data
=
{
...
...
@@ -77,7 +77,7 @@ const RealnameLayout = () => {
useEffect
(()
=>
{
getMemberSecurityGetUserInfo
().
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
message
.
error
(
res
.
message
)
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
)
return
}
const
{
data
}
=
res
...
...
@@ -89,7 +89,7 @@ const RealnameLayout = () => {
setLoading
(
true
)
postMemberSecuritySaveAuthInfo
({
...
info
}
as
any
).
then
((
res
:
any
)
=>
{
if
(
res
.
code
!==
1000
)
{
message
.
error
(
res
.
message
)
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
)
setLoading
(
false
)
return
}
...
...
src/pages/balance/accountsPayable/settlementList/index.tsx
View file @
b03a2016
...
...
@@ -220,7 +220,7 @@ const SettlementList = () => {
id
:
itemInfo
.
id
.
toString
()
})
if
(
res
.
code
!==
1000
)
{
message
.
error
(
res
.
message
);
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
);
return
;
}
setRandomCode
(
res
.
data
);
...
...
src/pages/balance/settleRules/memberSettle/info.tsx
View file @
b03a2016
...
...
@@ -119,7 +119,7 @@ const MemberSettleAdd: React.FC = () => {
if
(
code
!==
1000
)
{
return
config
}
}
const
codeToMap
=
[
""
,
"days"
,
"month"
]
data
.
forEach
((
_item
)
=>
{
config
[
codeToMap
[
_item
.
methodCode
]]
=
true
...
...
@@ -252,7 +252,7 @@ const MemberSettleAdd: React.FC = () => {
memberRowCtl
.
setSelectRow
(
list
);
memberRowCtl
.
setSelectedRowKeys
(
res
.
data
.
memberList
.
map
((
item
)
=>
item
.
memberId
+
"_"
+
item
.
roleId
))
}
else
{
message
.
error
({
content
:
res
.
message
})
message
.
error
({
content
:
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
})
}
}
getInfo
();
...
...
src/pages/payandSettle/capitalAccounts/accountLists/accountDetail.tsx
View file @
b03a2016
...
...
@@ -112,7 +112,7 @@ const AccountDetail: React.FC<{}> = () => {
getAccountInfo
()
}
}
else
{
message
.
error
(
res
.
message
)
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
)
}
})
}
...
...
src/pages/payandSettle/capitalAccounts/eAccount/index.tsx
View file @
b03a2016
...
...
@@ -147,7 +147,7 @@ const EAccountDetail: React.FC<{}> = () => {
getAccountInfo
()
}
}
else
{
message
.
error
(
res
.
message
)
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
)
}
})
}
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/index.tsx
View file @
b03a2016
...
...
@@ -117,7 +117,7 @@ const AddInquiry = () => {
const
addFn
=
async
()
=>
{
await
getTemplateWebMemberPurchaseWebFindCurrMemberPurchase
().
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
message
.
error
(
res
.
message
);
message
.
error
(
intl
.
formatMessage
({
id
:
`
${
res
.
code
}
`
})
);
return
}
if
(
!
res
.
data
)
{
...
...
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