瀏覽代碼

bug修改

zhangjie 3 年之前
父節點
當前提交
9d19de5dd0

+ 6 - 9
src/components/ExamRoomSelect.vue

@@ -44,15 +44,12 @@ export default {
         this.selected = val;
       },
     },
-    examId: {
-      immediate: true,
-      handler(val, oldval) {
-        if (val !== oldval) {
-          this.search("");
-          this.$emit("input", "");
-          this.$emit("change", {});
-        }
-      },
+    examId(val, oldval) {
+      if (val !== oldval) {
+        this.search("");
+        this.$emit("input", "");
+        this.$emit("change", {});
+      }
     },
   },
   methods: {

+ 1 - 0
src/features/examwork/StudentExamDetail/StudentExamDetail.vue

@@ -101,6 +101,7 @@
       <el-table-column :context="_self" label="操作" width="110" fixed="right">
         <div slot-scope="scope">
           <el-button
+            v-if="scope.row.finishTime"
             size="mini"
             type="primary"
             plain

+ 1 - 0
src/features/invigilation/OnlinePatrol/PatrolExamDetail.vue

@@ -234,6 +234,7 @@
         <invigilation-student
           ref="InvigilationStudent"
           :data="item"
+          show-type="patrol"
           @muted="videoMuted"
         ></invigilation-student>
       </div>

+ 15 - 4
src/features/invigilation/common/InvigilationStudent.vue

@@ -63,6 +63,10 @@ export default {
         return {};
       },
     },
+    showType: {
+      type: String,
+      default: "invigilation",
+    },
   },
   data() {
     return {
@@ -82,10 +86,17 @@ export default {
   },
   methods: {
     toDetail() {
-      this.$router.push({
-        name: "WarningDetail",
-        params: { recordId: this.data.examRecordId },
-      });
+      if (this.showType === "invigilation") {
+        this.$router.push({
+          name: "WarningDetail",
+          params: { recordId: this.data.examRecordId },
+        });
+      } else {
+        this.$router.push({
+          name: "PatrolWarningDetail",
+          params: { recordId: this.data.examRecordId },
+        });
+      }
     },
     toLargeView() {
       this.muted = true;