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
4197af14
Commit
4197af14
authored
Dec 25, 2018
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持传入user参数
parent
0711dd5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Result.js
src/swift/Result.js
+1
-1
SWFPage2.js
src/swift/SWFPage2.js
+1
-1
TemplateSave.js
src/swift/TemplateSave.js
+1
-1
No files found.
src/swift/Result.js
View file @
4197af14
...
...
@@ -37,7 +37,7 @@ const Step = Steps.Step;
// sndkey:this.props.rcv_bic
// }
// }
`smhinr=
${
this
.
props
.
extra
.
smhinr
?
this
.
props
.
extra
.
smhinr
:
''
}
&
sf2msg=
${
encodeURIComponent
(
this
.
props
.
swift_message
)}
&datas=
${
encodeURIComponent
(
JSON
.
stringify
(
datas
)
)}
`
`smhinr=
${
this
.
props
.
extra
.
smhinr
?
this
.
props
.
extra
.
smhinr
:
''
}
&
user=
${
this
.
props
.
extra
.
mctid
||
"NONE"
}
&sf2msg=
${
encodeURIComponent
(
this
.
props
.
swift_message
)}
`
).
then
(
data
=>
{
if
(
typeof
data
==
'string'
)
{
...
...
src/swift/SWFPage2.js
View file @
4197af14
...
...
@@ -403,7 +403,7 @@ export class SWFPage extends Component
:
null
}
<
TempSaver
getTemplateJSON
=
{
this
.
saveTemp
}
mty
=
{
mty
}
style
=
{{
marginRight
:
'1em'
,
width
:
'8em'
}}
/
>
<
TempSaver
getTemplateJSON
=
{
this
.
saveTemp
}
mty
=
{
mty
}
mctid
=
{
this
.
props
.
extra
.
mctid
}
style
=
{{
marginRight
:
'1em'
,
width
:
'8em'
}}
/
>
<
br
/>
<
br
/>
...
...
src/swift/TemplateSave.js
View file @
4197af14
...
...
@@ -43,7 +43,7 @@ export default class TemplateSaver extends Component{
this
.
setState
({
loading
:
true
});
//调用模板保存API
let
tempJsn
=
this
.
props
.
getTemplateJSON
()
let
json
=
{...
vals
,
sf2temp
:
tempJsn
,
mty
:
this
.
props
.
mty
}
let
json
=
{...
vals
,
sf2temp
:
tempJsn
,
mty
:
this
.
props
.
mty
,
user
:
this
.
props
.
mctid
||
'NONE'
}
console
.
log
(
json
)
ServiceAPI
.
saveTemplate
(
json
).
then
(
data
=>
{
if
(
typeof
data
==
'string'
)
...
...
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