diff --git a/src/components/Home.vue b/src/components/Home.vue index 9efe608c9c8a8ce984949770ba8154f9a0c4adf9..a7ae97549e09a3fb9137be569eb8ad34694928e2 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -109,6 +109,16 @@ export default { "path": "/multipleProblem", "title": "多选创编" }, + { + "id": 203, + "path": "/essayProblem", + "title": "问答创编" + }, + { + "id": 204, + "path": "/judgmentProblem", + "title": "判断创编" + }, ], "title": "题库管理" diff --git a/src/components/Show.vue b/src/components/Show.vue index 81b3b7e196060de5fb8c579b420631ee36fc6077..5c4c83e6938102eb580e7e6fe5c159a589c13616 100644 --- a/src/components/Show.vue +++ b/src/components/Show.vue @@ -31,8 +31,11 @@ +
+ +
diff --git a/src/components/question/edit/essay.vue b/src/components/question/edit/essay.vue new file mode 100644 index 0000000000000000000000000000000000000000..d3e9bbc9fbd1bf4816afb8b5264cd49d630b65ab --- /dev/null +++ b/src/components/question/edit/essay.vue @@ -0,0 +1,217 @@ + + + diff --git a/src/components/question/edit/essay_question.vue b/src/components/question/edit/essay_question.vue new file mode 100644 index 0000000000000000000000000000000000000000..7f65ef462cf1c702e412d02278566d5254d379b6 --- /dev/null +++ b/src/components/question/edit/essay_question.vue @@ -0,0 +1,260 @@ + + + diff --git a/src/components/question/edit/judgment.vue b/src/components/question/edit/judgment.vue new file mode 100644 index 0000000000000000000000000000000000000000..7427a11584e732f350f6a511e30a5d8e303fcf4a --- /dev/null +++ b/src/components/question/edit/judgment.vue @@ -0,0 +1,234 @@ + + + diff --git a/src/components/question/questionList.vue b/src/components/question/questionList.vue index 16d8cf602fdbebbb61a3568fdec1c56a9c182f02..af6f46402350afa34a03a457e9b701b996e61d43 100644 --- a/src/components/question/questionList.vue +++ b/src/components/question/questionList.vue @@ -70,6 +70,12 @@ export default { {key :'2', name:'多选题', value:'question/edit/mmultiple'}, + {key :'3', + name:'问答题', + value:'question/edit/essay'}, //zjx 2023/5/4 + {key :'4', + name:'判断题', + value:'question/edit/judgment'}, ], levelEnum:[ @@ -97,7 +103,8 @@ export default { { key :'1',value:'单选题'}, { key :'2',value:'多选题'}, { key :'3',value:'简答题'}, - { key :'4',value:'作文'}, + { key :'4',value:'判断题'}, + // { key :'4',value:'作文'},//zjx ] , @@ -184,9 +191,21 @@ export default { // }) }, editQuestion (row) { - - let url ='singleProblem' - this.$router.push({ path: url ,query: { id: row.questionId }}) + //zjx,根据不同类型跳转到不同页面修改 + if(row.type == 1){ + this.$router.push({ path: 'singleProblem' ,query: { id: row.questionId }}) + } + if(row.type == 2){ + this.$router.push({ path: 'multipleProblem' ,query: { id: row.questionId }}) + } + if(row.type == 3){ + this.$router.push({ path: 'essayProblem' ,query: { id: row.questionId }}) + } + if(row.type == 4){ + this.$router.push({ path: 'judgmentProblem' ,query: { id: row.questionId }}) + } + // let url ='singleProblem' + // this.$router.push({ path: url ,query: { id: row.questionId }}) // this.$router.push({ path: url, query: { id: row.id } }) }, diff --git a/src/router/index.js b/src/router/index.js index 76d2767618ae811a2b06bafcc1a4fd32362eedd4..d6881fc0a641cc9cb41816324906500bb3409593 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -15,6 +15,8 @@ import problemmList from'../components/question/questionList.vue' import singleProblem from'../components/question/edit/single.vue' import multipleProblem from '../components/question/edit/mmultiple.vue' import file from'../components/File.vue' +import essayProblem from'../components/question/edit/essay.vue' +import judgmentProblem from'../components/question/edit/judgment.vue' //后期还需要配置一些页面 404 之类的 还有不同权限的分配等等 Vue.use(VueRouter) @@ -43,7 +45,9 @@ const routes = [ { path:'/multipleProblem', component: multipleProblem}, { path:'/correctList', component: correctList}, { path:'/readed', component: readed}, - { path:'/file', component: file} + { path:'/file', component: file}, + { path:'/essayProblem', component: essayProblem}, + { path:'/judgmentProblem', component: judgmentProblem} ], }