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
78aca038
Commit
78aca038
authored
Jan 22, 2019
by
snail
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ncb' of
https://gitee.com/zeng_hui/swifteditor
into ncb
parents
29066e16
4197af14
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
LeadPage.js
src/swift/LeadPage.js
+1
-1
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/LeadPage.js
View file @
78aca038
...
@@ -105,7 +105,7 @@ export class LeadPage extends Component
...
@@ -105,7 +105,7 @@ export class LeadPage extends Component
render
:(
text
,
record
)
=>
{
render
:(
text
,
record
)
=>
{
return
<
a
href
=
"javascript:void(0);"
onClick
=
{()
=>
{
return
<
a
href
=
"javascript:void(0);"
onClick
=
{()
=>
{
this
.
props
.
actions
.
initSwiftMessageTree
(
null
)
//清空
this
.
props
.
actions
.
initSwiftMessageTree
(
null
)
//清空
this
.
props
.
history
.
push
(
`swift/edit/
${
record
.
mty
}
`
)
this
.
props
.
history
.
push
(
`swift/edit/
${
this
.
props
.
params
.
mctid
?
this
.
props
.
params
.
mctid
+
'/'
:
''
}${
record
.
mty
}
`
)
}
}
}
>
Create
{
record
.
desp
}
<
/a
>
}
>
Create
{
record
.
desp
}
<
/a
>
}
}
...
...
src/swift/Result.js
View file @
78aca038
...
@@ -37,7 +37,7 @@ const Step = Steps.Step;
...
@@ -37,7 +37,7 @@ const Step = Steps.Step;
// sndkey:this.props.rcv_bic
// 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
=>
{
).
then
(
data
=>
{
if
(
typeof
data
==
'string'
)
if
(
typeof
data
==
'string'
)
{
{
...
...
src/swift/SWFPage2.js
View file @
78aca038
...
@@ -403,7 +403,7 @@ export class SWFPage extends Component
...
@@ -403,7 +403,7 @@ export class SWFPage extends Component
:
null
:
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
/>
<
br
/>
<
br
/>
...
...
src/swift/TemplateSave.js
View file @
78aca038
...
@@ -43,7 +43,7 @@ export default class TemplateSaver extends Component{
...
@@ -43,7 +43,7 @@ export default class TemplateSaver extends Component{
this
.
setState
({
loading
:
true
});
this
.
setState
({
loading
:
true
});
//调用模板保存API
//调用模板保存API
let
tempJsn
=
this
.
props
.
getTemplateJSON
()
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
)
console
.
log
(
json
)
ServiceAPI
.
saveTemplate
(
json
).
then
(
data
=>
{
ServiceAPI
.
saveTemplate
(
json
).
then
(
data
=>
{
if
(
typeof
data
==
'string'
)
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