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
daixuan
swifteditor
Commits
5a255c20
Commit
5a255c20
authored
Jun 23, 2022
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存时候增加了模板数据
parent
582d4926
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
Result.js
src/swift/Result.js
+2
-1
SWFPage2.js
src/swift/SWFPage2.js
+10
-0
No files found.
src/swift/Result.js
View file @
5a255c20
...
@@ -27,6 +27,7 @@ const Step = Steps.Step;
...
@@ -27,6 +27,7 @@ const Step = Steps.Step;
datas
.
F20
=
tags
[
0
].
tagValue
[
1
]
datas
.
F20
=
tags
[
0
].
tagValue
[
1
]
if
(
tags
.
length
>
1
&&
tags
[
1
].
tag
==
'21'
)
if
(
tags
.
length
>
1
&&
tags
[
1
].
tag
==
'21'
)
datas
.
F21
=
tags
[
1
].
tagValue
[
1
]
datas
.
F21
=
tags
[
1
].
tagValue
[
1
]
let
tempStr
=
JSON
.
stringify
(
window
.
templateObject
)
ServiceAPI
.
saveMessage
(
ServiceAPI
.
saveMessage
(
// {
// {
...
@@ -37,7 +38,7 @@ const Step = Steps.Step;
...
@@ -37,7 +38,7 @@ const Step = Steps.Step;
// sndkey:this.props.rcv_bic
// 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=
${
this
.
props
.
extra
.
mctid
||
"NONE"
}
&sf2msg=
${
encodeURIComponent
(
this
.
props
.
swift_message
)}
&sf2temp=
${
encodeURIComponent
(
tempStr
)}
`
).
then
(
data
=>
{
).
then
(
data
=>
{
if
(
typeof
data
==
'string'
)
if
(
typeof
data
==
'string'
)
{
{
...
...
src/swift/SWFPage2.js
View file @
5a255c20
...
@@ -159,11 +159,21 @@ export class SWFPage extends Component
...
@@ -159,11 +159,21 @@ export class SWFPage extends Component
// if(this.props.extra.countMap)
// if(this.props.extra.countMap)
// this.props.extra.s_countMap = {...this.props.extra.countMap}
// this.props.extra.s_countMap = {...this.props.extra.countMap}
//根据阿尔山要求,发送模板给阿尔山
this
.
sendToArxan
()
if
(
flag
)
if
(
flag
)
this
.
props
.
history
.
push
(
"preview/0"
)
this
.
props
.
history
.
push
(
"preview/0"
)
else
else
this
.
props
.
history
.
push
(
"preview/1"
)
this
.
props
.
history
.
push
(
"preview/1"
)
}
}
sendToArxan
(){
//在Next报文的时候发送报文到阿尔山
let
tempJsn
=
this
.
saveTemp
()
const
mty
=
this
.
props
.
params
.
mty
||
this
.
props
.
extra
.
msgtyp
let
json
=
{
sf2temp
:
tempJsn
,
mty
,
user
:
this
.
props
.
mctid
||
'NONE'
}
window
.
templateObject
=
json
}
joinMessage
(
tags
,
arr
,
seqlist
)
joinMessage
(
tags
,
arr
,
seqlist
)
{
{
for
(
let
item
of
tags
)
for
(
let
item
of
tags
)
...
...
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