Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
Overview
Overview
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
fukai
swifteditor
Commits
452b6c44
Commit
452b6c44
authored
Oct 30, 2024
by
s_guodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
4c933ee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
Result.js
src/swift/Result.js
+10
-10
No files found.
src/swift/Result.js
View file @
452b6c44
...
...
@@ -18,6 +18,7 @@ const Step = Steps.Step;
componentWillMount
()
{
//提交报文
let
user
=
sessionStorage
.
getItem
(
"j_username"
)
let
datas
=
{
MSGTYP
:
this
.
props
.
extra
.
msgtyp
.
substring
(
2
).
toUpperCase
(),
SNDKEY
:
this
.
props
.
sndkey
,
MCTSWTID
:
this
.
props
.
extra
.
mctid
}
//取出20,21
let
tags
=
this
.
props
.
swift_message_tree
.
Tags
...
...
@@ -29,7 +30,7 @@ const Step = Steps.Step;
datas
.
F21
=
tags
[
1
].
tagValue
[
1
]
ServiceAPI
.
saveMessage
(
// {
// smhinr:this.props.extra.smhinr,
// sf2msg:this.props.swift_message,
// datas:{
...
...
@@ -37,22 +38,22 @@ const Step = Steps.Step;
// sndkey:this.props.rcv_bic
// }
// }
`smhinr=
${
this
.
props
.
extra
.
smhinr
?
this
.
props
.
extra
.
smhinr
:
''
}
&user=
${
this
.
props
.
extra
.
mctid
||
"NONE"
}
&sf2msg=
${
encodeURIComponent
(
this
.
props
.
swift_message
)}
`
`smhinr=
${
this
.
props
.
extra
.
smhinr
?
this
.
props
.
extra
.
smhinr
:
''
}
&user=
${
user
||
"NONE"
}
&sf2msg=
${
encodeURIComponent
(
this
.
props
.
swift_message
)}
`
).
then
(
data
=>
{
if
(
typeof
data
==
'string'
)
{
data
=
JSON
.
parse
(
data
)
}
if
(
data
.
errorCode
==
'0000'
)
this
.
setState
({
isOK
:
0
})
this
.
setState
({
isOK
:
0
})
else
this
.
setState
({
isOK
:
0
,
error
:
"保存失败!"
})
this
.
setState
({
isOK
:
0
,
error
:
"保存失败!"
})
}).
catch
(
reason
=>
{
console
.
log
(
reason
)
this
.
setState
({
isOK
:
0
,
error
:
'保存失败!'
})
});
}
render
()
{
...
...
@@ -61,7 +62,7 @@ const Step = Steps.Step;
<
Col
span
=
{
3
}
/
>
<
Col
span
=
{
18
}
>
{
this
.
props
.
params
.
kind
==
'0'
?
this
.
props
.
params
.
kind
==
'0'
?
<
Steps
current
=
{
2
}
>
<
Step
title
=
"报文编辑"
description
=
"编辑报文栏位值"
/>
<
Step
title
=
"预览报文"
description
=
"预览报文"
/>
...
...
@@ -90,11 +91,11 @@ const Step = Steps.Step;
<
/Col
>
<
Col
span
=
{
3
}
><
/Col
>
<
/Row
>
<
/div
>
)
}
}
}
const
mapStateToProps
=
(
state
)
=>
{
const
{
swift_message
,
extra
,
snd_bic_info
,
swift_message_tree
}
=
state
.
swift
;
...
...
@@ -109,4 +110,4 @@ function mapDispatchToProps(dispatch) {
};
}
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
Result
)
\ No newline at end of file
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
Result
)
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