+
{{ $t('exam.nameOfTestPaper') +': ' + examDetails.name }}
-
-
+
+
{{ $t('exam.examStartTime') +':' }}
@@ -40,13 +40,13 @@
+
+ {{ $t('exam.startTheExam') }}
+ {{ $t('global.back') }}
+
-
- {{ $t('exam.startTheExam') }}
- {{ $t('global.back') }}
-
-
+
diff --git a/src/views/exam/index.vue b/src/views/exam/index.vue
index caf1cafde..f04d75329 100644
--- a/src/views/exam/index.vue
+++ b/src/views/exam/index.vue
@@ -40,37 +40,37 @@ import { UrlConfig } from '@/router/index';
import localStore from 'storejs';
export default {
- name: 'ExamHome',
- data() {
- return {
- tableData: [],
- loading: false
- };
- },
- watch: {
- '$route.params.subSystem': function(newVal) {
- this.loadInitPage();
- }
- },
- mounted() {
- this.loadInitPage();
- },
- methods: {
- loadInitPage() {
- if (this.$route.params.subSystem) {
- getSubSystemDetail(this.$route.params.subSystem).then(resp =>{
- if (resp.data) {
- this.tableData = resp.data.lessonList;
- }
- }).catch(()=>{
- this.$messageBox(this.$t('error.obtainCourseInformationFailed'));
- });
- }
- },
- goLesson(row) {
- localStore.set('examDetail'+this.$route.params.subSystem, `${UrlConfig.trainingPlatform.course}/${this.$route.params.subSystem}?lessonId=${row.id}`);
- this.$router.push({ path: `${UrlConfig.trainingPlatform.course}/${this.$route.params.subSystem}`, query: {lessonId: row.id}});
- }
- }
+ name: 'ExamHome',
+ data() {
+ return {
+ tableData: [],
+ loading: false
+ };
+ },
+ watch: {
+ '$route.params.subSystem': function(newVal) {
+ this.loadInitPage();
+ }
+ },
+ mounted() {
+ this.loadInitPage();
+ },
+ methods: {
+ loadInitPage() {
+ if (this.$route.params.subSystem) {
+ getSubSystemDetail(this.$route.params.subSystem).then(resp =>{
+ if (resp.data) {
+ this.tableData = resp.data.lessonList;
+ }
+ }).catch(()=>{
+ this.$messageBox(this.$t('error.obtainCourseInformationFailed'));
+ });
+ }
+ },
+ goLesson(row) {
+ localStore.set('examDetail' + this.$route.params.subSystem, `${UrlConfig.trainingPlatform.course}/${this.$route.params.subSystem}?lessonId=${row.id}`);
+ this.$router.push({ path: `${UrlConfig.trainingPlatform.course}/${this.$route.params.subSystem}`, query: {lessonId: row.id}});
+ }
+ }
};
diff --git a/src/views/exam/result.vue b/src/views/exam/result.vue
index f277c59db..8c6f93e6c 100644
--- a/src/views/exam/result.vue
+++ b/src/views/exam/result.vue
@@ -45,82 +45,82 @@ import { submitExam } from '@/api/management/userexam';
import { UrlConfig } from '@/router/index';
export default {
- name: 'ExamResult',
- props: {
- examDetails: {
- type: Object,
- default: null
- }
- },
- data() {
- return {
- resultModel: {
- trainingName: '',
- score: 0
- },
- loading: true
- };
- },
- computed: {
- height() {
- return this.$store.state.app.height - 50;
- }
- },
- mounted() {
- this.submitExamData();
- },
- methods: {
- getSummaries(param) {
- const { columns, data } = param;
- const sums = [];
- columns.forEach((column, index) => {
- if (index === 0) {
- sums[index] = this.$t('exam.totalScore');
- return;
- }
- const values = data.map(item => Number(item[column.property]));
- if (!values.every(value => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr);
- if (!isNaN(value)) {
- return prev + curr;
- } else {
- return prev;
- }
- }, 0);
- sums[index] += this.$t('exam.points');
- } else {
- sums[index] = 'N/A';
- }
- });
- return sums;
- },
- submitExamData() {
- this.loading = true;
- let count = 3;
- const userExamId = this.$route.params.userExamId;
- let interval = setInterval(() => {
- submitExam(userExamId).then(response => {
- this.loading = false;
- this.resultModel = response.data;
- clearInterval(interval);
- interval = null;
- }).catch(() => {
- if (count-- < 0) {
- this.loading = false;
- clearInterval(interval);
- interval = null;
- this.$messageBox(this.$t('error.submitExamFailed'));
- }
- });
- }, 1000);
+ name: 'ExamResult',
+ props: {
+ examDetails: {
+ type: Object,
+ default: null
+ }
+ },
+ data() {
+ return {
+ resultModel: {
+ trainingName: '',
+ score: 0
+ },
+ loading: true
+ };
+ },
+ computed: {
+ height() {
+ return this.$store.state.app.height - 50;
+ }
+ },
+ mounted() {
+ this.submitExamData();
+ },
+ methods: {
+ getSummaries(param) {
+ const { columns, data } = param;
+ const sums = [];
+ columns.forEach((column, index) => {
+ if (index === 0) {
+ sums[index] = this.$t('exam.totalScore');
+ return;
+ }
+ const values = data.map(item => Number(item[column.property]));
+ if (!values.every(value => isNaN(value))) {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr);
+ if (!isNaN(value)) {
+ return prev + curr;
+ } else {
+ return prev;
+ }
+ }, 0);
+ sums[index] += this.$t('exam.points');
+ } else {
+ sums[index] = 'N/A';
+ }
+ });
+ return sums;
+ },
+ submitExamData() {
+ this.loading = true;
+ let count = 3;
+ const userExamId = this.$route.params.userExamId;
+ let interval = setInterval(() => {
+ submitExam(userExamId).then(response => {
+ this.loading = false;
+ this.resultModel = response.data;
+ clearInterval(interval);
+ interval = null;
+ }).catch(() => {
+ if (count-- < 0) {
+ this.loading = false;
+ clearInterval(interval);
+ interval = null;
+ this.$messageBox(this.$t('error.submitExamFailed'));
+ }
+ });
+ }, 1000);
- },
- back() {
- const examId = this.resultModel.examId;
- this.$router.push({path: `${UrlConfig.trainingPlatform.examDetail}/${examId}`, query: { subSystem: this.$route.query.subSystem }});
- }
- }
+ },
+ back() {
+ const examId = this.resultModel.examId;
+ this.$router.push({path: `${UrlConfig.trainingPlatform.examDetail}/${examId}`, query: { subSystem: this.$route.query.subSystem }});
+ }
+ }
};
diff --git a/src/views/planMonitor/index.vue b/src/views/planMonitor/index.vue
deleted file mode 100644
index 79c18c59f..000000000
--- a/src/views/planMonitor/index.vue
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
diff --git a/src/views/teach/detail/index.vue b/src/views/teach/detail/index.vue
index 14603be37..f8387f326 100644
--- a/src/views/teach/detail/index.vue
+++ b/src/views/teach/detail/index.vue
@@ -1,12 +1,12 @@
-
-
+
+
{{ $t('teach.courseName') }}: {{ courseModel.name }}
-
+
-
+
@@ -46,7 +42,7 @@
{{ $t('teach.authorityTransferred') }}
{{ $t('teach.returnCourseList') }}
-
+