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
f32b72c7
Commit
f32b72c7
authored
Jul 02, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 补充数据
parent
c422042f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
index.tsx
...marketingAbility/components/MemberCheckboxGroup/index.tsx
+22
-6
No files found.
src/pages/transaction/marketingAbility/components/MemberCheckboxGroup/index.tsx
View file @
f32b72c7
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-06-25 11:34:36
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
6-25 14:11:49
* @LastEditTime: 2021-0
7-01 17:57:53
* @Description: 会员方块复选框
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -20,6 +20,22 @@ export type OptionItemType = {
* 数据id
*/
value
:
number
,
/**
* 等级
*/
level
:
number
,
/**
* 角色名称
*/
roleName
:
string
,
/**
* 等级类型
*/
levelTypeName
:
string
,
/**
* 会员类型
*/
memberTypeName
:
string
,
}
export
type
ValueType
=
any
[];
...
...
@@ -75,7 +91,7 @@ const MemberCheckboxGroup: React.FC<ApplicableListProps> = (props) => {
onChange=
{
handleChange
}
className=
{
styles
[
'member-list-checkboxGroup'
]
}
>
<
Row
gutter=
{
16
}
>
<
Row
gutter=
{
[
16
,
16
]
}
>
{
options
.
map
((
item
)
=>
{
const
itemCls
=
classNames
(
styles
[
'member-list-item'
],
{
[
styles
[
'member-list-item-checked'
]]:
Array
.
isArray
(
value
)
&&
value
.
includes
(
item
.
value
),
...
...
@@ -86,23 +102,23 @@ const MemberCheckboxGroup: React.FC<ApplicableListProps> = (props) => {
<
Row
gutter=
{
16
}
>
<
Col
span=
{
6
}
>
<
Descriptions
column=
{
1
}
>
<
Descriptions
.
Item
label=
"会员类型"
style=
{
{
paddingBottom
:
0
}
}
>
企业会员
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"会员类型"
style=
{
{
paddingBottom
:
0
}
}
>
{
item
.
memberTypeName
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
Col
>
<
Col
span=
{
6
}
>
<
Descriptions
column=
{
1
}
>
<
Descriptions
.
Item
label=
"会员角色"
style=
{
{
paddingBottom
:
0
}
}
>
采购商
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"会员角色"
style=
{
{
paddingBottom
:
0
}
}
>
{
item
.
roleName
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
Col
>
<
Col
span=
{
6
}
>
<
Descriptions
column=
{
1
}
>
<
Descriptions
.
Item
label=
"等级类型"
style=
{
{
paddingBottom
:
0
}
}
>
商户会员
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"等级类型"
style=
{
{
paddingBottom
:
0
}
}
>
{
item
.
levelTypeName
}
</
Descriptions
.
Item
>
</
Descriptions
>
</
Col
>
<
Col
span=
{
6
}
>
<
Descriptions
column=
{
1
}
>
<
Descriptions
.
Item
label=
"等级标签"
style=
{
{
paddingBottom
:
0
}
}
>
<
LevelBrand
level=
{
1
}
/>
<
LevelBrand
level=
{
item
.
level
}
/>
</
Descriptions
.
Item
>
</
Descriptions
>
</
Col
>
...
...
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