This commit is contained in:
parent
f04a6717f9
commit
1be0b1fb0e
|
@ -135,9 +135,12 @@ export default class edittemplate extends React.Component{
|
||||||
"button_color" : this.state.model.button_color,
|
"button_color" : this.state.model.button_color,
|
||||||
"top_img": this.state.model.top_img
|
"top_img": this.state.model.top_img
|
||||||
}
|
}
|
||||||
if(info.href!="")
|
console.log("当前链接")
|
||||||
{
|
console.log(info.href)
|
||||||
|
|
||||||
|
if(info.href)
|
||||||
|
{
|
||||||
|
console.log(111111)
|
||||||
formdata.list = this.state.model.list
|
formdata.list = this.state.model.list
|
||||||
formdata.use = this.state.model.use
|
formdata.use = this.state.model.use
|
||||||
formdata.link = this.state.model.link
|
formdata.link = this.state.model.link
|
||||||
|
@ -172,7 +175,7 @@ export default class edittemplate extends React.Component{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
Notify.success("保存成功")
|
Notify.success("保存成功")
|
||||||
|
|
||||||
this.props.history.push('/home/exchangepage');
|
this.props.history.push('/home/myexchangetemplate');
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
Notify.error(err)
|
Notify.error(err)
|
||||||
})
|
})
|
||||||
|
@ -189,8 +192,7 @@ export default class edittemplate extends React.Component{
|
||||||
handelResponse(res,(req,msg)=>{
|
handelResponse(res,(req,msg)=>{
|
||||||
Notify.success("保存成功")
|
Notify.success("保存成功")
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let link = window.location.href.replace(window.location.hash,"/home/exchangepage");
|
this.props.history.push('/home/myexchangetemplate');
|
||||||
window.open(link, "_blank")
|
|
||||||
}, 2000);
|
}, 2000);
|
||||||
|
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
|
|
|
@ -31,8 +31,8 @@ export default class acclist extends React.Component{
|
||||||
model:{ //数据模型不可少
|
model:{ //数据模型不可少
|
||||||
style:1,
|
style:1,
|
||||||
quantity:"",
|
quantity:"",
|
||||||
allow_repetition:1,
|
allow_repetition:0,
|
||||||
allow_loss:1,
|
allow_loss:0,
|
||||||
merge_stock:1,
|
merge_stock:1,
|
||||||
code_batch:"",
|
code_batch:"",
|
||||||
draw_title:"",
|
draw_title:"",
|
||||||
|
|
|
@ -22,8 +22,8 @@ export default class acclist extends React.Component{
|
||||||
keys:[{
|
keys:[{
|
||||||
style:1,
|
style:1,
|
||||||
quantity:"",
|
quantity:"",
|
||||||
allow_repetition:1,
|
allow_repetition:0,
|
||||||
allow_loss:1,
|
allow_loss:0,
|
||||||
merge_stock:1,
|
merge_stock:1,
|
||||||
code_batch:"",
|
code_batch:"",
|
||||||
draw_title:"",
|
draw_title:"",
|
||||||
|
@ -32,8 +32,8 @@ export default class acclist extends React.Component{
|
||||||
plan_title:"",
|
plan_title:"",
|
||||||
style:1,
|
style:1,
|
||||||
quantity:"",
|
quantity:"",
|
||||||
allow_repetition:1,
|
allow_repetition:0,
|
||||||
allow_loss:1,
|
allow_loss:0,
|
||||||
merge_stock:1,
|
merge_stock:1,
|
||||||
code_batch:"",
|
code_batch:"",
|
||||||
draw_title:"",
|
draw_title:"",
|
||||||
|
|
Loading…
Reference in New Issue