商品编辑

This commit is contained in:
姜棚 2022-01-24 11:33:17 +08:00
parent f74e82e7bd
commit d1f7c697e0
2 changed files with 3 additions and 1 deletions

View File

@ -278,6 +278,7 @@ export default class acclist extends React.Component{
} }
addProduct(){ addProduct(){
this.setState({drawerVisible2:true}) this.setState({drawerVisible2:true})
this.setState({productData:null})
} }
async productSubmit(){ async productSubmit(){

View File

@ -165,12 +165,13 @@ export default class adduserinfo extends React.Component{
} }
async submit(){ async submit(){
console.log("编辑数据")
if(this.refs.form1.validator()) if(this.refs.form1.validator())
{ {
if(this.props.data) if(this.props.data)
{ let temp = [] { let temp = []
console.log(777666)
if(sessionStorage.getItem("productData")) if(sessionStorage.getItem("productData"))
{ {