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
b98662fc
Commit
b98662fc
authored
Aug 24, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8633ab02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
89 deletions
+124
-89
exampaperlist.vue
src/components/exam/exampaperlist.vue
+123
-88
examPaper.vue
src/pages/course/examPaper.vue
+1
-1
No files found.
src/components/exam/exampaperlist.vue
View file @
b98662fc
...
...
@@ -12,145 +12,126 @@
<q-btn
v-if=
"multipleSelection&&multipleSelection.length>0"
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"删除"
@
click=
"batchDelete()"
/>
</div>
<el-table
:data=
"dataList"
v-loading=
"loading"
ref=
"multipleTable"
:cell-class-name=
"isRender"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
>
</el-table-column>
<el-table-column
prop=
"PaperName"
label=
"文件夹/试卷"
width=
"300"
>
<template
slot-scope=
"scope"
>
<q-table
:pagination=
"pageMsg"
:loading=
"loading"
selection=
"multiple"
:selected
.
sync=
"multipleSelection"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-PaperName=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"Exam_PaperName"
>
<i
v-if=
"
scope
.row.PaperType==1"
title=
"文件夹"
class=
"iconfont icon-weibiaoti5"
style=
"color:#85CDFD;"
></i>
<i
v-if=
"
scope
.row.PaperType==2"
title=
"试卷"
class=
"iconfont icon-icon-test1"
style=
"color:#85CDFD;"
></i>
<i
v-if=
"
props
.row.PaperType==1"
title=
"文件夹"
class=
"iconfont icon-weibiaoti5"
style=
"color:#85CDFD;"
></i>
<i
v-if=
"
props
.row.PaperType==2"
title=
"试卷"
class=
"iconfont icon-icon-test1"
style=
"color:#85CDFD;"
></i>
<div
class=
"Exam_PaperName"
>
<template
v-if=
"
scope
.row.PaperType==1"
>
<span
style=
"cursor:pointer;"
@
click=
"getPaperChild(
scope
.row.PaperId)"
>
{{
scope
.
row
.
PaperName
}}
</span>
<template
v-if=
"
props
.row.PaperType==1"
>
<span
style=
"cursor:pointer;"
@
click=
"getPaperChild(
props
.row.PaperId)"
>
{{
props
.
row
.
PaperName
}}
</span>
</
template
>
<
template
v-else
>
{{
scope
.
row
.
PaperName
}}
<q-tooltip
v-if=
"
scope.row.PaperName.length>10"
:offset=
"[10, 10]"
>
{{
scope
.
row
.
PaperName
}}
{{
props
.
row
.
PaperName
}}
<q-tooltip
v-if=
"
props.row.PaperName.length>10"
:offset=
"[10, 10]"
>
{{
props
.
row
.
PaperName
}}
</q-tooltip>
</
template
>
</div>
</div>
</
template
>
</
el-table-column
>
<
el-table-column
prop=
"QuestionCount"
label=
"题量
"
>
<
template
slot-scope=
"scope
"
>
<template
v-if=
"
scope
.row.PaperType==1"
>
</
q-td
>
</
template
>
<
template
v-slot:body-cell-QuestionCount=
"props
"
>
<
q-td
:props=
"props
"
>
<template
v-if=
"
props
.row.PaperType==1"
>
---
</
template
>
<
template
v-if=
"
scope
.row.PaperType==2"
>
{{
scope
.
row
.
QuestionCount
}}
<
template
v-if=
"
props
.row.PaperType==2"
>
{{
props
.
row
.
QuestionCount
}}
</
template
>
</
template
>
</
el-table-column
>
<
el-table-column
prop=
"DifficultyTypeName"
label=
"难度
"
>
<
template
slot-scope=
"scope
"
>
<template
v-if=
"
scope
.row.PaperType==1"
>
</
q-td
>
</
template
>
<
template
v-slot:body-cell-DifficultyTypeName=
"props
"
>
<
q-td
:props=
"props
"
>
<template
v-if=
"
props
.row.PaperType==1"
>
---
</
template
>
<
template
v-if=
"
scope
.row.PaperType==2"
>
{{
scope
.
row
.
DifficultyTypeName
}}
<
template
v-if=
"
props
.row.PaperType==2"
>
{{
props
.
row
.
DifficultyTypeName
}}
</
template
>
</
template
>
</
el-table-column
>
<
el-table-column
prop=
"PublishCount"
label=
"发布考试次数
"
>
<
template
slot-scope=
"scope
"
>
<template
v-if=
"
scope
.row.PaperType==1"
>
</
q-td
>
</
template
>
<
template
v-slot:body-cell-PublishCount=
"props
"
>
<
q-td
:props=
"props
"
>
<template
v-if=
"
props
.row.PaperType==1"
>
---
</
template
>
<
template
v-if=
"
scope
.row.PaperType==2"
>
{{
scope
.
row
.
PublishCount
}}
<
template
v-if=
"
props
.row.PaperType==2"
>
{{
props
.
row
.
PublishCount
}}
</
template
>
</template>
</el-table-column>
<el-table-column
prop=
"OpenStr"
label=
"开放状态"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
OpenStr
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"CreateByName"
label=
"创建人"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreateByName
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"CreateTimeStr"
label=
"创建时间"
width=
"148"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
CreateTimeStr
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"ReviewerName"
label=
"审核人"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ReviewerName
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"ExamineStatusStr"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
ExamineStatusStr
}}
<template
v-if=
"scope.row.ExamineRemark"
>
<q-tooltip
:offset=
"[10, 10]"
>
驳回原因:
{{
scope
.
row
.
ExamineRemark
}}
</q-td>
</template>
<
template
v-slot:body-cell-ExamineStatusStr=
"props"
>
<q-td
:props=
"props"
>
{{
props
.
row
.
ExamineStatusStr
}}
<template
v-if=
"props.row.ExamineRemark"
>
<q-tooltip
:offset=
"[10, 10]"
>
驳回原因:
{{
props
.
row
.
ExamineRemark
}}
</q-tooltip>
</
template
>
</
template
>
</
el-table-column
>
<
el-table-column
label=
"操作"
width=
"180
"
>
<
template
slot-scope=
"scope
"
>
<template
v-if=
"
scope
.row.PaperType==1"
>
<q-btn
flat
size=
"xs"
color=
"primary"
style=
"font-weight:400"
@
click=
"showExamFolder(
scope
.row)"
label=
"重命名"
v-if=
"currentUserInfo.Id==
scope
.row.CreateBy"
/>
</
q-td
>
</
template
>
<
template
v-slot:body-cell-PaperType=
"props
"
>
<
q-td
:props=
"props
"
>
<template
v-if=
"
props
.row.PaperType==1"
>
<q-btn
flat
size=
"xs"
color=
"primary"
style=
"font-weight:400"
@
click=
"showExamFolder(
props
.row)"
label=
"重命名"
v-if=
"currentUserInfo.Id==
props
.row.CreateBy"
/>
</
template
>
<
template
v-if=
"
scope
.row.PaperType==2"
>
<q-btn
flat
size=
"xs"
color=
"primary"
style=
"font-weight:400"
@
click=
"goExameEdit(
scope
.row)"
label=
"编辑"
v-if=
"currentUserInfo.Id==
scope.row.CreateBy &&(scope.row.ExamineStatus==0||scope.row.ExamineStatus==3||scope
.row.ExamineStatus==4)"
/>
<
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>
<q-item
clickable
v-close-popup
@
click=
"submitAudit(
scope
.row)"
v-if=
"
scope.row.PaperType==2&¤tUserInfo.Id==scope.row.CreateBy &&(scope.row.ExamineStatus==0||scope.row.ExamineStatus==3||scope
.row.ExamineStatus==4) "
>
<q-item
clickable
v-close-popup
@
click=
"submitAudit(
props
.row)"
v-if=
"
props.row.PaperType==2&¤tUserInfo.Id==props.row.CreateBy &&(props.row.ExamineStatus==0||props.row.ExamineStatus==3||props
.row.ExamineStatus==4) "
>
<q-item-section>
<q-item-label>
{{
scope
.row.ExamineStatus==0?'提交审核':"重新提交审核"}}
</q-item-label>
<q-item-label>
{{
props
.row.ExamineStatus==0?'提交审核':"重新提交审核"}}
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"publishExam(
scope
.row)"
v-if=
"
scope.row.PaperType==2 &¤tUserInfo.Id==scope.row.CreateBy&&scope
.row.ExamineStatus==2"
>
<q-item
clickable
v-close-popup
@
click=
"publishExam(
props
.row)"
v-if=
"
props.row.PaperType==2 &¤tUserInfo.Id==props.row.CreateBy&&props
.row.ExamineStatus==2"
>
<q-item-section>
<q-item-label>
发布考试
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"showPaperInfo(
scope.row)"
v-if=
"scope
.row.PaperType==2"
>
<q-item
clickable
v-close-popup
@
click=
"showPaperInfo(
props.row)"
v-if=
"props
.row.PaperType==2"
>
<q-item-section>
<q-item-label>
详情
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"movePaperInfo(
scope
.row)"
v-if=
"currentUserInfo.Id==
scope
.row.CreateBy"
>
<q-item
clickable
v-close-popup
@
click=
"movePaperInfo(
props
.row)"
v-if=
"currentUserInfo.Id==
props
.row.CreateBy"
>
<q-item-section>
<q-item-label>
移动到
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"showOpenForm(
scope
.row)"
v-if=
"currentUserInfo.Id==
scope
.row.CreateBy||IsPaperManager"
>
<q-item
clickable
v-close-popup
@
click=
"showOpenForm(
props
.row)"
v-if=
"currentUserInfo.Id==
props
.row.CreateBy||IsPaperManager"
>
<q-item-section>
<q-item-label>
设置访问权限
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"copyPaperInfo(
scope.row)"
v-if=
"scope
.row.PaperType==2"
>
<q-item
clickable
v-close-popup
@
click=
"copyPaperInfo(
props.row)"
v-if=
"props
.row.PaperType==2"
>
<q-item-section>
<q-item-label>
复制
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"deletePaperInfo(
scope
.row)"
v-if=
"currentUserInfo.Id==
scope
.row.CreateBy"
>
<q-item
clickable
v-close-popup
@
click=
"deletePaperInfo(
props
.row)"
v-if=
"currentUserInfo.Id==
props
.row.CreateBy"
>
<q-item-section>
<q-item-label>
删除
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</template>
</el-table-column>
</el-table>
</q-td>
</template>
<
template
v-slot:bottom
>
</
template
>
</q-table>
<paperfolderForm
v-if=
"isShowExamFolder"
:saveObj=
"examObj"
:FaParentId=
"msg.ParentId"
@
close=
"closeExamForm"
@
success=
"refreshPage"
>
</paperfolderForm>
...
...
@@ -203,7 +184,61 @@
multipleSelection
:
[],
MoveIds
:
''
,
currentUserInfo
:
{},
//当前登录用户
IsPaperManager
:
false
IsPaperManager
:
false
,
pageMsg
:
{
rowsPerPage
:
10
,
},
columns
:
[{
name
:
"PaperName"
,
label
:
"文件夹/试卷"
,
field
:
"PaperName"
,
align
:
"left"
},
{
name
:
"QuestionCount"
,
label
:
"题量"
,
field
:
"QuestionCount"
,
align
:
"left"
},
{
name
:
"DifficultyTypeName"
,
label
:
"难度"
,
field
:
"DifficultyTypeName"
,
align
:
"left"
},
{
name
:
"PublishCount"
,
label
:
"发布考试次数"
,
field
:
"PublishCount"
,
align
:
"left"
},
{
name
:
"OpenStr"
,
label
:
"开放状态"
,
field
:
"OpenStr"
,
align
:
"left"
},
{
name
:
"CreateByName"
,
label
:
"创建人"
,
field
:
"CreateByName"
,
align
:
"left"
},
{
name
:
"CreateTimeStr"
,
label
:
"创建时间"
,
field
:
"CreateTimeStr"
,
align
:
"left"
},
{
name
:
"ReviewerName"
,
label
:
"审核人"
,
field
:
"ReviewerName"
,
align
:
"left"
},
{
name
:
"ExamineStatusStr"
,
label
:
"状态"
,
field
:
"ExamineStatusStr"
,
align
:
"left"
},
{
name
:
"PaperType"
,
label
:
"操作"
,
field
:
"PaperType"
,
align
:
"left"
}]
}
},
created
()
{
...
...
src/pages/course/examPaper.vue
View file @
b98662fc
...
...
@@ -113,7 +113,7 @@
import
exampaperlist
from
'../../components/exam/exampaperlist'
import
{
GetPaperPage
}
from
'../../api/teacher/index'
;
}
from
'../../api/teacher/index'
;
//获取校区列表
export
default
{
components
:
{
...
...
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