Commit 3979a4b1 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复 非渠道会员显示了渠道信息的问题

parent 622e4270
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-24 17:47:32 * @Date: 2021-05-24 17:47:32
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-09 10:54:28 * @LastEditTime: 2021-06-15 11:16:16
* @Description: 审核Form抽屉 * @Description: 审核Form抽屉
*/ */
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
...@@ -180,6 +180,21 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => { ...@@ -180,6 +180,21 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => {
FormPath.setIn(state, 'props.enum', channelType); FormPath.setIn(state, 'props.enum', channelType);
}); });
}, [channelInfo]); }, [channelInfo]);
useEffect(() => {
if (!channelValue) {
return;
}
let {
channelLevel,
} = channelValue;
if (!channelLevel) {
formActions.setFieldState('INVESTIGATE_INFO', state => {
FormPath.setIn(state, 'visible', false);
});
}
}, [channelValue]);
const handleClose = () => { const handleClose = () => {
if (onClose) { if (onClose) {
......
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