|
@@ -94,11 +94,14 @@ export default (props) => {
|
94
|
94
|
dataIndex: "surveyScore",
|
95
|
95
|
hideInSearch: true,
|
96
|
96
|
render: (_, row) => {
|
|
97
|
+ const num = row.surveyNum || 0;
|
|
98
|
+ if (num === 0) return '-';
|
|
99
|
+
|
97
|
100
|
const origin = row.surveyScore || 0;
|
98
|
101
|
const percent = row.surveyScorePercent || 0;
|
99
|
|
- const score = Number(origin * percent).toFixed(2);
|
|
102
|
+ const score = Number(origin / num * percent).toFixed(2);
|
100
|
103
|
|
101
|
|
- return `${origin} * ${percent * 100}% = ${score}`;
|
|
104
|
+ return `${origin} / ${num} * ${percent * 100}% = ${score}`;
|
102
|
105
|
},
|
103
|
106
|
},
|
104
|
107
|
{
|