林旭祥 hai 6 meses
pai
achega
3e15786397
Modificáronse 1 ficheiros con 10 adicións e 10 borrados
  1. 10 10
      src/views/train/multiple.vue

+ 10 - 10
src/views/train/multiple.vue

@@ -124,16 +124,16 @@ const getOpenOneTestAndStartFace = () => {
  * 停止人脸识别
 */
 const getStopFace = async () => {
-  // let flag = false;
-  // for (let i = 0; i < testList.value.length; i++) {
-  //   if (testList.value[i] && testList.value[i].faceCheckStu?.student_id) {
-  //     flag = true;
-  //   }
-  // }
-  // if (!flag) {
-  //   proxy?.$modal.msgWarning("请选择人员!");
-  //   return false;
-  // }
+  let flag = false;
+  for (let i = 0; i < testList.value.length; i++) {
+    if (testList.value[i] && testList.value[i].faceCheckStu?.student_id) {
+      flag = true;
+    }
+  }
+  if (!flag) {
+    proxy?.$modal.msgWarning("请选择人员!");
+    return false;
+  }
   examState.value = 43;
   for (let i = 0; i < multipleItemRefList.value.length; i++) {
     multipleItemRefList.value[i].getStopFace()