|
@@ -64,7 +64,7 @@ const averageScore = ref<number | string>(0);
|
|
|
const tableData = ref<any>([]);
|
|
|
const getPageScoreInfoByAssessmentApi = async (
|
|
|
obj: any = {},
|
|
|
- sort: any = {}
|
|
|
+ sort: any = { type: 1 }
|
|
|
) => {
|
|
|
const params = {
|
|
|
assessmentId: obj.id,
|
|
@@ -122,7 +122,7 @@ const fetchSortedData = sortOrder => {
|
|
|
if (sortOrder) {
|
|
|
params.type = sortOrder === "ascending" ? 1 : 2; // 1 从低到高 2从高到底
|
|
|
} else {
|
|
|
- params = {};
|
|
|
+ params.type = 1;
|
|
|
}
|
|
|
getPageScoreInfoByAssessmentApi(activeObj.value, params);
|
|
|
};
|