|
@@ -15,7 +15,7 @@
|
|
|
<QuestionNavView :paperStruct="paperStruct" :validQuestions="validQuestions" />
|
|
|
</div>
|
|
|
<div class="camera">
|
|
|
- camera
|
|
|
+ <!-- <FaceRecognition width="100%" height="100%" :showRecognizeButton="false" /> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -28,6 +28,7 @@ import QuestionFilters from "./QuestionFilters.vue";
|
|
|
import QuestionView from "./QuestionView.vue";
|
|
|
import ArrowNavView from "./ArrowNavView.vue";
|
|
|
import QuestionNavView from "./QuestionNavView.vue";
|
|
|
+import FaceRecognition from "../../../components/FaceRecognition/FaceRecognition";
|
|
|
|
|
|
export default {
|
|
|
name: "ExamingHome",
|
|
@@ -113,7 +114,8 @@ export default {
|
|
|
this.nextExamQuestion = this.validQuestions[this.examQuestion.orders];
|
|
|
},
|
|
|
async submitPaper() {
|
|
|
- const res = await this.$http.get("/api/exam_control/submit");
|
|
|
+ //FIXME: submit precondition
|
|
|
+ await this.$http.get("/api/exam_control/submit");
|
|
|
this.$router.push("/");
|
|
|
}
|
|
|
},
|
|
@@ -123,7 +125,8 @@ export default {
|
|
|
QuestionFilters,
|
|
|
QuestionView,
|
|
|
ArrowNavView,
|
|
|
- QuestionNavView
|
|
|
+ QuestionNavView,
|
|
|
+ FaceRecognition
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -137,10 +140,11 @@ export default {
|
|
|
"header header"
|
|
|
"main side";
|
|
|
grid-template-rows: 80px 1fr;
|
|
|
- grid-template-columns: 1fr 300px;
|
|
|
+ grid-template-columns: 1fr 400px;
|
|
|
|
|
|
height: 100vh;
|
|
|
}
|
|
|
+
|
|
|
.header {
|
|
|
/* display: flex;
|
|
|
flex-direction: row; */
|
|
@@ -166,6 +170,26 @@ export default {
|
|
|
display: grid;
|
|
|
|
|
|
grid-area: side;
|
|
|
+
|
|
|
+ grid-template-rows: 1fr 300px;
|
|
|
+
|
|
|
background-color: #f5f5f5;
|
|
|
}
|
|
|
+
|
|
|
+.camera {
|
|
|
+ align-self: flex-end;
|
|
|
+ justify-self: flex-end;
|
|
|
+}
|
|
|
+
|
|
|
+@media screen and (max-height: 768px) {
|
|
|
+ .container {
|
|
|
+ grid-template-rows: 50px 1fr;
|
|
|
+ }
|
|
|
+ .header {
|
|
|
+ height: 50px;
|
|
|
+ }
|
|
|
+ .side {
|
|
|
+ grid-template-rows: 1fr 200px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|