Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
07463e79
Commit
07463e79
authored
Nov 24, 2020
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbug
parent
461cefb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
index.tsx
src/pages/comment/query/detailed/index.tsx
+4
-4
index.tsx
src/pages/member/components/SincerityInfo/index.tsx
+4
-4
No files found.
src/pages/comment/query/detailed/index.tsx
View file @
07463e79
...
...
@@ -58,7 +58,7 @@ const CommentDetailed: React.FC = () => {
switch
(
item
.
star
)
{
case
1
:
case
2
:
{
target
=
ret
[
0
];
target
=
ret
[
2
];
break
;
}
...
...
@@ -69,7 +69,7 @@ const CommentDetailed: React.FC = () => {
case
4
:
case
5
:
{
target
=
ret
[
2
];
target
=
ret
[
0
];
break
;
}
...
...
@@ -104,9 +104,9 @@ const CommentDetailed: React.FC = () => {
const
getSummaryEvaluatePie
=
(
data
:
EstimateSumItems
[])
=>
{
const
source
=
data
||
[];
const
count
=
source
.
reduce
((
pre
,
now
:
any
)
=>
now
.
sum
+
pre
,
0
);
const
ba
d
=
source
[
0
]
&&
source
[
0
].
sum
?
source
[
0
].
sum
:
0
;
const
goo
d
=
source
[
0
]
&&
source
[
0
].
sum
?
source
[
0
].
sum
:
0
;
const
notBad
=
source
[
1
]
&&
source
[
1
].
sum
?
source
[
1
].
sum
:
0
;
const
goo
d
=
source
[
2
]
&&
source
[
2
].
sum
?
source
[
2
].
sum
:
0
;
const
ba
d
=
source
[
2
]
&&
source
[
2
].
sum
?
source
[
2
].
sum
:
0
;
const
ret
=
[
{
...
...
src/pages/member/components/SincerityInfo/index.tsx
View file @
07463e79
...
...
@@ -348,7 +348,7 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
switch
(
item
.
star
)
{
case
1
:
case
2
:
{
target
=
ret
[
0
];
target
=
ret
[
2
];
break
;
}
...
...
@@ -359,7 +359,7 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
case
4
:
case
5
:
{
target
=
ret
[
2
];
target
=
ret
[
0
];
break
;
}
...
...
@@ -394,9 +394,9 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
const
getSummaryEvaluatePie
=
(
data
:
EstimateSumItems
[])
=>
{
const
source
=
data
||
[];
const
count
=
source
.
reduce
((
pre
,
now
)
=>
(
now
.
sum
||
0
)
+
pre
,
0
);
const
ba
d
=
source
[
0
]
&&
source
[
0
].
sum
?
source
[
0
].
sum
:
0
;
const
goo
d
=
source
[
0
]
&&
source
[
0
].
sum
?
source
[
0
].
sum
:
0
;
const
notBad
=
source
[
1
]
&&
source
[
1
].
sum
?
source
[
1
].
sum
:
0
;
const
goo
d
=
source
[
2
]
&&
source
[
2
].
sum
?
source
[
2
].
sum
:
0
;
const
ba
d
=
source
[
2
]
&&
source
[
2
].
sum
?
source
[
2
].
sum
:
0
;
const
ret
=
[
{
...
...
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