更新商品编辑

This commit is contained in:
姜棚 2022-01-24 20:10:10 +08:00
parent e6b888225e
commit c243d9657c
2 changed files with 5 additions and 3 deletions

View File

@ -62,7 +62,7 @@ const Column = [
width:'200px',
},
];
// <span className="grid-link" onClick={(e)=>this.editinfo(e,rowData)}>编辑</span>
export default class commoditylist extends React.Component{
constructor(props){
super(props)
@ -292,7 +292,7 @@ export default class commoditylist extends React.Component{
if(com == "opearo")
{
return <div>
<span className="grid-link" onClick={(e)=>this.editinfo(e,rowData)}>编辑</span>
<span className="grid-link" onClick={(e)=>this.deleteFn(e,rowData)}>删除</span>
</div>
}

View File

@ -442,7 +442,9 @@ onEditRow(status,row){
componentWillMount(){
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})
}