1) 修复分销商新增报错
This commit is contained in:
parent
024f30e05d
commit
e2916c9eb6
|
@ -371,17 +371,21 @@ export default class adduserinfo extends React.Component {
|
|||
componentWillMount() {
|
||||
this.getPersonnelFn();
|
||||
this.getCompanyFn();
|
||||
let formInfo = JSON.parse(sessionStorage.getItem("dataInfo"));
|
||||
let direct_reseller_ids =
|
||||
formInfo.direct_reseller_id === 0
|
||||
? ""
|
||||
: {
|
||||
key: formInfo.direct_reseller_id,
|
||||
text: formInfo.direct_reseller_name,
|
||||
};
|
||||
let isSelectDirects = formInfo.direct_reseller_id === 0 ? false : true;
|
||||
console.log("formInfo ==>", formInfo);
|
||||
if (this.props.enumer == 1) {
|
||||
let formInfo = JSON.parse(sessionStorage.getItem("dataInfo"));
|
||||
let direct_reseller_ids = "";
|
||||
let isSelectDirects = "";
|
||||
if (formInfo) {
|
||||
direct_reseller_ids =
|
||||
formInfo.direct_reseller_id === 0
|
||||
? ""
|
||||
: {
|
||||
key: formInfo.direct_reseller_id,
|
||||
text: formInfo.direct_reseller_name,
|
||||
};
|
||||
isSelectDirects = formInfo.direct_reseller_id === 0 ? false : true;
|
||||
}
|
||||
|
||||
let reselData = _.cloneDeep(formInfo); //表单的信息
|
||||
let data = {
|
||||
name: reselData.name,
|
||||
|
|
Loading…
Reference in New Issue