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
shenshaokai
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> = ({
...
@@ -84,12 +84,13 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
},
},
];
];
const
getHistoryList
=
()
=>
{
const
getHistoryList
=
(
params
?
)
=>
{
if
(
fetchList
)
{
if
(
fetchList
)
{
setListLoading
(
true
);
setListLoading
(
true
);
fetchList
({
fetchList
({
current
:
page
,
current
:
page
,
pageSize
:
size
,
pageSize
:
size
,
...
params
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
const
{
data
=
[],
totalCount
=
0
}
=
(
res
||
{});
setList
(
data
);
setList
(
data
);
...
@@ -104,10 +105,13 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
...
@@ -104,10 +105,13 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
getHistoryList
();
getHistoryList
();
},
[]);
},
[]);
const
handlePaginationChange
=
(
page
:
number
,
size
:
number
)
=>
{
const
handlePaginationChange
=
(
current
:
number
,
pageSize
:
number
)
=>
{
setPage
(
page
);
setPage
(
current
);
setSize
(
size
);
setSize
(
pageSize
);
getHistoryList
();
getHistoryList
({
current
,
pageSize
,
});
};
};
return
(
return
(
...
@@ -130,7 +134,7 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
...
@@ -130,7 +134,7 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
strokeWidth=
{
4
}
strokeWidth=
{
4
}
strokeLinecap=
"square"
strokeLinecap=
"square"
showInfo=
{
false
}
showInfo=
{
false
}
percent=
{
nextScore
?
(
score
/
levelInfo
.
nextScore
)
*
100
:
100
}
percent=
{
nextScore
?
(
score
/
nextScore
)
*
100
:
100
}
/>
/>
</
div
>
</
div
>
...
...
src/pages/member/memberLevel/components/DetailInfo/index.tsx
View file @
52c79c9b
...
@@ -193,6 +193,10 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -193,6 +193,10 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
message
.
success
(
'保存成功'
);
message
.
success
(
'保存成功'
);
getMemberLevelInfo
();
getMemberLevelInfo
();
}
}
const
errorItem
=
resArr
.
find
(
item
=>
item
.
code
!==
1000
);
if
(
errorItem
)
{
message
.
error
(
errorItem
.
message
);
}
}
catch
(
errInfo
)
{
}
catch
(
errInfo
)
{
}
}
...
...
src/pages/member/memberLevel/index.tsx
View file @
52c79c9b
...
@@ -82,7 +82,7 @@ const MemberLevel: React.FC<[]> = () => {
...
@@ -82,7 +82,7 @@ const MemberLevel: React.FC<[]> = () => {
},
},
{
{
title
:
'升级阈值'
,
title
:
'升级阈值'
,
dataIndex
:
'
levelUpP
oint'
,
dataIndex
:
'
p
oint'
,
align
:
'center'
,
align
:
'center'
,
},
},
{
{
...
...
src/pages/member/memberUpgradeRule/index.tsx
View file @
52c79c9b
...
@@ -38,7 +38,7 @@ const MemberUpgradeRule: React.FC<[]> = () => {
...
@@ -38,7 +38,7 @@ const MemberUpgradeRule: React.FC<[]> = () => {
current
:
page
,
current
:
page
,
pageSize
:
size
,
pageSize
:
size
,
});
});
},
[
page
,
size
]);
},
[]);
const
columns
:
EditableColumns
[]
=
[
const
columns
:
EditableColumns
[]
=
[
{
{
...
@@ -66,9 +66,13 @@ const MemberUpgradeRule: React.FC<[]> = () => {
...
@@ -66,9 +66,13 @@ const MemberUpgradeRule: React.FC<[]> = () => {
},
},
];
];
const
handlePaginationChange
=
(
page
:
number
,
size
:
number
)
=>
{
const
handlePaginationChange
=
(
current
:
number
,
pageSize
:
number
)
=>
{
setPage
(
page
);
setPage
(
current
);
setSize
(
size
);
setSize
(
pageSize
);
getRuleList
({
current
,
pageSize
,
});
};
};
// 重新保存 dataSource
// 重新保存 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