|
@@ -21,19 +21,17 @@
|
|
|
examState ==
|
|
|
43 ? "停止人脸识别" : examState == 42 ? "正在测试" : "请初始化" }})</div>
|
|
|
<!-- <div @click="getProcess">走一套流程</div> -->
|
|
|
-
|
|
|
+ <div @click="getChooseStudent" v-if="examState == 41 || (examState == 43 && !faceCheckStu.student_id)">2、选择学生</div>
|
|
|
+ <div @click="getRetestFace" v-if="examState == 43 || examState == 42">4、重新识别</div>
|
|
|
<div v-if="needStart">
|
|
|
<div @click="getOpenOneTestAndStartFace" v-if="examState == 3 || examState == 40">1、开始识别</div>
|
|
|
<div @click="getStopFace" v-if="examState == 41">3、停止人脸识别</div>
|
|
|
<div @click="getStartOneTest" v-if="examState == 43">5、开始测试</div>
|
|
|
</div>
|
|
|
- <div @click="getChooseStudent" v-if="examState == 41 || (examState == 43 && !faceCheckStu.student_id)">2、选择学生</div>
|
|
|
- <div @click="getRetestFace" v-if="examState == 43 || examState == 42">4、重新识别</div>
|
|
|
<div @click="getRetest" v-if="(examState == 3 && faceCheckStu.student_id) || examState == 42">再测一次</div>
|
|
|
<div @click="confirmExit">退出</div>
|
|
|
-
|
|
|
<FaceWindow ref="faceWindowRef" :faceCheckStu="faceCheckStu" />
|
|
|
- <ChooseStudent ref="chooseStudentRef" @returnData="backStudent" />
|
|
|
+ <ChooseStudent ref="chooseStudentRef" @returnData="returnStudent" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -316,7 +314,7 @@ const getChooseStudent = () => {
|
|
|
/**
|
|
|
* 返回被选学生
|
|
|
*/
|
|
|
-const backStudent = (data: any) => {
|
|
|
+const returnStudent = (data: any) => {
|
|
|
faceCheckStu.value = data;
|
|
|
faceWindowRef.value.open();
|
|
|
getStopFace();
|
|
@@ -501,6 +499,11 @@ onMounted(() => {
|
|
|
userInfo.value = JSON.parse(myInfo);
|
|
|
let dic: any = dataDictionary;
|
|
|
unit.value = dic.unit[project];
|
|
|
+ if (parameter.value.gesture == 'true') {
|
|
|
+ parameter.value.gesture = true
|
|
|
+ } else {
|
|
|
+ parameter.value.gesture = false
|
|
|
+ }
|
|
|
//需要开始按钮的项目
|
|
|
if (["jumprope", "skiprope", "jumpingjack", "situp"].includes(project)) {
|
|
|
needStart.value = true;
|