更新商品编辑
This commit is contained in:
parent
e6b888225e
commit
c243d9657c
|
@ -62,7 +62,7 @@ const Column = [
|
||||||
width:'200px',
|
width:'200px',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
// <span className="grid-link" onClick={(e)=>this.editinfo(e,rowData)}>编辑</span>
|
||||||
export default class commoditylist extends React.Component{
|
export default class commoditylist extends React.Component{
|
||||||
constructor(props){
|
constructor(props){
|
||||||
super(props)
|
super(props)
|
||||||
|
@ -292,7 +292,7 @@ export default class commoditylist extends React.Component{
|
||||||
if(com == "opearo")
|
if(com == "opearo")
|
||||||
{
|
{
|
||||||
return <div>
|
return <div>
|
||||||
<span className="grid-link" onClick={(e)=>this.editinfo(e,rowData)}>编辑</span>
|
|
||||||
<span className="grid-link" onClick={(e)=>this.deleteFn(e,rowData)}>删除</span>
|
<span className="grid-link" onClick={(e)=>this.deleteFn(e,rowData)}>删除</span>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
@ -442,7 +442,9 @@ onEditRow(status,row){
|
||||||
|
|
||||||
componentWillMount(){
|
componentWillMount(){
|
||||||
this.setState({tableHeight:window.innerHeight-390});
|
this.setState({tableHeight:window.innerHeight-390});
|
||||||
if(sessionStorage.getItem("key_plan_status")==6 || sessionStorage.getItem("key_plan_status")== 0)
|
|
||||||
|
let disabledArr = ["6","0","2","5","8"]
|
||||||
|
if(disabledArr.indexOf(sessionStorage.getItem("key_plan_status")) > -1 )
|
||||||
{
|
{
|
||||||
this.setState({disabled:true})
|
this.setState({disabled:true})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue