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
18ce8843
Commit
18ce8843
authored
Apr 06, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2d385e0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
51 deletions
+12
-51
v-fillin.vue
src/components/questiontype/v-fillin.vue
+2
-41
questionInfo.vue
src/pages/course/questionInfo.vue
+10
-10
No files found.
src/components/questiontype/v-fillin.vue
View file @
18ce8843
...
...
@@ -21,21 +21,12 @@
第
{{
index
+
1
}}
空
</el-checkbox>
</td>
<td>
<div
class=
"InpDIV"
v-html=
"item.Content"
v-if=
"commonIndex!=index"
@
click=
"changeEdit(index)"
></div>
<UeEditor
v-model=
"item.Content"
:config=
"config"
v-else
></UeEditor>
</td>
<td
style=
"width:30px;text-align:center;"
>
<i
class=
"iconfont icon-guanbi Tiku_DelIcon"
@
click=
"deleteOpion(index)"
></i>
<div
class=
"InpDIV"
v-html=
"item.Content"
></div>
</td>
</tr>
</table>
<a
class=
"addTiMuList"
@
click=
"addOption()"
>
<i
class=
"iconfont icon-add"
></i>
添加更多
</a>
<br
/>
<br
/>
<el-checkbox
v-model=
"setOption.IsMutex"
:true-label=
"1"
:false-label=
"0"
><span
style=
"font-size:12px;"
>
答案顺序打乱也判正确
</span></el-checkbox>
<span
v-if=
"setOption.IsMutex==1"
style=
"font-size:12px;"
>
答案顺序打乱也判正确
</span>
<br
/>
<div
class=
"tk_info"
>
1. 一个空有多种答案时请用";"隔开。如:水;H2O
...
...
@@ -61,36 +52,10 @@
data
()
{
return
{
data
:
this
.
questionData
,
config
:
{
initialFrameWidth
:
null
,
initialFrameHeight
:
80
,
},
commonIndex
:
-
1
,
};
},
created
()
{},
methods
:
{
//删除选项
deleteOpion
(
index
)
{
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
'是否确定删除?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
this
.
data
.
splice
(
index
,
1
);
}).
onCancel
(()
=>
{
});
},
//新增选项
addOption
()
{
this
.
data
.
push
({
Content
:
""
,
});
},
//返回数据到父组件
returnDataToParent
()
{
if
(
this
.
data
&&
this
.
data
.
length
>
0
)
{
...
...
@@ -105,10 +70,6 @@
}
this
.
$emit
(
'getChild'
,
this
.
data
);
},
//点击切换输入
changeEdit
(
index
)
{
this
.
commonIndex
=
index
;
}
},
mounted
()
{
...
...
src/pages/course/questionInfo.vue
View file @
18ce8843
...
...
@@ -196,26 +196,26 @@
import
vMultiple
from
'../../components/questiontype/v-multiple'
import
vFillin
from
'../../components/questiontype/v-fillin'
import
vJudge
from
'../../components/questiontype/v-judge'
import
vShort
A
nswer
from
'../../components/questiontype/v-shortanswer'
import
vEntry
P
roblem
from
'../../components/questiontype/v-entryproblem'
import
vShort
a
nswer
from
'../../components/questiontype/v-shortanswer'
import
vEntry
p
roblem
from
'../../components/questiontype/v-entryproblem'
import
vMatching
from
'../../components/questiontype/v-matching'
import
vSorting
P
roblem
from
'../../components/questiontype/v-sortingproblem'
import
vSorting
p
roblem
from
'../../components/questiontype/v-sortingproblem'
import
vCloze
from
'../../components/questiontype/v-cloze'
import
vReading
C
omprehensio
from
'../../components/questiontype/v-readingcomprehensio'
import
vSharing
C
hoose
from
'../../components/questiontype/v-sharingchoose'
import
vReading
c
omprehensio
from
'../../components/questiontype/v-readingcomprehensio'
import
vSharing
c
hoose
from
'../../components/questiontype/v-sharingchoose'
export
default
{
components
:
{
vSingle
,
//单选题
vMultiple
,
//多选题
vFillin
,
//填空题
vJudge
,
//判断题
vShort
A
nswer
,
//简答题
vEntry
P
roblem
,
//分录题
vShort
a
nswer
,
//简答题
vEntry
p
roblem
,
//分录题
vMatching
,
//连线题
vSorting
P
roblem
,
//排序题
vSorting
p
roblem
,
//排序题
vCloze
,
//完型填空
vReading
C
omprehensio
,
//阅读理解
vSharing
C
hoose
,
//共用选择题
vReading
c
omprehensio
,
//阅读理解
vSharing
c
hoose
,
//共用选择题
},
props
:
{
setingObj
:
{
...
...
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