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
8442c7e7
Commit
8442c7e7
authored
Aug 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6969f3bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
paperCreate.vue
src/pages/exam/paperCreate.vue
+13
-13
No files found.
src/pages/exam/paperCreate.vue
View file @
8442c7e7
...
...
@@ -44,7 +44,7 @@
<
template
>
<div
class=
"page-body"
>
<div>
组卷题库
(
<span
style=
"color:red;"
>
*
</span>
)
组卷题库
<q-btn
color=
"accent"
size=
"sm"
@
click=
"showQuestionBank"
class=
"q-mr-md"
label=
"选择题库"
/><br
/>
</div>
<div
class=
"setpaperCreat"
v-if=
"QuestionArray.length>0"
>
...
...
@@ -84,7 +84,7 @@
<q-radio
v-model=
"item.ChooseType"
:val=
"1"
label=
"从题库选题"
/>
<template
v-if=
"item.ChooseType==1"
>
<span
style=
"position:relative;top:2px;"
>
共
{{
item
.
QuestionTypeNum
}}
道 抽
<el-input
style=
"width:100px;"
size=
"small"
:disabled=
"item.QuestionTypeNum
<
=
0
"
<el-input
style=
"width:100px;"
size=
"small"
:disabled=
"
templateMsg.TemplateBankIds!=''&&
item.QuestionTypeNum
<
=
0
"
@
input=
"getMaxInput(item)"
v-model=
"item.ChooseNum"
@
keyup
.
native=
"checkInteger(item,'ChooseNum')"
maxlength=
"5"
></el-input>
道
</span>
...
...
@@ -97,7 +97,7 @@
<div
style=
"margin:0 0 20px 40px;"
v-for=
"(subItem,subIndex) in item.ChooseList"
:key=
"subIndex"
>
{{
subItem
.
DifficultyTypeName
}}
(共
{{
subItem
.
DifficultyTypeCount
}}
道) 抽
<el-input
style=
"width:100px;"
size=
"small"
:disabled=
"subItem.DifficultyTypeCount
<
=
0
"
<el-input
style=
"width:100px;"
size=
"small"
:disabled=
"
templateMsg.TemplateBankIds!=''&&
subItem.DifficultyTypeCount
<
=
0
"
@
input=
"getMaxMiniInput(subItem)"
@
keyup
.
native=
"checkInteger(subItem,'ChooseNum')"
v-model=
"subItem.ChooseNum"
maxlength=
"5"
></el-input>
道
...
...
@@ -192,12 +192,12 @@
methods
:
{
//设置最大值
getMaxInput
(
item
)
{
if
(
item
.
ChooseNum
>
item
.
QuestionTypeNum
)
{
if
(
templateMsg
.
TemplateBankIds
!=
''
&&
item
.
ChooseNum
>
item
.
QuestionTypeNum
)
{
item
.
ChooseNum
=
''
;
}
},
getMaxMiniInput
(
item
)
{
if
(
item
.
ChooseNum
>
item
.
DifficultyTypeCount
)
{
if
(
templateMsg
.
TemplateBankIds
!=
''
&&
item
.
ChooseNum
>
item
.
DifficultyTypeCount
)
{
item
.
ChooseNum
=
''
;
}
},
...
...
@@ -327,14 +327,14 @@
},
//显示试卷模板
showExamTemplate
()
{
if
(
this
.
templateMsg
.
TemplateBankIds
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请先选择题库`
})
return
;
}
//
if (this.templateMsg.TemplateBankIds == '') {
//
this.$q.notify({
//
type: 'negative',
//
position: "top",
//
message: `请先选择题库`
//
})
//
return;
//
}
this
.
isShowExamTemplate
=
true
;
},
//关闭题库
...
...
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