Bläddra i källkod

fix一只bug,也要提交

刘洋 8 månader sedan
förälder
incheckning
3d3e306c7e

+ 1 - 1
src/render/views/AbsentCheck/ResetDialog.vue

@@ -8,7 +8,7 @@
     <div class="reset-tips">
       <h3>生成条件</h3>
       <p>1.客观题未作答+主观题有作答的考生;</p>
-      <p>2.客观题未作答+主观题有作答+卡1或卡2任一题卡考号</p>
+      <p>2.客观题未作答+主观题有作答+卡1或卡2任一题卡考号</p>
       <p>
         填涂≧
         <a-input-number

+ 5 - 1
src/render/views/DataCheck/QuestionPanel.vue

@@ -41,7 +41,11 @@
         </a-radio-group>
       </a-descriptions-item>
     </a-descriptions>
-    <div v-if="!simple" ref="panelBodyRef" class="panel-body">
+    <div
+      v-if="!simple && dataCheckStore.curPage?.question"
+      ref="panelBodyRef"
+      class="panel-body"
+    >
       <div class="panel-body-title">
         <h4>客观题</h4>
         <p>多于一个填涂显示>号,未填涂显示#号</p>

+ 12 - 1
src/render/views/ScanManage/ImageView.vue

@@ -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();