更新分销商
This commit is contained in:
parent
2f81eb3944
commit
3e3b40fd05
|
@ -19,8 +19,8 @@ export default class acclist extends React.Component{
|
||||||
//去调子组件的方法
|
//去调子组件的方法
|
||||||
activeFn(){
|
activeFn(){
|
||||||
let valiform=this.refs.disbutorForm.submit();
|
let valiform=this.refs.disbutorForm.submit();
|
||||||
console.log(99,this.refs.disbutorForm.state.rules);
|
console.log('是否通过',valiform);
|
||||||
console.log(8888888,this.refs.disbutorForm.state.model);
|
console.log('是否通过data',this.refs.disbutorForm.state);
|
||||||
let formInfo=this.refs.disbutorForm.state.model;
|
let formInfo=this.refs.disbutorForm.state.model;
|
||||||
let iptVal=this.state.model;
|
let iptVal=this.state.model;
|
||||||
let _this=this;
|
let _this=this;
|
||||||
|
@ -37,6 +37,11 @@ export default class acclist extends React.Component{
|
||||||
if(_this.state.headImg){
|
if(_this.state.headImg){
|
||||||
data.head_img=_this.refs.disbutorForm.state.headImg;
|
data.head_img=_this.refs.disbutorForm.state.headImg;
|
||||||
}
|
}
|
||||||
|
data.salesman_id=formInfo.salesman_id.key;
|
||||||
|
data.salesman_name=formInfo.salesman_id.text;
|
||||||
|
data.company_id=formInfo.company_id.key;
|
||||||
|
data.company_name=formInfo.company_id.text;
|
||||||
|
console.log(data);
|
||||||
if(_this.props.enumer==0){
|
if(_this.props.enumer==0){
|
||||||
postCreateReseller(data).then(res=>{
|
postCreateReseller(data).then(res=>{
|
||||||
handelResponse(res,(response,msg)=>{
|
handelResponse(res,(response,msg)=>{
|
||||||
|
|
|
@ -91,7 +91,7 @@ export default class adduserinfo extends React.Component{
|
||||||
|
|
||||||
submit(){
|
submit(){
|
||||||
this.refs.form1.validator()
|
this.refs.form1.validator()
|
||||||
console.log(this.state.model);
|
console.log(11,this.state.model);
|
||||||
}
|
}
|
||||||
|
|
||||||
//选择图片
|
//选择图片
|
||||||
|
|
Loading…
Reference in New Issue