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
7f56fcfb
Commit
7f56fcfb
authored
Aug 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
832f0dc9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
55 deletions
+22
-55
exampaperlist.vue
src/components/exam/exampaperlist.vue
+11
-31
examineeManager.vue
src/pages/exam/examineeManager.vue
+1
-1
examtest.vue
src/pages/exam/examtest.vue
+10
-23
No files found.
src/components/exam/exampaperlist.vue
View file @
7f56fcfb
...
...
@@ -2,12 +2,6 @@
.examForm
.q-table__bottom
{
min-height
:
10px
;
}
.greenStyle
{
color
:
green
;
}
.color_shz
{
color
:
#1273BC
}
.color_tg
{
color
:
#4BCA81
}
.color_bh
{
color
:
#c94052
}
</
style
>
<
template
>
...
...
@@ -28,9 +22,9 @@
</
template
>
</div>
<div>
<q-btn
v-if=
"multipleSelection&&multipleSelection.length>0
&&IsMovePaper
"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
<q-btn
v-if=
"multipleSelection&&multipleSelection.length>0"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
@
click=
"movePaperFile()"
label=
"移动到"
/>
<q-btn
v-if=
"multipleSelection&&multipleSelection.length>0
&&IsDelPaper
"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
<q-btn
v-if=
"multipleSelection&&multipleSelection.length>0"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"删除"
@
click=
"batchDelete()"
/>
</div>
</div>
...
...
@@ -106,20 +100,14 @@
</template>
<
template
v-slot:body-cell-ExamineStatusStr=
"props"
>
<q-td
:props=
"props"
>
<template
v-if=
"props.row.ExamineStatus==4||props.row.ExamineStatus==3"
>
<el-popover
placement=
"bottom"
title=
"驳回原因"
width=
"350"
trigger=
"hover"
:content=
'props.row.ExamineRemark'
>
<span
slot=
"reference"
class=
"color_bh"
>
{{
props
.
row
.
ExamineStatusStr
}}
</span>
</el-popover>
</
template
>
<
template
v-else
>
<span
:class=
"
{'color_tg':props.row.ExamineStatus==2||props.row.ExamineStatus==5,
'color_bh':props.row.ExamineStatus==6}">
{{
props
.
row
.
ExamineStatusStr
}}
</span>
</
template
>
<el-popover
placement=
"bottom"
title=
"驳回原因"
width=
"350"
trigger=
"hover"
:content=
'props.row.ExamineRemark'
>
<span
slot=
"reference"
>
{{
props
.
row
.
ExamineStatusStr
}}
</span>
</el-popover>
</q-td>
</
template
>
<
template
v-slot:body-cell-PaperType=
"props"
>
...
...
@@ -130,7 +118,7 @@
</
template
>
<
template
v-if=
"props.row.PaperType==2"
>
<q-btn
flat
size=
"xs"
color=
"primary"
style=
"font-weight:400"
@
click=
"goExameEdit(props.row)"
label=
"编辑"
/>
v-if=
"currentUserInfo.Id==props.row.CreateBy &&(props.row.ExamineStatus==0||props.row.ExamineStatus==3||props.row.ExamineStatus==4)"
/>
</
template
>
<q-btn-dropdown
flat
size=
"xs"
color=
"dark"
label=
"更多"
style=
"margin-left: 10px"
>
<q-list>
...
...
@@ -238,8 +226,6 @@
MoveIds
:
''
,
currentUserInfo
:
{},
//当前登录用户
IsPaperManager
:
false
,
IsMovePaper
:
false
,
//是否可以移动文件
IsDelPaper
:
false
,
//是否删除试卷
pageMsg
:
{
rowsPerPage
:
10
,
},
...
...
@@ -303,12 +289,6 @@
if
(
x
.
FunctionCode
==
"Paper_Manager"
)
{
//判断是否是试卷管理员
this
.
IsPaperManager
=
true
;
}
if
(
x
.
FunctionCode
==
"Paper_Move"
){
//判断是否有移动文件权限
this
.
IsMovePaper
=
true
;
}
if
(
x
.
FunctionCode
==
"Paper_Delete"
){
//判断是否有删除文件夹权限
this
.
IsDelPaper
=
true
;
}
})
},
mounted
()
{},
...
...
src/pages/exam/examineeManager.vue
View file @
7f56fcfb
...
...
@@ -49,7 +49,7 @@
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
color=
"primary"
size=
"xs"
style=
"font-weight:400;
display:none;
"
class=
"q-mr-md"
label=
"学员考试"
<q-btn
flat
color=
"primary"
size=
"xs"
style=
"font-weight:400;"
class=
"q-mr-md"
label=
"学员考试"
@
click=
"gotoExamTest(props.row)"
/>
</q-td>
</
template
>
...
...
src/pages/exam/examtest.vue
View file @
7f56fcfb
...
...
@@ -249,8 +249,7 @@
<div>
<div>
{{
DataObj
.
PaperName
}}
<br
/>
创建人:
{{
DataObj
.
CreateByName
}}
题量:
{{
examNum
}}
满分:
{{
examScore
}}
<q-checkbox
size=
"xs"
v-model=
"isShowAnswer"
label=
"显示答案"
/>
题量:
{{
examNum
}}
满分:
{{
examScore
}}
</div>
</div>
<div
style=
"width:20%;text-align:right;"
>
...
...
@@ -328,7 +327,7 @@
import
vReadingcomprehensio
from
'../../components/questiontype/v-readingcomprehensio'
import
vSharingchoose
from
'../../components/questiontype/v-sharingchoose'
import
{
Get
PaperDetails
,
query
PaperDetails
,
}
from
'../../api/teacher/index'
;
export
default
{
components
:
{
...
...
@@ -361,15 +360,9 @@
DataObj
:
{
PaperId
:
0
,
//试卷编号
PaperName
:
''
,
//试卷名称
QuestionBandIds
:
""
,
//关联题库编号
DifficultyType
:
1
,
//试卷难易程度
GenerateType
:
2
,
//组卷类型(1-智能组卷,2-手动组卷,3-智能导入)
CreateNum
:
1
,
//生成试卷套数
PaperType
:
2
,
//试卷类型(1-文件夹,2-试卷)
ParentId
:
0
,
//父节点编号,
GroupList
:
[],
//试卷答题分类
CreateByName
:
""
,
//创建人
},
PaperConfig
:{},
//试卷配置
isShowAnswer
:
false
,
//是否显示答案
examScore
:
0
,
//总分,
examNum
:
0
,
//总题量
...
...
@@ -379,7 +372,7 @@
},
mounted
()
{
this
.
GetPaper
Details
()
this
.
GetPaper
Info
()
},
methods
:
{
NoToChinese
(
str
)
{
...
...
@@ -413,22 +406,16 @@
},
//获取试卷详情
GetPaperInfo
()
{
GetPaper
(
this
.
msg
).
then
(
res
=>
{
queryPaperDetails
(
this
.
msg
).
then
(
res
=>
{
var
tempData
=
res
.
Data
;
console
.
log
(
"tempData"
,
tempData
);
if
(
res
.
Code
==
1
)
{
this
.
DataObj
.
PaperId
=
tempData
.
PaperId
;
this
.
DataObj
.
PaperName
=
tempData
.
PaperName
;
this
.
DataObj
.
QuestionBandIds
=
tempData
.
QuestionBandIds
;
this
.
DataObj
.
DifficultyType
=
tempData
.
DifficultyType
;
this
.
DataObj
.
GenerateType
=
tempData
.
GenerateType
;
this
.
DataObj
.
CreateNum
=
tempData
.
CreateNum
;
this
.
DataObj
.
PaperType
=
tempData
.
PaperType
;
this
.
DataObj
.
ParentId
=
tempData
.
ParentId
;
this
.
DataObj
.
CreateByName
=
tempData
.
CreateByName
;
if
(
tempData
.
GroupList
&&
tempData
.
GroupList
.
length
>
0
)
{
this
.
DataObj
.
GroupList
=
tempData
.
GroupList
;
this
.
DataObj
.
PaperId
=
tempData
.
Paper
.
PaperId
;
this
.
DataObj
.
PaperName
=
tempData
.
Paper
.
PaperName
;
if
(
tempData
.
Paper
.
GroupList
&&
tempData
.
Paper
.
GroupList
.
length
>
0
)
{
this
.
DataObj
.
GroupList
=
tempData
.
Paper
.
GroupList
;
}
this
.
PaperConfig
=
tempData
.
Publish
;
this
.
calcPaper
();
}
})
...
...
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