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