刘洋 7 ماه پیش
والد
کامیت
87ee0c8dc7
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 5 1
      src/views/order/reservation-set/index.vue
  2. 1 1
      src/views/order/student-manage/index.vue

+ 5 - 1
src/views/order/reservation-set/index.vue

@@ -191,7 +191,7 @@
     getDateAndTimeList({ examSiteId: searchModel.examSiteId || null })
       .then((res: any) => {
         tableData.value = (res || []).map((item: any) => {
-          item.batchStatus = false;
+          item.batchStatus = item.timePeriodList.every((v: any) => v.enable);
           return item;
         });
         tableKey.value = `${Date.now()}`;
@@ -212,6 +212,10 @@
     tableData.value[rowIndex].timePeriodList.find(
       (item: any) => item.timePeriodStr === head
     ).enable = bool;
+    tableData.value[rowIndex].batchStatus = tableData.value[
+      rowIndex
+    ].timePeriodList.every((v: any) => v.enable);
+    tableKey.value = `${Date.now()}`;
   };
 
   const switchBatchChange = (rowIndex: number, bool: boolean) => {

+ 1 - 1
src/views/order/student-manage/index.vue

@@ -54,7 +54,7 @@
       <upload-button
         upload-url="/api/admin/student/upload/photo"
         btn-text="上传照片"
-        accept="image/*"
+        accept=".png,.jpg,.jpeg"
         @upload-success="toPage(1)"
       ></upload-button>
     </a-space>