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
52c79c9b
Commit
52c79c9b
authored
Nov 25, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug
parent
28a0b16c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
12 deletions
+24
-12
index.tsx
src/pages/member/components/LevelInfo/index.tsx
+11
-7
index.tsx
src/pages/member/memberLevel/components/DetailInfo/index.tsx
+4
-0
index.tsx
src/pages/member/memberLevel/index.tsx
+1
-1
index.tsx
src/pages/member/memberUpgradeRule/index.tsx
+8
-4
No files found.
src/pages/member/components/LevelInfo/index.tsx
View file @
52c79c9b
...
...
@@ -84,12 +84,13 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
},
];
const
getHistoryList
=
()
=>
{
const
getHistoryList
=
(
params
?
)
=>
{
if
(
fetchList
)
{
setListLoading
(
true
);
fetchList
({
current
:
page
,
pageSize
:
size
,
pageSize
:
size
,
...
params
,
}).
then
(
res
=>
{
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
setList
(
data
);
...
...
@@ -104,10 +105,13 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
getHistoryList
();
},
[]);
const
handlePaginationChange
=
(
page
:
number
,
size
:
number
)
=>
{
setPage
(
page
);
setSize
(
size
);
getHistoryList
();
const
handlePaginationChange
=
(
current
:
number
,
pageSize
:
number
)
=>
{
setPage
(
current
);
setSize
(
pageSize
);
getHistoryList
({
current
,
pageSize
,
});
};
return
(
...
...
@@ -130,7 +134,7 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
strokeWidth=
{
4
}
strokeLinecap=
"square"
showInfo=
{
false
}
percent=
{
nextScore
?
(
score
/
levelInfo
.
nextScore
)
*
100
:
100
}
percent=
{
nextScore
?
(
score
/
nextScore
)
*
100
:
100
}
/>
</
div
>
...
...
src/pages/member/memberLevel/components/DetailInfo/index.tsx
View file @
52c79c9b
...
...
@@ -193,6 +193,10 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
message
.
success
(
'保存成功'
);
getMemberLevelInfo
();
}
const
errorItem
=
resArr
.
find
(
item
=>
item
.
code
!==
1000
);
if
(
errorItem
)
{
message
.
error
(
errorItem
.
message
);
}
}
catch
(
errInfo
)
{
}
...
...
src/pages/member/memberLevel/index.tsx
View file @
52c79c9b
...
...
@@ -82,7 +82,7 @@ const MemberLevel: React.FC<[]> = () => {
},
{
title
:
'升级阈值'
,
dataIndex
:
'
levelUpP
oint'
,
dataIndex
:
'
p
oint'
,
align
:
'center'
,
},
{
...
...
src/pages/member/memberUpgradeRule/index.tsx
View file @
52c79c9b
...
...
@@ -38,7 +38,7 @@ const MemberUpgradeRule: React.FC<[]> = () => {
current
:
page
,
pageSize
:
size
,
});
},
[
page
,
size
]);
},
[]);
const
columns
:
EditableColumns
[]
=
[
{
...
...
@@ -66,9 +66,13 @@ const MemberUpgradeRule: React.FC<[]> = () => {
},
];
const
handlePaginationChange
=
(
page
:
number
,
size
:
number
)
=>
{
setPage
(
page
);
setSize
(
size
);
const
handlePaginationChange
=
(
current
:
number
,
pageSize
:
number
)
=>
{
setPage
(
current
);
setSize
(
pageSize
);
getRuleList
({
current
,
pageSize
,
});
};
// 重新保存 dataSource
...
...
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