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
48885fff
Commit
48885fff
authored
Aug 18, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
709035d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
38 deletions
+62
-38
paperEdit.vue
src/pages/exam/paperEdit.vue
+62
-38
No files found.
src/pages/exam/paperEdit.vue
View file @
48885fff
...
@@ -895,46 +895,70 @@
...
@@ -895,46 +895,70 @@
}
}
}
}
//填空题
//填空题
if
(
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'fill-in'
){
for
(
let
i
=
0
;
i
<
this
.
DataObj
.
GroupList
[
k
].
DetailsList
.
length
;
i
++
)
{
if
(
this
.
DataObj
.
GroupList
[
k
].
DetailsList
[
i
].
Title
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`
${
this
.
DataObj
.
GroupList
[
k
].
GroupName
}
第
${
i
+
1
}
题标题为空!`
})
result
=
false
;
return
;
}
}
return
result
;
for
(
let
j
=
0
;
j
<
this
.
DataObj
.
GroupList
[
k
].
DetailsList
[
i
].
QuestionContentObj
.
length
;
j
++
)
{
},
if
(
this
.
DataObj
.
GroupList
[
k
].
DetailsList
[
i
].
QuestionContentObj
[
j
].
Content
==
''
)
{
//js 判断重复
this
.
$q
.
notify
({
isRepeat
(
Arr
,
type
)
{
type
:
'negative'
,
var
result
=
true
;
position
:
"top"
,
var
msg
=
''
;
message
:
`请填写
${
this
.
DataObj
.
GroupList
[
k
].
GroupName
}
第
${
i
+
1
}
空!`
switch
(
type
)
{
})
case
1
:
result
=
false
;
msg
=
'第1组数据选项不能相同'
return
;
break
;
}
case
2
:
}
msg
=
'第2组数据选项不能相同'
}
break
;
}
case
3
:
//判断题
msg
=
'选项内容不能相同'
if
(
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'judge'
||
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'reading-comprehensio'
||
break
;
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'spoken'
||
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'other'
||
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'noun-explanation'
){
case
4
:
for
(
let
i
=
0
;
i
<
this
.
DataObj
.
GroupList
[
k
].
DetailsList
.
length
;
i
++
)
{
msg
=
'题干内容不能相同!'
;
if
(
this
.
DataObj
.
GroupList
[
k
].
DetailsList
[
i
].
Title
==
''
)
{
break
;
default
:
}
let
num
=
0
;
for
(
var
i
=
0
;
i
<
Arr
.
length
-
1
;
i
++
)
{
for
(
var
j
=
i
+
1
;
j
<
Arr
.
length
;
j
++
)
{
if
(
Arr
[
i
].
Content
===
Arr
[
j
].
Content
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
position
:
"top"
,
position
:
"top"
,
message
:
msg
message
:
`
${
this
.
DataObj
.
GroupList
[
k
].
GroupName
}
第
${
i
+
1
}
题标题为空!`
})
})
num
++
;
result
=
false
;
return
;
}
}
}
}
}
}
if
(
num
>
0
)
{
//简答题 论述题
if
(
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'short-answer'
||
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'essay-question'
||
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'calculation'
||
this
.
DataObj
.
GroupList
[
k
].
QuestionTypeKey
==
'entry-problem'
){
for
(
let
i
=
0
;
i
<
this
.
DataObj
.
GroupList
[
k
].
DetailsList
.
length
;
i
++
)
{
if
(
this
.
DataObj
.
GroupList
[
k
].
DetailsList
[
i
].
Title
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`
${
this
.
DataObj
.
GroupList
[
k
].
GroupName
}
第
${
i
+
1
}
题标题为空!`
})
result
=
false
;
result
=
false
;
}
else
{
return
;
result
=
true
;
}
if
(
this
.
DataObj
.
GroupList
[
k
].
DetailsList
[
i
].
Answer
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请输入
${
this
.
DataObj
.
GroupList
[
k
].
GroupName
}
第
${
i
+
1
}
题答案`
})
result
=
false
;
return
;
}
}
}
}
}
return
result
;
return
result
;
},
},
...
...
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