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
38d28fa4
Commit
38d28fa4
authored
Aug 17, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
666286f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
6 deletions
+87
-6
index.js
src/api/teacher/index.js
+12
-0
classstutree-form.vue
src/components/exam/classstutree-form.vue
+26
-3
examlist.vue
src/pages/exam/examlist.vue
+7
-1
paperPublish.vue
src/pages/exam/paperPublish.vue
+42
-2
No files found.
src/api/teacher/index.js
View file @
38d28fa4
...
...
@@ -202,4 +202,16 @@ export function queryPublishExamPage(data) {
method
:
'post'
,
data
})
}
/**
* 根据编号获取考卷发布信息
* @param {JSON参数} data
*/
export
function
queryExamPublish
(
data
)
{
return
request
({
url
:
'/Exam/GetExamPublish'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/exam/classstutree-form.vue
View file @
38d28fa4
...
...
@@ -4,6 +4,22 @@
<q-card-section>
<div
class=
"text-h6"
>
选择学员
</div>
</q-card-section>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"research"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.GuestName"
label=
"学员名称"
@
clear=
"research"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"research"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.ClassName"
label=
"班级名称"
@
clear=
"research"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"research"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.ClassNo"
label=
"班级编号"
@
clear=
"research"
maxlength=
"20"
/>
</div>
</div>
</div>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<el-tree
:data=
"dataList"
show-checkbox
node-key=
"GuestId"
ref=
"classStuTree"
highlight-current
:props=
"defaultProps"
>
...
...
@@ -29,7 +45,11 @@
children
:
'SubList'
,
label
:
'Name'
},
msg
:
{},
//查询参数
msg
:
{
GuestName
:
""
,
//学员名称
ClassName
:
""
,
//班级名称
ClassNo
:
""
,
//班级编号
},
//查询参数
loading
:
false
,
//表格加载进度条
dataList
:
[],
//数据列表
}
...
...
@@ -38,6 +58,10 @@
this
.
getClassStudentTree
();
},
methods
:
{
//重新查询
research
()
{
this
.
getClassStudentTree
();
},
//获取题库分页列表
getClassStudentTree
()
{
queryClassStudentTree
(
this
.
msg
).
then
(
res
=>
{
...
...
@@ -58,8 +82,7 @@
var
checkArray
=
this
.
$refs
.
classStuTree
.
getCheckedNodes
();
if
(
checkArray
&&
checkArray
.
length
>
0
)
{
checkArray
.
forEach
(
item
=>
{
if
(
item
.
SubList
&&
item
.
SubList
.
length
>
0
)
{
}
else
{
if
(
item
.
SubList
&&
item
.
SubList
.
length
>
0
)
{}
else
{
tempArray
.
push
(
item
);
}
})
...
...
src/pages/exam/examlist.vue
View file @
38d28fa4
...
...
@@ -71,7 +71,7 @@
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight:400"
label=
"
详情
"
/>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight:400"
label=
"
修改"
@
click=
"publishExam(props.row)
"
/>
<q-btn
flat
size=
"xs"
color=
"accent"
style=
"font-weight:400"
label=
"考生管理"
/>
</q-td>
</
template
>
...
...
@@ -155,6 +155,12 @@
this
.
getList
();
},
methods
:
{
//修改考试相关
publishExam
(
item
)
{
this
.
OpenNewUrl
(
'/exam/paperPublish'
,
{
Id
:
item
.
Id
});
},
//创建试卷
CreatePaper
()
{
this
.
OpenNewUrl
(
'/exam/paperCreate'
,
{})
...
...
src/pages/exam/paperPublish.vue
View file @
38d28fa4
...
...
@@ -43,7 +43,7 @@
分钟
</
template
>
</q-input>
<q-input
filled
bottom-slots
maxlength=
"10"
v-model=
"postMsg.
Exam
Times"
label=
"限时提交"
class=
"col-6 q-pb-lg "
<q-input
filled
bottom-slots
maxlength=
"10"
v-model=
"postMsg.
Submit
Times"
label=
"限时提交"
class=
"col-6 q-pb-lg "
:dense=
"false"
>
<
template
v-slot:append
>
分钟内不允许提交
...
...
@@ -128,7 +128,7 @@
import
classstutreeForm
from
'../../components/exam/classstutree-form'
import
{
savePublishExam
,
queryExamPublish
,
}
from
'../../api/teacher/index'
;
export
default
{
components
:
{
...
...
@@ -170,11 +170,51 @@
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
PaperId
)
{
this
.
postMsg
.
PaperId
=
decodeURI
(
this
.
$route
.
query
.
PaperId
)
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
Id
)
{
this
.
postMsg
.
Id
=
decodeURI
(
this
.
$route
.
query
.
Id
);
this
.
getExamInfo
();
}
},
mounted
()
{
},
methods
:
{
getExamInfo
()
{
queryExamPublish
({
Id
:
this
.
postMsg
.
Id
}).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
if
(
res
.
Code
==
1
)
{
var
tempData
=
res
.
Data
;
if
(
tempData
)
{
this
.
postMsg
.
Id
=
tempData
.
Id
;
this
.
postMsg
.
PaperId
=
tempData
.
PaperId
;
this
.
postMsg
.
PublishType
=
tempData
.
PublishType
;
this
.
postMsg
.
ExamStartTime
=
tempData
.
ExamStartTime
;
this
.
postMsg
.
ExamEndTime
=
tempData
.
ExamEndTime
;
this
.
postMsg
.
ExamTimes
=
tempData
.
ExamTimes
;
this
.
postMsg
.
SubmitTimes
=
tempData
.
SubmitTimes
;
this
.
postMsg
.
EnterTimes
=
tempData
.
EnterTimes
;
this
.
postMsg
.
IsQuestionRandom
=
tempData
.
IsQuestionRandom
;
this
.
postMsg
.
IsOptionRandom
=
tempData
.
IsOptionRandom
;
this
.
postMsg
.
IsLeaveAnswer
=
tempData
.
IsLeaveAnswer
;
this
.
postMsg
.
LeaveTimes
=
tempData
.
LeaveTimes
;
this
.
postMsg
.
IsDisableMultiTerminal
=
tempData
.
IsDisableMultiTerminal
;
this
.
postMsg
.
IsExamType
=
tempData
.
IsExamType
;
this
.
postMsg
.
ExamTypeValue
=
tempData
.
ExamTypeValue
;
this
.
postMsg
.
ExamNotice
=
tempData
.
ExamNotice
;
this
.
postMsg
.
PassScore
=
tempData
.
PassScore
;
this
.
postMsg
.
IsAutoSubmit
=
tempData
.
IsAutoSubmit
;
this
.
postMsg
.
FillInIsSubject
=
tempData
.
FillInIsSubject
;
this
.
postMsg
.
FillInIsIgnore
=
tempData
.
FillInIsIgnore
;
this
.
postMsg
.
IsHalfScore
=
tempData
.
IsHalfScore
;
if
(
tempData
.
StudentList
&&
tempData
.
StudentList
.
length
>
0
)
{
this
.
postMsg
.
StudentList
=
tempData
.
StudentList
;
}
}
}
})
},
//显示班级学员弹窗
showClassStu
()
{
this
.
isShowClassStu
=
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