|
@@ -77,7 +77,11 @@ const getPageScoreInfoByAssessmentApi = async (
|
|
|
if (tableData.value.length) {
|
|
|
let allCount = 0;
|
|
|
tableData.value.forEach(item => {
|
|
|
- allCount += item.score ? Number(item.score) : 0;
|
|
|
+ if (item.changeScore) {
|
|
|
+ allCount += Number(item.changeScore);
|
|
|
+ } else if (item.score) {
|
|
|
+ allCount += Number(item.score);
|
|
|
+ }
|
|
|
});
|
|
|
let resultNum: number | string = allCount / tableData.value.length;
|
|
|
if (
|
|
@@ -183,7 +187,11 @@ const fetchSortedData = sortOrder => {
|
|
|
width="120"
|
|
|
align="right"
|
|
|
sortable="custom"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template #default="{ row }">
|
|
|
+ <span>{{ row.changeScore || row.score }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</el-card>
|
|
|
</div>
|