nikang 6 rokov pred
rodič
commit
7736f2deb2
1 zmenil súbory, kde vykonal 50 pridanie a 0 odobranie
  1. 50 0
      src/modules/marking/views/view_paper.vue

+ 50 - 0
src/modules/marking/views/view_paper.vue

@@ -0,0 +1,50 @@
+<template>
+    <div style="position: relative">
+        <div style="position: absolute;right: 10px;">
+            <el-button type="primary" @click="back">返回</el-button>
+        </div><br>
+        <div style="margin-left:50px;width: 95%;height: 80%" v-html="html">
+        </div>
+    </div>
+</template>
+<script>
+    import { mapState } from 'vuex'
+    import { CORE_API,EXAM_WORK_API,MARKING_API,DATA_PROCESS_API,OE_API } from '../constants/constants'
+    export default {
+        data() {
+            return {
+                workId:'',
+                examId:'',
+                studentPaperId:'',
+                examType:'',
+                html:'',
+            }
+        },
+        computed: {
+            ...mapState({ user: state => state.user }),
+        },
+        methods: {
+            back(){
+                var url = '/index/mark_paper_check/'+ this.workId + "/" + this.examId+"/"+this.examType;
+                this.$router.push({
+                    path:url
+                })
+            },
+            getStudentPaper(){
+                var url = DATA_PROCESS_API + "/studentPapers/" + this.studentPaperId+"/"+this.examType;;
+                this.$http.get(url).then((response)=>{
+                    console.log(response);
+                    this.html = response.data.studentSubjectiveHtml;
+
+                })
+            }
+        },
+        created(){
+            this.workId = this.$route.params.workId
+            this.examId = this.$route.params.examId
+            this.studentPaperId = this.$route.params.studentPaperId
+            this.examType = this.$route.params.examType
+            this.getStudentPaper();
+        }
+    }
+</script>