商品编辑
This commit is contained in:
parent
9c55e41333
commit
77f9accc64
|
@ -515,8 +515,7 @@ export default class acclist extends React.Component{
|
||||||
|
|
||||||
Notify.success("成功发起审批");
|
Notify.success("成功发起审批");
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
|
this.props.history.push('/home/key-list/');
|
||||||
this.props.history.push('/home/key-list/');
|
|
||||||
},2000)
|
},2000)
|
||||||
|
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
|
@ -1182,7 +1181,7 @@ export default class acclist extends React.Component{
|
||||||
</Drawer>
|
</Drawer>
|
||||||
<Drawer
|
<Drawer
|
||||||
className="draw"
|
className="draw"
|
||||||
width={"60%"}
|
width={"80%"}
|
||||||
title={"新建商品"}
|
title={"新建商品"}
|
||||||
footer={
|
footer={
|
||||||
<div style={{ textAlign: 'center' }}>
|
<div style={{ textAlign: 'center' }}>
|
||||||
|
|
|
@ -79,17 +79,36 @@ export default class adduserinfo extends React.Component{
|
||||||
let arr = []
|
let arr = []
|
||||||
|
|
||||||
|
|
||||||
let temp_productpic = this.state.productpic
|
let temp_productpic = this.state.productpic
|
||||||
for(let i = 0;i < model_temp.describe_url.length;i++)
|
let pics = ""
|
||||||
|
console.log("描述图",model_temp.describe_url)
|
||||||
|
if(Array.isArray(model_temp.describe_url))
|
||||||
|
{
|
||||||
|
pics = model_temp.describe_url
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(model_temp.describe_url !="" && model_temp.describe_url!=undefined)
|
||||||
|
{
|
||||||
|
pics = model_temp.describe_url.split(',')
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
pics = []
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
for(let i = 0;i < pics.length;i++)
|
||||||
{
|
{
|
||||||
let obj = {}
|
let obj = {}
|
||||||
let nameArr = model_temp.describe_url[i].split('/');
|
let nameArr = pics[i].split('/');
|
||||||
obj.name = nameArr[5]
|
obj.name = nameArr[5]
|
||||||
obj.src = model_temp.describe_url[i];
|
obj.src = pics[i];
|
||||||
defaultPic.push(obj)
|
defaultPic.push(obj)
|
||||||
let obj2={
|
let obj2={
|
||||||
name:nameArr[5],
|
name:nameArr[5],
|
||||||
url:model_temp.describe_url[i]
|
url:pics[i]
|
||||||
}
|
}
|
||||||
temp_productpic.push(obj2)
|
temp_productpic.push(obj2)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue