修改排名
This commit is contained in:
@@ -281,6 +281,10 @@ import { getDicts } from "@/api/system/dict/data";
|
||||
import { listDisciplinaryApplication } from "@/api/routine/disciplinaryApplication";
|
||||
import { getOwnStuScoreMajorRank } from "@/api/comprehensive/biyeapply";
|
||||
|
||||
import {
|
||||
listOwnScoreClassRank
|
||||
} from "@/api/stuCQS/good/apply";
|
||||
|
||||
import { listStu as listView, doEdit, doCancel, doReApply } from "@/api/comprehensive/knzzGlApply";
|
||||
|
||||
export default {
|
||||
@@ -522,14 +526,15 @@ export default {
|
||||
},
|
||||
async fetchcjpm() {
|
||||
let loading = fullLoading(this);
|
||||
let res = await getOwnStuScoreMajorRank().catch(error => {
|
||||
let res = await listOwnScoreClassRank().catch(error => {
|
||||
console.error("Error fetching score rank:", error);
|
||||
return { code: 500 };
|
||||
});
|
||||
loading.close();
|
||||
if (res.code === 200 && res.data && res.data.majorRank != null && res.data.majorCount != null) {
|
||||
let data = res.data;
|
||||
let stuRank = Math.round(Math.round(data.majorRank / data.majorCount * 10000) / 100);
|
||||
let data = res.data[0];
|
||||
if (res.code === 200 && data&& data.stuMajorRank != null && data.majorCount != null) {
|
||||
|
||||
let stuRank = Math.round(Math.round(data.stuMajorRank / data.majorCount * 10000) / 100);
|
||||
if (stuRank <= 30) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user