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
0b9cd057
Commit
0b9cd057
authored
Jan 18, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
94ed15d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
7 deletions
+29
-7
question-upload.vue
src/components/question/question-upload.vue
+29
-7
No files found.
src/components/question/question-upload.vue
View file @
0b9cd057
...
...
@@ -28,17 +28,17 @@
<div
style=
"margin-bottom:20px;"
>
<span>
{{
index
+
1
}}
. [
{{
item
.
QuestionTypeName
}}
]
<template
v-if=
"IsEdit&&ClickIndex==index"
>
<input
type=
"text"
v-model=
"item.Title"
/>
<input
type=
"text"
v-model=
"item.Title"
/>
</
template
>
<
template
v-else
>
{{
item
.
Title
}}
<span
v-html=
"item.Title"
></span>
</
template
>
<a
style=
"cursor:pointer;color:blue;"
@
click=
"EditQuestion(item,index)"
>
修改
</a>
<a
style=
"cursor:pointer;color:red;"
@
click=
"DeleteQuestion(index)"
>
删除
</a>
<a
style=
"cursor:pointer;color:red;"
@
click=
"DeleteQuestion(index)"
>
删除
</a>
</span><br
/>
<!--选择题-->
<
template
v-if=
"item.QuestionTypeKey=='single'||item.QuestionTypeName=='multiple'"
<
template
v-if=
"item.QuestionTypeKey=='single'||item.QuestionTypeKey=='multiple'"
v-for=
"subItem in item.QuestionContentObj"
>
<span>
{{
subItem
.
Name
}}
.
{{
subItem
.
Content
}}
</span><br
/>
</
template
>
...
...
@@ -50,7 +50,28 @@
<
template
v-if=
"item.QuestionTypeKey=='fill-in'"
v-for=
"subItem in item.QuestionContentObj"
>
<span>
{{
subItem
.
Content
}}
</span><br
/>
</
template
>
<span>
答案:{{item.Answer}}
</span><br
/>
<!--阅读理解-->
<
template
v-if=
"item.QuestionTypeKey=='reading-comprehensio'"
>
<template
v-for=
"(subItem,subIndex) in item.QuestionContentObj"
>
<div>
<template>
<span>
第
{{
subIndex
+
1
}}
小题
{{
subItem
.
SubTitle
}}
</span><br
/>
</
template
>
<
template
v-if=
"subItem.QuestionKey=='single'||subItem.QuestionKey=='multiple'"
v-for=
"childItem in subItem.SubAnwser"
>
<span>
{{
childItem
.
Name
}}
.
{{
childItem
.
Content
}}
</span><br
/>
</
template
>
</div>
<
template
v-if=
"subItem.QuestionKey=='single'||subItem.QuestionKey=='multiple'"
>
<template
v-for=
"childItem in subItem.SubAnwser"
>
<span
v-if=
"childItem.IsAnswer"
>
答案:
{{
childItem
.
Name
}}
</span><br
/>
</
template
>
</template>
</template>
</template>
<
template
v-if=
"item.QuestionTypeKey!='reading-comprehensio'"
>
<span>
答案:
{{
item
.
Answer
}}
</span><br
/>
</
template
>
<
template
v-if=
"item.AnswerParse"
>
<span>
答案解析:
{{
item
.
AnswerParse
}}
</span><br
/>
</
template
>
...
...
@@ -192,6 +213,7 @@
},
//上传文件
UploadAttachment
(
files
)
{
this
.
questionData
=
[];
var
fileParams
=
{
Analysis
:
1
,
CourseId
:
this
.
CourseId
,
...
...
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