Commit 4197af14 by fukai

支持传入user参数

parent 0711dd5c
......@@ -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')
{
......
......@@ -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/>
......
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment