WANG 6 years ago
parent
commit
eb23daa0f2
2 changed files with 11 additions and 1 deletions
  1. 5 0
      src/modules/examwork/routes/routes.js
  2. 6 1
      src/modules/examwork/view/examInfo.vue

+ 5 - 0
src/modules/examwork/routes/routes.js

@@ -9,6 +9,7 @@ import practiceExam from "../view/practiceExam.vue";
 import offlineExam from "../view/offlineExam.vue";
 import printExam from "../view/printExam.vue";
 import offlineExamOrgSettings from "../view/offlineExamOrgSettings.vue";
+import onlineExamOrgSettings from "../view/onlineExamOrgSettings.vue";
 import Tips from "../../portal/views/tips/Tips.vue";
 
 export default [
@@ -64,6 +65,10 @@ export default [
       {
         path: "offlineExamOrgSettings/:id",
         component: offlineExamOrgSettings
+      },
+      {
+        path: "onlineExamOrgSettings/:id",
+        component: onlineExamOrgSettings
       }
     ]
   }

+ 6 - 1
src/modules/examwork/view/examInfo.vue

@@ -170,7 +170,8 @@
                         :disabled="
                           !(
                             rolePrivileges.update_exam &&
-                            scope.row.examType == 'OFFLINE'
+                            (scope.row.examType == 'OFFLINE' ||
+                              scope.row.examType == 'ONLINE')
                           )
                         "
                         size="mini"
@@ -347,6 +348,10 @@ export default {
         this.$router.push({
           path: "/examwork/offlineExamOrgSettings/" + row.id
         });
+      } else if (row.examType == "ONLINE") {
+        this.$router.push({
+          path: "/examwork/onlineExamOrgSettings/" + row.id
+        });
       }
     },
     showExamCourseSettingsDialog(row) {