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
linweijiong
jinfa-platform
Commits
62e2e1be
Commit
62e2e1be
authored
Jun 09, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复 渠道数据为 null 报错的问题
parent
5b7418e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
index.tsx
...pages/member/memberImport/components/MemberForm/index.tsx
+6
-3
index.tsx
...ifyComingData/components/VerifyComingDataDrawer/index.tsx
+6
-4
No files found.
src/pages/member/memberImport/components/MemberForm/index.tsx
View file @
62e2e1be
...
...
@@ -12,6 +12,7 @@ import { useLinkageUtils } from '@/utils/formEffectUtils';
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetMemberAbilitySubGetResponse
}
from
'@/services/MemberApi'
;
import
{
initDetailSchema
}
from
'./schema'
;
import
{
legoState
}
from
'lingxi-editor-core'
;
// import { getAuth } from '@/utils/auth';
const
formActions
=
createFormActions
();
...
...
@@ -352,11 +353,13 @@ const MemberForm: React.FC<MemberFormProps> = ({
if
(
res
.
code
!==
1000
)
{
return
;
}
cons
t
{
le
t
{
channelLevelTag
=
''
,
channelTypes
=
[]
,
upperMembers
=
[]
,
channelTypes
,
upperMembers
,
}
=
res
.
data
;
channelTypes
=
channelTypes
||
[];
upperMembers
=
upperMembers
||
[];
formActions
.
setFieldState
(
'tabs'
,
state
=>
{
state
.
props
[
'x-component-props'
]
=
state
.
props
[
'x-component-props'
]
||
{};
...
...
src/pages/member/memberPrVerifyComingData/components/VerifyComingDataDrawer/index.tsx
View file @
62e2e1be
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 17:47:32
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-0
2 18:47:45
* @LastEditTime: 2021-06-0
9 10:54:28
* @Description: 审核Form抽屉
*/
import
React
,
{
useEffect
}
from
'react'
;
...
...
@@ -156,10 +156,12 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => {
if
(
!
channelInfo
)
{
return
;
}
cons
t
{
upperMembers
=
[]
,
channelTypes
=
[]
,
le
t
{
upperMembers
,
channelTypes
,
}
=
channelInfo
;
upperMembers
=
upperMembers
||
[];
channelTypes
=
channelTypes
||
[];
const
channelType
=
channelTypes
.
map
(
item
=>
({
label
:
item
.
channelTypeName
,
value
:
item
.
channelTypeId
}));
// 渠道上级id,如果没有也是返回只有一项的数组
...
...
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