|
@@ -36,6 +36,8 @@ import {
|
|
getCampusList,
|
|
getCampusList,
|
|
getScannedList,
|
|
getScannedList,
|
|
exportScanned,
|
|
exportScanned,
|
|
|
|
+ getProvince,
|
|
|
|
+ getExamRoom,
|
|
} from "@/ap/scanManage";
|
|
} from "@/ap/scanManage";
|
|
import type { TableColumnsType } from "@qmth/ui";
|
|
import type { TableColumnsType } from "@qmth/ui";
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
@@ -43,8 +45,12 @@ const userStore = useUserStore();
|
|
//考点下拉
|
|
//考点下拉
|
|
const { data: examSiteOptions, run: runSite } = useRequest(getSiteList);
|
|
const { data: examSiteOptions, run: runSite } = useRequest(getSiteList);
|
|
const { data: examCampusOptions, run: runCampus } = useRequest(getCampusList);
|
|
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 });
|
|
runSite({ examId: userStore.curExam?.id });
|
|
runCampus({ examId: userStore.curExam?.id });
|
|
runCampus({ examId: userStore.curExam?.id });
|
|
|
|
+runProvince({ examId: userStore.curExam?.id });
|
|
|
|
+runExamRoom({ examId: userStore.curExam?.id });
|
|
|
|
|
|
const params = reactive({
|
|
const params = reactive({
|
|
subjectCode: "",
|
|
subjectCode: "",
|
|
@@ -75,6 +81,17 @@ const fields = computed(() => {
|
|
type: "select",
|
|
type: "select",
|
|
colSpan: 3,
|
|
colSpan: 3,
|
|
label: "省份",
|
|
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",
|
|
prop: "examSite",
|
|
@@ -103,7 +120,17 @@ const fields = computed(() => {
|
|
type: "select",
|
|
type: "select",
|
|
colSpan: 3,
|
|
colSpan: 3,
|
|
label: "考场号",
|
|
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",
|
|
prop: "scanned",
|