商品编辑
This commit is contained in:
parent
f74e82e7bd
commit
d1f7c697e0
|
@ -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(){
|
||||||
|
|
||||||
|
|
|
@ -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"))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue