|
@@ -52,13 +52,14 @@ import { onMounted, ref, watch } from "vue";
|
|
|
import { message } from "ant-design-vue";
|
|
|
|
|
|
import { getBaseDataConfig } from "@/ap/baseDataConfig";
|
|
|
-import { useUserStore } from "@/store";
|
|
|
+import { useUserStore, useDataCheckStore } from "@/store";
|
|
|
import useModal from "@/hooks/useModal";
|
|
|
|
|
|
defineOptions({
|
|
|
name: "ModifyPaperType",
|
|
|
});
|
|
|
|
|
|
+const dataCheckStore = useDataCheckStore();
|
|
|
const editing = ref(false);
|
|
|
/* modal */
|
|
|
const { visible, open, close } = useModal();
|
|
@@ -77,7 +78,11 @@ const paperType = ref("");
|
|
|
|
|
|
async function getConfig() {
|
|
|
const res = await getBaseDataConfig({ examId: userStore.curExam.id });
|
|
|
- paperTypeBarcodeContent.value = res.paperTypeBarcodeContent || [];
|
|
|
+ // paperTypeBarcodeContent.value = res.paperTypeBarcodeContent || [];
|
|
|
+ paperTypeBarcodeContent.value =
|
|
|
+ (res.paperTypeBarcodeContent || []).find((item: any) => {
|
|
|
+ return item.code == dataCheckStore.curStudent?.subjectCode;
|
|
|
+ })?.paperTypeBarcodeContent || [];
|
|
|
}
|
|
|
|
|
|
function selectPaperType(val: string) {
|