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
fbd776ab
Commit
fbd776ab
authored
Apr 06, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4d92dbb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
41 deletions
+6
-41
v-readingcomprehensio.vue
src/components/questiontype/v-readingcomprehensio.vue
+6
-41
No files found.
src/components/questiontype/v-readingcomprehensio.vue
View file @
fbd776ab
...
...
@@ -41,7 +41,6 @@
第
{{
index
+
1
}}
小题
<span
style=
"color:#A8A8B3;"
>
(
{{
item
.
QuestionName
}}
)
</span>
</div>
<div>
<i
class=
"iconfont icon-img_delete_small"
@
click
.
stop=
"deleteQuestion(index)"
></i>
</div>
</div>
</th>
...
...
@@ -55,7 +54,7 @@
<tbody
v-if=
"(commonIndex==index)&&!isShow"
>
<tr>
<td
colspan=
"3"
>
<
UeEditor
v-model=
"item.SubTitle"
:config=
"config"
></UeEditor
>
<
div
v-html=
"item.SubTitle"
></div
>
</td>
</tr>
<!--选择题-->
...
...
@@ -65,23 +64,21 @@
<td
style=
"width:40px;text-align:center;"
>
<template
v-if=
"item.QuestionKey=='single'||item.QuestionKey=='multiple'|| item.QuestionKey=='single-number'"
>
<div
class=
"Answer_List"
@
click=
"ChangeItem(item,subItem)"
:class=
"
{'Is_Answer':subItem.IsAnswer}">
<div
class=
"Answer_List"
:class=
"
{'Is_Answer':subItem.IsAnswer}">
{{
subItem
.
Name
}}
</div>
</
template
>
<
template
v-else-if=
"item.QuestionKey=='multiple'"
>
<div
class=
"Answer_List"
@
click=
"changeMutile(subItem)"
:class=
"
{'Is_Answer':subItem.IsAnswer}">
<div
class=
"Answer_List"
:class=
"
{'Is_Answer':subItem.IsAnswer}">
{{
subItem
.
Name
}}
</div>
</
template
>
</td>
<td>
<div
class=
"InpDIV"
v-html=
"subItem.Content"
v-if=
"childIndex!=subIndex"
@
click=
"changeEdit(subIndex)
"
>
<div
class=
"InpDIV"
style=
"border:0;"
v-html=
"subItem.Content
"
>
</div>
<UeEditor
v-model=
"subItem.Content"
:config=
"config"
v-else
></UeEditor>
</td>
<td
style=
"width:40px;text-align:center;"
>
<i
class=
"iconfont icon-guanbi Tiku_DelIcon"
@
click=
"deleteOpion(item,subIndex)"
></i>
</td>
</tr>
</template>
...
...
@@ -92,12 +89,10 @@
第
{{
subIndex
+
1
}}
空
</td>
<td>
<div
class=
"InpDIV"
v-html=
"subItem.Content"
v-if=
"childIndex!=subIndex
"
@
click=
"changeEdit(subIndex)"
>
<div
class=
"InpDIV"
v-html=
"subItem.Content"
style=
"border:0;margin-top:-2px;
"
@
click=
"changeEdit(subIndex)"
>
</div>
<UeEditor
v-model=
"subItem.Content"
:config=
"config"
v-else
></UeEditor>
</td>
<td
style=
"width:30px;text-align:center;"
>
<i
class=
"iconfont icon-guanbi Tiku_DelIcon"
@
click=
"deleteOpion(item,subIndex)"
></i>
</td>
</tr>
</
template
>
...
...
@@ -118,43 +113,13 @@
<
template
v-if=
"item.QuestionKey=='short-answer'"
>
<tr
v-for=
"(subItem,subIndex) in item.SubAnwser"
>
<td
colspan=
"3"
>
<
UeEditor
v-model=
"subItem.Content"
:config=
"config"
></UeEditor
>
<
div
v-html=
"subItem.Content"
></div
>
</td>
</tr>
</
template
>
</tbody>
<tfoot
v-if=
"item.QuestionKey=='single' ||item.QuestionKey=='multiple'||item.QuestionKey=='fill-in'"
>
<tr>
<td
colspan=
"3"
>
<!--选择题-->
<
template
v-if=
"item.QuestionKey=='single' ||item.QuestionKey=='multiple'"
>
<a
class=
"addTiMuList"
@
click=
"addOption(item)"
>
<i
class=
"iconfont icon-add"
></i>
添加选项
</a>
</
template
>
<!--填空题-->
<
template
v-if=
"item.QuestionKey=='fill-in'"
>
<a
class=
"addTiMuList"
@
click=
"addFillIn(item)"
>
<i
class=
"iconfont icon-add"
></i>
添加更多
</a>
</
template
>
</td>
</tr>
</tfoot>
</table>
</template>
<br
/>
<q-btn-dropdown
color=
"primary"
label=
"添加小题"
style=
"margin:0 0 20px 5px;"
>
<q-list>
<q-item
v-for=
"(fItem,fIndex) in firstTypeList"
@
click=
"onItemClick(fItem)"
clickable
v-close-popup
:key=
"fIndex"
>
<q-item-section>
<q-item-label>
{{fItem.Name}}
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</template>
<
script
>
...
...
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