刘洋 8 ay önce
ebeveyn
işleme
e6fd48c5a1

+ 11 - 0
src/render/ap/scanManage.ts

@@ -156,3 +156,14 @@ export const exportStu = (params: {
     params,
     download: true,
   });
+
+export const getProvince = (params: { examId: any }) =>
+  request({
+    url: "/api/admin/province/list",
+    params,
+  });
+export const getExamRoom = (params: { examId: any }) =>
+  request({
+    url: "/api/admin/exam-room/list",
+    params,
+  });

+ 28 - 1
src/render/views/ScanManage/ScanCheckMiss.vue

@@ -36,6 +36,8 @@ import {
   getCampusList,
   getScannedList,
   exportScanned,
+  getProvince,
+  getExamRoom,
 } from "@/ap/scanManage";
 import type { TableColumnsType } from "@qmth/ui";
 const userStore = useUserStore();
@@ -43,8 +45,12 @@ const userStore = useUserStore();
 //考点下拉
 const { data: examSiteOptions, run: runSite } = useRequest(getSiteList);
 const { data: examCampusOptions, run: runCampus } = useRequest(getCampusList);
+const { data: provinceOptions, run: runProvince } = useRequest(getProvince);
+const { data: examRoomOptions, run: runExamRoom } = useRequest(getExamRoom);
 runSite({ examId: userStore.curExam?.id });
 runCampus({ examId: userStore.curExam?.id });
+runProvince({ examId: userStore.curExam?.id });
+runExamRoom({ examId: userStore.curExam?.id });
 
 const params = reactive({
   subjectCode: "",
@@ -75,6 +81,17 @@ const fields = computed(() => {
       type: "select",
       colSpan: 3,
       label: "省份",
+      attrs: {
+        options: (Array.isArray(provinceOptions.value)
+          ? provinceOptions.value
+          : []
+        ).map((item: any) => ({
+          value: item,
+          label: item,
+        })),
+        // fieldNames: { label: "name", value: "code" },
+        allowClear: true,
+      },
     },
     {
       prop: "examSite",
@@ -103,7 +120,17 @@ const fields = computed(() => {
       type: "select",
       colSpan: 3,
       label: "考场号",
-      allowClear: true,
+      attrs: {
+        options: (Array.isArray(examRoomOptions.value)
+          ? examRoomOptions.value
+          : []
+        ).map((item: any) => ({
+          value: item,
+          label: item,
+        })),
+        // fieldNames: { label: "name", value: "code" },
+        allowClear: true,
+      },
     },
     {
       prop: "scanned",