Commit aca77832 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复上级渠道id拿不到的问题

parent 88a0b955
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-07-07 13:47:02
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-07 15:16:50
* @LastEditTime: 2021-07-12 10:41:15
* @Description: 修改渠道信息 抽屉
*/
import React, { useEffect } from 'react';
......@@ -159,7 +159,7 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => {
// 渠道上级id,如果没有也是返回只有一项的数组
if (upperMembers.length === 1 && !upperMembers[0].upperRelationId) {
formActions.setFieldState('upperRelationId', state => {
FormPath.setIn(state, 'visible', false);
FormPath.setIn(state, 'display', false);
});
} else {
const upperMembersOptions = upperMembers.map(item => ({ label: item.name, value: item.upperRelationId }));
......
......@@ -157,7 +157,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
// 渠道上级id,如果没有也是返回只有一项的数组
if (upperMembers.length === 1 && !upperMembers[0].upperRelationId) {
formActions.setFieldState('upperRelationId', state => {
FormPath.setIn(state, 'visible', false);
FormPath.setIn(state, 'display', false);
});
} else {
const upperMembersOptions = upperMembers.map(item => ({ label: item.name, value: item.upperRelationId }));
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 17:47:32
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-08 11:03:50
* @LastEditTime: 2021-07-12 10:38:39
* @Description: 审核Form抽屉
*/
import React, { useEffect } from 'react';
......@@ -167,7 +167,7 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => {
// 渠道上级id,如果没有也是返回只有一项的数组
if (upperMembers.length === 1 && !upperMembers[0].upperRelationId) {
formActions.setFieldState('upperRelationId', state => {
FormPath.setIn(state, 'visible', false);
FormPath.setIn(state, 'display', false);
});
} else {
const upperMembersOptions = upperMembers.map(item => ({ label: item.name, value: item.upperRelationId }));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment