Преглед изворни кода

fix in code btn,update in photoGet,details in monitor.md

171250600 пре 5 година
родитељ
комит
d82af2f1f5
3 измењених фајлова са 3 додато и 10 уклоњено
  1. 1 5
      monitor.md
  2. 0 3
      src/views/exam/ExamPane.vue
  3. 2 2
      src/views/exam/components/CodeEditor.vue

+ 1 - 5
monitor.md

@@ -1,7 +1,3 @@
 如果要取消监考,只要将exampane中的monitor方法中的具体内容注释掉。
 如果要取消监考,只要将exampane中的monitor方法中的具体内容注释掉。
 
 
-如果输入出现问题,可以先注释掉exampane中的focusauto。
-
-2021/5/6
-
-考前确认界面添加了新的判断逻辑,只有后端接收到超过100张人脸照片后才会允许进入下一个页面,目前后端没有部署,建议这个页面刷新成不监考的页面然后进入下一页面
+如果输入出现问题,可以先注释掉exampane中的focusauto。

+ 0 - 3
src/views/exam/ExamPane.vue

@@ -567,7 +567,6 @@ export default Vue.extend({
             if ((InputFocus as any).codeFlag == 1) {
             if ((InputFocus as any).codeFlag == 1) {
               _this.flag = _this.flag - 1
               _this.flag = _this.flag - 1
               _this.visible1 = true
               _this.visible1 = true
-              //alert("examp0")
             }
             }
           }, 1)
           }, 1)
         } else if (
         } else if (
@@ -578,9 +577,7 @@ export default Vue.extend({
           setTimeout(function() {
           setTimeout(function() {
             if ((InputFocus as any).codeFlag == 1) {
             if ((InputFocus as any).codeFlag == 1) {
               _this.allowNum = _this.allowNum - 1
               _this.allowNum = _this.allowNum - 1
-              //alert(y);
               _this.visible = true
               _this.visible = true
-              //alert("examp1")
               _this.changeFlagTo0()
               _this.changeFlagTo0()
               _this.timeCount()
               _this.timeCount()
             }
             }

+ 2 - 2
src/views/exam/components/CodeEditor.vue

@@ -94,12 +94,12 @@ export default Vue.extend({
       setTimeout(function() {
       setTimeout(function() {
         if ((InputFocus as any).ExamFlag == 0&&InputFocus.InputFlag == 1) {
         if ((InputFocus as any).ExamFlag == 0&&InputFocus.InputFlag == 1) {
           _this.changeCodeFlagTo1();
           _this.changeCodeFlagTo1();
-          //(InputFocus as any).cheatFlag = 1
+          (InputFocus as any).cheatFlag = 1
           _this.$emit('focusAuto')
           _this.$emit('focusAuto')
         } else {
         } else {
           ;(InputFocus as any).codeFlag = 1
           ;(InputFocus as any).codeFlag = 1
         }
         }
-      }, 2)
+      }, 100)
     },
     },
 
 
     initMonaco() {
     initMonaco() {