Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
aca77832
Commit
aca77832
authored
Jul 12, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复上级渠道id拿不到的问题
parent
88a0b955
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
index.tsx
src/pages/member/components/ModifyChannelDrawer/index.tsx
+2
-2
index.tsx
...pages/member/memberImport/components/MemberForm/index.tsx
+1
-1
index.tsx
...ifyComingData/components/VerifyComingDataDrawer/index.tsx
+2
-2
No files found.
src/pages/member/components/ModifyChannelDrawer/index.tsx
View file @
aca77832
...
...
@@ -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
}));
...
...
src/pages/member/memberImport/components/MemberForm/index.tsx
View file @
aca77832
...
...
@@ -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
}));
...
...
src/pages/member/memberPrVerifyComingData/components/VerifyComingDataDrawer/index.tsx
View file @
aca77832
...
...
@@ -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
}));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment