Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
eac05aab
Commit
eac05aab
authored
Jan 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
db9aea5b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
8 deletions
+45
-8
question-upload.vue
src/components/question/question-upload.vue
+13
-6
question.vue
src/pages/course/question.vue
+16
-1
questionlist.vue
src/pages/course/questionlist.vue
+16
-1
No files found.
src/components/question/question-upload.vue
View file @
eac05aab
...
...
@@ -52,12 +52,20 @@
<template>
<span>
第
{{
subIndex
+
1
}}
小题
{{
subItem
.
SubTitle
}}
</span><br
/>
</
template
>
<
template
v-if=
" subItem.QuestionKey=='single'||subItem.QuestionKey=='multiple'|| subItem.QuestionKey=='single-number'"
<
template
v-if=
" subItem.QuestionKey=='single'||subItem.QuestionKey=='multiple'|| subItem.QuestionKey=='single-number'"
v-for=
"childItem in subItem.SubAnwser"
>
<span>
{{
childItem
.
Name
}}
.
{{
childItem
.
Content
}}
</span><br
/>
<template
v-if=
"childItem.Content.indexOf('
<img
')
>
0">
<span>
{{
childItem
.
Name
}}
.
<b
v-html=
"childItem.Content"
></b></span>
</
template
>
<
template
v-else
>
<span>
{{
childItem
.
Name
}}
.
{{
childItem
.
Content
}}
</span>
</
template
>
<br
/>
</template>
</span>
<
template
v-if=
"subItem.QuestionKey=='single'||subItem.QuestionKey=='multiple'|| subItem.QuestionKey=='single-number'"
>
<
template
v-if=
"subItem.QuestionKey=='single'||subItem.QuestionKey=='multiple'|| subItem.QuestionKey=='single-number'"
>
<template
v-for=
"childItem in subItem.SubAnwser"
>
<span
v-if=
"childItem.IsAnswer"
>
答案:
{{
childItem
.
Name
}}
</span>
<br
v-if=
"childItem.IsAnswer"
/>
...
...
@@ -190,9 +198,8 @@
},
},
created
()
{
if
(
!
this
.
CourseId
)
{
this
.
CourseId
=
0
;
if
(
!
this
.
CourseId
)
{
this
.
CourseId
=
0
;
}
},
mounted
()
{
...
...
src/pages/course/question.vue
View file @
eac05aab
...
...
@@ -21,6 +21,11 @@
<q-input
@
change=
"research"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Title"
label=
"关键字"
@
clear=
"research"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"research"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.QCategoryId"
:options=
"questionCategoryList"
emit-value
map-options
label=
"分类"
multiple
clearable
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"research"
standout=
"bg-primary text-white"
option-value=
"QId"
option-label=
"Name"
v-model=
"msg.QuestionTypeId"
:options=
"questionTypeList"
emit-value
map-options
label=
"题型"
multiple
...
...
@@ -92,7 +97,8 @@
queryQuestionPageList
,
queryQuestionTypeList
,
deleteQuestion
,
queryDifficultyType
queryDifficultyType
,
queryQuestionCategory
}
from
'../../api/question/question'
;
import
questionForm
from
'../../components/question/question-form'
;
import
questionUpload
from
'../../components/question/question-upload'
;
...
...
@@ -159,6 +165,7 @@
PointName
:
""
,
//知识点
QuestionTypeId
:
[],
//题型
DifficultyType
:
[],
//难易程度
QCategoryId
:
[],
//分类
},
pageCount
:
0
,
questionTypeList
:
[],
//问题类型列表
...
...
@@ -167,6 +174,7 @@
questionObj
:
null
,
importType
:
0
,
//导入类型(1-模板导入;2-智能导入)
isShowImportUpload
:
false
,
//是否显示导入模板
questionCategoryList
:
[]
}
},
created
()
{
...
...
@@ -175,11 +183,18 @@
}
this
.
getQuestionType
();
this
.
getDifficultyType
();
this
.
getQuestionCategory
();
},
mounted
()
{
this
.
getQuestionList
();
},
methods
:
{
//获取问题大类
getQuestionCategory
()
{
queryQuestionCategory
().
then
(
res
=>
{
this
.
questionCategoryList
=
res
.
Data
;
})
},
research
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getQuestionList
();
...
...
src/pages/course/questionlist.vue
View file @
eac05aab
...
...
@@ -20,6 +20,11 @@
<div
class=
"col-3"
>
<q-input
@
change=
"research"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Title"
label=
"关键字"
@
clear=
"research"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"research"
standout=
"bg-primary text-white"
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.QCategoryId"
:options=
"questionCategoryList"
emit-value
map-options
label=
"分类"
multiple
clearable
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"research"
standout=
"bg-primary text-white"
option-value=
"QId"
option-label=
"Name"
...
...
@@ -92,7 +97,8 @@
queryQuestionPageList
,
queryQuestionTypeList
,
deleteQuestion
,
queryDifficultyType
queryDifficultyType
,
queryQuestionCategory
}
from
'../../api/question/question'
;
import
questionForm
from
'../../components/question/question-form'
;
import
questionUpload
from
'../../components/question/question-upload'
;
...
...
@@ -159,6 +165,7 @@
PointName
:
""
,
//知识点
QuestionTypeId
:
[],
//题型
DifficultyType
:
[],
//难易程度
QCategoryId
:[],
//分类
},
pageCount
:
0
,
questionTypeList
:
[],
//问题类型列表
...
...
@@ -167,6 +174,7 @@
questionObj
:
null
,
importType
:
0
,
//导入类型(1-模板导入;2-智能导入)
isShowImportUpload
:
false
,
//是否显示导入模板
questionCategoryList
:
[],
//问题分类
}
},
created
()
{
...
...
@@ -175,11 +183,18 @@
}
this
.
getQuestionType
();
this
.
getDifficultyType
();
this
.
getQuestionCategory
();
},
mounted
()
{
this
.
getQuestionList
();
},
methods
:
{
//获取问题大类
getQuestionCategory
()
{
queryQuestionCategory
().
then
(
res
=>
{
this
.
questionCategoryList
=
res
.
Data
;
})
},
research
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getQuestionList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment