WANG 6 жил өмнө
parent
commit
3ecb0a01dc

+ 15 - 0
src/modules/examwork/view/examInfo.vue

@@ -117,6 +117,14 @@
                   >
                     修改
                   </el-button>
+                  <el-button
+                    v-if="rolePrivileges.update_exam"
+                    size="mini"
+                    type="info"
+                    @click="editOrgSettings(scope.row);"
+                  >
+                    学习中心特殊设置
+                  </el-button>
                   <el-button
                     v-if="
                       !scope.row.enable &&
@@ -341,6 +349,13 @@ export default {
         this.$router.push({ path: "/examwork/printExam/" + row.id });
       }
     },
+    editOrgSettings(row) {
+      if (row.examType == "OFFLINE") {
+        this.$router.push({
+          path: "/examwork/offlineExamOrgSettings/" + row.id
+        });
+      }
+    },
     showExamCourseSettingsDialog(row) {
       this.$router.push({ path: "/examwork/examCourseSettings/" + row.id });
     },

+ 10 - 3
src/modules/examwork/view/offlineExamOrgSettings.vue

@@ -1,14 +1,21 @@
 <template>
-  <div><section class="content"></section></div>
+  <div>
+    <section class="content"></section>
+    SB
+  </div>
 </template>
 
 <script>
 export default {
   data() {
-    return {};
+    return {
+      examId: null
+    };
   },
   methods: {},
-  created() {}
+  created() {
+    this.examId = this.$route.params.id;
+  }
 };
 </script>
 <style scoped></style>