diff --git a/source/vue/xzs-admin/src/views/exam/question/edit/multiple-choice.vue b/source/vue/xzs-admin/src/views/exam/question/edit/multiple-choice.vue index f8cc6ee..42f1e31 100644 --- a/source/vue/xzs-admin/src/views/exam/question/edit/multiple-choice.vue +++ b/source/vue/xzs-admin/src/views/exam/question/edit/multiple-choice.vue @@ -196,6 +196,24 @@ export default { }, resetForm () { this.$refs['form'].resetFields() + this.form = { + id: null, + questionType: 2, + gradeLevel: null, + subjectId: null, + title: '', + items: [ + { id: null, prefix: 'A', content: '' }, + { id: null, prefix: 'B', content: '' }, + { id: null, prefix: 'C', content: '' }, + { id: null, prefix: 'D', content: '' } + ], + analyze: '', + correct: '', + correctArray: [], + score: '', + difficult: 0 + } }, ...mapActions('exam', { initSubject: 'initSubject' }), ...mapActions('tagsView', { delCurrentView: 'delCurrentView' }) diff --git a/source/xzs/src/main/resources/static/admin/index.html b/source/xzs/src/main/resources/static/admin/index.html index 0754213..57c714a 100644 --- a/source/xzs/src/main/resources/static/admin/index.html +++ b/source/xzs/src/main/resources/static/admin/index.html @@ -13,4 +13,4 @@ hm.src = 'https://hm.baidu.com/hm.js?cd8218cd51f800ed2b73e5751cb3f4f9' var s = document.getElementsByTagName('script')[0] s.parentNode.insertBefore(hm, s) - })()