|
@@ -156,6 +156,9 @@ const _batchStudentList = () => {
|
|
|
batchStudentList({ batchId: curBatch.value.value }).then((res: any) => {
|
|
|
leftList.value = res || [];
|
|
|
listType.value = "level4";
|
|
|
+ if (res?.length) {
|
|
|
+ chooseLeft(res[0], 0);
|
|
|
+ }
|
|
|
});
|
|
|
};
|
|
|
function parseStudentPage(student: any) {
|
|
@@ -243,7 +246,6 @@ const dataList = ref<any>([]);
|
|
|
|
|
|
const chooseLeft = (item: any, index: number) => {
|
|
|
if (loading.value) return;
|
|
|
- activeIndex.value = index;
|
|
|
if (listType.value === "level1") {
|
|
|
curSubject.value = { value: item.subjectCode, label: item.subjectName };
|
|
|
_batchDeviceList();
|
|
@@ -254,6 +256,8 @@ const chooseLeft = (item: any, index: number) => {
|
|
|
curBatch.value = { value: item.batchId, label: item.batchId };
|
|
|
_batchStudentList();
|
|
|
} else if (listType.value === "level4") {
|
|
|
+ activeIndex.value = index;
|
|
|
+
|
|
|
curStu.value = {
|
|
|
examNumber: item.examNumber,
|
|
|
studentId: item.studentId,
|
|
@@ -283,6 +287,13 @@ const toggleListType = (type: string, num: number) => {
|
|
|
}
|
|
|
};
|
|
|
const search = () => {
|
|
|
+ listType.value = "level1";
|
|
|
+ curStu.value = {
|
|
|
+ examNumber: "",
|
|
|
+ studentId: void 0,
|
|
|
+ studentName: "",
|
|
|
+ };
|
|
|
+ dataCheckStore.resetInfo();
|
|
|
toggleListType(listType.value, 0);
|
|
|
};
|
|
|
const activeIndex = ref();
|