Browse Source

日常开发

林旭祥 10 months ago
parent
commit
b34d0ca5e4
1 changed files with 7 additions and 4 deletions
  1. 7 4
      src/views/train/run.vue

+ 7 - 4
src/views/train/run.vue

@@ -213,10 +213,13 @@ const getRetestFace = () => {
  * 开始测试
  * 开始测试
 */
 */
 const getStartOneTest = () => {
 const getStartOneTest = () => {
-  // if (!faceCheckStu.value.student_id) {
-  //   proxy?.$modal.msgError("请选择人员!");
-  //   return false;
-  // }
+  let list = faceStudentList.value.filter((item: any) => {
+    return item.student_id;
+  })
+  if (!list.length) {
+    proxy?.$modal.msgError("请选择人员!");
+    return false;
+  }
   startOneTest(() => {
   startOneTest(() => {
     showTestAgain.value = true;
     showTestAgain.value = true;
     //计时项目才开
     //计时项目才开